diff --git a/.gitignore b/.gitignore index 972e3cad5..d1cffb881 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +**/.speakeasy/temp/ +**/.speakeasy/logs/ +.env +.env.local .speakeasy/reports # Ignore IDE-specific configs .project diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c048079c8..5b298c0e0 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 5b16d152-46cd-4f0b-94e9-018ca2cfe7cd management: - docChecksum: 741a3c4053bac32f3919044d62f43ab1 + docChecksum: 9e5bfa57848f3a351e7908c770ab99b5 docVersion: 1.0.0 - speakeasyVersion: 1.533.0 - generationVersion: 2.578.0 - releaseVersion: 2.0.0 - configChecksum: 68f3368e9c861b65eee7945bae875219 + speakeasyVersion: 1.636.3 + generationVersion: 2.723.11 + releaseVersion: 3.0.0 + configChecksum: 876adaa61a335acaed6f7caf8e18aa9e repoURL: https://github.com/airbytehq/airbyte-api-java-sdk.git repoSubDirectory: . published: true @@ -15,16 +15,16 @@ features: additionalDependencies: 0.1.0 additionalProperties: 0.0.1 constsAndDefaults: 0.1.1 - core: 3.37.1 + core: 3.52.3 deprecations: 2.81.1 - globalSecurity: 2.82.8 + globalSecurity: 2.83.1 globalSecurityCallbacks: 0.1.0 - globalServerURLs: 2.82.1 - groups: 2.81.2 + globalServerURLs: 2.82.2 + groups: 2.81.3 inputOutputModels: 2.83.0 nullables: 0.1.0 - oauth2ClientCredentials: 0.3.2 - sdkHooks: 1.0.0 + oauth2ClientCredentials: 1.1.0 + sdkHooks: 1.1.0 typeOverrides: 2.81.1 unions: 0.0.6 generatedFiles: @@ -40,6 +40,8 @@ generatedFiles: - docs/models/operations/CreateDestinationDefinitionResponse.md - docs/models/operations/CreateDestinationResponse.md - docs/models/operations/CreateJobResponse.md + - docs/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequest.md + - docs/models/operations/CreateOrUpdateOrganizationOAuthCredentialsResponse.md - docs/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.md - docs/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.md - docs/models/operations/CreatePermissionResponse.md @@ -178,6 +180,7 @@ generatedFiles: - docs/models/shared/Appfollow.md - docs/models/shared/AppleSearchAds.md - docs/models/shared/Applications.md + - docs/models/shared/Appsflyer.md - docs/models/shared/Apptivo.md - docs/models/shared/Asana.md - docs/models/shared/AsanaCredentials.md @@ -222,6 +225,7 @@ generatedFiles: - docs/models/shared/Aviationstack.md - docs/models/shared/AvroApacheAvro.md - docs/models/shared/AvroFormat.md + - docs/models/shared/AwinAdvertiser.md - docs/models/shared/AwsCloudtrail.md - docs/models/shared/AwsDatalake.md - docs/models/shared/Awss3Staging.md @@ -263,6 +267,7 @@ generatedFiles: - docs/models/shared/ByProgrammingLanguage.md - docs/models/shared/BySeparator.md - docs/models/shared/Bzip2.md + - docs/models/shared/CDCDeletionMode.md - docs/models/shared/CSVCommaSeparatedValues.md - docs/models/shared/CSVFormat.md - docs/models/shared/CSVHeaderDefinition.md @@ -289,6 +294,7 @@ generatedFiles: - docs/models/shared/Chargify.md - docs/models/shared/Chartmogul.md - docs/models/shared/ChooseHowToPartitionData.md + - docs/models/shared/Churnkey.md - docs/models/shared/Cimis.md - docs/models/shared/Cin7.md - docs/models/shared/Circa.md @@ -305,7 +311,6 @@ generatedFiles: - docs/models/shared/Cloudbeds.md - docs/models/shared/ClusterType.md - docs/models/shared/Coassemble.md - - docs/models/shared/Cobra.md - docs/models/shared/Coda.md - docs/models/shared/Codec.md - docs/models/shared/Codefresh.md @@ -409,10 +414,14 @@ generatedFiles: - docs/models/shared/DestinationClickhouse.md - docs/models/shared/DestinationClickhouseSchemasTunnelMethod.md - docs/models/shared/DestinationClickhouseTunnelMethod.md - - docs/models/shared/DestinationCobra.md - docs/models/shared/DestinationConfiguration.md - docs/models/shared/DestinationConvex.md - docs/models/shared/DestinationCreateRequest.md + - docs/models/shared/DestinationCustomerIo.md + - docs/models/shared/DestinationCustomerIoCredentials.md + - docs/models/shared/DestinationCustomerIoS3.md + - docs/models/shared/DestinationCustomerIoS3BucketRegion.md + - docs/models/shared/DestinationCustomerIoStorageType.md - docs/models/shared/DestinationDatabricks.md - docs/models/shared/DestinationDatabricksAuthType.md - docs/models/shared/DestinationDatabricksSchemasAuthType.md @@ -428,6 +437,7 @@ generatedFiles: - docs/models/shared/DestinationElasticsearch.md - docs/models/shared/DestinationElasticsearchMethod.md - docs/models/shared/DestinationElasticsearchNoTunnel.md + - docs/models/shared/DestinationElasticsearchNone.md - docs/models/shared/DestinationElasticsearchPasswordAuthentication.md - docs/models/shared/DestinationElasticsearchSSHKeyAuthentication.md - docs/models/shared/DestinationElasticsearchSSHTunnelMethod.md @@ -470,6 +480,15 @@ generatedFiles: - docs/models/shared/DestinationGoogleSheetsAuthentication.md - docs/models/shared/DestinationGoogleSheetsGoogleSheets.md - docs/models/shared/DestinationGoogleSheetsSchemasAuthType.md + - docs/models/shared/DestinationHubspot.md + - docs/models/shared/DestinationHubspotCredentials.md + - docs/models/shared/DestinationHubspotHubspot.md + - docs/models/shared/DestinationHubspotNone.md + - docs/models/shared/DestinationHubspotObjectStorageConfiguration.md + - docs/models/shared/DestinationHubspotS3.md + - docs/models/shared/DestinationHubspotS3BucketRegion.md + - docs/models/shared/DestinationHubspotSchemasStorageType.md + - docs/models/shared/DestinationHubspotStorageType.md - docs/models/shared/DestinationMilvus.md - docs/models/shared/DestinationMilvusAPIToken.md - docs/models/shared/DestinationMilvusAuthentication.md @@ -516,8 +535,15 @@ generatedFiles: - docs/models/shared/DestinationMssql.md - docs/models/shared/DestinationMssqlLoadType.md - docs/models/shared/DestinationMssqlName.md + - docs/models/shared/DestinationMssqlNoTunnel.md + - docs/models/shared/DestinationMssqlPasswordAuthentication.md + - docs/models/shared/DestinationMssqlSSHKeyAuthentication.md + - docs/models/shared/DestinationMssqlSSHTunnelMethod.md - docs/models/shared/DestinationMssqlSchemasLoadType.md - docs/models/shared/DestinationMssqlSchemasName.md + - docs/models/shared/DestinationMssqlSchemasTunnelMethod.md + - docs/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.md + - docs/models/shared/DestinationMssqlTunnelMethod.md - docs/models/shared/DestinationMssqlV2.md - docs/models/shared/DestinationMssqlV2BulkLoad.md - docs/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.md @@ -707,6 +733,14 @@ generatedFiles: - docs/models/shared/DestinationS3Snappy.md - docs/models/shared/DestinationS3Xz.md - docs/models/shared/DestinationS3Zstandard.md + - docs/models/shared/DestinationSalesforce.md + - docs/models/shared/DestinationSalesforceNone.md + - docs/models/shared/DestinationSalesforceObjectStorageConfiguration.md + - docs/models/shared/DestinationSalesforceS3.md + - docs/models/shared/DestinationSalesforceS3BucketRegion.md + - docs/models/shared/DestinationSalesforceSalesforce.md + - docs/models/shared/DestinationSalesforceSchemasStorageType.md + - docs/models/shared/DestinationSalesforceStorageType.md - docs/models/shared/DestinationSftpJson.md - docs/models/shared/DestinationSnowflake.md - docs/models/shared/DestinationSnowflakeAuthType.md @@ -736,7 +770,7 @@ generatedFiles: - docs/models/shared/DestinationSnowflakeOAuth20.md - docs/models/shared/DestinationSnowflakeSchemasAuthType.md - docs/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.md - - docs/models/shared/DestinationSnowflakeSnowflake.md + - docs/models/shared/DestinationSurrealdb.md - docs/models/shared/DestinationTeradata.md - docs/models/shared/DestinationTeradataAllow.md - docs/models/shared/DestinationTeradataAuthType.md @@ -821,6 +855,7 @@ generatedFiles: - docs/models/shared/Dixa.md - docs/models/shared/Dockerhub.md - docs/models/shared/Docuseal.md + - docs/models/shared/Dolibarr.md - docs/models/shared/Domain.md - docs/models/shared/DomainRegionCode.md - docs/models/shared/DoubleValue.md @@ -838,6 +873,7 @@ generatedFiles: - docs/models/shared/Easypost.md - docs/models/shared/Easypromos.md - docs/models/shared/EbayFinance.md + - docs/models/shared/EbayFulfillment.md - docs/models/shared/Elasticemail.md - docs/models/shared/Elasticsearch.md - docs/models/shared/EmailNotificationConfig.md @@ -871,6 +907,7 @@ generatedFiles: - docs/models/shared/Ezofficeinventory.md - docs/models/shared/FacebookMarketing.md - docs/models/shared/FacebookMarketingCredentials.md + - docs/models/shared/FacebookPages.md - docs/models/shared/Factorial.md - docs/models/shared/Failing.md - docs/models/shared/Fake.md @@ -880,6 +917,7 @@ generatedFiles: - docs/models/shared/Fauna.md - docs/models/shared/FieldNameMappingConfigModel.md - docs/models/shared/FieldRenaming.md + - docs/models/shared/Fields.md - docs/models/shared/File.md - docs/models/shared/FileBasedStreamConfig.md - docs/models/shared/FileFormat.md @@ -925,7 +963,7 @@ generatedFiles: - docs/models/shared/GCSBucketRegion.md - docs/models/shared/GCSGoogleCloudStorage.md - docs/models/shared/GCSStaging.md - - docs/models/shared/GCSTmpFilesAfterwardProcessing.md + - docs/models/shared/GCSTmpFilesPostProcessing.md - docs/models/shared/GainsightPx.md - docs/models/shared/Gcs.md - docs/models/shared/GcsCredentials.md @@ -1035,6 +1073,7 @@ generatedFiles: - docs/models/shared/JobsResponse.md - docs/models/shared/Jotform.md - docs/models/shared/JsonlFormat.md + - docs/models/shared/JudgeMeReviews.md - docs/models/shared/JustSift.md - docs/models/shared/Justcall.md - docs/models/shared/K6Cloud.md @@ -1060,6 +1099,7 @@ generatedFiles: - docs/models/shared/LeverHiring.md - docs/models/shared/LeverHiringCredentials.md - docs/models/shared/LightspeedRetail.md + - docs/models/shared/Linear.md - docs/models/shared/LinkedinAds.md - docs/models/shared/LinkedinAdsCredentials.md - docs/models/shared/LinkedinPages.md @@ -1091,6 +1131,7 @@ generatedFiles: - docs/models/shared/Marketstack.md - docs/models/shared/Mendeley.md - docs/models/shared/Mention.md + - docs/models/shared/MercadoAds.md - docs/models/shared/Merge.md - docs/models/shared/Metabase.md - docs/models/shared/Method.md @@ -1166,11 +1207,12 @@ generatedFiles: - docs/models/shared/OAuth20Credentials.md - docs/models/shared/OAuth20WithPrivateKey.md - docs/models/shared/OAuth2AccessToken.md + - docs/models/shared/OAuth2Authentication.md - docs/models/shared/OAuth2ConfidentialApplication.md - docs/models/shared/OAuth2Recommended.md - docs/models/shared/OAuthActorNames.md - - docs/models/shared/OAuthCredentialsConfiguration.md - docs/models/shared/OauthAuthentication.md + - docs/models/shared/ObjectStorageConfiguration.md - docs/models/shared/Okta.md - docs/models/shared/Omnisend.md - docs/models/shared/Oncehub.md @@ -1181,6 +1223,7 @@ generatedFiles: - docs/models/shared/OpenAI.md - docs/models/shared/OpenAICompatible.md - docs/models/shared/OpenDataDc.md + - docs/models/shared/OpenExchangeRates.md - docs/models/shared/Openaq.md - docs/models/shared/Openfda.md - docs/models/shared/Openweather.md @@ -1189,10 +1232,12 @@ generatedFiles: - docs/models/shared/Opsgenie.md - docs/models/shared/OptionTitle.md - docs/models/shared/OptionsList.md + - docs/models/shared/Opuswatch.md - docs/models/shared/OrGroup.md - docs/models/shared/Oracle.md - docs/models/shared/OracleEnterprise.md - docs/models/shared/Orb.md + - docs/models/shared/OrganizationOAuthCredentialsRequest.md - docs/models/shared/OrganizationResponse.md - docs/models/shared/OrganizationsResponse.md - docs/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.md @@ -1275,6 +1320,7 @@ generatedFiles: - docs/models/shared/Productboard.md - docs/models/shared/Productive.md - docs/models/shared/ProjectSecret.md + - docs/models/shared/Protocol.md - docs/models/shared/PublicPermissionType.md - docs/models/shared/Pubsub.md - docs/models/shared/Pypi.md @@ -1391,6 +1437,8 @@ generatedFiles: - docs/models/shared/SftpBulk.md - docs/models/shared/SftpJson.md - docs/models/shared/ShareTypeUsedForMostPopularSharedStream.md + - docs/models/shared/SharepointEnterprise.md + - docs/models/shared/SharepointEnterpriseCredentials.md - docs/models/shared/Sharetribe.md - docs/models/shared/Shippo.md - docs/models/shared/Shipstation.md @@ -1425,7 +1473,6 @@ generatedFiles: - docs/models/shared/Snowflake.md - docs/models/shared/SnowflakeConnection.md - docs/models/shared/SnowflakeCortex.md - - docs/models/shared/SnowflakeCredentials.md - docs/models/shared/SolarwindsServiceDesk.md - docs/models/shared/SonarCloud.md - docs/models/shared/SortBy.md @@ -1462,6 +1509,7 @@ generatedFiles: - docs/models/shared/SourceAppfigures.md - docs/models/shared/SourceAppfollow.md - docs/models/shared/SourceAppleSearchAds.md + - docs/models/shared/SourceAppsflyer.md - docs/models/shared/SourceApptivo.md - docs/models/shared/SourceAsana.md - docs/models/shared/SourceAsanaAsana.md @@ -1474,6 +1522,7 @@ generatedFiles: - docs/models/shared/SourceAuth0SchemasAuthenticationMethod.md - docs/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.md - docs/models/shared/SourceAviationstack.md + - docs/models/shared/SourceAwinAdvertiser.md - docs/models/shared/SourceAwsCloudtrail.md - docs/models/shared/SourceAzureBlobStorage.md - docs/models/shared/SourceAzureBlobStorageAuthType.md @@ -1534,6 +1583,7 @@ generatedFiles: - docs/models/shared/SourceChargedesk.md - docs/models/shared/SourceChargify.md - docs/models/shared/SourceChartmogul.md + - docs/models/shared/SourceChurnkey.md - docs/models/shared/SourceCimis.md - docs/models/shared/SourceCin7.md - docs/models/shared/SourceCirca.md @@ -1567,6 +1617,9 @@ generatedFiles: - docs/models/shared/SourceConfiguration.md - docs/models/shared/SourceConfluence.md - docs/models/shared/SourceConvertkit.md + - docs/models/shared/SourceConvertkitAuthType.md + - docs/models/shared/SourceConvertkitOAuth20.md + - docs/models/shared/SourceConvertkitSchemasAuthType.md - docs/models/shared/SourceConvex.md - docs/models/shared/SourceConvexConvex.md - docs/models/shared/SourceCopper.md @@ -1574,6 +1627,7 @@ generatedFiles: - docs/models/shared/SourceCountercyclical.md - docs/models/shared/SourceCreateRequest.md - docs/models/shared/SourceCustomerIo.md + - docs/models/shared/SourceCustomerIoCustomerIo.md - docs/models/shared/SourceCustomerly.md - docs/models/shared/SourceDatadog.md - docs/models/shared/SourceDatascope.md @@ -1584,6 +1638,7 @@ generatedFiles: - docs/models/shared/SourceDixa.md - docs/models/shared/SourceDockerhub.md - docs/models/shared/SourceDocuseal.md + - docs/models/shared/SourceDolibarr.md - docs/models/shared/SourceDremio.md - docs/models/shared/SourceDrift.md - docs/models/shared/SourceDriftAuthorizationMethod.md @@ -1605,7 +1660,19 @@ generatedFiles: - docs/models/shared/SourceEasypost.md - docs/models/shared/SourceEasypromos.md - docs/models/shared/SourceEbayFinance.md + - docs/models/shared/SourceEbayFulfillment.md + - docs/models/shared/SourceEbayFulfillmentAPIHost.md + - docs/models/shared/SourceEbayFulfillmentRefreshTokenEndpoint.md - docs/models/shared/SourceElasticemail.md + - docs/models/shared/SourceElasticsearch.md + - docs/models/shared/SourceElasticsearchApiKeySecret.md + - docs/models/shared/SourceElasticsearchAuthenticationMethod.md + - docs/models/shared/SourceElasticsearchElasticsearch.md + - docs/models/shared/SourceElasticsearchMethod.md + - docs/models/shared/SourceElasticsearchNone.md + - docs/models/shared/SourceElasticsearchSchemasAuthenticationMethodMethod.md + - docs/models/shared/SourceElasticsearchSchemasMethod.md + - docs/models/shared/SourceElasticsearchUsernamePassword.md - docs/models/shared/SourceEmailoctopus.md - docs/models/shared/SourceEmploymentHero.md - docs/models/shared/SourceEncharge.md @@ -1616,13 +1683,13 @@ generatedFiles: - docs/models/shared/SourceExchangeRates.md - docs/models/shared/SourceEzofficeinventory.md - docs/models/shared/SourceFacebookMarketing.md - - docs/models/shared/SourceFacebookMarketingActionReportTime.md - docs/models/shared/SourceFacebookMarketingAuthType.md - docs/models/shared/SourceFacebookMarketingAuthentication.md - docs/models/shared/SourceFacebookMarketingFacebookMarketing.md - docs/models/shared/SourceFacebookMarketingSchemasAuthType.md - docs/models/shared/SourceFacebookMarketingServiceAccountKeyAuthentication.md - docs/models/shared/SourceFacebookMarketingValidEnums.md + - docs/models/shared/SourceFacebookPages.md - docs/models/shared/SourceFactorial.md - docs/models/shared/SourceFaker.md - docs/models/shared/SourceFastbill.md @@ -1703,6 +1770,7 @@ generatedFiles: - docs/models/shared/SourceGithub.md - docs/models/shared/SourceGithubAuthentication.md - docs/models/shared/SourceGithubGithub.md + - docs/models/shared/SourceGithubOAuth.md - docs/models/shared/SourceGithubOptionTitle.md - docs/models/shared/SourceGithubPersonalAccessToken.md - docs/models/shared/SourceGitlab.md @@ -1995,6 +2063,7 @@ generatedFiles: - docs/models/shared/SourceGooglePagespeedInsights.md - docs/models/shared/SourceGoogleSearchConsole.md - docs/models/shared/SourceGoogleSearchConsoleAuthType.md + - docs/models/shared/SourceGoogleSearchConsoleAuthenticationType.md - docs/models/shared/SourceGoogleSearchConsoleCustomReportConfig.md - docs/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.md - docs/models/shared/SourceGoogleSearchConsoleOAuth.md @@ -2060,6 +2129,7 @@ generatedFiles: - docs/models/shared/SourceJotform.md - docs/models/shared/SourceJotformApiEndpoint.md - docs/models/shared/SourceJotformSchemasApiEndpoint.md + - docs/models/shared/SourceJudgeMeReviews.md - docs/models/shared/SourceJustSift.md - docs/models/shared/SourceJustcall.md - docs/models/shared/SourceK6Cloud.md @@ -2083,6 +2153,7 @@ generatedFiles: - docs/models/shared/SourceLeverHiringLeverHiring.md - docs/models/shared/SourceLeverHiringSchemasAuthType.md - docs/models/shared/SourceLightspeedRetail.md + - docs/models/shared/SourceLinear.md - docs/models/shared/SourceLinkedinAds.md - docs/models/shared/SourceLinkedinAdsAccessToken.md - docs/models/shared/SourceLinkedinAdsAuthMethod.md @@ -2102,6 +2173,7 @@ generatedFiles: - docs/models/shared/SourceLooker.md - docs/models/shared/SourceLuma.md - docs/models/shared/SourceMailchimp.md + - docs/models/shared/SourceMailchimpAPIKey.md - docs/models/shared/SourceMailchimpAuthType.md - docs/models/shared/SourceMailchimpAuthentication.md - docs/models/shared/SourceMailchimpMailchimp.md @@ -2118,6 +2190,7 @@ generatedFiles: - docs/models/shared/SourceMarketstack.md - docs/models/shared/SourceMendeley.md - docs/models/shared/SourceMention.md + - docs/models/shared/SourceMercadoAds.md - docs/models/shared/SourceMerge.md - docs/models/shared/SourceMetabase.md - docs/models/shared/SourceMicrosoftDataverse.md @@ -2270,6 +2343,7 @@ generatedFiles: - docs/models/shared/SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor.md - docs/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethod.md - docs/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.md + - docs/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod.md - docs/models/shared/SourceNetsuiteEnterpriseSchemasPasswordAuthentication.md - docs/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethod.md - docs/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethodTunnelMethod.md @@ -2308,11 +2382,13 @@ generatedFiles: - docs/models/shared/SourceOnesignal.md - docs/models/shared/SourceOnfleet.md - docs/models/shared/SourceOpenDataDc.md + - docs/models/shared/SourceOpenExchangeRates.md - docs/models/shared/SourceOpenaq.md - docs/models/shared/SourceOpenfda.md - docs/models/shared/SourceOpenweather.md - docs/models/shared/SourceOpinionStage.md - docs/models/shared/SourceOpsgenie.md + - docs/models/shared/SourceOpuswatch.md - docs/models/shared/SourceOracle.md - docs/models/shared/SourceOracleConnectionType.md - docs/models/shared/SourceOracleEncryption.md @@ -2604,6 +2680,47 @@ generatedFiles: - docs/models/shared/SourceSftpPasswordAuthentication.md - docs/models/shared/SourceSftpSSHKeyAuthentication.md - docs/models/shared/SourceSftpSchemasAuthMethod.md + - docs/models/shared/SourceSharepointEnterprise.md + - docs/models/shared/SourceSharepointEnterpriseAuthType.md + - docs/models/shared/SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth.md + - docs/models/shared/SourceSharepointEnterpriseAuthentication.md + - docs/models/shared/SourceSharepointEnterpriseAutogenerated.md + - docs/models/shared/SourceSharepointEnterpriseAvroFormat.md + - docs/models/shared/SourceSharepointEnterpriseCSVFormat.md + - docs/models/shared/SourceSharepointEnterpriseCSVHeaderDefinition.md + - docs/models/shared/SourceSharepointEnterpriseCopyRawFiles.md + - docs/models/shared/SourceSharepointEnterpriseDeliveryMethod.md + - docs/models/shared/SourceSharepointEnterpriseDeliveryType.md + - docs/models/shared/SourceSharepointEnterpriseExcelFormat.md + - docs/models/shared/SourceSharepointEnterpriseFileBasedStreamConfig.md + - docs/models/shared/SourceSharepointEnterpriseFiletype.md + - docs/models/shared/SourceSharepointEnterpriseFormat.md + - docs/models/shared/SourceSharepointEnterpriseFromCSV.md + - docs/models/shared/SourceSharepointEnterpriseHeaderDefinitionType.md + - docs/models/shared/SourceSharepointEnterpriseJsonlFormat.md + - docs/models/shared/SourceSharepointEnterpriseLocal.md + - docs/models/shared/SourceSharepointEnterpriseMode.md + - docs/models/shared/SourceSharepointEnterpriseParquetFormat.md + - docs/models/shared/SourceSharepointEnterpriseParsingStrategy.md + - docs/models/shared/SourceSharepointEnterpriseProcessing.md + - docs/models/shared/SourceSharepointEnterpriseReplicatePermissionsACL.md + - docs/models/shared/SourceSharepointEnterpriseReplicateRecords.md + - docs/models/shared/SourceSharepointEnterpriseSchemasAuthType.md + - docs/models/shared/SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType.md + - docs/models/shared/SourceSharepointEnterpriseSchemasDeliveryType.md + - docs/models/shared/SourceSharepointEnterpriseSchemasFiletype.md + - docs/models/shared/SourceSharepointEnterpriseSchemasHeaderDefinitionType.md + - docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFiletype.md + - docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFiletype.md + - docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype.md + - docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype.md + - docs/models/shared/SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType.md + - docs/models/shared/SourceSharepointEnterpriseSearchScope.md + - docs/models/shared/SourceSharepointEnterpriseServiceKeyAuthentication.md + - docs/models/shared/SourceSharepointEnterpriseSharepointEnterprise.md + - docs/models/shared/SourceSharepointEnterpriseUnstructuredDocumentFormat.md + - docs/models/shared/SourceSharepointEnterpriseUserProvided.md + - docs/models/shared/SourceSharepointEnterpriseValidationPolicy.md - docs/models/shared/SourceSharetribe.md - docs/models/shared/SourceShippo.md - docs/models/shared/SourceShipstation.md @@ -2642,17 +2759,19 @@ generatedFiles: - docs/models/shared/SourceSnowflake.md - docs/models/shared/SourceSnowflakeAuthType.md - docs/models/shared/SourceSnowflakeAuthorizationMethod.md + - docs/models/shared/SourceSnowflakeCursorMethod.md - docs/models/shared/SourceSnowflakeKeyPairAuthentication.md - - docs/models/shared/SourceSnowflakeOAuth20.md + - docs/models/shared/SourceSnowflakeScanChangesWithUserDefinedCursor.md - docs/models/shared/SourceSnowflakeSchemasAuthType.md - - docs/models/shared/SourceSnowflakeSchemasCredentialsAuthType.md - docs/models/shared/SourceSnowflakeSnowflake.md + - docs/models/shared/SourceSnowflakeUpdateMethod.md - docs/models/shared/SourceSnowflakeUsernameAndPassword.md - docs/models/shared/SourceSolarwindsServiceDesk.md - docs/models/shared/SourceSonarCloud.md - docs/models/shared/SourceSpacexApi.md - docs/models/shared/SourceSparkpost.md - docs/models/shared/SourceSplitIo.md + - docs/models/shared/SourceSpotifyAds.md - docs/models/shared/SourceSpotlercrm.md - docs/models/shared/SourceSquare.md - docs/models/shared/SourceSquareAPIKey.md @@ -2683,6 +2802,7 @@ generatedFiles: - docs/models/shared/SourceTheGuardianApi.md - docs/models/shared/SourceThinkific.md - docs/models/shared/SourceThinkificCourses.md + - docs/models/shared/SourceThriveLearning.md - docs/models/shared/SourceTicketmaster.md - docs/models/shared/SourceTickettailor.md - docs/models/shared/SourceTiktokMarketing.md @@ -2723,6 +2843,7 @@ generatedFiles: - docs/models/shared/SourceUbidots.md - docs/models/shared/SourceUnleash.md - docs/models/shared/SourceUppromote.md + - docs/models/shared/SourceUptick.md - docs/models/shared/SourceUsCensus.md - docs/models/shared/SourceUservoice.md - docs/models/shared/SourceVantage.md @@ -2817,6 +2938,7 @@ generatedFiles: - docs/models/shared/SpacexApi.md - docs/models/shared/Sparkpost.md - docs/models/shared/SplitIo.md + - docs/models/shared/SpotifyAds.md - docs/models/shared/Spotlercrm.md - docs/models/shared/Square.md - docs/models/shared/Squarespace.md @@ -2829,19 +2951,21 @@ generatedFiles: - docs/models/shared/Stockdata.md - docs/models/shared/Storage.md - docs/models/shared/StorageProvider.md + - docs/models/shared/StorageType.md - docs/models/shared/Strategies.md - docs/models/shared/Strava.md - docs/models/shared/StreamConfiguration.md - docs/models/shared/StreamConfigurations.md - docs/models/shared/StreamConfigurationsInput.md - docs/models/shared/StreamMapperType.md - - docs/models/shared/StreamMapping.md + - docs/models/shared/StreamNameOverrides.md - docs/models/shared/StreamProperties.md - docs/models/shared/StreamsCriteria.md - docs/models/shared/StringFilter.md - docs/models/shared/Stripe.md - docs/models/shared/Subdomain.md - docs/models/shared/SubtitleFormat.md + - docs/models/shared/Surrealdb.md - docs/models/shared/SurveyMonkeyAuthorizationMethod.md - docs/models/shared/SurveySparrow.md - docs/models/shared/Surveymonkey.md @@ -2874,6 +2998,7 @@ generatedFiles: - docs/models/shared/TheTargetedActionResourceForTheFetch.md - docs/models/shared/Thinkific.md - docs/models/shared/ThinkificCourses.md + - docs/models/shared/ThriveLearning.md - docs/models/shared/Throttled.md - docs/models/shared/Ticketmaster.md - docs/models/shared/Tickettailor.md @@ -2896,7 +3021,6 @@ generatedFiles: - docs/models/shared/TokenBasedAuthentication.md - docs/models/shared/TopHeadlinesTopic.md - docs/models/shared/TrackPms.md - - docs/models/shared/TransformationQueryRunType.md - docs/models/shared/Trello.md - docs/models/shared/Tremendous.md - docs/models/shared/Trustpilot.md @@ -2907,6 +3031,7 @@ generatedFiles: - docs/models/shared/TwilioTaskrouter.md - docs/models/shared/Twitter.md - docs/models/shared/TyntecSms.md + - docs/models/shared/Type.md - docs/models/shared/Typeform.md - docs/models/shared/TypeformCredentials.md - docs/models/shared/Typesense.md @@ -2920,9 +3045,9 @@ generatedFiles: - docs/models/shared/UpdateDeclarativeSourceDefinitionRequest.md - docs/models/shared/UpdateDefinitionRequest.md - docs/models/shared/UpdateMethod.md - - docs/models/shared/UpdateMode.md - docs/models/shared/UploadingMethod.md - docs/models/shared/Uppromote.md + - docs/models/shared/Uptick.md - docs/models/shared/UrlBase.md - docs/models/shared/UsCensus.md - docs/models/shared/UserProvided.md @@ -3014,7 +3139,6 @@ generatedFiles: - docs/models/shared/ZonkaFeedback.md - docs/models/shared/Zoom.md - docs/models/shared/Zstandard.md - - docs/sdks/airbyte/README.md - docs/sdks/connections/README.md - docs/sdks/declarativesourcedefinitions/README.md - docs/sdks/destinationdefinitions/README.md @@ -3029,13 +3153,37 @@ generatedFiles: - docs/sdks/tags/README.md - docs/sdks/users/README.md - docs/sdks/workspaces/README.md + - docs/utils/Blob.md - gradle.properties - gradle/wrapper/gradle-wrapper.jar - gradle/wrapper/gradle-wrapper.properties - gradlew - gradlew.bat + - publishing.gradle - settings.gradle + - spring/api-spring-boot-autoconfigure/build.gradle + - spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ApiAutoConfig.java + - spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ApiAutoConfigProperties.java + - spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ConditionalOnPropertyPrefix.java + - spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/OnPropertyPrefixCondition.java + - spring/api-spring-boot-autoconfigure/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports + - spring/api-spring-boot-starter/build.gradle - src/main/java/com/airbyte/api/Airbyte.java + - src/main/java/com/airbyte/api/AsyncAirbyte.java + - src/main/java/com/airbyte/api/AsyncConnections.java + - src/main/java/com/airbyte/api/AsyncDeclarativeSourceDefinitions.java + - src/main/java/com/airbyte/api/AsyncDestinationDefinitions.java + - src/main/java/com/airbyte/api/AsyncDestinations.java + - src/main/java/com/airbyte/api/AsyncHealth.java + - src/main/java/com/airbyte/api/AsyncJobs.java + - src/main/java/com/airbyte/api/AsyncOrganizations.java + - src/main/java/com/airbyte/api/AsyncPermissions.java + - src/main/java/com/airbyte/api/AsyncSourceDefinitions.java + - src/main/java/com/airbyte/api/AsyncSources.java + - src/main/java/com/airbyte/api/AsyncStreams.java + - src/main/java/com/airbyte/api/AsyncTags.java + - src/main/java/com/airbyte/api/AsyncUsers.java + - src/main/java/com/airbyte/api/AsyncWorkspaces.java - src/main/java/com/airbyte/api/Connections.java - src/main/java/com/airbyte/api/DeclarativeSourceDefinitions.java - src/main/java/com/airbyte/api/DestinationDefinitions.java @@ -3055,6 +3203,65 @@ generatedFiles: - src/main/java/com/airbyte/api/hooks/ClientCredentialsHook.java - src/main/java/com/airbyte/api/models/errors/AuthException.java - src/main/java/com/airbyte/api/models/errors/SDKError.java + - src/main/java/com/airbyte/api/models/errors/UncheckedSDKError.java + - src/main/java/com/airbyte/api/models/operations//async/CancelJobRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateConnectionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateDeclarativeSourceDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateDestinationDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateDestinationRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateJobRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreatePermissionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateSourceDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateSourceRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateTagRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/CreateWorkspaceRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/DeleteConnectionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/DeleteDeclarativeSourceDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/DeleteDestinationDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/DeleteDestinationRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/DeletePermissionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/DeleteSourceDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/DeleteSourceRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/DeleteTagRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/DeleteWorkspaceRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetConnectionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetDeclarativeSourceDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetDestinationDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetDestinationRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetHealthCheckRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetJobRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetPermissionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetSourceDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetSourceRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetStreamPropertiesRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetTagRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/GetWorkspaceRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/InitiateOAuthRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListConnectionsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListDeclarativeSourceDefinitionsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListDestinationDefinitionsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListDestinationsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListJobsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListOrganizationsForUserRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListPermissionsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListSourceDefinitionsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListSourcesRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListTagsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListUsersWithinAnOrganizationRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/ListWorkspacesRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/PatchConnectionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/PatchDestinationRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/PatchSourceRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/PutDestinationRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/PutSourceRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/UpdateDeclarativeSourceDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/UpdateDestinationDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/UpdatePermissionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/UpdateSourceDefinitionRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/UpdateTagRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations//async/UpdateWorkspaceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/CancelJobRequest.java - src/main/java/com/airbyte/api/models/operations/CancelJobRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/CancelJobResponse.java @@ -3070,6 +3277,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/CreateDestinationResponse.java - src/main/java/com/airbyte/api/models/operations/CreateJobRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/CreateJobResponse.java + - src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequest.java + - src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder.java + - src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsResponse.java - src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.java - src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java @@ -3198,7 +3408,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/PutSourceRequest.java - src/main/java/com/airbyte/api/models/operations/PutSourceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/PutSourceResponse.java - - src/main/java/com/airbyte/api/models/operations/SDKMethodInterfaces.java - src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionRequest.java - src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionResponse.java @@ -3217,6 +3426,64 @@ generatedFiles: - src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequest.java - src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequestBuilder.java - src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CancelJobResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateConnectionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateDeclarativeSourceDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateDestinationDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateDestinationResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateJobResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateOrganizationOAuthCredentialsResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreatePermissionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateSourceDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateSourceResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateTagResponse.java + - src/main/java/com/airbyte/api/models/operations/async/CreateWorkspaceResponse.java + - src/main/java/com/airbyte/api/models/operations/async/DeleteConnectionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/DeleteDeclarativeSourceDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationResponse.java + - src/main/java/com/airbyte/api/models/operations/async/DeletePermissionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/DeleteSourceDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/DeleteSourceResponse.java + - src/main/java/com/airbyte/api/models/operations/async/DeleteTagResponse.java + - src/main/java/com/airbyte/api/models/operations/async/DeleteWorkspaceResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetConnectionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetDeclarativeSourceDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetDestinationDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetDestinationResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetHealthCheckResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetJobResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetPermissionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetSourceDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetSourceResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetStreamPropertiesResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetTagResponse.java + - src/main/java/com/airbyte/api/models/operations/async/GetWorkspaceResponse.java + - src/main/java/com/airbyte/api/models/operations/async/InitiateOAuthResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListConnectionsResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListDeclarativeSourceDefinitionsResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListDestinationDefinitionsResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListDestinationsResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListJobsResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListOrganizationsForUserResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListPermissionsResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListSourceDefinitionsResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListSourcesResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListTagsResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListUsersWithinAnOrganizationResponse.java + - src/main/java/com/airbyte/api/models/operations/async/ListWorkspacesResponse.java + - src/main/java/com/airbyte/api/models/operations/async/PatchConnectionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/PatchDestinationResponse.java + - src/main/java/com/airbyte/api/models/operations/async/PatchSourceResponse.java + - src/main/java/com/airbyte/api/models/operations/async/PutDestinationResponse.java + - src/main/java/com/airbyte/api/models/operations/async/PutSourceResponse.java + - src/main/java/com/airbyte/api/models/operations/async/UpdateDeclarativeSourceDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/UpdateDestinationDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/UpdatePermissionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/UpdateSourceDefinitionResponse.java + - src/main/java/com/airbyte/api/models/operations/async/UpdateTagResponse.java + - src/main/java/com/airbyte/api/models/operations/async/UpdateWorkspaceResponse.java - src/main/java/com/airbyte/api/models/shared/APIAccessToken.java - src/main/java/com/airbyte/api/models/shared/APIEndpoint.java - src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java @@ -3261,6 +3528,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Appfollow.java - src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java - src/main/java/com/airbyte/api/models/shared/Applications.java + - src/main/java/com/airbyte/api/models/shared/Appsflyer.java - src/main/java/com/airbyte/api/models/shared/Apptivo.java - src/main/java/com/airbyte/api/models/shared/Asana.java - src/main/java/com/airbyte/api/models/shared/AsanaCredentials.java @@ -3305,6 +3573,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Aviationstack.java - src/main/java/com/airbyte/api/models/shared/AvroApacheAvro.java - src/main/java/com/airbyte/api/models/shared/AvroFormat.java + - src/main/java/com/airbyte/api/models/shared/AwinAdvertiser.java - src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java - src/main/java/com/airbyte/api/models/shared/AwsDatalake.java - src/main/java/com/airbyte/api/models/shared/AzBlobAzureBlobStorage.java @@ -3345,6 +3614,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/ByProgrammingLanguage.java - src/main/java/com/airbyte/api/models/shared/BySeparator.java - src/main/java/com/airbyte/api/models/shared/Bzip2.java + - src/main/java/com/airbyte/api/models/shared/CDCDeletionMode.java - src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java - src/main/java/com/airbyte/api/models/shared/CSVFormat.java - src/main/java/com/airbyte/api/models/shared/CSVHeaderDefinition.java @@ -3371,6 +3641,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Chargify.java - src/main/java/com/airbyte/api/models/shared/Chartmogul.java - src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java + - src/main/java/com/airbyte/api/models/shared/Churnkey.java - src/main/java/com/airbyte/api/models/shared/Cimis.java - src/main/java/com/airbyte/api/models/shared/Cin7.java - src/main/java/com/airbyte/api/models/shared/Circa.java @@ -3387,7 +3658,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Cloudbeds.java - src/main/java/com/airbyte/api/models/shared/ClusterType.java - src/main/java/com/airbyte/api/models/shared/Coassemble.java - - src/main/java/com/airbyte/api/models/shared/Cobra.java - src/main/java/com/airbyte/api/models/shared/Coda.java - src/main/java/com/airbyte/api/models/shared/Codec.java - src/main/java/com/airbyte/api/models/shared/Codefresh.java @@ -3491,10 +3761,14 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationClickhouse.java - src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java - - src/main/java/com/airbyte/api/models/shared/DestinationCobra.java - src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java - src/main/java/com/airbyte/api/models/shared/DestinationConvex.java - src/main/java/com/airbyte/api/models/shared/DestinationCreateRequest.java + - src/main/java/com/airbyte/api/models/shared/DestinationCustomerIo.java + - src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoCredentials.java + - src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoS3.java + - src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoS3BucketRegion.java + - src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoStorageType.java - src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java - src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java - src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java @@ -3510,6 +3784,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationElasticsearch.java - src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNoTunnel.java + - src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNone.java - src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchPasswordAuthentication.java - src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHKeyAuthentication.java - src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHTunnelMethod.java @@ -3552,6 +3827,15 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsAuthentication.java - src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java - src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/DestinationHubspot.java + - src/main/java/com/airbyte/api/models/shared/DestinationHubspotCredentials.java + - src/main/java/com/airbyte/api/models/shared/DestinationHubspotHubspot.java + - src/main/java/com/airbyte/api/models/shared/DestinationHubspotNone.java + - src/main/java/com/airbyte/api/models/shared/DestinationHubspotObjectStorageConfiguration.java + - src/main/java/com/airbyte/api/models/shared/DestinationHubspotS3.java + - src/main/java/com/airbyte/api/models/shared/DestinationHubspotS3BucketRegion.java + - src/main/java/com/airbyte/api/models/shared/DestinationHubspotSchemasStorageType.java + - src/main/java/com/airbyte/api/models/shared/DestinationHubspotStorageType.java - src/main/java/com/airbyte/api/models/shared/DestinationMilvus.java - src/main/java/com/airbyte/api/models/shared/DestinationMilvusAPIToken.java - src/main/java/com/airbyte/api/models/shared/DestinationMilvusAuthentication.java @@ -3598,8 +3882,15 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationMssql.java - src/main/java/com/airbyte/api/models/shared/DestinationMssqlLoadType.java - src/main/java/com/airbyte/api/models/shared/DestinationMssqlName.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlNoTunnel.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlPasswordAuthentication.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHKeyAuthentication.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasLoadType.java - src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasName.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethod.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java + - src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2.java - src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2BulkLoad.java - src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.java @@ -3789,6 +4080,14 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationS3Snappy.java - src/main/java/com/airbyte/api/models/shared/DestinationS3Xz.java - src/main/java/com/airbyte/api/models/shared/DestinationS3Zstandard.java + - src/main/java/com/airbyte/api/models/shared/DestinationSalesforce.java + - src/main/java/com/airbyte/api/models/shared/DestinationSalesforceNone.java + - src/main/java/com/airbyte/api/models/shared/DestinationSalesforceObjectStorageConfiguration.java + - src/main/java/com/airbyte/api/models/shared/DestinationSalesforceS3.java + - src/main/java/com/airbyte/api/models/shared/DestinationSalesforceS3BucketRegion.java + - src/main/java/com/airbyte/api/models/shared/DestinationSalesforceSalesforce.java + - src/main/java/com/airbyte/api/models/shared/DestinationSalesforceSchemasStorageType.java + - src/main/java/com/airbyte/api/models/shared/DestinationSalesforceStorageType.java - src/main/java/com/airbyte/api/models/shared/DestinationSftpJson.java - src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java @@ -3818,7 +4117,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java - - src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java + - src/main/java/com/airbyte/api/models/shared/DestinationSurrealdb.java - src/main/java/com/airbyte/api/models/shared/DestinationTeradata.java - src/main/java/com/airbyte/api/models/shared/DestinationTeradataAllow.java - src/main/java/com/airbyte/api/models/shared/DestinationTeradataAuthType.java @@ -3903,6 +4202,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Dixa.java - src/main/java/com/airbyte/api/models/shared/Dockerhub.java - src/main/java/com/airbyte/api/models/shared/Docuseal.java + - src/main/java/com/airbyte/api/models/shared/Dolibarr.java - src/main/java/com/airbyte/api/models/shared/Domain.java - src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java - src/main/java/com/airbyte/api/models/shared/DoubleValue.java @@ -3920,6 +4220,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Easypost.java - src/main/java/com/airbyte/api/models/shared/Easypromos.java - src/main/java/com/airbyte/api/models/shared/EbayFinance.java + - src/main/java/com/airbyte/api/models/shared/EbayFulfillment.java - src/main/java/com/airbyte/api/models/shared/Elasticemail.java - src/main/java/com/airbyte/api/models/shared/Elasticsearch.java - src/main/java/com/airbyte/api/models/shared/EmailNotificationConfig.java @@ -3953,6 +4254,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java - src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java - src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java + - src/main/java/com/airbyte/api/models/shared/FacebookPages.java - src/main/java/com/airbyte/api/models/shared/Factorial.java - src/main/java/com/airbyte/api/models/shared/Failing.java - src/main/java/com/airbyte/api/models/shared/Fake.java @@ -3962,6 +4264,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Fauna.java - src/main/java/com/airbyte/api/models/shared/FieldNameMappingConfigModel.java - src/main/java/com/airbyte/api/models/shared/FieldRenaming.java + - src/main/java/com/airbyte/api/models/shared/Fields.java - src/main/java/com/airbyte/api/models/shared/File.java - src/main/java/com/airbyte/api/models/shared/FileBasedStreamConfig.java - src/main/java/com/airbyte/api/models/shared/FileFormat.java @@ -4007,7 +4310,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java - src/main/java/com/airbyte/api/models/shared/GCSGoogleCloudStorage.java - src/main/java/com/airbyte/api/models/shared/GCSStaging.java - - src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java + - src/main/java/com/airbyte/api/models/shared/GCSTmpFilesPostProcessing.java - src/main/java/com/airbyte/api/models/shared/GainsightPx.java - src/main/java/com/airbyte/api/models/shared/Gcs.java - src/main/java/com/airbyte/api/models/shared/GcsCredentials.java @@ -4117,6 +4420,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/JobsResponse.java - src/main/java/com/airbyte/api/models/shared/Jotform.java - src/main/java/com/airbyte/api/models/shared/JsonlFormat.java + - src/main/java/com/airbyte/api/models/shared/JudgeMeReviews.java - src/main/java/com/airbyte/api/models/shared/JustSift.java - src/main/java/com/airbyte/api/models/shared/Justcall.java - src/main/java/com/airbyte/api/models/shared/K6Cloud.java @@ -4142,6 +4446,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/LeverHiring.java - src/main/java/com/airbyte/api/models/shared/LeverHiringCredentials.java - src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java + - src/main/java/com/airbyte/api/models/shared/Linear.java - src/main/java/com/airbyte/api/models/shared/LinkedinAds.java - src/main/java/com/airbyte/api/models/shared/LinkedinAdsCredentials.java - src/main/java/com/airbyte/api/models/shared/LinkedinPages.java @@ -4173,6 +4478,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Marketstack.java - src/main/java/com/airbyte/api/models/shared/Mendeley.java - src/main/java/com/airbyte/api/models/shared/Mention.java + - src/main/java/com/airbyte/api/models/shared/MercadoAds.java - src/main/java/com/airbyte/api/models/shared/Merge.java - src/main/java/com/airbyte/api/models/shared/Metabase.java - src/main/java/com/airbyte/api/models/shared/Method.java @@ -4248,11 +4554,12 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/OAuth20Credentials.java - src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java - src/main/java/com/airbyte/api/models/shared/OAuth2AccessToken.java + - src/main/java/com/airbyte/api/models/shared/OAuth2Authentication.java - src/main/java/com/airbyte/api/models/shared/OAuth2ConfidentialApplication.java - src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java - src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java - - src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java - src/main/java/com/airbyte/api/models/shared/OauthAuthentication.java + - src/main/java/com/airbyte/api/models/shared/ObjectStorageConfiguration.java - src/main/java/com/airbyte/api/models/shared/Okta.java - src/main/java/com/airbyte/api/models/shared/Omnisend.java - src/main/java/com/airbyte/api/models/shared/Oncehub.java @@ -4263,6 +4570,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/OpenAI.java - src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java - src/main/java/com/airbyte/api/models/shared/OpenDataDc.java + - src/main/java/com/airbyte/api/models/shared/OpenExchangeRates.java - src/main/java/com/airbyte/api/models/shared/Openaq.java - src/main/java/com/airbyte/api/models/shared/Openfda.java - src/main/java/com/airbyte/api/models/shared/Openweather.java @@ -4271,10 +4579,12 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Opsgenie.java - src/main/java/com/airbyte/api/models/shared/OptionTitle.java - src/main/java/com/airbyte/api/models/shared/OptionsList.java + - src/main/java/com/airbyte/api/models/shared/Opuswatch.java - src/main/java/com/airbyte/api/models/shared/OrGroup.java - src/main/java/com/airbyte/api/models/shared/Oracle.java - src/main/java/com/airbyte/api/models/shared/OracleEnterprise.java - src/main/java/com/airbyte/api/models/shared/Orb.java + - src/main/java/com/airbyte/api/models/shared/OrganizationOAuthCredentialsRequest.java - src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java - src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java - src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java @@ -4357,6 +4667,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Productboard.java - src/main/java/com/airbyte/api/models/shared/Productive.java - src/main/java/com/airbyte/api/models/shared/ProjectSecret.java + - src/main/java/com/airbyte/api/models/shared/Protocol.java - src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java - src/main/java/com/airbyte/api/models/shared/Pubsub.java - src/main/java/com/airbyte/api/models/shared/Pypi.java @@ -4473,6 +4784,8 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SftpBulk.java - src/main/java/com/airbyte/api/models/shared/SftpJson.java - src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java + - src/main/java/com/airbyte/api/models/shared/SharepointEnterprise.java + - src/main/java/com/airbyte/api/models/shared/SharepointEnterpriseCredentials.java - src/main/java/com/airbyte/api/models/shared/Sharetribe.java - src/main/java/com/airbyte/api/models/shared/Shippo.java - src/main/java/com/airbyte/api/models/shared/Shipstation.java @@ -4507,7 +4820,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Snowflake.java - src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java - src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java - - src/main/java/com/airbyte/api/models/shared/SnowflakeCredentials.java - src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java - src/main/java/com/airbyte/api/models/shared/SonarCloud.java - src/main/java/com/airbyte/api/models/shared/SortBy.java @@ -4544,6 +4856,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceAppfigures.java - src/main/java/com/airbyte/api/models/shared/SourceAppfollow.java - src/main/java/com/airbyte/api/models/shared/SourceAppleSearchAds.java + - src/main/java/com/airbyte/api/models/shared/SourceAppsflyer.java - src/main/java/com/airbyte/api/models/shared/SourceApptivo.java - src/main/java/com/airbyte/api/models/shared/SourceAsana.java - src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java @@ -4556,6 +4869,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java - src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java - src/main/java/com/airbyte/api/models/shared/SourceAviationstack.java + - src/main/java/com/airbyte/api/models/shared/SourceAwinAdvertiser.java - src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorage.java - src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java @@ -4616,6 +4930,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceChargedesk.java - src/main/java/com/airbyte/api/models/shared/SourceChargify.java - src/main/java/com/airbyte/api/models/shared/SourceChartmogul.java + - src/main/java/com/airbyte/api/models/shared/SourceChurnkey.java - src/main/java/com/airbyte/api/models/shared/SourceCimis.java - src/main/java/com/airbyte/api/models/shared/SourceCin7.java - src/main/java/com/airbyte/api/models/shared/SourceCirca.java @@ -4649,6 +4964,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java - src/main/java/com/airbyte/api/models/shared/SourceConfluence.java - src/main/java/com/airbyte/api/models/shared/SourceConvertkit.java + - src/main/java/com/airbyte/api/models/shared/SourceConvertkitAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceConvertkitOAuth20.java + - src/main/java/com/airbyte/api/models/shared/SourceConvertkitSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceConvex.java - src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java - src/main/java/com/airbyte/api/models/shared/SourceCopper.java @@ -4656,6 +4974,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceCountercyclical.java - src/main/java/com/airbyte/api/models/shared/SourceCreateRequest.java - src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java + - src/main/java/com/airbyte/api/models/shared/SourceCustomerIoCustomerIo.java - src/main/java/com/airbyte/api/models/shared/SourceCustomerly.java - src/main/java/com/airbyte/api/models/shared/SourceDatadog.java - src/main/java/com/airbyte/api/models/shared/SourceDatascope.java @@ -4666,6 +4985,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceDixa.java - src/main/java/com/airbyte/api/models/shared/SourceDockerhub.java - src/main/java/com/airbyte/api/models/shared/SourceDocuseal.java + - src/main/java/com/airbyte/api/models/shared/SourceDolibarr.java - src/main/java/com/airbyte/api/models/shared/SourceDremio.java - src/main/java/com/airbyte/api/models/shared/SourceDrift.java - src/main/java/com/airbyte/api/models/shared/SourceDriftAuthorizationMethod.java @@ -4687,7 +5007,19 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceEasypost.java - src/main/java/com/airbyte/api/models/shared/SourceEasypromos.java - src/main/java/com/airbyte/api/models/shared/SourceEbayFinance.java + - src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillment.java + - src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillmentAPIHost.java + - src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillmentRefreshTokenEndpoint.java - src/main/java/com/airbyte/api/models/shared/SourceElasticemail.java + - src/main/java/com/airbyte/api/models/shared/SourceElasticsearch.java + - src/main/java/com/airbyte/api/models/shared/SourceElasticsearchApiKeySecret.java + - src/main/java/com/airbyte/api/models/shared/SourceElasticsearchAuthenticationMethod.java + - src/main/java/com/airbyte/api/models/shared/SourceElasticsearchElasticsearch.java + - src/main/java/com/airbyte/api/models/shared/SourceElasticsearchMethod.java + - src/main/java/com/airbyte/api/models/shared/SourceElasticsearchNone.java + - src/main/java/com/airbyte/api/models/shared/SourceElasticsearchSchemasAuthenticationMethodMethod.java + - src/main/java/com/airbyte/api/models/shared/SourceElasticsearchSchemasMethod.java + - src/main/java/com/airbyte/api/models/shared/SourceElasticsearchUsernamePassword.java - src/main/java/com/airbyte/api/models/shared/SourceEmailoctopus.java - src/main/java/com/airbyte/api/models/shared/SourceEmploymentHero.java - src/main/java/com/airbyte/api/models/shared/SourceEncharge.java @@ -4698,13 +5030,13 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java - src/main/java/com/airbyte/api/models/shared/SourceEzofficeinventory.java - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java - - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingServiceAccountKeyAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java + - src/main/java/com/airbyte/api/models/shared/SourceFacebookPages.java - src/main/java/com/airbyte/api/models/shared/SourceFactorial.java - src/main/java/com/airbyte/api/models/shared/SourceFaker.java - src/main/java/com/airbyte/api/models/shared/SourceFastbill.java @@ -4785,6 +5117,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceGithub.java - src/main/java/com/airbyte/api/models/shared/SourceGithubAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java + - src/main/java/com/airbyte/api/models/shared/SourceGithubOAuth.java - src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java - src/main/java/com/airbyte/api/models/shared/SourceGithubPersonalAccessToken.java - src/main/java/com/airbyte/api/models/shared/SourceGitlab.java @@ -5077,6 +5410,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceGooglePagespeedInsights.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsole.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthenticationType.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleCustomReportConfig.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java - src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleOAuth.java @@ -5142,6 +5476,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceJotform.java - src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java - src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java + - src/main/java/com/airbyte/api/models/shared/SourceJudgeMeReviews.java - src/main/java/com/airbyte/api/models/shared/SourceJustSift.java - src/main/java/com/airbyte/api/models/shared/SourceJustcall.java - src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java @@ -5165,6 +5500,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java - src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceLightspeedRetail.java + - src/main/java/com/airbyte/api/models/shared/SourceLinear.java - src/main/java/com/airbyte/api/models/shared/SourceLinkedinAds.java - src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAccessToken.java - src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java @@ -5184,6 +5520,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceLooker.java - src/main/java/com/airbyte/api/models/shared/SourceLuma.java - src/main/java/com/airbyte/api/models/shared/SourceMailchimp.java + - src/main/java/com/airbyte/api/models/shared/SourceMailchimpAPIKey.java - src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java @@ -5200,6 +5537,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceMarketstack.java - src/main/java/com/airbyte/api/models/shared/SourceMendeley.java - src/main/java/com/airbyte/api/models/shared/SourceMention.java + - src/main/java/com/airbyte/api/models/shared/SourceMercadoAds.java - src/main/java/com/airbyte/api/models/shared/SourceMerge.java - src/main/java/com/airbyte/api/models/shared/SourceMetabase.java - src/main/java/com/airbyte/api/models/shared/SourceMicrosoftDataverse.java @@ -5352,6 +5690,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor.java - src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethod.java - src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.java + - src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod.java - src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasPasswordAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethod.java - src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethodTunnelMethod.java @@ -5390,11 +5729,13 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceOnesignal.java - src/main/java/com/airbyte/api/models/shared/SourceOnfleet.java - src/main/java/com/airbyte/api/models/shared/SourceOpenDataDc.java + - src/main/java/com/airbyte/api/models/shared/SourceOpenExchangeRates.java - src/main/java/com/airbyte/api/models/shared/SourceOpenaq.java - src/main/java/com/airbyte/api/models/shared/SourceOpenfda.java - src/main/java/com/airbyte/api/models/shared/SourceOpenweather.java - src/main/java/com/airbyte/api/models/shared/SourceOpinionStage.java - src/main/java/com/airbyte/api/models/shared/SourceOpsgenie.java + - src/main/java/com/airbyte/api/models/shared/SourceOpuswatch.java - src/main/java/com/airbyte/api/models/shared/SourceOracle.java - src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java - src/main/java/com/airbyte/api/models/shared/SourceOracleEncryption.java @@ -5686,6 +6027,47 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceSftpPasswordAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceSftpSSHKeyAuthentication.java - src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterprise.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthentication.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAutogenerated.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAvroFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCSVFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCSVHeaderDefinition.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCopyRawFiles.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseDeliveryMethod.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseDeliveryType.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseExcelFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFileBasedStreamConfig.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFromCSV.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseHeaderDefinitionType.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseJsonlFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseLocal.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseMode.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseParquetFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseParsingStrategy.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseProcessing.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseReplicatePermissionsACL.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseReplicateRecords.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasAuthType.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasDeliveryType.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasHeaderDefinitionType.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSearchScope.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseServiceKeyAuthentication.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSharepointEnterprise.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseUnstructuredDocumentFormat.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseUserProvided.java + - src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseValidationPolicy.java - src/main/java/com/airbyte/api/models/shared/SourceSharetribe.java - src/main/java/com/airbyte/api/models/shared/SourceShippo.java - src/main/java/com/airbyte/api/models/shared/SourceShipstation.java @@ -5724,17 +6106,19 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceSnowflake.java - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java + - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeCursorMethod.java - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java - - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeOAuth20.java + - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeScanChangesWithUserDefinedCursor.java - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java - - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java + - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUpdateMethod.java - src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java - src/main/java/com/airbyte/api/models/shared/SourceSolarwindsServiceDesk.java - src/main/java/com/airbyte/api/models/shared/SourceSonarCloud.java - src/main/java/com/airbyte/api/models/shared/SourceSpacexApi.java - src/main/java/com/airbyte/api/models/shared/SourceSparkpost.java - src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java + - src/main/java/com/airbyte/api/models/shared/SourceSpotifyAds.java - src/main/java/com/airbyte/api/models/shared/SourceSpotlercrm.java - src/main/java/com/airbyte/api/models/shared/SourceSquare.java - src/main/java/com/airbyte/api/models/shared/SourceSquareAPIKey.java @@ -5765,6 +6149,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceTheGuardianApi.java - src/main/java/com/airbyte/api/models/shared/SourceThinkific.java - src/main/java/com/airbyte/api/models/shared/SourceThinkificCourses.java + - src/main/java/com/airbyte/api/models/shared/SourceThriveLearning.java - src/main/java/com/airbyte/api/models/shared/SourceTicketmaster.java - src/main/java/com/airbyte/api/models/shared/SourceTickettailor.java - src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java @@ -5805,6 +6190,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SourceUbidots.java - src/main/java/com/airbyte/api/models/shared/SourceUnleash.java - src/main/java/com/airbyte/api/models/shared/SourceUppromote.java + - src/main/java/com/airbyte/api/models/shared/SourceUptick.java - src/main/java/com/airbyte/api/models/shared/SourceUsCensus.java - src/main/java/com/airbyte/api/models/shared/SourceUservoice.java - src/main/java/com/airbyte/api/models/shared/SourceVantage.java @@ -5899,6 +6285,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/SpacexApi.java - src/main/java/com/airbyte/api/models/shared/Sparkpost.java - src/main/java/com/airbyte/api/models/shared/SplitIo.java + - src/main/java/com/airbyte/api/models/shared/SpotifyAds.java - src/main/java/com/airbyte/api/models/shared/Spotlercrm.java - src/main/java/com/airbyte/api/models/shared/Square.java - src/main/java/com/airbyte/api/models/shared/Squarespace.java @@ -5911,19 +6298,21 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/Stockdata.java - src/main/java/com/airbyte/api/models/shared/Storage.java - src/main/java/com/airbyte/api/models/shared/StorageProvider.java + - src/main/java/com/airbyte/api/models/shared/StorageType.java - src/main/java/com/airbyte/api/models/shared/Strategies.java - src/main/java/com/airbyte/api/models/shared/Strava.java - src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java - src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java - src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java - src/main/java/com/airbyte/api/models/shared/StreamMapperType.java - - src/main/java/com/airbyte/api/models/shared/StreamMapping.java + - src/main/java/com/airbyte/api/models/shared/StreamNameOverrides.java - src/main/java/com/airbyte/api/models/shared/StreamProperties.java - src/main/java/com/airbyte/api/models/shared/StreamsCriteria.java - src/main/java/com/airbyte/api/models/shared/StringFilter.java - src/main/java/com/airbyte/api/models/shared/Stripe.java - src/main/java/com/airbyte/api/models/shared/Subdomain.java - src/main/java/com/airbyte/api/models/shared/SubtitleFormat.java + - src/main/java/com/airbyte/api/models/shared/Surrealdb.java - src/main/java/com/airbyte/api/models/shared/SurveyMonkeyAuthorizationMethod.java - src/main/java/com/airbyte/api/models/shared/SurveySparrow.java - src/main/java/com/airbyte/api/models/shared/Surveymonkey.java @@ -5956,6 +6345,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/TheTargetedActionResourceForTheFetch.java - src/main/java/com/airbyte/api/models/shared/Thinkific.java - src/main/java/com/airbyte/api/models/shared/ThinkificCourses.java + - src/main/java/com/airbyte/api/models/shared/ThriveLearning.java - src/main/java/com/airbyte/api/models/shared/Throttled.java - src/main/java/com/airbyte/api/models/shared/Ticketmaster.java - src/main/java/com/airbyte/api/models/shared/Tickettailor.java @@ -5978,7 +6368,6 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/TokenBasedAuthentication.java - src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java - src/main/java/com/airbyte/api/models/shared/TrackPms.java - - src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java - src/main/java/com/airbyte/api/models/shared/Trello.java - src/main/java/com/airbyte/api/models/shared/Tremendous.java - src/main/java/com/airbyte/api/models/shared/Trustpilot.java @@ -5989,6 +6378,7 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java - src/main/java/com/airbyte/api/models/shared/Twitter.java - src/main/java/com/airbyte/api/models/shared/TyntecSms.java + - src/main/java/com/airbyte/api/models/shared/Type.java - src/main/java/com/airbyte/api/models/shared/Typeform.java - src/main/java/com/airbyte/api/models/shared/TypeformCredentials.java - src/main/java/com/airbyte/api/models/shared/Typesense.java @@ -6002,9 +6392,9 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/UpdateDeclarativeSourceDefinitionRequest.java - src/main/java/com/airbyte/api/models/shared/UpdateDefinitionRequest.java - src/main/java/com/airbyte/api/models/shared/UpdateMethod.java - - src/main/java/com/airbyte/api/models/shared/UpdateMode.java - src/main/java/com/airbyte/api/models/shared/UploadingMethod.java - src/main/java/com/airbyte/api/models/shared/Uppromote.java + - src/main/java/com/airbyte/api/models/shared/Uptick.java - src/main/java/com/airbyte/api/models/shared/UrlBase.java - src/main/java/com/airbyte/api/models/shared/UsCensus.java - src/main/java/com/airbyte/api/models/shared/UserProvided.java @@ -6096,22 +6486,91 @@ generatedFiles: - src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java - src/main/java/com/airbyte/api/models/shared/Zoom.java - src/main/java/com/airbyte/api/models/shared/Zstandard.java + - src/main/java/com/airbyte/api/operations/CancelJob.java + - src/main/java/com/airbyte/api/operations/CreateConnection.java + - src/main/java/com/airbyte/api/operations/CreateDeclarativeSourceDefinition.java + - src/main/java/com/airbyte/api/operations/CreateDestination.java + - src/main/java/com/airbyte/api/operations/CreateDestinationDefinition.java + - src/main/java/com/airbyte/api/operations/CreateJob.java + - src/main/java/com/airbyte/api/operations/CreateOrUpdateOrganizationOAuthCredentials.java + - src/main/java/com/airbyte/api/operations/CreateOrUpdateWorkspaceOAuthCredentials.java + - src/main/java/com/airbyte/api/operations/CreatePermission.java + - src/main/java/com/airbyte/api/operations/CreateSource.java + - src/main/java/com/airbyte/api/operations/CreateSourceDefinition.java + - src/main/java/com/airbyte/api/operations/CreateTag.java + - src/main/java/com/airbyte/api/operations/CreateWorkspace.java + - src/main/java/com/airbyte/api/operations/DeleteConnection.java + - src/main/java/com/airbyte/api/operations/DeleteDeclarativeSourceDefinition.java + - src/main/java/com/airbyte/api/operations/DeleteDestination.java + - src/main/java/com/airbyte/api/operations/DeleteDestinationDefinition.java + - src/main/java/com/airbyte/api/operations/DeletePermission.java + - src/main/java/com/airbyte/api/operations/DeleteSource.java + - src/main/java/com/airbyte/api/operations/DeleteSourceDefinition.java + - src/main/java/com/airbyte/api/operations/DeleteTag.java + - src/main/java/com/airbyte/api/operations/DeleteWorkspace.java + - src/main/java/com/airbyte/api/operations/GetConnection.java + - src/main/java/com/airbyte/api/operations/GetDeclarativeSourceDefinition.java + - src/main/java/com/airbyte/api/operations/GetDestination.java + - src/main/java/com/airbyte/api/operations/GetDestinationDefinition.java + - src/main/java/com/airbyte/api/operations/GetHealthCheck.java + - src/main/java/com/airbyte/api/operations/GetJob.java + - src/main/java/com/airbyte/api/operations/GetPermission.java + - src/main/java/com/airbyte/api/operations/GetSource.java + - src/main/java/com/airbyte/api/operations/GetSourceDefinition.java + - src/main/java/com/airbyte/api/operations/GetStreamProperties.java + - src/main/java/com/airbyte/api/operations/GetTag.java + - src/main/java/com/airbyte/api/operations/GetWorkspace.java + - src/main/java/com/airbyte/api/operations/InitiateOAuth.java + - src/main/java/com/airbyte/api/operations/ListConnections.java + - src/main/java/com/airbyte/api/operations/ListDeclarativeSourceDefinitions.java + - src/main/java/com/airbyte/api/operations/ListDestinationDefinitions.java + - src/main/java/com/airbyte/api/operations/ListDestinations.java + - src/main/java/com/airbyte/api/operations/ListJobs.java + - src/main/java/com/airbyte/api/operations/ListOrganizationsForUser.java + - src/main/java/com/airbyte/api/operations/ListPermissions.java + - src/main/java/com/airbyte/api/operations/ListSourceDefinitions.java + - src/main/java/com/airbyte/api/operations/ListSources.java + - src/main/java/com/airbyte/api/operations/ListTags.java + - src/main/java/com/airbyte/api/operations/ListUsersWithinAnOrganization.java + - src/main/java/com/airbyte/api/operations/ListWorkspaces.java + - src/main/java/com/airbyte/api/operations/Operations.java + - src/main/java/com/airbyte/api/operations/PatchConnection.java + - src/main/java/com/airbyte/api/operations/PatchDestination.java + - src/main/java/com/airbyte/api/operations/PatchSource.java + - src/main/java/com/airbyte/api/operations/PutDestination.java + - src/main/java/com/airbyte/api/operations/PutSource.java + - src/main/java/com/airbyte/api/operations/UpdateDeclarativeSourceDefinition.java + - src/main/java/com/airbyte/api/operations/UpdateDestinationDefinition.java + - src/main/java/com/airbyte/api/operations/UpdatePermission.java + - src/main/java/com/airbyte/api/operations/UpdateSourceDefinition.java + - src/main/java/com/airbyte/api/operations/UpdateTag.java + - src/main/java/com/airbyte/api/operations/UpdateWorkspace.java + - src/main/java/com/airbyte/api/utils/AsyncHook.java + - src/main/java/com/airbyte/api/utils/AsyncHooks.java + - src/main/java/com/airbyte/api/utils/AsyncResponse.java + - src/main/java/com/airbyte/api/utils/AsyncRetries.java + - src/main/java/com/airbyte/api/utils/AsyncRetryableException.java - src/main/java/com/airbyte/api/utils/BackoffStrategy.java - src/main/java/com/airbyte/api/utils/BigDecimalString.java - src/main/java/com/airbyte/api/utils/BigIntegerString.java + - src/main/java/com/airbyte/api/utils/Blob.java + - src/main/java/com/airbyte/api/utils/BlockingParser.java - src/main/java/com/airbyte/api/utils/Constants.java + - src/main/java/com/airbyte/api/utils/CopiableInputStream.java - src/main/java/com/airbyte/api/utils/Deserializers.java - src/main/java/com/airbyte/api/utils/EventStream.java - - src/main/java/com/airbyte/api/utils/EventStreamLineReader.java - src/main/java/com/airbyte/api/utils/EventStreamMessage.java - - src/main/java/com/airbyte/api/utils/EventStreamReader.java + - src/main/java/com/airbyte/api/utils/Exceptions.java - src/main/java/com/airbyte/api/utils/FormMetadata.java + - src/main/java/com/airbyte/api/utils/Globals.java - src/main/java/com/airbyte/api/utils/HTTPClient.java - src/main/java/com/airbyte/api/utils/HTTPRequest.java - src/main/java/com/airbyte/api/utils/HasSecurity.java - src/main/java/com/airbyte/api/utils/HeaderMetadata.java + - src/main/java/com/airbyte/api/utils/Headers.java - src/main/java/com/airbyte/api/utils/Helpers.java - src/main/java/com/airbyte/api/utils/Hook.java + - src/main/java/com/airbyte/api/utils/HookAdapters.java - src/main/java/com/airbyte/api/utils/Hooks.java - src/main/java/com/airbyte/api/utils/JSON.java - src/main/java/com/airbyte/api/utils/LazySingletonValue.java @@ -6119,6 +6578,7 @@ generatedFiles: - src/main/java/com/airbyte/api/utils/Multipart.java - src/main/java/com/airbyte/api/utils/MultipartFormMetadata.java - src/main/java/com/airbyte/api/utils/NameValue.java + - src/main/java/com/airbyte/api/utils/NonRetryableException.java - src/main/java/com/airbyte/api/utils/OneOfDeserializer.java - src/main/java/com/airbyte/api/utils/Options.java - src/main/java/com/airbyte/api/utils/PathParamsMetadata.java @@ -6127,35 +6587,41 @@ generatedFiles: - src/main/java/com/airbyte/api/utils/QueryParameters.java - src/main/java/com/airbyte/api/utils/QueryParamsMetadata.java - src/main/java/com/airbyte/api/utils/RecordingClient.java + - src/main/java/com/airbyte/api/utils/Reflections.java - src/main/java/com/airbyte/api/utils/RequestBody.java - src/main/java/com/airbyte/api/utils/RequestMetadata.java - src/main/java/com/airbyte/api/utils/Response.java + - src/main/java/com/airbyte/api/utils/ResponseWithBody.java - src/main/java/com/airbyte/api/utils/Retries.java - src/main/java/com/airbyte/api/utils/RetryConfig.java + - src/main/java/com/airbyte/api/utils/RetryableException.java - src/main/java/com/airbyte/api/utils/Security.java - src/main/java/com/airbyte/api/utils/SecurityMetadata.java - src/main/java/com/airbyte/api/utils/SerializedBody.java - src/main/java/com/airbyte/api/utils/SessionManager.java - src/main/java/com/airbyte/api/utils/SpeakeasyHTTPClient.java - src/main/java/com/airbyte/api/utils/SpeakeasyMetadata.java + - src/main/java/com/airbyte/api/utils/StreamingParser.java - src/main/java/com/airbyte/api/utils/TypedObject.java - src/main/java/com/airbyte/api/utils/Types.java - src/main/java/com/airbyte/api/utils/Utf8UrlEncoder.java - src/main/java/com/airbyte/api/utils/Utils.java + - src/main/java/com/airbyte/api/utils/reactive/EventStream.java + - src/main/java/com/airbyte/api/utils/reactive/ReactiveUtils.java examples: createConnection: Connection Creation Request Example: requestBody: - application/json: {"destinationId": "e478de0d-a3a0-475c-b019-25f7dd29e281", "name": "Postgres-to-Bigquery", "namespaceDefinition": "destination", "namespaceFormat": "", "nonBreakingSchemaUpdatesBehavior": "ignore", "prefix": "", "sourceId": "95e66a59-8045-4307-9678-63bc3c9b8c93"} + application/json: {"destinationId": "e478de0d-a3a0-475c-b019-25f7dd29e281", "name": "Postgres-to-Bigquery", "namespaceDefinition": "destination", "namespaceFormat": "${SOURCE_NAMESPACE}", "nonBreakingSchemaUpdatesBehavior": "ignore", "prefix": "", "sourceId": "95e66a59-8045-4307-9678-63bc3c9b8c93"} responses: "200": - application/json: {"configurations": {}, "connectionId": "", "createdAt": 781932, "dataResidency": "", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "deprecated", "tags": [], "workspaceId": ""} + application/json: {"configurations": {}, "connectionId": "", "createdAt": 642031, "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "inactive", "tags": [{"color": "mint green", "name": "", "tagId": "4e7875c8-98ca-46d8-9e2b-5db2a669615b", "workspaceId": "ef411485-bf19-48ac-b928-0f1372a5c77a"}], "workspaceId": ""} Connection Creation Response Example: requestBody: - application/json: {"destinationId": "328ef851-ea7f-4d47-88a5-873822bcbf2d", "namespaceDefinition": "destination", "namespaceFormat": "", "nonBreakingSchemaUpdatesBehavior": "ignore", "prefix": "", "sourceId": "d0b7adc3-b029-40e4-a7c6-957e4827afdb"} + application/json: {"destinationId": "d446b90a-b83f-41d9-b1d6-eaa82f6b9713", "namespaceDefinition": "destination", "namespaceFormat": "${SOURCE_NAMESPACE}", "nonBreakingSchemaUpdatesBehavior": "ignore", "prefix": "", "sourceId": "a2bab3d3-7c90-4e49-ad1d-f4e1db27c748"} responses: "200": - application/json: {"configurations": {}, "connectionId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "createdAt": 640872, "dataResidency": "", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "", "status": "active", "tags": [{"color": "cyan", "name": "", "tagId": "e853523a-fb3a-4e6f-ab07-c3dab5d69d79", "workspaceId": "ebc4c796-c29d-4482-8595-4d13693c59a2"}], "workspaceId": ""} + application/json: {"configurations": {}, "connectionId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "createdAt": 867687, "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "inactive", "tags": [], "workspaceId": ""} deleteConnection: speakeasy-default-delete-connection: parameters: @@ -6168,7 +6634,7 @@ examples: connectionId: "" responses: "200": - application/json: {"configurations": {}, "connectionId": "", "createdAt": 934653, "dataResidency": "", "destinationId": "744cc0ed-7f05-4949-9e60-2a814f90c035", "name": "Postgres To Snowflake", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "status": "deprecated", "tags": [{"color": "plum", "name": "", "tagId": "b4546de2-f321-41c6-9948-142095324d2e", "workspaceId": "17e4951a-e407-4789-8206-b16864ce5f12"}, {"color": "sky blue", "name": "", "tagId": "b4405e44-2947-4837-b244-47b66ef5e8ae", "workspaceId": "918d2ca9-a317-4203-8b6e-805981f43fe2"}], "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"} + application/json: {"configurations": {}, "connectionId": "", "createdAt": 192438, "destinationId": "744cc0ed-7f05-4949-9e60-2a814f90c035", "name": "Postgres To Snowflake", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "status": "deprecated", "tags": [{"color": "violet", "name": "", "tagId": "194c157c-2894-407b-857a-42b2888f8255", "workspaceId": "8afb0bef-dcea-4d49-a3b6-1250c6fb4c5e"}], "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"} listConnections: speakeasy-default-list-connections: parameters: @@ -6178,39 +6644,39 @@ examples: offset: 0 responses: "200": - application/json: {"data": [{"configurations": {}, "connectionId": "", "createdAt": 726733, "dataResidency": "", "destinationId": "", "name": "test-connection", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "deprecated", "tags": [{"color": "grey", "name": "", "tagId": "a57cb08e-c762-471d-8a7a-04783f69e675", "workspaceId": "3c652149-922c-4e01-aac2-001d6f740af7"}, {"color": "white", "name": "", "tagId": "67a4cae4-cdf0-465b-a6aa-51c0435bd42a", "workspaceId": "ced986f7-e9d0-4438-b0f0-4622226f5515"}, {"color": "white", "name": "", "tagId": "6e726826-84d9-475b-9843-2b202970fa01", "workspaceId": "2f301cba-1d84-41d1-9873-2c8d3acb53bb"}], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 808076, "dataResidency": "", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "inactive", "tags": [], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 884379, "dataResidency": "", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "49237019-645d-47d4-b45b-5eddf97775ce", "status": "active", "tags": [{"color": "orange", "name": "", "tagId": "164a228e-17f2-4cbb-832a-554182adc8da", "workspaceId": "6207024d-c903-4e50-8969-f94237c9d7c9"}, {"color": "gold", "name": "", "tagId": "b0cc902b-acff-4def-85ce-25c37e2027ce", "workspaceId": "52bb088a-99ac-49b4-93c4-fdb8fe8d3612"}, {"color": "maroon", "name": "", "tagId": "af798c5c-737f-47ad-95ce-eb405bab6ad1", "workspaceId": "ec04abc4-49b4-4a61-a77f-6c0dd2c2ed68"}], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 584545, "dataResidency": "", "destinationId": "al312fs-0ab1-4f72-9ed7-0b8fc27c5826", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "cron"}, "sourceId": "", "status": "inactive", "tags": [{"color": "teal", "name": "", "tagId": "e17d727d-7971-4e63-bc8a-8443f551b94a", "workspaceId": "40a42bea-9fa7-49d3-858c-d28e26b5d262"}, {"color": "tan", "name": "", "tagId": "7f8a0fc7-e3ff-45a9-bc05-4fb599f3003f", "workspaceId": "2a86dca0-6682-477b-b194-3225cfb3db50"}, {"color": "red", "name": "", "tagId": "15955c87-4dcd-4f1e-8d4c-c9a2ad68d233", "workspaceId": "4564af4a-f7b0-407b-8201-5ce5c0aa5c24"}], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 821882, "dataResidency": "", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "", "status": "active", "tags": [], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 105968, "dataResidency": "", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "active", "tags": [], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 283785, "dataResidency": "auto", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "inactive", "tags": [], "workspaceId": ""}], "next": "https://api.airbyte.com/v1/connections?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/connections?limit=5&offset=0"} + application/json: {"data": [{"configurations": {}, "connectionId": "", "createdAt": 989363, "destinationId": "", "name": "test-connection", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "inactive", "tags": [{"color": "yellow", "name": "", "tagId": "e5c94095-de64-4217-88d8-fa26b6ef1df3", "workspaceId": "c38d1305-546f-41c5-a5d0-6032da1b9fbe"}], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 276037, "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "inactive", "tags": [], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 510915, "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "49237019-645d-47d4-b45b-5eddf97775ce", "status": "deprecated", "tags": [], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 827822, "destinationId": "al312fs-0ab1-4f72-9ed7-0b8fc27c5826", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "deprecated", "tags": [{"color": "yellow", "name": "", "tagId": "e5c94095-de64-4217-88d8-fa26b6ef1df3", "workspaceId": "c38d1305-546f-41c5-a5d0-6032da1b9fbe"}], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 932342, "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "", "status": "deprecated", "tags": [], "workspaceId": ""}, {"configurations": {}, "connectionId": "", "createdAt": 39903, "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "active", "tags": [], "workspaceId": ""}], "next": "https://api.airbyte.com/v1/connections?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/connections?limit=5&offset=0"} patchConnection: Connection Update Request Example: parameters: path: connectionId: "" requestBody: - application/json: {"name": "Postgres-to-Bigquery", "namespaceFormat": ""} + application/json: {"name": "Postgres-to-Bigquery", "namespaceFormat": "${SOURCE_NAMESPACE}"} responses: "200": - application/json: {"configurations": {}, "connectionId": "", "createdAt": 106227, "dataResidency": "", "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "active", "tags": [], "workspaceId": ""} + application/json: {"configurations": {}, "connectionId": "", "createdAt": 45816, "destinationId": "", "name": "", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "", "status": "deprecated", "tags": [{"color": "silver", "name": "", "tagId": "8b1a868d-1d24-4461-8cbf-cce16514e068", "workspaceId": "2f220eb1-831e-4c17-8085-e63fd8b4ee63"}], "workspaceId": ""} Connection Get Response Example: parameters: path: connectionId: "" requestBody: - application/json: {"namespaceFormat": ""} + application/json: {"namespaceFormat": "${SOURCE_NAMESPACE}"} responses: "200": - application/json: {"configurations": {}, "connectionId": "", "createdAt": 287886, "dataResidency": "", "destinationId": "744cc0ed-7f05-4949-9e60-2a814f90c035", "name": "Postgres To Snowflake", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "manual"}, "sourceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "status": "active", "tags": [{"color": "sky blue", "name": "", "tagId": "2532230c-083c-40b4-8513-a87f320dcb52", "workspaceId": "73f7fe79-5e52-4d4f-a4a0-e68d60f6f5f8"}, {"color": "red", "name": "", "tagId": "761f7386-b693-45f8-a46c-01122647425f", "workspaceId": "e8035a4c-bbbe-4aca-9e68-2a0b466b2ded"}], "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"} + application/json: {"configurations": {}, "connectionId": "", "createdAt": 116153, "destinationId": "744cc0ed-7f05-4949-9e60-2a814f90c035", "name": "Postgres To Snowflake", "namespaceDefinition": "destination", "nonBreakingSchemaUpdatesBehavior": "ignore", "schedule": {"scheduleType": "basic"}, "sourceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "status": "deprecated", "tags": [{"color": "silver", "name": "", "tagId": "8b1a868d-1d24-4461-8cbf-cce16514e068", "workspaceId": "2f220eb1-831e-4c17-8085-e63fd8b4ee63"}], "workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"} createDestination: Destination Creation Request Example: requestBody: - application/json: {"configuration": {"host": "instructive-mainstream.com", "port": 1521, "schema": "airbyte", "sid": "", "username": "Robert.Legros98"}, "name": "Postgres", "workspaceId": "2155ae5a-de39-4808-af6a-16fe7b8b4ed2"} + application/json: {"configuration": {"destinationType": "elasticsearch", "endpoint": "", "upsert": true}, "name": "Postgres", "workspaceId": "2155ae5a-de39-4808-af6a-16fe7b8b4ed2"} responses: "200": - application/json: {"configuration": {"database": "", "disable_type_dedupe": false, "host": "grizzled-planula.com", "port": 3306, "ssl": true, "username": "Lempi78"}, "createdAt": 971525, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"destinationType": "milvus", "embedding": {"cohere_key": "", "mode": "cohere"}, "indexing": {"auth": {"mode": "token", "token": ""}, "collection": "", "db": "", "host": "https://my-instance.zone.zillizcloud.com", "text_field": "text", "vector_field": "vector"}, "omit_raw_text": false, "processing": {"chunk_overlap": 0, "chunk_size": 382552, "metadata_fields": ["age"], "text_fields": ["text"]}}, "createdAt": 565566, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Destination Creation Response Example: requestBody: - application/json: {"configuration": {"credential": {"credential_type": "HMAC_KEY", "hmac_key_access_id": "1234567890abcdefghij1234", "hmac_key_secret": "1234567890abcdefghij1234567890ABCDEFGHIJ"}, "format": {"format_type": "JSONL"}, "gcs_bucket_name": "airbyte_sync", "gcs_bucket_path": "data_sync/test", "gcs_bucket_region": "us"}, "name": "", "workspaceId": "3c34f9e3-9028-4cb0-a3a5-9b4797bfc7d8"} + application/json: {"configuration": {"apikey": "", "destinationType": "timeplus", "endpoint": "https://us-west-2.timeplus.cloud/workspace_id"}, "name": "", "workspaceId": "dc693cc0-960d-4c6c-9d1b-05e8bf0c96ba"} responses: "200": - application/json: {"configuration": {"credential": {"credential_type": "HMAC_KEY", "hmac_key_access_id": "1234567890abcdefghij1234", "hmac_key_secret": "1234567890abcdefghij1234567890ABCDEFGHIJ"}, "format": {"flattening": "No flattening", "format_type": "CSV"}, "gcs_bucket_name": "airbyte_sync", "gcs_bucket_path": "data_sync/test", "gcs_bucket_region": "us"}, "createdAt": 144728, "definitionId": "", "destinationId": "af0c3c67-aa61-419f-8922-95b0bf840e86", "destinationType": "", "name": "", "workspaceId": ""} + application/json: {"configuration": {"destinationType": "firestore", "project_id": ""}, "createdAt": 761243, "definitionId": "", "destinationId": "af0c3c67-aa61-419f-8922-95b0bf840e86", "destinationType": "", "name": "", "workspaceId": ""} deleteDestination: speakeasy-default-delete-destination: parameters: @@ -6221,10 +6687,9 @@ examples: parameters: path: destinationId: "" - query: {} responses: "200": - application/json: {"configuration": {"database": "", "disable_type_dedupe": false, "host": "cooperative-brochure.biz", "port": 3306, "ssl": true, "username": "Colt_Greenfelder"}, "createdAt": 243454, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "name": "My Destination", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"destinationType": "milvus", "embedding": {"cohere_key": "", "mode": "cohere"}, "indexing": {"auth": {"mode": "no_auth"}, "collection": "", "db": "", "host": "https://my-instance.zone.zillizcloud.com", "text_field": "text", "vector_field": "vector"}, "omit_raw_text": false, "processing": {"chunk_overlap": 0, "chunk_size": 111881, "metadata_fields": ["age"], "text_fields": ["text"]}}, "createdAt": 583324, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "name": "My Destination", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} listDestinations: speakeasy-default-list-destinations: parameters: @@ -6234,61 +6699,61 @@ examples: offset: 0 responses: "200": - application/json: {"data": [{"configuration": {"catalog_type": {"catalog_type": "GLUE", "database_name": "", "glue_id": ""}, "main_branch_name": "main", "s3_bucket_name": "", "s3_bucket_region": "us-east-1", "warehouse_location": "s3://your-bucket/path/to/store/files/in"}, "createdAt": 51039, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}], "next": "https://api.airbyte.com/v1/destinations?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/destinations?limit=5&offset=0"} + application/json: {"data": [{"configuration": {"bucket_name": "", "credentials": {"aws_access_key_id": "", "aws_secret_access_key": "", "credentials_title": "IAM User"}, "destinationType": "aws-datalake", "glue_catalog_float_as_decimal": false, "lakeformation_database_name": "", "lakeformation_governed_tables": false, "partitioning": "NO PARTITIONING", "region": ""}, "createdAt": 614578, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}], "next": "https://api.airbyte.com/v1/destinations?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/destinations?limit=5&offset=0"} patchDestination: Destination Update Request Example: parameters: path: destinationId: "" requestBody: - application/json: {"configuration": {"api_key": "", "base_url": "https://api.cloud.deepset.ai", "retries": 5, "workspace": ""}, "name": "My Destination"} + application/json: {"configuration": {"destinationType": "duckdb", "destination_path": "/local/destination.duckdb"}, "name": "My Destination"} responses: "200": - application/json: {"configuration": {"embedding": {"api_key": "", "base_url": "https://your-service-name.com", "dimensions": 1536, "model_name": "text-embedding-ada-002"}, "indexing": {"credentials": {"password": "AIRBYTE_PASSWORD"}, "database": "AIRBYTE_DATABASE", "default_schema": "AIRBYTE_SCHEMA", "host": "AIRBYTE_ACCOUNT", "role": "ACCOUNTADMIN", "username": "AIRBYTE_USER", "warehouse": "AIRBYTE_WAREHOUSE"}, "omit_raw_text": false, "processing": {"chunk_overlap": 0, "chunk_size": 708998, "metadata_fields": ["user.name"], "text_fields": ["users.*.name"]}}, "createdAt": 528906, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"destinationType": "s3", "format": {"flattening": "No flattening", "format_type": "JSONL"}, "s3_bucket_name": "airbyte_sync", "s3_bucket_path": "data_sync/test", "s3_bucket_region": "us-east-1"}, "createdAt": 650312, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Destination Update Response Example: parameters: path: destinationId: "" requestBody: - application/json: {"configuration": {"database": "", "host": "flickering-platter.biz", "port": 5432, "schema": "public", "ssl": false, "username": "Cleora_Fisher"}} + application/json: {"configuration": {"credentials": {"client_id": "", "client_secret": "", "refresh_token": "", "type": "OAuth"}, "destinationType": "hubspot"}} responses: "200": - application/json: {"configuration": {"corpus_name": "", "customer_id": "", "oauth2": {"client_id": "", "client_secret": ""}, "parallelize": false, "title_field": ""}, "createdAt": 900273, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"destinationType": "elasticsearch", "endpoint": "", "upsert": true}, "createdAt": 139231, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} putDestination: Destination Update Request Example: parameters: path: destinationId: "" requestBody: - application/json: {"configuration": {"database": "", "host": "urban-receptor.org", "port": 8123, "ssl": false, "username": "Kaylie_Terry"}, "name": "My Destination"} + application/json: {"configuration": {"destinationType": "sftp-json", "destination_path": "/json_data", "host": "slight-consistency.info", "password": "TRmq8ozhIC5jwDd", "port": 22, "username": "Easton_Wilderman"}, "name": "My Destination"} responses: "200": - application/json: {"configuration": {"account": "93341924", "client_id": "bbl9qth066hmxkwyb0hy2iwk8ktez9dz", "client_secret": "", "database": "", "engine": ""}, "createdAt": 706041, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"batching_delay_threshold": 1, "batching_element_count_threshold": 1, "batching_enabled": false, "batching_request_bytes_threshold": 1, "credentials_json": "", "destinationType": "pubsub", "ordering_enabled": false, "project_id": "", "topic_id": ""}, "createdAt": 645507, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "postgres", "name": "Analytics Team Postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Destination Update Response Example: parameters: path: destinationId: "" requestBody: - application/json: {"configuration": {"host": "faraway-lifestyle.biz", "port": 1521, "schema": "airbyte", "sid": "", "username": "Jennie_Veum"}, "name": ""} + application/json: {"configuration": {"auth_type": "Client", "client_id": "", "client_secret": "", "destinationType": "salesforce", "is_sandbox": false, "refresh_token": ""}, "name": ""} responses: "200": - application/json: {"configuration": {"destination_path": "/local/destination.duckdb"}, "createdAt": 877712, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"batching_delay_threshold": 1, "batching_element_count_threshold": 1, "batching_enabled": false, "batching_request_bytes_threshold": 1, "credentials_json": "", "destinationType": "pubsub", "ordering_enabled": false, "project_id": "", "topic_id": ""}, "createdAt": 745025, "definitionId": "", "destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "destinationType": "", "name": "running", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} getHealthCheck: {} cancelJob: speakeasy-default-cancel-job: parameters: path: - jobId: 801771 + jobId: 621441 responses: "200": - application/json: {"connectionId": "", "duration": "PT8H6M12S", "jobId": 278686, "jobType": "sync", "startTime": "2023-03-25T01:30:50Z", "status": "running"} + application/json: {"connectionId": "", "duration": "PT8H6M12S", "jobId": 538925, "jobType": "sync", "startTime": "2023-03-25T01:30:50Z", "status": "running"} createJob: Job Creation Request Example: requestBody: application/json: {"connectionId": "e735894a-e773-4938-969f-45f53957b75b", "jobType": "sync"} responses: "200": - application/json: {"connectionId": "", "duration": "PT8H6M12S", "jobId": 300546, "jobType": "sync", "startTime": "2023-03-25T01:30:50Z", "status": "running"} + application/json: {"connectionId": "", "duration": "PT8H6M12S", "jobId": 166801, "jobType": "sync", "startTime": "2023-03-25T01:30:50Z", "status": "running"} Job Creation Response Example: requestBody: application/json: {"connectionId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "jobType": "sync"} @@ -6299,52 +6764,59 @@ examples: Job Get Response Example: parameters: path: - jobId: 131101 + jobId: 245534 responses: "200": - application/json: {"connectionId": "", "jobId": 471405, "jobType": "sync", "startTime": "", "status": "running"} + application/json: {"connectionId": "", "jobId": 984524, "jobType": "sync", "startTime": "", "status": "running"} listJobs: - "": + speakeasy-default-list-jobs: parameters: query: limit: 20 offset: 0 - createdAtStart: 1687450500000 - createdAtEnd: 1687450500000 - updatedAtStart: 1687450500000 - updatedAtEnd: 1687450500000 + createdAtStart: "2025-03-13T03:03:12.355Z" + createdAtEnd: "2024-01-26T19:55:37.814Z" + updatedAtStart: "2025-03-14T15:48:23.381Z" + updatedAtEnd: "2023-08-25T07:40:47.540Z" orderBy: "updatedAt|DESC" responses: "200": - application/json: {"data": [{"connectionId": "", "jobId": 808104, "jobType": "sync", "startTime": "2023-03-25T01:30:50Z", "status": "running"}], "next": "https://api.airbyte.com/v1/jobs?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/jobs?limit=5&offset=0"} + application/json: {"data": [{"connectionId": "", "jobId": 403522, "jobType": "sync", "startTime": "2023-03-25T01:30:50Z", "status": "running"}], "next": "https://api.airbyte.com/v1/jobs?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/jobs?limit=5&offset=0"} Job List Response Example: parameters: query: limit: 20 offset: 0 - createdAtStart: 1687450500000 - createdAtEnd: 1687450500000 - updatedAtStart: 1687450500000 - updatedAtEnd: 1687450500000 + createdAtStart: "2023-04-15T21:55:04.172Z" + createdAtEnd: "2023-11-06T02:58:38.581Z" + updatedAtStart: "2025-10-05T17:24:30.764Z" + updatedAtEnd: "2024-11-15T07:41:11.221Z" orderBy: "updatedAt|DESC" responses: "200": - application/json: {"data": [{"connectionId": "", "jobId": 4995, "jobType": "sync", "startTime": "", "status": "running"}], "next": "https://api.airbyte.com/v1/jobs?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/jobs?limit=5&offset=0"} + application/json: {"data": [{"connectionId": "", "jobId": 10133, "jobType": "sync", "startTime": "", "status": "running"}], "next": "https://api.airbyte.com/v1/jobs?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/jobs?limit=5&offset=0"} + createOrUpdateOrganizationOAuthCredentials: + speakeasy-default-create-or-update-organization-O-auth-credentials: + parameters: + path: + organizationId: "" + requestBody: + application/json: {"actorType": "source", "configuration": {}, "name": ""} listOrganizationsForUser: speakeasy-default-list-organizations-for-user: responses: "200": - application/json: {"data": [{"email": "Crystal.Wilkinson@gmail.com", "organizationId": "bb2301b7-877b-4fde-af39-87e9479d84dd", "organizationName": ""}, {"email": "Jennie_Turcotte72@yahoo.com", "organizationId": "064bd610-3f4f-43a8-87c2-8b6239bace54", "organizationName": ""}]} + application/json: {"data": []} createPermission: Permission Creation Request Example: requestBody: application/json: {"permissionType": "workspace_admin", "userId": "7d08fd6c-531e-4a00-937e-3d355f253e63", "workspaceId": "9924bcd0-99be-453d-ba47-c2c9766f7da5"} responses: "200": - application/json: {"permissionId": "29c6a69f-f5c0-4ea9-8676-7e72566e1cea", "permissionType": "organization_member", "userId": "216d117b-3179-47b1-b5ff-4586839a8ca5"} + application/json: {"permissionId": "8db4d41a-3cbd-4c98-9157-2a7767722653", "permissionType": "organization_editor", "userId": "a0441ff0-d529-4eda-a351-b1ded72f7cc3"} Permission Creation Response Example: requestBody: - application/json: {"permissionType": "workspace_runner", "userId": "6b986e5c-336a-40db-bbce-b07ab4b96d22"} + application/json: {"permissionType": "workspace_reader", "userId": "dc1309ac-0e0a-43cf-80a3-b39dea83440d"} responses: "200": application/json: {"permissionId": "9924bcd0-99be-453d-ba47-c2c9766f7da5", "permissionType": "workspace_admin", "userId": "7d08fd6c-531e-4a00-937e-3d355f253e63"} @@ -6360,35 +6832,35 @@ examples: permissionId: "" responses: "200": - application/json: {"permissionId": "cabecfd2-37c6-4eb2-bcb8-e08391921e2d", "permissionType": "organization_member", "userId": "b50caf9c-9364-4c63-b7d0-206926e8ed64"} + application/json: {"permissionId": "80ead913-4f76-4c30-ac65-64afc8e8fb04", "permissionType": "organization_member", "userId": "22891774-0d9f-4902-8c59-ddf79174691b"} listPermissions: speakeasy-default-list-permissions: responses: "200": - application/json: {"data": [{"permissionId": "3ad9d46a-fbf6-4142-b512-abdbfa31043e", "permissionType": "organization_reader", "scope": "none", "scopeId": "4d0f846f-00ce-47c0-9a66-45253bd14031", "userId": "4957ad3e-d4c9-4d3d-bb33-5b83f3e63c41"}]} + application/json: {"data": []} updatePermission: speakeasy-default-update-permission: parameters: path: permissionId: "" requestBody: - application/json: {"permissionType": "workspace_owner"} + application/json: {"permissionType": "organization_reader"} responses: "200": - application/json: {"permissionId": "5b7671c5-16bd-4691-a74f-ac5059e6570f", "permissionType": "workspace_editor", "userId": "046f3d8d-80c7-4cd4-acd4-c59bd4fdfc37"} + application/json: {"permissionId": "429c2eb5-15ba-496e-aa86-1041fcf34db8", "permissionType": "organization_member", "userId": "b3bbb99c-2381-4696-afdb-f7ef3db728a2"} createSource: Source Creation Request Example: requestBody: - application/json: {"configuration": {"access_token": "", "consumer_key": "", "favorite": false}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"api_key": "", "password": "x", "sourceType": "onfleet"}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} responses: "200": - application/json: {"configuration": {"api_key_id": "", "auth_token": "", "start_date": "2023-02-19T17:01:56.646Z"}, "createdAt": 218560, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"api_key": "", "lookback_days": 0, "sourceType": "calendly", "start_date": "2023-05-28T11:06:56.258Z"}, "createdAt": 750737, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Source Creation Response Example: requestBody: - application/json: {"configuration": {"api_key": "", "subdomain": ""}, "name": "", "workspaceId": "dc883bf1-95a6-46ef-b9bb-403f120decfe"} + application/json: {"configuration": {"client_id": "", "client_secret": "", "sourceType": "microsoft-entra-id", "tenant_id": "", "user_id": ""}, "name": "", "workspaceId": "e0c79759-23d0-44da-931f-3ea396170b96"} responses: "200": - application/json: {"configuration": {"api_key": "", "start_date": "2024-01-10T04:35:21.058Z"}, "createdAt": 58977, "definitionId": "", "name": "", "sourceId": "0c31738c-0b2d-4887-b506-e2cd1c39cc35", "sourceType": "", "workspaceId": ""} + application/json: {"configuration": {"account_name": "", "api_key": "", "sourceType": "freshchat", "start_date": "2024-10-27T17:29:57.020Z"}, "createdAt": 115782, "definitionId": "", "name": "", "sourceId": "0c31738c-0b2d-4887-b506-e2cd1c39cc35", "sourceType": "", "workspaceId": ""} deleteSource: speakeasy-default-delete-source: parameters: @@ -6399,16 +6871,15 @@ examples: parameters: path: sourceId: "" - query: {} responses: "200": - application/json: {"configuration": {"credentials": {"access_token": ""}, "enable_experimental_streams": false}, "createdAt": 227873, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"api_token": "5c054d0de3440452190fdc5d5a04d871", "sourceType": "pivotal-tracker"}, "createdAt": 315301, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} initiateOAuth: speakeasy-default-initiate-O-auth: requestBody: - application/json: {"redirectUrl": "https://cloud.airbyte.io/v1/api/oauth/callback", "sourceType": "gcs", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"redirectUrl": "https://cloud.airbyte.io/v1/api/oauth/callback", "sourceType": "instagram", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} listSources: - "": + speakeasy-default-list-sources: parameters: query: workspaceIds: ["df08f6b0-b364-4cc1-9b3f-96f5d2fccfb2,b0796797-de23-4fc7-a5e2-7e131314718c"] @@ -6417,45 +6888,45 @@ examples: offset: 0 responses: "200": - application/json: {"data": [{"configuration": {"api_token": "", "start_date": "2025-07-26T03:28:50.329Z"}, "createdAt": 736973, "definitionId": "", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}], "next": "https://api.airbyte.com/v1/sources?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/sources?limit=5&offset=0"} + application/json: {"data": [{"configuration": {"account_id": "", "api_key": "", "sourceType": "callrail", "start_date": "%Y-%m-%d"}, "createdAt": 338234, "definitionId": "", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"}], "next": "https://api.airbyte.com/v1/sources?limit=5&offset=10", "previous": "https://api.airbyte.com/v1/sources?limit=5&offset=0"} patchSource: Source Update Request Example: parameters: path: sourceId: "" requestBody: - application/json: {"configuration": {"api_token": ""}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"api_key": "", "api_server": "us", "end_date": "2024-09-13T05:42:44.905Z", "sourceType": "nylas", "start_date": "2023-12-03T11:21:24.468Z"}, "name": "My Source", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} responses: "200": - application/json: {"configuration": {"credentials": {"client_id": "", "client_secret": "", "refresh_token": ""}}, "createdAt": 183665, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"api_key": "", "sourceType": "perigon", "start_date": "2023-03-26T18:52:43.308Z"}, "createdAt": 123254, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Source Update Response Example: parameters: path: sourceId: "" requestBody: - application/json: {"configuration": {"api_key": ""}, "name": "My source"} + application/json: {"configuration": {"service": "ap-southeast", "sourceType": "pipeliner", "spaceid": "", "username": "Don.Mayert-Heller"}, "name": "My source"} responses: "200": - application/json: {"configuration": {"domain_id": "", "secret_key": "", "start_date": "2023-07-30T03:43:59.244Z"}, "createdAt": 291381, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"api_key": "", "sourceType": "squarespace", "start_date": "2023-11-05T17:31:58.765Z"}, "createdAt": 637971, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} putSource: Source Update Request Example: parameters: path: sourceId: "" requestBody: - application/json: {"configuration": {}, "name": "My Source"} + application/json: {"configuration": {"sourceType": "rd-station-marketing", "start_date": "2017-01-25T00:00:00Z"}, "name": "My Source"} responses: "200": - application/json: {"configuration": {}, "createdAt": 27682, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} + application/json: {"configuration": {"api_key": "", "sourceType": "gainsight-px"}, "createdAt": 967543, "definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e", "name": "Analytics Team Postgres", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} Source Update Response Example: parameters: path: sourceId: "" requestBody: - application/json: {"configuration": {"credentials_json": "", "project_id": ""}, "name": ""} + application/json: {"configuration": {"sourceType": "rd-station-marketing", "start_date": "2017-01-25T00:00:00Z"}, "name": ""} responses: "200": - application/json: {"configuration": {"username": "Vicenta.Botsford"}, "createdAt": 140365, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} + application/json: {"configuration": {"credentials": {"password": "oFRhsnT8_v8xYg4", "type": "username_password", "username": "Danika.Sawayn"}, "sourceType": "outbrain-amplify", "start_date": ""}, "createdAt": 834367, "definitionId": "", "name": "running", "sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "sourceType": "postgres", "workspaceId": "744cc0ed-7f05-4949-9e60-2a814f90c035"} getStreamProperties: speakeasy-default-get-stream-properties: parameters: @@ -6468,7 +6939,7 @@ examples: createTag: speakeasy-default-create-tag: requestBody: - application/json: {"color": "blue", "name": "", "workspaceId": "5f85d5ab-c889-4273-91d7-c22bac981db2"} + application/json: {"color": "mint green", "name": "", "workspaceId": "fb9b459f-ba25-4500-ab48-74bb184a25d8"} responses: "200": application/json: {"color": "FF5733", "name": "Analytics Team", "tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} @@ -6476,12 +6947,12 @@ examples: speakeasy-default-delete-tag: parameters: path: - tagId: "da1c4fd4-2786-4b27-8b72-2335c85a5af8" + tagId: "a7b6d3f2-0b68-410f-9d8b-570413d4925b" getTag: speakeasy-default-get-tag: parameters: path: - tagId: "808ab48f-5790-47fe-aa1e-3073281a0300" + tagId: "0e4206b6-0672-45f2-82cb-05850f1907ba" responses: "200": application/json: {"color": "FF5733", "name": "Analytics Team", "tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} @@ -6494,9 +6965,9 @@ examples: speakeasy-default-update-tag: parameters: path: - tagId: "3043493e-7596-4d2b-8ee9-859838c615f6" + tagId: "80469d11-8074-4b50-ac85-fa8ba37ca92a" requestBody: - application/json: {"color": "turquoise", "name": ""} + application/json: {"color": "red", "name": ""} responses: "200": application/json: {"color": "FF5733", "name": "Analytics Team", "tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826", "workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"} @@ -6507,14 +6978,14 @@ examples: organizationId: "" responses: "200": - application/json: {"data": [{"email": "Kira.McGlynn@yahoo.com", "id": "b6f8375a-116b-4e31-b20b-6d2c6e47e56a", "name": ""}]} + application/json: {"data": []} createOrUpdateWorkspaceOAuthCredentials: speakeasy-default-create-or-update-workspace-O-auth-credentials: parameters: path: workspaceId: "" requestBody: - application/json: {"actorType": "destination", "configuration": {"user": "charles"}, "name": "airtable"} + application/json: {"actorType": "destination", "configuration": {}, "name": "trello"} createWorkspace: Workspace Creation Request Example: requestBody: @@ -6574,35 +7045,35 @@ examples: speakeasy-default-create-declarative-source-definition: parameters: path: - workspaceId: "2d054f48-a68c-4d16-b04d-bb444d47c285" + workspaceId: "9f09326e-38fd-40ea-8871-6aaf7655a237" requestBody: application/json: {"manifest": "", "name": ""} responses: "200": - application/json: {"id": "", "manifest": "", "name": "", "version": 878216} + application/json: {"id": "", "manifest": "", "name": "", "version": 552284} deleteDeclarativeSourceDefinition: speakeasy-default-delete-declarative-source-definition: parameters: path: - workspaceId: "f7cdc65f-5255-43d5-a6be-8fee673091f3" - definitionId: "26cd06ea-5caa-47b9-98a2-1d217049557d" + workspaceId: "5bed2604-75d1-40cf-a858-64e430840198" + definitionId: "0cf3a1f6-1af6-4ae7-ae77-4bd1b32041f4" responses: "200": - application/json: {"id": "", "manifest": "", "name": "", "version": 520411} + application/json: {"id": "", "manifest": "", "name": "", "version": 461963} getDeclarativeSourceDefinition: speakeasy-default-get-declarative-source-definition: parameters: path: - workspaceId: "3855d0f6-8cfb-44c2-ac49-0c3965c034bd" - definitionId: "a003b7d3-efd4-4d7e-8ea6-469e9fe7871f" + workspaceId: "2a50feae-cf51-42e9-b777-b8d52ea2704e" + definitionId: "ce3288f2-b43c-40d0-ae8e-864c7a844485" responses: "200": - application/json: {"id": "", "manifest": "", "name": "", "version": 250999} + application/json: {"id": "", "manifest": "", "name": "", "version": 990972} listDeclarativeSourceDefinitions: speakeasy-default-list-declarative-source-definitions: parameters: path: - workspaceId: "23bc0a4f-72b3-4d91-abe3-3f32d8a49dfc" + workspaceId: "76222ecd-532e-4ab1-94e3-b96d1abd686e" responses: "200": application/json: {"data": []} @@ -6610,18 +7081,18 @@ examples: speakeasy-default-update-declarative-source-definition: parameters: path: - workspaceId: "87f1ccdb-71b2-401c-8f60-cac1f2a2da80" - definitionId: "66066427-c293-4cbf-b72e-b31a72a46545" + workspaceId: "38cb8d27-592a-4438-be38-823abf06a84e" + definitionId: "c97eb9ab-47b5-4609-8d65-0a62f74ca843" requestBody: application/json: {"manifest": ""} responses: "200": - application/json: {"id": "", "manifest": "", "name": "", "version": 92956} + application/json: {"id": "", "manifest": "", "name": "", "version": 563392} createDestinationDefinition: speakeasy-default-create-destination-definition: parameters: path: - workspaceId: "f49928fc-e1f7-4278-9366-b5b974ad2068" + workspaceId: "20a22858-a8c3-4a9c-af3e-691931b55938" requestBody: application/json: {"dockerImageTag": "", "dockerRepository": "", "name": ""} responses: @@ -6631,8 +7102,8 @@ examples: speakeasy-default-delete-destination-definition: parameters: path: - workspaceId: "619cc567-a21d-4f39-90ab-7854d54c9c42" - definitionId: "7a6d93e0-5a99-4e33-87ce-c0e739faf1e9" + workspaceId: "b1b184d8-4def-4e2d-8e9d-7caadc80e180" + definitionId: "1f3ace88-4e9e-4438-8667-c98520825c79" responses: "200": application/json: {"dockerImageTag": "", "dockerRepository": "", "id": "", "name": ""} @@ -6640,8 +7111,8 @@ examples: speakeasy-default-get-destination-definition: parameters: path: - workspaceId: "5a9c29a5-f169-496b-b3b1-ab05028ede0b" - definitionId: "5ddd49a6-7aa1-469d-bd19-fa66e3586402" + workspaceId: "443f2bd2-d502-4aec-b86f-c4e3d5675ae9" + definitionId: "83a7ce8a-1507-42c5-84a3-1b95932f919f" responses: "200": application/json: {"dockerImageTag": "", "dockerRepository": "", "id": "", "name": ""} @@ -6649,7 +7120,7 @@ examples: speakeasy-default-list-destination-definitions: parameters: path: - workspaceId: "f1f18267-b72b-4ea5-a29c-8742c80ceaf4" + workspaceId: "aed43ac9-470c-4cba-8489-c73f9e881f94" responses: "200": application/json: {"data": [{"dockerImageTag": "", "dockerRepository": "", "id": "", "name": ""}]} @@ -6657,8 +7128,8 @@ examples: speakeasy-default-update-destination-definition: parameters: path: - workspaceId: "98e0ed50-276f-49ae-ad18-43bc892bb109" - definitionId: "97416649-dabf-43f9-8715-c5c8279f7f23" + workspaceId: "29dd981b-57da-413b-b1f4-012b1a97afc4" + definitionId: "43c71f97-6486-49c7-9f26-4de603fa3bb2" requestBody: application/json: {"dockerImageTag": "", "name": ""} responses: @@ -6668,7 +7139,7 @@ examples: speakeasy-default-create-source-definition: parameters: path: - workspaceId: "06dbde72-63a8-4326-8f4b-67eb708f9ad6" + workspaceId: "8198a6e0-f056-42f7-8427-5ff6e06d6b3c" requestBody: application/json: {"dockerImageTag": "", "dockerRepository": "", "name": ""} responses: @@ -6678,8 +7149,8 @@ examples: speakeasy-default-delete-source-definition: parameters: path: - workspaceId: "9789f575-f200-4155-b7ec-0750094af77f" - definitionId: "fddaf9d9-7e09-433e-8e25-895734ad8809" + workspaceId: "674a8870-5757-45f8-89f2-a765895d7bcc" + definitionId: "21000375-129d-49b4-8099-23a142e25559" responses: "200": application/json: {"dockerImageTag": "", "dockerRepository": "", "id": "", "name": ""} @@ -6687,8 +7158,8 @@ examples: speakeasy-default-get-source-definition: parameters: path: - workspaceId: "e76093e5-5cd8-4b87-ab32-c620a178a1c3" - definitionId: "b6405f71-0930-4f13-a99b-6b1b0a882853" + workspaceId: "ea535916-6a24-4a05-b039-7da73c74b7c5" + definitionId: "ccda715b-b5a9-4c56-9c95-7285878c622f" responses: "200": application/json: {"dockerImageTag": "", "dockerRepository": "", "id": "", "name": ""} @@ -6696,20 +7167,21 @@ examples: speakeasy-default-list-source-definitions: parameters: path: - workspaceId: "fb60a310-f38b-47cb-9633-01f0cf740c18" + workspaceId: "d85ea6af-c9b0-461e-8a87-d7d38bfb62a3" responses: "200": - application/json: {"data": [{"dockerImageTag": "", "dockerRepository": "", "id": "", "name": ""}, {"dockerImageTag": "", "dockerRepository": "", "id": "", "name": ""}]} + application/json: {"data": [{"dockerImageTag": "", "dockerRepository": "", "id": "", "name": ""}]} updateSourceDefinition: speakeasy-default-update-source-definition: parameters: path: - workspaceId: "b6bd5c36-3814-4489-97fb-3e48c1e0fdea" - definitionId: "6eaf6fbb-3e08-4f73-9ff1-de62553abd76" + workspaceId: "d00d0938-69b2-48ac-878f-e92689d1c3b8" + definitionId: "d83c1bd9-0e8c-47a0-ba61-d9fff4bea47c" requestBody: application/json: {"dockerImageTag": "", "name": ""} responses: "200": application/json: {"dockerImageTag": "", "dockerRepository": "", "id": "", "name": ""} -examplesVersion: 1.0.1 +examplesVersion: 1.0.2 generatedTests: {} +releaseNotes: "## Java SDK Changes Detected:\n* `airbyte.destinations.patchDestination()`: \n * `request.destinationPatchRequest.configuration` **Changed** **Breaking** :warning:\n * `response.configuration` **Changed** **Breaking** :warning:\n* `airbyte.sources.createSource()`: \n * `request.configuration` **Changed** **Breaking** :warning:\n * `response.configuration` **Changed** **Breaking** :warning:\n* `airbyte.connections.getConnection()`: `response` **Changed** **Breaking** :warning:\n* `airbyte.connections.listConnections()`: `response.data.[]` **Changed** **Breaking** :warning:\n* `airbyte.connections.patchConnection()`: \n * `request.connectionPatchRequest.configurations.streams.[]` **Changed**\n * `response` **Changed** **Breaking** :warning:\n* `airbyte.destinations.createDestination()`: \n * `request.configuration` **Changed** **Breaking** :warning:\n * `response.configuration` **Changed** **Breaking** :warning:\n* `airbyte.destinations.getDestination()`: `response.configuration` **Changed** **Breaking** :warning:\n* `airbyte.destinations.listDestinations()`: `response.data.[].configuration` **Changed** **Breaking** :warning:\n* `airbyte.connections.createConnection()`: \n * `request.configurations.streams.[]` **Changed**\n * `response` **Changed** **Breaking** :warning:\n* `airbyte.declarativeSourceDefinitions.updateDeclarativeSourceDefinition()`: \n * `request.updateDeclarativeSourceDefinitionRequest.version` **Removed** **Breaking** :warning:\n* `airbyte.destinations.putDestination()`: \n * `request.destinationPutRequest.configuration` **Changed** **Breaking** :warning:\n * `response.configuration` **Changed** **Breaking** :warning:\n* `airbyte.sources.getSource()`: `response.configuration` **Changed** **Breaking** :warning:\n* `airbyte.sources.listSources()`: `response.data.[].configuration` **Changed** **Breaking** :warning:\n* `airbyte.sources.patchSource()`: \n * `request.sourcePatchRequest.configuration` **Changed** **Breaking** :warning:\n * `response.configuration` **Changed** **Breaking** :warning:\n* `airbyte.sources.putSource()`: \n * `request.sourcePutRequest.configuration` **Changed** **Breaking** :warning:\n * `response.configuration` **Changed** **Breaking** :warning:\n* `airbyte.workspaces.createOrUpdateWorkspaceOAuthCredentials()`: \n * `request.workspaceOAuthCredentialsRequest.configuration` **Changed** **Breaking** :warning:\n* `airbyte.streams.getStreamProperties()`: `response.[].streamnamespace` **Added**\n* `airbyte.organizations.createOrUpdateOrganizationOAuthCredentials()`: **Added**\n" diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 2123ff75f..4fdfe8d7d 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.533.0 +speakeasyVersion: 1.636.3 sources: my-source: sourceNamespace: my-source @@ -9,11 +9,11 @@ sources: - main sample-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:5c4ac3b133a9b0d18d00a131ead78279d8d36a49e31f5f562d1a200fa11caec3 - sourceBlobDigest: sha256:7866415b04810057478603476c27c4042cd2561a5f539d7181e4d5eac8ffca0a + sourceRevisionDigest: sha256:59e327c0737e7d230fe332ba797a171c1182b070b8fc74b0c8c0ea0d983ee675 + sourceBlobDigest: sha256:5cf719b972274960feef188322a27cea9e780a7ab41144d694f89d150472cf2a tags: - latest - - speakeasy-sdk-regen-1733962674 + - speakeasy-sdk-regen-1758759470 - 1.0.0 targets: airbyte-api: @@ -24,10 +24,10 @@ targets: testing: source: sample-source sourceNamespace: my-source - sourceRevisionDigest: sha256:5c4ac3b133a9b0d18d00a131ead78279d8d36a49e31f5f562d1a200fa11caec3 - sourceBlobDigest: sha256:7866415b04810057478603476c27c4042cd2561a5f539d7181e4d5eac8ffca0a + sourceRevisionDigest: sha256:59e327c0737e7d230fe332ba797a171c1182b070b8fc74b0c8c0ea0d983ee675 + sourceBlobDigest: sha256:5cf719b972274960feef188322a27cea9e780a7ab41144d694f89d150472cf2a codeSamplesNamespace: my-source-java-code-samples - codeSamplesRevisionDigest: sha256:b4a63e27822e0b961739d46a6b15049756d339c93f1008fae50a8052afce6cd9 + codeSamplesRevisionDigest: sha256:21370bdb8d7c9be76a1be6e292dce05e6716761867e6d3d6fd270126d2a06592 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 5696bfb1f..add254174 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,12 @@ airbyte-api: Programmatically control Airbyte Cloud, OSS & Enterprise. * [public-api](#public-api) * [SDK Installation](#sdk-installation) * [SDK Example Usage](#sdk-example-usage) + * [Asynchronous Support](#asynchronous-support) * [Authentication](#authentication) * [Available Resources and Operations](#available-resources-and-operations) * [Error Handling](#error-handling) * [Server Selection](#server-selection) + * [Debugging](#debugging) * [Development](#development) * [Maturity](#maturity) * [Contributions](#contributions) @@ -42,7 +44,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.airbyte:api:2.0.0' +implementation 'com.airbyte:api:3.0.0' ``` Maven: @@ -50,7 +52,7 @@ Maven: com.airbyte api - 2.0.0 + 3.0.0 ``` @@ -67,29 +69,6 @@ On Windows: ```bash gradlew.bat publishToMavenLocal -Pskip.signing ``` - -### Logging -A logging framework/facade has not yet been adopted but is under consideration. - -For request and response logging (especially json bodies) use: -```java -SpeakeasyHTTPClient.setDebugLogging(true); // experimental API only (may change without warning) -``` -Example output: -``` -Sending request: http://localhost:35123/bearer#global GET -Request headers: {Accept=[application/json], Authorization=[******], Client-Level-Header=[added by client], Idempotency-Key=[some-key], x-speakeasy-user-agent=[speakeasy-sdk/java 0.0.1 internal 0.1.0 org.openapis.openapi]} -Received response: (GET http://localhost:35123/bearer#global) 200 -Response headers: {access-control-allow-credentials=[true], access-control-allow-origin=[*], connection=[keep-alive], content-length=[50], content-type=[application/json], date=[Wed, 09 Apr 2025 01:43:29 GMT], server=[gunicorn/19.9.0]} -Response body: -{ - "authenticated": true, - "token": "global" -} -``` -WARNING: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. Authorization headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`. - -Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies. @@ -122,6 +101,7 @@ public class Application { .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") .name("Postgres-to-Bigquery") + .namespaceFormat("${SOURCE_NAMESPACE}") .build(); CreateConnectionResponse res = sdk.connections().createConnection() @@ -134,8 +114,120 @@ public class Application { } } ``` +#### Asynchronous Call +An asynchronous SDK client is also available that returns a [`CompletableFuture`][comp-fut]. See [Asynchronous Support](#asynchronous-support) for more details on async benefits and reactive library integration. +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.AsyncAirbyte; +import com.airbyte.api.models.operations.async.CreateConnectionResponse; +import com.airbyte.api.models.shared.*; +import java.util.concurrent.CompletableFuture; + +public class Application { + + public static void main(String[] args) { + + AsyncAirbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build() + .async(); + + ConnectionCreateRequest req = ConnectionCreateRequest.builder() + .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") + .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") + .name("Postgres-to-Bigquery") + .namespaceFormat("${SOURCE_NAMESPACE}") + .build(); + + CompletableFuture resFut = sdk.connections().createConnection() + .request(req) + .call(); + + resFut.thenAccept(res -> { + if (res.connectionResponse().isPresent()) { + // handle response + } + }); + } +} +``` + +[comp-fut]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html + +## Asynchronous Support + +The SDK provides comprehensive asynchronous support using Java's [`CompletableFuture`][comp-fut] and [Reactive Streams `Publisher`][reactive-streams] APIs. This design makes no assumptions about your choice of reactive toolkit, allowing seamless integration with any reactive library. + +
+Why Use Async? + +Asynchronous operations provide several key benefits: + +- **Non-blocking I/O**: Your threads stay free for other work while operations are in flight +- **Better resource utilization**: Handle more concurrent operations with fewer threads +- **Improved scalability**: Build highly responsive applications that can handle thousands of concurrent requests +- **Reactive integration**: Works seamlessly with reactive streams and backpressure handling + +
+ +
+Reactive Library Integration + +The SDK returns [Reactive Streams `Publisher`][reactive-streams] instances for operations dealing with streams involving multiple I/O interactions. We use Reactive Streams instead of JDK Flow API to provide broader compatibility with the reactive ecosystem, as most reactive libraries natively support Reactive Streams. + +**Why Reactive Streams over JDK Flow?** +- **Broader ecosystem compatibility**: Most reactive libraries (Project Reactor, RxJava, Akka Streams, etc.) natively support Reactive Streams +- **Industry standard**: Reactive Streams is the de facto standard for reactive programming in Java +- **Better interoperability**: Seamless integration without additional adapters for most use cases + +**Integration with Popular Libraries:** +- **Project Reactor**: Use `Flux.from(publisher)` to convert to Reactor types +- **RxJava**: Use `Flowable.fromPublisher(publisher)` for RxJava integration +- **Akka Streams**: Use `Source.fromPublisher(publisher)` for Akka Streams integration +- **Vert.x**: Use `ReadStream.fromPublisher(vertx, publisher)` for Vert.x reactive streams +- **Mutiny**: Use `Multi.createFrom().publisher(publisher)` for Quarkus Mutiny integration + +**For JDK Flow API Integration:** +If you need JDK Flow API compatibility (e.g., for Quarkus/Mutiny 2), you can use adapters: +```java +// Convert Reactive Streams Publisher to Flow Publisher +Flow.Publisher flowPublisher = FlowAdapters.toFlowPublisher(reactiveStreamsPublisher); + +// Convert Flow Publisher to Reactive Streams Publisher +Publisher reactiveStreamsPublisher = FlowAdapters.toPublisher(flowPublisher); +``` + +For standard single-response operations, the SDK returns `CompletableFuture` for straightforward async execution. + +
+ +
+Supported Operations + +Async support is available for: + +- **[Server-sent Events](#server-sent-event-streaming)**: Stream real-time events with Reactive Streams `Publisher` +- **[JSONL Streaming](#jsonl-streaming)**: Process streaming JSON lines asynchronously +- **[Pagination](#pagination)**: Iterate through paginated results using `callAsPublisher()` and `callAsPublisherUnwrapped()` +- **[File Uploads](#file-uploads)**: Upload files asynchronously with progress tracking +- **[File Downloads](#file-downloads)**: Download files asynchronously with streaming support +- **[Standard Operations](#example)**: All regular API calls return `CompletableFuture` for async execution + +
+ +[comp-fut]: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html +[reactive-streams]: https://www.reactive-streams.org/ + + ## Authentication @@ -175,6 +267,7 @@ public class Application { .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") .name("Postgres-to-Bigquery") + .namespaceFormat("${SOURCE_NAMESPACE}") .build(); CreateConnectionResponse res = sdk.connections().createConnection() @@ -195,7 +288,6 @@ public class Application {
Available methods - ### [connections()](docs/sdks/connections/README.md) * [createConnection](docs/sdks/connections/README.md#createconnection) - Create a connection @@ -242,6 +334,7 @@ public class Application { ### [organizations()](docs/sdks/organizations/README.md) +* [createOrUpdateOrganizationOAuthCredentials](docs/sdks/organizations/README.md#createorupdateorganizationoauthcredentials) - Create OAuth override credentials for an organization and source type. * [listOrganizationsForUser](docs/sdks/organizations/README.md#listorganizationsforuser) - List all organizations for a user ### [permissions()](docs/sdks/permissions/README.md) @@ -336,6 +429,7 @@ public class Application { .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") .name("Postgres-to-Bigquery") + .namespaceFormat("${SOURCE_NAMESPACE}") .build(); CreateConnectionResponse res = sdk.connections().createConnection() @@ -382,6 +476,7 @@ public class Application { .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") .name("Postgres-to-Bigquery") + .namespaceFormat("${SOURCE_NAMESPACE}") .build(); CreateConnectionResponse res = sdk.connections().createConnection() @@ -396,6 +491,37 @@ public class Application { ``` + +## Debugging + +### Debug +You can setup your SDK to emit debug logs for SDK requests and responses. + +For request and response logging (especially json bodies), call `enableHTTPDebugLogging(boolean)` on the SDK builder like so: +```java +SDK.builder() + .enableHTTPDebugLogging(true) + .build(); +``` +Example output: +``` +Sending request: http://localhost:35123/bearer#global GET +Request headers: {Accept=[application/json], Authorization=[******], Client-Level-Header=[added by client], Idempotency-Key=[some-key], x-speakeasy-user-agent=[speakeasy-sdk/java 0.0.1 internal 0.1.0 org.openapis.openapi]} +Received response: (GET http://localhost:35123/bearer#global) 200 +Response headers: {access-control-allow-credentials=[true], access-control-allow-origin=[*], connection=[keep-alive], content-length=[50], content-type=[application/json], date=[Wed, 09 Apr 2025 01:43:29 GMT], server=[gunicorn/19.9.0]} +Response body: +{ + "authenticated": true, + "token": "global" +} +``` +__WARNING__: This should only used for temporary debugging purposes. Leaving this option on in a production system could expose credentials/secrets in logs. Authorization headers are redacted by default and there is the ability to specify redacted header names via `SpeakeasyHTTPClient.setRedactedHeaders`. + +__NOTE__: This is a convenience method that calls `HTTPClient.enableDebugLogging()`. The `SpeakeasyHTTPClient` honors this setting. If you are using a custom HTTP client, it is up to the custom client to honor this setting. + +Another option is to set the System property `-Djdk.httpclient.HttpClient.log=all`. However, this second option does not log bodies. + + # Development diff --git a/RELEASES.md b/RELEASES.md index 4b3892115..46e24f433 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1201,4 +1201,14 @@ Based on: ### Generated - [java v2.0.0] . ### Releases -- [Maven Central v2.0.0] https://central.sonatype.com/artifact/com.airbyte/api/2.0.0 - . \ No newline at end of file +- [Maven Central v2.0.0] https://central.sonatype.com/artifact/com.airbyte/api/2.0.0 - . + +## 2025-10-11 00:16:41 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.636.3 (2.723.11) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v3.0.0] . +### Releases +- [Maven Central v3.0.0] https://central.sonatype.com/artifact/com.airbyte/api/3.0.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 7c924c0e9..f1bd4cc08 100644 --- a/USAGE.md +++ b/USAGE.md @@ -24,6 +24,7 @@ public class Application { .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") .name("Postgres-to-Bigquery") + .namespaceFormat("${SOURCE_NAMESPACE}") .build(); CreateConnectionResponse res = sdk.connections().createConnection() diff --git a/build.gradle b/build.gradle index bf8dc7a2a..eb6707594 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,3 @@ - //////////////////////////////////////////////////////////////////////////////////////////// // This file is generated by Speakeasy and any edits will be lost in generation updates. // @@ -9,12 +8,15 @@ // of string where each string value is an additional line in the block) in gen.yaml. //////////////////////////////////////////////////////////////////////////////////////////// + plugins { // Apply the java-library plugin for API and implementation separation. id 'java-library' id 'maven-publish' id 'signing' + // V2 publishing plugin (Sonatype Central Portal) id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3' + id "io.spring.dependency-management" version "1.1.6" apply false } compileJava.options.encoding = "UTF-8" @@ -27,27 +29,22 @@ repositories { } java { - sourceCompatibility = JavaVersion.VERSION_11 - targetCompatibility = JavaVersion.VERSION_11 withSourcesJar() withJavadocJar() } -model { - tasks.generatePomFileForMavenPublication { - destination = file("$buildDir/pom.xml") - } -} - version = "${version}" group = "${groupId}" jar { - dependsOn(":generatePomFileForMavenPublication") + dependsOn 'generatePomFileForMavenPublication' archiveBaseName = "${artifactId}" into("META-INF/maven/com.airbyte/api") { - from("$buildDir/pom.xml") + from(layout.buildDirectory.file("pom.xml")) { + // Only include if it exists to avoid build ordering issues + duplicatesStrategy = DuplicatesStrategy.INCLUDE + } } } @@ -60,11 +57,15 @@ javadoc { options.addStringOption('Xdoclint:none', '-quiet') } -tasks.withType(Javadoc) { - failOnError false +tasks.withType(Javadoc).configureEach { + failOnError = false options.addStringOption('Xdoclint:none', '-quiet') } +tasks.withType(JavaCompile).configureEach { + options.release = 11 +} + sourcesJar { archiveBaseName = "${artifactId}" } @@ -72,89 +73,69 @@ sourcesJar { javadocJar { archiveBaseName = "${artifactId}" } -sonatypeCentralUpload { - // This is your Sonatype generated username - username = System.getenv("SONATYPE_USERNAME") - // This is your sonatype generated password - password = System.getenv("SONATYPE_PASSWORD") - - // This is a list of files to upload. Ideally you would point to your jar file, source and javadoc jar (required by central) - archives = files( - "$buildDir/libs/${artifactId}-${version}.jar", - "$buildDir/libs/${artifactId}-${version}-sources.jar", - "$buildDir/libs/${artifactId}-${version}-javadoc.jar" - ) - - // This is the pom file to upload. This is required by central - pom = file("$buildDir/pom.xml") - - // This is your PGP private key. This is required to sign your files - signingKey = System.getenv("SONATYPE_SIGNING_KEY") - // This is your PGP private key passphrase to decrypt your private key - signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE") + +dependencies { + api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2' + implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2' + api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} + implementation 'commons-io:commons-io:2.18.0' + api 'org.reactivestreams:reactive-streams:1.0.4' } +ext { + springBootVersion = '2.7.18' +} -publishing { - - publications { - maven(MavenPublication) { - // note that properties can't yet be used below! - // https://github.com/gradle/gradle/issues/18619 - groupId = "com.airbyte" - artifactId = "api" - version = "2.0.0" - - from components.java - - pom { - name = 'Airbyte Java SDK' - description = 'SDK enabling Java developers to easily integrate with the Airbyte API.' - url = 'https://github.com/airbytehq/airbyte-api-java-sdk' - scm { - url = 'github.com/airbytehq/airbyte-api-java-sdk' - connection = 'scm:git:ssh://git@github.com/airbytehq/airbyte-api-java-sdk.git' - } - licenses { - license { - name = 'The MIT License (MIT)' - url = 'https://mit-license.org/' - } - } - developers { - developer { - name = 'Airbyte' - organization = 'Airbyte' - email = 'info@airbyte.com' - } - } - organization { - name = 'Airbyte' - url = 'www.airbyte.com' - } +subprojects { + if (name in [ + 'api-spring-boot-autoconfigure', + 'api-spring-boot-starter' + ]) { + // Ensure subprojects use the same group and version as root project + group = rootProject.group + version = rootProject.version + + apply { + plugin "java-library" + plugin "io.spring.dependency-management" + plugin "maven-publish" + plugin "signing" + plugin "cl.franciscosolis.sonatype-central-upload" + } + dependencyManagement { + imports { + mavenBom "org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}" } } - } -} + repositories { + mavenCentral() + } + java { + withSourcesJar() + withJavadocJar() + } + tasks.withType(JavaCompile).configureEach { + options.release = 11 + } -if (!project.hasProperty('skip.signing')) { - signing { - def signingKey = findProperty("signingKey") - def signingPassphrase = findProperty("signingPassphrase") - useInMemoryPgpKeys(signingKey, signingPassphrase) - sign publishing.publications.maven + // Apply publishing configuration to all subprojects - they'll check for publishingConfig internally + apply from: rootProject.file('publishing.gradle') } } - - -dependencies { - api 'com.fasterxml.jackson.core:jackson-annotations:2.18.2' - implementation 'com.fasterxml.jackson.core:jackson-databind:2.18.2' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.18.2' - implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.18.2' - api('org.openapitools:jackson-databind-nullable:0.2.6') {exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'} - implementation 'commons-io:commons-io:2.18.0' +ext { + publishingConfig = [ + groupId: group, + artifactId: artifactId, + version: version, + name: "Airbyte Java SDK", + description: "SDK enabling Java developers to easily integrate with the Airbyte API.", + publicationName: "maven" + ] } -apply from: 'build-extras.gradle' +apply from: 'publishing.gradle' + +apply from: 'build-extras.gradle' \ No newline at end of file diff --git a/docs/models/operations/CancelJobResponse.md b/docs/models/operations/CancelJobResponse.md index ecfd0aa48..fb919df2c 100644 --- a/docs/models/operations/CancelJobResponse.md +++ b/docs/models/operations/CancelJobResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `jobResponse` | [Optional\](../../models/shared/JobResponse.md) | :heavy_minus_sign: | Cancel a Job. | {
"id": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"status": "running",
"jobType": "sync",
"startTime": "2023-03-25T01:30:50Z",
"duration": "PT8H6M12S"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/CreateConnectionResponse.md b/docs/models/operations/CreateConnectionResponse.md index 73236a6f9..71b128083 100644 --- a/docs/models/operations/CreateConnectionResponse.md +++ b/docs/models/operations/CreateConnectionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `connectionResponse` | [Optional\](../../models/shared/ConnectionResponse.md) | :heavy_minus_sign: | Successful operation | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `connectionResponse` | [Optional\](../../models/shared/ConnectionResponse.md) | :heavy_minus_sign: | Successful operation | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/CreateDeclarativeSourceDefinitionResponse.md b/docs/models/operations/CreateDeclarativeSourceDefinitionResponse.md index 16afe6b21..0363b8b00 100644 --- a/docs/models/operations/CreateDeclarativeSourceDefinitionResponse.md +++ b/docs/models/operations/CreateDeclarativeSourceDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `declarativeSourceDefinitionResponse` | [Optional\](../../models/shared/DeclarativeSourceDefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `declarativeSourceDefinitionResponse` | [Optional\](../../models/shared/DeclarativeSourceDefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/CreateDestinationDefinitionResponse.md b/docs/models/operations/CreateDestinationDefinitionResponse.md index a0d087eea..8fc65272f 100644 --- a/docs/models/operations/CreateDestinationDefinitionResponse.md +++ b/docs/models/operations/CreateDestinationDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/CreateDestinationResponse.md b/docs/models/operations/CreateDestinationResponse.md index a32f544f6..791fa864f 100644 --- a/docs/models/operations/CreateDestinationResponse.md +++ b/docs/models/operations/CreateDestinationResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `destinationResponse` | [Optional\](../../models/shared/DestinationResponse.md) | :heavy_minus_sign: | Successful operation | {
"destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team Postgres",
"destinationType": "postgres",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e",
"definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/CreateJobResponse.md b/docs/models/operations/CreateJobResponse.md index ba4b4a57a..0c7f05ed8 100644 --- a/docs/models/operations/CreateJobResponse.md +++ b/docs/models/operations/CreateJobResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `jobResponse` | [Optional\](../../models/shared/JobResponse.md) | :heavy_minus_sign: | Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. | {
"id": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"status": "running",
"jobType": "sync",
"startTime": "2023-03-25T01:30:50Z",
"duration": "PT8H6M12S"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequest.md b/docs/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequest.md new file mode 100644 index 000000000..684c5eee0 --- /dev/null +++ b/docs/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequest.md @@ -0,0 +1,9 @@ +# CreateOrUpdateOrganizationOAuthCredentialsRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `organizationOAuthCredentialsRequest` | [OrganizationOAuthCredentialsRequest](../../models/shared/OrganizationOAuthCredentialsRequest.md) | :heavy_check_mark: | N/A | +| `organizationId` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/CreateOrUpdateOrganizationOAuthCredentialsResponse.md b/docs/models/operations/CreateOrUpdateOrganizationOAuthCredentialsResponse.md new file mode 100644 index 000000000..d2685d221 --- /dev/null +++ b/docs/models/operations/CreateOrUpdateOrganizationOAuthCredentialsResponse.md @@ -0,0 +1,10 @@ +# CreateOrUpdateOrganizationOAuthCredentialsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.md b/docs/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.md index c13a62203..e1ac6ef8a 100644 --- a/docs/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.md +++ b/docs/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/CreatePermissionResponse.md b/docs/models/operations/CreatePermissionResponse.md index afb7c7c23..9dead1e8f 100644 --- a/docs/models/operations/CreatePermissionResponse.md +++ b/docs/models/operations/CreatePermissionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `permissionResponse` | [Optional\](../../models/shared/PermissionResponse.md) | :heavy_minus_sign: | Successful operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `permissionResponse` | [Optional\](../../models/shared/PermissionResponse.md) | :heavy_minus_sign: | Successful operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/CreateSourceDefinitionResponse.md b/docs/models/operations/CreateSourceDefinitionResponse.md index cf8e34411..39fe8fa77 100644 --- a/docs/models/operations/CreateSourceDefinitionResponse.md +++ b/docs/models/operations/CreateSourceDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/CreateSourceResponse.md b/docs/models/operations/CreateSourceResponse.md index d94c415b9..b10c9a28e 100644 --- a/docs/models/operations/CreateSourceResponse.md +++ b/docs/models/operations/CreateSourceResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `sourceResponse` | [Optional\](../../models/shared/SourceResponse.md) | :heavy_minus_sign: | Successful operation | {
"sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team Postgres",
"sourceType": "postgres",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e",
"definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/CreateTagResponse.md b/docs/models/operations/CreateTagResponse.md index d125b0cfb..01202aca9 100644 --- a/docs/models/operations/CreateTagResponse.md +++ b/docs/models/operations/CreateTagResponse.md @@ -7,5 +7,5 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | | `tagResponse` | [Optional\](../../models/shared/TagResponse.md) | :heavy_minus_sign: | Successful operation | {
"tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team",
"color": "FF5733",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"
} | \ No newline at end of file diff --git a/docs/models/operations/CreateWorkspaceResponse.md b/docs/models/operations/CreateWorkspaceResponse.md index 7c46711d6..d5a1cf8fd 100644 --- a/docs/models/operations/CreateWorkspaceResponse.md +++ b/docs/models/operations/CreateWorkspaceResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `workspaceResponse` | [Optional\](../../models/shared/WorkspaceResponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `workspaceResponse` | [Optional\](../../models/shared/WorkspaceResponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file diff --git a/docs/models/operations/DeleteConnectionResponse.md b/docs/models/operations/DeleteConnectionResponse.md index 7ca58b59d..1526cc66a 100644 --- a/docs/models/operations/DeleteConnectionResponse.md +++ b/docs/models/operations/DeleteConnectionResponse.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/DeleteDeclarativeSourceDefinitionResponse.md b/docs/models/operations/DeleteDeclarativeSourceDefinitionResponse.md index 5ac12ec74..266426d15 100644 --- a/docs/models/operations/DeleteDeclarativeSourceDefinitionResponse.md +++ b/docs/models/operations/DeleteDeclarativeSourceDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `declarativeSourceDefinitionResponse` | [Optional\](../../models/shared/DeclarativeSourceDefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `declarativeSourceDefinitionResponse` | [Optional\](../../models/shared/DeclarativeSourceDefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/DeleteDestinationDefinitionResponse.md b/docs/models/operations/DeleteDestinationDefinitionResponse.md index a53c63f90..a9d2576c6 100644 --- a/docs/models/operations/DeleteDestinationDefinitionResponse.md +++ b/docs/models/operations/DeleteDestinationDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/DeleteDestinationResponse.md b/docs/models/operations/DeleteDestinationResponse.md index 4ac46ce41..6e856c94c 100644 --- a/docs/models/operations/DeleteDestinationResponse.md +++ b/docs/models/operations/DeleteDestinationResponse.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/DeletePermissionResponse.md b/docs/models/operations/DeletePermissionResponse.md index 262b2998f..620dd8703 100644 --- a/docs/models/operations/DeletePermissionResponse.md +++ b/docs/models/operations/DeletePermissionResponse.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/DeleteSourceDefinitionResponse.md b/docs/models/operations/DeleteSourceDefinitionResponse.md index 78acb2a77..d06125e60 100644 --- a/docs/models/operations/DeleteSourceDefinitionResponse.md +++ b/docs/models/operations/DeleteSourceDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/DeleteSourceResponse.md b/docs/models/operations/DeleteSourceResponse.md index df4f2e49d..e1580dd3e 100644 --- a/docs/models/operations/DeleteSourceResponse.md +++ b/docs/models/operations/DeleteSourceResponse.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/DeleteTagResponse.md b/docs/models/operations/DeleteTagResponse.md index 2b024b58e..5c96caa77 100644 --- a/docs/models/operations/DeleteTagResponse.md +++ b/docs/models/operations/DeleteTagResponse.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/DeleteWorkspaceResponse.md b/docs/models/operations/DeleteWorkspaceResponse.md index 215fb1fbd..bf756f845 100644 --- a/docs/models/operations/DeleteWorkspaceResponse.md +++ b/docs/models/operations/DeleteWorkspaceResponse.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetConnectionResponse.md b/docs/models/operations/GetConnectionResponse.md index 3ab61b5bd..d1e10591e 100644 --- a/docs/models/operations/GetConnectionResponse.md +++ b/docs/models/operations/GetConnectionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `connectionResponse` | [Optional\](../../models/shared/ConnectionResponse.md) | :heavy_minus_sign: | Get a Connection by the id in the path. | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `connectionResponse` | [Optional\](../../models/shared/ConnectionResponse.md) | :heavy_minus_sign: | Get a Connection by the id in the path. | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetDeclarativeSourceDefinitionResponse.md b/docs/models/operations/GetDeclarativeSourceDefinitionResponse.md index cc09479ce..69d38a725 100644 --- a/docs/models/operations/GetDeclarativeSourceDefinitionResponse.md +++ b/docs/models/operations/GetDeclarativeSourceDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `declarativeSourceDefinitionResponse` | [Optional\](../../models/shared/DeclarativeSourceDefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `declarativeSourceDefinitionResponse` | [Optional\](../../models/shared/DeclarativeSourceDefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetDestinationDefinitionResponse.md b/docs/models/operations/GetDestinationDefinitionResponse.md index 4d5be79d5..48dc8b0bb 100644 --- a/docs/models/operations/GetDestinationDefinitionResponse.md +++ b/docs/models/operations/GetDestinationDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetDestinationResponse.md b/docs/models/operations/GetDestinationResponse.md index 62a9d232f..1232cf262 100644 --- a/docs/models/operations/GetDestinationResponse.md +++ b/docs/models/operations/GetDestinationResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `destinationResponse` | [Optional\](../../models/shared/DestinationResponse.md) | :heavy_minus_sign: | Get a Destination by the id in the path. | {
"destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team Postgres",
"destinationType": "postgres",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e",
"definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/GetHealthCheckResponse.md b/docs/models/operations/GetHealthCheckResponse.md index fc044a7f3..5bbdb7137 100644 --- a/docs/models/operations/GetHealthCheckResponse.md +++ b/docs/models/operations/GetHealthCheckResponse.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetJobResponse.md b/docs/models/operations/GetJobResponse.md index 634e88387..33aae018a 100644 --- a/docs/models/operations/GetJobResponse.md +++ b/docs/models/operations/GetJobResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `jobResponse` | [Optional\](../../models/shared/JobResponse.md) | :heavy_minus_sign: | Get a Job by the id in the path. | {
"id": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"status": "running",
"jobType": "sync",
"startTime": "2023-03-25T01:30:50Z",
"duration": "PT8H6M12S"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/GetPermissionResponse.md b/docs/models/operations/GetPermissionResponse.md index efe5985b6..5b5cab92b 100644 --- a/docs/models/operations/GetPermissionResponse.md +++ b/docs/models/operations/GetPermissionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `permissionResponse` | [Optional\](../../models/shared/PermissionResponse.md) | :heavy_minus_sign: | Get a Permission by the id in the path. | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `permissionResponse` | [Optional\](../../models/shared/PermissionResponse.md) | :heavy_minus_sign: | Get a Permission by the id in the path. | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetSourceDefinitionResponse.md b/docs/models/operations/GetSourceDefinitionResponse.md index bf9c67d5a..a43a56ffb 100644 --- a/docs/models/operations/GetSourceDefinitionResponse.md +++ b/docs/models/operations/GetSourceDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetSourceResponse.md b/docs/models/operations/GetSourceResponse.md index db4d94d49..9ea336f0c 100644 --- a/docs/models/operations/GetSourceResponse.md +++ b/docs/models/operations/GetSourceResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `sourceResponse` | [Optional\](../../models/shared/SourceResponse.md) | :heavy_minus_sign: | Get a Source by the id in the path. | {
"sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team Postgres",
"sourceType": "postgres",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e",
"definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/GetStreamPropertiesResponse.md b/docs/models/operations/GetStreamPropertiesResponse.md index beda00536..51e3ef0a4 100644 --- a/docs/models/operations/GetStreamPropertiesResponse.md +++ b/docs/models/operations/GetStreamPropertiesResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `streamPropertiesResponse` | List\<[StreamProperties](../../models/shared/StreamProperties.md)> | :heavy_minus_sign: | Get the available streams properties for a source/destination pair. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `streamPropertiesResponse` | List\<[StreamProperties](../../models/shared/StreamProperties.md)> | :heavy_minus_sign: | Get the available streams properties for a source/destination pair. | \ No newline at end of file diff --git a/docs/models/operations/GetTagResponse.md b/docs/models/operations/GetTagResponse.md index c3f41c247..401cfab7d 100644 --- a/docs/models/operations/GetTagResponse.md +++ b/docs/models/operations/GetTagResponse.md @@ -7,5 +7,5 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | | `tagResponse` | [Optional\](../../models/shared/TagResponse.md) | :heavy_minus_sign: | Successful operation | {
"tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team",
"color": "FF5733",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"
} | \ No newline at end of file diff --git a/docs/models/operations/GetWorkspaceResponse.md b/docs/models/operations/GetWorkspaceResponse.md index b42778138..6cfbb052b 100644 --- a/docs/models/operations/GetWorkspaceResponse.md +++ b/docs/models/operations/GetWorkspaceResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `workspaceResponse` | [Optional\](../../models/shared/WorkspaceResponse.md) | :heavy_minus_sign: | Get a Workspace by the id in the path. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `workspaceResponse` | [Optional\](../../models/shared/WorkspaceResponse.md) | :heavy_minus_sign: | Get a Workspace by the id in the path. | \ No newline at end of file diff --git a/docs/models/operations/InitiateOAuthResponse.md b/docs/models/operations/InitiateOAuthResponse.md index bf275a51f..d52f0fbee 100644 --- a/docs/models/operations/InitiateOAuthResponse.md +++ b/docs/models/operations/InitiateOAuthResponse.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListConnectionsResponse.md b/docs/models/operations/ListConnectionsResponse.md index 62221f77a..e28883115 100644 --- a/docs/models/operations/ListConnectionsResponse.md +++ b/docs/models/operations/ListConnectionsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `connectionsResponse` | [Optional\](../../models/shared/ConnectionsResponse.md) | :heavy_minus_sign: | Successful operation | {
"next": "https://api.airbyte.com/v1/connections?limit=5\u0026offset=10",
"previous": "https://api.airbyte.com/v1/connections?limit=5\u0026offset=0",
"data": [
{
"name": "test-connection"
},
{
"connection_id": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"
},
{
"sourceId": "49237019-645d-47d4-b45b-5eddf97775ce"
},
{
"destinationId": "al312fs-0ab1-4f72-9ed7-0b8fc27c5826"
},
{
"schedule": {
"scheduleType": "manual"
}
},
{
"status": "active"
},
{
"dataResidency": "auto"
}
]
} | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `connectionsResponse` | [Optional\](../../models/shared/ConnectionsResponse.md) | :heavy_minus_sign: | Successful operation | {
"next": "https://api.airbyte.com/v1/connections?limit=5\u0026offset=10",
"previous": "https://api.airbyte.com/v1/connections?limit=5\u0026offset=0",
"data": [
{
"name": "test-connection"
},
{
"connection_id": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826"
},
{
"sourceId": "49237019-645d-47d4-b45b-5eddf97775ce"
},
{
"destinationId": "al312fs-0ab1-4f72-9ed7-0b8fc27c5826"
},
{
"schedule": {
"scheduleType": "manual"
}
},
{
"status": "active"
}
]
} | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/ListDeclarativeSourceDefinitionsResponse.md b/docs/models/operations/ListDeclarativeSourceDefinitionsResponse.md index 0c03f9a38..e428bd93b 100644 --- a/docs/models/operations/ListDeclarativeSourceDefinitionsResponse.md +++ b/docs/models/operations/ListDeclarativeSourceDefinitionsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `declarativeSourceDefinitionsResponse` | [Optional\](../../models/shared/DeclarativeSourceDefinitionsResponse.md) | :heavy_minus_sign: | Successful operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `declarativeSourceDefinitionsResponse` | [Optional\](../../models/shared/DeclarativeSourceDefinitionsResponse.md) | :heavy_minus_sign: | Successful operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListDestinationDefinitionsResponse.md b/docs/models/operations/ListDestinationDefinitionsResponse.md index 38f6b6de4..e4005d251 100644 --- a/docs/models/operations/ListDestinationDefinitionsResponse.md +++ b/docs/models/operations/ListDestinationDefinitionsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `definitionsResponse` | [Optional\](../../models/shared/DefinitionsResponse.md) | :heavy_minus_sign: | Successful operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `definitionsResponse` | [Optional\](../../models/shared/DefinitionsResponse.md) | :heavy_minus_sign: | Successful operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListDestinationsResponse.md b/docs/models/operations/ListDestinationsResponse.md index 00ff48518..c7964f839 100644 --- a/docs/models/operations/ListDestinationsResponse.md +++ b/docs/models/operations/ListDestinationsResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `destinationsResponse` | [Optional\](../../models/shared/DestinationsResponse.md) | :heavy_minus_sign: | Successful operation | {
"next": "https://api.airbyte.com/v1/destinations?limit=5\u0026offset=10",
"previous": "https://api.airbyte.com/v1/destinations?limit=5\u0026offset=0",
"data": {
"destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team Postgres",
"destinationType": "postgres",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"
}
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/ListJobsResponse.md b/docs/models/operations/ListJobsResponse.md index 76ebda777..e8c599940 100644 --- a/docs/models/operations/ListJobsResponse.md +++ b/docs/models/operations/ListJobsResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `jobsResponse` | [Optional\](../../models/shared/JobsResponse.md) | :heavy_minus_sign: | List all the Jobs by connectionId. | {
"next": "https://api.airbyte.com/v1/jobs?limit=5\u0026offset=10",
"previous": "https://api.airbyte.com/v1/jobs?limit=5\u0026offset=0",
"data": [
{
"id": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"status": "running",
"jobType": "sync",
"startTime": "2023-03-25T01:30:50Z"
}
]
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/ListOrganizationsForUserResponse.md b/docs/models/operations/ListOrganizationsForUserResponse.md index 691a23ee0..ff45da99f 100644 --- a/docs/models/operations/ListOrganizationsForUserResponse.md +++ b/docs/models/operations/ListOrganizationsForUserResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `organizationsResponse` | [Optional\](../../models/shared/OrganizationsResponse.md) | :heavy_minus_sign: | List user's organizations. | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `organizationsResponse` | [Optional\](../../models/shared/OrganizationsResponse.md) | :heavy_minus_sign: | List user's organizations. | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListPermissionsResponse.md b/docs/models/operations/ListPermissionsResponse.md index ae021b9ae..81c495d07 100644 --- a/docs/models/operations/ListPermissionsResponse.md +++ b/docs/models/operations/ListPermissionsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `permissionsResponse` | [Optional\](../../models/shared/PermissionsResponse.md) | :heavy_minus_sign: | List Permissions. | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `permissionsResponse` | [Optional\](../../models/shared/PermissionsResponse.md) | :heavy_minus_sign: | List Permissions. | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListSourceDefinitionsResponse.md b/docs/models/operations/ListSourceDefinitionsResponse.md index c484e0b93..2dd6ab5f3 100644 --- a/docs/models/operations/ListSourceDefinitionsResponse.md +++ b/docs/models/operations/ListSourceDefinitionsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `definitionsResponse` | [Optional\](../../models/shared/DefinitionsResponse.md) | :heavy_minus_sign: | Successful operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `definitionsResponse` | [Optional\](../../models/shared/DefinitionsResponse.md) | :heavy_minus_sign: | Successful operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListSourcesResponse.md b/docs/models/operations/ListSourcesResponse.md index f426b0167..efa4a85d0 100644 --- a/docs/models/operations/ListSourcesResponse.md +++ b/docs/models/operations/ListSourcesResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `sourcesResponse` | [Optional\](../../models/shared/SourcesResponse.md) | :heavy_minus_sign: | Successful operation | {
"next": "https://api.airbyte.com/v1/sources?limit=5\u0026offset=10",
"previous": "https://api.airbyte.com/v1/sources?limit=5\u0026offset=0",
"data": {
"sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team Postgres",
"sourceType": "postgres",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"
}
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/ListTagsResponse.md b/docs/models/operations/ListTagsResponse.md index fb78557b8..afff20073 100644 --- a/docs/models/operations/ListTagsResponse.md +++ b/docs/models/operations/ListTagsResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `tagsResponse` | [Optional\](../../models/shared/TagsResponse.md) | :heavy_minus_sign: | List Tags. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `tagsResponse` | [Optional\](../../models/shared/TagsResponse.md) | :heavy_minus_sign: | List Tags. | \ No newline at end of file diff --git a/docs/models/operations/ListUsersWithinAnOrganizationResponse.md b/docs/models/operations/ListUsersWithinAnOrganizationResponse.md index aa1b45d74..e1c336c6c 100644 --- a/docs/models/operations/ListUsersWithinAnOrganizationResponse.md +++ b/docs/models/operations/ListUsersWithinAnOrganizationResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `usersResponse` | [Optional\](../../models/shared/UsersResponse.md) | :heavy_minus_sign: | List Users. | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `usersResponse` | [Optional\](../../models/shared/UsersResponse.md) | :heavy_minus_sign: | List Users. | \ No newline at end of file diff --git a/docs/models/operations/ListWorkspacesResponse.md b/docs/models/operations/ListWorkspacesResponse.md index 70254a2de..68dfb6eb3 100644 --- a/docs/models/operations/ListWorkspacesResponse.md +++ b/docs/models/operations/ListWorkspacesResponse.md @@ -7,5 +7,5 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | | `workspacesResponse` | [Optional\](../../models/shared/WorkspacesResponse.md) | :heavy_minus_sign: | Successful operation | {
"next": "https://api.airbyte.com/v1/workspaces?limit=5\u0026offset=10",
"previous": "https://api.airbyte.com/v1/workspaces?limit=5\u0026offset=0",
"data": {
"workspaceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Acme Company",
"dataResidency": "auto"
}
} | \ No newline at end of file diff --git a/docs/models/operations/PatchConnectionResponse.md b/docs/models/operations/PatchConnectionResponse.md index f21a8e9a4..6d4c11a72 100644 --- a/docs/models/operations/PatchConnectionResponse.md +++ b/docs/models/operations/PatchConnectionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `connectionResponse` | [Optional\](../../models/shared/ConnectionResponse.md) | :heavy_minus_sign: | Update a Connection by the id in the path. | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `connectionResponse` | [Optional\](../../models/shared/ConnectionResponse.md) | :heavy_minus_sign: | Update a Connection by the id in the path. | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/PatchDestinationResponse.md b/docs/models/operations/PatchDestinationResponse.md index 306979caf..06de9e283 100644 --- a/docs/models/operations/PatchDestinationResponse.md +++ b/docs/models/operations/PatchDestinationResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `destinationResponse` | [Optional\](../../models/shared/DestinationResponse.md) | :heavy_minus_sign: | Update a Destination | {
"destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team Postgres",
"destinationType": "postgres",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e",
"definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/PatchSourceResponse.md b/docs/models/operations/PatchSourceResponse.md index 8232d1026..b86e3bdc1 100644 --- a/docs/models/operations/PatchSourceResponse.md +++ b/docs/models/operations/PatchSourceResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `sourceResponse` | [Optional\](../../models/shared/SourceResponse.md) | :heavy_minus_sign: | Update a Source | {
"sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team Postgres",
"sourceType": "postgres",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e",
"definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/PutDestinationResponse.md b/docs/models/operations/PutDestinationResponse.md index ca30be861..516ad4068 100644 --- a/docs/models/operations/PutDestinationResponse.md +++ b/docs/models/operations/PutDestinationResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `destinationResponse` | [Optional\](../../models/shared/DestinationResponse.md) | :heavy_minus_sign: | Update a Destination and fully overwrite it | {
"destinationId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team Postgres",
"destinationType": "postgres",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e",
"definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/PutSourceResponse.md b/docs/models/operations/PutSourceResponse.md index 19778b0af..bd916a1be 100644 --- a/docs/models/operations/PutSourceResponse.md +++ b/docs/models/operations/PutSourceResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `sourceResponse` | [Optional\](../../models/shared/SourceResponse.md) | :heavy_minus_sign: | Update a source and fully overwrite it | {
"sourceId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team Postgres",
"sourceType": "postgres",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e",
"definitionId": "321d9b60-11d1-44cb-8c92-c246d53bf98e"
} | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | \ No newline at end of file diff --git a/docs/models/operations/UpdateDeclarativeSourceDefinitionResponse.md b/docs/models/operations/UpdateDeclarativeSourceDefinitionResponse.md index 444edbe5a..a1bcc1862 100644 --- a/docs/models/operations/UpdateDeclarativeSourceDefinitionResponse.md +++ b/docs/models/operations/UpdateDeclarativeSourceDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `declarativeSourceDefinitionResponse` | [Optional\](../../models/shared/DeclarativeSourceDefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `declarativeSourceDefinitionResponse` | [Optional\](../../models/shared/DeclarativeSourceDefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/UpdateDestinationDefinitionResponse.md b/docs/models/operations/UpdateDestinationDefinitionResponse.md index d4bbfb299..323e4c970 100644 --- a/docs/models/operations/UpdateDestinationDefinitionResponse.md +++ b/docs/models/operations/UpdateDestinationDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/UpdatePermissionResponse.md b/docs/models/operations/UpdatePermissionResponse.md index daac3dc75..add4ecc55 100644 --- a/docs/models/operations/UpdatePermissionResponse.md +++ b/docs/models/operations/UpdatePermissionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `permissionResponse` | [Optional\](../../models/shared/PermissionResponse.md) | :heavy_minus_sign: | Successful updated | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `permissionResponse` | [Optional\](../../models/shared/PermissionResponse.md) | :heavy_minus_sign: | Successful updated | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/UpdateSourceDefinitionResponse.md b/docs/models/operations/UpdateSourceDefinitionResponse.md index 0424211b8..2a0ff668e 100644 --- a/docs/models/operations/UpdateSourceDefinitionResponse.md +++ b/docs/models/operations/UpdateSourceDefinitionResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `definitionResponse` | [Optional\](../../models/shared/DefinitionResponse.md) | :heavy_minus_sign: | Success | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/UpdateTagResponse.md b/docs/models/operations/UpdateTagResponse.md index 90263cc84..93fc43966 100644 --- a/docs/models/operations/UpdateTagResponse.md +++ b/docs/models/operations/UpdateTagResponse.md @@ -7,5 +7,5 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | | | `tagResponse` | [Optional\](../../models/shared/TagResponse.md) | :heavy_minus_sign: | Successful operation | {
"tagId": "18dccc91-0ab1-4f72-9ed7-0b8fc27c5826",
"name": "Analytics Team",
"color": "FF5733",
"workspaceId": "871d9b60-11d1-44cb-8c92-c246d53bf87e"
} | \ No newline at end of file diff --git a/docs/models/operations/UpdateWorkspaceResponse.md b/docs/models/operations/UpdateWorkspaceResponse.md index a68b4c767..87dd62121 100644 --- a/docs/models/operations/UpdateWorkspaceResponse.md +++ b/docs/models/operations/UpdateWorkspaceResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `workspaceResponse` | [Optional\](../../models/shared/WorkspaceResponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `workspaceResponse` | [Optional\](../../models/shared/WorkspaceResponse.md) | :heavy_minus_sign: | Successful operation | \ No newline at end of file diff --git a/docs/models/shared/APIKey.md b/docs/models/shared/APIKey.md index 6b77d2dfd..64e850164 100644 --- a/docs/models/shared/APIKey.md +++ b/docs/models/shared/APIKey.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| `apikey` | *String* | :heavy_check_mark: | Mailchimp API Key. See the docs for information on how to generate this key. | -| `authType` | [SourceMailchimpSchemasAuthType](../../models/shared/SourceMailchimpSchemasAuthType.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *Optional\* | :heavy_minus_sign: | Kit/ConvertKit API Key | +| `authType` | [SourceConvertkitSchemasAuthType](../../models/shared/SourceConvertkitSchemasAuthType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationSnowflakeSnowflake.md b/docs/models/shared/Appsflyer.md similarity index 54% rename from docs/models/shared/DestinationSnowflakeSnowflake.md rename to docs/models/shared/Appsflyer.md index 5fc7b64db..1b445df0d 100644 --- a/docs/models/shared/DestinationSnowflakeSnowflake.md +++ b/docs/models/shared/Appsflyer.md @@ -1,8 +1,8 @@ -# DestinationSnowflakeSnowflake +# Appsflyer ## Values | Name | Value | | ----------- | ----------- | -| `SNOWFLAKE` | snowflake | \ No newline at end of file +| `APPSFLYER` | appsflyer | \ No newline at end of file diff --git a/docs/models/shared/AwinAdvertiser.md b/docs/models/shared/AwinAdvertiser.md new file mode 100644 index 000000000..bbc6af13f --- /dev/null +++ b/docs/models/shared/AwinAdvertiser.md @@ -0,0 +1,8 @@ +# AwinAdvertiser + + +## Values + +| Name | Value | +| ----------------- | ----------------- | +| `AWIN_ADVERTISER` | awin-advertiser | \ No newline at end of file diff --git a/docs/models/shared/BatchedStandardInserts.md b/docs/models/shared/BatchedStandardInserts.md index 5dc79899d..6a3d1de11 100644 --- a/docs/models/shared/BatchedStandardInserts.md +++ b/docs/models/shared/BatchedStandardInserts.md @@ -5,6 +5,7 @@ Direct loading using batched SQL INSERT statements. This method uses the BigQuer ## Fields -| Field | Type | Required | Description | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `method` | [Method](../../models/shared/Method.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `method` | [Optional\](../../models/shared/Method.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/BulkLoad.md b/docs/models/shared/BulkLoad.md index 3b5f0807f..69a3d6384 100644 --- a/docs/models/shared/BulkLoad.md +++ b/docs/models/shared/BulkLoad.md @@ -14,4 +14,4 @@ Configuration details for using the BULK loading mechanism. | `bulkLoadDataSource` | *String* | :heavy_check_mark: | Specifies the external data source name configured in MSSQL, which references the Azure Blob container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql | MyAzureBlobStorage | | `bulkLoadValidateValuesPreLoad` | *Optional\* | :heavy_minus_sign: | When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. | false | | `loadType` | [Optional\](../../models/shared/DestinationMssqlLoadType.md) | :heavy_minus_sign: | N/A | | -| `sharedAccessSignature` | *Optional\* | :heavy_minus_sign: | A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually exclusive with an account key | a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY | \ No newline at end of file +| `sharedAccessSignature` | *Optional\* | :heavy_minus_sign: | A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually exclusive with an account key | sv=2021-08-06&st=2025-04-11T00%3A00%3A00Z&se=2025-04-12T00%3A00%3A00Z&sr=b&sp=rw&sig=abcdefghijklmnopqrstuvwxyz1234567890%2Fabcdefg%3D | \ No newline at end of file diff --git a/docs/models/shared/CDCDeletionMode.md b/docs/models/shared/CDCDeletionMode.md new file mode 100644 index 000000000..36b047097 --- /dev/null +++ b/docs/models/shared/CDCDeletionMode.md @@ -0,0 +1,11 @@ +# CDCDeletionMode + +Whether to execute CDC deletions as hard deletes (i.e. propagate source deletions to the destination), or soft deletes (i.e. leave a tombstone record in the destination). Defaults to hard deletes. + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `HARD_DELETE` | Hard delete | +| `SOFT_DELETE` | Soft delete | \ No newline at end of file diff --git a/docs/models/shared/Churnkey.md b/docs/models/shared/Churnkey.md new file mode 100644 index 000000000..f6321f98c --- /dev/null +++ b/docs/models/shared/Churnkey.md @@ -0,0 +1,8 @@ +# Churnkey + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `CHURNKEY` | churnkey | \ No newline at end of file diff --git a/docs/models/shared/ConnectionCreateRequest.md b/docs/models/shared/ConnectionCreateRequest.md index a8782ad11..90961a997 100644 --- a/docs/models/shared/ConnectionCreateRequest.md +++ b/docs/models/shared/ConnectionCreateRequest.md @@ -3,17 +3,17 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `configurations` | [Optional\](../../models/shared/StreamConfigurationsInput.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | -| ~~`dataResidency`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: We no longer support modifying dataResidency on Community and Enterprise connections. This will be supported on Cloud until May 31, at which time all connections will use the dataResidency of their associated workspace.. | | -| `destinationId` | *String* | :heavy_check_mark: | N/A | | -| `name` | *Optional\* | :heavy_minus_sign: | Optional name of the connection | | -| `namespaceDefinition` | [Optional\](../../models/shared/NamespaceDefinitionEnum.md) | :heavy_minus_sign: | Define the location where the data will be stored in the destination | | -| `namespaceFormat` | *Optional\* | :heavy_minus_sign: | Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. | ${SOURCE_NAMESPACE} | -| `nonBreakingSchemaUpdatesBehavior` | [Optional\](../../models/shared/NonBreakingSchemaUpdatesBehaviorEnum.md) | :heavy_minus_sign: | Set how Airbyte handles syncs when it detects a non-breaking schema change in the source | | -| `prefix` | *Optional\* | :heavy_minus_sign: | Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”). | | -| `schedule` | [Optional\](../../models/shared/AirbyteApiConnectionSchedule.md) | :heavy_minus_sign: | schedule for when the the connection should run, per the schedule type | | -| `sourceId` | *String* | :heavy_check_mark: | N/A | | -| `status` | [Optional\](../../models/shared/ConnectionStatusEnum.md) | :heavy_minus_sign: | N/A | | -| `tags` | List\<[Tag](../../models/shared/Tag.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `configurations` | [Optional\](../../models/shared/StreamConfigurationsInput.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | +| ~~`dataResidency`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: We no longer support modifying dataResidency on Community and Enterprise connections. All connections will use the dataResidency of their associated workspace.. | | +| `destinationId` | *String* | :heavy_check_mark: | N/A | | +| `name` | *Optional\* | :heavy_minus_sign: | Optional name of the connection | | +| `namespaceDefinition` | [Optional\](../../models/shared/NamespaceDefinitionEnum.md) | :heavy_minus_sign: | Define the location where the data will be stored in the destination | | +| `namespaceFormat` | *Optional\* | :heavy_minus_sign: | Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. | ${SOURCE_NAMESPACE} | +| `nonBreakingSchemaUpdatesBehavior` | [Optional\](../../models/shared/NonBreakingSchemaUpdatesBehaviorEnum.md) | :heavy_minus_sign: | Set how Airbyte handles syncs when it detects a non-breaking schema change in the source | | +| `prefix` | *Optional\* | :heavy_minus_sign: | Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”). | | +| `schedule` | [Optional\](../../models/shared/AirbyteApiConnectionSchedule.md) | :heavy_minus_sign: | schedule for when the the connection should run, per the schedule type | | +| `sourceId` | *String* | :heavy_check_mark: | N/A | | +| `status` | [Optional\](../../models/shared/ConnectionStatusEnum.md) | :heavy_minus_sign: | N/A | | +| `tags` | List\<[Tag](../../models/shared/Tag.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/ConnectionPatchRequest.md b/docs/models/shared/ConnectionPatchRequest.md index fc600c4fe..7e253fa7f 100644 --- a/docs/models/shared/ConnectionPatchRequest.md +++ b/docs/models/shared/ConnectionPatchRequest.md @@ -3,15 +3,15 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `configurations` | [Optional\](../../models/shared/StreamConfigurationsInput.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | -| ~~`dataResidency`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: We no longer support modifying dataResidency on Community and Enterprise connections. This will be supported on Cloud until May 31, at which time all connections will use the dataResidency of their associated workspace.. | | -| `name` | *Optional\* | :heavy_minus_sign: | Optional name of the connection | | -| `namespaceDefinition` | [Optional\](../../models/shared/NamespaceDefinitionEnumNoDefault.md) | :heavy_minus_sign: | Define the location where the data will be stored in the destination | | -| `namespaceFormat` | *Optional\* | :heavy_minus_sign: | Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. | ${SOURCE_NAMESPACE} | -| `nonBreakingSchemaUpdatesBehavior` | [Optional\](../../models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.md) | :heavy_minus_sign: | Set how Airbyte handles syncs when it detects a non-breaking schema change in the source | | -| `prefix` | *Optional\* | :heavy_minus_sign: | Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”). | | -| `schedule` | [Optional\](../../models/shared/AirbyteApiConnectionSchedule.md) | :heavy_minus_sign: | schedule for when the the connection should run, per the schedule type | | -| `status` | [Optional\](../../models/shared/ConnectionStatusEnum.md) | :heavy_minus_sign: | N/A | | -| `tags` | List\<[Tag](../../models/shared/Tag.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `configurations` | [Optional\](../../models/shared/StreamConfigurationsInput.md) | :heavy_minus_sign: | A list of configured stream options for a connection. | | +| ~~`dataResidency`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: We no longer support modifying dataResidency on Community and Enterprise connections. All connections will use the dataResidency of their associated workspace.. | | +| `name` | *Optional\* | :heavy_minus_sign: | Optional name of the connection | | +| `namespaceDefinition` | [Optional\](../../models/shared/NamespaceDefinitionEnumNoDefault.md) | :heavy_minus_sign: | Define the location where the data will be stored in the destination | | +| `namespaceFormat` | *Optional\* | :heavy_minus_sign: | Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. | ${SOURCE_NAMESPACE} | +| `nonBreakingSchemaUpdatesBehavior` | [Optional\](../../models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.md) | :heavy_minus_sign: | Set how Airbyte handles syncs when it detects a non-breaking schema change in the source | | +| `prefix` | *Optional\* | :heavy_minus_sign: | Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”). | | +| `schedule` | [Optional\](../../models/shared/AirbyteApiConnectionSchedule.md) | :heavy_minus_sign: | schedule for when the the connection should run, per the schedule type | | +| `status` | [Optional\](../../models/shared/ConnectionStatusEnum.md) | :heavy_minus_sign: | N/A | | +| `tags` | List\<[Tag](../../models/shared/Tag.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/ConnectionResponse.md b/docs/models/shared/ConnectionResponse.md index 448b77c5b..ec2ff1fa5 100644 --- a/docs/models/shared/ConnectionResponse.md +++ b/docs/models/shared/ConnectionResponse.md @@ -10,7 +10,6 @@ Provides details of a single connection. | `configurations` | [StreamConfigurations](../../models/shared/StreamConfigurations.md) | :heavy_check_mark: | A list of configured stream options for a connection. | | `connectionId` | *String* | :heavy_check_mark: | N/A | | `createdAt` | *long* | :heavy_check_mark: | N/A | -| `dataResidency` | *String* | :heavy_check_mark: | N/A | | `destinationId` | *String* | :heavy_check_mark: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | | `namespaceDefinition` | [Optional\](../../models/shared/NamespaceDefinitionEnum.md) | :heavy_minus_sign: | Define the location where the data will be stored in the destination | diff --git a/docs/models/shared/ConnectionSyncModeEnum.md b/docs/models/shared/ConnectionSyncModeEnum.md index 0b00e162a..1d7e78712 100644 --- a/docs/models/shared/ConnectionSyncModeEnum.md +++ b/docs/models/shared/ConnectionSyncModeEnum.md @@ -8,5 +8,9 @@ | `FULL_REFRESH_OVERWRITE` | full_refresh_overwrite | | `FULL_REFRESH_OVERWRITE_DEDUPED` | full_refresh_overwrite_deduped | | `FULL_REFRESH_APPEND` | full_refresh_append | +| `FULL_REFRESH_UPDATE` | full_refresh_update | +| `FULL_REFRESH_SOFT_DELETE` | full_refresh_soft_delete | | `INCREMENTAL_APPEND` | incremental_append | -| `INCREMENTAL_DEDUPED_HISTORY` | incremental_deduped_history | \ No newline at end of file +| `INCREMENTAL_DEDUPED_HISTORY` | incremental_deduped_history | +| `INCREMENTAL_UPDATE` | incremental_update | +| `INCREMENTAL_SOFT_DELETE` | incremental_soft_delete | \ No newline at end of file diff --git a/docs/models/shared/DatasetLocation.md b/docs/models/shared/DatasetLocation.md index 4c86f1098..dc4bc5932 100644 --- a/docs/models/shared/DatasetLocation.md +++ b/docs/models/shared/DatasetLocation.md @@ -7,8 +7,9 @@ The location of the dataset. Warning: Changes made after creation will not be ap | Name | Value | | ------------------------- | ------------------------- | -| `US` | US | | `EU` | EU | +| `US` | US | +| `AFRICA_SOUTH1` | africa-south1 | | `ASIA_EAST1` | asia-east1 | | `ASIA_EAST2` | asia-east2 | | `ASIA_NORTHEAST1` | asia-northeast1 | @@ -20,30 +21,29 @@ The location of the dataset. Warning: Changes made after creation will not be ap | `ASIA_SOUTHEAST2` | asia-southeast2 | | `AUSTRALIA_SOUTHEAST1` | australia-southeast1 | | `AUSTRALIA_SOUTHEAST2` | australia-southeast2 | -| `EUROPE_CENTRAL1` | europe-central1 | | `EUROPE_CENTRAL2` | europe-central2 | | `EUROPE_NORTH1` | europe-north1 | +| `EUROPE_NORTH2` | europe-north2 | | `EUROPE_SOUTHWEST1` | europe-southwest1 | | `EUROPE_WEST1` | europe-west1 | | `EUROPE_WEST2` | europe-west2 | | `EUROPE_WEST3` | europe-west3 | | `EUROPE_WEST4` | europe-west4 | | `EUROPE_WEST6` | europe-west6 | -| `EUROPE_WEST7` | europe-west7 | | `EUROPE_WEST8` | europe-west8 | | `EUROPE_WEST9` | europe-west9 | +| `EUROPE_WEST10` | europe-west10 | | `EUROPE_WEST12` | europe-west12 | | `ME_CENTRAL1` | me-central1 | | `ME_CENTRAL2` | me-central2 | | `ME_WEST1` | me-west1 | | `NORTHAMERICA_NORTHEAST1` | northamerica-northeast1 | | `NORTHAMERICA_NORTHEAST2` | northamerica-northeast2 | +| `NORTHAMERICA_SOUTH1` | northamerica-south1 | | `SOUTHAMERICA_EAST1` | southamerica-east1 | | `SOUTHAMERICA_WEST1` | southamerica-west1 | | `US_CENTRAL1` | us-central1 | | `US_EAST1` | us-east1 | -| `US_EAST2` | us-east2 | -| `US_EAST3` | us-east3 | | `US_EAST4` | us-east4 | | `US_EAST5` | us-east5 | | `US_SOUTH1` | us-south1 | diff --git a/docs/models/shared/DestinationAzureBlobStorage.md b/docs/models/shared/DestinationAzureBlobStorage.md index 7ee57c3cb..6600399e6 100644 --- a/docs/models/shared/DestinationAzureBlobStorage.md +++ b/docs/models/shared/DestinationAzureBlobStorage.md @@ -12,4 +12,4 @@ | `azureBlobStorageSpillSize` | *Optional\* | :heavy_minus_sign: | The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable. | | | `destinationType` | [DestinationAzureBlobStorageAzureBlobStorage](../../models/shared/DestinationAzureBlobStorageAzureBlobStorage.md) | :heavy_check_mark: | N/A | | | `format` | [OutputFormat](../../models/shared/OutputFormat.md) | :heavy_check_mark: | Format of the data output. | | -| `sharedAccessSignature` | *Optional\* | :heavy_minus_sign: | A shared access signature (SAS) provides secure delegated access to resources in your storage account. Read more here. If you set this value, you must not set the account key. | a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY | \ No newline at end of file +| `sharedAccessSignature` | *Optional\* | :heavy_minus_sign: | A shared access signature (SAS) provides secure delegated access to resources in your storage account. Read more here. If you set this value, you must not set the account key. | sv=2021-08-06&st=2025-04-11T00%3A00%3A00Z&se=2025-04-12T00%3A00%3A00Z&sr=b&sp=rw&sig=abcdefghijklmnopqrstuvwxyz1234567890%2Fabcdefg%3D | \ No newline at end of file diff --git a/docs/models/shared/DestinationBigquery.md b/docs/models/shared/DestinationBigquery.md index 6ed77a9b5..c43a84927 100644 --- a/docs/models/shared/DestinationBigquery.md +++ b/docs/models/shared/DestinationBigquery.md @@ -3,15 +3,14 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `bigQueryClientBufferSizeMb` | *Optional\* | :heavy_minus_sign: | Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more here. | 15 | -| `credentialsJson` | *Optional\* | :heavy_minus_sign: | The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty. | | -| `datasetId` | *String* | :heavy_check_mark: | The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more here. | | -| `datasetLocation` | [DatasetLocation](../../models/shared/DatasetLocation.md) | :heavy_check_mark: | The location of the dataset. Warning: Changes made after creation will not be applied. Read more here. | | -| `destinationType` | [Bigquery](../../models/shared/Bigquery.md) | :heavy_check_mark: | N/A | | -| `disableTypeDedupe` | *Optional\* | :heavy_minus_sign: | Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions | | -| `loadingMethod` | [Optional\](../../models/shared/LoadingMethod.md) | :heavy_minus_sign: | The way data will be uploaded to BigQuery. | | -| `projectId` | *String* | :heavy_check_mark: | The GCP project ID for the project containing the target BigQuery dataset. Read more here. | | -| `rawDataDataset` | *Optional\* | :heavy_minus_sign: | The dataset to write raw tables into (default: airbyte_internal) | | -| `transformationPriority` | [Optional\](../../models/shared/TransformationQueryRunType.md) | :heavy_minus_sign: | Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type here. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries here. The default "interactive" value is used if not set explicitly. | | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `cdcDeletionMode` | [Optional\](../../models/shared/CDCDeletionMode.md) | :heavy_minus_sign: | Whether to execute CDC deletions as hard deletes (i.e. propagate source deletions to the destination), or soft deletes (i.e. leave a tombstone record in the destination). Defaults to hard deletes. | +| `credentialsJson` | *Optional\* | :heavy_minus_sign: | The contents of the JSON service account key. Check out the docs if you need help generating this key. Default credentials will be used if this field is left empty. | +| `datasetId` | *String* | :heavy_check_mark: | The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more here. | +| `datasetLocation` | [DatasetLocation](../../models/shared/DatasetLocation.md) | :heavy_check_mark: | The location of the dataset. Warning: Changes made after creation will not be applied. Read more here. | +| `destinationType` | [Bigquery](../../models/shared/Bigquery.md) | :heavy_check_mark: | N/A | +| `disableTypeDedupe` | *Optional\* | :heavy_minus_sign: | Write the legacy "raw tables" format, to enable backwards compatibility with older versions of this connector. | +| `loadingMethod` | [Optional\](../../models/shared/LoadingMethod.md) | :heavy_minus_sign: | The way data will be uploaded to BigQuery. | +| `projectId` | *String* | :heavy_check_mark: | The GCP project ID for the project containing the target BigQuery dataset. Read more here. | +| `rawDataDataset` | *Optional\* | :heavy_minus_sign: | Airbyte will use this dataset for various internal tables. In legacy raw tables mode, the raw tables will be stored in this dataset. Defaults to "airbyte_internal". | \ No newline at end of file diff --git a/docs/models/shared/DestinationBigqueryHMACKey.md b/docs/models/shared/DestinationBigqueryHMACKey.md index 9584acaed..7e11c4a43 100644 --- a/docs/models/shared/DestinationBigqueryHMACKey.md +++ b/docs/models/shared/DestinationBigqueryHMACKey.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -| `credentialType` | [DestinationBigqueryCredentialType](../../models/shared/DestinationBigqueryCredentialType.md) | :heavy_check_mark: | N/A | | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | | +| `credentialType` | [Optional\](../../models/shared/DestinationBigqueryCredentialType.md) | :heavy_minus_sign: | N/A | | | `hmacKeyAccessId` | *String* | :heavy_check_mark: | HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. | 1234567890abcdefghij1234 | | `hmacKeySecret` | *String* | :heavy_check_mark: | The corresponding secret for the access ID. It is a 40-character base-64 encoded string. | 1234567890abcdefghij1234567890ABCDEFGHIJ | \ No newline at end of file diff --git a/docs/models/shared/DestinationClickhouse.md b/docs/models/shared/DestinationClickhouse.md index fa8ca1553..bad9b0887 100644 --- a/docs/models/shared/DestinationClickhouse.md +++ b/docs/models/shared/DestinationClickhouse.md @@ -3,15 +3,15 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `database` | *String* | :heavy_check_mark: | Name of the database. | | -| `destinationType` | [Clickhouse](../../models/shared/Clickhouse.md) | :heavy_check_mark: | N/A | | -| `host` | *String* | :heavy_check_mark: | Hostname of the database. | | -| `jdbcUrlParams` | *Optional\* | :heavy_minus_sign: | Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). | | -| `password` | *Optional\* | :heavy_minus_sign: | Password associated with the username. | | -| `port` | *Optional\* | :heavy_minus_sign: | HTTP port of the database. | 8123 | -| `rawDataSchema` | *Optional\* | :heavy_minus_sign: | The schema to write raw tables into (default: airbyte_internal) | | -| `ssl` | *Optional\* | :heavy_minus_sign: | Encrypt data using SSL. | | -| `tunnelMethod` | [Optional\](../../models/shared/SSHTunnelMethod.md) | :heavy_minus_sign: | Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. | | -| `username` | *String* | :heavy_check_mark: | Username to use to access the database. | | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `database` | *Optional\* | :heavy_minus_sign: | Name of the database. | +| `destinationType` | [Clickhouse](../../models/shared/Clickhouse.md) | :heavy_check_mark: | N/A | +| `enableJson` | *Optional\* | :heavy_minus_sign: | Use the JSON type for Object fields. If disabled, the JSON will be converted to a string. | +| `host` | *String* | :heavy_check_mark: | Hostname of the database. | +| `password` | *String* | :heavy_check_mark: | Password associated with the username. | +| `port` | *Optional\* | :heavy_minus_sign: | HTTP port of the database. Default(s) HTTP: 8123 — HTTPS: 8443 | +| `protocol` | [Optional\](../../models/shared/Protocol.md) | :heavy_minus_sign: | Protocol for the database connection string. | +| `recordWindowSize` | *Optional\* | :heavy_minus_sign: | Warning: Tuning this parameter can impact the performances. The maximum number of records that should be written to a batch. The batch size limit is still limited to 70 Mb | +| `tunnelMethod` | [Optional\](../../models/shared/SSHTunnelMethod.md) | :heavy_minus_sign: | Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. | +| `username` | *Optional\* | :heavy_minus_sign: | Username to use to access the database. | \ No newline at end of file diff --git a/docs/models/shared/DestinationClickhouseSchemasTunnelMethod.md b/docs/models/shared/DestinationClickhouseSchemasTunnelMethod.md index 747b56911..e72e5fe0e 100644 --- a/docs/models/shared/DestinationClickhouseSchemasTunnelMethod.md +++ b/docs/models/shared/DestinationClickhouseSchemasTunnelMethod.md @@ -1,7 +1,5 @@ # DestinationClickhouseSchemasTunnelMethod -Connect through a jump server tunnel host using username and password authentication - ## Values diff --git a/docs/models/shared/DestinationClickhouseTunnelMethod.md b/docs/models/shared/DestinationClickhouseTunnelMethod.md index 1eda5de54..4a4eabfc5 100644 --- a/docs/models/shared/DestinationClickhouseTunnelMethod.md +++ b/docs/models/shared/DestinationClickhouseTunnelMethod.md @@ -1,7 +1,5 @@ # DestinationClickhouseTunnelMethod -Connect through a jump server tunnel host using username and ssh key - ## Values diff --git a/docs/models/shared/DestinationCustomerIo.md b/docs/models/shared/DestinationCustomerIo.md new file mode 100644 index 000000000..fe0e73a13 --- /dev/null +++ b/docs/models/shared/DestinationCustomerIo.md @@ -0,0 +1,10 @@ +# DestinationCustomerIo + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `credentials` | [DestinationCustomerIoCredentials](../../models/shared/DestinationCustomerIoCredentials.md) | :heavy_check_mark: | Enter the site ID and API key to authenticate. | +| `destinationType` | [CustomerIo](../../models/shared/CustomerIo.md) | :heavy_check_mark: | N/A | +| `objectStorageConfig` | [Optional\](../../models/shared/ObjectStorageConfiguration.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationCustomerIoCredentials.md b/docs/models/shared/DestinationCustomerIoCredentials.md new file mode 100644 index 000000000..ba7248e3a --- /dev/null +++ b/docs/models/shared/DestinationCustomerIoCredentials.md @@ -0,0 +1,12 @@ +# DestinationCustomerIoCredentials + +Enter the site ID and API key to authenticate. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `apiKey` | *String* | :heavy_check_mark: | Enter your Customer IO API Key. | +| `siteId` | *String* | :heavy_check_mark: | Enter your Customer IO Site ID. | \ No newline at end of file diff --git a/docs/models/shared/DestinationCustomerIoS3.md b/docs/models/shared/DestinationCustomerIoS3.md new file mode 100644 index 000000000..02ed1ec9d --- /dev/null +++ b/docs/models/shared/DestinationCustomerIoS3.md @@ -0,0 +1,16 @@ +# DestinationCustomerIoS3 + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | | +| `accessKeyId` | *Optional\* | :heavy_minus_sign: | The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here. | A012345678910EXAMPLE | +| `bucketPath` | *String* | :heavy_check_mark: | All files in the bucket will be prefixed by this. | prefix/ | +| `roleArn` | *Optional\* | :heavy_minus_sign: | The ARN of the AWS role to assume. Only usable in Airbyte Cloud. | arn:aws:iam::123456789:role/ExternalIdIsYourWorkspaceId | +| `s3BucketName` | *String* | :heavy_check_mark: | The name of the S3 bucket. Read more here. | airbyte_sync | +| `s3BucketRegion` | [Optional\](../../models/shared/DestinationCustomerIoS3BucketRegion.md) | :heavy_minus_sign: | The region of the S3 bucket. See here for all region codes. | us-east-1 | +| `s3Endpoint` | *Optional\* | :heavy_minus_sign: | Your S3 endpoint url. Read more here | http://localhost:9000 | +| `secretAccessKey` | *Optional\* | :heavy_minus_sign: | The corresponding secret to the access key ID. Read more here | a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY | +| `storageType` | [Optional\](../../models/shared/DestinationCustomerIoStorageType.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/DestinationCustomerIoS3BucketRegion.md b/docs/models/shared/DestinationCustomerIoS3BucketRegion.md new file mode 100644 index 000000000..8bf65e40e --- /dev/null +++ b/docs/models/shared/DestinationCustomerIoS3BucketRegion.md @@ -0,0 +1,43 @@ +# DestinationCustomerIoS3BucketRegion + +The region of the S3 bucket. See here for all region codes. + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `UNKNOWN` | | +| `AF_SOUTH1` | af-south-1 | +| `AP_EAST1` | ap-east-1 | +| `AP_NORTHEAST1` | ap-northeast-1 | +| `AP_NORTHEAST2` | ap-northeast-2 | +| `AP_NORTHEAST3` | ap-northeast-3 | +| `AP_SOUTH1` | ap-south-1 | +| `AP_SOUTH2` | ap-south-2 | +| `AP_SOUTHEAST1` | ap-southeast-1 | +| `AP_SOUTHEAST2` | ap-southeast-2 | +| `AP_SOUTHEAST3` | ap-southeast-3 | +| `AP_SOUTHEAST4` | ap-southeast-4 | +| `CA_CENTRAL1` | ca-central-1 | +| `CA_WEST1` | ca-west-1 | +| `CN_NORTH1` | cn-north-1 | +| `CN_NORTHWEST1` | cn-northwest-1 | +| `EU_CENTRAL1` | eu-central-1 | +| `EU_CENTRAL2` | eu-central-2 | +| `EU_NORTH1` | eu-north-1 | +| `EU_SOUTH1` | eu-south-1 | +| `EU_SOUTH2` | eu-south-2 | +| `EU_WEST1` | eu-west-1 | +| `EU_WEST2` | eu-west-2 | +| `EU_WEST3` | eu-west-3 | +| `IL_CENTRAL1` | il-central-1 | +| `ME_CENTRAL1` | me-central-1 | +| `ME_SOUTH1` | me-south-1 | +| `SA_EAST1` | sa-east-1 | +| `US_EAST1` | us-east-1 | +| `US_EAST2` | us-east-2 | +| `US_GOV_EAST1` | us-gov-east-1 | +| `US_GOV_WEST1` | us-gov-west-1 | +| `US_WEST1` | us-west-1 | +| `US_WEST2` | us-west-2 | \ No newline at end of file diff --git a/docs/models/shared/DestinationCustomerIoStorageType.md b/docs/models/shared/DestinationCustomerIoStorageType.md new file mode 100644 index 000000000..7cf37cd30 --- /dev/null +++ b/docs/models/shared/DestinationCustomerIoStorageType.md @@ -0,0 +1,8 @@ +# DestinationCustomerIoStorageType + + +## Values + +| Name | Value | +| ----- | ----- | +| `S3` | S3 | \ No newline at end of file diff --git a/docs/models/shared/DestinationDatabricksAuthType.md b/docs/models/shared/DestinationDatabricksAuthType.md index 9f5319aac..e88bee480 100644 --- a/docs/models/shared/DestinationDatabricksAuthType.md +++ b/docs/models/shared/DestinationDatabricksAuthType.md @@ -5,4 +5,4 @@ | Name | Value | | ------- | ------- | -| `OAUTH` | OAUTH | \ No newline at end of file +| `BASIC` | BASIC | \ No newline at end of file diff --git a/docs/models/shared/DestinationDatabricksSchemasAuthType.md b/docs/models/shared/DestinationDatabricksSchemasAuthType.md index bf7839ad7..5dafe8529 100644 --- a/docs/models/shared/DestinationDatabricksSchemasAuthType.md +++ b/docs/models/shared/DestinationDatabricksSchemasAuthType.md @@ -5,4 +5,4 @@ | Name | Value | | ------- | ------- | -| `BASIC` | BASIC | \ No newline at end of file +| `OAUTH` | OAUTH | \ No newline at end of file diff --git a/docs/models/shared/DestinationElasticsearch.md b/docs/models/shared/DestinationElasticsearch.md index da89ff308..e709bb7e1 100644 --- a/docs/models/shared/DestinationElasticsearch.md +++ b/docs/models/shared/DestinationElasticsearch.md @@ -9,5 +9,6 @@ | `caCertificate` | *Optional\* | :heavy_minus_sign: | CA certificate | | `destinationType` | [Elasticsearch](../../models/shared/Elasticsearch.md) | :heavy_check_mark: | N/A | | `endpoint` | *String* | :heavy_check_mark: | The full url of the Elasticsearch server | +| `pathPrefix` | *Optional\* | :heavy_minus_sign: | The Path Prefix of the Elasticsearch server | | `tunnelMethod` | [Optional\](../../models/shared/DestinationElasticsearchSSHTunnelMethod.md) | :heavy_minus_sign: | Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. | | `upsert` | *Optional\* | :heavy_minus_sign: | If a primary key identifier is defined in the source, an upsert will be performed using the primary key value as the elasticsearch doc id. Does not support composite primary keys. | \ No newline at end of file diff --git a/docs/models/shared/DestinationElasticsearchNone.md b/docs/models/shared/DestinationElasticsearchNone.md new file mode 100644 index 000000000..ed95ec371 --- /dev/null +++ b/docs/models/shared/DestinationElasticsearchNone.md @@ -0,0 +1,10 @@ +# DestinationElasticsearchNone + +No authentication will be used + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `method` | [DestinationElasticsearchMethod](../../models/shared/DestinationElasticsearchMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationHubspot.md b/docs/models/shared/DestinationHubspot.md new file mode 100644 index 000000000..3ab6536ca --- /dev/null +++ b/docs/models/shared/DestinationHubspot.md @@ -0,0 +1,10 @@ +# DestinationHubspot + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `credentials` | [DestinationHubspotCredentials](../../models/shared/DestinationHubspotCredentials.md) | :heavy_check_mark: | Choose how to authenticate to HubSpot. | +| `destinationType` | [DestinationHubspotHubspot](../../models/shared/DestinationHubspotHubspot.md) | :heavy_check_mark: | N/A | +| `objectStorageConfig` | [Optional\](../../models/shared/DestinationHubspotObjectStorageConfiguration.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationHubspotCredentials.md b/docs/models/shared/DestinationHubspotCredentials.md new file mode 100644 index 000000000..4223def5b --- /dev/null +++ b/docs/models/shared/DestinationHubspotCredentials.md @@ -0,0 +1,4 @@ +# DestinationHubspotCredentials + +Choose how to authenticate to HubSpot. + diff --git a/docs/models/shared/DestinationHubspotHubspot.md b/docs/models/shared/DestinationHubspotHubspot.md new file mode 100644 index 000000000..b8cd90928 --- /dev/null +++ b/docs/models/shared/DestinationHubspotHubspot.md @@ -0,0 +1,8 @@ +# DestinationHubspotHubspot + + +## Values + +| Name | Value | +| --------- | --------- | +| `HUBSPOT` | hubspot | \ No newline at end of file diff --git a/docs/models/shared/DestinationHubspotNone.md b/docs/models/shared/DestinationHubspotNone.md new file mode 100644 index 000000000..05615ea0a --- /dev/null +++ b/docs/models/shared/DestinationHubspotNone.md @@ -0,0 +1,9 @@ +# DestinationHubspotNone + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `storageType` | [Optional\](../../models/shared/DestinationHubspotStorageType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationHubspotObjectStorageConfiguration.md b/docs/models/shared/DestinationHubspotObjectStorageConfiguration.md new file mode 100644 index 000000000..56ad2cabb --- /dev/null +++ b/docs/models/shared/DestinationHubspotObjectStorageConfiguration.md @@ -0,0 +1,2 @@ +# DestinationHubspotObjectStorageConfiguration + diff --git a/docs/models/shared/DestinationHubspotS3.md b/docs/models/shared/DestinationHubspotS3.md new file mode 100644 index 000000000..6333ea153 --- /dev/null +++ b/docs/models/shared/DestinationHubspotS3.md @@ -0,0 +1,16 @@ +# DestinationHubspotS3 + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | | +| `accessKeyId` | *Optional\* | :heavy_minus_sign: | The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here. | A012345678910EXAMPLE | +| `bucketPath` | *String* | :heavy_check_mark: | All files in the bucket will be prefixed by this. | prefix/ | +| `roleArn` | *Optional\* | :heavy_minus_sign: | The ARN of the AWS role to assume. Only usable in Airbyte Cloud. | arn:aws:iam::123456789:role/ExternalIdIsYourWorkspaceId | +| `s3BucketName` | *String* | :heavy_check_mark: | The name of the S3 bucket. Read more here. | airbyte_sync | +| `s3BucketRegion` | [Optional\](../../models/shared/DestinationHubspotS3BucketRegion.md) | :heavy_minus_sign: | The region of the S3 bucket. See here for all region codes. | us-east-1 | +| `s3Endpoint` | *Optional\* | :heavy_minus_sign: | Your S3 endpoint url. Read more here | http://localhost:9000 | +| `secretAccessKey` | *Optional\* | :heavy_minus_sign: | The corresponding secret to the access key ID. Read more here | a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY | +| `storageType` | [Optional\](../../models/shared/DestinationHubspotSchemasStorageType.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/DestinationHubspotS3BucketRegion.md b/docs/models/shared/DestinationHubspotS3BucketRegion.md new file mode 100644 index 000000000..fc2b64ec0 --- /dev/null +++ b/docs/models/shared/DestinationHubspotS3BucketRegion.md @@ -0,0 +1,43 @@ +# DestinationHubspotS3BucketRegion + +The region of the S3 bucket. See here for all region codes. + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `UNKNOWN` | | +| `AF_SOUTH1` | af-south-1 | +| `AP_EAST1` | ap-east-1 | +| `AP_NORTHEAST1` | ap-northeast-1 | +| `AP_NORTHEAST2` | ap-northeast-2 | +| `AP_NORTHEAST3` | ap-northeast-3 | +| `AP_SOUTH1` | ap-south-1 | +| `AP_SOUTH2` | ap-south-2 | +| `AP_SOUTHEAST1` | ap-southeast-1 | +| `AP_SOUTHEAST2` | ap-southeast-2 | +| `AP_SOUTHEAST3` | ap-southeast-3 | +| `AP_SOUTHEAST4` | ap-southeast-4 | +| `CA_CENTRAL1` | ca-central-1 | +| `CA_WEST1` | ca-west-1 | +| `CN_NORTH1` | cn-north-1 | +| `CN_NORTHWEST1` | cn-northwest-1 | +| `EU_CENTRAL1` | eu-central-1 | +| `EU_CENTRAL2` | eu-central-2 | +| `EU_NORTH1` | eu-north-1 | +| `EU_SOUTH1` | eu-south-1 | +| `EU_SOUTH2` | eu-south-2 | +| `EU_WEST1` | eu-west-1 | +| `EU_WEST2` | eu-west-2 | +| `EU_WEST3` | eu-west-3 | +| `IL_CENTRAL1` | il-central-1 | +| `ME_CENTRAL1` | me-central-1 | +| `ME_SOUTH1` | me-south-1 | +| `SA_EAST1` | sa-east-1 | +| `US_EAST1` | us-east-1 | +| `US_EAST2` | us-east-2 | +| `US_GOV_EAST1` | us-gov-east-1 | +| `US_GOV_WEST1` | us-gov-west-1 | +| `US_WEST1` | us-west-1 | +| `US_WEST2` | us-west-2 | \ No newline at end of file diff --git a/docs/models/shared/DestinationHubspotSchemasStorageType.md b/docs/models/shared/DestinationHubspotSchemasStorageType.md new file mode 100644 index 000000000..1fa46bb2a --- /dev/null +++ b/docs/models/shared/DestinationHubspotSchemasStorageType.md @@ -0,0 +1,8 @@ +# DestinationHubspotSchemasStorageType + + +## Values + +| Name | Value | +| ----- | ----- | +| `S3` | S3 | \ No newline at end of file diff --git a/docs/models/shared/DestinationHubspotStorageType.md b/docs/models/shared/DestinationHubspotStorageType.md new file mode 100644 index 000000000..d4851ac32 --- /dev/null +++ b/docs/models/shared/DestinationHubspotStorageType.md @@ -0,0 +1,8 @@ +# DestinationHubspotStorageType + + +## Values + +| Name | Value | +| ------ | ------ | +| `NONE` | None | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssql.md b/docs/models/shared/DestinationMssql.md index 5ba02e980..4a204c322 100644 --- a/docs/models/shared/DestinationMssql.md +++ b/docs/models/shared/DestinationMssql.md @@ -14,4 +14,5 @@ | `port` | *long* | :heavy_check_mark: | The port of the MSSQL database. | 1433 | | `schema` | *Optional\* | :heavy_minus_sign: | The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". | public | | `sslMethod` | [SSLMethod](../../models/shared/SSLMethod.md) | :heavy_check_mark: | The encryption method which is used to communicate with the database. | | +| `tunnelMethod` | [Optional\](../../models/shared/DestinationMssqlSSHTunnelMethod.md) | :heavy_minus_sign: | Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. | | | `user` | *String* | :heavy_check_mark: | The username which is used to access the database. | | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlNoTunnel.md b/docs/models/shared/DestinationMssqlNoTunnel.md new file mode 100644 index 000000000..0d045300a --- /dev/null +++ b/docs/models/shared/DestinationMssqlNoTunnel.md @@ -0,0 +1,11 @@ +# DestinationMssqlNoTunnel + +No ssh tunnel needed to connect to database + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `tunnelMethod` | [Optional\](../../models/shared/DestinationMssqlTunnelMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlPasswordAuthentication.md b/docs/models/shared/DestinationMssqlPasswordAuthentication.md new file mode 100644 index 000000000..b4957d3d6 --- /dev/null +++ b/docs/models/shared/DestinationMssqlPasswordAuthentication.md @@ -0,0 +1,15 @@ +# DestinationMssqlPasswordAuthentication + +Connect through a jump server tunnel host using username and password authentication + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `tunnelHost` | *String* | :heavy_check_mark: | Hostname of the jump server host that allows inbound ssh tunnel. | +| `tunnelMethod` | [Optional\](../../models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.md) | :heavy_minus_sign: | N/A | +| `tunnelPort` | *Optional\* | :heavy_minus_sign: | Port on the proxy/jump server that accepts inbound ssh connections. | +| `tunnelUser` | *String* | :heavy_check_mark: | OS-level username for logging into the jump server host | +| `tunnelUserPassword` | *String* | :heavy_check_mark: | OS-level password for logging into the jump server host | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlSSHKeyAuthentication.md b/docs/models/shared/DestinationMssqlSSHKeyAuthentication.md new file mode 100644 index 000000000..97f427591 --- /dev/null +++ b/docs/models/shared/DestinationMssqlSSHKeyAuthentication.md @@ -0,0 +1,15 @@ +# DestinationMssqlSSHKeyAuthentication + +Connect through a jump server tunnel host using username and ssh key + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `sshKey` | *String* | :heavy_check_mark: | OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) | +| `tunnelHost` | *String* | :heavy_check_mark: | Hostname of the jump server host that allows inbound ssh tunnel. | +| `tunnelMethod` | [Optional\](../../models/shared/DestinationMssqlSchemasTunnelMethod.md) | :heavy_minus_sign: | N/A | +| `tunnelPort` | *Optional\* | :heavy_minus_sign: | Port on the proxy/jump server that accepts inbound ssh connections. | +| `tunnelUser` | *String* | :heavy_check_mark: | OS-level username for logging into the jump server host | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlSSHTunnelMethod.md b/docs/models/shared/DestinationMssqlSSHTunnelMethod.md new file mode 100644 index 000000000..0825a88df --- /dev/null +++ b/docs/models/shared/DestinationMssqlSSHTunnelMethod.md @@ -0,0 +1,4 @@ +# DestinationMssqlSSHTunnelMethod + +Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + diff --git a/docs/models/shared/DestinationMssqlSchemasTunnelMethod.md b/docs/models/shared/DestinationMssqlSchemasTunnelMethod.md new file mode 100644 index 000000000..91ba6a487 --- /dev/null +++ b/docs/models/shared/DestinationMssqlSchemasTunnelMethod.md @@ -0,0 +1,8 @@ +# DestinationMssqlSchemasTunnelMethod + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `SSH_KEY_AUTH` | SSH_KEY_AUTH | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.md b/docs/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.md new file mode 100644 index 000000000..dd0570798 --- /dev/null +++ b/docs/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.md @@ -0,0 +1,8 @@ +# DestinationMssqlSchemasTunnelMethodTunnelMethod + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `SSH_PASSWORD_AUTH` | SSH_PASSWORD_AUTH | \ No newline at end of file diff --git a/docs/models/shared/DestinationMssqlTunnelMethod.md b/docs/models/shared/DestinationMssqlTunnelMethod.md new file mode 100644 index 000000000..8ec915011 --- /dev/null +++ b/docs/models/shared/DestinationMssqlTunnelMethod.md @@ -0,0 +1,8 @@ +# DestinationMssqlTunnelMethod + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `NO_TUNNEL` | NO_TUNNEL | \ No newline at end of file diff --git a/docs/models/shared/DestinationCobra.md b/docs/models/shared/DestinationSalesforce.md similarity index 74% rename from docs/models/shared/DestinationCobra.md rename to docs/models/shared/DestinationSalesforce.md index b12c5da25..1e9b0890e 100644 --- a/docs/models/shared/DestinationCobra.md +++ b/docs/models/shared/DestinationSalesforce.md @@ -1,16 +1,14 @@ -# DestinationCobra +# DestinationSalesforce ## Fields | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authType` | [Optional\](../../models/shared/AuthType.md) | :heavy_minus_sign: | N/A | -| `clientId` | *String* | :heavy_check_mark: | Enter your Salesforce developer application's Client ID | -| `clientSecret` | *String* | :heavy_check_mark: | Enter your Salesforce developer application's Client secret | -| `destinationType` | [Cobra](../../models/shared/Cobra.md) | :heavy_check_mark: | N/A | -| `isSandbox` | *Optional\* | :heavy_minus_sign: | Toggle if you're using a Salesforce Sandbox | -| `printRecordContentOnError` | *Optional\* | :heavy_minus_sign: | If enabled, the records content will be printed as part of the log in case of failure which allows for easier debugging. | -| `refreshToken` | *String* | :heavy_check_mark: | Enter your application's Salesforce Refresh Token used for Airbyte to access your Salesforce account. | -| `streamMappings` | List\<[StreamMapping](../../models/shared/StreamMapping.md)> | :heavy_check_mark: | N/A | -| `streamOrder` | List\<*String*> | :heavy_check_mark: | The order in which the streams should be synced. Streams are synced in the order they are listed. Only those streams will be synced so make sure all the input streams are configured here. | \ No newline at end of file +| `authType` | [AuthType](../../models/shared/AuthType.md) | :heavy_check_mark: | N/A | +| `clientId` | *String* | :heavy_check_mark: | Enter your Salesforce developer application's Client ID. | +| `clientSecret` | *String* | :heavy_check_mark: | Enter your Salesforce developer application's Client secret. | +| `destinationType` | [DestinationSalesforceSalesforce](../../models/shared/DestinationSalesforceSalesforce.md) | :heavy_check_mark: | N/A | +| `isSandbox` | *Optional\* | :heavy_minus_sign: | Toggle if you're using a Salesforce Sandbox. | +| `objectStorageConfig` | [Optional\](../../models/shared/DestinationSalesforceObjectStorageConfiguration.md) | :heavy_minus_sign: | N/A | +| `refreshToken` | *String* | :heavy_check_mark: | Enter your application's Salesforce Refresh Token used for Airbyte to access your Salesforce account. | \ No newline at end of file diff --git a/docs/models/shared/DestinationSalesforceNone.md b/docs/models/shared/DestinationSalesforceNone.md new file mode 100644 index 000000000..4b2d775de --- /dev/null +++ b/docs/models/shared/DestinationSalesforceNone.md @@ -0,0 +1,9 @@ +# DestinationSalesforceNone + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `storageType` | [Optional\](../../models/shared/DestinationSalesforceStorageType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DestinationSalesforceObjectStorageConfiguration.md b/docs/models/shared/DestinationSalesforceObjectStorageConfiguration.md new file mode 100644 index 000000000..2b6eaa9f3 --- /dev/null +++ b/docs/models/shared/DestinationSalesforceObjectStorageConfiguration.md @@ -0,0 +1,2 @@ +# DestinationSalesforceObjectStorageConfiguration + diff --git a/docs/models/shared/DestinationSalesforceS3.md b/docs/models/shared/DestinationSalesforceS3.md new file mode 100644 index 000000000..b5acab798 --- /dev/null +++ b/docs/models/shared/DestinationSalesforceS3.md @@ -0,0 +1,16 @@ +# DestinationSalesforceS3 + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | | +| `accessKeyId` | *Optional\* | :heavy_minus_sign: | The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more here. | A012345678910EXAMPLE | +| `bucketPath` | *String* | :heavy_check_mark: | All files in the bucket will be prefixed by this. | prefix/ | +| `roleArn` | *Optional\* | :heavy_minus_sign: | The ARN of the AWS role to assume. Only usable in Airbyte Cloud. | arn:aws:iam::123456789:role/ExternalIdIsYourWorkspaceId | +| `s3BucketName` | *String* | :heavy_check_mark: | The name of the S3 bucket. Read more here. | airbyte_sync | +| `s3BucketRegion` | [Optional\](../../models/shared/DestinationSalesforceS3BucketRegion.md) | :heavy_minus_sign: | The region of the S3 bucket. See here for all region codes. | us-east-1 | +| `s3Endpoint` | *Optional\* | :heavy_minus_sign: | Your S3 endpoint url. Read more here | http://localhost:9000 | +| `secretAccessKey` | *Optional\* | :heavy_minus_sign: | The corresponding secret to the access key ID. Read more here | a012345678910ABCDEFGH/AbCdEfGhEXAMPLEKEY | +| `storageType` | [Optional\](../../models/shared/DestinationSalesforceSchemasStorageType.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/DestinationSalesforceS3BucketRegion.md b/docs/models/shared/DestinationSalesforceS3BucketRegion.md new file mode 100644 index 000000000..96233c9c2 --- /dev/null +++ b/docs/models/shared/DestinationSalesforceS3BucketRegion.md @@ -0,0 +1,43 @@ +# DestinationSalesforceS3BucketRegion + +The region of the S3 bucket. See here for all region codes. + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `UNKNOWN` | | +| `AF_SOUTH1` | af-south-1 | +| `AP_EAST1` | ap-east-1 | +| `AP_NORTHEAST1` | ap-northeast-1 | +| `AP_NORTHEAST2` | ap-northeast-2 | +| `AP_NORTHEAST3` | ap-northeast-3 | +| `AP_SOUTH1` | ap-south-1 | +| `AP_SOUTH2` | ap-south-2 | +| `AP_SOUTHEAST1` | ap-southeast-1 | +| `AP_SOUTHEAST2` | ap-southeast-2 | +| `AP_SOUTHEAST3` | ap-southeast-3 | +| `AP_SOUTHEAST4` | ap-southeast-4 | +| `CA_CENTRAL1` | ca-central-1 | +| `CA_WEST1` | ca-west-1 | +| `CN_NORTH1` | cn-north-1 | +| `CN_NORTHWEST1` | cn-northwest-1 | +| `EU_CENTRAL1` | eu-central-1 | +| `EU_CENTRAL2` | eu-central-2 | +| `EU_NORTH1` | eu-north-1 | +| `EU_SOUTH1` | eu-south-1 | +| `EU_SOUTH2` | eu-south-2 | +| `EU_WEST1` | eu-west-1 | +| `EU_WEST2` | eu-west-2 | +| `EU_WEST3` | eu-west-3 | +| `IL_CENTRAL1` | il-central-1 | +| `ME_CENTRAL1` | me-central-1 | +| `ME_SOUTH1` | me-south-1 | +| `SA_EAST1` | sa-east-1 | +| `US_EAST1` | us-east-1 | +| `US_EAST2` | us-east-2 | +| `US_GOV_EAST1` | us-gov-east-1 | +| `US_GOV_WEST1` | us-gov-west-1 | +| `US_WEST1` | us-west-1 | +| `US_WEST2` | us-west-2 | \ No newline at end of file diff --git a/docs/models/shared/DestinationSalesforceSalesforce.md b/docs/models/shared/DestinationSalesforceSalesforce.md new file mode 100644 index 000000000..24f2f4e8e --- /dev/null +++ b/docs/models/shared/DestinationSalesforceSalesforce.md @@ -0,0 +1,8 @@ +# DestinationSalesforceSalesforce + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `SALESFORCE` | salesforce | \ No newline at end of file diff --git a/docs/models/shared/DestinationSalesforceSchemasStorageType.md b/docs/models/shared/DestinationSalesforceSchemasStorageType.md new file mode 100644 index 000000000..ec15df9cd --- /dev/null +++ b/docs/models/shared/DestinationSalesforceSchemasStorageType.md @@ -0,0 +1,8 @@ +# DestinationSalesforceSchemasStorageType + + +## Values + +| Name | Value | +| ----- | ----- | +| `S3` | S3 | \ No newline at end of file diff --git a/docs/models/shared/DestinationSalesforceStorageType.md b/docs/models/shared/DestinationSalesforceStorageType.md new file mode 100644 index 000000000..6a9ce7043 --- /dev/null +++ b/docs/models/shared/DestinationSalesforceStorageType.md @@ -0,0 +1,8 @@ +# DestinationSalesforceStorageType + + +## Values + +| Name | Value | +| ------ | ------ | +| `NONE` | None | \ No newline at end of file diff --git a/docs/models/shared/DestinationSnowflake.md b/docs/models/shared/DestinationSnowflake.md index 1589e5506..18fc22e18 100644 --- a/docs/models/shared/DestinationSnowflake.md +++ b/docs/models/shared/DestinationSnowflake.md @@ -7,7 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `credentials` | [Optional\](../../models/shared/AuthorizationMethod.md) | :heavy_minus_sign: | N/A | | | `database` | *String* | :heavy_check_mark: | Enter the name of the database you want to sync data into | AIRBYTE_DATABASE | -| `destinationType` | [DestinationSnowflakeSnowflake](../../models/shared/DestinationSnowflakeSnowflake.md) | :heavy_check_mark: | N/A | | +| `destinationType` | [Snowflake](../../models/shared/Snowflake.md) | :heavy_check_mark: | N/A | | | `disableTypeDedupe` | *Optional\* | :heavy_minus_sign: | Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions | | | `host` | *String* | :heavy_check_mark: | Enter your Snowflake account's locator (in the format ...snowflakecomputing.com) | accountname.us-east-2.aws.snowflakecomputing.com | | `jdbcUrlParams` | *Optional\* | :heavy_minus_sign: | Enter the additional properties to pass to the JDBC URL string when connecting to the database (formatted as key=value pairs separated by the symbol &). Example: key1=value1&key2=value2&key3=value3 | | diff --git a/docs/models/shared/DestinationSurrealdb.md b/docs/models/shared/DestinationSurrealdb.md new file mode 100644 index 000000000..707db9b52 --- /dev/null +++ b/docs/models/shared/DestinationSurrealdb.md @@ -0,0 +1,13 @@ +# DestinationSurrealdb + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `destinationType` | [Surrealdb](../../models/shared/Surrealdb.md) | :heavy_check_mark: | N/A | +| `surrealdbDatabase` | *Optional\* | :heavy_minus_sign: | The database to use in SurrealDB. | +| `surrealdbNamespace` | *Optional\* | :heavy_minus_sign: | The namespace to use in SurrealDB. | +| `surrealdbPassword` | *String* | :heavy_check_mark: | The password to use in SurrealDB. | +| `surrealdbUrl` | *String* | :heavy_check_mark: | The URL of the SurrealDB instance. | +| `surrealdbUsername` | *String* | :heavy_check_mark: | The username to use in SurrealDB. | \ No newline at end of file diff --git a/docs/models/shared/DestinationTeradata.md b/docs/models/shared/DestinationTeradata.md index efd137b8d..b9411fa35 100644 --- a/docs/models/shared/DestinationTeradata.md +++ b/docs/models/shared/DestinationTeradata.md @@ -6,10 +6,13 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `destinationType` | [Teradata](../../models/shared/Teradata.md) | :heavy_check_mark: | N/A | | +| `disableTypeDedupe` | *Optional\* | :heavy_minus_sign: | Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions | | +| `dropCascade` | *Optional\* | :heavy_minus_sign: | Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. | | | `host` | *String* | :heavy_check_mark: | Hostname of the database. | | | `jdbcUrlParams` | *Optional\* | :heavy_minus_sign: | Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). | | | `logmech` | [Optional\](../../models/shared/AuthorizationMechanism.md) | :heavy_minus_sign: | N/A | | | `queryBand` | *Optional\* | :heavy_minus_sign: | Defines the custom session query band using name-value pairs. For example, 'org=Finance;report=Fin123;' | | +| `rawDataSchema` | *Optional\* | :heavy_minus_sign: | The database to write raw tables into | | | `schema` | *Optional\* | :heavy_minus_sign: | The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". | airbyte_td | | `ssl` | *Optional\* | :heavy_minus_sign: | Encrypt data using SSL. When activating SSL, please select one of the SSL modes. | | | `sslMode` | [Optional\](../../models/shared/DestinationTeradataSSLModes.md) | :heavy_minus_sign: | SSL connection modes.
disable - Chose this mode to disable encryption of communication between Airbyte and destination database
allow - Chose this mode to enable encryption only when required by the destination database
prefer - Chose this mode to allow unencrypted connection only if the destination database does not support encryption
require - Chose this mode to always require encryption. If the destination database server does not support encryption, connection will fail
verify-ca - Chose this mode to always require encryption and to verify that the destination database server has a valid SSL certificate
verify-full - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the destination database server
See more information - in the docs. | | \ No newline at end of file diff --git a/docs/models/shared/Dolibarr.md b/docs/models/shared/Dolibarr.md new file mode 100644 index 000000000..d69601a47 --- /dev/null +++ b/docs/models/shared/Dolibarr.md @@ -0,0 +1,8 @@ +# Dolibarr + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `DOLIBARR` | dolibarr | \ No newline at end of file diff --git a/docs/models/shared/EbayFulfillment.md b/docs/models/shared/EbayFulfillment.md new file mode 100644 index 000000000..0ee9173b8 --- /dev/null +++ b/docs/models/shared/EbayFulfillment.md @@ -0,0 +1,8 @@ +# EbayFulfillment + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `EBAY_FULFILLMENT` | ebay-fulfillment | \ No newline at end of file diff --git a/docs/models/shared/FacebookPages.md b/docs/models/shared/FacebookPages.md new file mode 100644 index 000000000..39373c609 --- /dev/null +++ b/docs/models/shared/FacebookPages.md @@ -0,0 +1,8 @@ +# FacebookPages + + +## Values + +| Name | Value | +| ---------------- | ---------------- | +| `FACEBOOK_PAGES` | facebook-pages | \ No newline at end of file diff --git a/docs/models/shared/Fields.md b/docs/models/shared/Fields.md new file mode 100644 index 000000000..3da34c7e5 --- /dev/null +++ b/docs/models/shared/Fields.md @@ -0,0 +1,39 @@ +# Fields + + +## Values + +| Name | Value | +| ------------------------------ | ------------------------------ | +| `CLICKS` | CLICKS | +| `COMPLETES` | COMPLETES | +| `COMPLETION_RATE` | COMPLETION_RATE | +| `CONVERSION_RATE` | CONVERSION_RATE | +| `CTR` | CTR | +| `E_CPM` | E_CPM | +| `E_CPCL` | E_CPCL | +| `FIRST_QUARTILES` | FIRST_QUARTILES | +| `FREQUENCY` | FREQUENCY | +| `IMPRESSIONS` | IMPRESSIONS | +| `INTENT_RATE` | INTENT_RATE | +| `LISTENERS` | LISTENERS | +| `MIDPOINTS` | MIDPOINTS | +| `NEW_LISTENERS` | NEW_LISTENERS | +| `NEW_LISTENER_CONVERSION_RATE` | NEW_LISTENER_CONVERSION_RATE | +| `NEW_LISTENER_STREAMS` | NEW_LISTENER_STREAMS | +| `OFF_SPOTIFY_IMPRESSIONS` | OFF_SPOTIFY_IMPRESSIONS | +| `PAID_LISTENS` | PAID_LISTENS | +| `PAID_LISTENS_FREQUENCY` | PAID_LISTENS_FREQUENCY | +| `PAID_LISTENS_REACH` | PAID_LISTENS_REACH | +| `REACH` | REACH | +| `SKIPS` | SKIPS | +| `SPEND` | SPEND | +| `STARTS` | STARTS | +| `STREAMS` | STREAMS | +| `STREAMS_PER_NEW_LISTENER` | STREAMS_PER_NEW_LISTENER | +| `STREAMS_PER_USER` | STREAMS_PER_USER | +| `THIRD_QUARTILES` | THIRD_QUARTILES | +| `VIDEO_VIEWS` | VIDEO_VIEWS | +| `VIDEO_EXPANDS` | VIDEO_EXPANDS | +| `VIDEO_EXPAND_RATE` | VIDEO_EXPAND_RATE | +| `UNMUTES` | UNMUTES | \ No newline at end of file diff --git a/docs/models/shared/GCSStaging.md b/docs/models/shared/GCSStaging.md index b7e057c73..06c28c951 100644 --- a/docs/models/shared/GCSStaging.md +++ b/docs/models/shared/GCSStaging.md @@ -7,8 +7,9 @@ Writes large batches of records to a file, uploads the file to GCS, then uses CO | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | | | `credential` | [Credential](../../models/shared/Credential.md) | :heavy_check_mark: | An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more here. | | | `gcsBucketName` | *String* | :heavy_check_mark: | The name of the GCS bucket. Read more here. | airbyte_sync | | `gcsBucketPath` | *String* | :heavy_check_mark: | Directory under the GCS bucket where data will be written. | data_sync/test | -| `keepFilesInGcsBucket` | [Optional\](../../models/shared/GCSTmpFilesAfterwardProcessing.md) | :heavy_minus_sign: | This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. | | -| `method` | [DestinationBigqueryMethod](../../models/shared/DestinationBigqueryMethod.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| `keepFilesInGcsBucket` | [Optional\](../../models/shared/GCSTmpFilesPostProcessing.md) | :heavy_minus_sign: | This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. | | +| `method` | [Optional\](../../models/shared/DestinationBigqueryMethod.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/GCSTmpFilesAfterwardProcessing.md b/docs/models/shared/GCSTmpFilesPostProcessing.md similarity index 94% rename from docs/models/shared/GCSTmpFilesAfterwardProcessing.md rename to docs/models/shared/GCSTmpFilesPostProcessing.md index f9eba8d80..4070d7d3a 100644 --- a/docs/models/shared/GCSTmpFilesAfterwardProcessing.md +++ b/docs/models/shared/GCSTmpFilesPostProcessing.md @@ -1,4 +1,4 @@ -# GCSTmpFilesAfterwardProcessing +# GCSTmpFilesPostProcessing This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. diff --git a/docs/models/shared/InsightConfig.md b/docs/models/shared/InsightConfig.md index f74ec4afb..0e1178289 100644 --- a/docs/models/shared/InsightConfig.md +++ b/docs/models/shared/InsightConfig.md @@ -8,7 +8,6 @@ Config for custom insights | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `actionBreakdowns` | List\<[ValidActionBreakdowns](../../models/shared/ValidActionBreakdowns.md)> | :heavy_minus_sign: | A list of chosen action_breakdowns for action_breakdowns | | -| `actionReportTime` | [Optional\](../../models/shared/SourceFacebookMarketingActionReportTime.md) | :heavy_minus_sign: | Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd. | | | `breakdowns` | List\<[ValidBreakdowns](../../models/shared/ValidBreakdowns.md)> | :heavy_minus_sign: | A list of chosen breakdowns for breakdowns | | | `endDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. | 2017-01-26T00:00:00Z | | `fields` | List\<[SourceFacebookMarketingValidEnums](../../models/shared/SourceFacebookMarketingValidEnums.md)> | :heavy_minus_sign: | A list of chosen fields for fields parameter | | diff --git a/docs/models/shared/JudgeMeReviews.md b/docs/models/shared/JudgeMeReviews.md new file mode 100644 index 000000000..61e0547b8 --- /dev/null +++ b/docs/models/shared/JudgeMeReviews.md @@ -0,0 +1,8 @@ +# JudgeMeReviews + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `JUDGE_ME_REVIEWS` | judge-me-reviews | \ No newline at end of file diff --git a/docs/models/shared/Linear.md b/docs/models/shared/Linear.md new file mode 100644 index 000000000..29787cba9 --- /dev/null +++ b/docs/models/shared/Linear.md @@ -0,0 +1,8 @@ +# Linear + + +## Values + +| Name | Value | +| -------- | -------- | +| `LINEAR` | linear | \ No newline at end of file diff --git a/docs/models/shared/MercadoAds.md b/docs/models/shared/MercadoAds.md new file mode 100644 index 000000000..53ffebeea --- /dev/null +++ b/docs/models/shared/MercadoAds.md @@ -0,0 +1,8 @@ +# MercadoAds + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `MERCADO_ADS` | mercado-ads | \ No newline at end of file diff --git a/docs/models/shared/MongoDBAtlasReplicaSet.md b/docs/models/shared/MongoDBAtlasReplicaSet.md index 4fd19ff5b..8b9edbddb 100644 --- a/docs/models/shared/MongoDBAtlasReplicaSet.md +++ b/docs/models/shared/MongoDBAtlasReplicaSet.md @@ -11,7 +11,7 @@ MongoDB Atlas-hosted cluster configured as a replica set | `authSource` | *Optional\* | :heavy_minus_sign: | The authentication source where the user information is stored. See https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource for more details. | admin | | `clusterType` | [SourceMongodbV2SchemasClusterType](../../models/shared/SourceMongodbV2SchemasClusterType.md) | :heavy_check_mark: | N/A | | | `connectionString` | *String* | :heavy_check_mark: | The connection string of the cluster that you want to replicate. | mongodb+srv://cluster0.abcd1.mongodb.net/ | -| `database` | *String* | :heavy_check_mark: | The name of the MongoDB database that contains the collection(s) to replicate. | | +| `databases` | List\<*String*> | :heavy_check_mark: | The names of the MongoDB databases that contain the collection(s) to replicate. | | | `password` | *String* | :heavy_check_mark: | The password associated with this username. | | | `schemaEnforced` | *Optional\* | :heavy_minus_sign: | When enabled, syncs will validate and structure records against the stream's schema. | | | `username` | *String* | :heavy_check_mark: | The username which is used to access the database. | | \ No newline at end of file diff --git a/docs/models/shared/NoTunnel.md b/docs/models/shared/NoTunnel.md index 659d37275..f433d4938 100644 --- a/docs/models/shared/NoTunnel.md +++ b/docs/models/shared/NoTunnel.md @@ -1,8 +1,11 @@ # NoTunnel +No ssh tunnel needed to connect to database + ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `tunnelMethod` | [TunnelMethod](../../models/shared/TunnelMethod.md) | :heavy_check_mark: | No ssh tunnel needed to connect to database | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `tunnelMethod` | [Optional\](../../models/shared/TunnelMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/None.md b/docs/models/shared/None.md index 0c3b3c36f..796dfc032 100644 --- a/docs/models/shared/None.md +++ b/docs/models/shared/None.md @@ -1,10 +1,9 @@ # None -No authentication will be used - ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `method` | [DestinationElasticsearchMethod](../../models/shared/DestinationElasticsearchMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `storageType` | [Optional\](../../models/shared/StorageType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/OAuth.md b/docs/models/shared/OAuth.md index e78e2ca4f..597372bd7 100644 --- a/docs/models/shared/OAuth.md +++ b/docs/models/shared/OAuth.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `accessToken` | *String* | :heavy_check_mark: | OAuth access token | -| `clientId` | *Optional\* | :heavy_minus_sign: | OAuth Client Id | -| `clientSecret` | *Optional\* | :heavy_minus_sign: | OAuth Client secret | -| `optionTitle` | [Optional\](../../models/shared/OptionTitle.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `clientId` | *String* | :heavy_check_mark: | The Client ID of your HubSpot developer application. See the Hubspot docs if you need help finding this ID. | +| `clientSecret` | *String* | :heavy_check_mark: | The client secret for your HubSpot developer application. See the Hubspot docs if you need help finding this secret. | +| `refreshToken` | *String* | :heavy_check_mark: | Refresh token to renew an expired access token. See the Hubspot docs if you need help finding this token. | +| `type` | [Optional\](../../models/shared/Type.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/OAuth2Authentication.md b/docs/models/shared/OAuth2Authentication.md new file mode 100644 index 000000000..71b1ce3c3 --- /dev/null +++ b/docs/models/shared/OAuth2Authentication.md @@ -0,0 +1,14 @@ +# OAuth2Authentication + +Authenticate using OAuth2. This requires a consumer key, the private part of the certificate with which netsuite OAuth2 Client Credentials was setup and the certificate ID for the OAuth2 setup entry. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `authenticationMethod` | [Optional\](../../models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.md) | :heavy_minus_sign: | N/A | +| `clientId` | *String* | :heavy_check_mark: | The consumer key used for OAuth2 authentication. This is generated in NetSuite when creating an integration record. | +| `keyId` | *String* | :heavy_check_mark: | The certificate ID for the OAuth 2.0 Client Credentials Setup entry. | +| `oauth2PrivateKey` | *String* | :heavy_check_mark: | The private portion of the certificate with which OAuth2 was setup. ( created with openssl req -new -x509 -newkey rsa:4096 -keyout private.pem -sigopt rsa_padding_mode:pss -sha256 -sigopt rsa_pss_saltlen:64 -out public.pem -nodes -days 365 ) | \ No newline at end of file diff --git a/docs/models/shared/OAuth2Recommended.md b/docs/models/shared/OAuth2Recommended.md index 51b948cb5..e647118bf 100644 --- a/docs/models/shared/OAuth2Recommended.md +++ b/docs/models/shared/OAuth2Recommended.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `authType` | [DestinationDatabricksAuthType](../../models/shared/DestinationDatabricksAuthType.md) | :heavy_check_mark: | N/A | -| `clientId` | *String* | :heavy_check_mark: | N/A | -| `secret` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | +| `authType` | [DestinationDatabricksSchemasAuthType](../../models/shared/DestinationDatabricksSchemasAuthType.md) | :heavy_check_mark: | N/A | +| `clientId` | *String* | :heavy_check_mark: | N/A | +| `secret` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/OAuthActorNames.md b/docs/models/shared/OAuthActorNames.md index c6fe465ff..7c0a39120 100644 --- a/docs/models/shared/OAuthActorNames.md +++ b/docs/models/shared/OAuthActorNames.md @@ -13,6 +13,7 @@ | `BING_ADS` | bing-ads | | `DRIFT` | drift | | `FACEBOOK_MARKETING` | facebook-marketing | +| `FACEBOOK_PAGES` | facebook-pages | | `GCS` | gcs | | `GITHUB` | github | | `GITLAB` | gitlab | @@ -23,6 +24,7 @@ | `GOOGLE_SHEETS` | google-sheets | | `HUBSPOT` | hubspot | | `INSTAGRAM` | instagram | +| `INTERCOM` | intercom | | `LEVER_HIRING` | lever-hiring | | `LINKEDIN_ADS` | linkedin-ads | | `MAILCHIMP` | mailchimp | @@ -34,10 +36,10 @@ | `PINTEREST` | pinterest | | `RD_STATION_MARKETING` | rd-station-marketing | | `SALESFORCE` | salesforce | +| `SHAREPOINT_ENTERPRISE` | sharepoint-enterprise | | `SLACK` | slack | | `SMARTSHEETS` | smartsheets | | `SNAPCHAT_MARKETING` | snapchat-marketing | -| `SNOWFLAKE` | snowflake | | `SURVEYMONKEY` | surveymonkey | | `TIKTOK_MARKETING` | tiktok-marketing | | `TRELLO` | trello | diff --git a/docs/models/shared/OAuthCredentialsConfiguration.md b/docs/models/shared/OAuthCredentialsConfiguration.md deleted file mode 100644 index 37f3eeb68..000000000 --- a/docs/models/shared/OAuthCredentialsConfiguration.md +++ /dev/null @@ -1,4 +0,0 @@ -# OAuthCredentialsConfiguration - -The values required to configure the source. - diff --git a/docs/models/shared/ObjectStorageConfiguration.md b/docs/models/shared/ObjectStorageConfiguration.md new file mode 100644 index 000000000..6ccc31afc --- /dev/null +++ b/docs/models/shared/ObjectStorageConfiguration.md @@ -0,0 +1,2 @@ +# ObjectStorageConfiguration + diff --git a/docs/models/shared/OpenExchangeRates.md b/docs/models/shared/OpenExchangeRates.md new file mode 100644 index 000000000..ef4c4b7ac --- /dev/null +++ b/docs/models/shared/OpenExchangeRates.md @@ -0,0 +1,8 @@ +# OpenExchangeRates + + +## Values + +| Name | Value | +| --------------------- | --------------------- | +| `OPEN_EXCHANGE_RATES` | open-exchange-rates | \ No newline at end of file diff --git a/docs/models/shared/Opuswatch.md b/docs/models/shared/Opuswatch.md new file mode 100644 index 000000000..ca5d20a2d --- /dev/null +++ b/docs/models/shared/Opuswatch.md @@ -0,0 +1,8 @@ +# Opuswatch + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `OPUSWATCH` | opuswatch | \ No newline at end of file diff --git a/docs/models/shared/OrganizationOAuthCredentialsRequest.md b/docs/models/shared/OrganizationOAuthCredentialsRequest.md new file mode 100644 index 000000000..1cfd2e71f --- /dev/null +++ b/docs/models/shared/OrganizationOAuthCredentialsRequest.md @@ -0,0 +1,12 @@ +# OrganizationOAuthCredentialsRequest + +POST body for creating/updating organization level OAuth credentials + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `actorType` | [ActorTypeEnum](../../models/shared/ActorTypeEnum.md) | :heavy_check_mark: | Whether you're setting this override for a source or destination | +| `configuration` | *Object* | :heavy_check_mark: | The values required to configure the source. | +| `name` | *String* | :heavy_check_mark: | The name of the source i.e. google-ads | \ No newline at end of file diff --git a/docs/models/shared/PasswordAuthentication.md b/docs/models/shared/PasswordAuthentication.md index 5a4cc85ec..8da17c6a4 100644 --- a/docs/models/shared/PasswordAuthentication.md +++ b/docs/models/shared/PasswordAuthentication.md @@ -1,12 +1,15 @@ # PasswordAuthentication +Connect through a jump server tunnel host using username and password authentication + ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `tunnelHost` | *String* | :heavy_check_mark: | Hostname of the jump server host that allows inbound ssh tunnel. | | -| `tunnelMethod` | [DestinationClickhouseSchemasTunnelMethod](../../models/shared/DestinationClickhouseSchemasTunnelMethod.md) | :heavy_check_mark: | Connect through a jump server tunnel host using username and password authentication | | -| `tunnelPort` | *Optional\* | :heavy_minus_sign: | Port on the proxy/jump server that accepts inbound ssh connections. | 22 | -| `tunnelUser` | *String* | :heavy_check_mark: | OS-level username for logging into the jump server host | | -| `tunnelUserPassword` | *String* | :heavy_check_mark: | OS-level password for logging into the jump server host | | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `tunnelHost` | *String* | :heavy_check_mark: | Hostname of the jump server host that allows inbound ssh tunnel. | +| `tunnelMethod` | [Optional\](../../models/shared/DestinationClickhouseSchemasTunnelMethod.md) | :heavy_minus_sign: | N/A | +| `tunnelPort` | *Optional\* | :heavy_minus_sign: | Port on the proxy/jump server that accepts inbound ssh connections. | +| `tunnelUser` | *String* | :heavy_check_mark: | OS-level username for logging into the jump server host | +| `tunnelUserPassword` | *String* | :heavy_check_mark: | OS-level password for logging into the jump server host | \ No newline at end of file diff --git a/docs/models/shared/PersonalAccessToken.md b/docs/models/shared/PersonalAccessToken.md index 2936cb0af..6a99f813d 100644 --- a/docs/models/shared/PersonalAccessToken.md +++ b/docs/models/shared/PersonalAccessToken.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `authType` | [DestinationDatabricksSchemasAuthType](../../models/shared/DestinationDatabricksSchemasAuthType.md) | :heavy_check_mark: | N/A | -| `personalAccessToken` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `authType` | [DestinationDatabricksAuthType](../../models/shared/DestinationDatabricksAuthType.md) | :heavy_check_mark: | N/A | +| `personalAccessToken` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PokemonName.md b/docs/models/shared/PokemonName.md index 923c5aa91..b787ab0f6 100644 --- a/docs/models/shared/PokemonName.md +++ b/docs/models/shared/PokemonName.md @@ -35,10 +35,10 @@ Pokemon requested from the API. | `RAICHU` | raichu | | `SANDSHREW` | sandshrew | | `SANDSLASH` | sandslash | -| `NIDORANF` | nidoranf | +| `NIDORAN_F` | nidoran-f | | `NIDORINA` | nidorina | | `NIDOQUEEN` | nidoqueen | -| `NIDORANM` | nidoranm | +| `NIDORAN_M` | nidoran-m | | `NIDORINO` | nidorino | | `NIDOKING` | nidoking | | `CLEFAIRY` | clefairy | diff --git a/docs/models/shared/Protocol.md b/docs/models/shared/Protocol.md new file mode 100644 index 000000000..84d79360c --- /dev/null +++ b/docs/models/shared/Protocol.md @@ -0,0 +1,11 @@ +# Protocol + +Protocol for the database connection string. + + +## Values + +| Name | Value | +| ------- | ------- | +| `HTTP` | http | +| `HTTPS` | https | \ No newline at end of file diff --git a/docs/models/shared/SSHKeyAuthentication.md b/docs/models/shared/SSHKeyAuthentication.md index 0d9df2b2c..e2e98eee3 100644 --- a/docs/models/shared/SSHKeyAuthentication.md +++ b/docs/models/shared/SSHKeyAuthentication.md @@ -1,12 +1,15 @@ # SSHKeyAuthentication +Connect through a jump server tunnel host using username and ssh key + ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `sshKey` | *String* | :heavy_check_mark: | OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) | | -| `tunnelHost` | *String* | :heavy_check_mark: | Hostname of the jump server host that allows inbound ssh tunnel. | | -| `tunnelMethod` | [DestinationClickhouseTunnelMethod](../../models/shared/DestinationClickhouseTunnelMethod.md) | :heavy_check_mark: | Connect through a jump server tunnel host using username and ssh key | | -| `tunnelPort` | *Optional\* | :heavy_minus_sign: | Port on the proxy/jump server that accepts inbound ssh connections. | 22 | -| `tunnelUser` | *String* | :heavy_check_mark: | OS-level username for logging into the jump server host. | | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `sshKey` | *String* | :heavy_check_mark: | OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) | +| `tunnelHost` | *String* | :heavy_check_mark: | Hostname of the jump server host that allows inbound ssh tunnel. | +| `tunnelMethod` | [Optional\](../../models/shared/DestinationClickhouseTunnelMethod.md) | :heavy_minus_sign: | N/A | +| `tunnelPort` | *Optional\* | :heavy_minus_sign: | Port on the proxy/jump server that accepts inbound ssh connections. | +| `tunnelUser` | *String* | :heavy_check_mark: | OS-level username for logging into the jump server host | \ No newline at end of file diff --git a/docs/models/shared/ScanChangesWithUserDefinedCursor.md b/docs/models/shared/ScanChangesWithUserDefinedCursor.md index 198a659db..b09881e99 100644 --- a/docs/models/shared/ScanChangesWithUserDefinedCursor.md +++ b/docs/models/shared/ScanChangesWithUserDefinedCursor.md @@ -5,6 +5,7 @@ Incrementally detects new inserts and updates using the docs for more information. | | | `lookBackWindow` | *Optional\* | :heavy_minus_sign: | The amount of days to go back in time to get the updated data from Amazon Ads | 3 | | `marketplaceIds` | List\<*String*> | :heavy_minus_sign: | Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. | | +| `numWorkers` | *Optional\* | :heavy_minus_sign: | The number of worker threads to use for the sync. | 2 | | `profiles` | List\<*long*> | :heavy_minus_sign: | Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with seller and vendor type, profiles with agency type will be ignored. See docs for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. | | | `refreshToken` | *String* | :heavy_check_mark: | Amazon Ads refresh token. See the docs for more information on how to obtain this token. | | | `region` | [Optional\](../../models/shared/Region.md) | :heavy_minus_sign: | Region to pull data from (EU/NA/FE). See docs for more details. | | diff --git a/docs/models/shared/SourceAmazonSellerPartner.md b/docs/models/shared/SourceAmazonSellerPartner.md index e0a77e133..251c18db7 100644 --- a/docs/models/shared/SourceAmazonSellerPartner.md +++ b/docs/models/shared/SourceAmazonSellerPartner.md @@ -12,6 +12,8 @@ | `financialEventsStep` | [Optional\](../../models/shared/FinancialEventsStepSizeInDays.md) | :heavy_minus_sign: | The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 days, 14 days, 30 days, 60 days, and 190 days, based on API limitations.

- **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow syncing and increase the chance of hitting rate limits.
- **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data per request, speeding up syncing and reducing the number of API calls, which minimizes strain on rate limits.

Select a step size that matches your data volume to optimize syncing speed and API performance. | | | `lwaAppId` | *String* | :heavy_check_mark: | Your Login with Amazon Client ID. | | | `lwaClientSecret` | *String* | :heavy_check_mark: | Your Login with Amazon Client Secret. | | +| `maxAsyncJobCount` | *Optional\* | :heavy_minus_sign: | The maximum number of concurrent asynchronous job requests that can be active at a time. | | +| `numWorkers` | *Optional\* | :heavy_minus_sign: | The number of workers to use for the connector when syncing concurrently. | | | `periodInDays` | *Optional\* | :heavy_minus_sign: | For syncs spanning a large date range, this option is used to request data in a smaller fixed window to improve sync reliability. This time window can be configured granularly by day. | | | `refreshToken` | *String* | :heavy_check_mark: | The Refresh Token obtained via OAuth flow authorization. | | | `region` | [Optional\](../../models/shared/AWSRegion.md) | :heavy_minus_sign: | Select the AWS Region. | | diff --git a/docs/models/shared/SourceAppleSearchAds.md b/docs/models/shared/SourceAppleSearchAds.md index e3a22c52f..265aa489f 100644 --- a/docs/models/shared/SourceAppleSearchAds.md +++ b/docs/models/shared/SourceAppleSearchAds.md @@ -13,4 +13,5 @@ | `orgId` | *long* | :heavy_check_mark: | The identifier of the organization that owns the campaign. Your Org Id is the same as your account in the Apple Search Ads UI. | | | `sourceType` | [AppleSearchAds](../../models/shared/AppleSearchAds.md) | :heavy_check_mark: | N/A | | | `startDate` | *String* | :heavy_check_mark: | Start getting data from that date. | 2020-01-01 | -| `timezone` | [Optional\](../../models/shared/TimeZone.md) | :heavy_minus_sign: | The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated Universal Time. Default is UTC. | | \ No newline at end of file +| `timezone` | [Optional\](../../models/shared/TimeZone.md) | :heavy_minus_sign: | The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated Universal Time. Default is UTC. | | +| `tokenRefreshEndpoint` | *Optional\* | :heavy_minus_sign: | Token Refresh Endpoint. You should override the default value in scenarios where it's required to proxy requests to Apple's token endpoint | | \ No newline at end of file diff --git a/docs/models/shared/SourceAppsflyer.md b/docs/models/shared/SourceAppsflyer.md new file mode 100644 index 000000000..377eb3389 --- /dev/null +++ b/docs/models/shared/SourceAppsflyer.md @@ -0,0 +1,12 @@ +# SourceAppsflyer + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `apiToken` | *String* | :heavy_check_mark: | Pull API token for authentication. If you change the account admin, the token changes, and you must update scripts with the new token. Get the API token in the Dashboard. | | +| `appId` | *String* | :heavy_check_mark: | App identifier as found in AppsFlyer. | | +| `sourceType` | [Appsflyer](../../models/shared/Appsflyer.md) | :heavy_check_mark: | N/A | | +| `startDate` | *String* | :heavy_check_mark: | The default value to use if no bookmark exists for an endpoint. Raw Reports historical lookback is limited to 90 days. | 2021-11-16 | +| `timezone` | *Optional\* | :heavy_minus_sign: | Time zone in which date times are stored. The project timezone may be found in the App settings in the AppsFlyer console. | US/Pacific | \ No newline at end of file diff --git a/docs/models/shared/SourceAwinAdvertiser.md b/docs/models/shared/SourceAwinAdvertiser.md new file mode 100644 index 000000000..596c36dd2 --- /dev/null +++ b/docs/models/shared/SourceAwinAdvertiser.md @@ -0,0 +1,13 @@ +# SourceAwinAdvertiser + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `advertiserId` | *String* | :heavy_check_mark: | Your Awin Advertiser ID. You can find this in your Awin dashboard or account settings. | +| `apiKey` | *String* | :heavy_check_mark: | Your Awin API key. Generate this from your Awin account under API Credentials. | +| `lookbackDays` | *long* | :heavy_check_mark: | Number of days to look back on each sync to catch any updates to existing records. | +| `sourceType` | [AwinAdvertiser](../../models/shared/AwinAdvertiser.md) | :heavy_check_mark: | N/A | +| `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_check_mark: | Start date for data replication in YYYY-MM-DD format | +| `stepIncrement` | *Optional\* | :heavy_minus_sign: | The time window size for each API request in ISO8601 duration format.
For the campaign performance stream, Awin API explicitly limits the period between startDate and endDate to 400 days maximum.
| \ No newline at end of file diff --git a/docs/models/shared/SourceCalendly.md b/docs/models/shared/SourceCalendly.md index 8c21b46b7..ee0c51789 100644 --- a/docs/models/shared/SourceCalendly.md +++ b/docs/models/shared/SourceCalendly.md @@ -3,8 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `apiKey` | *String* | :heavy_check_mark: | Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks | -| `sourceType` | [Calendly](../../models/shared/Calendly.md) | :heavy_check_mark: | N/A | -| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks | +| `lookbackDays` | *Optional\* | :heavy_minus_sign: | Number of days to be subtracted from the last cutoff date before starting to sync the `scheduled_events` stream. | +| `sourceType` | [Calendly](../../models/shared/Calendly.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceChurnkey.md b/docs/models/shared/SourceChurnkey.md new file mode 100644 index 000000000..22cd50835 --- /dev/null +++ b/docs/models/shared/SourceChurnkey.md @@ -0,0 +1,10 @@ +# SourceChurnkey + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [Churnkey](../../models/shared/Churnkey.md) | :heavy_check_mark: | N/A | +| `xCkApp` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceConvertkit.md b/docs/models/shared/SourceConvertkit.md index 2cc68011d..59d0f971d 100644 --- a/docs/models/shared/SourceConvertkit.md +++ b/docs/models/shared/SourceConvertkit.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `apiSecret` | *String* | :heavy_check_mark: | API Secret | -| `sourceType` | [Convertkit](../../models/shared/Convertkit.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `credentials` | [AuthenticationType](../../models/shared/AuthenticationType.md) | :heavy_check_mark: | N/A | +| `sourceType` | [Convertkit](../../models/shared/Convertkit.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceConvertkitAuthType.md b/docs/models/shared/SourceConvertkitAuthType.md new file mode 100644 index 000000000..82e0cc480 --- /dev/null +++ b/docs/models/shared/SourceConvertkitAuthType.md @@ -0,0 +1,8 @@ +# SourceConvertkitAuthType + + +## Values + +| Name | Value | +| --------- | --------- | +| `OAUTH20` | oauth2.0 | \ No newline at end of file diff --git a/docs/models/shared/SourceConvertkitOAuth20.md b/docs/models/shared/SourceConvertkitOAuth20.md new file mode 100644 index 000000000..b1c16b7cd --- /dev/null +++ b/docs/models/shared/SourceConvertkitOAuth20.md @@ -0,0 +1,13 @@ +# SourceConvertkitOAuth20 + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `accessToken` | *Optional\* | :heavy_minus_sign: | An access token generated using the provided client information and refresh token. | +| `authType` | [SourceConvertkitAuthType](../../models/shared/SourceConvertkitAuthType.md) | :heavy_check_mark: | N/A | +| `clientId` | *String* | :heavy_check_mark: | The client ID of your OAuth application. | +| `clientSecret` | *String* | :heavy_check_mark: | The client secret of your OAuth application. | +| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The time at which the current access token is set to expire | +| `refreshToken` | *String* | :heavy_check_mark: | A current, non-expired refresh token genereted using the provided client ID and secret. | \ No newline at end of file diff --git a/docs/models/shared/SourceConvertkitSchemasAuthType.md b/docs/models/shared/SourceConvertkitSchemasAuthType.md new file mode 100644 index 000000000..05534ad5c --- /dev/null +++ b/docs/models/shared/SourceConvertkitSchemasAuthType.md @@ -0,0 +1,8 @@ +# SourceConvertkitSchemasAuthType + + +## Values + +| Name | Value | +| --------- | --------- | +| `API_KEY` | api_key | \ No newline at end of file diff --git a/docs/models/shared/SourceCustomerIo.md b/docs/models/shared/SourceCustomerIo.md index 24f87d4a3..b5b600d7e 100644 --- a/docs/models/shared/SourceCustomerIo.md +++ b/docs/models/shared/SourceCustomerIo.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `appApiKey` | *String* | :heavy_check_mark: | N/A | -| `sourceType` | [CustomerIo](../../models/shared/CustomerIo.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `appApiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [SourceCustomerIoCustomerIo](../../models/shared/SourceCustomerIoCustomerIo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceCustomerIoCustomerIo.md b/docs/models/shared/SourceCustomerIoCustomerIo.md new file mode 100644 index 000000000..97c2bd75e --- /dev/null +++ b/docs/models/shared/SourceCustomerIoCustomerIo.md @@ -0,0 +1,8 @@ +# SourceCustomerIoCustomerIo + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `CUSTOMER_IO` | customer-io | \ No newline at end of file diff --git a/docs/models/shared/SourceDolibarr.md b/docs/models/shared/SourceDolibarr.md new file mode 100644 index 000000000..691550573 --- /dev/null +++ b/docs/models/shared/SourceDolibarr.md @@ -0,0 +1,11 @@ +# SourceDolibarr + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `myDolibarrDomainUrl` | *String* | :heavy_check_mark: | enter your "domain/dolibarr_url" without https:// Example: mydomain.com/dolibarr | +| `sourceType` | [Dolibarr](../../models/shared/Dolibarr.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceEbayFulfillment.md b/docs/models/shared/SourceEbayFulfillment.md new file mode 100644 index 000000000..5fa846054 --- /dev/null +++ b/docs/models/shared/SourceEbayFulfillment.md @@ -0,0 +1,15 @@ +# SourceEbayFulfillment + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ | +| `apiHost` | [Optional\](../../models/shared/SourceEbayFulfillmentAPIHost.md) | :heavy_minus_sign: | N/A | +| `password` | *String* | :heavy_check_mark: | N/A | +| `redirectUri` | *String* | :heavy_check_mark: | N/A | +| `refreshToken` | *String* | :heavy_check_mark: | N/A | +| `refreshTokenEndpoint` | [Optional\](../../models/shared/SourceEbayFulfillmentRefreshTokenEndpoint.md) | :heavy_minus_sign: | N/A | +| `sourceType` | [EbayFulfillment](../../models/shared/EbayFulfillment.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `username` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceEbayFulfillmentAPIHost.md b/docs/models/shared/SourceEbayFulfillmentAPIHost.md new file mode 100644 index 000000000..c14123ae5 --- /dev/null +++ b/docs/models/shared/SourceEbayFulfillmentAPIHost.md @@ -0,0 +1,9 @@ +# SourceEbayFulfillmentAPIHost + + +## Values + +| Name | Value | +| ---------------------------- | ---------------------------- | +| `HTTPS_API_EBAY_COM` | https://api.ebay.com | +| `HTTPS_API_SANDBOX_EBAY_COM` | https://api.sandbox.ebay.com | \ No newline at end of file diff --git a/docs/models/shared/SourceEbayFulfillmentRefreshTokenEndpoint.md b/docs/models/shared/SourceEbayFulfillmentRefreshTokenEndpoint.md new file mode 100644 index 000000000..611306b10 --- /dev/null +++ b/docs/models/shared/SourceEbayFulfillmentRefreshTokenEndpoint.md @@ -0,0 +1,9 @@ +# SourceEbayFulfillmentRefreshTokenEndpoint + + +## Values + +| Name | Value | +| ----------------------------------------------------- | ----------------------------------------------------- | +| `HTTPS_API_EBAY_COM_IDENTITY_V1_OAUTH2_TOKEN` | https://api.ebay.com/identity/v1/oauth2/token | +| `HTTPS_API_SANDBOX_EBAY_COM_IDENTITY_V1_OAUTH2_TOKEN` | https://api.sandbox.ebay.com/identity/v1/oauth2/token | \ No newline at end of file diff --git a/docs/models/shared/SourceElasticsearch.md b/docs/models/shared/SourceElasticsearch.md new file mode 100644 index 000000000..b33b5051f --- /dev/null +++ b/docs/models/shared/SourceElasticsearch.md @@ -0,0 +1,10 @@ +# SourceElasticsearch + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | +| `authenticationMethod` | [Optional\](../../models/shared/SourceElasticsearchAuthenticationMethod.md) | :heavy_minus_sign: | The type of authentication to be used | +| `endpoint` | *String* | :heavy_check_mark: | The full url of the Elasticsearch server | +| `sourceType` | [SourceElasticsearchElasticsearch](../../models/shared/SourceElasticsearchElasticsearch.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceElasticsearchApiKeySecret.md b/docs/models/shared/SourceElasticsearchApiKeySecret.md new file mode 100644 index 000000000..102dccf42 --- /dev/null +++ b/docs/models/shared/SourceElasticsearchApiKeySecret.md @@ -0,0 +1,13 @@ +# SourceElasticsearchApiKeySecret + +Use a api key and secret combination to authenticate + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `apiKeyId` | *String* | :heavy_check_mark: | The Key ID to used when accessing an enterprise Elasticsearch instance. | +| `apiKeySecret` | *String* | :heavy_check_mark: | The secret associated with the API Key ID. | +| `method` | [SourceElasticsearchSchemasMethod](../../models/shared/SourceElasticsearchSchemasMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceElasticsearchAuthenticationMethod.md b/docs/models/shared/SourceElasticsearchAuthenticationMethod.md new file mode 100644 index 000000000..bd5ba77ff --- /dev/null +++ b/docs/models/shared/SourceElasticsearchAuthenticationMethod.md @@ -0,0 +1,4 @@ +# SourceElasticsearchAuthenticationMethod + +The type of authentication to be used + diff --git a/docs/models/shared/SourceElasticsearchElasticsearch.md b/docs/models/shared/SourceElasticsearchElasticsearch.md new file mode 100644 index 000000000..c3389ebe5 --- /dev/null +++ b/docs/models/shared/SourceElasticsearchElasticsearch.md @@ -0,0 +1,8 @@ +# SourceElasticsearchElasticsearch + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `ELASTICSEARCH` | elasticsearch | \ No newline at end of file diff --git a/docs/models/shared/SourceElasticsearchMethod.md b/docs/models/shared/SourceElasticsearchMethod.md new file mode 100644 index 000000000..5e64d7327 --- /dev/null +++ b/docs/models/shared/SourceElasticsearchMethod.md @@ -0,0 +1,8 @@ +# SourceElasticsearchMethod + + +## Values + +| Name | Value | +| ------ | ------ | +| `NONE` | none | \ No newline at end of file diff --git a/docs/models/shared/SourceElasticsearchNone.md b/docs/models/shared/SourceElasticsearchNone.md new file mode 100644 index 000000000..2ae80f4a0 --- /dev/null +++ b/docs/models/shared/SourceElasticsearchNone.md @@ -0,0 +1,11 @@ +# SourceElasticsearchNone + +No authentication will be used + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `method` | [SourceElasticsearchMethod](../../models/shared/SourceElasticsearchMethod.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceElasticsearchSchemasAuthenticationMethodMethod.md b/docs/models/shared/SourceElasticsearchSchemasAuthenticationMethodMethod.md new file mode 100644 index 000000000..9c78c641a --- /dev/null +++ b/docs/models/shared/SourceElasticsearchSchemasAuthenticationMethodMethod.md @@ -0,0 +1,8 @@ +# SourceElasticsearchSchemasAuthenticationMethodMethod + + +## Values + +| Name | Value | +| ------- | ------- | +| `BASIC` | basic | \ No newline at end of file diff --git a/docs/models/shared/SourceElasticsearchSchemasMethod.md b/docs/models/shared/SourceElasticsearchSchemasMethod.md new file mode 100644 index 000000000..fbd3edc97 --- /dev/null +++ b/docs/models/shared/SourceElasticsearchSchemasMethod.md @@ -0,0 +1,8 @@ +# SourceElasticsearchSchemasMethod + + +## Values + +| Name | Value | +| -------- | -------- | +| `SECRET` | secret | \ No newline at end of file diff --git a/docs/models/shared/SourceElasticsearchUsernamePassword.md b/docs/models/shared/SourceElasticsearchUsernamePassword.md new file mode 100644 index 000000000..f6a08e5df --- /dev/null +++ b/docs/models/shared/SourceElasticsearchUsernamePassword.md @@ -0,0 +1,13 @@ +# SourceElasticsearchUsernamePassword + +Basic auth header with a username and password + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `method` | [SourceElasticsearchSchemasAuthenticationMethodMethod](../../models/shared/SourceElasticsearchSchemasAuthenticationMethodMethod.md) | :heavy_check_mark: | N/A | +| `password` | *String* | :heavy_check_mark: | Basic auth password to access a secure Elasticsearch server | +| `username` | *String* | :heavy_check_mark: | Basic auth username to access a secure Elasticsearch server | \ No newline at end of file diff --git a/docs/models/shared/SourceFacebookMarketingActionReportTime.md b/docs/models/shared/SourceFacebookMarketingActionReportTime.md deleted file mode 100644 index 259fa78a2..000000000 --- a/docs/models/shared/SourceFacebookMarketingActionReportTime.md +++ /dev/null @@ -1,12 +0,0 @@ -# SourceFacebookMarketingActionReportTime - -Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd. - - -## Values - -| Name | Value | -| ------------ | ------------ | -| `CONVERSION` | conversion | -| `IMPRESSION` | impression | -| `MIXED` | mixed | \ No newline at end of file diff --git a/docs/models/shared/SourceFacebookPages.md b/docs/models/shared/SourceFacebookPages.md new file mode 100644 index 000000000..f27b5fe2c --- /dev/null +++ b/docs/models/shared/SourceFacebookPages.md @@ -0,0 +1,10 @@ +# SourceFacebookPages + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `accessToken` | *String* | :heavy_check_mark: | Facebook Page Access Token | +| `pageId` | *String* | :heavy_check_mark: | Page ID | +| `sourceType` | [FacebookPages](../../models/shared/FacebookPages.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceGithubOAuth.md b/docs/models/shared/SourceGithubOAuth.md new file mode 100644 index 000000000..f04917ed5 --- /dev/null +++ b/docs/models/shared/SourceGithubOAuth.md @@ -0,0 +1,11 @@ +# SourceGithubOAuth + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `accessToken` | *String* | :heavy_check_mark: | OAuth access token | +| `clientId` | *Optional\* | :heavy_minus_sign: | OAuth Client Id | +| `clientSecret` | *Optional\* | :heavy_minus_sign: | OAuth Client secret | +| `optionTitle` | [Optional\](../../models/shared/OptionTitle.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleSearchConsole.md b/docs/models/shared/SourceGoogleSearchConsole.md index d0a1feee9..1bc35a174 100644 --- a/docs/models/shared/SourceGoogleSearchConsole.md +++ b/docs/models/shared/SourceGoogleSearchConsole.md @@ -5,10 +5,12 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authorization` | [AuthenticationType](../../models/shared/AuthenticationType.md) | :heavy_check_mark: | N/A | | +| `alwaysUseAggregationTypeAuto` | *Optional\* | :heavy_minus_sign: | Some search analytics streams fail with a 400 error if the specified `aggregationType` is not supported. This is customer implementation dependent and if this error is encountered, enable this setting which will override the existing `aggregationType` to use `auto` which should resolve the stream errors. | | +| `authorization` | [SourceGoogleSearchConsoleAuthenticationType](../../models/shared/SourceGoogleSearchConsoleAuthenticationType.md) | :heavy_check_mark: | N/A | | | `customReportsArray` | List\<[SourceGoogleSearchConsoleCustomReportConfig](../../models/shared/SourceGoogleSearchConsoleCustomReportConfig.md)> | :heavy_minus_sign: | You can add your Custom Analytics report by creating one. | | | `dataState` | [Optional\](../../models/shared/DataFreshness.md) | :heavy_minus_sign: | If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our full documentation. | final | | `endDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward. | 2021-12-12 | +| `numWorkers` | *Optional\* | :heavy_minus_sign: | The number of worker threads to use for the sync. For more details on Google Search Console rate limits, refer to the docs. | 30 | | `siteUrls` | List\<*String*> | :heavy_check_mark: | The URLs of the website property attached to your GSC account. Learn more about properties here. | https://example1.com/ | | `sourceType` | [SourceGoogleSearchConsoleGoogleSearchConsole](../../models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.md) | :heavy_check_mark: | N/A | | | `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. | | \ No newline at end of file diff --git a/docs/models/shared/SourceGoogleSearchConsoleAuthenticationType.md b/docs/models/shared/SourceGoogleSearchConsoleAuthenticationType.md new file mode 100644 index 000000000..4f21fb074 --- /dev/null +++ b/docs/models/shared/SourceGoogleSearchConsoleAuthenticationType.md @@ -0,0 +1,2 @@ +# SourceGoogleSearchConsoleAuthenticationType + diff --git a/docs/models/shared/SourceGoogleSheets.md b/docs/models/shared/SourceGoogleSheets.md index 61d1897f1..05ad9751c 100644 --- a/docs/models/shared/SourceGoogleSheets.md +++ b/docs/models/shared/SourceGoogleSheets.md @@ -3,10 +3,16 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `batchSize` | *Optional\* | :heavy_minus_sign: | Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on Google Sheets API limits documentation, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. | | -| `credentials` | [SourceGoogleSheetsAuthentication](../../models/shared/SourceGoogleSheetsAuthentication.md) | :heavy_check_mark: | Credentials for connecting to the Google Sheets API | | -| `namesConversion` | *Optional\* | :heavy_minus_sign: | Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based. | | -| `sourceType` | [SourceGoogleSheetsGoogleSheets](../../models/shared/SourceGoogleSheetsGoogleSheets.md) | :heavy_check_mark: | N/A | | -| `spreadsheetId` | *String* | :heavy_check_mark: | Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'. | https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `allowLeadingNumbers` | *Optional\* | :heavy_minus_sign: | Allows column names to start with numbers. Example: "50th Percentile" → "50_th_percentile" This option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. | | +| `batchSize` | *Optional\* | :heavy_minus_sign: | Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on Google Sheets API limits documentation, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. | | +| `combineLetterNumberPairs` | *Optional\* | :heavy_minus_sign: | Combines adjacent letters and numbers. Example: "Q3 2023" → "q3_2023" This option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. | | +| `combineNumberWordPairs` | *Optional\* | :heavy_minus_sign: | Combines adjacent numbers and words. Example: "50th Percentile?" → "_50th_percentile_" This option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. | | +| `credentials` | [SourceGoogleSheetsAuthentication](../../models/shared/SourceGoogleSheetsAuthentication.md) | :heavy_check_mark: | Credentials for connecting to the Google Sheets API | | +| `namesConversion` | *Optional\* | :heavy_minus_sign: | Converts column names to a SQL-compliant format (snake_case, lowercase, etc). If enabled, you can further customize the sanitization using the options below. | | +| `removeLeadingTrailingUnderscores` | *Optional\* | :heavy_minus_sign: | Removes leading and trailing underscores from column names. Does not remove leading underscores from column names that start with a number. Example: "50th Percentile? "→ "_50_th_percentile" This option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. | | +| `removeSpecialCharacters` | *Optional\* | :heavy_minus_sign: | Removes all special characters from column names. Example: "Example ID*" → "example_id" This option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. | | +| `sourceType` | [SourceGoogleSheetsGoogleSheets](../../models/shared/SourceGoogleSheetsGoogleSheets.md) | :heavy_check_mark: | N/A | | +| `spreadsheetId` | *String* | :heavy_check_mark: | Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'. | https://docs.google.com/spreadsheets/d/1hLd9Qqti3UyLXZB2aFfUWDT7BG-arw2xy4HR3D-dwUb/edit | +| `streamNameOverrides` | List\<[StreamNameOverrides](../../models/shared/StreamNameOverrides.md)> | :heavy_minus_sign: | **Overridden streams will default to Sync Mode: Full Refresh (Append), which does not support primary keys. If you want to use primary keys and deduplication, update the sync mode to "Full Refresh \| Overwrite + Deduped" in your connection settings.**
Allows you to rename streams (Google Sheet tab names) as they appear in Airbyte.
Each item should be an object with a `source_stream_name` (the exact name of the sheet/tab in your spreadsheet) and a `custom_stream_name` (the name you want it to appear as in Airbyte and the destination).
If a `source_stream_name` is not found in your spreadsheet, it will be ignored and the default name will be used. This feature only affects stream (sheet/tab) names, not field/column names.
If you want to rename fields or column names, you can do so using the Airbyte Mappings feature after your connection is created. See the Airbyte documentation for more details on how to use Mappings.
Examples:
- To rename a sheet called "Sheet1" to "sales_data", and "2024 Q1" to "q1_2024":
[
{ "source_stream_name": "Sheet1", "custom_stream_name": "sales_data" },
{ "source_stream_name": "2024 Q1", "custom_stream_name": "q1_2024" }
]
- If you do not wish to rename any streams, leave this blank. | | \ No newline at end of file diff --git a/docs/models/shared/SourceHubspot.md b/docs/models/shared/SourceHubspot.md index 9202664ef..b4e496558 100644 --- a/docs/models/shared/SourceHubspot.md +++ b/docs/models/shared/SourceHubspot.md @@ -7,5 +7,6 @@ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `credentials` | [SourceHubspotAuthentication](../../models/shared/SourceHubspotAuthentication.md) | :heavy_check_mark: | Choose how to authenticate to HubSpot. | | | `enableExperimentalStreams` | *Optional\* | :heavy_minus_sign: | If enabled then experimental streams become available for sync. | | +| `numWorker` | *Optional\* | :heavy_minus_sign: | The number of worker threads to use for the sync. | 1 | | `sourceType` | [SourceHubspotHubspot](../../models/shared/SourceHubspotHubspot.md) | :heavy_check_mark: | N/A | | | `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. It's recommended to provide relevant to your data start date value to optimize synchronization. | 2017-01-25T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceJira.md b/docs/models/shared/SourceJira.md index 633223baf..70d74828d 100644 --- a/docs/models/shared/SourceJira.md +++ b/docs/models/shared/SourceJira.md @@ -8,7 +8,6 @@ | `apiToken` | *String* | :heavy_check_mark: | Jira API Token. See the docs for more information on how to generate this key. API Token is used for Authorization to your account by BasicAuth. | | | `domain` | *String* | :heavy_check_mark: | The Domain for your Jira account, e.g. airbyteio.atlassian.net, airbyteio.jira.com, jira.your-domain.com | .atlassian.net | | `email` | *String* | :heavy_check_mark: | The user email for your Jira account which you used to generate the API token. This field is used for Authorization to your account by BasicAuth. | | -| `enableExperimentalStreams` | *Optional\* | :heavy_minus_sign: | Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. | | | `lookbackWindowMinutes` | *Optional\* | :heavy_minus_sign: | When set to N, the connector will always refresh resources created within the past N minutes. By default, updated objects that are not newly created are not incrementally synced. | 60 | | `numWorkers` | *Optional\* | :heavy_minus_sign: | The number of worker threads to use for the sync. | 1 | | `projects` | List\<*String*> | :heavy_minus_sign: | List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects. | PROJ1 | diff --git a/docs/models/shared/SourceJudgeMeReviews.md b/docs/models/shared/SourceJudgeMeReviews.md new file mode 100644 index 000000000..0c1bba80a --- /dev/null +++ b/docs/models/shared/SourceJudgeMeReviews.md @@ -0,0 +1,11 @@ +# SourceJudgeMeReviews + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `shopDomain` | *String* | :heavy_check_mark: | example.myshopify.com | +| `sourceType` | [JudgeMeReviews](../../models/shared/JudgeMeReviews.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceLinear.md b/docs/models/shared/SourceLinear.md new file mode 100644 index 000000000..9efc5050f --- /dev/null +++ b/docs/models/shared/SourceLinear.md @@ -0,0 +1,9 @@ +# SourceLinear + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [Linear](../../models/shared/Linear.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceLinkedinAds.md b/docs/models/shared/SourceLinkedinAds.md index 0ec91a1ab..71825d519 100644 --- a/docs/models/shared/SourceLinkedinAds.md +++ b/docs/models/shared/SourceLinkedinAds.md @@ -9,5 +9,6 @@ | `adAnalyticsReports` | List\<[AdAnalyticsReportConfiguration](../../models/shared/AdAnalyticsReportConfiguration.md)> | :heavy_minus_sign: | N/A | | | `credentials` | [Optional\](../../models/shared/SourceLinkedinAdsAuthentication.md) | :heavy_minus_sign: | N/A | | | `lookbackWindow` | *Optional\* | :heavy_minus_sign: | How far into the past to look for records. (in days) | | +| `numWorkers` | *Optional\* | :heavy_minus_sign: | The number of workers to use for the connector. This is used to limit the number of concurrent requests to the LinkedIn Ads API. If not set, the default is 3 workers. | | | `sourceType` | [SourceLinkedinAdsLinkedinAds](../../models/shared/SourceLinkedinAdsLinkedinAds.md) | :heavy_check_mark: | N/A | | | `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_check_mark: | UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. | 2021-05-17 | \ No newline at end of file diff --git a/docs/models/shared/SourceMailchimpAPIKey.md b/docs/models/shared/SourceMailchimpAPIKey.md new file mode 100644 index 000000000..33e082a6f --- /dev/null +++ b/docs/models/shared/SourceMailchimpAPIKey.md @@ -0,0 +1,9 @@ +# SourceMailchimpAPIKey + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | +| `apikey` | *String* | :heavy_check_mark: | Mailchimp API Key. See the docs for information on how to generate this key. | +| `authType` | [SourceMailchimpSchemasAuthType](../../models/shared/SourceMailchimpSchemasAuthType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceMercadoAds.md b/docs/models/shared/SourceMercadoAds.md new file mode 100644 index 000000000..c75bc6508 --- /dev/null +++ b/docs/models/shared/SourceMercadoAds.md @@ -0,0 +1,14 @@ +# SourceMercadoAds + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `clientId` | *String* | :heavy_check_mark: | N/A | +| `clientRefreshToken` | *String* | :heavy_check_mark: | N/A | +| `clientSecret` | *String* | :heavy_check_mark: | N/A | +| `endDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | Cannot exceed 90 days from current day for Product Ads | +| `lookbackDays` | *Optional\* | :heavy_minus_sign: | N/A | +| `sourceType` | [MercadoAds](../../models/shared/MercadoAds.md) | :heavy_check_mark: | N/A | +| `startDate` | [LocalDate](https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html) | :heavy_minus_sign: | Cannot exceed 90 days from current day for Product Ads, and 90 days from "End Date" on Brand and Display Ads | \ No newline at end of file diff --git a/docs/models/shared/SourceMongodbV2.md b/docs/models/shared/SourceMongodbV2.md index 905c5be78..044cf0f2c 100644 --- a/docs/models/shared/SourceMongodbV2.md +++ b/docs/models/shared/SourceMongodbV2.md @@ -7,6 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `databaseConfig` | [ClusterType](../../models/shared/ClusterType.md) | :heavy_check_mark: | Configures the MongoDB cluster type. | | `discoverSampleSize` | *Optional\* | :heavy_minus_sign: | The maximum number of documents to sample when attempting to discover the unique fields for a collection. | +| `discoverTimeoutSeconds` | *Optional\* | :heavy_minus_sign: | The amount of time the connector will wait when it discovers a document. Defaults to 600 seconds. Valid range: 5 seconds to 1200 seconds. | | `initialLoadTimeoutHours` | *Optional\* | :heavy_minus_sign: | The amount of time an initial load is allowed to continue for before catching up on CDC logs. | | `initialWaitingSeconds` | *Optional\* | :heavy_minus_sign: | The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. | | `invalidCdcCursorPositionBehavior` | [Optional\](../../models/shared/InvalidCDCPositionBehaviorAdvanced.md) | :heavy_minus_sign: | Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. | diff --git a/docs/models/shared/SourceMysql.md b/docs/models/shared/SourceMysql.md index 5338421e6..0b9be5123 100644 --- a/docs/models/shared/SourceMysql.md +++ b/docs/models/shared/SourceMysql.md @@ -7,14 +7,14 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `checkPrivileges` | *Optional\* | :heavy_minus_sign: | When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. | | `checkpointTargetIntervalSeconds` | *Optional\* | :heavy_minus_sign: | How often (in seconds) a stream should checkpoint, when possible. | -| `concurrency` | *Optional\* | :heavy_minus_sign: | Maximum number of concurrent queries to the database. | | `database` | *String* | :heavy_check_mark: | The database name. | | `host` | *String* | :heavy_check_mark: | Hostname of the database. | | `jdbcUrlParams` | *Optional\* | :heavy_minus_sign: | Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). | +| `maxDbConnections` | *Optional\* | :heavy_minus_sign: | Maximum number of concurrent queries to the database. Leave empty to let Airbyte optimize performance. | | `password` | *Optional\* | :heavy_minus_sign: | The password associated with the username. | | `port` | *Optional\* | :heavy_minus_sign: | Port of the database. | | `replicationMethod` | [SourceMysqlUpdateMethod](../../models/shared/SourceMysqlUpdateMethod.md) | :heavy_check_mark: | Configures how data is extracted from the database. | | `sourceType` | [SourceMysqlMysql](../../models/shared/SourceMysqlMysql.md) | :heavy_check_mark: | N/A | -| `sslMode` | [Optional\](../../models/shared/SourceMysqlEncryption.md) | :heavy_minus_sign: | The encryption method with is used when communicating with the database. | +| `sslMode` | [Optional\](../../models/shared/SourceMysqlEncryption.md) | :heavy_minus_sign: | The encryption method which is used when communicating with the database. | | `tunnelMethod` | [Optional\](../../models/shared/SourceMysqlSSHTunnelMethod.md) | :heavy_minus_sign: | Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. | | `username` | *String* | :heavy_check_mark: | The username which is used to access the database. | \ No newline at end of file diff --git a/docs/models/shared/SourceMysqlEncryption.md b/docs/models/shared/SourceMysqlEncryption.md index bb340e8a9..7323c82ef 100644 --- a/docs/models/shared/SourceMysqlEncryption.md +++ b/docs/models/shared/SourceMysqlEncryption.md @@ -1,4 +1,4 @@ # SourceMysqlEncryption -The encryption method with is used when communicating with the database. +The encryption method which is used when communicating with the database. diff --git a/docs/models/shared/SourceNetsuiteEnterprisePasswordAuthentication.md b/docs/models/shared/SourceNetsuiteEnterprisePasswordAuthentication.md index b75812c4f..fe68f5716 100644 --- a/docs/models/shared/SourceNetsuiteEnterprisePasswordAuthentication.md +++ b/docs/models/shared/SourceNetsuiteEnterprisePasswordAuthentication.md @@ -5,8 +5,8 @@ Authenticate using a password. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | -| `authenticationMethod` | [Optional\](../../models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.md) | :heavy_minus_sign: | N/A | -| `password` | *String* | :heavy_check_mark: | The password associated with the username. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `authenticationMethod` | [Optional\](../../models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod.md) | :heavy_minus_sign: | N/A | +| `password` | *String* | :heavy_check_mark: | The password associated with the username. | \ No newline at end of file diff --git a/docs/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.md b/docs/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.md index 9cf81571f..3e8ed80f9 100644 --- a/docs/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.md +++ b/docs/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------------- | ------------------------- | -| `PASSWORD_AUTHENTICATION` | password_authentication | \ No newline at end of file +| Name | Value | +| ----------------------- | ----------------------- | +| `OAUTH2_AUTHENTICATION` | oauth2_authentication | \ No newline at end of file diff --git a/docs/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod.md b/docs/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod.md new file mode 100644 index 000000000..6b855c369 --- /dev/null +++ b/docs/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod.md @@ -0,0 +1,8 @@ +# SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod + + +## Values + +| Name | Value | +| ------------------------- | ------------------------- | +| `PASSWORD_AUTHENTICATION` | password_authentication | \ No newline at end of file diff --git a/docs/models/shared/SourceOpenExchangeRates.md b/docs/models/shared/SourceOpenExchangeRates.md new file mode 100644 index 000000000..b0fdff782 --- /dev/null +++ b/docs/models/shared/SourceOpenExchangeRates.md @@ -0,0 +1,11 @@ +# SourceOpenExchangeRates + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `appId` | *String* | :heavy_check_mark: | App ID provided by Open Exchange Rates | | +| `base` | *Optional\* | :heavy_minus_sign: | Change base currency (3-letter code, default is USD - only modifiable in paid plans) | EUR | +| `sourceType` | [OpenExchangeRates](../../models/shared/OpenExchangeRates.md) | :heavy_check_mark: | N/A | | +| `startDate` | *String* | :heavy_check_mark: | Start getting data from that date. | YYYY-MM-DD | \ No newline at end of file diff --git a/docs/models/shared/SourceOpuswatch.md b/docs/models/shared/SourceOpuswatch.md new file mode 100644 index 000000000..dcb551c5c --- /dev/null +++ b/docs/models/shared/SourceOpuswatch.md @@ -0,0 +1,10 @@ +# SourceOpuswatch + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `apiKey` | *String* | :heavy_check_mark: | N/A | +| `sourceType` | [Opuswatch](../../models/shared/Opuswatch.md) | :heavy_check_mark: | N/A | +| `startDate` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceRecharge.md b/docs/models/shared/SourceRecharge.md index fd86b8f87..5f4522ae2 100644 --- a/docs/models/shared/SourceRecharge.md +++ b/docs/models/shared/SourceRecharge.md @@ -6,6 +6,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | `accessToken` | *String* | :heavy_check_mark: | The value of the Access Token generated. See the docs for more information. | | +| `lookbackWindowDays` | *Optional\* | :heavy_minus_sign: | Specifies how many days of historical data should be reloaded each time the recharge connector runs. | | | `sourceType` | [Recharge](../../models/shared/Recharge.md) | :heavy_check_mark: | N/A | | | `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated. | 2021-05-14T00:00:00Z | | `useOrdersDeprecatedApi` | *Optional\* | :heavy_minus_sign: | Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use `2021-11`, otherwise. | | \ No newline at end of file diff --git a/docs/models/shared/SourceRecurly.md b/docs/models/shared/SourceRecurly.md index ba4f56bfd..cddd6e90a 100644 --- a/docs/models/shared/SourceRecurly.md +++ b/docs/models/shared/SourceRecurly.md @@ -5,7 +5,10 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | +| `accountsStepDays` | *Optional\* | :heavy_minus_sign: | Days in length for each API call to get data from the accounts stream. Smaller values will result in more API calls but better concurrency. | 7 | | `apiKey` | *String* | :heavy_check_mark: | Recurly API Key. See the docs for more information on how to generate this key. | | -| `beginTime` | *Optional\* | :heavy_minus_sign: | ISO8601 timestamp from which the replication from Recurly API will start from. | 2021-12-01T00:00:00 | -| `endTime` | *Optional\* | :heavy_minus_sign: | ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported. | 2021-12-01T00:00:00 | +| `beginTime` | *Optional\* | :heavy_minus_sign: | ISO8601 timestamp from which the replication from Recurly API will start from. | 2021-12-01T00:00:00Z | +| `endTime` | *Optional\* | :heavy_minus_sign: | ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported. | 2021-12-01T00:00:00Z | +| `isSandbox` | *Optional\* | :heavy_minus_sign: | Set to true for sandbox accounts (400 requests/min, all types). Defaults to false for production accounts (1,000 GET requests/min). | | +| `numWorkers` | *Optional\* | :heavy_minus_sign: | The number of worker threads to use for the sync. | 1 | | `sourceType` | [Recurly](../../models/shared/Recurly.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterprise.md b/docs/models/shared/SourceSharepointEnterprise.md new file mode 100644 index 000000000..47a0cb32e --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterprise.md @@ -0,0 +1,18 @@ +# SourceSharepointEnterprise + +SourceMicrosoftSharePointSpec class for Microsoft SharePoint Source Specification. +This class combines the authentication details with additional configuration for the SharePoint API. + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `credentials` | [SourceSharepointEnterpriseAuthentication](../../models/shared/SourceSharepointEnterpriseAuthentication.md) | :heavy_check_mark: | Credentials for connecting to the One Drive API | | +| `deliveryMethod` | [Optional\](../../models/shared/SourceSharepointEnterpriseDeliveryMethod.md) | :heavy_minus_sign: | N/A | | +| `folderPath` | *Optional\* | :heavy_minus_sign: | Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. | | +| `searchScope` | [Optional\](../../models/shared/SourceSharepointEnterpriseSearchScope.md) | :heavy_minus_sign: | Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. | | +| `siteUrl` | *Optional\* | :heavy_minus_sign: | Url of SharePoint site to search for files. Leave empty to search in the main site. Use 'https://.sharepoint.com/sites/' to iterate over all sites. | | +| `sourceType` | [SourceSharepointEnterpriseSharepointEnterprise](../../models/shared/SourceSharepointEnterpriseSharepointEnterprise.md) | :heavy_check_mark: | N/A | | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. | 2021-01-01T00:00:00.000000Z | +| `streams` | List\<[SourceSharepointEnterpriseFileBasedStreamConfig](../../models/shared/SourceSharepointEnterpriseFileBasedStreamConfig.md)> | :heavy_check_mark: | Each instance of this configuration defines a stream. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. | | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseAuthType.md b/docs/models/shared/SourceSharepointEnterpriseAuthType.md new file mode 100644 index 000000000..49110477d --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseAuthType.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseAuthType + + +## Values + +| Name | Value | +| -------- | -------- | +| `CLIENT` | Client | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth.md b/docs/models/shared/SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth.md new file mode 100644 index 000000000..59df26ecf --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth.md @@ -0,0 +1,15 @@ +# SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth + +OAuthCredentials class to hold authentication details for Microsoft OAuth authentication. +This class uses pydantic for data validation and settings management. + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `authType` | [Optional\](../../models/shared/SourceSharepointEnterpriseAuthType.md) | :heavy_minus_sign: | N/A | +| `clientId` | *String* | :heavy_check_mark: | Client ID of your Microsoft developer application | +| `clientSecret` | *String* | :heavy_check_mark: | Client Secret of your Microsoft developer application | +| `refreshToken` | *Optional\* | :heavy_minus_sign: | Refresh Token of your Microsoft developer application | +| `tenantId` | *String* | :heavy_check_mark: | Tenant ID of the Microsoft SharePoint user | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseAuthentication.md b/docs/models/shared/SourceSharepointEnterpriseAuthentication.md new file mode 100644 index 000000000..88f755901 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseAuthentication.md @@ -0,0 +1,4 @@ +# SourceSharepointEnterpriseAuthentication + +Credentials for connecting to the One Drive API + diff --git a/docs/models/shared/SourceSharepointEnterpriseAutogenerated.md b/docs/models/shared/SourceSharepointEnterpriseAutogenerated.md new file mode 100644 index 000000000..fb2cd86e3 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseAutogenerated.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseAutogenerated + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | +| `headerDefinitionType` | [Optional\](../../models/shared/SourceSharepointEnterpriseSchemasHeaderDefinitionType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseAvroFormat.md b/docs/models/shared/SourceSharepointEnterpriseAvroFormat.md new file mode 100644 index 000000000..967dffb9a --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseAvroFormat.md @@ -0,0 +1,9 @@ +# SourceSharepointEnterpriseAvroFormat + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `doubleAsString` | *Optional\* | :heavy_minus_sign: | Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. | +| `filetype` | [Optional\](../../models/shared/SourceSharepointEnterpriseFiletype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseCSVFormat.md b/docs/models/shared/SourceSharepointEnterpriseCSVFormat.md new file mode 100644 index 000000000..834ff6d9a --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseCSVFormat.md @@ -0,0 +1,21 @@ +# SourceSharepointEnterpriseCSVFormat + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `delimiter` | *Optional\* | :heavy_minus_sign: | The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. | +| `doubleQuote` | *Optional\* | :heavy_minus_sign: | Whether two quotes in a quoted CSV value denote a single quote in the data. | +| `encoding` | *Optional\* | :heavy_minus_sign: | The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings for allowable options. | +| `escapeChar` | *Optional\* | :heavy_minus_sign: | The character used for escaping special characters. To disallow escaping, leave this field blank. | +| `falseValues` | List\<*String*> | :heavy_minus_sign: | A set of case-sensitive strings that should be interpreted as false values. | +| `filetype` | [Optional\](../../models/shared/SourceSharepointEnterpriseSchemasFiletype.md) | :heavy_minus_sign: | N/A | +| `headerDefinition` | [Optional\](../../models/shared/SourceSharepointEnterpriseCSVHeaderDefinition.md) | :heavy_minus_sign: | How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. | +| `ignoreErrorsOnFieldsMismatch` | *Optional\* | :heavy_minus_sign: | Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. | +| `nullValues` | List\<*String*> | :heavy_minus_sign: | A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. | +| `quoteChar` | *Optional\* | :heavy_minus_sign: | The character used for quoting CSV values. To disallow quoting, make this field blank. | +| `skipRowsAfterHeader` | *Optional\* | :heavy_minus_sign: | The number of rows to skip after the header row. | +| `skipRowsBeforeHeader` | *Optional\* | :heavy_minus_sign: | The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. | +| `stringsCanBeNull` | *Optional\* | :heavy_minus_sign: | Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. | +| `trueValues` | List\<*String*> | :heavy_minus_sign: | A set of case-sensitive strings that should be interpreted as true values. | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseCSVHeaderDefinition.md b/docs/models/shared/SourceSharepointEnterpriseCSVHeaderDefinition.md new file mode 100644 index 000000000..89d382c27 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseCSVHeaderDefinition.md @@ -0,0 +1,4 @@ +# SourceSharepointEnterpriseCSVHeaderDefinition + +How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + diff --git a/docs/models/shared/SourceSharepointEnterpriseCopyRawFiles.md b/docs/models/shared/SourceSharepointEnterpriseCopyRawFiles.md new file mode 100644 index 000000000..3fe942d7d --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseCopyRawFiles.md @@ -0,0 +1,11 @@ +# SourceSharepointEnterpriseCopyRawFiles + +Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `deliveryType` | [Optional\](../../models/shared/SourceSharepointEnterpriseSchemasDeliveryType.md) | :heavy_minus_sign: | N/A | +| `preserveDirectoryStructure` | *Optional\* | :heavy_minus_sign: | If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseDeliveryMethod.md b/docs/models/shared/SourceSharepointEnterpriseDeliveryMethod.md new file mode 100644 index 000000000..83fb881e6 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseDeliveryMethod.md @@ -0,0 +1,2 @@ +# SourceSharepointEnterpriseDeliveryMethod + diff --git a/docs/models/shared/SourceSharepointEnterpriseDeliveryType.md b/docs/models/shared/SourceSharepointEnterpriseDeliveryType.md new file mode 100644 index 000000000..56bed1cbc --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseDeliveryType.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseDeliveryType + + +## Values + +| Name | Value | +| ---------------------- | ---------------------- | +| `USE_RECORDS_TRANSFER` | use_records_transfer | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseExcelFormat.md b/docs/models/shared/SourceSharepointEnterpriseExcelFormat.md new file mode 100644 index 000000000..156f3a469 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseExcelFormat.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseExcelFormat + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `filetype` | [Optional\](../../models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseFileBasedStreamConfig.md b/docs/models/shared/SourceSharepointEnterpriseFileBasedStreamConfig.md new file mode 100644 index 000000000..bb5ca0217 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseFileBasedStreamConfig.md @@ -0,0 +1,15 @@ +# SourceSharepointEnterpriseFileBasedStreamConfig + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `daysToSyncIfHistoryIsFull` | *Optional\* | :heavy_minus_sign: | When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. | +| `format` | [SourceSharepointEnterpriseFormat](../../models/shared/SourceSharepointEnterpriseFormat.md) | :heavy_check_mark: | The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. | +| `globs` | List\<*String*> | :heavy_minus_sign: | The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look here. | +| `inputSchema` | *Optional\* | :heavy_minus_sign: | The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. | +| `name` | *String* | :heavy_check_mark: | The name of the stream. | +| `recentNFilesToReadForSchemaDiscovery` | *Optional\* | :heavy_minus_sign: | The number of resent files which will be used to discover the schema for this stream. | +| `schemaless` | *Optional\* | :heavy_minus_sign: | When enabled, syncs will not validate or structure records against the stream's schema. | +| `validationPolicy` | [Optional\](../../models/shared/SourceSharepointEnterpriseValidationPolicy.md) | :heavy_minus_sign: | The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseFiletype.md b/docs/models/shared/SourceSharepointEnterpriseFiletype.md new file mode 100644 index 000000000..a15c3590c --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseFiletype.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseFiletype + + +## Values + +| Name | Value | +| ------ | ------ | +| `AVRO` | avro | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseFormat.md b/docs/models/shared/SourceSharepointEnterpriseFormat.md new file mode 100644 index 000000000..b54852b6b --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseFormat.md @@ -0,0 +1,4 @@ +# SourceSharepointEnterpriseFormat + +The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + diff --git a/docs/models/shared/SourceSharepointEnterpriseFromCSV.md b/docs/models/shared/SourceSharepointEnterpriseFromCSV.md new file mode 100644 index 000000000..636883c68 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseFromCSV.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseFromCSV + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `headerDefinitionType` | [Optional\](../../models/shared/SourceSharepointEnterpriseHeaderDefinitionType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseHeaderDefinitionType.md b/docs/models/shared/SourceSharepointEnterpriseHeaderDefinitionType.md new file mode 100644 index 000000000..78f7ed609 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseHeaderDefinitionType.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseHeaderDefinitionType + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `FROM_CSV` | From CSV | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseJsonlFormat.md b/docs/models/shared/SourceSharepointEnterpriseJsonlFormat.md new file mode 100644 index 000000000..150beb9bd --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseJsonlFormat.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseJsonlFormat + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | +| `filetype` | [Optional\](../../models/shared/SourceSharepointEnterpriseSchemasStreamsFiletype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseLocal.md b/docs/models/shared/SourceSharepointEnterpriseLocal.md new file mode 100644 index 000000000..3206245cc --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseLocal.md @@ -0,0 +1,10 @@ +# SourceSharepointEnterpriseLocal + +Process files locally, supporting `fast` and `ocr` modes. This is the default option. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `mode` | [Optional\](../../models/shared/SourceSharepointEnterpriseMode.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Cobra.md b/docs/models/shared/SourceSharepointEnterpriseMode.md similarity index 51% rename from docs/models/shared/Cobra.md rename to docs/models/shared/SourceSharepointEnterpriseMode.md index 35d19a79c..6d0a09de3 100644 --- a/docs/models/shared/Cobra.md +++ b/docs/models/shared/SourceSharepointEnterpriseMode.md @@ -1,8 +1,8 @@ -# Cobra +# SourceSharepointEnterpriseMode ## Values | Name | Value | | ------- | ------- | -| `COBRA` | cobra | \ No newline at end of file +| `LOCAL` | local | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseParquetFormat.md b/docs/models/shared/SourceSharepointEnterpriseParquetFormat.md new file mode 100644 index 000000000..fbe4c0ae6 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseParquetFormat.md @@ -0,0 +1,9 @@ +# SourceSharepointEnterpriseParquetFormat + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | +| `decimalAsFloat` | *Optional\* | :heavy_minus_sign: | Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. | +| `filetype` | [Optional\](../../models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFiletype.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseParsingStrategy.md b/docs/models/shared/SourceSharepointEnterpriseParsingStrategy.md new file mode 100644 index 000000000..645b6458c --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseParsingStrategy.md @@ -0,0 +1,13 @@ +# SourceSharepointEnterpriseParsingStrategy + +The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `AUTO` | auto | +| `FAST` | fast | +| `OCR_ONLY` | ocr_only | +| `HI_RES` | hi_res | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseProcessing.md b/docs/models/shared/SourceSharepointEnterpriseProcessing.md new file mode 100644 index 000000000..bdd96cc03 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseProcessing.md @@ -0,0 +1,4 @@ +# SourceSharepointEnterpriseProcessing + +Processing configuration + diff --git a/docs/models/shared/SourceSharepointEnterpriseReplicatePermissionsACL.md b/docs/models/shared/SourceSharepointEnterpriseReplicatePermissionsACL.md new file mode 100644 index 000000000..e873c50ce --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseReplicatePermissionsACL.md @@ -0,0 +1,11 @@ +# SourceSharepointEnterpriseReplicatePermissionsACL + +Sends one identity stream and one for more permissions (ACL) streams to the destination. This data can be used in downstream systems to recreate permission restrictions mirroring the original source. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `deliveryType` | [Optional\](../../models/shared/SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType.md) | :heavy_minus_sign: | N/A | +| `includeIdentitiesStream` | *Optional\* | :heavy_minus_sign: | This data can be used in downstream systems to recreate permission restrictions mirroring the original source | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseReplicateRecords.md b/docs/models/shared/SourceSharepointEnterpriseReplicateRecords.md new file mode 100644 index 000000000..53f64c01b --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseReplicateRecords.md @@ -0,0 +1,10 @@ +# SourceSharepointEnterpriseReplicateRecords + +Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `deliveryType` | [Optional\](../../models/shared/SourceSharepointEnterpriseDeliveryType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSchemasAuthType.md b/docs/models/shared/SourceSharepointEnterpriseSchemasAuthType.md new file mode 100644 index 000000000..63ccd7d25 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSchemasAuthType.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseSchemasAuthType + + +## Values + +| Name | Value | +| --------- | --------- | +| `SERVICE` | Service | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType.md b/docs/models/shared/SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType.md new file mode 100644 index 000000000..8064aa247 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType + + +## Values + +| Name | Value | +| -------------------------- | -------------------------- | +| `USE_PERMISSIONS_TRANSFER` | use_permissions_transfer | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeSchemasCredentialsAuthType.md b/docs/models/shared/SourceSharepointEnterpriseSchemasDeliveryType.md similarity index 53% rename from docs/models/shared/SourceSnowflakeSchemasCredentialsAuthType.md rename to docs/models/shared/SourceSharepointEnterpriseSchemasDeliveryType.md index 466bf25b9..b8d2fbe2c 100644 --- a/docs/models/shared/SourceSnowflakeSchemasCredentialsAuthType.md +++ b/docs/models/shared/SourceSharepointEnterpriseSchemasDeliveryType.md @@ -1,8 +1,8 @@ -# SourceSnowflakeSchemasCredentialsAuthType +# SourceSharepointEnterpriseSchemasDeliveryType ## Values | Name | Value | | ------------------- | ------------------- | -| `USERNAME_PASSWORD` | username/password | \ No newline at end of file +| `USE_FILE_TRANSFER` | use_file_transfer | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSchemasFiletype.md b/docs/models/shared/SourceSharepointEnterpriseSchemasFiletype.md new file mode 100644 index 000000000..48945f159 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSchemasFiletype.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseSchemasFiletype + + +## Values + +| Name | Value | +| ----- | ----- | +| `CSV` | csv | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSchemasHeaderDefinitionType.md b/docs/models/shared/SourceSharepointEnterpriseSchemasHeaderDefinitionType.md new file mode 100644 index 000000000..f8b093a71 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSchemasHeaderDefinitionType.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseSchemasHeaderDefinitionType + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `AUTOGENERATED` | Autogenerated | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFiletype.md b/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFiletype.md new file mode 100644 index 000000000..ad38f179b --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFiletype.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseSchemasStreamsFiletype + + +## Values + +| Name | Value | +| ------- | ------- | +| `JSONL` | jsonl | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFiletype.md b/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFiletype.md new file mode 100644 index 000000000..d038ff328 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFiletype.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseSchemasStreamsFormatFiletype + + +## Values + +| Name | Value | +| --------- | --------- | +| `PARQUET` | parquet | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype.md b/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype.md new file mode 100644 index 000000000..65df95d35 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype + + +## Values + +| Name | Value | +| ------- | ------- | +| `EXCEL` | excel | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype.md b/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype.md new file mode 100644 index 000000000..eb8545837 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `UNSTRUCTURED` | unstructured | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType.md b/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType.md new file mode 100644 index 000000000..af0a5bbbd --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType + + +## Values + +| Name | Value | +| --------------- | --------------- | +| `USER_PROVIDED` | User Provided | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSearchScope.md b/docs/models/shared/SourceSharepointEnterpriseSearchScope.md new file mode 100644 index 000000000..b647d7e57 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSearchScope.md @@ -0,0 +1,12 @@ +# SourceSharepointEnterpriseSearchScope + +Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `ACCESSIBLE_DRIVES` | ACCESSIBLE_DRIVES | +| `SHARED_ITEMS` | SHARED_ITEMS | +| `ALL` | ALL | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseServiceKeyAuthentication.md b/docs/models/shared/SourceSharepointEnterpriseServiceKeyAuthentication.md new file mode 100644 index 000000000..9e8026dc5 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseServiceKeyAuthentication.md @@ -0,0 +1,15 @@ +# SourceSharepointEnterpriseServiceKeyAuthentication + +ServiceCredentials class for service key authentication. +This class is structured similarly to OAuthCredentials but for a different authentication method. + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `authType` | [Optional\](../../models/shared/SourceSharepointEnterpriseSchemasAuthType.md) | :heavy_minus_sign: | N/A | +| `clientId` | *String* | :heavy_check_mark: | Client ID of your Microsoft developer application | +| `clientSecret` | *String* | :heavy_check_mark: | Client Secret of your Microsoft developer application | +| `tenantId` | *String* | :heavy_check_mark: | Tenant ID of the Microsoft SharePoint user | +| `userPrincipalName` | *String* | :heavy_check_mark: | Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseSharepointEnterprise.md b/docs/models/shared/SourceSharepointEnterpriseSharepointEnterprise.md new file mode 100644 index 000000000..0519e17ee --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseSharepointEnterprise.md @@ -0,0 +1,8 @@ +# SourceSharepointEnterpriseSharepointEnterprise + + +## Values + +| Name | Value | +| ----------------------- | ----------------------- | +| `SHAREPOINT_ENTERPRISE` | sharepoint-enterprise | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseUnstructuredDocumentFormat.md b/docs/models/shared/SourceSharepointEnterpriseUnstructuredDocumentFormat.md new file mode 100644 index 000000000..feb578126 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseUnstructuredDocumentFormat.md @@ -0,0 +1,13 @@ +# SourceSharepointEnterpriseUnstructuredDocumentFormat + +Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `filetype` | [Optional\](../../models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype.md) | :heavy_minus_sign: | N/A | +| `processing` | [Optional\](../../models/shared/SourceSharepointEnterpriseProcessing.md) | :heavy_minus_sign: | Processing configuration | +| `skipUnprocessableFiles` | *Optional\* | :heavy_minus_sign: | If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. | +| `strategy` | [Optional\](../../models/shared/SourceSharepointEnterpriseParsingStrategy.md) | :heavy_minus_sign: | The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseUserProvided.md b/docs/models/shared/SourceSharepointEnterpriseUserProvided.md new file mode 100644 index 000000000..d978acff2 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseUserProvided.md @@ -0,0 +1,9 @@ +# SourceSharepointEnterpriseUserProvided + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `columnNames` | List\<*String*> | :heavy_check_mark: | The column names that will be used while emitting the CSV records | +| `headerDefinitionType` | [Optional\](../../models/shared/SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSharepointEnterpriseValidationPolicy.md b/docs/models/shared/SourceSharepointEnterpriseValidationPolicy.md new file mode 100644 index 000000000..70917d241 --- /dev/null +++ b/docs/models/shared/SourceSharepointEnterpriseValidationPolicy.md @@ -0,0 +1,12 @@ +# SourceSharepointEnterpriseValidationPolicy + +The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `EMIT_RECORD` | Emit Record | +| `SKIP_RECORD` | Skip Record | +| `WAIT_FOR_DISCOVER` | Wait for Discover | \ No newline at end of file diff --git a/docs/models/shared/SourceSlack.md b/docs/models/shared/SourceSlack.md index 156550a33..3a3d6da08 100644 --- a/docs/models/shared/SourceSlack.md +++ b/docs/models/shared/SourceSlack.md @@ -3,12 +3,14 @@ ## Fields -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `channelFilter` | List\<*String*> | :heavy_minus_sign: | A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter. | channel_one | -| `credentials` | [Optional\](../../models/shared/SourceSlackAuthenticationMechanism.md) | :heavy_minus_sign: | Choose how to authenticate into Slack | | -| `includePrivateChannels` | *Optional\* | :heavy_minus_sign: | Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. | | -| `joinChannels` | *Optional\* | :heavy_minus_sign: | Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. | | -| `lookbackWindow` | *Optional\* | :heavy_minus_sign: | How far into the past to look for messages in threads, default is 0 days | 7 | -| `sourceType` | [SourceSlackSlack](../../models/shared/SourceSlackSlack.md) | :heavy_check_mark: | N/A | | -| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. | 2017-01-25T00:00:00Z | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `channelFilter` | List\<*String*> | :heavy_minus_sign: | A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter. | channel_one | +| `channelMessagesWindowSize` | *Optional\* | :heavy_minus_sign: | The size (in days) of the date window that will be used while syncing data from the channel messages stream. A smaller window will allow for greater parallelization when syncing records, but can lead to rate limiting errors. | 30 | +| `credentials` | [Optional\](../../models/shared/SourceSlackAuthenticationMechanism.md) | :heavy_minus_sign: | Choose how to authenticate into Slack | | +| `includePrivateChannels` | *Optional\* | :heavy_minus_sign: | Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. | | +| `joinChannels` | *Optional\* | :heavy_minus_sign: | Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. | | +| `lookbackWindow` | *Optional\* | :heavy_minus_sign: | How far into the past to look for messages in threads, default is 0 days | 7 | +| `numWorkers` | *Optional\* | :heavy_minus_sign: | The number of worker threads to use for the sync. | 2 | +| `sourceType` | [SourceSlackSlack](../../models/shared/SourceSlackSlack.md) | :heavy_check_mark: | N/A | | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. | 2017-01-25T00:00:00Z | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflake.md b/docs/models/shared/SourceSnowflake.md index c90ecb6d8..e8d601ca3 100644 --- a/docs/models/shared/SourceSnowflake.md +++ b/docs/models/shared/SourceSnowflake.md @@ -3,13 +3,17 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `credentials` | [Optional\](../../models/shared/SourceSnowflakeAuthorizationMethod.md) | :heavy_minus_sign: | N/A | | -| `database` | *String* | :heavy_check_mark: | The database you created for Airbyte to access data. | AIRBYTE_DATABASE | -| `host` | *String* | :heavy_check_mark: | The host domain of the snowflake instance (must include the account, region, cloud environment, and end with snowflakecomputing.com). | accountname.us-east-2.aws.snowflakecomputing.com | -| `jdbcUrlParams` | *Optional\* | :heavy_minus_sign: | Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). | | -| `role` | *String* | :heavy_check_mark: | The role you created for Airbyte to access Snowflake. | AIRBYTE_ROLE | -| `schema` | *Optional\* | :heavy_minus_sign: | The source Snowflake schema tables. Leave empty to access tables from multiple schemas. | AIRBYTE_SCHEMA | -| `sourceType` | [SourceSnowflakeSnowflake](../../models/shared/SourceSnowflakeSnowflake.md) | :heavy_check_mark: | N/A | | -| `warehouse` | *String* | :heavy_check_mark: | The warehouse you created for Airbyte to access data. | AIRBYTE_WAREHOUSE | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `checkPrivileges` | *Optional\* | :heavy_minus_sign: | When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. | +| `checkpointTargetIntervalSeconds` | *Optional\* | :heavy_minus_sign: | How often (in seconds) a stream should checkpoint, when possible. | +| `concurrency` | *Optional\* | :heavy_minus_sign: | Maximum number of concurrent queries to the database. | +| `credentials` | [Optional\](../../models/shared/SourceSnowflakeAuthorizationMethod.md) | :heavy_minus_sign: | N/A | +| `cursor` | [Optional\](../../models/shared/SourceSnowflakeUpdateMethod.md) | :heavy_minus_sign: | Configures how data is extracted from the database. | +| `database` | *String* | :heavy_check_mark: | The database you created for Airbyte to access data. | +| `host` | *String* | :heavy_check_mark: | The host domain of the snowflake instance (must include the account, region, cloud environment, and end with snowflakecomputing.com). | +| `jdbcUrlParams` | *Optional\* | :heavy_minus_sign: | Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). | +| `role` | *String* | :heavy_check_mark: | The role you created for Airbyte to access Snowflake. | +| `schema` | *Optional\* | :heavy_minus_sign: | The source Snowflake schema tables. Leave empty to access tables from multiple schemas. | +| `sourceType` | [SourceSnowflakeSnowflake](../../models/shared/SourceSnowflakeSnowflake.md) | :heavy_check_mark: | N/A | +| `warehouse` | *String* | :heavy_check_mark: | The warehouse you created for Airbyte to access data. | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeAuthType.md b/docs/models/shared/SourceSnowflakeAuthType.md index 0371d1af1..780b6e9c8 100644 --- a/docs/models/shared/SourceSnowflakeAuthType.md +++ b/docs/models/shared/SourceSnowflakeAuthType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| -------- | -------- | -| `O_AUTH` | OAuth | \ No newline at end of file +| Name | Value | +| ------------------------- | ------------------------- | +| `KEY_PAIR_AUTHENTICATION` | Key Pair Authentication | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeCursorMethod.md b/docs/models/shared/SourceSnowflakeCursorMethod.md new file mode 100644 index 000000000..4b47021a4 --- /dev/null +++ b/docs/models/shared/SourceSnowflakeCursorMethod.md @@ -0,0 +1,8 @@ +# SourceSnowflakeCursorMethod + + +## Values + +| Name | Value | +| -------------- | -------------- | +| `USER_DEFINED` | user_defined | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeKeyPairAuthentication.md b/docs/models/shared/SourceSnowflakeKeyPairAuthentication.md index 8e9fe9816..05eb73baa 100644 --- a/docs/models/shared/SourceSnowflakeKeyPairAuthentication.md +++ b/docs/models/shared/SourceSnowflakeKeyPairAuthentication.md @@ -3,9 +3,10 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `authType` | [Optional\](../../models/shared/SourceSnowflakeSchemasAuthType.md) | :heavy_minus_sign: | N/A | | -| `privateKey` | *String* | :heavy_check_mark: | RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key. | | -| `privateKeyPassword` | *Optional\* | :heavy_minus_sign: | Passphrase for private key | | -| `username` | *String* | :heavy_check_mark: | The username you created to allow Airbyte to access the database. | AIRBYTE_USER | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `authType` | [Optional\](../../models/shared/SourceSnowflakeAuthType.md) | :heavy_minus_sign: | N/A | +| `privateKey` | *String* | :heavy_check_mark: | RSA Private key to use for Snowflake connection. See the docs for more information on how to obtain this key. | +| `privateKeyPassword` | *Optional\* | :heavy_minus_sign: | Passphrase for private key | +| `username` | *String* | :heavy_check_mark: | The username you created to allow Airbyte to access the database. | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeOAuth20.md b/docs/models/shared/SourceSnowflakeOAuth20.md deleted file mode 100644 index 239105cc6..000000000 --- a/docs/models/shared/SourceSnowflakeOAuth20.md +++ /dev/null @@ -1,12 +0,0 @@ -# SourceSnowflakeOAuth20 - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `accessToken` | *Optional\* | :heavy_minus_sign: | Access Token for making authenticated requests. | -| `authType` | [SourceSnowflakeAuthType](../../models/shared/SourceSnowflakeAuthType.md) | :heavy_check_mark: | N/A | -| `clientId` | *String* | :heavy_check_mark: | The Client ID of your Snowflake developer application. | -| `clientSecret` | *String* | :heavy_check_mark: | The Client Secret of your Snowflake developer application. | -| `refreshToken` | *Optional\* | :heavy_minus_sign: | Refresh Token for making authenticated requests. | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeScanChangesWithUserDefinedCursor.md b/docs/models/shared/SourceSnowflakeScanChangesWithUserDefinedCursor.md new file mode 100644 index 000000000..a08d5898b --- /dev/null +++ b/docs/models/shared/SourceSnowflakeScanChangesWithUserDefinedCursor.md @@ -0,0 +1,11 @@ +# SourceSnowflakeScanChangesWithUserDefinedCursor + +Incrementally detects new inserts and updates using the cursor column chosen when configuring a connection (e.g. created_at, updated_at). + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `cursorMethod` | [Optional\](../../models/shared/SourceSnowflakeCursorMethod.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeSchemasAuthType.md b/docs/models/shared/SourceSnowflakeSchemasAuthType.md index 65f28e756..518e93bd3 100644 --- a/docs/models/shared/SourceSnowflakeSchemasAuthType.md +++ b/docs/models/shared/SourceSnowflakeSchemasAuthType.md @@ -3,6 +3,6 @@ ## Values -| Name | Value | -| ------------------------- | ------------------------- | -| `KEY_PAIR_AUTHENTICATION` | Key Pair Authentication | \ No newline at end of file +| Name | Value | +| ------------------- | ------------------- | +| `USERNAME_PASSWORD` | username/password | \ No newline at end of file diff --git a/docs/models/shared/SourceSnowflakeUpdateMethod.md b/docs/models/shared/SourceSnowflakeUpdateMethod.md new file mode 100644 index 000000000..9d03768dd --- /dev/null +++ b/docs/models/shared/SourceSnowflakeUpdateMethod.md @@ -0,0 +1,4 @@ +# SourceSnowflakeUpdateMethod + +Configures how data is extracted from the database. + diff --git a/docs/models/shared/SourceSnowflakeUsernameAndPassword.md b/docs/models/shared/SourceSnowflakeUsernameAndPassword.md index f46af5c65..8033226dc 100644 --- a/docs/models/shared/SourceSnowflakeUsernameAndPassword.md +++ b/docs/models/shared/SourceSnowflakeUsernameAndPassword.md @@ -3,8 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | -| `authType` | [SourceSnowflakeSchemasCredentialsAuthType](../../models/shared/SourceSnowflakeSchemasCredentialsAuthType.md) | :heavy_check_mark: | N/A | | -| `password` | *String* | :heavy_check_mark: | The password associated with the username. | | -| `username` | *String* | :heavy_check_mark: | The username you created to allow Airbyte to access the database. | AIRBYTE_USER | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | +| `authType` | [Optional\](../../models/shared/SourceSnowflakeSchemasAuthType.md) | :heavy_minus_sign: | N/A | +| `password` | *String* | :heavy_check_mark: | The password associated with the username. | +| `username` | *String* | :heavy_check_mark: | The username you created to allow Airbyte to access the database. | \ No newline at end of file diff --git a/docs/models/shared/SourceSpotifyAds.md b/docs/models/shared/SourceSpotifyAds.md new file mode 100644 index 000000000..79b88250f --- /dev/null +++ b/docs/models/shared/SourceSpotifyAds.md @@ -0,0 +1,14 @@ +# SourceSpotifyAds + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `adAccountId` | *String* | :heavy_check_mark: | The ID of the Spotify Ad Account you want to sync data from. | 03561a07-cb0a-4354-b751-88512a6f4d79 | +| `clientId` | *String* | :heavy_check_mark: | The Client ID of your Spotify Developer application. | | +| `clientSecret` | *String* | :heavy_check_mark: | The Client Secret of your Spotify Developer application. | | +| `fields` | List\<[Fields](../../models/shared/Fields.md)> | :heavy_check_mark: | List of fields to include in the campaign performance report. Choose from available metrics. | [
"IMPRESSIONS",
"CLICKS",
"SPEND",
"CTR"
] | +| `refreshToken` | *String* | :heavy_check_mark: | The Refresh Token obtained from the initial OAuth 2.0 authorization flow. | | +| `sourceType` | [SpotifyAds](../../models/shared/SpotifyAds.md) | :heavy_check_mark: | N/A | | +| `startDate` | *String* | :heavy_check_mark: | The date to start syncing data from, in YYYY-MM-DD format. | 2024-01-01 | \ No newline at end of file diff --git a/docs/models/shared/SourceThriveLearning.md b/docs/models/shared/SourceThriveLearning.md new file mode 100644 index 000000000..7418e526d --- /dev/null +++ b/docs/models/shared/SourceThriveLearning.md @@ -0,0 +1,11 @@ +# SourceThriveLearning + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `password` | *Optional\* | :heavy_minus_sign: | N/A | +| `sourceType` | [ThriveLearning](../../models/shared/ThriveLearning.md) | :heavy_check_mark: | N/A | +| `startDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `username` | *String* | :heavy_check_mark: | Your website Tenant ID (eu-west-000000 please contact support for your tenant) | \ No newline at end of file diff --git a/docs/models/shared/SourceUptick.md b/docs/models/shared/SourceUptick.md new file mode 100644 index 000000000..5b06dc9e7 --- /dev/null +++ b/docs/models/shared/SourceUptick.md @@ -0,0 +1,16 @@ +# SourceUptick + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `baseUrl` | *String* | :heavy_check_mark: | Ex: https://demo-fire.onuptick.com/ | +| `clientId` | *String* | :heavy_check_mark: | N/A | +| `clientRefreshToken` | *String* | :heavy_check_mark: | N/A | +| `clientSecret` | *String* | :heavy_check_mark: | N/A | +| `endDate` | *Optional\* | :heavy_minus_sign: | Fetch data up until this date | +| `oauthAccessToken` | *Optional\* | :heavy_minus_sign: | The current access token. This field might be overridden by the connector based on the token refresh endpoint response. | +| `oauthTokenExpiryDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. | +| `sourceType` | [Uptick](../../models/shared/Uptick.md) | :heavy_check_mark: | N/A | +| `startDate` | *Optional\* | :heavy_minus_sign: | Fetch data starting from this date (by default 2025-01-01) | \ No newline at end of file diff --git a/docs/models/shared/SourceVitally.md b/docs/models/shared/SourceVitally.md index 85edf4ef3..c11d6b08f 100644 --- a/docs/models/shared/SourceVitally.md +++ b/docs/models/shared/SourceVitally.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `basicAuthHeader` | *Optional\* | :heavy_minus_sign: | Basic Auth Header | -| `domain` | *String* | :heavy_check_mark: | Provide only the domain part, like https://{your-domain}.rest.vitally.io/. Keep empty if you don't have a subdomain. | -| `secretToken` | *String* | :heavy_check_mark: | sk_live_secret_token | -| `sourceType` | [Vitally](../../models/shared/Vitally.md) | :heavy_check_mark: | N/A | -| `status` | [SourceVitallyStatus](../../models/shared/SourceVitallyStatus.md) | :heavy_check_mark: | Status of the Vitally accounts. One of the following values; active, churned, activeOrChurned. | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| `basicAuthHeader` | *Optional\* | :heavy_minus_sign: | Basic Auth Header | +| `domain` | *String* | :heavy_check_mark: | Provide only the subdomain part, like https://{your-custom-subdomain}.rest.vitally.io/. Keep empty if you don't have a subdomain. | +| `secretToken` | *String* | :heavy_check_mark: | sk_live_secret_token | +| `sourceType` | [Vitally](../../models/shared/Vitally.md) | :heavy_check_mark: | N/A | +| `status` | [SourceVitallyStatus](../../models/shared/SourceVitallyStatus.md) | :heavy_check_mark: | Status of the Vitally accounts. One of the following values; active, churned, activeOrChurned. | \ No newline at end of file diff --git a/docs/models/shared/SpotifyAds.md b/docs/models/shared/SpotifyAds.md new file mode 100644 index 000000000..d65307666 --- /dev/null +++ b/docs/models/shared/SpotifyAds.md @@ -0,0 +1,8 @@ +# SpotifyAds + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `SPOTIFY_ADS` | spotify-ads | \ No newline at end of file diff --git a/docs/models/shared/StorageType.md b/docs/models/shared/StorageType.md new file mode 100644 index 000000000..434ce0df9 --- /dev/null +++ b/docs/models/shared/StorageType.md @@ -0,0 +1,8 @@ +# StorageType + + +## Values + +| Name | Value | +| ------ | ------ | +| `NONE` | None | \ No newline at end of file diff --git a/docs/models/shared/StreamConfiguration.md b/docs/models/shared/StreamConfiguration.md index 15d904313..f5092b697 100644 --- a/docs/models/shared/StreamConfiguration.md +++ b/docs/models/shared/StreamConfiguration.md @@ -8,8 +8,11 @@ Configurations for a single stream. | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `cursorField` | List\<*String*> | :heavy_minus_sign: | Path to the field that will be used to determine if a record is new or modified since the last sync. This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. | +| `destinationObjectName` | *Optional\* | :heavy_minus_sign: | The name of the destination object that this stream will be written to, used for data activation destinations. | +| `includeFiles` | *Optional\* | :heavy_minus_sign: | Whether to move raw files from the source to the destination during the sync. | | `mappers` | List\<[ConfiguredStreamMapper](../../models/shared/ConfiguredStreamMapper.md)> | :heavy_minus_sign: | Mappers that should be applied to the stream before writing to the destination. | | `name` | *String* | :heavy_check_mark: | N/A | +| `namespace` | *Optional\* | :heavy_minus_sign: | Namespace of the stream. | | `primaryKey` | List\> | :heavy_minus_sign: | Paths to the fields that will be used as primary key. This field is REQUIRED if `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. | | `selectedFields` | List\<[SelectedFieldInfo](../../models/shared/SelectedFieldInfo.md)> | :heavy_minus_sign: | Paths to the fields that will be included in the configured catalog. | | `syncMode` | [Optional\](../../models/shared/ConnectionSyncModeEnum.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/StreamMapping.md b/docs/models/shared/StreamMapping.md deleted file mode 100644 index 05a0dc6cf..000000000 --- a/docs/models/shared/StreamMapping.md +++ /dev/null @@ -1,13 +0,0 @@ -# StreamMapping - -Describes the relationship between a source stream and a destination table and how to update the information. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `destinationTable` | *String* | :heavy_check_mark: | The name for the table to update the data in the destination. | -| `sourceStream` | *String* | :heavy_check_mark: | The name for the input stream. | -| `updateMode` | [UpdateMode](../../models/shared/UpdateMode.md) | :heavy_check_mark: | How to update the data in the destination. | -| `upsertKey` | *Optional\* | :heavy_minus_sign: | Given the operation is an upsert, a field representing an external ID needs to be provided | \ No newline at end of file diff --git a/docs/models/shared/StreamNameOverrides.md b/docs/models/shared/StreamNameOverrides.md new file mode 100644 index 000000000..a0b248f29 --- /dev/null +++ b/docs/models/shared/StreamNameOverrides.md @@ -0,0 +1,9 @@ +# StreamNameOverrides + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `customStreamName` | *String* | :heavy_check_mark: | The name you want this stream to appear as in Airbyte and your destination. | +| `sourceStreamName` | *String* | :heavy_check_mark: | The exact name of the sheet/tab in your Google Spreadsheet. | \ No newline at end of file diff --git a/docs/models/shared/StreamProperties.md b/docs/models/shared/StreamProperties.md index dd9a079c0..5a53f4372 100644 --- a/docs/models/shared/StreamProperties.md +++ b/docs/models/shared/StreamProperties.md @@ -12,4 +12,5 @@ The stream properties associated with a connection. | `sourceDefinedCursorField` | *Optional\* | :heavy_minus_sign: | N/A | | `sourceDefinedPrimaryKey` | List\> | :heavy_minus_sign: | N/A | | `streamName` | *Optional\* | :heavy_minus_sign: | N/A | +| `streamnamespace` | *Optional\* | :heavy_minus_sign: | N/A | | `syncModes` | List\<[ConnectionSyncModeEnum](../../models/shared/ConnectionSyncModeEnum.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Surrealdb.md b/docs/models/shared/Surrealdb.md new file mode 100644 index 000000000..2f35751cc --- /dev/null +++ b/docs/models/shared/Surrealdb.md @@ -0,0 +1,8 @@ +# Surrealdb + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `SURREALDB` | surrealdb | \ No newline at end of file diff --git a/docs/models/shared/ThriveLearning.md b/docs/models/shared/ThriveLearning.md new file mode 100644 index 000000000..7b0743147 --- /dev/null +++ b/docs/models/shared/ThriveLearning.md @@ -0,0 +1,8 @@ +# ThriveLearning + + +## Values + +| Name | Value | +| ----------------- | ----------------- | +| `THRIVE_LEARNING` | thrive-learning | \ No newline at end of file diff --git a/docs/models/shared/TransformationQueryRunType.md b/docs/models/shared/TransformationQueryRunType.md deleted file mode 100644 index b6c7d2281..000000000 --- a/docs/models/shared/TransformationQueryRunType.md +++ /dev/null @@ -1,11 +0,0 @@ -# TransformationQueryRunType - -Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type here. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries here. The default "interactive" value is used if not set explicitly. - - -## Values - -| Name | Value | -| ------------- | ------------- | -| `INTERACTIVE` | interactive | -| `BATCH` | batch | \ No newline at end of file diff --git a/docs/models/shared/TunnelMethod.md b/docs/models/shared/TunnelMethod.md index 57efeb60e..655192384 100644 --- a/docs/models/shared/TunnelMethod.md +++ b/docs/models/shared/TunnelMethod.md @@ -1,7 +1,5 @@ # TunnelMethod -No ssh tunnel needed to connect to database - ## Values diff --git a/docs/models/shared/Type.md b/docs/models/shared/Type.md new file mode 100644 index 000000000..8623fb102 --- /dev/null +++ b/docs/models/shared/Type.md @@ -0,0 +1,8 @@ +# Type + + +## Values + +| Name | Value | +| -------- | -------- | +| `O_AUTH` | OAuth | \ No newline at end of file diff --git a/docs/models/shared/UpdateDeclarativeSourceDefinitionRequest.md b/docs/models/shared/UpdateDeclarativeSourceDefinitionRequest.md index 20daa8427..1cf2572e3 100644 --- a/docs/models/shared/UpdateDeclarativeSourceDefinitionRequest.md +++ b/docs/models/shared/UpdateDeclarativeSourceDefinitionRequest.md @@ -5,5 +5,4 @@ | Field | Type | Required | Description | | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | -| `manifest` | *Object* | :heavy_check_mark: | Low code CDK manifest JSON object | -| `version` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `manifest` | *Object* | :heavy_check_mark: | Low code CDK manifest JSON object | \ No newline at end of file diff --git a/docs/models/shared/UpdateMode.md b/docs/models/shared/UpdateMode.md deleted file mode 100644 index 3cd778a88..000000000 --- a/docs/models/shared/UpdateMode.md +++ /dev/null @@ -1,13 +0,0 @@ -# UpdateMode - -How to update the data in the destination. - - -## Values - -| Name | Value | -| -------- | -------- | -| `INSERT` | INSERT | -| `UPDATE` | UPDATE | -| `UPSERT` | UPSERT | -| `DELETE` | DELETE | \ No newline at end of file diff --git a/docs/models/shared/Uptick.md b/docs/models/shared/Uptick.md new file mode 100644 index 000000000..fb02fc145 --- /dev/null +++ b/docs/models/shared/Uptick.md @@ -0,0 +1,8 @@ +# Uptick + + +## Values + +| Name | Value | +| -------- | -------- | +| `UPTICK` | uptick | \ No newline at end of file diff --git a/docs/models/shared/WorkspaceOAuthCredentialsRequest.md b/docs/models/shared/WorkspaceOAuthCredentialsRequest.md index 7d9c232db..dde8615f5 100644 --- a/docs/models/shared/WorkspaceOAuthCredentialsRequest.md +++ b/docs/models/shared/WorkspaceOAuthCredentialsRequest.md @@ -5,8 +5,8 @@ POST body for creating/updating workspace level OAuth credentials ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `actorType` | [ActorTypeEnum](../../models/shared/ActorTypeEnum.md) | :heavy_check_mark: | Whether you're setting this override for a source or destination | | -| `configuration` | [OAuthCredentialsConfiguration](../../models/shared/OAuthCredentialsConfiguration.md) | :heavy_check_mark: | The values required to configure the source. | {
"user": "charles"
} | -| `name` | [OAuthActorNames](../../models/shared/OAuthActorNames.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `actorType` | [ActorTypeEnum](../../models/shared/ActorTypeEnum.md) | :heavy_check_mark: | Whether you're setting this override for a source or destination | +| `configuration` | *Object* | :heavy_check_mark: | The values required to configure the source. | +| `name` | [OAuthActorNames](../../models/shared/OAuthActorNames.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/airbyte/README.md b/docs/sdks/airbyte/README.md deleted file mode 100644 index ce6e75746..000000000 --- a/docs/sdks/airbyte/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Airbyte SDK - -## Overview - -airbyte-api: Programmatically control Airbyte Cloud, OSS & Enterprise. - -### Available Operations diff --git a/docs/sdks/connections/README.md b/docs/sdks/connections/README.md index a83d471a0..6b3f4a616 100644 --- a/docs/sdks/connections/README.md +++ b/docs/sdks/connections/README.md @@ -17,6 +17,7 @@ Create a connection ### Example Usage + ```java package hello.world; @@ -42,6 +43,7 @@ public class Application { .destinationId("e478de0d-a3a0-475c-b019-25f7dd29e281") .sourceId("95e66a59-8045-4307-9678-63bc3c9b8c93") .name("Postgres-to-Bigquery") + .namespaceFormat("${SOURCE_NAMESPACE}") .build(); CreateConnectionResponse res = sdk.connections().createConnection() @@ -77,6 +79,7 @@ Delete a Connection ### Example Usage + ```java package hello.world; @@ -135,6 +138,7 @@ Get Connection details ### Example Usage + ```java package hello.world; @@ -195,6 +199,7 @@ List connections ### Example Usage + ```java package hello.world; @@ -254,6 +259,7 @@ Update Connection details ### Example Usage + ```java package hello.world; @@ -279,6 +285,7 @@ public class Application { PatchConnectionRequest req = PatchConnectionRequest.builder() .connectionPatchRequest(ConnectionPatchRequest.builder() .name("Postgres-to-Bigquery") + .namespaceFormat("${SOURCE_NAMESPACE}") .build()) .connectionId("") .build(); diff --git a/docs/sdks/declarativesourcedefinitions/README.md b/docs/sdks/declarativesourcedefinitions/README.md index f2a49ae45..f1477031f 100644 --- a/docs/sdks/declarativesourcedefinitions/README.md +++ b/docs/sdks/declarativesourcedefinitions/README.md @@ -17,14 +17,13 @@ Create a declarative source definition. ### Example Usage + ```java package hello.world; import com.airbyte.api.Airbyte; -import com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionRequest; import com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionResponse; -import com.airbyte.api.models.shared.SchemeBasicAuth; -import com.airbyte.api.models.shared.Security; +import com.airbyte.api.models.shared.*; import java.lang.Exception; public class Application { @@ -40,12 +39,12 @@ public class Application { .build()) .build(); - CreateDeclarativeSourceDefinitionRequest req = CreateDeclarativeSourceDefinitionRequest.builder() - .createDeclarativeSourceDefinitionRequest(com.airbyte.api.models.shared.CreateDeclarativeSourceDefinitionRequest.builder() + com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionRequest req = com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionRequest.builder() + .createDeclarativeSourceDefinitionRequest(CreateDeclarativeSourceDefinitionRequest.builder() .manifest("") .name("") .build()) - .workspaceId("2d054f48-a68c-4d16-b04d-bb444d47c285") + .workspaceId("9f09326e-38fd-40ea-8871-6aaf7655a237") .build(); CreateDeclarativeSourceDefinitionResponse res = sdk.declarativeSourceDefinitions().createDeclarativeSourceDefinition() @@ -81,6 +80,7 @@ Delete a declarative source definition. ### Example Usage + ```java package hello.world; @@ -105,8 +105,8 @@ public class Application { .build(); DeleteDeclarativeSourceDefinitionRequest req = DeleteDeclarativeSourceDefinitionRequest.builder() - .definitionId("26cd06ea-5caa-47b9-98a2-1d217049557d") - .workspaceId("f7cdc65f-5255-43d5-a6be-8fee673091f3") + .definitionId("0cf3a1f6-1af6-4ae7-ae77-4bd1b32041f4") + .workspaceId("5bed2604-75d1-40cf-a858-64e430840198") .build(); DeleteDeclarativeSourceDefinitionResponse res = sdk.declarativeSourceDefinitions().deleteDeclarativeSourceDefinition() @@ -142,6 +142,7 @@ Get declarative source definition details. ### Example Usage + ```java package hello.world; @@ -166,8 +167,8 @@ public class Application { .build(); GetDeclarativeSourceDefinitionRequest req = GetDeclarativeSourceDefinitionRequest.builder() - .definitionId("a003b7d3-efd4-4d7e-8ea6-469e9fe7871f") - .workspaceId("3855d0f6-8cfb-44c2-ac49-0c3965c034bd") + .definitionId("ce3288f2-b43c-40d0-ae8e-864c7a844485") + .workspaceId("2a50feae-cf51-42e9-b777-b8d52ea2704e") .build(); GetDeclarativeSourceDefinitionResponse res = sdk.declarativeSourceDefinitions().getDeclarativeSourceDefinition() @@ -203,6 +204,7 @@ List declarative source definitions. ### Example Usage + ```java package hello.world; @@ -227,7 +229,7 @@ public class Application { .build(); ListDeclarativeSourceDefinitionsRequest req = ListDeclarativeSourceDefinitionsRequest.builder() - .workspaceId("23bc0a4f-72b3-4d91-abe3-3f32d8a49dfc") + .workspaceId("76222ecd-532e-4ab1-94e3-b96d1abd686e") .build(); ListDeclarativeSourceDefinitionsResponse res = sdk.declarativeSourceDefinitions().listDeclarativeSourceDefinitions() @@ -263,14 +265,13 @@ Update declarative source definition details. ### Example Usage + ```java package hello.world; import com.airbyte.api.Airbyte; -import com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionRequest; import com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionResponse; -import com.airbyte.api.models.shared.SchemeBasicAuth; -import com.airbyte.api.models.shared.Security; +import com.airbyte.api.models.shared.*; import java.lang.Exception; public class Application { @@ -286,12 +287,12 @@ public class Application { .build()) .build(); - UpdateDeclarativeSourceDefinitionRequest req = UpdateDeclarativeSourceDefinitionRequest.builder() - .updateDeclarativeSourceDefinitionRequest(com.airbyte.api.models.shared.UpdateDeclarativeSourceDefinitionRequest.builder() + com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionRequest req = com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionRequest.builder() + .updateDeclarativeSourceDefinitionRequest(UpdateDeclarativeSourceDefinitionRequest.builder() .manifest("") .build()) - .definitionId("66066427-c293-4cbf-b72e-b31a72a46545") - .workspaceId("87f1ccdb-71b2-401c-8f60-cac1f2a2da80") + .definitionId("c97eb9ab-47b5-4609-8d65-0a62f74ca843") + .workspaceId("38cb8d27-592a-4438-be38-823abf06a84e") .build(); UpdateDeclarativeSourceDefinitionResponse res = sdk.declarativeSourceDefinitions().updateDeclarativeSourceDefinition() diff --git a/docs/sdks/destinationdefinitions/README.md b/docs/sdks/destinationdefinitions/README.md index 8165ac5bb..19e9813d0 100644 --- a/docs/sdks/destinationdefinitions/README.md +++ b/docs/sdks/destinationdefinitions/README.md @@ -17,6 +17,7 @@ Create a destination definition. ### Example Usage + ```java package hello.world; @@ -45,7 +46,7 @@ public class Application { .dockerRepository("") .name("") .build()) - .workspaceId("f49928fc-e1f7-4278-9366-b5b974ad2068") + .workspaceId("20a22858-a8c3-4a9c-af3e-691931b55938") .build(); CreateDestinationDefinitionResponse res = sdk.destinationDefinitions().createDestinationDefinition() @@ -81,6 +82,7 @@ Delete a destination definition. ### Example Usage + ```java package hello.world; @@ -105,8 +107,8 @@ public class Application { .build(); DeleteDestinationDefinitionRequest req = DeleteDestinationDefinitionRequest.builder() - .definitionId("7a6d93e0-5a99-4e33-87ce-c0e739faf1e9") - .workspaceId("619cc567-a21d-4f39-90ab-7854d54c9c42") + .definitionId("1f3ace88-4e9e-4438-8667-c98520825c79") + .workspaceId("b1b184d8-4def-4e2d-8e9d-7caadc80e180") .build(); DeleteDestinationDefinitionResponse res = sdk.destinationDefinitions().deleteDestinationDefinition() @@ -142,6 +144,7 @@ Get destination definition details. ### Example Usage + ```java package hello.world; @@ -166,8 +169,8 @@ public class Application { .build(); GetDestinationDefinitionRequest req = GetDestinationDefinitionRequest.builder() - .definitionId("5ddd49a6-7aa1-469d-bd19-fa66e3586402") - .workspaceId("5a9c29a5-f169-496b-b3b1-ab05028ede0b") + .definitionId("83a7ce8a-1507-42c5-84a3-1b95932f919f") + .workspaceId("443f2bd2-d502-4aec-b86f-c4e3d5675ae9") .build(); GetDestinationDefinitionResponse res = sdk.destinationDefinitions().getDestinationDefinition() @@ -203,6 +206,7 @@ List destination definitions. ### Example Usage + ```java package hello.world; @@ -227,7 +231,7 @@ public class Application { .build(); ListDestinationDefinitionsRequest req = ListDestinationDefinitionsRequest.builder() - .workspaceId("f1f18267-b72b-4ea5-a29c-8742c80ceaf4") + .workspaceId("aed43ac9-470c-4cba-8489-c73f9e881f94") .build(); ListDestinationDefinitionsResponse res = sdk.destinationDefinitions().listDestinationDefinitions() @@ -263,6 +267,7 @@ Update destination definition details. ### Example Usage + ```java package hello.world; @@ -290,8 +295,8 @@ public class Application { .dockerImageTag("") .name("") .build()) - .definitionId("97416649-dabf-43f9-8715-c5c8279f7f23") - .workspaceId("98e0ed50-276f-49ae-ad18-43bc892bb109") + .definitionId("43c71f97-6486-49c7-9f26-4de603fa3bb2") + .workspaceId("29dd981b-57da-413b-b1f4-012b1a97afc4") .build(); UpdateDestinationDefinitionResponse res = sdk.destinationDefinitions().updateDestinationDefinition() diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index b2b52498f..e1afebc96 100644 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -18,6 +18,7 @@ Creates a destination given a name, workspace id, and a json blob containing the ### Example Usage + ```java package hello.world; @@ -40,10 +41,8 @@ public class Application { .build(); DestinationCreateRequest req = DestinationCreateRequest.builder() - .configuration(DestinationConfiguration.of(DestinationOracle.builder() - .host("instructive-mainstream.com") - .sid("") - .username("Robert.Legros98") + .configuration(DestinationConfiguration.of(DestinationElasticsearch.builder() + .endpoint("") .build())) .name("Postgres") .workspaceId("2155ae5a-de39-4808-af6a-16fe7b8b4ed2") @@ -82,6 +81,7 @@ Delete a Destination ### Example Usage + ```java package hello.world; @@ -140,6 +140,7 @@ Get Destination details ### Example Usage + ```java package hello.world; @@ -200,6 +201,7 @@ List destinations ### Example Usage + ```java package hello.world; @@ -259,6 +261,7 @@ Update a Destination ### Example Usage + ```java package hello.world; @@ -284,9 +287,8 @@ public class Application { PatchDestinationRequest req = PatchDestinationRequest.builder() .destinationId("") .destinationPatchRequest(DestinationPatchRequest.builder() - .configuration(DestinationConfiguration.of(DestinationDeepset.builder() - .apiKey("") - .workspace("") + .configuration(DestinationConfiguration.of(DestinationDuckdb.builder() + .destinationPath("/local/destination.duckdb") .build())) .name("My Destination") .build()) @@ -325,6 +327,7 @@ Update a Destination and fully overwrite it ### Example Usage + ```java package hello.world; @@ -350,10 +353,11 @@ public class Application { PutDestinationRequest req = PutDestinationRequest.builder() .destinationId("") .destinationPutRequest(DestinationPutRequest.builder() - .configuration(DestinationConfiguration.of(DestinationClickhouse.builder() - .database("") - .host("urban-receptor.org") - .username("Kaylie_Terry") + .configuration(DestinationConfiguration.of(DestinationSftpJson.builder() + .destinationPath("/json_data") + .host("slight-consistency.info") + .password("TRmq8ozhIC5jwDd") + .username("Easton_Wilderman") .build())) .name("My Destination") .build()) diff --git a/docs/sdks/health/README.md b/docs/sdks/health/README.md index 45fc320fa..a49a7a6a8 100644 --- a/docs/sdks/health/README.md +++ b/docs/sdks/health/README.md @@ -13,6 +13,7 @@ Health Check ### Example Usage + ```java package hello.world; diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index dcf27c70a..eb77995ab 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -16,6 +16,7 @@ Cancel a running Job ### Example Usage + ```java package hello.world; @@ -40,7 +41,7 @@ public class Application { .build(); CancelJobRequest req = CancelJobRequest.builder() - .jobId(801771L) + .jobId(621441L) .build(); CancelJobResponse res = sdk.jobs().cancelJob() @@ -76,6 +77,7 @@ Trigger a sync or reset job of a connection ### Example Usage + ```java package hello.world; @@ -135,6 +137,7 @@ Get Job status and details ### Example Usage + ```java package hello.world; @@ -159,7 +162,7 @@ public class Application { .build(); GetJobRequest req = GetJobRequest.builder() - .jobId(131101L) + .jobId(245534L) .build(); GetJobResponse res = sdk.jobs().getJob() @@ -195,6 +198,7 @@ List Jobs by sync type ### Example Usage + ```java package hello.world; diff --git a/docs/sdks/organizations/README.md b/docs/sdks/organizations/README.md index 6ceb2a499..293febfad 100644 --- a/docs/sdks/organizations/README.md +++ b/docs/sdks/organizations/README.md @@ -5,14 +5,82 @@ ### Available Operations +* [createOrUpdateOrganizationOAuthCredentials](#createorupdateorganizationoauthcredentials) - Create OAuth override credentials for an organization and source type. * [listOrganizationsForUser](#listorganizationsforuser) - List all organizations for a user +## createOrUpdateOrganizationOAuthCredentials + +Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for source/destination OAuth. +In order to determine what the credential configuration needs to be, please see the connector specification of the relevant source/destination. + +### Example Usage + + +```java +package hello.world; + +import com.airbyte.api.Airbyte; +import com.airbyte.api.models.operations.CreateOrUpdateOrganizationOAuthCredentialsRequest; +import com.airbyte.api.models.operations.CreateOrUpdateOrganizationOAuthCredentialsResponse; +import com.airbyte.api.models.shared.*; +import java.lang.Exception; +import java.util.Map; + +public class Application { + + public static void main(String[] args) throws Exception { + + Airbyte sdk = Airbyte.builder() + .security(Security.builder() + .basicAuth(SchemeBasicAuth.builder() + .password("") + .username("") + .build()) + .build()) + .build(); + + CreateOrUpdateOrganizationOAuthCredentialsRequest req = CreateOrUpdateOrganizationOAuthCredentialsRequest.builder() + .organizationOAuthCredentialsRequest(OrganizationOAuthCredentialsRequest.builder() + .actorType(ActorTypeEnum.SOURCE) + .configuration(Map.ofEntries( + )) + .name("") + .build()) + .organizationId("") + .build(); + + CreateOrUpdateOrganizationOAuthCredentialsResponse res = sdk.organizations().createOrUpdateOrganizationOAuthCredentials() + .request(req) + .call(); + + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [CreateOrUpdateOrganizationOAuthCredentialsRequest](../../models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[CreateOrUpdateOrganizationOAuthCredentialsResponse](../../models/operations/CreateOrUpdateOrganizationOAuthCredentialsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + ## listOrganizationsForUser Lists users organizations. ### Example Usage + ```java package hello.world; diff --git a/docs/sdks/permissions/README.md b/docs/sdks/permissions/README.md index 8467f3ac8..f6bb99d85 100644 --- a/docs/sdks/permissions/README.md +++ b/docs/sdks/permissions/README.md @@ -17,6 +17,7 @@ Create a permission ### Example Usage + ```java package hello.world; @@ -77,6 +78,7 @@ Delete a Permission ### Example Usage + ```java package hello.world; @@ -135,6 +137,7 @@ Get Permission details ### Example Usage + ```java package hello.world; @@ -195,11 +198,11 @@ List Permissions by user id ### Example Usage + ```java package hello.world; import com.airbyte.api.Airbyte; -import com.airbyte.api.models.operations.ListPermissionsRequest; import com.airbyte.api.models.operations.ListPermissionsResponse; import com.airbyte.api.models.shared.SchemeBasicAuth; import com.airbyte.api.models.shared.Security; @@ -218,11 +221,7 @@ public class Application { .build()) .build(); - ListPermissionsRequest req = ListPermissionsRequest.builder() - .build(); - ListPermissionsResponse res = sdk.permissions().listPermissions() - .request(req) .call(); if (res.permissionsResponse().isPresent()) { @@ -254,6 +253,7 @@ Update a permission ### Example Usage + ```java package hello.world; @@ -278,7 +278,7 @@ public class Application { UpdatePermissionRequest req = UpdatePermissionRequest.builder() .permissionUpdateRequest(PermissionUpdateRequest.builder() - .permissionType(PermissionType.WORKSPACE_OWNER) + .permissionType(PermissionType.ORGANIZATION_READER) .build()) .permissionId("") .build(); diff --git a/docs/sdks/sourcedefinitions/README.md b/docs/sdks/sourcedefinitions/README.md index cdeb988c4..190c911df 100644 --- a/docs/sdks/sourcedefinitions/README.md +++ b/docs/sdks/sourcedefinitions/README.md @@ -17,6 +17,7 @@ Create a source definition. ### Example Usage + ```java package hello.world; @@ -45,7 +46,7 @@ public class Application { .dockerRepository("") .name("") .build()) - .workspaceId("06dbde72-63a8-4326-8f4b-67eb708f9ad6") + .workspaceId("8198a6e0-f056-42f7-8427-5ff6e06d6b3c") .build(); CreateSourceDefinitionResponse res = sdk.sourceDefinitions().createSourceDefinition() @@ -81,6 +82,7 @@ Delete a source definition. ### Example Usage + ```java package hello.world; @@ -105,8 +107,8 @@ public class Application { .build(); DeleteSourceDefinitionRequest req = DeleteSourceDefinitionRequest.builder() - .definitionId("fddaf9d9-7e09-433e-8e25-895734ad8809") - .workspaceId("9789f575-f200-4155-b7ec-0750094af77f") + .definitionId("21000375-129d-49b4-8099-23a142e25559") + .workspaceId("674a8870-5757-45f8-89f2-a765895d7bcc") .build(); DeleteSourceDefinitionResponse res = sdk.sourceDefinitions().deleteSourceDefinition() @@ -142,6 +144,7 @@ Get source definition details. ### Example Usage + ```java package hello.world; @@ -166,8 +169,8 @@ public class Application { .build(); GetSourceDefinitionRequest req = GetSourceDefinitionRequest.builder() - .definitionId("b6405f71-0930-4f13-a99b-6b1b0a882853") - .workspaceId("e76093e5-5cd8-4b87-ab32-c620a178a1c3") + .definitionId("ccda715b-b5a9-4c56-9c95-7285878c622f") + .workspaceId("ea535916-6a24-4a05-b039-7da73c74b7c5") .build(); GetSourceDefinitionResponse res = sdk.sourceDefinitions().getSourceDefinition() @@ -203,6 +206,7 @@ List source definitions. ### Example Usage + ```java package hello.world; @@ -227,7 +231,7 @@ public class Application { .build(); ListSourceDefinitionsRequest req = ListSourceDefinitionsRequest.builder() - .workspaceId("fb60a310-f38b-47cb-9633-01f0cf740c18") + .workspaceId("d85ea6af-c9b0-461e-8a87-d7d38bfb62a3") .build(); ListSourceDefinitionsResponse res = sdk.sourceDefinitions().listSourceDefinitions() @@ -263,6 +267,7 @@ Update source definition details. ### Example Usage + ```java package hello.world; @@ -290,8 +295,8 @@ public class Application { .dockerImageTag("") .name("") .build()) - .definitionId("6eaf6fbb-3e08-4f73-9ff1-de62553abd76") - .workspaceId("b6bd5c36-3814-4489-97fb-3e48c1e0fdea") + .definitionId("d83c1bd9-0e8c-47a0-ba61-d9fff4bea47c") + .workspaceId("d00d0938-69b2-48ac-878f-e92689d1c3b8") .build(); UpdateSourceDefinitionResponse res = sdk.sourceDefinitions().updateSourceDefinition() diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index fec47bfe8..b39196b44 100644 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -19,6 +19,7 @@ Creates a source given a name, workspace id, and a json blob containing the conf ### Example Usage + ```java package hello.world; @@ -41,9 +42,8 @@ public class Application { .build(); SourceCreateRequest req = SourceCreateRequest.builder() - .configuration(SourceConfiguration.of(SourcePocket.builder() - .accessToken("") - .consumerKey("") + .configuration(SourceConfiguration.of(SourceOnfleet.builder() + .apiKey("") .build())) .name("My Source") .workspaceId("744cc0ed-7f05-4949-9e60-2a814f90c035") @@ -82,6 +82,7 @@ Delete a Source ### Example Usage + ```java package hello.world; @@ -140,6 +141,7 @@ Get Source details ### Example Usage + ```java package hello.world; @@ -204,6 +206,7 @@ That secret ID can be used to create a source with credentials in place of actua ### Example Usage + ```java package hello.world; @@ -227,7 +230,7 @@ public class Application { InitiateOauthRequest req = InitiateOauthRequest.builder() .redirectUrl("https://cloud.airbyte.io/v1/api/oauth/callback") - .sourceType(OAuthActorNames.GCS) + .sourceType(OAuthActorNames.INSTAGRAM) .workspaceId("871d9b60-11d1-44cb-8c92-c246d53bf87e") .build(); @@ -262,6 +265,7 @@ List sources ### Example Usage + ```java package hello.world; @@ -288,7 +292,79 @@ public class Application { ListSourcesRequest req = ListSourcesRequest.builder() .workspaceIds(List.of( - "df08f6b0-b364-4cc1-9b3f-96f5d2fccfb2,b0796797-de23-4fc7-a5e2-7e131314718c")) + "d", + "f", + "0", + "8", + "f", + "6", + "b", + "0", + "-", + "b", + "3", + "6", + "4", + "-", + "4", + "c", + "c", + "1", + "-", + "9", + "b", + "3", + "f", + "-", + "9", + "6", + "f", + "5", + "d", + "2", + "f", + "c", + "c", + "f", + "b", + "2", + ",", + "b", + "0", + "7", + "9", + "6", + "7", + "9", + "7", + "-", + "d", + "e", + "2", + "3", + "-", + "4", + "f", + "c", + "7", + "-", + "a", + "5", + "e", + "2", + "-", + "7", + "e", + "1", + "3", + "1", + "3", + "1", + "4", + "7", + "1", + "8", + "c")) .build(); ListSourcesResponse res = sdk.sources().listSources() @@ -324,6 +400,7 @@ Update a Source ### Example Usage + ```java package hello.world; @@ -332,6 +409,7 @@ import com.airbyte.api.models.operations.PatchSourceRequest; import com.airbyte.api.models.operations.PatchSourceResponse; import com.airbyte.api.models.shared.*; import java.lang.Exception; +import java.time.OffsetDateTime; public class Application { @@ -349,8 +427,11 @@ public class Application { PatchSourceRequest req = PatchSourceRequest.builder() .sourceId("") .sourcePatchRequest(SourcePatchRequest.builder() - .configuration(SourceConfiguration.of(SourceEventee.builder() - .apiToken("") + .configuration(SourceConfiguration.of(SourceNylas.builder() + .apiKey("") + .apiServer(APIServer.US) + .endDate(OffsetDateTime.parse("2024-09-13T05:42:44.905Z")) + .startDate(OffsetDateTime.parse("2023-12-03T11:21:24.468Z")) .build())) .name("My Source") .workspaceId("744cc0ed-7f05-4949-9e60-2a814f90c035") @@ -390,6 +471,7 @@ Update a Source and fully overwrite it ### Example Usage + ```java package hello.world; @@ -415,7 +497,8 @@ public class Application { PutSourceRequest req = PutSourceRequest.builder() .sourceId("") .sourcePutRequest(SourcePutRequest.builder() - .configuration(SourceConfiguration.of(SourceAirtable.builder() + .configuration(SourceConfiguration.of(SourceRdStationMarketing.builder() + .startDate("2017-01-25T00:00:00Z") .build())) .name("My Source") .build()) diff --git a/docs/sdks/streams/README.md b/docs/sdks/streams/README.md index 1517d61ea..3b626ab8a 100644 --- a/docs/sdks/streams/README.md +++ b/docs/sdks/streams/README.md @@ -13,6 +13,7 @@ Get stream properties ### Example Usage + ```java package hello.world; diff --git a/docs/sdks/tags/README.md b/docs/sdks/tags/README.md index a85aa6cfd..f0a41302c 100644 --- a/docs/sdks/tags/README.md +++ b/docs/sdks/tags/README.md @@ -17,6 +17,7 @@ Create a tag ### Example Usage + ```java package hello.world; @@ -39,9 +40,9 @@ public class Application { .build(); TagCreateRequest req = TagCreateRequest.builder() - .color("blue") + .color("mint green") .name("") - .workspaceId("5f85d5ab-c889-4273-91d7-c22bac981db2") + .workspaceId("fb9b459f-ba25-4500-ab48-74bb184a25d8") .build(); CreateTagResponse res = sdk.tags().createTag() @@ -77,6 +78,7 @@ Delete a tag ### Example Usage + ```java package hello.world; @@ -101,7 +103,7 @@ public class Application { .build(); DeleteTagRequest req = DeleteTagRequest.builder() - .tagId("da1c4fd4-2786-4b27-8b72-2335c85a5af8") + .tagId("a7b6d3f2-0b68-410f-9d8b-570413d4925b") .build(); DeleteTagResponse res = sdk.tags().deleteTag() @@ -135,6 +137,7 @@ Get a tag ### Example Usage + ```java package hello.world; @@ -159,7 +162,7 @@ public class Application { .build(); GetTagRequest req = GetTagRequest.builder() - .tagId("808ab48f-5790-47fe-aa1e-3073281a0300") + .tagId("0e4206b6-0672-45f2-82cb-05850f1907ba") .build(); GetTagResponse res = sdk.tags().getTag() @@ -195,11 +198,11 @@ Lists all tags ### Example Usage + ```java package hello.world; import com.airbyte.api.Airbyte; -import com.airbyte.api.models.operations.ListTagsRequest; import com.airbyte.api.models.operations.ListTagsResponse; import com.airbyte.api.models.shared.SchemeBasicAuth; import com.airbyte.api.models.shared.Security; @@ -218,11 +221,7 @@ public class Application { .build()) .build(); - ListTagsRequest req = ListTagsRequest.builder() - .build(); - ListTagsResponse res = sdk.tags().listTags() - .request(req) .call(); if (res.tagsResponse().isPresent()) { @@ -254,6 +253,7 @@ Update a tag ### Example Usage + ```java package hello.world; @@ -278,10 +278,10 @@ public class Application { UpdateTagRequest req = UpdateTagRequest.builder() .tagPatchRequest(TagPatchRequest.builder() - .color("turquoise") + .color("red") .name("") .build()) - .tagId("3043493e-7596-4d2b-8ee9-859838c615f6") + .tagId("80469d11-8074-4b50-ac85-fa8ba37ca92a") .build(); UpdateTagResponse res = sdk.tags().updateTag() diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index 4c2cad3a6..f467667b5 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -13,6 +13,7 @@ Organization Admin user can list all users within the same organization. Also pr ### Example Usage + ```java package hello.world; diff --git a/docs/sdks/workspaces/README.md b/docs/sdks/workspaces/README.md index f9ecbd0d3..165696f40 100644 --- a/docs/sdks/workspaces/README.md +++ b/docs/sdks/workspaces/README.md @@ -19,6 +19,7 @@ In order to determine what the credential configuration needs to be, please see ### Example Usage + ```java package hello.world; @@ -45,9 +46,9 @@ public class Application { CreateOrUpdateWorkspaceOAuthCredentialsRequest req = CreateOrUpdateWorkspaceOAuthCredentialsRequest.builder() .workspaceOAuthCredentialsRequest(WorkspaceOAuthCredentialsRequest.builder() .actorType(ActorTypeEnum.DESTINATION) - .configuration(OAuthCredentialsConfiguration.of(Map.ofEntries( - Map.entry("user", "charles")))) - .name(OAuthActorNames.AIRTABLE) + .configuration(Map.ofEntries( + )) + .name(OAuthActorNames.TRELLO) .build()) .workspaceId("") .build(); @@ -83,6 +84,7 @@ Create a workspace ### Example Usage + ```java package hello.world; @@ -141,6 +143,7 @@ Delete a Workspace ### Example Usage + ```java package hello.world; @@ -199,6 +202,7 @@ Get Workspace details ### Example Usage + ```java package hello.world; @@ -259,6 +263,7 @@ List workspaces ### Example Usage + ```java package hello.world; @@ -318,6 +323,7 @@ Update a workspace ### Example Usage + ```java package hello.world; diff --git a/docs/utils/Blob.md b/docs/utils/Blob.md new file mode 100644 index 000000000..1702fcdc8 --- /dev/null +++ b/docs/utils/Blob.md @@ -0,0 +1,195 @@ +# Blob Utility Class + +The [`Blob`](../../src/main/java/com/airbyte/api/utils/Blob.java) utility class is a powerful tool for both sending and reading data in the SDK. It implements `HttpRequest.BodyPublisher` for sending data in HTTP requests and provides consumption methods for reading data streams. The class offers a reactive, memory-efficient approach to working with various data sources. + +## Key Benefits + +- **Dual Purpose**: Supports both sending data (via `HttpRequest.BodyPublisher`) and reading data (via consumption methods) +- **Memory Efficiency**: Streams data instead of loading entire files into memory, preventing out-of-memory errors with large files +- **Reactive Processing**: Built on Java's reactive streams (`Flow.Publisher`) for streaming+NIO operations +- **Versatile Input Sources**: Supports multiple data sources with convenient factory methods +- **HTTP Native**: Implements `HttpRequest.BodyPublisher` for seamless integration with HTTP requests +- **Single-Use Safety**: Prevents accidental reuse of consumed instances with clear error handling + +## Factory Methods + +The [`Blob`](../../src/main/java/com/airbyte/api/utils/Blob.java) class provides factory methods for various input sources: + +| Factory Method | Use Case | Memory | Underlying I/O | +|---|---|---|---| +| `Blob.from(Path)` | Large files, documents | 🟢 Streaming | Non-blocking (NIO) | +| `Blob.from(InputStream)` | Network streams, legacy APIs | 🟢 Streaming | Blocking (offloaded to threads) | +| `Blob.from(String)` | Text data, JSON | 🟡 In-memory | N/A (in-memory) | +| `Blob.from(byte[])` | Binary data, images | 🟡 In-memory | N/A (in-memory) | +| `Blob.from(ByteBuffer)` | NIO buffers | 🟡 In-memory | N/A (in-memory) | +| `Blob.from(List)` | Chunked data | 🟡 In-memory | N/A (in-memory) | +| `Blob.from(Flow.Publisher>)` | Reactive streams | 🟢 Streaming | Non-blocking (NIO) | + +## Retry Compatibility + +When using blobs in HTTP requests that may be retried, it's important to understand which blob types support retries effectively: + +| Factory Method | Retry Support | Notes | +|---|---|---| +| `Blob.from(Path)` | ✅ **Full Support** | File can be re-read for each retry attempt | +| `Blob.from(String)` | ✅ **Full Support** | Immutable data can be resent | +| `Blob.from(byte[])` | ✅ **Full Support** | In-memory data can be resent | +| `Blob.from(ByteBuffer)` | ✅ **Full Support** | Uses `duplicate()` to preserve original | +| `Blob.from(List)` | ✅ **Full Support** | Uses `duplicate()` to preserve originals | +| `Blob.from(Flow.Publisher>)` | ⚠️ **Depends on Publisher** | Stateful publishers may lose data on re-subscription | +| `Blob.from(InputStream)` | ❌ **Limited Support** | Stream gets consumed on first attempt | + +**Important**: InputStream-backed blobs and some Flow.Publisher-backed blobs do not support retries effectively. InputStreams get consumed during the first HTTP request attempt, and stateful publishers may lose data on re-subscription, causing subsequent retry attempts to send empty or incomplete request bodies. For retry-compatible scenarios, prefer file-based (`Blob.from(Path)`) or in-memory alternatives (`Blob.from(byte[])`). + +### File-Based Sources + +#### `Blob.from(Path path)` +Creates a Blob from a file path. **Recommended for large files** as it uses streaming+NIO. + +```java +Blob fileBlob = Blob.from(Paths.get("large-document.pdf")); +``` + +#### `Blob.from(InputStream inputStream)` +Creates a Blob from an InputStream that streams without buffering the whole payload; reading is blocking (performed on background threads if used asynchronously). + +```java +FileInputStream fis = new FileInputStream("data.json"); +Blob streamBlob = Blob.from(fis); +``` + +### In-Memory Sources + +#### `Blob.from(String string)` +Creates a Blob from a String using UTF-8 encoding. + +```java +Blob textBlob = Blob.from("Hello, World!"); +``` + +#### `Blob.from(byte[] data)` +Creates a Blob from a byte array. + +```java +byte[] imageData = loadImageBytes(); +Blob imageBlob = Blob.from(imageData); +``` + +### Buffer-Based Sources + +#### `Blob.from(ByteBuffer buffer)` +Creates a Blob from a single ByteBuffer. + +```java +ByteBuffer buffer = ByteBuffer.allocate(1024); +// ... populate buffer +Blob bufferBlob = Blob.from(buffer); +``` + +#### `Blob.from(List buffers)` +Creates a Blob from multiple ByteBuffers. + +```java +List buffers = Arrays.asList(buffer1, buffer2, buffer3); +Blob multiBufferBlob = Blob.from(buffers); +``` + +### Reactive Sources + +#### `Blob.from(Flow.Publisher> sourcePublisher)` +Creates a Blob from a reactive publisher that provides data as lists of ByteBuffers. + +```java +Flow.Publisher> publisher = createReactiveSource(); +Blob reactiveBlob = Blob.from(publisher); +``` + +## Consumption Methods + +The [`Blob`](../../src/main/java/com/airbyte/api/utils/Blob.java) class provides four methods for reading/consuming the data. All consumption methods use NIO and are safe to use in asynchronous contexts: + +### `asPublisher()` +Returns a `Flow.Publisher` for reactive processing. + +```java +Blob blob = Blob.from(Paths.get("data.txt")); +Flow.Publisher publisher = blob.asPublisher(); + +// Use with your preferred reactive library or custom subscriber +publisher.subscribe(myCustomSubscriber); +``` + +**Illustrative Project Reactor Integration** *(Note: The SDK uses native Java reactive streams and doesn't depend on Project Reactor)*: + +```java +// Convert to Reactor Flux for advanced reactive operations +Flux flux = Flux.from(blob.asPublisher()); + +// Transform and process the stream +Flux textChunks = flux + .map(buffer -> StandardCharsets.UTF_8.decode(buffer).toString()) + .filter(text -> !text.trim().isEmpty()) + .doOnNext(chunk -> System.out.println("Processing: " + chunk)); +``` + +### `toByteArray()` +Collects the entire stream into a byte array asynchronously. + +```java +Blob blob = Blob.from(Paths.get("small-file.txt")); +CompletableFuture future = blob.toByteArray(); + +// Basic usage with CompletableFuture +future.thenAccept(data -> { + System.out.println("Received " + data.length + " bytes"); + // Process the complete data + processData(data); +}).exceptionally(throwable -> { + System.err.println("Failed to read data: " + throwable.getMessage()); + return null; +}); +``` + +### `toInputStream()` +Converts the entire stream into an `InputStream` for traditional I/O operations. + +```java +Blob blob = Blob.from(Paths.get("data.txt")); +CompletableFuture future = blob.toInputStream(); + +// Basic usage with CompletableFuture +future.thenAccept(inputStream -> { + try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) { + String line; + while ((line = reader.readLine()) != null) { + System.out.println("Read line: " + line); + } + } catch (IOException e) { + System.err.println("Error reading from InputStream: " + e.getMessage()); + } +}).exceptionally(throwable -> { + System.err.println("Failed to create InputStream: " + throwable.getMessage()); + return null; +}); +``` + +### `toFile(Path destinationPath)` +Writes the stream directly to a file asynchronously. + +```java +Blob blob = Blob.from(inputStream); +CompletableFuture future = blob.toFile(Paths.get("output.dat")); + +// Basic file writing with error handling +future.thenAccept(path -> { + System.out.println("Successfully written to: " + path); + // Verify file was created + if (Files.exists(path)) { + System.out.println("File size: " + Files.size(path) + " bytes"); + } +}).exceptionally(throwable -> { + System.err.println("Failed to write file: " + throwable.getMessage()); + return null; +}); + +``` diff --git a/gen.yaml b/gen.yaml index 2c0427e46..29b7626d5 100644 --- a/gen.yaml +++ b/gen.yaml @@ -3,26 +3,38 @@ generation: sdkClassName: airbyte usageSnippets: optionalPropertyRendering: withExample + sdkInitStyle: constructor useClassNamesForArrayFields: true fixes: nameResolutionFeb2025: false parameterOrderingFeb2024: false requestResponseComponentNamesFeb2024: false securityFeb2025: false + sharedErrorComponentsApr2025: false auth: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false + hoistGlobalSecurity: true + tests: + generateTests: true + generateNewTests: false + skipResponseBodyAssertions: false java: - version: 2.0.0 + version: 3.0.0 additionalDependencies: [] additionalPlugins: [] artifactID: api + asyncMode: enabled + baseErrorName: AirbyteException clientServerStatusCodesAsErrors: true companyEmail: info@airbyte.com companyName: Airbyte companyURL: www.airbyte.com defaultErrorName: SDKError + enableCustomCodeRegions: false + enableStreamingUploads: false flattenGlobalSecurity: false + generateSpringBootStarter: true githubURL: github.com/airbytehq/airbyte-api-java-sdk groupID: com.airbyte imports: @@ -34,11 +46,13 @@ java: shared: models/shared webhooks: models/webhooks inputModelSuffix: input + languageVersion: 11 license: name: The MIT License (MIT) shortName: MIT url: https://mit-license.org/ maxMethodParams: 0 + nullFriendlyParameters: false outputModelSuffix: output projectName: public-api templateVersion: v2 diff --git a/gradle.properties b/gradle.properties index 851e43d6a..a87310b8f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,4 @@ groupId=com.airbyte artifactId=api -version=2.0.0 \ No newline at end of file +version=3.0.0 +org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index d64cd4917..1b33c55ba 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 1af9e0930..ff23a68d7 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/gradlew b/gradlew index 1aa94a426..23d15a936 100755 --- a/gradlew +++ b/gradlew @@ -15,6 +15,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # +# SPDX-License-Identifier: Apache-2.0 +# ############################################################################## # @@ -55,7 +57,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -84,7 +86,7 @@ done # shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) -APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit +APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum @@ -112,7 +114,7 @@ case "$( uname )" in #( NONSTOP* ) nonstop=true ;; esac -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar +CLASSPATH="\\\"\\\"" # Determine the Java command to use to start the JVM. @@ -203,7 +205,7 @@ fi DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' # Collect all arguments for the java command: -# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, # and any embedded shellness will be escaped. # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be # treated as '${Hostname}' itself on the command line. @@ -211,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' set -- \ "-Dorg.gradle.appname=$APP_BASE_NAME" \ -classpath "$CLASSPATH" \ - org.gradle.wrapper.GradleWrapperMain \ + -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ "$@" # Stop when "xargs" is not available. diff --git a/gradlew.bat b/gradlew.bat index 6689b85be..5eed7ee84 100755 --- a/gradlew.bat +++ b/gradlew.bat @@ -13,6 +13,8 @@ @rem See the License for the specific language governing permissions and @rem limitations under the License. @rem +@rem SPDX-License-Identifier: Apache-2.0 +@rem @if "%DEBUG%"=="" @echo off @rem ########################################################################## @@ -43,11 +45,11 @@ set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -57,22 +59,22 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail :execute @rem Setup the command line -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar +set CLASSPATH= @rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* :end @rem End local scope for the variables with windows NT shell diff --git a/publishing.gradle b/publishing.gradle new file mode 100644 index 000000000..4d7a6749c --- /dev/null +++ b/publishing.gradle @@ -0,0 +1,114 @@ +afterEvaluate { + if (!project.ext.has('publishingConfig') + || !project.ext.publishingConfig instanceof Map) { + return + } + + def config = project.ext.publishingConfig + sonatypeCentralUpload { + username = System.getenv("SONATYPE_USERNAME") ?: "test-user" + password = System.getenv("SONATYPE_PASSWORD") ?: "test-password" + + // Use the actual generated artifact files + archives = provider { + def libsDir = layout.buildDirectory.dir("libs").get() + def artifactId = config.artifactId + def version = config.version + + files( + libsDir.file("${artifactId}-${version}.jar"), + libsDir.file("${artifactId}-${version}-sources.jar"), + libsDir.file("${artifactId}-${version}-javadoc.jar") + ) + } + + pom = layout.buildDirectory.file("pom.xml").get().asFile + // This is your PGP private key. This is required to sign your files + signingKey = System.getenv("SONATYPE_SIGNING_KEY") ?: "" + // This is your PGP private key passphrase to decrypt your private key + signingKeyPassphrase = System.getenv("SIGNING_KEY_PASSPHRASE") ?: "" + } + publishing { + + publications { + create("maven", MavenPublication) { + from(components["java"] as SoftwareComponent) + + groupId = config.groupId + artifactId = config.artifactId + version = config.version + + pom { + properties = [ + 'maven.compiler.source': '11', + 'maven.compiler.target': '11', + ] + name = config.name + description = config.description + url = 'https://github.com/airbytehq/airbyte-api-java-sdk' + scm { + url = 'github.com/airbytehq/airbyte-api-java-sdk' + connection = 'scm:git:ssh://git@github.com/airbytehq/airbyte-api-java-sdk.git' + } + licenses { + license { + name = 'The MIT License (MIT)' + url = 'https://mit-license.org/' + } + } + developers { + developer { + name = 'Airbyte' + organization = 'Airbyte' + email = 'info@airbyte.com' + } + } + organization { + name = 'Airbyte' + url = 'www.airbyte.com' + } + } + } + } + + if (!project.hasProperty('skip.signing')) { + signing { + def signingKey = findProperty("signingKey") + def signingPassphrase = findProperty("signingPassphrase") + useInMemoryPgpKeys(signingKey, signingPassphrase) + sign publishing.publications.getByName("maven") + } + } + } + + + + // Configure POM file generation task after publishing is configured + tasks.named("generatePomFileForMavenPublication") { + destination = file(layout.buildDirectory.file("pom.xml")) + jar.dependsOn('generatePomFileForMavenPublication') + } +} + +// Debug task to log publishing properties before publish tasks +tasks.register('logPublishingProperties') { + doLast { + if (project.ext.has('publishingConfig')) { + def config = project.ext.publishingConfig + logger.quiet("Publishing properties for project '${project.name}':") + logger.quiet(" groupId: ${config.groupId}") + logger.quiet(" artifactId: ${config.artifactId}") + logger.quiet(" version: ${config.version}") + logger.quiet(" name: ${config.name}") + logger.quiet(" description: ${config.description}") + logger.quiet(" publicationName: maven") + } + } +} + +// Make all publish tasks depend on the logging task and POM generation +tasks.matching { it.name.startsWith('publish') + || it.name.contains('sonatypeCentralUpload') }.configureEach { + dependsOn logPublishingProperties + dependsOn 'generatePomFileForMavenPublication' +} diff --git a/settings.gradle b/settings.gradle index 2eba4e7bb..e0cdf7afb 100644 --- a/settings.gradle +++ b/settings.gradle @@ -8,3 +8,14 @@ */ rootProject.name = 'api' + +include 'api-spring-boot-autoconfigure' +include 'api-spring-boot-starter' + +project(':api-spring-boot-autoconfigure').projectDir = file('spring/api-spring-boot-autoconfigure') +project(':api-spring-boot-starter').projectDir = file('spring/api-spring-boot-starter') + +// Apply additional settings if the file exists +if (file('settings-extra.gradle').exists()) { + apply from: 'settings-extra.gradle' +} \ No newline at end of file diff --git a/spring/api-spring-boot-autoconfigure/build.gradle b/spring/api-spring-boot-autoconfigure/build.gradle new file mode 100644 index 000000000..7420179d0 --- /dev/null +++ b/spring/api-spring-boot-autoconfigure/build.gradle @@ -0,0 +1,35 @@ +description = 'public-api Spring Boot Auto Configuration' + +// Publishing configuration overrides +ext { + publishingConfig = [ + groupId: rootProject.group, + artifactId: 'api-spring-boot-autoconfigure', + version: rootProject.version, + name: 'Airbyte Java SDK - Spring Boot Auto Configuration', + description: 'Spring Boot auto-configuration for the Airbyte Java SDK.', + ] +} + +dependencies { + api project(':') + implementation 'org.springframework.boot:spring-boot-autoconfigure' + annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' + testImplementation 'org.springframework.boot:spring-boot-starter-test' + testRuntimeOnly 'org.junit.platform:junit-platform-launcher' +} + +test { + useJUnitPlatform() +} + +jar { + dependsOn 'generatePomFileForMavenPublication' + archiveBaseName = 'api-spring-boot-autoconfigure' + into("META-INF/maven/com.airbyte/api-spring-boot-autoconfigure") { + from(layout.buildDirectory.file("pom.xml")) { + // Only include if it exists to avoid build ordering issues + duplicatesStrategy = DuplicatesStrategy.INCLUDE + } + } +} \ No newline at end of file diff --git a/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ApiAutoConfig.java b/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ApiAutoConfig.java new file mode 100644 index 000000000..79bd82f5e --- /dev/null +++ b/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ApiAutoConfig.java @@ -0,0 +1,585 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import org.springframework.boot.autoconfigure.AutoConfiguration; +import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; +import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.boot.context.properties.EnableConfigurationProperties; +import org.springframework.context.annotation.Bean; +import java.util.concurrent.TimeUnit; + +import com.airbyte.api.models.shared.SchemeBasicAuth; +import com.airbyte.api.models.shared.SchemeClientCredentials; +import com.airbyte.api.utils.BackoffStrategy; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.RetryConfig; +import com.airbyte.api.utils.SpeakeasyHTTPClient; +import java.lang.IllegalStateException; +import java.lang.String; +import java.lang.System; +import java.util.Optional; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; +import java.util.function.Consumer; + + +/** + * Spring Boot Auto Configuration for public-api SDK + * This configuration class automatically configures the public-api SDK + * when Spring Boot detects it on the classpath. + */ +@AutoConfiguration +@ConditionalOnClass(Airbyte.class) +@EnableConfigurationProperties(ApiAutoConfigProperties.class) +public class ApiAutoConfig { + + /** + * Constructor. + */ + public ApiAutoConfig() { + } + + /** + * Creates a RetryConfig bean from properties if retry is enabled. + * + * @param properties the configuration properties + * @return A configured RetryConfig instance + */ + @Bean + @ConditionalOnMissingBean + @ConditionalOnProperty(prefix = "api.retry-config", name = "strategy") + public RetryConfig retryConfig(ApiAutoConfigProperties properties) { + ApiAutoConfigProperties.RetryConfig retryProps = properties.getRetryConfig(); + + if (RetryConfig.Strategy.BACKOFF.equals(retryProps.getStrategy())) { + ApiAutoConfigProperties.RetryConfig.Backoff backoff = retryProps.getBackoff(); + return RetryConfig.builder() + .backoff( + BackoffStrategy.builder() + .initialInterval(backoff.getInitialInterval().toMillis(), TimeUnit.MILLISECONDS) + .maxInterval(backoff.getMaxInterval().toMillis(), TimeUnit.MILLISECONDS) + .maxElapsedTime(backoff.getMaxElapsedTime().toMillis(), TimeUnit.MILLISECONDS) + .baseFactor(backoff.getBaseFactor()) + .jitterFactor(backoff.getJitterFactor()) + .retryConnectError(backoff.isRetryConnectError()) + .retryReadTimeoutError(backoff.isRetryReadTimeoutError()) + .build() + ) + .build(); + } + + // Default retry config for other strategies + return RetryConfig.builder().build(); + } + + /** + * Creates a {@code Consumer} bean for HTTP debug logging if none exists. + * This logger is used by the SpeakeasyHTTPClient for debug output when debug logging is enabled. + * By default, it logs to {@code System.out}, but can be customized by providing your own {@code Consumer} bean. + * + * @return A {@code Consumer} that logs messages to {@code System.out} + */ + @Bean + @ConditionalOnMissingBean + public Consumer httpLogger() { + return System.out::println; + } + + /** + * Creates an HTTPClient bean if none exists. + * + * @param properties the configuration properties + * @param httpLogger the logger for HTTP debug output + * @return A configured HTTPClient instance + */ + @Bean + @ConditionalOnMissingBean + public HTTPClient httpClient(ApiAutoConfigProperties properties, Consumer httpLogger) { + ApiAutoConfigProperties.HttpClient httpClientProps = properties.getHttpClient(); + + // Configure the static logger + SpeakeasyHTTPClient.setLogger(httpLogger); + + if (httpClientProps != null) { + // Configure debug logging + SpeakeasyHTTPClient.setDebugLogging(httpClientProps.isEnableDebugLogging()); + + // Configure redacted headers + if (httpClientProps.getRedactedHeaders() != null && !httpClientProps.getRedactedHeaders().isEmpty()) { + SpeakeasyHTTPClient.setRedactedHeaders(httpClientProps.getRedactedHeaders()); + } + } + + return new SpeakeasyHTTPClient(); + } + /** + * Creates a SecuritySource bean if none exists and security properties are configured. + * + * @param properties the configuration properties + * @return A configured SecuritySource instance + */ + @Bean + @ConditionalOnMissingBean + @ConditionalOnPropertyPrefix(prefix = "api.security") + public SecuritySource securitySource(ApiAutoConfigProperties properties) {ApiAutoConfigProperties.Security securityProps = properties.getSecurity(); + com.airbyte.api.models.shared.Security.Builder securityBuilder = com.airbyte.api.models.shared.Security.builder(); + boolean hasAnySecurityConfiguration = false; + // Build basicAuth security from nested properties (composite object) + ApiAutoConfigProperties.Security.BasicAuth basicAuthProps = securityProps.getBasicAuth(); + if (basicAuthProps != null) { + SchemeBasicAuth.Builder basicAuthBuilder = SchemeBasicAuth.builder(); + boolean hasBasicAuthValues = false;if (basicAuthProps.getPassword() != null) { + basicAuthBuilder.password(basicAuthProps.getPassword()); + hasBasicAuthValues = true; + }if (basicAuthProps.getUsername() != null) { + basicAuthBuilder.username(basicAuthProps.getUsername()); + hasBasicAuthValues = true; + } + + if (hasBasicAuthValues) { + securityBuilder.basicAuth(basicAuthBuilder.build()); + hasAnySecurityConfiguration = true; + } + } + // Build bearerAuth security from direct properties (primitive value) + if (securityProps.getBearerAuth() != null) { + securityBuilder.bearerAuth(securityProps.getBearerAuth()); + hasAnySecurityConfiguration = true; + } + // Build clientCredentials security from nested properties (composite object) + ApiAutoConfigProperties.Security.ClientCredentials clientCredentialsProps = securityProps.getClientCredentials(); + if (clientCredentialsProps != null) { + SchemeClientCredentials.Builder clientCredentialsBuilder = SchemeClientCredentials.builder(); + boolean hasClientCredentialsValues = false;if (clientCredentialsProps.getClientId() != null) { + clientCredentialsBuilder.clientID(clientCredentialsProps.getClientId()); + hasClientCredentialsValues = true; + }if (clientCredentialsProps.getClientSecret() != null) { + clientCredentialsBuilder.clientSecret(clientCredentialsProps.getClientSecret()); + hasClientCredentialsValues = true; + }if (clientCredentialsProps.getTokenUrl() != null) { + clientCredentialsBuilder.tokenURL(clientCredentialsProps.getTokenUrl()); + hasClientCredentialsValues = true; + } + + if (hasClientCredentialsValues) { + securityBuilder.clientCredentials(clientCredentialsBuilder.build()); + hasAnySecurityConfiguration = true; + } + } + + if (!hasAnySecurityConfiguration) { + throw new IllegalStateException("Security configuration is present but no security options are configured. " + + "Please configure at least one security option in your application properties."); + } + + return SecuritySource.of(securityBuilder.build()); + } + + /** + * Creates the SDKConfiguration bean as the single source of truth for all SDK configuration. + * + * @param properties the configuration properties + * @param httpClient the HTTP client bean + * @param hooks the hooks bean + * @param asyncHooks the async hooks bean + * @param securitySource the security source bean (optional) + * @param retryConfig the retry config bean (optional) + * @return A configured SDKConfiguration instance + */ + @Bean + @ConditionalOnMissingBean + public SDKConfiguration sdkConfiguration( + ApiAutoConfigProperties properties, + HTTPClient httpClient, + com.airbyte.api.utils.Hooks hooks, + com.airbyte.api.utils.AsyncHooks asyncHooks, + SecuritySource securitySource, + Optional retryConfig) { + + SDKConfiguration sdkConfiguration = new SDKConfiguration(); + + sdkConfiguration.setClient(httpClient); + + sdkConfiguration.setHooks(hooks); + sdkConfiguration.setAsyncHooks(asyncHooks); + sdkConfiguration.setSecuritySource(securitySource); + + if (properties.getServerUrl() != null) { + sdkConfiguration.setServerUrl(properties.getServerUrl()); + } + sdkConfiguration.setServerIdx(properties.getServerIdx()); + + sdkConfiguration.setRetryConfig(retryConfig); + + return sdkConfiguration; + } + + /** + * Creates the main SDK bean using the configured SDKConfiguration. + * + * @param sdkConfiguration the configured SDKConfiguration bean + * @return A configured Airbyte instance + */ + @Bean + @ConditionalOnMissingBean + public Airbyte airbyte(SDKConfiguration sdkConfiguration) { + return new Airbyte(sdkConfiguration); + } + + /** + * Creates an AsyncHooks bean if none exists. + * + * @return A configured AsyncHooks instance + */ + @Bean + @ConditionalOnMissingBean + public com.airbyte.api.utils.AsyncHooks asyncHooks() { + return new com.airbyte.api.utils.AsyncHooks(); + } + + /** + * Creates a ScheduledExecutorService for async retry operations if none exists. + * + * @return A configured ScheduledExecutorService instance + */ + @Bean + @ConditionalOnMissingBean + public ScheduledExecutorService retryScheduler() { + return Executors.newSingleThreadScheduledExecutor(); + } + + /** + * Creates a Hooks configuration bean if none exists. + * + * @return A configured Hooks instance + */ + @Bean + @ConditionalOnMissingBean + public com.airbyte.api.utils.Hooks hooks() { + return new com.airbyte.api.utils.Hooks(); + } + /** + * Creates a Connections sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Connections instance + */ + @Bean + @ConditionalOnMissingBean + public Connections connections(Airbyte airbyte) { + return airbyte.connections(); + } + /** + * Creates a Destinations sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Destinations instance + */ + @Bean + @ConditionalOnMissingBean + public Destinations destinations(Airbyte airbyte) { + return airbyte.destinations(); + } + /** + * Creates a Health sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Health instance + */ + @Bean + @ConditionalOnMissingBean + public Health health(Airbyte airbyte) { + return airbyte.health(); + } + /** + * Creates a Jobs sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Jobs instance + */ + @Bean + @ConditionalOnMissingBean + public Jobs jobs(Airbyte airbyte) { + return airbyte.jobs(); + } + /** + * Creates a Organizations sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Organizations instance + */ + @Bean + @ConditionalOnMissingBean + public Organizations organizations(Airbyte airbyte) { + return airbyte.organizations(); + } + /** + * Creates a Permissions sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Permissions instance + */ + @Bean + @ConditionalOnMissingBean + public Permissions permissions(Airbyte airbyte) { + return airbyte.permissions(); + } + /** + * Creates a Sources sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Sources instance + */ + @Bean + @ConditionalOnMissingBean + public Sources sources(Airbyte airbyte) { + return airbyte.sources(); + } + /** + * Creates a Streams sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Streams instance + */ + @Bean + @ConditionalOnMissingBean + public Streams streams(Airbyte airbyte) { + return airbyte.streams(); + } + /** + * Creates a Tags sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Tags instance + */ + @Bean + @ConditionalOnMissingBean + public Tags tags(Airbyte airbyte) { + return airbyte.tags(); + } + /** + * Creates a Users sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Users instance + */ + @Bean + @ConditionalOnMissingBean + public Users users(Airbyte airbyte) { + return airbyte.users(); + } + /** + * Creates a Workspaces sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured Workspaces instance + */ + @Bean + @ConditionalOnMissingBean + public Workspaces workspaces(Airbyte airbyte) { + return airbyte.workspaces(); + } + /** + * Creates a DeclarativeSourceDefinitions sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured DeclarativeSourceDefinitions instance + */ + @Bean + @ConditionalOnMissingBean + public DeclarativeSourceDefinitions declarativeSourceDefinitions(Airbyte airbyte) { + return airbyte.declarativeSourceDefinitions(); + } + /** + * Creates a DestinationDefinitions sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured DestinationDefinitions instance + */ + @Bean + @ConditionalOnMissingBean + public DestinationDefinitions destinationDefinitions(Airbyte airbyte) { + return airbyte.destinationDefinitions(); + } + /** + * Creates a SourceDefinitions sub-SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @return A configured SourceDefinitions instance + */ + @Bean + @ConditionalOnMissingBean + public SourceDefinitions sourceDefinitions(Airbyte airbyte) { + return airbyte.sourceDefinitions(); + } + + /** + * Creates the async SDK bean if none exists. + * + * @param airbyte the main SDK instance + * @param sdkConfiguration the configured SDKConfiguration bean + * @return A configured AsyncAirbyte instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncAirbyte asyncAirbyte(Airbyte airbyte, SDKConfiguration sdkConfiguration) { + return new AsyncAirbyte(airbyte, sdkConfiguration); + } + /** + * Creates an AsyncConnections sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncConnections instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncConnections asyncConnections(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.connections(); + } + /** + * Creates an AsyncDestinations sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncDestinations instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncDestinations asyncDestinations(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.destinations(); + } + /** + * Creates an AsyncHealth sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncHealth instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncHealth asyncHealth(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.health(); + } + /** + * Creates an AsyncJobs sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncJobs instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncJobs asyncJobs(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.jobs(); + } + /** + * Creates an AsyncOrganizations sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncOrganizations instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncOrganizations asyncOrganizations(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.organizations(); + } + /** + * Creates an AsyncPermissions sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncPermissions instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncPermissions asyncPermissions(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.permissions(); + } + /** + * Creates an AsyncSources sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncSources instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncSources asyncSources(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.sources(); + } + /** + * Creates an AsyncStreams sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncStreams instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncStreams asyncStreams(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.streams(); + } + /** + * Creates an AsyncTags sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncTags instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncTags asyncTags(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.tags(); + } + /** + * Creates an AsyncUsers sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncUsers instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncUsers asyncUsers(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.users(); + } + /** + * Creates an AsyncWorkspaces sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncWorkspaces instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncWorkspaces asyncWorkspaces(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.workspaces(); + } + /** + * Creates an AsyncDeclarativeSourceDefinitions sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncDeclarativeSourceDefinitions instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncDeclarativeSourceDefinitions asyncDeclarativeSourceDefinitions(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.declarativeSourceDefinitions(); + } + /** + * Creates an AsyncDestinationDefinitions sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncDestinationDefinitions instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncDestinationDefinitions asyncDestinationDefinitions(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.destinationDefinitions(); + } + /** + * Creates an AsyncSourceDefinitions sub-SDK bean if none exists. + * + * @param asyncAirbyte the async SDK instance + * @return A configured AsyncSourceDefinitions instance + */ + @Bean + @ConditionalOnMissingBean + public AsyncSourceDefinitions asyncSourceDefinitions(AsyncAirbyte asyncAirbyte) { + return asyncAirbyte.sourceDefinitions(); + } +} \ No newline at end of file diff --git a/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ApiAutoConfigProperties.java b/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ApiAutoConfigProperties.java new file mode 100644 index 000000000..1081bd5a0 --- /dev/null +++ b/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ApiAutoConfigProperties.java @@ -0,0 +1,635 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import org.springframework.boot.context.properties.ConfigurationProperties; + +import java.time.Duration; +import java.lang.String; +import java.util.Collection; +import java.util.Set; + + +/** + * Spring Boot Configuration Properties for public-api SDK + */ +@ConfigurationProperties(prefix = "api") +public class ApiAutoConfigProperties { + + /** + * Constructor. + */ + public ApiAutoConfigProperties() { + } + + /** + * The base URL for the API server. If not specified, the SDK will use the default server URL. + */ + private String serverUrl; + + /** + * Configuration for retry behavior when API calls fail due to transient errors. + */ + private RetryConfig retryConfig = new RetryConfig(); + + /** + * HTTP client configuration for API requests. + */ + private HttpClient httpClient = new HttpClient(); + /** + * The index of the server to use from the list of available servers (0-based). Defaults to the first server. + */ + private int serverIdx = 0; + /** + * Security configuration for API authentication. + */ + private Security security = new Security(); + + /** + * Gets the base URL for the API server. + * + * @return the base URL for the API server + */ + public String getServerUrl() { + return serverUrl; + } + + /** + * Sets the base URL for the API server. + * + * @param serverUrl the base URL for the API server + */ + public void setServerUrl(String serverUrl) { + this.serverUrl = serverUrl; + } + + /** + * Gets the retry configuration for API calls that fail due to transient errors. + * + * @return the retry configuration + */ + public RetryConfig getRetryConfig() { + return retryConfig; + } + + /** + * Sets the retry configuration for API calls that fail due to transient errors. + * + * @param retryConfig the retry configuration to use + */ + public void setRetryConfig(RetryConfig retryConfig) { + this.retryConfig = retryConfig; + } + + /** + * Gets the HTTP client configuration for API requests. + * + * @return the HTTP client configuration + */ + public HttpClient getHttpClient() { + return httpClient; + } + + /** + * Sets the HTTP client configuration for API requests. + * + * @param httpClient the HTTP client configuration to use + */ + public void setHttpClient(HttpClient httpClient) { + this.httpClient = httpClient; + } + /** + * Gets the index of the server to use from the list of available servers (0-based). + * + * @return the server index + */ + public int getServerIdx() { + return serverIdx; + } + + /** + * Sets the index of the server to use from the list of available servers (0-based). + * + * @param serverIdx the server index to use + */ + public void setServerIdx(int serverIdx) { + this.serverIdx = serverIdx; + } + /** + * Gets the security configuration for API authentication. + * + * @return the security configuration + */ + public Security getSecurity() { + return security; + } + + /** + * Sets the security configuration for API authentication. + * + * @param security the security configuration to use + */ + public void setSecurity(Security security) { + this.security = security; + } + + /** + * Retry configuration properties + */ + public static class RetryConfig { + + /** + * Constructor. + */ + public RetryConfig() { + } + + /** + * The retry strategy to use for failed requests. + */ + private com.airbyte.api.utils.RetryConfig.Strategy strategy; + + /** + * Configuration for exponential backoff retry strategy. Only used when strategy is set to BACKOFF. + */ + private Backoff backoff = new Backoff(); + + /** + * Gets the retry strategy to use for failed requests. + * + * @return the retry strategy + */ + public com.airbyte.api.utils.RetryConfig.Strategy getStrategy() { + return strategy; + } + + /** + * Sets the retry strategy to use for failed requests. + * + * @param strategy the retry strategy to use + */ + public void setStrategy(com.airbyte.api.utils.RetryConfig.Strategy strategy) { + this.strategy = strategy; + } + + /** + * Gets the backoff configuration for exponential backoff retry strategy. + * + * @return the backoff configuration + */ + public Backoff getBackoff() { + return backoff; + } + + /** + * Sets the backoff configuration for exponential backoff retry strategy. + * + * @param backoff the backoff configuration to use + */ + public void setBackoff(Backoff backoff) { + this.backoff = backoff; + } + + /** + * Backoff retry configuration matching BackoffStrategy fields + */ + public static class Backoff { + + /** + * Constructor. + */ + public Backoff() { + } + + /** + * The initial delay before the first retry attempt. Supports duration formats like "500ms", "1s", "2m". + */ + private Duration initialInterval = Duration.ofMillis(500); + + /** + * The maximum delay between retry attempts. The backoff will not exceed this value. + */ + private Duration maxInterval = Duration.ofSeconds(60); + + /** + * The maximum total time to spend on all retry attempts. Retries will stop after this duration. + */ + private Duration maxElapsedTime = Duration.ofHours(1); + + /** + * The multiplier for exponential backoff. Each retry delay is multiplied by this factor (e.g., 1.5 means 50% increase). + */ + private double baseFactor = 1.5; + + /** + * Random jitter factor to avoid thundering herd problems. Value between 0.0 (no jitter) and 1.0 (full jitter). + */ + private double jitterFactor = 0.5; + + /** + * Whether to retry requests that fail due to connection errors (e.g., connection refused, timeout). + */ + private boolean retryConnectError = false; + + /** + * Whether to retry requests that fail due to read timeout errors (server doesn't respond within timeout). + */ + private boolean retryReadTimeoutError = false; + + /** + * Gets the initial delay before the first retry attempt. + * + * @return the initial delay duration + */ + public Duration getInitialInterval() { + return initialInterval; + } + + /** + * Sets the initial delay before the first retry attempt. + * + * @param initialInterval the initial delay duration + */ + public void setInitialInterval(Duration initialInterval) { + this.initialInterval = initialInterval; + } + + /** + * Gets the maximum delay between retry attempts. + * + * @return the maximum delay duration + */ + public Duration getMaxInterval() { + return maxInterval; + } + + /** + * Sets the maximum delay between retry attempts. + * + * @param maxInterval the maximum delay duration + */ + public void setMaxInterval(Duration maxInterval) { + this.maxInterval = maxInterval; + } + + /** + * Gets the maximum total time to spend on all retry attempts. + * + * @return the maximum elapsed time duration + */ + public Duration getMaxElapsedTime() { + return maxElapsedTime; + } + + /** + * Sets the maximum total time to spend on all retry attempts. + * + * @param maxElapsedTime the maximum elapsed time duration + */ + public void setMaxElapsedTime(Duration maxElapsedTime) { + this.maxElapsedTime = maxElapsedTime; + } + + /** + * Gets the multiplier for exponential backoff. + * + * @return the base factor for exponential backoff + */ + public double getBaseFactor() { + return baseFactor; + } + + /** + * Sets the multiplier for exponential backoff. + * + * @param baseFactor the base factor for exponential backoff + */ + public void setBaseFactor(double baseFactor) { + this.baseFactor = baseFactor; + } + + /** + * Gets the random jitter factor to avoid thundering herd problems. + * + * @return the jitter factor (0.0 to 1.0) + */ + public double getJitterFactor() { + return jitterFactor; + } + + /** + * Sets the random jitter factor to avoid thundering herd problems. + * + * @param jitterFactor the jitter factor (0.0 to 1.0) + */ + public void setJitterFactor(double jitterFactor) { + this.jitterFactor = jitterFactor; + } + + /** + * Gets whether to retry requests that fail due to connection errors. + * + * @return true if connection errors should be retried, false otherwise + */ + public boolean isRetryConnectError() { + return retryConnectError; + } + + /** + * Sets whether to retry requests that fail due to connection errors. + * + * @param retryConnectError true to retry connection errors, false otherwise + */ + public void setRetryConnectError(boolean retryConnectError) { + this.retryConnectError = retryConnectError; + } + + /** + * Gets whether to retry requests that fail due to read timeout errors. + * + * @return true if read timeout errors should be retried, false otherwise + */ + public boolean isRetryReadTimeoutError() { + return retryReadTimeoutError; + } + + /** + * Sets whether to retry requests that fail due to read timeout errors. + * + * @param retryReadTimeoutError true to retry read timeout errors, false otherwise + */ + public void setRetryReadTimeoutError(boolean retryReadTimeoutError) { + this.retryReadTimeoutError = retryReadTimeoutError; + } + } + } + + /** + * HTTP client configuration properties + */ + public static class HttpClient { + + /** + * Constructor. + */ + public HttpClient() { + } + + /** + * Whether to enable debug logging for HTTP requests and responses, including JSON body content. + */ + private boolean enableDebugLogging = false; + + /** + * Collection of header names (case-insensitive) whose values will be redacted in debug logs. + * By default, Authorization and X-API-KEY headers are redacted for security. + */ + private Collection redactedHeaders = Set.of("Authorization", "X-API-KEY"); + + /** + * Gets whether debug logging is enabled for HTTP requests and responses. + * + * @return true if debug logging is enabled, false otherwise + */ + public boolean isEnableDebugLogging() { + return enableDebugLogging; + } + + /** + * Sets whether to enable debug logging for HTTP requests and responses. + * + * @param enableDebugLogging true to enable debug logging, false otherwise + */ + public void setEnableDebugLogging(boolean enableDebugLogging) { + this.enableDebugLogging = enableDebugLogging; + } + + /** + * Gets the collection of header names whose values will be redacted in debug logs. + * + * @return the collection of header names to redact + */ + public Collection getRedactedHeaders() { + return redactedHeaders; + } + + /** + * Sets the collection of header names whose values will be redacted in debug logs. + * + * @param redactedHeaders the collection of header names to redact + */ + public void setRedactedHeaders(Collection redactedHeaders) { + this.redactedHeaders = redactedHeaders; + } + } + + /** + * Security configuration properties + */ + public static class Security { + + /** + * Constructor. + */ + public Security() { + } + + /** + * basicAuth security configuration. + */ + private BasicAuth basicAuth = new BasicAuth(); + + /** + * Gets the basicAuth security configuration. + * + * @return the basicAuth configuration + */ + public BasicAuth getBasicAuth() { + return basicAuth; + } + + /** + * Sets the basicAuth security configuration. + * + * @param basicAuth the basicAuth configuration to use + */ + public void setBasicAuth(BasicAuth basicAuth) { + this.basicAuth = basicAuth; + } + /** + * bearerAuth for authentication. + */ + private String bearerAuth; + + /** + * Gets the bearerAuth value. + * + * @return the bearerAuth value + */ + public String getBearerAuth() { + return bearerAuth; + } + + /** + * Sets the bearerAuth value. + * + * @param bearerAuth the bearerAuth value to use + */ + public void setBearerAuth(String bearerAuth) { + this.bearerAuth = bearerAuth; + } + + /** + * clientCredentials security configuration. + */ + private ClientCredentials clientCredentials = new ClientCredentials(); + + /** + * Gets the clientCredentials security configuration. + * + * @return the clientCredentials configuration + */ + public ClientCredentials getClientCredentials() { + return clientCredentials; + } + + /** + * Sets the clientCredentials security configuration. + * + * @param clientCredentials the clientCredentials configuration to use + */ + public void setClientCredentials(ClientCredentials clientCredentials) { + this.clientCredentials = clientCredentials; + } + + /** + * basicAuth security configuration properties + */ + public static class BasicAuth { + + /** + * Constructor. + */ + public BasicAuth() { + } + /** + * Password for basicAuth authentication. + */private String password; + + /** + * Gets the Password value. + * + * @return the Password value + */ + public String getPassword() { + return password; + } + + /** + * Sets the Password value. + * + * @param password the Password value to use + */ + public void setPassword(String password) { + this.password = password; + } + /** + * Username for basicAuth authentication. + */private String username; + + /** + * Gets the Username value. + * + * @return the Username value + */ + public String getUsername() { + return username; + } + + /** + * Sets the Username value. + * + * @param username the Username value to use + */ + public void setUsername(String username) { + this.username = username; + } + } + + /** + * clientCredentials security configuration properties + */ + public static class ClientCredentials { + + /** + * Constructor. + */ + public ClientCredentials() { + } + /** + * ClientID for clientCredentials authentication. + */private String clientId; + + /** + * Gets the ClientID value. + * + * @return the ClientID value + */ + public String getClientId() { + return clientId; + } + + /** + * Sets the ClientID value. + * + * @param clientId the ClientID value to use + */ + public void setClientId(String clientId) { + this.clientId = clientId; + } + /** + * ClientSecret for clientCredentials authentication. + */private String clientSecret; + + /** + * Gets the ClientSecret value. + * + * @return the ClientSecret value + */ + public String getClientSecret() { + return clientSecret; + } + + /** + * Sets the ClientSecret value. + * + * @param clientSecret the ClientSecret value to use + */ + public void setClientSecret(String clientSecret) { + this.clientSecret = clientSecret; + } + /** + * TokenURL for clientCredentials authentication. + */private String tokenUrl; + + /** + * Gets the TokenURL value. + * + * @return the TokenURL value + */ + public String getTokenUrl() { + return tokenUrl; + } + + /** + * Sets the TokenURL value. + * + * @param tokenUrl the TokenURL value to use + */ + public void setTokenUrl(String tokenUrl) { + this.tokenUrl = tokenUrl; + } + } + } +} \ No newline at end of file diff --git a/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ConditionalOnPropertyPrefix.java b/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ConditionalOnPropertyPrefix.java new file mode 100644 index 000000000..f380a9ac5 --- /dev/null +++ b/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/ConditionalOnPropertyPrefix.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import org.springframework.context.annotation.Conditional; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Conditional annotation that matches when any properties exist under the specified prefix. + * This is useful for conditionally creating beans only when configuration properties + * are present under a specific prefix. + * + *

Example usage: + *

+ * @Bean
+ * @ConditionalOnPropertyPrefix(prefix = "myapp.security")
+ * public SecuritySource securitySource() {
+ *     // This bean will only be created if properties like myapp.security.* exist
+ * }
+ * 
+ */ +@Target({ ElementType.TYPE, ElementType.METHOD }) +@Retention(RetentionPolicy.RUNTIME) +@Documented +@Conditional(OnPropertyPrefixCondition.class) +public @interface ConditionalOnPropertyPrefix { + + /** + * The property prefix to check for. Properties starting with this prefix + * (followed by a dot) will be considered when determining if the condition matches. + * + * @return the property prefix + */ + String prefix(); +} \ No newline at end of file diff --git a/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/OnPropertyPrefixCondition.java b/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/OnPropertyPrefixCondition.java new file mode 100644 index 000000000..095657dbb --- /dev/null +++ b/spring/api-spring-boot-autoconfigure/src/main/java/com/airbyte/api/OnPropertyPrefixCondition.java @@ -0,0 +1,68 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import org.springframework.boot.autoconfigure.condition.ConditionMessage; +import org.springframework.boot.autoconfigure.condition.ConditionOutcome; +import org.springframework.boot.autoconfigure.condition.SpringBootCondition; +import org.springframework.boot.context.properties.bind.Binder; +import org.springframework.context.annotation.ConditionContext; +import org.springframework.core.type.AnnotatedTypeMetadata; +import org.springframework.core.env.Environment; + +import java.util.Map; + +/** + * Custom condition that checks if any properties exist under a given prefix. + * This is used to conditionally create beans only when configuration properties + * are present under a specific prefix. + */ +public class OnPropertyPrefixCondition extends SpringBootCondition { + + /** + * Default constructor for OnPropertyPrefixCondition. + */ + public OnPropertyPrefixCondition() { + // Default constructor + } + + @Override + public ConditionOutcome getMatchOutcome(ConditionContext context, AnnotatedTypeMetadata metadata) { + Map attributes = metadata.getAnnotationAttributes(ConditionalOnPropertyPrefix.class.getName()); + if (attributes == null) { + return ConditionOutcome.noMatch("@ConditionalOnPropertyPrefix annotation not found"); + } + + String prefix = (String) attributes.get("prefix"); + if (prefix == null || prefix.isEmpty()) { + return ConditionOutcome.noMatch("Property prefix is empty"); + } + + Environment environment = context.getEnvironment(); + + // Check if any properties exist under the given prefix + boolean hasPropertiesUnderPrefix = hasPropertiesWithPrefix(environment, prefix); + + ConditionMessage.Builder message = ConditionMessage.forCondition(ConditionalOnPropertyPrefix.class, prefix); + + if (hasPropertiesUnderPrefix) { + return ConditionOutcome.match(message.found("properties").items(prefix + ".*")); + } else { + return ConditionOutcome.noMatch(message.didNotFind("properties").items(prefix + ".*")); + } + } + + private boolean hasPropertiesWithPrefix(Environment environment, String prefix) { + try { + // Use Spring Boot's Binder to check if any properties exist under the prefix + Binder binder = Binder.get(environment); + + // Try to bind to a Map to see if any properties exist under the prefix + return binder.bind(prefix, Map.class).isBound(); + } catch (Exception e) { + // If we can't determine, assume no properties exist + return false; + } + } +} \ No newline at end of file diff --git a/spring/api-spring-boot-autoconfigure/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/spring/api-spring-boot-autoconfigure/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports new file mode 100644 index 000000000..716348a2d --- /dev/null +++ b/spring/api-spring-boot-autoconfigure/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -0,0 +1 @@ +com.airbyte.api.ApiAutoConfig \ No newline at end of file diff --git a/spring/api-spring-boot-starter/build.gradle b/spring/api-spring-boot-starter/build.gradle new file mode 100644 index 000000000..10c1416c8 --- /dev/null +++ b/spring/api-spring-boot-starter/build.gradle @@ -0,0 +1,29 @@ +description = 'public-api Spring Boot Starter' + +// Publishing configuration overrides +ext { + publishingConfig = [ + groupId: rootProject.group, + artifactId: 'api-spring-boot-starter', + version: rootProject.version, + name: 'Airbyte Java SDK - Spring Boot Starter', + description: 'Spring Boot starter for the Airbyte Java SDK.', + ] +} + +dependencies { + api project(':') + api project(':api-spring-boot-autoconfigure') + api "org.springframework.boot:spring-boot-starter:${rootProject.springBootVersion}" +} + +jar { + dependsOn 'generatePomFileForMavenPublication' + archiveBaseName = 'api-spring-boot-starter' + into("META-INF/maven/com.airbyte/api-spring-boot-starter") { + from(layout.buildDirectory.file("pom.xml")) { + // Only include if it exists to avoid build ordering issues + duplicatesStrategy = DuplicatesStrategy.INCLUDE + } + } +} \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/Airbyte.java b/src/main/java/com/airbyte/api/Airbyte.java index 369ce8910..1a72712b6 100644 --- a/src/main/java/com/airbyte/api/Airbyte.java +++ b/src/main/java/com/airbyte/api/Airbyte.java @@ -1,9 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ + package com.airbyte.api; import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.SdkInitData; import com.airbyte.api.utils.RetryConfig; import com.airbyte.api.utils.SpeakeasyHTTPClient; import com.airbyte.api.utils.Utils; @@ -16,103 +19,131 @@ * airbyte-api: Programmatically control Airbyte Cloud, OSS & Enterprise. */ public class Airbyte { + private static final Headers _headers = Headers.EMPTY; /** * SERVERS contains the list of server urls available to the SDK. */ public static final String[] SERVERS = { - /** + /* * Airbyte API v1 */ "https://api.airbyte.com/v1", }; + private final Connections connections; + private final Destinations destinations; + private final Health health; + private final Jobs jobs; + private final Organizations organizations; + private final Permissions permissions; + private final Sources sources; + private final Streams streams; + private final Tags tags; + private final Users users; + private final Workspaces workspaces; + private final DeclarativeSourceDefinitions declarativeSourceDefinitions; + private final DestinationDefinitions destinationDefinitions; + private final SourceDefinitions sourceDefinitions; + public Connections connections() { return connections; } + public Destinations destinations() { return destinations; } + public Health health() { return health; } + public Jobs jobs() { return jobs; } + public Organizations organizations() { return organizations; } + public Permissions permissions() { return permissions; } + public Sources sources() { return sources; } + public Streams streams() { return streams; } + public Tags tags() { return tags; } + public Users users() { return users; } + public Workspaces workspaces() { return workspaces; } + public DeclarativeSourceDefinitions declarativeSourceDefinitions() { return declarativeSourceDefinitions; } + public DestinationDefinitions destinationDefinitions() { return destinationDefinitions; } + public SourceDefinitions sourceDefinitions() { return sourceDefinitions; } - - private final SDKConfiguration sdkConfiguration; + private final AsyncAirbyte asyncSDK; /** * The Builder class allows the configuration of a new instance of the SDK. @@ -120,6 +151,9 @@ public SourceDefinitions sourceDefinitions() { public static class Builder { private final SDKConfiguration sdkConfiguration = new SDKConfiguration(); + private String serverUrl; + private String server; + private Builder() { } @@ -131,18 +165,18 @@ private Builder() { * @return The builder instance. */ public Builder client(HTTPClient client) { - this.sdkConfiguration.defaultClient = client; + this.sdkConfiguration.setClient(client); return this; } /** * Configures the SDK to use the provided security details. * - * @param security The security details to use for all requests. + * @param security The security details to use for all requests. Can be {@code null}. * @return The builder instance. */ public Builder security(com.airbyte.api.models.shared.Security security) { - this.sdkConfiguration.securitySource = SecuritySource.of(security); + this.sdkConfiguration.setSecuritySource(SecuritySource.of(security)); return this; } @@ -153,7 +187,8 @@ public Builder security(com.airbyte.api.models.shared.Security security) { * @return The builder instance. */ public Builder securitySource(SecuritySource securitySource) { - this.sdkConfiguration.securitySource = securitySource; + Utils.checkNotNull(securitySource, "securitySource"); + this.sdkConfiguration.setSecuritySource(securitySource); return this; } @@ -164,19 +199,19 @@ public Builder securitySource(SecuritySource securitySource) { * @return The builder instance. */ public Builder serverURL(String serverUrl) { - this.sdkConfiguration.serverUrl = serverUrl; + this.serverUrl = serverUrl; return this; } /** - * Overrides the default server URL with a templated URL populated with the provided parameters. + * Overrides the default server URL with a templated URL populated with the provided parameters. * * @param serverUrl The server URL to use for all requests. * @param params The parameters to use when templating the URL. * @return The builder instance. */ public Builder serverURL(String serverUrl, Map params) { - this.sdkConfiguration.serverUrl = Utils.templateUrl(serverUrl, params); + this.serverUrl = Utils.templateUrl(serverUrl, params); return this; } @@ -187,8 +222,8 @@ public Builder serverURL(String serverUrl, Map params) { * @return The builder instance. */ public Builder serverIndex(int serverIdx) { - this.sdkConfiguration.serverIdx = serverIdx; - this.sdkConfiguration.serverUrl = SERVERS[serverIdx]; + this.sdkConfiguration.setServerIdx(serverIdx); + this.serverUrl= SERVERS[serverIdx]; return this; } @@ -199,9 +234,26 @@ public Builder serverIndex(int serverIdx) { * @return The builder instance. */ public Builder retryConfig(RetryConfig retryConfig) { - this.sdkConfiguration.retryConfig = Optional.of(retryConfig); + this.sdkConfiguration.setRetryConfig(Optional.of(retryConfig)); return this; } + + /** + * Enables debug logging for HTTP requests and responses, including JSON body content. + *

+ * Convenience method that calls {@link HTTPClient#enableDebugLogging(boolean)}. + * {@link SpeakeasyHTTPClient} honors this setting. If you are using a custom HTTP client, + * it is up to the custom client to honor this setting. + *

+ * + * @param enabled Whether to enable debug logging. + * @return The builder instance. + */ + public Builder enableHTTPDebugLogging(boolean enabled) { + this.sdkConfiguration.client().enableDebugLogging(enabled); + return this; + } + // Visible for testing, may be accessed via reflection in tests Builder _hooks(com.airbyte.api.utils.Hooks hooks) { sdkConfiguration.setHooks(hooks); @@ -213,30 +265,22 @@ Builder _hooks(Consumer consumer) { consumer.accept(sdkConfiguration.hooks()); return this; } - + /** * Builds a new instance of the SDK. * * @return The SDK instance. */ public Airbyte build() { - if (sdkConfiguration.defaultClient == null) { - sdkConfiguration.defaultClient = new SpeakeasyHTTPClient(); - } - if (sdkConfiguration.securitySource == null) { - sdkConfiguration.securitySource = SecuritySource.of(null); - } - if (sdkConfiguration.serverUrl == null || sdkConfiguration.serverUrl.isBlank()) { - sdkConfiguration.serverUrl = SERVERS[0]; - sdkConfiguration.serverIdx = 0; - } - if (sdkConfiguration.serverUrl.endsWith("/")) { - sdkConfiguration.serverUrl = sdkConfiguration.serverUrl.substring(0, sdkConfiguration.serverUrl.length() - 1); + if (serverUrl == null || serverUrl.isBlank()) { + serverUrl = SERVERS[0]; + sdkConfiguration.setServerIdx(0); } + sdkConfiguration.setServerUrl(serverUrl); return new Airbyte(sdkConfiguration); } } - + /** * Get a new instance of the SDK builder to configure a new instance of the SDK. * @@ -246,8 +290,8 @@ public static Builder builder() { return new Builder(); } - private Airbyte(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; + public Airbyte(SDKConfiguration sdkConfiguration) { + sdkConfiguration.initialize(); this.connections = new Connections(sdkConfiguration); this.destinations = new Destinations(sdkConfiguration); this.health = new Health(sdkConfiguration); @@ -262,6 +306,22 @@ private Airbyte(SDKConfiguration sdkConfiguration) { this.declarativeSourceDefinitions = new DeclarativeSourceDefinitions(sdkConfiguration); this.destinationDefinitions = new DestinationDefinitions(sdkConfiguration); this.sourceDefinitions = new SourceDefinitions(sdkConfiguration); - this.sdkConfiguration.initialize(); + SdkInitData data = sdkConfiguration.hooks().sdkInit( + new SdkInitData( + sdkConfiguration.resolvedServerUrl(), + sdkConfiguration.client())); + sdkConfiguration.setServerUrl(data.baseUrl()); + sdkConfiguration.setClient(data.client()); + this.asyncSDK = new AsyncAirbyte(this, sdkConfiguration); + } + + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncAirbyte async() { + return asyncSDK; } + } diff --git a/src/main/java/com/airbyte/api/AsyncAirbyte.java b/src/main/java/com/airbyte/api/AsyncAirbyte.java new file mode 100644 index 000000000..7f5bc7ffd --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncAirbyte.java @@ -0,0 +1,128 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import com.airbyte.api.utils.Headers; + +/** + * airbyte-api: Programmatically control Airbyte Cloud, OSS & Enterprise. + */ +public class AsyncAirbyte { + private static final Headers _headers = Headers.EMPTY; + + private final AsyncConnections connections; + + private final AsyncDestinations destinations; + + private final AsyncHealth health; + + private final AsyncJobs jobs; + + private final AsyncOrganizations organizations; + + private final AsyncPermissions permissions; + + private final AsyncSources sources; + + private final AsyncStreams streams; + + private final AsyncTags tags; + + private final AsyncUsers users; + + private final AsyncWorkspaces workspaces; + + private final AsyncDeclarativeSourceDefinitions declarativeSourceDefinitions; + + private final AsyncDestinationDefinitions destinationDefinitions; + + private final AsyncSourceDefinitions sourceDefinitions; + + public AsyncConnections connections() { + return connections; + } + + public AsyncDestinations destinations() { + return destinations; + } + + public AsyncHealth health() { + return health; + } + + public AsyncJobs jobs() { + return jobs; + } + + public AsyncOrganizations organizations() { + return organizations; + } + + public AsyncPermissions permissions() { + return permissions; + } + + public AsyncSources sources() { + return sources; + } + + public AsyncStreams streams() { + return streams; + } + + public AsyncTags tags() { + return tags; + } + + public AsyncUsers users() { + return users; + } + + public AsyncWorkspaces workspaces() { + return workspaces; + } + + public AsyncDeclarativeSourceDefinitions declarativeSourceDefinitions() { + return declarativeSourceDefinitions; + } + + public AsyncDestinationDefinitions destinationDefinitions() { + return destinationDefinitions; + } + + public AsyncSourceDefinitions sourceDefinitions() { + return sourceDefinitions; + } + + private final SDKConfiguration sdkConfiguration; + private final Airbyte syncSDK; + + AsyncAirbyte(Airbyte syncSDK, SDKConfiguration sdkConfiguration) { + this.syncSDK = syncSDK; + this.sdkConfiguration = sdkConfiguration; + this.connections = new AsyncConnections(syncSDK.connections(), sdkConfiguration); + this.destinations = new AsyncDestinations(syncSDK.destinations(), sdkConfiguration); + this.health = new AsyncHealth(syncSDK.health(), sdkConfiguration); + this.jobs = new AsyncJobs(syncSDK.jobs(), sdkConfiguration); + this.organizations = new AsyncOrganizations(syncSDK.organizations(), sdkConfiguration); + this.permissions = new AsyncPermissions(syncSDK.permissions(), sdkConfiguration); + this.sources = new AsyncSources(syncSDK.sources(), sdkConfiguration); + this.streams = new AsyncStreams(syncSDK.streams(), sdkConfiguration); + this.tags = new AsyncTags(syncSDK.tags(), sdkConfiguration); + this.users = new AsyncUsers(syncSDK.users(), sdkConfiguration); + this.workspaces = new AsyncWorkspaces(syncSDK.workspaces(), sdkConfiguration); + this.declarativeSourceDefinitions = new AsyncDeclarativeSourceDefinitions(syncSDK.declarativeSourceDefinitions(), sdkConfiguration); + this.destinationDefinitions = new AsyncDestinationDefinitions(syncSDK.destinationDefinitions(), sdkConfiguration); + this.sourceDefinitions = new AsyncSourceDefinitions(syncSDK.sourceDefinitions(), sdkConfiguration); + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Airbyte sync() { + return syncSDK; + } +} diff --git a/src/main/java/com/airbyte/api/AsyncConnections.java b/src/main/java/com/airbyte/api/AsyncConnections.java new file mode 100644 index 000000000..5ec408682 --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncConnections.java @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.DeleteConnectionRequest; +import com.airbyte.api.models.operations.GetConnectionRequest; +import com.airbyte.api.models.operations.ListConnectionsRequest; +import com.airbyte.api.models.operations.PatchConnectionRequest; +import com.airbyte.api.models.operations.async.CreateConnectionRequestBuilder; +import com.airbyte.api.models.operations.async.CreateConnectionResponse; +import com.airbyte.api.models.operations.async.DeleteConnectionRequestBuilder; +import com.airbyte.api.models.operations.async.DeleteConnectionResponse; +import com.airbyte.api.models.operations.async.GetConnectionRequestBuilder; +import com.airbyte.api.models.operations.async.GetConnectionResponse; +import com.airbyte.api.models.operations.async.ListConnectionsRequestBuilder; +import com.airbyte.api.models.operations.async.ListConnectionsResponse; +import com.airbyte.api.models.operations.async.PatchConnectionRequestBuilder; +import com.airbyte.api.models.operations.async.PatchConnectionResponse; +import com.airbyte.api.models.shared.ConnectionCreateRequest; +import com.airbyte.api.operations.CreateConnection; +import com.airbyte.api.operations.DeleteConnection; +import com.airbyte.api.operations.GetConnection; +import com.airbyte.api.operations.ListConnections; +import com.airbyte.api.operations.PatchConnection; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncConnections { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Connections syncSDK; + + AsyncConnections(Connections syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Connections sync() { + return syncSDK; + } + + + /** + * Create a connection + * + * @return The async call builder + */ + public CreateConnectionRequestBuilder createConnection() { + return new CreateConnectionRequestBuilder(sdkConfiguration); + } + + /** + * Create a connection + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createConnection(ConnectionCreateRequest request) { + AsyncRequestOperation operation + = new CreateConnection.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Delete a Connection + * + * @return The async call builder + */ + public DeleteConnectionRequestBuilder deleteConnection() { + return new DeleteConnectionRequestBuilder(sdkConfiguration); + } + + /** + * Delete a Connection + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteConnection(DeleteConnectionRequest request) { + AsyncRequestOperation operation + = new DeleteConnection.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get Connection details + * + * @return The async call builder + */ + public GetConnectionRequestBuilder getConnection() { + return new GetConnectionRequestBuilder(sdkConfiguration); + } + + /** + * Get Connection details + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getConnection(GetConnectionRequest request) { + AsyncRequestOperation operation + = new GetConnection.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List connections + * + * @return The async call builder + */ + public ListConnectionsRequestBuilder listConnections() { + return new ListConnectionsRequestBuilder(sdkConfiguration); + } + + /** + * List connections + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listConnections(ListConnectionsRequest request) { + AsyncRequestOperation operation + = new ListConnections.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update Connection details + * + * @return The async call builder + */ + public PatchConnectionRequestBuilder patchConnection() { + return new PatchConnectionRequestBuilder(sdkConfiguration); + } + + /** + * Update Connection details + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture patchConnection(PatchConnectionRequest request) { + AsyncRequestOperation operation + = new PatchConnection.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncDeclarativeSourceDefinitions.java b/src/main/java/com/airbyte/api/AsyncDeclarativeSourceDefinitions.java new file mode 100644 index 000000000..cc5b23328 --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncDeclarativeSourceDefinitions.java @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionRequest; +import com.airbyte.api.models.operations.DeleteDeclarativeSourceDefinitionRequest; +import com.airbyte.api.models.operations.GetDeclarativeSourceDefinitionRequest; +import com.airbyte.api.models.operations.ListDeclarativeSourceDefinitionsRequest; +import com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionRequest; +import com.airbyte.api.models.operations.async.CreateDeclarativeSourceDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.CreateDeclarativeSourceDefinitionResponse; +import com.airbyte.api.models.operations.async.DeleteDeclarativeSourceDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.DeleteDeclarativeSourceDefinitionResponse; +import com.airbyte.api.models.operations.async.GetDeclarativeSourceDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.GetDeclarativeSourceDefinitionResponse; +import com.airbyte.api.models.operations.async.ListDeclarativeSourceDefinitionsRequestBuilder; +import com.airbyte.api.models.operations.async.ListDeclarativeSourceDefinitionsResponse; +import com.airbyte.api.models.operations.async.UpdateDeclarativeSourceDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.UpdateDeclarativeSourceDefinitionResponse; +import com.airbyte.api.operations.CreateDeclarativeSourceDefinition; +import com.airbyte.api.operations.DeleteDeclarativeSourceDefinition; +import com.airbyte.api.operations.GetDeclarativeSourceDefinition; +import com.airbyte.api.operations.ListDeclarativeSourceDefinitions; +import com.airbyte.api.operations.UpdateDeclarativeSourceDefinition; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncDeclarativeSourceDefinitions { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final DeclarativeSourceDefinitions syncSDK; + + AsyncDeclarativeSourceDefinitions(DeclarativeSourceDefinitions syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public DeclarativeSourceDefinitions sync() { + return syncSDK; + } + + + /** + * Create a declarative source definition. + * + * @return The async call builder + */ + public CreateDeclarativeSourceDefinitionRequestBuilder createDeclarativeSourceDefinition() { + return new CreateDeclarativeSourceDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Create a declarative source definition. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createDeclarativeSourceDefinition(CreateDeclarativeSourceDefinitionRequest request) { + AsyncRequestOperation operation + = new CreateDeclarativeSourceDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Delete a declarative source definition. + * + * @return The async call builder + */ + public DeleteDeclarativeSourceDefinitionRequestBuilder deleteDeclarativeSourceDefinition() { + return new DeleteDeclarativeSourceDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Delete a declarative source definition. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteDeclarativeSourceDefinition(DeleteDeclarativeSourceDefinitionRequest request) { + AsyncRequestOperation operation + = new DeleteDeclarativeSourceDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get declarative source definition details. + * + * @return The async call builder + */ + public GetDeclarativeSourceDefinitionRequestBuilder getDeclarativeSourceDefinition() { + return new GetDeclarativeSourceDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Get declarative source definition details. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getDeclarativeSourceDefinition(GetDeclarativeSourceDefinitionRequest request) { + AsyncRequestOperation operation + = new GetDeclarativeSourceDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List declarative source definitions. + * + * @return The async call builder + */ + public ListDeclarativeSourceDefinitionsRequestBuilder listDeclarativeSourceDefinitions() { + return new ListDeclarativeSourceDefinitionsRequestBuilder(sdkConfiguration); + } + + /** + * List declarative source definitions. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listDeclarativeSourceDefinitions(ListDeclarativeSourceDefinitionsRequest request) { + AsyncRequestOperation operation + = new ListDeclarativeSourceDefinitions.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update declarative source definition details. + * + * @return The async call builder + */ + public UpdateDeclarativeSourceDefinitionRequestBuilder updateDeclarativeSourceDefinition() { + return new UpdateDeclarativeSourceDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Update declarative source definition details. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture updateDeclarativeSourceDefinition(UpdateDeclarativeSourceDefinitionRequest request) { + AsyncRequestOperation operation + = new UpdateDeclarativeSourceDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncDestinationDefinitions.java b/src/main/java/com/airbyte/api/AsyncDestinationDefinitions.java new file mode 100644 index 000000000..242730d2b --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncDestinationDefinitions.java @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.CreateDestinationDefinitionRequest; +import com.airbyte.api.models.operations.DeleteDestinationDefinitionRequest; +import com.airbyte.api.models.operations.GetDestinationDefinitionRequest; +import com.airbyte.api.models.operations.ListDestinationDefinitionsRequest; +import com.airbyte.api.models.operations.UpdateDestinationDefinitionRequest; +import com.airbyte.api.models.operations.async.CreateDestinationDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.CreateDestinationDefinitionResponse; +import com.airbyte.api.models.operations.async.DeleteDestinationDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.DeleteDestinationDefinitionResponse; +import com.airbyte.api.models.operations.async.GetDestinationDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.GetDestinationDefinitionResponse; +import com.airbyte.api.models.operations.async.ListDestinationDefinitionsRequestBuilder; +import com.airbyte.api.models.operations.async.ListDestinationDefinitionsResponse; +import com.airbyte.api.models.operations.async.UpdateDestinationDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.UpdateDestinationDefinitionResponse; +import com.airbyte.api.operations.CreateDestinationDefinition; +import com.airbyte.api.operations.DeleteDestinationDefinition; +import com.airbyte.api.operations.GetDestinationDefinition; +import com.airbyte.api.operations.ListDestinationDefinitions; +import com.airbyte.api.operations.UpdateDestinationDefinition; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncDestinationDefinitions { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final DestinationDefinitions syncSDK; + + AsyncDestinationDefinitions(DestinationDefinitions syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public DestinationDefinitions sync() { + return syncSDK; + } + + + /** + * Create a destination definition. + * + * @return The async call builder + */ + public CreateDestinationDefinitionRequestBuilder createDestinationDefinition() { + return new CreateDestinationDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Create a destination definition. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createDestinationDefinition(CreateDestinationDefinitionRequest request) { + AsyncRequestOperation operation + = new CreateDestinationDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Delete a destination definition. + * + * @return The async call builder + */ + public DeleteDestinationDefinitionRequestBuilder deleteDestinationDefinition() { + return new DeleteDestinationDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Delete a destination definition. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteDestinationDefinition(DeleteDestinationDefinitionRequest request) { + AsyncRequestOperation operation + = new DeleteDestinationDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get destination definition details. + * + * @return The async call builder + */ + public GetDestinationDefinitionRequestBuilder getDestinationDefinition() { + return new GetDestinationDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Get destination definition details. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getDestinationDefinition(GetDestinationDefinitionRequest request) { + AsyncRequestOperation operation + = new GetDestinationDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List destination definitions. + * + * @return The async call builder + */ + public ListDestinationDefinitionsRequestBuilder listDestinationDefinitions() { + return new ListDestinationDefinitionsRequestBuilder(sdkConfiguration); + } + + /** + * List destination definitions. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listDestinationDefinitions(ListDestinationDefinitionsRequest request) { + AsyncRequestOperation operation + = new ListDestinationDefinitions.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update destination definition details. + * + * @return The async call builder + */ + public UpdateDestinationDefinitionRequestBuilder updateDestinationDefinition() { + return new UpdateDestinationDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Update destination definition details. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture updateDestinationDefinition(UpdateDestinationDefinitionRequest request) { + AsyncRequestOperation operation + = new UpdateDestinationDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncDestinations.java b/src/main/java/com/airbyte/api/AsyncDestinations.java new file mode 100644 index 000000000..3ae57493e --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncDestinations.java @@ -0,0 +1,212 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.DeleteDestinationRequest; +import com.airbyte.api.models.operations.GetDestinationRequest; +import com.airbyte.api.models.operations.ListDestinationsRequest; +import com.airbyte.api.models.operations.PatchDestinationRequest; +import com.airbyte.api.models.operations.PutDestinationRequest; +import com.airbyte.api.models.operations.async.CreateDestinationRequestBuilder; +import com.airbyte.api.models.operations.async.CreateDestinationResponse; +import com.airbyte.api.models.operations.async.DeleteDestinationRequestBuilder; +import com.airbyte.api.models.operations.async.DeleteDestinationResponse; +import com.airbyte.api.models.operations.async.GetDestinationRequestBuilder; +import com.airbyte.api.models.operations.async.GetDestinationResponse; +import com.airbyte.api.models.operations.async.ListDestinationsRequestBuilder; +import com.airbyte.api.models.operations.async.ListDestinationsResponse; +import com.airbyte.api.models.operations.async.PatchDestinationRequestBuilder; +import com.airbyte.api.models.operations.async.PatchDestinationResponse; +import com.airbyte.api.models.operations.async.PutDestinationRequestBuilder; +import com.airbyte.api.models.operations.async.PutDestinationResponse; +import com.airbyte.api.models.shared.DestinationCreateRequest; +import com.airbyte.api.operations.CreateDestination; +import com.airbyte.api.operations.DeleteDestination; +import com.airbyte.api.operations.GetDestination; +import com.airbyte.api.operations.ListDestinations; +import com.airbyte.api.operations.PatchDestination; +import com.airbyte.api.operations.PutDestination; +import com.airbyte.api.utils.Headers; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; + + +public class AsyncDestinations { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Destinations syncSDK; + + AsyncDestinations(Destinations syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Destinations sync() { + return syncSDK; + } + + + /** + * Create a destination + * + *

Creates a destination given a name, workspace id, and a json blob containing the configuration for + * the source. + * + * @return The async call builder + */ + public CreateDestinationRequestBuilder createDestination() { + return new CreateDestinationRequestBuilder(sdkConfiguration); + } + + /** + * Create a destination + * + *

Creates a destination given a name, workspace id, and a json blob containing the configuration for + * the source. + * + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createDestinationDirect() { + return createDestination(Optional.empty()); + } + + /** + * Create a destination + * + *

Creates a destination given a name, workspace id, and a json blob containing the configuration for + * the source. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createDestination(Optional request) { + AsyncRequestOperation, CreateDestinationResponse> operation + = new CreateDestination.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Delete a Destination + * + * @return The async call builder + */ + public DeleteDestinationRequestBuilder deleteDestination() { + return new DeleteDestinationRequestBuilder(sdkConfiguration); + } + + /** + * Delete a Destination + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteDestination(DeleteDestinationRequest request) { + AsyncRequestOperation operation + = new DeleteDestination.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get Destination details + * + * @return The async call builder + */ + public GetDestinationRequestBuilder getDestination() { + return new GetDestinationRequestBuilder(sdkConfiguration); + } + + /** + * Get Destination details + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getDestination(GetDestinationRequest request) { + AsyncRequestOperation operation + = new GetDestination.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List destinations + * + * @return The async call builder + */ + public ListDestinationsRequestBuilder listDestinations() { + return new ListDestinationsRequestBuilder(sdkConfiguration); + } + + /** + * List destinations + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listDestinations(ListDestinationsRequest request) { + AsyncRequestOperation operation + = new ListDestinations.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update a Destination + * + * @return The async call builder + */ + public PatchDestinationRequestBuilder patchDestination() { + return new PatchDestinationRequestBuilder(sdkConfiguration); + } + + /** + * Update a Destination + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture patchDestination(PatchDestinationRequest request) { + AsyncRequestOperation operation + = new PatchDestination.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update a Destination and fully overwrite it + * + * @return The async call builder + */ + public PutDestinationRequestBuilder putDestination() { + return new PutDestinationRequestBuilder(sdkConfiguration); + } + + /** + * Update a Destination and fully overwrite it + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture putDestination(PutDestinationRequest request) { + AsyncRequestOperation operation + = new PutDestination.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncHealth.java b/src/main/java/com/airbyte/api/AsyncHealth.java new file mode 100644 index 000000000..9d3b8356a --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncHealth.java @@ -0,0 +1,56 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestlessOperation; + +import com.airbyte.api.models.operations.async.GetHealthCheckRequestBuilder; +import com.airbyte.api.models.operations.async.GetHealthCheckResponse; +import com.airbyte.api.operations.GetHealthCheck; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncHealth { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Health syncSDK; + + AsyncHealth(Health syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Health sync() { + return syncSDK; + } + + + /** + * Health Check + * + * @return The async call builder + */ + public GetHealthCheckRequestBuilder getHealthCheck() { + return new GetHealthCheckRequestBuilder(sdkConfiguration); + } + + /** + * Health Check + * + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getHealthCheckDirect() { + AsyncRequestlessOperation operation + = new GetHealthCheck.Async(sdkConfiguration, _headers); + return operation.doRequest() + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncJobs.java b/src/main/java/com/airbyte/api/AsyncJobs.java new file mode 100644 index 000000000..b79e8bfa0 --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncJobs.java @@ -0,0 +1,139 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.CancelJobRequest; +import com.airbyte.api.models.operations.GetJobRequest; +import com.airbyte.api.models.operations.ListJobsRequest; +import com.airbyte.api.models.operations.async.CancelJobRequestBuilder; +import com.airbyte.api.models.operations.async.CancelJobResponse; +import com.airbyte.api.models.operations.async.CreateJobRequestBuilder; +import com.airbyte.api.models.operations.async.CreateJobResponse; +import com.airbyte.api.models.operations.async.GetJobRequestBuilder; +import com.airbyte.api.models.operations.async.GetJobResponse; +import com.airbyte.api.models.operations.async.ListJobsRequestBuilder; +import com.airbyte.api.models.operations.async.ListJobsResponse; +import com.airbyte.api.models.shared.JobCreateRequest; +import com.airbyte.api.operations.CancelJob; +import com.airbyte.api.operations.CreateJob; +import com.airbyte.api.operations.GetJob; +import com.airbyte.api.operations.ListJobs; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncJobs { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Jobs syncSDK; + + AsyncJobs(Jobs syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Jobs sync() { + return syncSDK; + } + + + /** + * Cancel a running Job + * + * @return The async call builder + */ + public CancelJobRequestBuilder cancelJob() { + return new CancelJobRequestBuilder(sdkConfiguration); + } + + /** + * Cancel a running Job + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture cancelJob(CancelJobRequest request) { + AsyncRequestOperation operation + = new CancelJob.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Trigger a sync or reset job of a connection + * + * @return The async call builder + */ + public CreateJobRequestBuilder createJob() { + return new CreateJobRequestBuilder(sdkConfiguration); + } + + /** + * Trigger a sync or reset job of a connection + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createJob(JobCreateRequest request) { + AsyncRequestOperation operation + = new CreateJob.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get Job status and details + * + * @return The async call builder + */ + public GetJobRequestBuilder getJob() { + return new GetJobRequestBuilder(sdkConfiguration); + } + + /** + * Get Job status and details + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getJob(GetJobRequest request) { + AsyncRequestOperation operation + = new GetJob.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List Jobs by sync type + * + * @return The async call builder + */ + public ListJobsRequestBuilder listJobs() { + return new ListJobsRequestBuilder(sdkConfiguration); + } + + /** + * List Jobs by sync type + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listJobs(ListJobsRequest request) { + AsyncRequestOperation operation + = new ListJobs.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncOrganizations.java b/src/main/java/com/airbyte/api/AsyncOrganizations.java new file mode 100644 index 000000000..81db20c35 --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncOrganizations.java @@ -0,0 +1,98 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestlessOperation; + +import com.airbyte.api.models.operations.CreateOrUpdateOrganizationOAuthCredentialsRequest; +import com.airbyte.api.models.operations.async.CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder; +import com.airbyte.api.models.operations.async.CreateOrUpdateOrganizationOAuthCredentialsResponse; +import com.airbyte.api.models.operations.async.ListOrganizationsForUserRequestBuilder; +import com.airbyte.api.models.operations.async.ListOrganizationsForUserResponse; +import com.airbyte.api.operations.CreateOrUpdateOrganizationOAuthCredentials; +import com.airbyte.api.operations.ListOrganizationsForUser; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncOrganizations { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Organizations syncSDK; + + AsyncOrganizations(Organizations syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Organizations sync() { + return syncSDK; + } + + + /** + * Create OAuth override credentials for an organization and source type. + * + *

Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for + * source/destination OAuth. + * In order to determine what the credential configuration needs to be, please see the connector + * specification of the relevant source/destination. + * + * @return The async call builder + */ + public CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder createOrUpdateOrganizationOAuthCredentials() { + return new CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder(sdkConfiguration); + } + + /** + * Create OAuth override credentials for an organization and source type. + * + *

Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for + * source/destination OAuth. + * In order to determine what the credential configuration needs to be, please see the connector + * specification of the relevant source/destination. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createOrUpdateOrganizationOAuthCredentials(CreateOrUpdateOrganizationOAuthCredentialsRequest request) { + AsyncRequestOperation operation + = new CreateOrUpdateOrganizationOAuthCredentials.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List all organizations for a user + * + *

Lists users organizations. + * + * @return The async call builder + */ + public ListOrganizationsForUserRequestBuilder listOrganizationsForUser() { + return new ListOrganizationsForUserRequestBuilder(sdkConfiguration); + } + + /** + * List all organizations for a user + * + *

Lists users organizations. + * + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listOrganizationsForUserDirect() { + AsyncRequestlessOperation operation + = new ListOrganizationsForUser.Async(sdkConfiguration, _headers); + return operation.doRequest() + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncPermissions.java b/src/main/java/com/airbyte/api/AsyncPermissions.java new file mode 100644 index 000000000..860c2b44e --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncPermissions.java @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.DeletePermissionRequest; +import com.airbyte.api.models.operations.GetPermissionRequest; +import com.airbyte.api.models.operations.ListPermissionsRequest; +import com.airbyte.api.models.operations.UpdatePermissionRequest; +import com.airbyte.api.models.operations.async.CreatePermissionRequestBuilder; +import com.airbyte.api.models.operations.async.CreatePermissionResponse; +import com.airbyte.api.models.operations.async.DeletePermissionRequestBuilder; +import com.airbyte.api.models.operations.async.DeletePermissionResponse; +import com.airbyte.api.models.operations.async.GetPermissionRequestBuilder; +import com.airbyte.api.models.operations.async.GetPermissionResponse; +import com.airbyte.api.models.operations.async.ListPermissionsRequestBuilder; +import com.airbyte.api.models.operations.async.ListPermissionsResponse; +import com.airbyte.api.models.operations.async.UpdatePermissionRequestBuilder; +import com.airbyte.api.models.operations.async.UpdatePermissionResponse; +import com.airbyte.api.models.shared.PermissionCreateRequest; +import com.airbyte.api.operations.CreatePermission; +import com.airbyte.api.operations.DeletePermission; +import com.airbyte.api.operations.GetPermission; +import com.airbyte.api.operations.ListPermissions; +import com.airbyte.api.operations.UpdatePermission; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncPermissions { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Permissions syncSDK; + + AsyncPermissions(Permissions syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Permissions sync() { + return syncSDK; + } + + + /** + * Create a permission + * + * @return The async call builder + */ + public CreatePermissionRequestBuilder createPermission() { + return new CreatePermissionRequestBuilder(sdkConfiguration); + } + + /** + * Create a permission + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createPermission(PermissionCreateRequest request) { + AsyncRequestOperation operation + = new CreatePermission.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Delete a Permission + * + * @return The async call builder + */ + public DeletePermissionRequestBuilder deletePermission() { + return new DeletePermissionRequestBuilder(sdkConfiguration); + } + + /** + * Delete a Permission + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deletePermission(DeletePermissionRequest request) { + AsyncRequestOperation operation + = new DeletePermission.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get Permission details + * + * @return The async call builder + */ + public GetPermissionRequestBuilder getPermission() { + return new GetPermissionRequestBuilder(sdkConfiguration); + } + + /** + * Get Permission details + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getPermission(GetPermissionRequest request) { + AsyncRequestOperation operation + = new GetPermission.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List Permissions by user id + * + * @return The async call builder + */ + public ListPermissionsRequestBuilder listPermissions() { + return new ListPermissionsRequestBuilder(sdkConfiguration); + } + + /** + * List Permissions by user id + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listPermissions(ListPermissionsRequest request) { + AsyncRequestOperation operation + = new ListPermissions.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update a permission + * + * @return The async call builder + */ + public UpdatePermissionRequestBuilder updatePermission() { + return new UpdatePermissionRequestBuilder(sdkConfiguration); + } + + /** + * Update a permission + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture updatePermission(UpdatePermissionRequest request) { + AsyncRequestOperation operation + = new UpdatePermission.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncSourceDefinitions.java b/src/main/java/com/airbyte/api/AsyncSourceDefinitions.java new file mode 100644 index 000000000..fc0758ad7 --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncSourceDefinitions.java @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.CreateSourceDefinitionRequest; +import com.airbyte.api.models.operations.DeleteSourceDefinitionRequest; +import com.airbyte.api.models.operations.GetSourceDefinitionRequest; +import com.airbyte.api.models.operations.ListSourceDefinitionsRequest; +import com.airbyte.api.models.operations.UpdateSourceDefinitionRequest; +import com.airbyte.api.models.operations.async.CreateSourceDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.CreateSourceDefinitionResponse; +import com.airbyte.api.models.operations.async.DeleteSourceDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.DeleteSourceDefinitionResponse; +import com.airbyte.api.models.operations.async.GetSourceDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.GetSourceDefinitionResponse; +import com.airbyte.api.models.operations.async.ListSourceDefinitionsRequestBuilder; +import com.airbyte.api.models.operations.async.ListSourceDefinitionsResponse; +import com.airbyte.api.models.operations.async.UpdateSourceDefinitionRequestBuilder; +import com.airbyte.api.models.operations.async.UpdateSourceDefinitionResponse; +import com.airbyte.api.operations.CreateSourceDefinition; +import com.airbyte.api.operations.DeleteSourceDefinition; +import com.airbyte.api.operations.GetSourceDefinition; +import com.airbyte.api.operations.ListSourceDefinitions; +import com.airbyte.api.operations.UpdateSourceDefinition; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncSourceDefinitions { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final SourceDefinitions syncSDK; + + AsyncSourceDefinitions(SourceDefinitions syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public SourceDefinitions sync() { + return syncSDK; + } + + + /** + * Create a source definition. + * + * @return The async call builder + */ + public CreateSourceDefinitionRequestBuilder createSourceDefinition() { + return new CreateSourceDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Create a source definition. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createSourceDefinition(CreateSourceDefinitionRequest request) { + AsyncRequestOperation operation + = new CreateSourceDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Delete a source definition. + * + * @return The async call builder + */ + public DeleteSourceDefinitionRequestBuilder deleteSourceDefinition() { + return new DeleteSourceDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Delete a source definition. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteSourceDefinition(DeleteSourceDefinitionRequest request) { + AsyncRequestOperation operation + = new DeleteSourceDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get source definition details. + * + * @return The async call builder + */ + public GetSourceDefinitionRequestBuilder getSourceDefinition() { + return new GetSourceDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Get source definition details. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getSourceDefinition(GetSourceDefinitionRequest request) { + AsyncRequestOperation operation + = new GetSourceDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List source definitions. + * + * @return The async call builder + */ + public ListSourceDefinitionsRequestBuilder listSourceDefinitions() { + return new ListSourceDefinitionsRequestBuilder(sdkConfiguration); + } + + /** + * List source definitions. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listSourceDefinitions(ListSourceDefinitionsRequest request) { + AsyncRequestOperation operation + = new ListSourceDefinitions.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update source definition details. + * + * @return The async call builder + */ + public UpdateSourceDefinitionRequestBuilder updateSourceDefinition() { + return new UpdateSourceDefinitionRequestBuilder(sdkConfiguration); + } + + /** + * Update source definition details. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture updateSourceDefinition(UpdateSourceDefinitionRequest request) { + AsyncRequestOperation operation + = new UpdateSourceDefinition.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncSources.java b/src/main/java/com/airbyte/api/AsyncSources.java new file mode 100644 index 000000000..b1f9974fc --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncSources.java @@ -0,0 +1,257 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.DeleteSourceRequest; +import com.airbyte.api.models.operations.GetSourceRequest; +import com.airbyte.api.models.operations.ListSourcesRequest; +import com.airbyte.api.models.operations.PatchSourceRequest; +import com.airbyte.api.models.operations.PutSourceRequest; +import com.airbyte.api.models.operations.async.CreateSourceRequestBuilder; +import com.airbyte.api.models.operations.async.CreateSourceResponse; +import com.airbyte.api.models.operations.async.DeleteSourceRequestBuilder; +import com.airbyte.api.models.operations.async.DeleteSourceResponse; +import com.airbyte.api.models.operations.async.GetSourceRequestBuilder; +import com.airbyte.api.models.operations.async.GetSourceResponse; +import com.airbyte.api.models.operations.async.InitiateOAuthRequestBuilder; +import com.airbyte.api.models.operations.async.InitiateOAuthResponse; +import com.airbyte.api.models.operations.async.ListSourcesRequestBuilder; +import com.airbyte.api.models.operations.async.ListSourcesResponse; +import com.airbyte.api.models.operations.async.PatchSourceRequestBuilder; +import com.airbyte.api.models.operations.async.PatchSourceResponse; +import com.airbyte.api.models.operations.async.PutSourceRequestBuilder; +import com.airbyte.api.models.operations.async.PutSourceResponse; +import com.airbyte.api.models.shared.InitiateOauthRequest; +import com.airbyte.api.models.shared.SourceCreateRequest; +import com.airbyte.api.operations.CreateSource; +import com.airbyte.api.operations.DeleteSource; +import com.airbyte.api.operations.GetSource; +import com.airbyte.api.operations.InitiateOAuth; +import com.airbyte.api.operations.ListSources; +import com.airbyte.api.operations.PatchSource; +import com.airbyte.api.operations.PutSource; +import com.airbyte.api.utils.Headers; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; + + +public class AsyncSources { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Sources syncSDK; + + AsyncSources(Sources syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Sources sync() { + return syncSDK; + } + + + /** + * Create a source + * + *

Creates a source given a name, workspace id, and a json blob containing the configuration for the + * source. + * + * @return The async call builder + */ + public CreateSourceRequestBuilder createSource() { + return new CreateSourceRequestBuilder(sdkConfiguration); + } + + /** + * Create a source + * + *

Creates a source given a name, workspace id, and a json blob containing the configuration for the + * source. + * + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createSourceDirect() { + return createSource(Optional.empty()); + } + + /** + * Create a source + * + *

Creates a source given a name, workspace id, and a json blob containing the configuration for the + * source. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createSource(Optional request) { + AsyncRequestOperation, CreateSourceResponse> operation + = new CreateSource.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Delete a Source + * + * @return The async call builder + */ + public DeleteSourceRequestBuilder deleteSource() { + return new DeleteSourceRequestBuilder(sdkConfiguration); + } + + /** + * Delete a Source + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteSource(DeleteSourceRequest request) { + AsyncRequestOperation operation + = new DeleteSource.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get Source details + * + * @return The async call builder + */ + public GetSourceRequestBuilder getSource() { + return new GetSourceRequestBuilder(sdkConfiguration); + } + + /** + * Get Source details + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getSource(GetSourceRequest request) { + AsyncRequestOperation operation + = new GetSource.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Initiate OAuth for a source + * + *

Given a source ID, workspace ID, and redirect URL, initiates OAuth for the source. + * + *

This returns a fully formed URL for performing user authentication against the relevant source + * identity provider (IdP). Once authentication has been completed, the IdP will redirect to an Airbyte + * endpoint which will save the access and refresh tokens off as a secret and return the secret ID to + * the redirect URL specified in the `secret_id` query string parameter. + * + *

That secret ID can be used to create a source with credentials in place of actual tokens. + * + * @return The async call builder + */ + public InitiateOAuthRequestBuilder initiateOAuth() { + return new InitiateOAuthRequestBuilder(sdkConfiguration); + } + + /** + * Initiate OAuth for a source + * + *

Given a source ID, workspace ID, and redirect URL, initiates OAuth for the source. + * + *

This returns a fully formed URL for performing user authentication against the relevant source + * identity provider (IdP). Once authentication has been completed, the IdP will redirect to an Airbyte + * endpoint which will save the access and refresh tokens off as a secret and return the secret ID to + * the redirect URL specified in the `secret_id` query string parameter. + * + *

That secret ID can be used to create a source with credentials in place of actual tokens. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture initiateOAuth(InitiateOauthRequest request) { + AsyncRequestOperation operation + = new InitiateOAuth.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List sources + * + * @return The async call builder + */ + public ListSourcesRequestBuilder listSources() { + return new ListSourcesRequestBuilder(sdkConfiguration); + } + + /** + * List sources + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listSources(ListSourcesRequest request) { + AsyncRequestOperation operation + = new ListSources.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update a Source + * + * @return The async call builder + */ + public PatchSourceRequestBuilder patchSource() { + return new PatchSourceRequestBuilder(sdkConfiguration); + } + + /** + * Update a Source + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture patchSource(PatchSourceRequest request) { + AsyncRequestOperation operation + = new PatchSource.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update a Source and fully overwrite it + * + * @return The async call builder + */ + public PutSourceRequestBuilder putSource() { + return new PutSourceRequestBuilder(sdkConfiguration); + } + + /** + * Update a Source and fully overwrite it + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture putSource(PutSourceRequest request) { + AsyncRequestOperation operation + = new PutSource.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncStreams.java b/src/main/java/com/airbyte/api/AsyncStreams.java new file mode 100644 index 000000000..8502bef4d --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncStreams.java @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.GetStreamPropertiesRequest; +import com.airbyte.api.models.operations.async.GetStreamPropertiesRequestBuilder; +import com.airbyte.api.models.operations.async.GetStreamPropertiesResponse; +import com.airbyte.api.operations.GetStreamProperties; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncStreams { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Streams syncSDK; + + AsyncStreams(Streams syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Streams sync() { + return syncSDK; + } + + + /** + * Get stream properties + * + * @return The async call builder + */ + public GetStreamPropertiesRequestBuilder getStreamProperties() { + return new GetStreamPropertiesRequestBuilder(sdkConfiguration); + } + + /** + * Get stream properties + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getStreamProperties(GetStreamPropertiesRequest request) { + AsyncRequestOperation operation + = new GetStreamProperties.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncTags.java b/src/main/java/com/airbyte/api/AsyncTags.java new file mode 100644 index 000000000..d43f2236e --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncTags.java @@ -0,0 +1,186 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.DeleteTagRequest; +import com.airbyte.api.models.operations.GetTagRequest; +import com.airbyte.api.models.operations.ListTagsRequest; +import com.airbyte.api.models.operations.UpdateTagRequest; +import com.airbyte.api.models.operations.async.CreateTagRequestBuilder; +import com.airbyte.api.models.operations.async.CreateTagResponse; +import com.airbyte.api.models.operations.async.DeleteTagRequestBuilder; +import com.airbyte.api.models.operations.async.DeleteTagResponse; +import com.airbyte.api.models.operations.async.GetTagRequestBuilder; +import com.airbyte.api.models.operations.async.GetTagResponse; +import com.airbyte.api.models.operations.async.ListTagsRequestBuilder; +import com.airbyte.api.models.operations.async.ListTagsResponse; +import com.airbyte.api.models.operations.async.UpdateTagRequestBuilder; +import com.airbyte.api.models.operations.async.UpdateTagResponse; +import com.airbyte.api.models.shared.TagCreateRequest; +import com.airbyte.api.operations.CreateTag; +import com.airbyte.api.operations.DeleteTag; +import com.airbyte.api.operations.GetTag; +import com.airbyte.api.operations.ListTags; +import com.airbyte.api.operations.UpdateTag; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncTags { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Tags syncSDK; + + AsyncTags(Tags syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Tags sync() { + return syncSDK; + } + + + /** + * Create a tag + * + *

Create a tag + * + * @return The async call builder + */ + public CreateTagRequestBuilder createTag() { + return new CreateTagRequestBuilder(sdkConfiguration); + } + + /** + * Create a tag + * + *

Create a tag + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createTag(TagCreateRequest request) { + AsyncRequestOperation operation + = new CreateTag.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Delete a tag + * + *

Delete a tag + * + * @return The async call builder + */ + public DeleteTagRequestBuilder deleteTag() { + return new DeleteTagRequestBuilder(sdkConfiguration); + } + + /** + * Delete a tag + * + *

Delete a tag + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteTag(DeleteTagRequest request) { + AsyncRequestOperation operation + = new DeleteTag.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get a tag + * + *

Get a tag + * + * @return The async call builder + */ + public GetTagRequestBuilder getTag() { + return new GetTagRequestBuilder(sdkConfiguration); + } + + /** + * Get a tag + * + *

Get a tag + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getTag(GetTagRequest request) { + AsyncRequestOperation operation + = new GetTag.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List all tags + * + *

Lists all tags + * + * @return The async call builder + */ + public ListTagsRequestBuilder listTags() { + return new ListTagsRequestBuilder(sdkConfiguration); + } + + /** + * List all tags + * + *

Lists all tags + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listTags(ListTagsRequest request) { + AsyncRequestOperation operation + = new ListTags.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update a tag + * + *

Update a tag + * + * @return The async call builder + */ + public UpdateTagRequestBuilder updateTag() { + return new UpdateTagRequestBuilder(sdkConfiguration); + } + + /** + * Update a tag + * + *

Update a tag + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture updateTag(UpdateTagRequest request) { + AsyncRequestOperation operation + = new UpdateTag.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncUsers.java b/src/main/java/com/airbyte/api/AsyncUsers.java new file mode 100644 index 000000000..1cf3f2a9f --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncUsers.java @@ -0,0 +1,64 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequest; +import com.airbyte.api.models.operations.async.ListUsersWithinAnOrganizationRequestBuilder; +import com.airbyte.api.models.operations.async.ListUsersWithinAnOrganizationResponse; +import com.airbyte.api.operations.ListUsersWithinAnOrganization; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncUsers { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Users syncSDK; + + AsyncUsers(Users syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Users sync() { + return syncSDK; + } + + + /** + * List all users within an organization + * + *

Organization Admin user can list all users within the same organization. Also provide filtering on a + * list of user IDs or/and a list of user emails. + * + * @return The async call builder + */ + public ListUsersWithinAnOrganizationRequestBuilder listUsersWithinAnOrganization() { + return new ListUsersWithinAnOrganizationRequestBuilder(sdkConfiguration); + } + + /** + * List all users within an organization + * + *

Organization Admin user can list all users within the same organization. Also provide filtering on a + * list of user IDs or/and a list of user emails. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listUsersWithinAnOrganization(ListUsersWithinAnOrganizationRequest request) { + AsyncRequestOperation operation + = new ListUsersWithinAnOrganization.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/AsyncWorkspaces.java b/src/main/java/com/airbyte/api/AsyncWorkspaces.java new file mode 100644 index 000000000..e9173a97d --- /dev/null +++ b/src/main/java/com/airbyte/api/AsyncWorkspaces.java @@ -0,0 +1,203 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsRequest; +import com.airbyte.api.models.operations.DeleteWorkspaceRequest; +import com.airbyte.api.models.operations.GetWorkspaceRequest; +import com.airbyte.api.models.operations.ListWorkspacesRequest; +import com.airbyte.api.models.operations.UpdateWorkspaceRequest; +import com.airbyte.api.models.operations.async.CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder; +import com.airbyte.api.models.operations.async.CreateOrUpdateWorkspaceOAuthCredentialsResponse; +import com.airbyte.api.models.operations.async.CreateWorkspaceRequestBuilder; +import com.airbyte.api.models.operations.async.CreateWorkspaceResponse; +import com.airbyte.api.models.operations.async.DeleteWorkspaceRequestBuilder; +import com.airbyte.api.models.operations.async.DeleteWorkspaceResponse; +import com.airbyte.api.models.operations.async.GetWorkspaceRequestBuilder; +import com.airbyte.api.models.operations.async.GetWorkspaceResponse; +import com.airbyte.api.models.operations.async.ListWorkspacesRequestBuilder; +import com.airbyte.api.models.operations.async.ListWorkspacesResponse; +import com.airbyte.api.models.operations.async.UpdateWorkspaceRequestBuilder; +import com.airbyte.api.models.operations.async.UpdateWorkspaceResponse; +import com.airbyte.api.models.shared.WorkspaceCreateRequest; +import com.airbyte.api.operations.CreateOrUpdateWorkspaceOAuthCredentials; +import com.airbyte.api.operations.CreateWorkspace; +import com.airbyte.api.operations.DeleteWorkspace; +import com.airbyte.api.operations.GetWorkspace; +import com.airbyte.api.operations.ListWorkspaces; +import com.airbyte.api.operations.UpdateWorkspace; +import com.airbyte.api.utils.Headers; +import java.util.concurrent.CompletableFuture; + + +public class AsyncWorkspaces { + private static final Headers _headers = Headers.EMPTY; + private final SDKConfiguration sdkConfiguration; + private final Workspaces syncSDK; + + AsyncWorkspaces(Workspaces syncSDK, SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + this.syncSDK = syncSDK; + } + + /** + * Switches to the sync SDK. + * + * @return The sync SDK + */ + public Workspaces sync() { + return syncSDK; + } + + + /** + * Create OAuth override credentials for a workspace and source type. + * + *

Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for + * source/destination OAuth. + * In order to determine what the credential configuration needs to be, please see the connector + * specification of the relevant source/destination. + * + * @return The async call builder + */ + public CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder createOrUpdateWorkspaceOAuthCredentials() { + return new CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder(sdkConfiguration); + } + + /** + * Create OAuth override credentials for a workspace and source type. + * + *

Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for + * source/destination OAuth. + * In order to determine what the credential configuration needs to be, please see the connector + * specification of the relevant source/destination. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createOrUpdateWorkspaceOAuthCredentials(CreateOrUpdateWorkspaceOAuthCredentialsRequest request) { + AsyncRequestOperation operation + = new CreateOrUpdateWorkspaceOAuthCredentials.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Create a workspace + * + * @return The async call builder + */ + public CreateWorkspaceRequestBuilder createWorkspace() { + return new CreateWorkspaceRequestBuilder(sdkConfiguration); + } + + /** + * Create a workspace + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture createWorkspace(WorkspaceCreateRequest request) { + AsyncRequestOperation operation + = new CreateWorkspace.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Delete a Workspace + * + * @return The async call builder + */ + public DeleteWorkspaceRequestBuilder deleteWorkspace() { + return new DeleteWorkspaceRequestBuilder(sdkConfiguration); + } + + /** + * Delete a Workspace + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteWorkspace(DeleteWorkspaceRequest request) { + AsyncRequestOperation operation + = new DeleteWorkspace.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Get Workspace details + * + * @return The async call builder + */ + public GetWorkspaceRequestBuilder getWorkspace() { + return new GetWorkspaceRequestBuilder(sdkConfiguration); + } + + /** + * Get Workspace details + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture getWorkspace(GetWorkspaceRequest request) { + AsyncRequestOperation operation + = new GetWorkspace.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * List workspaces + * + * @return The async call builder + */ + public ListWorkspacesRequestBuilder listWorkspaces() { + return new ListWorkspacesRequestBuilder(sdkConfiguration); + } + + /** + * List workspaces + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture listWorkspaces(ListWorkspacesRequest request) { + AsyncRequestOperation operation + = new ListWorkspaces.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + + /** + * Update a workspace + * + * @return The async call builder + */ + public UpdateWorkspaceRequestBuilder updateWorkspace() { + return new UpdateWorkspaceRequestBuilder(sdkConfiguration); + } + + /** + * Update a workspace + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture updateWorkspace(UpdateWorkspaceRequest request) { + AsyncRequestOperation operation + = new UpdateWorkspace.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + +} diff --git a/src/main/java/com/airbyte/api/Connections.java b/src/main/java/com/airbyte/api/Connections.java index b353a07bf..ef8c15cdf 100644 --- a/src/main/java/com/airbyte/api/Connections.java +++ b/src/main/java/com/airbyte/api/Connections.java @@ -3,7 +3,8 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.CreateConnectionRequestBuilder; import com.airbyte.api.models.operations.CreateConnectionResponse; import com.airbyte.api.models.operations.DeleteConnectionRequest; @@ -18,41 +19,34 @@ import com.airbyte.api.models.operations.PatchConnectionRequest; import com.airbyte.api.models.operations.PatchConnectionRequestBuilder; import com.airbyte.api.models.operations.PatchConnectionResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.models.shared.ConnectionCreateRequest; -import com.airbyte.api.models.shared.ConnectionResponse; -import com.airbyte.api.models.shared.ConnectionsResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.SerializedBody; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CreateConnection; +import com.airbyte.api.operations.DeleteConnection; +import com.airbyte.api.operations.GetConnection; +import com.airbyte.api.operations.ListConnections; +import com.airbyte.api.operations.PatchConnection; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class Connections implements - MethodCallCreateConnection, - MethodCallDeleteConnection, - MethodCallGetConnection, - MethodCallListConnections, - MethodCallPatchConnection { +public class Connections { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncConnections asyncSDK; Connections(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncConnections(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncConnections async() { + return asyncSDK; + } /** * Create a connection @@ -60,662 +54,108 @@ public class Connections implements * @return The call builder */ public CreateConnectionRequestBuilder createConnection() { - return new CreateConnectionRequestBuilder(this); + return new CreateConnectionRequestBuilder(sdkConfiguration); } /** * Create a connection * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreateConnectionResponse createConnection( - ConnectionCreateRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/connections"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "request", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createConnection", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createConnection", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createConnection", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createConnection", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreateConnectionResponse.Builder _resBuilder = - CreateConnectionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreateConnectionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - ConnectionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withConnectionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreateConnectionResponse createConnection(ConnectionCreateRequest request) throws Exception { + RequestOperation operation + = new CreateConnection.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Delete a Connection * * @return The call builder */ public DeleteConnectionRequestBuilder deleteConnection() { - return new DeleteConnectionRequestBuilder(this); + return new DeleteConnectionRequestBuilder(sdkConfiguration); } /** * Delete a Connection * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public DeleteConnectionResponse deleteConnection( - DeleteConnectionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - DeleteConnectionRequest.class, - _baseUrl, - "/connections/{connectionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "*/*") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "deleteConnection", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteConnection", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "deleteConnection", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteConnection", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - DeleteConnectionResponse.Builder _resBuilder = - DeleteConnectionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - DeleteConnectionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public DeleteConnectionResponse deleteConnection(DeleteConnectionRequest request) throws Exception { + RequestOperation operation + = new DeleteConnection.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Get Connection details * * @return The call builder */ public GetConnectionRequestBuilder getConnection() { - return new GetConnectionRequestBuilder(this); + return new GetConnectionRequestBuilder(sdkConfiguration); } /** * Get Connection details * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetConnectionResponse getConnection( - GetConnectionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - GetConnectionRequest.class, - _baseUrl, - "/connections/{connectionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getConnection", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getConnection", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getConnection", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getConnection", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetConnectionResponse.Builder _resBuilder = - GetConnectionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetConnectionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - ConnectionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withConnectionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetConnectionResponse getConnection(GetConnectionRequest request) throws Exception { + RequestOperation operation + = new GetConnection.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * List connections * * @return The call builder */ public ListConnectionsRequestBuilder listConnections() { - return new ListConnectionsRequestBuilder(this); + return new ListConnectionsRequestBuilder(sdkConfiguration); } /** * List connections * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListConnectionsResponse listConnections( - ListConnectionsRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/connections"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - ListConnectionsRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listConnections", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listConnections", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listConnections", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listConnections", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListConnectionsResponse.Builder _resBuilder = - ListConnectionsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListConnectionsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - ConnectionsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withConnectionsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListConnectionsResponse listConnections(ListConnectionsRequest request) throws Exception { + RequestOperation operation + = new ListConnections.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update Connection details * * @return The call builder */ public PatchConnectionRequestBuilder patchConnection() { - return new PatchConnectionRequestBuilder(this); + return new PatchConnectionRequestBuilder(sdkConfiguration); } /** * Update Connection details * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public PatchConnectionResponse patchConnection( - PatchConnectionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PatchConnectionRequest.class, - _baseUrl, - "/connections/{connectionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "connectionPatchRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "patchConnection", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "patchConnection", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "patchConnection", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "patchConnection", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PatchConnectionResponse.Builder _resBuilder = - PatchConnectionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PatchConnectionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - ConnectionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withConnectionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public PatchConnectionResponse patchConnection(PatchConnectionRequest request) throws Exception { + RequestOperation operation + = new PatchConnection.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/DeclarativeSourceDefinitions.java b/src/main/java/com/airbyte/api/DeclarativeSourceDefinitions.java index 967780419..81526ed55 100644 --- a/src/main/java/com/airbyte/api/DeclarativeSourceDefinitions.java +++ b/src/main/java/com/airbyte/api/DeclarativeSourceDefinitions.java @@ -3,7 +3,8 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionRequest; import com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionRequestBuilder; import com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionResponse; @@ -16,43 +17,36 @@ import com.airbyte.api.models.operations.ListDeclarativeSourceDefinitionsRequest; import com.airbyte.api.models.operations.ListDeclarativeSourceDefinitionsRequestBuilder; import com.airbyte.api.models.operations.ListDeclarativeSourceDefinitionsResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionRequest; import com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionRequestBuilder; import com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionResponse; -import com.airbyte.api.models.shared.DeclarativeSourceDefinitionResponse; -import com.airbyte.api.models.shared.DeclarativeSourceDefinitionsResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.SerializedBody; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CreateDeclarativeSourceDefinition; +import com.airbyte.api.operations.DeleteDeclarativeSourceDefinition; +import com.airbyte.api.operations.GetDeclarativeSourceDefinition; +import com.airbyte.api.operations.ListDeclarativeSourceDefinitions; +import com.airbyte.api.operations.UpdateDeclarativeSourceDefinition; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class DeclarativeSourceDefinitions implements - MethodCallCreateDeclarativeSourceDefinition, - MethodCallDeleteDeclarativeSourceDefinition, - MethodCallGetDeclarativeSourceDefinition, - MethodCallListDeclarativeSourceDefinitions, - MethodCallUpdateDeclarativeSourceDefinition { +public class DeclarativeSourceDefinitions { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncDeclarativeSourceDefinitions asyncSDK; DeclarativeSourceDefinitions(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncDeclarativeSourceDefinitions(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncDeclarativeSourceDefinitions async() { + return asyncSDK; + } /** * Create a declarative source definition. @@ -60,672 +54,108 @@ public class DeclarativeSourceDefinitions implements * @return The call builder */ public CreateDeclarativeSourceDefinitionRequestBuilder createDeclarativeSourceDefinition() { - return new CreateDeclarativeSourceDefinitionRequestBuilder(this); + return new CreateDeclarativeSourceDefinitionRequestBuilder(sdkConfiguration); } /** * Create a declarative source definition. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreateDeclarativeSourceDefinitionResponse createDeclarativeSourceDefinition( - CreateDeclarativeSourceDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - CreateDeclarativeSourceDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/declarative_sources", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "createDeclarativeSourceDefinitionRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreateDeclarativeSourceDefinitionResponse.Builder _resBuilder = - CreateDeclarativeSourceDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreateDeclarativeSourceDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeclarativeSourceDefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeclarativeSourceDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreateDeclarativeSourceDefinitionResponse createDeclarativeSourceDefinition(CreateDeclarativeSourceDefinitionRequest request) throws Exception { + RequestOperation operation + = new CreateDeclarativeSourceDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Delete a declarative source definition. * * @return The call builder */ public DeleteDeclarativeSourceDefinitionRequestBuilder deleteDeclarativeSourceDefinition() { - return new DeleteDeclarativeSourceDefinitionRequestBuilder(this); + return new DeleteDeclarativeSourceDefinitionRequestBuilder(sdkConfiguration); } /** * Delete a declarative source definition. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public DeleteDeclarativeSourceDefinitionResponse deleteDeclarativeSourceDefinition( - DeleteDeclarativeSourceDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - DeleteDeclarativeSourceDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/declarative_sources/{definitionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "deleteDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "deleteDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - DeleteDeclarativeSourceDefinitionResponse.Builder _resBuilder = - DeleteDeclarativeSourceDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - DeleteDeclarativeSourceDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeclarativeSourceDefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeclarativeSourceDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public DeleteDeclarativeSourceDefinitionResponse deleteDeclarativeSourceDefinition(DeleteDeclarativeSourceDefinitionRequest request) throws Exception { + RequestOperation operation + = new DeleteDeclarativeSourceDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Get declarative source definition details. * * @return The call builder */ public GetDeclarativeSourceDefinitionRequestBuilder getDeclarativeSourceDefinition() { - return new GetDeclarativeSourceDefinitionRequestBuilder(this); + return new GetDeclarativeSourceDefinitionRequestBuilder(sdkConfiguration); } /** * Get declarative source definition details. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetDeclarativeSourceDefinitionResponse getDeclarativeSourceDefinition( - GetDeclarativeSourceDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - GetDeclarativeSourceDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/declarative_sources/{definitionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetDeclarativeSourceDefinitionResponse.Builder _resBuilder = - GetDeclarativeSourceDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetDeclarativeSourceDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeclarativeSourceDefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeclarativeSourceDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetDeclarativeSourceDefinitionResponse getDeclarativeSourceDefinition(GetDeclarativeSourceDefinitionRequest request) throws Exception { + RequestOperation operation + = new GetDeclarativeSourceDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * List declarative source definitions. * * @return The call builder */ public ListDeclarativeSourceDefinitionsRequestBuilder listDeclarativeSourceDefinitions() { - return new ListDeclarativeSourceDefinitionsRequestBuilder(this); + return new ListDeclarativeSourceDefinitionsRequestBuilder(sdkConfiguration); } /** * List declarative source definitions. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListDeclarativeSourceDefinitionsResponse listDeclarativeSourceDefinitions( - ListDeclarativeSourceDefinitionsRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - ListDeclarativeSourceDefinitionsRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/declarative_sources", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listDeclarativeSourceDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listDeclarativeSourceDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listDeclarativeSourceDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listDeclarativeSourceDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListDeclarativeSourceDefinitionsResponse.Builder _resBuilder = - ListDeclarativeSourceDefinitionsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListDeclarativeSourceDefinitionsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeclarativeSourceDefinitionsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeclarativeSourceDefinitionsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListDeclarativeSourceDefinitionsResponse listDeclarativeSourceDefinitions(ListDeclarativeSourceDefinitionsRequest request) throws Exception { + RequestOperation operation + = new ListDeclarativeSourceDefinitions.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update declarative source definition details. * * @return The call builder */ public UpdateDeclarativeSourceDefinitionRequestBuilder updateDeclarativeSourceDefinition() { - return new UpdateDeclarativeSourceDefinitionRequestBuilder(this); + return new UpdateDeclarativeSourceDefinitionRequestBuilder(sdkConfiguration); } /** * Update declarative source definition details. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public UpdateDeclarativeSourceDefinitionResponse updateDeclarativeSourceDefinition( - UpdateDeclarativeSourceDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - UpdateDeclarativeSourceDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/declarative_sources/{definitionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PUT"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "updateDeclarativeSourceDefinitionRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "updateDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updateDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "updateDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updateDeclarativeSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - UpdateDeclarativeSourceDefinitionResponse.Builder _resBuilder = - UpdateDeclarativeSourceDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - UpdateDeclarativeSourceDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DeclarativeSourceDefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDeclarativeSourceDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public UpdateDeclarativeSourceDefinitionResponse updateDeclarativeSourceDefinition(UpdateDeclarativeSourceDefinitionRequest request) throws Exception { + RequestOperation operation + = new UpdateDeclarativeSourceDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/DestinationDefinitions.java b/src/main/java/com/airbyte/api/DestinationDefinitions.java index 1f8b7f33b..48af68706 100644 --- a/src/main/java/com/airbyte/api/DestinationDefinitions.java +++ b/src/main/java/com/airbyte/api/DestinationDefinitions.java @@ -3,7 +3,8 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.CreateDestinationDefinitionRequest; import com.airbyte.api.models.operations.CreateDestinationDefinitionRequestBuilder; import com.airbyte.api.models.operations.CreateDestinationDefinitionResponse; @@ -16,43 +17,36 @@ import com.airbyte.api.models.operations.ListDestinationDefinitionsRequest; import com.airbyte.api.models.operations.ListDestinationDefinitionsRequestBuilder; import com.airbyte.api.models.operations.ListDestinationDefinitionsResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.models.operations.UpdateDestinationDefinitionRequest; import com.airbyte.api.models.operations.UpdateDestinationDefinitionRequestBuilder; import com.airbyte.api.models.operations.UpdateDestinationDefinitionResponse; -import com.airbyte.api.models.shared.DefinitionResponse; -import com.airbyte.api.models.shared.DefinitionsResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.SerializedBody; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CreateDestinationDefinition; +import com.airbyte.api.operations.DeleteDestinationDefinition; +import com.airbyte.api.operations.GetDestinationDefinition; +import com.airbyte.api.operations.ListDestinationDefinitions; +import com.airbyte.api.operations.UpdateDestinationDefinition; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class DestinationDefinitions implements - MethodCallCreateDestinationDefinition, - MethodCallDeleteDestinationDefinition, - MethodCallGetDestinationDefinition, - MethodCallListDestinationDefinitions, - MethodCallUpdateDestinationDefinition { +public class DestinationDefinitions { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncDestinationDefinitions asyncSDK; DestinationDefinitions(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncDestinationDefinitions(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncDestinationDefinitions async() { + return asyncSDK; + } /** * Create a destination definition. @@ -60,672 +54,108 @@ public class DestinationDefinitions implements * @return The call builder */ public CreateDestinationDefinitionRequestBuilder createDestinationDefinition() { - return new CreateDestinationDefinitionRequestBuilder(this); + return new CreateDestinationDefinitionRequestBuilder(sdkConfiguration); } /** * Create a destination definition. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreateDestinationDefinitionResponse createDestinationDefinition( - CreateDestinationDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - CreateDestinationDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/destinations", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "createDefinitionRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreateDestinationDefinitionResponse.Builder _resBuilder = - CreateDestinationDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreateDestinationDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreateDestinationDefinitionResponse createDestinationDefinition(CreateDestinationDefinitionRequest request) throws Exception { + RequestOperation operation + = new CreateDestinationDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Delete a destination definition. * * @return The call builder */ public DeleteDestinationDefinitionRequestBuilder deleteDestinationDefinition() { - return new DeleteDestinationDefinitionRequestBuilder(this); + return new DeleteDestinationDefinitionRequestBuilder(sdkConfiguration); } /** * Delete a destination definition. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public DeleteDestinationDefinitionResponse deleteDestinationDefinition( - DeleteDestinationDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - DeleteDestinationDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/destinations/{definitionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "deleteDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "deleteDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - DeleteDestinationDefinitionResponse.Builder _resBuilder = - DeleteDestinationDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - DeleteDestinationDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public DeleteDestinationDefinitionResponse deleteDestinationDefinition(DeleteDestinationDefinitionRequest request) throws Exception { + RequestOperation operation + = new DeleteDestinationDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Get destination definition details. * * @return The call builder */ public GetDestinationDefinitionRequestBuilder getDestinationDefinition() { - return new GetDestinationDefinitionRequestBuilder(this); + return new GetDestinationDefinitionRequestBuilder(sdkConfiguration); } /** * Get destination definition details. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetDestinationDefinitionResponse getDestinationDefinition( - GetDestinationDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - GetDestinationDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/destinations/{definitionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetDestinationDefinitionResponse.Builder _resBuilder = - GetDestinationDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetDestinationDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetDestinationDefinitionResponse getDestinationDefinition(GetDestinationDefinitionRequest request) throws Exception { + RequestOperation operation + = new GetDestinationDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * List destination definitions. * * @return The call builder */ public ListDestinationDefinitionsRequestBuilder listDestinationDefinitions() { - return new ListDestinationDefinitionsRequestBuilder(this); + return new ListDestinationDefinitionsRequestBuilder(sdkConfiguration); } /** * List destination definitions. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListDestinationDefinitionsResponse listDestinationDefinitions( - ListDestinationDefinitionsRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - ListDestinationDefinitionsRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/destinations", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listDestinationDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listDestinationDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listDestinationDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listDestinationDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListDestinationDefinitionsResponse.Builder _resBuilder = - ListDestinationDefinitionsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListDestinationDefinitionsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DefinitionsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDefinitionsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListDestinationDefinitionsResponse listDestinationDefinitions(ListDestinationDefinitionsRequest request) throws Exception { + RequestOperation operation + = new ListDestinationDefinitions.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update destination definition details. * * @return The call builder */ public UpdateDestinationDefinitionRequestBuilder updateDestinationDefinition() { - return new UpdateDestinationDefinitionRequestBuilder(this); + return new UpdateDestinationDefinitionRequestBuilder(sdkConfiguration); } /** * Update destination definition details. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public UpdateDestinationDefinitionResponse updateDestinationDefinition( - UpdateDestinationDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - UpdateDestinationDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/destinations/{definitionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PUT"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "updateDefinitionRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "updateDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updateDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "updateDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updateDestinationDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - UpdateDestinationDefinitionResponse.Builder _resBuilder = - UpdateDestinationDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - UpdateDestinationDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public UpdateDestinationDefinitionResponse updateDestinationDefinition(UpdateDestinationDefinitionRequest request) throws Exception { + RequestOperation operation + = new UpdateDestinationDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/Destinations.java b/src/main/java/com/airbyte/api/Destinations.java index e48f526dd..5b6ec3c53 100644 --- a/src/main/java/com/airbyte/api/Destinations.java +++ b/src/main/java/com/airbyte/api/Destinations.java @@ -3,7 +3,8 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.CreateDestinationRequestBuilder; import com.airbyte.api.models.operations.CreateDestinationResponse; import com.airbyte.api.models.operations.DeleteDestinationRequest; @@ -21,58 +22,54 @@ import com.airbyte.api.models.operations.PutDestinationRequest; import com.airbyte.api.models.operations.PutDestinationRequestBuilder; import com.airbyte.api.models.operations.PutDestinationResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.models.shared.DestinationCreateRequest; -import com.airbyte.api.models.shared.DestinationResponse; -import com.airbyte.api.models.shared.DestinationsResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.SerializedBody; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CreateDestination; +import com.airbyte.api.operations.DeleteDestination; +import com.airbyte.api.operations.GetDestination; +import com.airbyte.api.operations.ListDestinations; +import com.airbyte.api.operations.PatchDestination; +import com.airbyte.api.operations.PutDestination; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; import java.util.Optional; -public class Destinations implements - MethodCallCreateDestination, - MethodCallDeleteDestination, - MethodCallGetDestination, - MethodCallListDestinations, - MethodCallPatchDestination, - MethodCallPutDestination { +public class Destinations { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncDestinations asyncSDK; Destinations(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncDestinations(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncDestinations async() { + return asyncSDK; + } /** * Create a destination * - *

Creates a destination given a name, workspace id, and a json blob containing the configuration for the source. + *

Creates a destination given a name, workspace id, and a json blob containing the configuration for + * the source. * * @return The call builder */ public CreateDestinationRequestBuilder createDestination() { - return new CreateDestinationRequestBuilder(this); + return new CreateDestinationRequestBuilder(sdkConfiguration); } /** * Create a destination * - *

Creates a destination given a name, workspace id, and a json blob containing the configuration for the source. + *

Creates a destination given a name, workspace id, and a json blob containing the configuration for + * the source. * * @return The response from the API call * @throws Exception if the API call fails @@ -80,801 +77,131 @@ public CreateDestinationRequestBuilder createDestination() { public CreateDestinationResponse createDestinationDirect() throws Exception { return createDestination(Optional.empty()); } - + /** * Create a destination * - *

Creates a destination given a name, workspace id, and a json blob containing the configuration for the source. + *

Creates a destination given a name, workspace id, and a json blob containing the configuration for + * the source. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreateDestinationResponse createDestination( - Optional request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/destinations"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference>() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "request", - "json", - false); - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createDestination", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createDestination", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createDestination", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createDestination", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreateDestinationResponse.Builder _resBuilder = - CreateDestinationResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreateDestinationResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DestinationResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDestinationResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreateDestinationResponse createDestination(Optional request) throws Exception { + RequestOperation, CreateDestinationResponse> operation + = new CreateDestination.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Delete a Destination * * @return The call builder */ public DeleteDestinationRequestBuilder deleteDestination() { - return new DeleteDestinationRequestBuilder(this); + return new DeleteDestinationRequestBuilder(sdkConfiguration); } /** * Delete a Destination * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public DeleteDestinationResponse deleteDestination( - DeleteDestinationRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - DeleteDestinationRequest.class, - _baseUrl, - "/destinations/{destinationId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "*/*") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "deleteDestination", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteDestination", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "deleteDestination", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteDestination", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - DeleteDestinationResponse.Builder _resBuilder = - DeleteDestinationResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - DeleteDestinationResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public DeleteDestinationResponse deleteDestination(DeleteDestinationRequest request) throws Exception { + RequestOperation operation + = new DeleteDestination.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Get Destination details * * @return The call builder */ public GetDestinationRequestBuilder getDestination() { - return new GetDestinationRequestBuilder(this); + return new GetDestinationRequestBuilder(sdkConfiguration); } /** * Get Destination details * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetDestinationResponse getDestination( - GetDestinationRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - GetDestinationRequest.class, - _baseUrl, - "/destinations/{destinationId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - GetDestinationRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getDestination", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getDestination", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getDestination", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getDestination", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetDestinationResponse.Builder _resBuilder = - GetDestinationResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetDestinationResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DestinationResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDestinationResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetDestinationResponse getDestination(GetDestinationRequest request) throws Exception { + RequestOperation operation + = new GetDestination.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * List destinations * * @return The call builder */ public ListDestinationsRequestBuilder listDestinations() { - return new ListDestinationsRequestBuilder(this); + return new ListDestinationsRequestBuilder(sdkConfiguration); } /** * List destinations * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListDestinationsResponse listDestinations( - ListDestinationsRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/destinations"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - ListDestinationsRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listDestinations", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listDestinations", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listDestinations", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listDestinations", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListDestinationsResponse.Builder _resBuilder = - ListDestinationsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListDestinationsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DestinationsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDestinationsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListDestinationsResponse listDestinations(ListDestinationsRequest request) throws Exception { + RequestOperation operation + = new ListDestinations.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update a Destination * * @return The call builder */ public PatchDestinationRequestBuilder patchDestination() { - return new PatchDestinationRequestBuilder(this); + return new PatchDestinationRequestBuilder(sdkConfiguration); } /** * Update a Destination * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public PatchDestinationResponse patchDestination( - PatchDestinationRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PatchDestinationRequest.class, - _baseUrl, - "/destinations/{destinationId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "destinationPatchRequest", - "json", - false); - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "patchDestination", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "patchDestination", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "patchDestination", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "patchDestination", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PatchDestinationResponse.Builder _resBuilder = - PatchDestinationResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PatchDestinationResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DestinationResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDestinationResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public PatchDestinationResponse patchDestination(PatchDestinationRequest request) throws Exception { + RequestOperation operation + = new PatchDestination.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update a Destination and fully overwrite it * * @return The call builder */ public PutDestinationRequestBuilder putDestination() { - return new PutDestinationRequestBuilder(this); + return new PutDestinationRequestBuilder(sdkConfiguration); } /** * Update a Destination and fully overwrite it * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public PutDestinationResponse putDestination( - PutDestinationRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PutDestinationRequest.class, - _baseUrl, - "/destinations/{destinationId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PUT"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "destinationPutRequest", - "json", - false); - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "putDestination", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "putDestination", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "putDestination", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "putDestination", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PutDestinationResponse.Builder _resBuilder = - PutDestinationResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PutDestinationResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DestinationResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDestinationResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public PutDestinationResponse putDestination(PutDestinationRequest request) throws Exception { + RequestOperation operation + = new PutDestination.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/Health.java b/src/main/java/com/airbyte/api/Health.java index c6b987580..d3c81037f 100644 --- a/src/main/java/com/airbyte/api/Health.java +++ b/src/main/java/com/airbyte/api/Health.java @@ -3,33 +3,33 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestlessOperation; + import com.airbyte.api.models.operations.GetHealthCheckRequestBuilder; import com.airbyte.api.models.operations.GetHealthCheckResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.Utils; -import java.io.InputStream; +import com.airbyte.api.operations.GetHealthCheck; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class Health implements - MethodCallGetHealthCheck { +public class Health { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncHealth asyncSDK; Health(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncHealth(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncHealth async() { + return asyncSDK; + } /** * Health Check @@ -37,7 +37,7 @@ public class Health implements * @return The call builder */ public GetHealthCheckRequestBuilder getHealthCheck() { - return new GetHealthCheckRequestBuilder(this); + return new GetHealthCheckRequestBuilder(sdkConfiguration); } /** @@ -47,98 +47,9 @@ public GetHealthCheckRequestBuilder getHealthCheck() { * @throws Exception if the API call fails */ public GetHealthCheckResponse getHealthCheckDirect() throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/health"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "*/*") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - Optional _hookSecuritySource = Optional.empty(); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getHealthCheck", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getHealthCheck", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getHealthCheck", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getHealthCheck", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetHealthCheckResponse.Builder _resBuilder = - GetHealthCheckResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetHealthCheckResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + RequestlessOperation operation + = new GetHealthCheck.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest()); } } diff --git a/src/main/java/com/airbyte/api/Jobs.java b/src/main/java/com/airbyte/api/Jobs.java index 522d1b173..c4c3de22d 100644 --- a/src/main/java/com/airbyte/api/Jobs.java +++ b/src/main/java/com/airbyte/api/Jobs.java @@ -3,7 +3,8 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.CancelJobRequest; import com.airbyte.api.models.operations.CancelJobRequestBuilder; import com.airbyte.api.models.operations.CancelJobResponse; @@ -15,40 +16,33 @@ import com.airbyte.api.models.operations.ListJobsRequest; import com.airbyte.api.models.operations.ListJobsRequestBuilder; import com.airbyte.api.models.operations.ListJobsResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.models.shared.JobCreateRequest; -import com.airbyte.api.models.shared.JobResponse; -import com.airbyte.api.models.shared.JobsResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.SerializedBody; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CancelJob; +import com.airbyte.api.operations.CreateJob; +import com.airbyte.api.operations.GetJob; +import com.airbyte.api.operations.ListJobs; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class Jobs implements - MethodCallCancelJob, - MethodCallCreateJob, - MethodCallGetJob, - MethodCallListJobs { +public class Jobs { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncJobs asyncSDK; Jobs(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncJobs(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncJobs async() { + return asyncSDK; + } /** * Cancel a running Job @@ -56,530 +50,86 @@ public class Jobs implements * @return The call builder */ public CancelJobRequestBuilder cancelJob() { - return new CancelJobRequestBuilder(this); + return new CancelJobRequestBuilder(sdkConfiguration); } /** * Cancel a running Job * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CancelJobResponse cancelJob( - CancelJobRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - CancelJobRequest.class, - _baseUrl, - "/jobs/{jobId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "cancelJob", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "cancelJob", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "cancelJob", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "cancelJob", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CancelJobResponse.Builder _resBuilder = - CancelJobResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CancelJobResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - JobResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withJobResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CancelJobResponse cancelJob(CancelJobRequest request) throws Exception { + RequestOperation operation + = new CancelJob.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Trigger a sync or reset job of a connection * * @return The call builder */ public CreateJobRequestBuilder createJob() { - return new CreateJobRequestBuilder(this); + return new CreateJobRequestBuilder(sdkConfiguration); } /** * Trigger a sync or reset job of a connection * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreateJobResponse createJob( - JobCreateRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/jobs"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "request", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createJob", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createJob", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createJob", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createJob", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreateJobResponse.Builder _resBuilder = - CreateJobResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreateJobResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - JobResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withJobResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreateJobResponse createJob(JobCreateRequest request) throws Exception { + RequestOperation operation + = new CreateJob.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Get Job status and details * * @return The call builder */ public GetJobRequestBuilder getJob() { - return new GetJobRequestBuilder(this); + return new GetJobRequestBuilder(sdkConfiguration); } /** * Get Job status and details * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetJobResponse getJob( - GetJobRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - GetJobRequest.class, - _baseUrl, - "/jobs/{jobId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getJob", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getJob", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getJob", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getJob", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetJobResponse.Builder _resBuilder = - GetJobResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetJobResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - JobResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withJobResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetJobResponse getJob(GetJobRequest request) throws Exception { + RequestOperation operation + = new GetJob.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * List Jobs by sync type * * @return The call builder */ public ListJobsRequestBuilder listJobs() { - return new ListJobsRequestBuilder(this); + return new ListJobsRequestBuilder(sdkConfiguration); } /** * List Jobs by sync type * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListJobsResponse listJobs( - ListJobsRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/jobs"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - ListJobsRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listJobs", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listJobs", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listJobs", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listJobs", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListJobsResponse.Builder _resBuilder = - ListJobsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListJobsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - JobsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withJobsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListJobsResponse listJobs(ListJobsRequest request) throws Exception { + RequestOperation operation + = new ListJobs.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/Organizations.java b/src/main/java/com/airbyte/api/Organizations.java index 158015942..e9cbeba25 100644 --- a/src/main/java/com/airbyte/api/Organizations.java +++ b/src/main/java/com/airbyte/api/Organizations.java @@ -3,35 +3,70 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.RequestlessOperation; + +import com.airbyte.api.models.operations.CreateOrUpdateOrganizationOAuthCredentialsRequest; +import com.airbyte.api.models.operations.CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder; +import com.airbyte.api.models.operations.CreateOrUpdateOrganizationOAuthCredentialsResponse; import com.airbyte.api.models.operations.ListOrganizationsForUserRequestBuilder; import com.airbyte.api.models.operations.ListOrganizationsForUserResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; -import com.airbyte.api.models.shared.OrganizationsResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CreateOrUpdateOrganizationOAuthCredentials; +import com.airbyte.api.operations.ListOrganizationsForUser; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class Organizations implements - MethodCallListOrganizationsForUser { +public class Organizations { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncOrganizations asyncSDK; Organizations(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncOrganizations(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncOrganizations async() { + return asyncSDK; + } + + /** + * Create OAuth override credentials for an organization and source type. + * + *

Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for + * source/destination OAuth. + * In order to determine what the credential configuration needs to be, please see the connector + * specification of the relevant source/destination. + * + * @return The call builder + */ + public CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder createOrUpdateOrganizationOAuthCredentials() { + return new CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder(sdkConfiguration); + } + + /** + * Create OAuth override credentials for an organization and source type. + * + *

Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for + * source/destination OAuth. + * In order to determine what the credential configuration needs to be, please see the connector + * specification of the relevant source/destination. + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws Exception if the API call fails + */ + public CreateOrUpdateOrganizationOAuthCredentialsResponse createOrUpdateOrganizationOAuthCredentials(CreateOrUpdateOrganizationOAuthCredentialsRequest request) throws Exception { + RequestOperation operation + = new CreateOrUpdateOrganizationOAuthCredentials.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } /** * List all organizations for a user @@ -41,7 +76,7 @@ public class Organizations implements * @return The call builder */ public ListOrganizationsForUserRequestBuilder listOrganizationsForUser() { - return new ListOrganizationsForUserRequestBuilder(this); + return new ListOrganizationsForUserRequestBuilder(sdkConfiguration); } /** @@ -53,112 +88,9 @@ public ListOrganizationsForUserRequestBuilder listOrganizationsForUser() { * @throws Exception if the API call fails */ public ListOrganizationsForUserResponse listOrganizationsForUserDirect() throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/organizations"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listOrganizationsForUser", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listOrganizationsForUser", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listOrganizationsForUser", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listOrganizationsForUser", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListOrganizationsForUserResponse.Builder _resBuilder = - ListOrganizationsForUserResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListOrganizationsForUserResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - OrganizationsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withOrganizationsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + RequestlessOperation operation + = new ListOrganizationsForUser.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest()); } } diff --git a/src/main/java/com/airbyte/api/Permissions.java b/src/main/java/com/airbyte/api/Permissions.java index bacbe537d..857603738 100644 --- a/src/main/java/com/airbyte/api/Permissions.java +++ b/src/main/java/com/airbyte/api/Permissions.java @@ -3,7 +3,8 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.CreatePermissionRequestBuilder; import com.airbyte.api.models.operations.CreatePermissionResponse; import com.airbyte.api.models.operations.DeletePermissionRequest; @@ -15,44 +16,37 @@ import com.airbyte.api.models.operations.ListPermissionsRequest; import com.airbyte.api.models.operations.ListPermissionsRequestBuilder; import com.airbyte.api.models.operations.ListPermissionsResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.models.operations.UpdatePermissionRequest; import com.airbyte.api.models.operations.UpdatePermissionRequestBuilder; import com.airbyte.api.models.operations.UpdatePermissionResponse; import com.airbyte.api.models.shared.PermissionCreateRequest; -import com.airbyte.api.models.shared.PermissionResponse; -import com.airbyte.api.models.shared.PermissionsResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.SerializedBody; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CreatePermission; +import com.airbyte.api.operations.DeletePermission; +import com.airbyte.api.operations.GetPermission; +import com.airbyte.api.operations.ListPermissions; +import com.airbyte.api.operations.UpdatePermission; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class Permissions implements - MethodCallCreatePermission, - MethodCallDeletePermission, - MethodCallGetPermission, - MethodCallListPermissions, - MethodCallUpdatePermission { +public class Permissions { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncPermissions asyncSDK; Permissions(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncPermissions(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncPermissions async() { + return asyncSDK; + } /** * Create a permission @@ -60,662 +54,108 @@ public class Permissions implements * @return The call builder */ public CreatePermissionRequestBuilder createPermission() { - return new CreatePermissionRequestBuilder(this); + return new CreatePermissionRequestBuilder(sdkConfiguration); } /** * Create a permission * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreatePermissionResponse createPermission( - PermissionCreateRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/permissions"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "request", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createPermission", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createPermission", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createPermission", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createPermission", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreatePermissionResponse.Builder _resBuilder = - CreatePermissionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreatePermissionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PermissionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withPermissionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreatePermissionResponse createPermission(PermissionCreateRequest request) throws Exception { + RequestOperation operation + = new CreatePermission.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Delete a Permission * * @return The call builder */ public DeletePermissionRequestBuilder deletePermission() { - return new DeletePermissionRequestBuilder(this); + return new DeletePermissionRequestBuilder(sdkConfiguration); } /** * Delete a Permission * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public DeletePermissionResponse deletePermission( - DeletePermissionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - DeletePermissionRequest.class, - _baseUrl, - "/permissions/{permissionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "*/*") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "deletePermission", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "422", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deletePermission", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "deletePermission", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deletePermission", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - DeletePermissionResponse.Builder _resBuilder = - DeletePermissionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - DeletePermissionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "422", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public DeletePermissionResponse deletePermission(DeletePermissionRequest request) throws Exception { + RequestOperation operation + = new DeletePermission.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Get Permission details * * @return The call builder */ public GetPermissionRequestBuilder getPermission() { - return new GetPermissionRequestBuilder(this); + return new GetPermissionRequestBuilder(sdkConfiguration); } /** * Get Permission details * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetPermissionResponse getPermission( - GetPermissionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - GetPermissionRequest.class, - _baseUrl, - "/permissions/{permissionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getPermission", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "422", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getPermission", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getPermission", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getPermission", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetPermissionResponse.Builder _resBuilder = - GetPermissionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetPermissionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PermissionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withPermissionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "422", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetPermissionResponse getPermission(GetPermissionRequest request) throws Exception { + RequestOperation operation + = new GetPermission.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * List Permissions by user id * * @return The call builder */ public ListPermissionsRequestBuilder listPermissions() { - return new ListPermissionsRequestBuilder(this); + return new ListPermissionsRequestBuilder(sdkConfiguration); } /** * List Permissions by user id * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListPermissionsResponse listPermissions( - ListPermissionsRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/permissions"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - ListPermissionsRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listPermissions", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listPermissions", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listPermissions", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listPermissions", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListPermissionsResponse.Builder _resBuilder = - ListPermissionsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListPermissionsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PermissionsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withPermissionsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListPermissionsResponse listPermissions(ListPermissionsRequest request) throws Exception { + RequestOperation operation + = new ListPermissions.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update a permission * * @return The call builder */ public UpdatePermissionRequestBuilder updatePermission() { - return new UpdatePermissionRequestBuilder(this); + return new UpdatePermissionRequestBuilder(sdkConfiguration); } /** * Update a permission * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public UpdatePermissionResponse updatePermission( - UpdatePermissionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - UpdatePermissionRequest.class, - _baseUrl, - "/permissions/{permissionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "permissionUpdateRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "updatePermission", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "422", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updatePermission", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "updatePermission", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updatePermission", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - UpdatePermissionResponse.Builder _resBuilder = - UpdatePermissionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - UpdatePermissionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - PermissionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withPermissionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "422", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public UpdatePermissionResponse updatePermission(UpdatePermissionRequest request) throws Exception { + RequestOperation operation + = new UpdatePermission.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/SDKConfiguration.java b/src/main/java/com/airbyte/api/SDKConfiguration.java index f31992332..740ddc1f6 100644 --- a/src/main/java/com/airbyte/api/SDKConfiguration.java +++ b/src/main/java/com/airbyte/api/SDKConfiguration.java @@ -5,37 +5,86 @@ import com.airbyte.api.hooks.ClientCredentialsHook; import com.airbyte.api.hooks.SDKHooks; +import com.airbyte.api.utils.AsyncHooks; import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.Hook.SdkInitData; import com.airbyte.api.utils.Hooks; import com.airbyte.api.utils.RetryConfig; +import com.airbyte.api.utils.SpeakeasyHTTPClient; +import com.airbyte.api.utils.Utils; import java.lang.String; import java.util.Optional; +import java.util.concurrent.Executors; +import java.util.concurrent.ScheduledExecutorService; -class SDKConfiguration { - public SecuritySource securitySource; +public class SDKConfiguration { + + private static final String LANGUAGE = "java"; + public static final String OPENAPI_DOC_VERSION = "1.0.0"; + public static final String SDK_VERSION = "3.0.0"; + public static final String GEN_VERSION = "2.723.11"; + private static final String BASE_PACKAGE = "com.airbyte.api"; + public static final String USER_AGENT = + String.format("speakeasy-sdk/%s %s %s %s %s", + LANGUAGE, SDK_VERSION, GEN_VERSION, OPENAPI_DOC_VERSION, BASE_PACKAGE); + + private SecuritySource securitySource = SecuritySource.of(null); + + public SecuritySource securitySource() { + return securitySource; + } - public Optional securitySource() { - return Optional.ofNullable(securitySource); + public void setSecuritySource(SecuritySource securitySource) { + Utils.checkNotNull(securitySource, "securitySource"); + this.securitySource = securitySource; } - public HTTPClient defaultClient; + private HTTPClient client = new SpeakeasyHTTPClient(); - public String serverUrl; + public HTTPClient client() { + return client; + } + + public void setClient(HTTPClient client) { + Utils.checkNotNull(client, "client"); + this.client = client; + } + + private String serverUrl; + + public String serverUrl() { + return serverUrl; + } + + public void setServerUrl(String serverUrl) { + Utils.checkNotNull(serverUrl, "serverUrl"); + this.serverUrl = trimFinalSlash(serverUrl); + } + + private static String trimFinalSlash(String url) { + if (url == null) { + return null; + } else if (url.endsWith("/")) { + return url.substring(0, url.length() - 1); + } else { + return url; + } + } public String resolvedServerUrl() { return serverUrl; } - public int serverIdx = 0; - private static final String LANGUAGE = "java"; - public static final String OPENAPI_DOC_VERSION = "1.0.0"; - public static final String SDK_VERSION = "2.0.0"; - public static final String GEN_VERSION = "2.578.0"; - private static final String BASE_PACKAGE = "com.airbyte.api"; - public static final String USER_AGENT = - String.format("speakeasy-sdk/%s %s %s %s %s", - LANGUAGE, SDK_VERSION, GEN_VERSION, OPENAPI_DOC_VERSION, BASE_PACKAGE); - + + private int serverIdx = 0; + + public void setServerIdx(int serverIdx) { + this.serverIdx = serverIdx; + } + + public int serverIdx() { + return serverIdx; + } + + private Hooks _hooks = createHooks(); private static Hooks createHooks() { @@ -45,6 +94,7 @@ private static Hooks createHooks() { hooks.registerSdkInit(h); hooks.registerBeforeRequest(h); hooks.registerAfterError(h); + // TODO: async client credentials hooks are yet to be supported } return hooks; } @@ -57,18 +107,45 @@ public void setHooks(Hooks hooks) { this._hooks = hooks; } - /** + /** * Initializes state (for example hooks). **/ public void initialize() { SDKHooks.initialize(_hooks); - // apply the sdk init hook immediately - SdkInitData data = _hooks.sdkInit(new SdkInitData(resolvedServerUrl(), defaultClient)); - this.serverUrl = data.baseUrl(); - this.defaultClient = data.client(); + SDKHooks.initialize(_asyncHooks); } - public Optional retryConfig = Optional.empty(); + private Optional retryConfig = Optional.empty(); + + public Optional retryConfig() { + return retryConfig; + } + + public void setRetryConfig(Optional retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + } + private ScheduledExecutorService retryScheduler = Executors.newSingleThreadScheduledExecutor(); + + public ScheduledExecutorService retryScheduler() { + return retryScheduler; + } + + public void setAsyncRetryScheduler(ScheduledExecutorService retryScheduler) { + Utils.checkNotNull(retryScheduler, "retryScheduler"); + this.retryScheduler = retryScheduler; + } + + private AsyncHooks _asyncHooks = new AsyncHooks(); + + public AsyncHooks asyncHooks() { + return _asyncHooks; + } + + public void setAsyncHooks(AsyncHooks asyncHooks) { + Utils.checkNotNull(asyncHooks, "asyncHooks"); + this._asyncHooks = asyncHooks; + } } diff --git a/src/main/java/com/airbyte/api/SourceDefinitions.java b/src/main/java/com/airbyte/api/SourceDefinitions.java index ab0359cc5..ea1997593 100644 --- a/src/main/java/com/airbyte/api/SourceDefinitions.java +++ b/src/main/java/com/airbyte/api/SourceDefinitions.java @@ -3,7 +3,8 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.CreateSourceDefinitionRequest; import com.airbyte.api.models.operations.CreateSourceDefinitionRequestBuilder; import com.airbyte.api.models.operations.CreateSourceDefinitionResponse; @@ -16,43 +17,36 @@ import com.airbyte.api.models.operations.ListSourceDefinitionsRequest; import com.airbyte.api.models.operations.ListSourceDefinitionsRequestBuilder; import com.airbyte.api.models.operations.ListSourceDefinitionsResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.models.operations.UpdateSourceDefinitionRequest; import com.airbyte.api.models.operations.UpdateSourceDefinitionRequestBuilder; import com.airbyte.api.models.operations.UpdateSourceDefinitionResponse; -import com.airbyte.api.models.shared.DefinitionResponse; -import com.airbyte.api.models.shared.DefinitionsResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.SerializedBody; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CreateSourceDefinition; +import com.airbyte.api.operations.DeleteSourceDefinition; +import com.airbyte.api.operations.GetSourceDefinition; +import com.airbyte.api.operations.ListSourceDefinitions; +import com.airbyte.api.operations.UpdateSourceDefinition; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class SourceDefinitions implements - MethodCallCreateSourceDefinition, - MethodCallDeleteSourceDefinition, - MethodCallGetSourceDefinition, - MethodCallListSourceDefinitions, - MethodCallUpdateSourceDefinition { +public class SourceDefinitions { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncSourceDefinitions asyncSDK; SourceDefinitions(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncSourceDefinitions(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncSourceDefinitions async() { + return asyncSDK; + } /** * Create a source definition. @@ -60,672 +54,108 @@ public class SourceDefinitions implements * @return The call builder */ public CreateSourceDefinitionRequestBuilder createSourceDefinition() { - return new CreateSourceDefinitionRequestBuilder(this); + return new CreateSourceDefinitionRequestBuilder(sdkConfiguration); } /** * Create a source definition. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreateSourceDefinitionResponse createSourceDefinition( - CreateSourceDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - CreateSourceDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/sources", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "createDefinitionRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreateSourceDefinitionResponse.Builder _resBuilder = - CreateSourceDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreateSourceDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreateSourceDefinitionResponse createSourceDefinition(CreateSourceDefinitionRequest request) throws Exception { + RequestOperation operation + = new CreateSourceDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Delete a source definition. * * @return The call builder */ public DeleteSourceDefinitionRequestBuilder deleteSourceDefinition() { - return new DeleteSourceDefinitionRequestBuilder(this); + return new DeleteSourceDefinitionRequestBuilder(sdkConfiguration); } /** * Delete a source definition. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public DeleteSourceDefinitionResponse deleteSourceDefinition( - DeleteSourceDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - DeleteSourceDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/sources/{definitionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "deleteSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "deleteSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - DeleteSourceDefinitionResponse.Builder _resBuilder = - DeleteSourceDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - DeleteSourceDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public DeleteSourceDefinitionResponse deleteSourceDefinition(DeleteSourceDefinitionRequest request) throws Exception { + RequestOperation operation + = new DeleteSourceDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Get source definition details. * * @return The call builder */ public GetSourceDefinitionRequestBuilder getSourceDefinition() { - return new GetSourceDefinitionRequestBuilder(this); + return new GetSourceDefinitionRequestBuilder(sdkConfiguration); } /** * Get source definition details. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetSourceDefinitionResponse getSourceDefinition( - GetSourceDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - GetSourceDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/sources/{definitionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetSourceDefinitionResponse.Builder _resBuilder = - GetSourceDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetSourceDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetSourceDefinitionResponse getSourceDefinition(GetSourceDefinitionRequest request) throws Exception { + RequestOperation operation + = new GetSourceDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * List source definitions. * * @return The call builder */ public ListSourceDefinitionsRequestBuilder listSourceDefinitions() { - return new ListSourceDefinitionsRequestBuilder(this); + return new ListSourceDefinitionsRequestBuilder(sdkConfiguration); } /** * List source definitions. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListSourceDefinitionsResponse listSourceDefinitions( - ListSourceDefinitionsRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - ListSourceDefinitionsRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/sources", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listSourceDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listSourceDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listSourceDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listSourceDefinitions", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListSourceDefinitionsResponse.Builder _resBuilder = - ListSourceDefinitionsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListSourceDefinitionsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DefinitionsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDefinitionsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListSourceDefinitionsResponse listSourceDefinitions(ListSourceDefinitionsRequest request) throws Exception { + RequestOperation operation + = new ListSourceDefinitions.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update source definition details. * * @return The call builder */ public UpdateSourceDefinitionRequestBuilder updateSourceDefinition() { - return new UpdateSourceDefinitionRequestBuilder(this); + return new UpdateSourceDefinitionRequestBuilder(sdkConfiguration); } /** * Update source definition details. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public UpdateSourceDefinitionResponse updateSourceDefinition( - UpdateSourceDefinitionRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - UpdateSourceDefinitionRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/definitions/sources/{definitionId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PUT"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "updateDefinitionRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "updateSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updateSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "updateSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updateSourceDefinition", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - UpdateSourceDefinitionResponse.Builder _resBuilder = - UpdateSourceDefinitionResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - UpdateSourceDefinitionResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - DefinitionResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withDefinitionResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public UpdateSourceDefinitionResponse updateSourceDefinition(UpdateSourceDefinitionRequest request) throws Exception { + RequestOperation operation + = new UpdateSourceDefinition.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/Sources.java b/src/main/java/com/airbyte/api/Sources.java index 36ad202a0..1e8b2c299 100644 --- a/src/main/java/com/airbyte/api/Sources.java +++ b/src/main/java/com/airbyte/api/Sources.java @@ -3,7 +3,8 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.CreateSourceRequestBuilder; import com.airbyte.api.models.operations.CreateSourceResponse; import com.airbyte.api.models.operations.DeleteSourceRequest; @@ -23,60 +24,56 @@ import com.airbyte.api.models.operations.PutSourceRequest; import com.airbyte.api.models.operations.PutSourceRequestBuilder; import com.airbyte.api.models.operations.PutSourceResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.models.shared.InitiateOauthRequest; import com.airbyte.api.models.shared.SourceCreateRequest; -import com.airbyte.api.models.shared.SourceResponse; -import com.airbyte.api.models.shared.SourcesResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.SerializedBody; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CreateSource; +import com.airbyte.api.operations.DeleteSource; +import com.airbyte.api.operations.GetSource; +import com.airbyte.api.operations.InitiateOAuth; +import com.airbyte.api.operations.ListSources; +import com.airbyte.api.operations.PatchSource; +import com.airbyte.api.operations.PutSource; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; import java.util.Optional; -public class Sources implements - MethodCallCreateSource, - MethodCallDeleteSource, - MethodCallGetSource, - MethodCallInitiateOAuth, - MethodCallListSources, - MethodCallPatchSource, - MethodCallPutSource { +public class Sources { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncSources asyncSDK; Sources(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncSources(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncSources async() { + return asyncSDK; + } /** * Create a source * - *

Creates a source given a name, workspace id, and a json blob containing the configuration for the source. + *

Creates a source given a name, workspace id, and a json blob containing the configuration for the + * source. * * @return The call builder */ public CreateSourceRequestBuilder createSource() { - return new CreateSourceRequestBuilder(this); + return new CreateSourceRequestBuilder(sdkConfiguration); } /** * Create a source * - *

Creates a source given a name, workspace id, and a json blob containing the configuration for the source. + *

Creates a source given a name, workspace id, and a json blob containing the configuration for the + * source. * * @return The response from the API call * @throws Exception if the API call fails @@ -84,405 +81,83 @@ public CreateSourceRequestBuilder createSource() { public CreateSourceResponse createSourceDirect() throws Exception { return createSource(Optional.empty()); } - + /** * Create a source * - *

Creates a source given a name, workspace id, and a json blob containing the configuration for the source. + *

Creates a source given a name, workspace id, and a json blob containing the configuration for the + * source. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreateSourceResponse createSource( - Optional request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/sources"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference>() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "request", - "json", - false); - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createSource", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createSource", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createSource", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createSource", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreateSourceResponse.Builder _resBuilder = - CreateSourceResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreateSourceResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - SourceResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withSourceResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreateSourceResponse createSource(Optional request) throws Exception { + RequestOperation, CreateSourceResponse> operation + = new CreateSource.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Delete a Source * * @return The call builder */ public DeleteSourceRequestBuilder deleteSource() { - return new DeleteSourceRequestBuilder(this); + return new DeleteSourceRequestBuilder(sdkConfiguration); } /** * Delete a Source * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public DeleteSourceResponse deleteSource( - DeleteSourceRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - DeleteSourceRequest.class, - _baseUrl, - "/sources/{sourceId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "*/*") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "deleteSource", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteSource", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "deleteSource", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteSource", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - DeleteSourceResponse.Builder _resBuilder = - DeleteSourceResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - DeleteSourceResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public DeleteSourceResponse deleteSource(DeleteSourceRequest request) throws Exception { + RequestOperation operation + = new DeleteSource.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Get Source details * * @return The call builder */ public GetSourceRequestBuilder getSource() { - return new GetSourceRequestBuilder(this); + return new GetSourceRequestBuilder(sdkConfiguration); } /** * Get Source details * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetSourceResponse getSource( - GetSourceRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - GetSourceRequest.class, - _baseUrl, - "/sources/{sourceId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - GetSourceRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getSource", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getSource", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getSource", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getSource", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetSourceResponse.Builder _resBuilder = - GetSourceResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetSourceResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - SourceResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withSourceResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetSourceResponse getSource(GetSourceRequest request) throws Exception { + RequestOperation operation + = new GetSource.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Initiate OAuth for a source * *

Given a source ID, workspace ID, and redirect URL, initiates OAuth for the source. * - *

This returns a fully formed URL for performing user authentication against the relevant source identity provider (IdP). Once authentication has been completed, the IdP will redirect to an Airbyte endpoint which will save the access and refresh tokens off as a secret and return the secret ID to the redirect URL specified in the `secret_id` query string parameter. + *

This returns a fully formed URL for performing user authentication against the relevant source + * identity provider (IdP). Once authentication has been completed, the IdP will redirect to an Airbyte + * endpoint which will save the access and refresh tokens off as a secret and return the secret ID to + * the redirect URL specified in the `secret_id` query string parameter. * *

That secret ID can be used to create a source with credentials in place of actual tokens. * * @return The call builder */ public InitiateOAuthRequestBuilder initiateOAuth() { - return new InitiateOAuthRequestBuilder(this); + return new InitiateOAuthRequestBuilder(sdkConfiguration); } /** @@ -490,537 +165,87 @@ public InitiateOAuthRequestBuilder initiateOAuth() { * *

Given a source ID, workspace ID, and redirect URL, initiates OAuth for the source. * - *

This returns a fully formed URL for performing user authentication against the relevant source identity provider (IdP). Once authentication has been completed, the IdP will redirect to an Airbyte endpoint which will save the access and refresh tokens off as a secret and return the secret ID to the redirect URL specified in the `secret_id` query string parameter. + *

This returns a fully formed URL for performing user authentication against the relevant source + * identity provider (IdP). Once authentication has been completed, the IdP will redirect to an Airbyte + * endpoint which will save the access and refresh tokens off as a secret and return the secret ID to + * the redirect URL specified in the `secret_id` query string parameter. * *

That secret ID can be used to create a source with credentials in place of actual tokens. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public InitiateOAuthResponse initiateOAuth( - InitiateOauthRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/sources/initiateOAuth"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "request", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "*/*") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "initiateOAuth", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "initiateOAuth", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "initiateOAuth", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "initiateOAuth", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - InitiateOAuthResponse.Builder _resBuilder = - InitiateOAuthResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - InitiateOAuthResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public InitiateOAuthResponse initiateOAuth(InitiateOauthRequest request) throws Exception { + RequestOperation operation + = new InitiateOAuth.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * List sources * * @return The call builder */ public ListSourcesRequestBuilder listSources() { - return new ListSourcesRequestBuilder(this); + return new ListSourcesRequestBuilder(sdkConfiguration); } /** * List sources * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListSourcesResponse listSources( - ListSourcesRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/sources"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - ListSourcesRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listSources", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listSources", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listSources", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listSources", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListSourcesResponse.Builder _resBuilder = - ListSourcesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListSourcesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - SourcesResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withSourcesResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListSourcesResponse listSources(ListSourcesRequest request) throws Exception { + RequestOperation operation + = new ListSources.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update a Source * * @return The call builder */ public PatchSourceRequestBuilder patchSource() { - return new PatchSourceRequestBuilder(this); + return new PatchSourceRequestBuilder(sdkConfiguration); } /** * Update a Source * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public PatchSourceResponse patchSource( - PatchSourceRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PatchSourceRequest.class, - _baseUrl, - "/sources/{sourceId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "sourcePatchRequest", - "json", - false); - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "patchSource", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "patchSource", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "patchSource", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "patchSource", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PatchSourceResponse.Builder _resBuilder = - PatchSourceResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PatchSourceResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - SourceResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withSourceResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public PatchSourceResponse patchSource(PatchSourceRequest request) throws Exception { + RequestOperation operation + = new PatchSource.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update a Source and fully overwrite it * * @return The call builder */ public PutSourceRequestBuilder putSource() { - return new PutSourceRequestBuilder(this); + return new PutSourceRequestBuilder(sdkConfiguration); } /** * Update a Source and fully overwrite it * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public PutSourceResponse putSource( - PutSourceRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - PutSourceRequest.class, - _baseUrl, - "/sources/{sourceId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PUT"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "sourcePutRequest", - "json", - false); - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "putSource", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "putSource", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "putSource", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "putSource", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PutSourceResponse.Builder _resBuilder = - PutSourceResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - PutSourceResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - SourceResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withSourceResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public PutSourceResponse putSource(PutSourceRequest request) throws Exception { + RequestOperation operation + = new PutSource.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/Streams.java b/src/main/java/com/airbyte/api/Streams.java index 3ae313355..5fff145f9 100644 --- a/src/main/java/com/airbyte/api/Streams.java +++ b/src/main/java/com/airbyte/api/Streams.java @@ -3,36 +3,34 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.GetStreamPropertiesRequest; import com.airbyte.api.models.operations.GetStreamPropertiesRequestBuilder; import com.airbyte.api.models.operations.GetStreamPropertiesResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; -import com.airbyte.api.models.shared.StreamProperties; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.GetStreamProperties; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class Streams implements - MethodCallGetStreamProperties { +public class Streams { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncStreams asyncSDK; Streams(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncStreams(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncStreams async() { + return asyncSDK; + } /** * Get stream properties @@ -40,129 +38,20 @@ public class Streams implements * @return The call builder */ public GetStreamPropertiesRequestBuilder getStreamProperties() { - return new GetStreamPropertiesRequestBuilder(this); + return new GetStreamPropertiesRequestBuilder(sdkConfiguration); } /** * Get stream properties * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetStreamPropertiesResponse getStreamProperties( - GetStreamPropertiesRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/streams"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - GetStreamPropertiesRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getStreamProperties", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getStreamProperties", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getStreamProperties", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getStreamProperties", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetStreamPropertiesResponse.Builder _resBuilder = - GetStreamPropertiesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetStreamPropertiesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - List _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference>() {}); - _res.withStreamPropertiesResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetStreamPropertiesResponse getStreamProperties(GetStreamPropertiesRequest request) throws Exception { + RequestOperation operation + = new GetStreamProperties.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/Tags.java b/src/main/java/com/airbyte/api/Tags.java index ba2238c0b..160a342bd 100644 --- a/src/main/java/com/airbyte/api/Tags.java +++ b/src/main/java/com/airbyte/api/Tags.java @@ -3,7 +3,8 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.CreateTagRequestBuilder; import com.airbyte.api.models.operations.CreateTagResponse; import com.airbyte.api.models.operations.DeleteTagRequest; @@ -15,44 +16,37 @@ import com.airbyte.api.models.operations.ListTagsRequest; import com.airbyte.api.models.operations.ListTagsRequestBuilder; import com.airbyte.api.models.operations.ListTagsResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.models.operations.UpdateTagRequest; import com.airbyte.api.models.operations.UpdateTagRequestBuilder; import com.airbyte.api.models.operations.UpdateTagResponse; import com.airbyte.api.models.shared.TagCreateRequest; -import com.airbyte.api.models.shared.TagResponse; -import com.airbyte.api.models.shared.TagsResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.SerializedBody; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CreateTag; +import com.airbyte.api.operations.DeleteTag; +import com.airbyte.api.operations.GetTag; +import com.airbyte.api.operations.ListTags; +import com.airbyte.api.operations.UpdateTag; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class Tags implements - MethodCallCreateTag, - MethodCallDeleteTag, - MethodCallGetTag, - MethodCallListTags, - MethodCallUpdateTag { +public class Tags { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncTags asyncSDK; Tags(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncTags(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncTags async() { + return asyncSDK; + } /** * Create a tag @@ -62,7 +56,7 @@ public class Tags implements * @return The call builder */ public CreateTagRequestBuilder createTag() { - return new CreateTagRequestBuilder(this); + return new CreateTagRequestBuilder(sdkConfiguration); } /** @@ -70,135 +64,16 @@ public CreateTagRequestBuilder createTag() { * *

Create a tag * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreateTagResponse createTag( - TagCreateRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/tags"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "request", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createTag", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "409", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createTag", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createTag", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createTag", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreateTagResponse.Builder _resBuilder = - CreateTagResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreateTagResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - TagResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withTagResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "409", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreateTagResponse createTag(TagCreateRequest request) throws Exception { + RequestOperation operation + = new CreateTag.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Delete a tag * @@ -207,7 +82,7 @@ public CreateTagResponse createTag( * @return The call builder */ public DeleteTagRequestBuilder deleteTag() { - return new DeleteTagRequestBuilder(this); + return new DeleteTagRequestBuilder(sdkConfiguration); } /** @@ -215,113 +90,16 @@ public DeleteTagRequestBuilder deleteTag() { * *

Delete a tag * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public DeleteTagResponse deleteTag( - DeleteTagRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - DeleteTagRequest.class, - _baseUrl, - "/tags/{tagId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "*/*") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "deleteTag", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteTag", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "deleteTag", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteTag", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - DeleteTagResponse.Builder _resBuilder = - DeleteTagResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - DeleteTagResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public DeleteTagResponse deleteTag(DeleteTagRequest request) throws Exception { + RequestOperation operation + = new DeleteTag.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Get a tag * @@ -330,7 +108,7 @@ public DeleteTagResponse deleteTag( * @return The call builder */ public GetTagRequestBuilder getTag() { - return new GetTagRequestBuilder(this); + return new GetTagRequestBuilder(sdkConfiguration); } /** @@ -338,124 +116,16 @@ public GetTagRequestBuilder getTag() { * *

Get a tag * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetTagResponse getTag( - GetTagRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - GetTagRequest.class, - _baseUrl, - "/tags/{tagId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getTag", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getTag", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getTag", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getTag", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetTagResponse.Builder _resBuilder = - GetTagResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetTagResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - TagResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withTagResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetTagResponse getTag(GetTagRequest request) throws Exception { + RequestOperation operation + = new GetTag.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * List all tags * @@ -464,7 +134,7 @@ public GetTagResponse getTag( * @return The call builder */ public ListTagsRequestBuilder listTags() { - return new ListTagsRequestBuilder(this); + return new ListTagsRequestBuilder(sdkConfiguration); } /** @@ -472,127 +142,16 @@ public ListTagsRequestBuilder listTags() { * *

Lists all tags * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListTagsResponse listTags( - ListTagsRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/tags"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - ListTagsRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listTags", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listTags", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listTags", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listTags", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListTagsResponse.Builder _resBuilder = - ListTagsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListTagsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - TagsResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withTagsResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListTagsResponse listTags(ListTagsRequest request) throws Exception { + RequestOperation operation + = new ListTags.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update a tag * @@ -601,7 +160,7 @@ public ListTagsResponse listTags( * @return The call builder */ public UpdateTagRequestBuilder updateTag() { - return new UpdateTagRequestBuilder(this); + return new UpdateTagRequestBuilder(sdkConfiguration); } /** @@ -609,133 +168,14 @@ public UpdateTagRequestBuilder updateTag() { * *

Update a tag * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public UpdateTagResponse updateTag( - UpdateTagRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - UpdateTagRequest.class, - _baseUrl, - "/tags/{tagId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "tagPatchRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "updateTag", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updateTag", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "updateTag", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updateTag", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - UpdateTagResponse.Builder _resBuilder = - UpdateTagResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - UpdateTagResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - TagResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withTagResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public UpdateTagResponse updateTag(UpdateTagRequest request) throws Exception { + RequestOperation operation + = new UpdateTag.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/Users.java b/src/main/java/com/airbyte/api/Users.java index a4c49cc9d..afa0f8e60 100644 --- a/src/main/java/com/airbyte/api/Users.java +++ b/src/main/java/com/airbyte/api/Users.java @@ -3,170 +3,61 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequest; import com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequestBuilder; import com.airbyte.api.models.operations.ListUsersWithinAnOrganizationResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; -import com.airbyte.api.models.shared.UsersResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.ListUsersWithinAnOrganization; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class Users implements - MethodCallListUsersWithinAnOrganization { +public class Users { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncUsers asyncSDK; Users(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncUsers(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncUsers async() { + return asyncSDK; + } /** * List all users within an organization * - *

Organization Admin user can list all users within the same organization. Also provide filtering on a list of user IDs or/and a list of user emails. + *

Organization Admin user can list all users within the same organization. Also provide filtering on a + * list of user IDs or/and a list of user emails. * * @return The call builder */ public ListUsersWithinAnOrganizationRequestBuilder listUsersWithinAnOrganization() { - return new ListUsersWithinAnOrganizationRequestBuilder(this); + return new ListUsersWithinAnOrganizationRequestBuilder(sdkConfiguration); } /** * List all users within an organization * - *

Organization Admin user can list all users within the same organization. Also provide filtering on a list of user IDs or/and a list of user emails. + *

Organization Admin user can list all users within the same organization. Also provide filtering on a + * list of user IDs or/and a list of user emails. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListUsersWithinAnOrganizationResponse listUsersWithinAnOrganization( - ListUsersWithinAnOrganizationRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/users"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - ListUsersWithinAnOrganizationRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listUsersWithinAnOrganization", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listUsersWithinAnOrganization", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listUsersWithinAnOrganization", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listUsersWithinAnOrganization", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListUsersWithinAnOrganizationResponse.Builder _resBuilder = - ListUsersWithinAnOrganizationResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListUsersWithinAnOrganizationResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - UsersResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withUsersResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListUsersWithinAnOrganizationResponse listUsersWithinAnOrganization(ListUsersWithinAnOrganizationRequest request) throws Exception { + RequestOperation operation + = new ListUsersWithinAnOrganization.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/Workspaces.java b/src/main/java/com/airbyte/api/Workspaces.java index 81cf3b40f..d98d239b9 100644 --- a/src/main/java/com/airbyte/api/Workspaces.java +++ b/src/main/java/com/airbyte/api/Workspaces.java @@ -3,7 +3,8 @@ */ package com.airbyte.api; -import com.airbyte.api.models.errors.SDKError; +import static com.airbyte.api.operations.Operations.RequestOperation; + import com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsRequest; import com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder; import com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsResponse; @@ -18,846 +19,179 @@ import com.airbyte.api.models.operations.ListWorkspacesRequest; import com.airbyte.api.models.operations.ListWorkspacesRequestBuilder; import com.airbyte.api.models.operations.ListWorkspacesResponse; -import com.airbyte.api.models.operations.SDKMethodInterfaces.*; import com.airbyte.api.models.operations.UpdateWorkspaceRequest; import com.airbyte.api.models.operations.UpdateWorkspaceRequestBuilder; import com.airbyte.api.models.operations.UpdateWorkspaceResponse; import com.airbyte.api.models.shared.WorkspaceCreateRequest; -import com.airbyte.api.models.shared.WorkspaceResponse; -import com.airbyte.api.models.shared.WorkspacesResponse; -import com.airbyte.api.utils.HTTPClient; -import com.airbyte.api.utils.HTTPRequest; -import com.airbyte.api.utils.Hook.AfterErrorContextImpl; -import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; -import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; -import com.airbyte.api.utils.SerializedBody; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.core.type.TypeReference; -import java.io.InputStream; +import com.airbyte.api.operations.CreateOrUpdateWorkspaceOAuthCredentials; +import com.airbyte.api.operations.CreateWorkspace; +import com.airbyte.api.operations.DeleteWorkspace; +import com.airbyte.api.operations.GetWorkspace; +import com.airbyte.api.operations.ListWorkspaces; +import com.airbyte.api.operations.UpdateWorkspace; +import com.airbyte.api.utils.Headers; import java.lang.Exception; -import java.lang.Object; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.List; -import java.util.Optional; -public class Workspaces implements - MethodCallCreateOrUpdateWorkspaceOAuthCredentials, - MethodCallCreateWorkspace, - MethodCallDeleteWorkspace, - MethodCallGetWorkspace, - MethodCallListWorkspaces, - MethodCallUpdateWorkspace { +public class Workspaces { + private static final Headers _headers = Headers.EMPTY; private final SDKConfiguration sdkConfiguration; + private final AsyncWorkspaces asyncSDK; Workspaces(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; + this.asyncSDK = new AsyncWorkspaces(this, sdkConfiguration); } + /** + * Switches to the async SDK. + * + * @return The async SDK + */ + public AsyncWorkspaces async() { + return asyncSDK; + } /** * Create OAuth override credentials for a workspace and source type. * - *

Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for source/destination OAuth. - * In order to determine what the credential configuration needs to be, please see the connector specification of the relevant source/destination. + *

Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for + * source/destination OAuth. + * In order to determine what the credential configuration needs to be, please see the connector + * specification of the relevant source/destination. * * @return The call builder */ public CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder createOrUpdateWorkspaceOAuthCredentials() { - return new CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder(this); + return new CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder(sdkConfiguration); } /** * Create OAuth override credentials for a workspace and source type. * - *

Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for source/destination OAuth. - * In order to determine what the credential configuration needs to be, please see the connector specification of the relevant source/destination. + *

Create/update a set of OAuth credentials to override the Airbyte-provided OAuth credentials used for + * source/destination OAuth. + * In order to determine what the credential configuration needs to be, please see the connector + * specification of the relevant source/destination. * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreateOrUpdateWorkspaceOAuthCredentialsResponse createOrUpdateWorkspaceOAuthCredentials( - CreateOrUpdateWorkspaceOAuthCredentialsRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - CreateOrUpdateWorkspaceOAuthCredentialsRequest.class, - _baseUrl, - "/workspaces/{workspaceId}/oauthCredentials", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PUT"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "workspaceOAuthCredentialsRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "*/*") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createOrUpdateWorkspaceOAuthCredentials", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createOrUpdateWorkspaceOAuthCredentials", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createOrUpdateWorkspaceOAuthCredentials", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createOrUpdateWorkspaceOAuthCredentials", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreateOrUpdateWorkspaceOAuthCredentialsResponse.Builder _resBuilder = - CreateOrUpdateWorkspaceOAuthCredentialsResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreateOrUpdateWorkspaceOAuthCredentialsResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreateOrUpdateWorkspaceOAuthCredentialsResponse createOrUpdateWorkspaceOAuthCredentials(CreateOrUpdateWorkspaceOAuthCredentialsRequest request) throws Exception { + RequestOperation operation + = new CreateOrUpdateWorkspaceOAuthCredentials.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Create a workspace * * @return The call builder */ public CreateWorkspaceRequestBuilder createWorkspace() { - return new CreateWorkspaceRequestBuilder(this); + return new CreateWorkspaceRequestBuilder(sdkConfiguration); } /** * Create a workspace * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public CreateWorkspaceResponse createWorkspace( - WorkspaceCreateRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/workspaces"); - - HTTPRequest _req = new HTTPRequest(_url, "POST"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "request", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "createWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "createWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "createWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - CreateWorkspaceResponse.Builder _resBuilder = - CreateWorkspaceResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - CreateWorkspaceResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - WorkspaceResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withWorkspaceResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public CreateWorkspaceResponse createWorkspace(WorkspaceCreateRequest request) throws Exception { + RequestOperation operation + = new CreateWorkspace.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Delete a Workspace * * @return The call builder */ public DeleteWorkspaceRequestBuilder deleteWorkspace() { - return new DeleteWorkspaceRequestBuilder(this); + return new DeleteWorkspaceRequestBuilder(sdkConfiguration); } /** * Delete a Workspace * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public DeleteWorkspaceResponse deleteWorkspace( - DeleteWorkspaceRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - DeleteWorkspaceRequest.class, - _baseUrl, - "/workspaces/{workspaceId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "DELETE"); - _req.addHeader("Accept", "*/*") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "deleteWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "deleteWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "deleteWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - DeleteWorkspaceResponse.Builder _resBuilder = - DeleteWorkspaceResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - DeleteWorkspaceResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "204")) { - // no content - return _res; - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public DeleteWorkspaceResponse deleteWorkspace(DeleteWorkspaceRequest request) throws Exception { + RequestOperation operation + = new DeleteWorkspace.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Get Workspace details * * @return The call builder */ public GetWorkspaceRequestBuilder getWorkspace() { - return new GetWorkspaceRequestBuilder(this); + return new GetWorkspaceRequestBuilder(sdkConfiguration); } /** * Get Workspace details * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public GetWorkspaceResponse getWorkspace( - GetWorkspaceRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - GetWorkspaceRequest.class, - _baseUrl, - "/workspaces/{workspaceId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "getWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "getWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "getWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetWorkspaceResponse.Builder _resBuilder = - GetWorkspaceResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - GetWorkspaceResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - WorkspaceResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withWorkspaceResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public GetWorkspaceResponse getWorkspace(GetWorkspaceRequest request) throws Exception { + RequestOperation operation + = new GetWorkspace.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * List workspaces * * @return The call builder */ public ListWorkspacesRequestBuilder listWorkspaces() { - return new ListWorkspacesRequestBuilder(this); + return new ListWorkspacesRequestBuilder(sdkConfiguration); } /** * List workspaces * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public ListWorkspacesResponse listWorkspaces( - ListWorkspacesRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - _baseUrl, - "/workspaces"); - - HTTPRequest _req = new HTTPRequest(_url, "GET"); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - _req.addQueryParams(Utils.getQueryParams( - ListWorkspacesRequest.class, - request, - null)); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "listWorkspaces", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listWorkspaces", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "listWorkspaces", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "listWorkspaces", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListWorkspacesResponse.Builder _resBuilder = - ListWorkspacesResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - ListWorkspacesResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - WorkspacesResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withWorkspacesResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "403", "404", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public ListWorkspacesResponse listWorkspaces(ListWorkspacesRequest request) throws Exception { + RequestOperation operation + = new ListWorkspaces.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } - - /** * Update a workspace * * @return The call builder */ public UpdateWorkspaceRequestBuilder updateWorkspace() { - return new UpdateWorkspaceRequestBuilder(this); + return new UpdateWorkspaceRequestBuilder(sdkConfiguration); } /** * Update a workspace * - * @param request The request object containing all of the parameters for the API call. + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws Exception if the API call fails */ - public UpdateWorkspaceResponse updateWorkspace( - UpdateWorkspaceRequest request) throws Exception { - String _baseUrl = this.sdkConfiguration.serverUrl; - String _url = Utils.generateURL( - UpdateWorkspaceRequest.class, - _baseUrl, - "/workspaces/{workspaceId}", - request, null); - - HTTPRequest _req = new HTTPRequest(_url, "PATCH"); - Object _convertedRequest = Utils.convertToShape( - request, - JsonShape.DEFAULT, - new TypeReference() {}); - SerializedBody _serializedRequestBody = Utils.serializeRequestBody( - _convertedRequest, - "workspaceUpdateRequest", - "json", - false); - if (_serializedRequestBody == null) { - throw new Exception("Request body is required"); - } - _req.setBody(Optional.ofNullable(_serializedRequestBody)); - _req.addHeader("Accept", "application/json") - .addHeader("user-agent", - SDKConfiguration.USER_AGENT); - - Optional _hookSecuritySource = this.sdkConfiguration.securitySource(); - Utils.configureSecurity(_req, - this.sdkConfiguration.securitySource.getSecurity()); - HTTPClient _client = this.sdkConfiguration.defaultClient; - HttpRequest _r = - sdkConfiguration.hooks() - .beforeRequest( - new BeforeRequestContextImpl( - _baseUrl, - "updateWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - _req.build()); - HttpResponse _httpRes; - try { - _httpRes = _client.send(_r); - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX", "5XX")) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updateWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - Optional.of(_httpRes), - Optional.empty()); - } else { - _httpRes = sdkConfiguration.hooks() - .afterSuccess( - new AfterSuccessContextImpl( - _baseUrl, - "updateWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - _httpRes); - } - } catch (Exception _e) { - _httpRes = sdkConfiguration.hooks() - .afterError( - new AfterErrorContextImpl( - _baseUrl, - "updateWorkspace", - Optional.of(List.of()), - _hookSecuritySource), - Optional.empty(), - Optional.of(_e)); - } - String _contentType = _httpRes - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - UpdateWorkspaceResponse.Builder _resBuilder = - UpdateWorkspaceResponse - .builder() - .contentType(_contentType) - .statusCode(_httpRes.statusCode()) - .rawResponse(_httpRes); - - UpdateWorkspaceResponse _res = _resBuilder.build(); - - if (Utils.statusCodeMatches(_httpRes.statusCode(), "200")) { - if (Utils.contentTypeMatches(_contentType, "application/json")) { - WorkspaceResponse _out = Utils.mapper().readValue( - Utils.toUtf8AndClose(_httpRes.body()), - new TypeReference() {}); - _res.withWorkspaceResponse(Optional.ofNullable(_out)); - return _res; - } else { - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected content-type received: " + _contentType, - Utils.extractByteArrayFromBody(_httpRes)); - } - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "400", "403", "4XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - if (Utils.statusCodeMatches(_httpRes.statusCode(), "5XX")) { - // no content - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "API error occurred", - Utils.extractByteArrayFromBody(_httpRes)); - } - throw new SDKError( - _httpRes, - _httpRes.statusCode(), - "Unexpected status code received: " + _httpRes.statusCode(), - Utils.extractByteArrayFromBody(_httpRes)); + public UpdateWorkspaceResponse updateWorkspace(UpdateWorkspaceRequest request) throws Exception { + RequestOperation operation + = new UpdateWorkspace.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/hooks/ClientCredentialsHook.java b/src/main/java/com/airbyte/api/hooks/ClientCredentialsHook.java index 5d2935b19..bb9e1c902 100644 --- a/src/main/java/com/airbyte/api/hooks/ClientCredentialsHook.java +++ b/src/main/java/com/airbyte/api/hooks/ClientCredentialsHook.java @@ -25,6 +25,7 @@ import com.airbyte.api.utils.Hook.AfterErrorContext; import com.airbyte.api.utils.Hook.BeforeRequest; import com.airbyte.api.utils.Hook.BeforeRequestContext; +import com.airbyte.api.utils.Hook.HookContext; import com.airbyte.api.utils.Hook.SdkInit; import com.airbyte.api.utils.Hook.SdkInitData; import com.airbyte.api.utils.SessionManager; @@ -54,8 +55,7 @@ public SdkInitData sdkInit(SdkInitData data) { @Override public HttpRequest beforeRequest(BeforeRequestContext context, HttpRequest request) throws Exception { - if (!context.oauthScopes().isPresent()) { - // OAuth2 not in use (scopes must be defined, and can be an empty array) + if (isHookDisabled(context)) { return request; } final Credentials credentials; @@ -65,7 +65,8 @@ public HttpRequest beforeRequest(BeforeRequestContext context, HttpRequest reque } else { return request; } - Session session = sessions.getSession(credentials, context.oauthScopes(), + List requiredScopes = getRequiredScopes(credentials, context); + Session session = sessions.getSession(credentials, requiredScopes, scopes -> doTokenRequest(context.baseUrl(), client, credentials, scopes, Constants.HAS_CLIENT_CREDENTIALS_BASIC)); return Helpers.copy(request) // // overwrites any previous value @@ -76,10 +77,12 @@ public HttpRequest beforeRequest(BeforeRequestContext context, HttpRequest reque @Override public HttpResponse afterError(AfterErrorContext context, Optional> response, Optional error) throws Exception { + if (isHookDisabled(context)) { + return response.get(); + } + if (error.isPresent()) { throw error.get(); - } else if (!context.oauthScopes().isPresent()) { - return response.get(); } Optional credentials = credentials(context.securitySource()); @@ -89,11 +92,27 @@ public HttpResponse afterError(AfterErrorContext context, Optional< if (response.get().statusCode() == HttpURLConnection.HTTP_UNAUTHORIZED) { String sessionKey = credentials.get().sessionKey(); - sessions.remove(sessionKey); + List requiredScopes = getRequiredScopes(credentials.get(), context); + String scopeKey = getScopeKey(requiredScopes); + sessions.removeSession(sessionKey, scopeKey); } return response.get(); } + private static String getScopeKey(List scopes) { + if (scopes == null || scopes.isEmpty()) { + return ""; + } + + List sortedScopes = new java.util.ArrayList<>(scopes); + sortedScopes.sort(String::compareTo); + return String.join("&", sortedScopes); + } + + private static Boolean isHookDisabled(HookContext context) { + return !context.oauthScopes().isPresent(); + } + private static Session doTokenRequest(String baseUrl, HTTPClient client, Credentials credentials, List scopes, boolean hasClientCredentialsBasic) { Map payload = new HashMap<>(); @@ -121,14 +140,16 @@ final static class Credentials implements HasSessionKey { final String clientId; final String clientSecret; final String tokenUrl; + final List scopes; - Credentials(String clientId, String clientSecret, String tokenUrl) { + Credentials(String clientId, String clientSecret, String tokenUrl, List scopes) { Utils.checkNotNull(clientId, "clientId"); Utils.checkNotNull(clientSecret, "clientSecret"); Utils.checkNotNull(tokenUrl, "tokenUrl"); this.clientId = clientId; this.clientSecret = clientSecret; this.tokenUrl = tokenUrl; + this.scopes = scopes; } @Override @@ -145,28 +166,30 @@ private static Optional credentials(Optional source if (security == null) { return Optional.empty(); } - - // To find credentials we use reflection-based inspection of the SpeakeasyMetadata + + // To find credentials we use reflection-based inspection of the SpeakeasyMetadata // annotated fields in the object graph of `security`. - // Look recursively for a non-empty complex field (not just a String) that holds + // Look recursively for a non-empty complex field (not just a String) that holds // client credentials and use the first one found. If present then is nested security // and we treat the field value as the security object when we search for the client credentials specific fields. - - Object sec = Security.findComplexObjectWithNonEmptyAnnotatedField(security, + + Object sec = Security.findComplexObjectWithNonEmptyAnnotatedField(security, "\\bscheme=true\\b", - "\\btype=oauth2\\b", + "\\btype=oauth2\\b", "\\bsubtype=client_credentials\\b") .orElse(security); Optional clientId = oauth2FieldValue(sec, "clientID"); Optional clientSecret = oauth2FieldValue(sec, "clientSecret"); - // tokenURL is not annotated so it doesn't get automatically serialized in some languages - Optional tokenUrl = fieldValue(sec, "tokenURL"); + Optional tokenUrl = fieldValue(sec, "tokenURL", String.class); + @SuppressWarnings("unchecked") // prevent generic type erasure warning + List scopes = (List) fieldValue(sec, "scopes", List.class).orElse(null); + if (clientId.isEmpty() || clientSecret.isEmpty() || tokenUrl.isEmpty()) { return Optional.empty(); } else { - return Optional.of(new Credentials(clientId.get(), clientSecret.get(), tokenUrl.get())); + return Optional.of(new Credentials(clientId.get(), clientSecret.get(), tokenUrl.get(), scopes)); } } @@ -175,18 +198,28 @@ private static Optional oauth2FieldValue(Object security, String name) { } @SuppressWarnings("unchecked") - private static Optional fieldValue(Object o, String fieldName) { + private static Optional fieldValue(Object o, String fieldName, Class type) { try { Field field = o.getClass().getDeclaredField(fieldName); field.setAccessible(true); Object value = field.get(o); if (value instanceof Optional) { - return (Optional) value; + Optional optionalValue = (Optional) value; + return optionalValue.isPresent() ? optionalValue : Optional.empty(); + } else if (type.isInstance(value)) { + return Optional.of((T) value); } else { - return Optional.of((String) value); + return Optional.empty(); } } catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException e) { return Optional.empty(); } } -} \ No newline at end of file + + private static List getRequiredScopes(Credentials credentials, HookContext context) { + if (credentials.scopes != null) { + return credentials.scopes; + } + return context.oauthScopes().orElse(List.of()); + } +} diff --git a/src/main/java/com/airbyte/api/hooks/SDKHooks.java b/src/main/java/com/airbyte/api/hooks/SDKHooks.java index 9baf9260e..bac29faa9 100644 --- a/src/main/java/com/airbyte/api/hooks/SDKHooks.java +++ b/src/main/java/com/airbyte/api/hooks/SDKHooks.java @@ -1,11 +1,7 @@ -/* - * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. - */ - package com.airbyte.api.hooks; // -// This file is written once by speakeasy code generation and +// This file is written once by speakeasy code generation and // thereafter will not be overwritten by speakeasy updates. As a // consequence any customization of this class will be preserved. // @@ -16,11 +12,31 @@ private SDKHooks() { // prevent instantiation } - public static final void initialize(com.airbyte.api.utils.Hooks hooks) { - // register hooks here + public static void initialize(com.airbyte.api.utils.Hooks hooks) { + // register synchronous hooks here + // hooks.registerBeforeRequest(...); + // hooks.registerAfterSuccess(...); + // hooks.registerAfterError(...); + + // for more information see + // https://www.speakeasy.com/docs/additional-features/sdk-hooks + } + + public static void initialize(com.airbyte.api.utils.AsyncHooks asyncHooks) { + // register async hooks here + // asyncHooks.registerBeforeRequest(...); + // asyncHooks.registerAfterSuccess(...); + // asyncHooks.registerAfterError(...); + + // NOTE: If you have existing synchronous hooks, you can adapt them using HookAdapters: + // asyncHooks.registerAfterError(com.airbyte.api.utils.HookAdapters.adapt(mySyncHook)); + // PERFORMANCE TIP: For better performance, implement async hooks directly using + // non-blocking I/O (NIO) APIs instead of adapting synchronous hooks, as adapters + // offload execution to the ForkJoinPool which can introduce overhead. + // for more information see - // https://www.speakeasyapi.dev/docs/additional-features/sdk-hooks + // https://www.speakeasy.com/docs/additional-features/sdk-hooks } - + } diff --git a/src/main/java/com/airbyte/api/models/errors/SDKError.java b/src/main/java/com/airbyte/api/models/errors/SDKError.java index ff98689e6..bb9638994 100644 --- a/src/main/java/com/airbyte/api/models/errors/SDKError.java +++ b/src/main/java/com/airbyte/api/models/errors/SDKError.java @@ -5,6 +5,7 @@ import java.net.http.HttpResponse; import java.io.InputStream; +import java.nio.charset.StandardCharsets; import com.airbyte.api.utils.Utils; /** @@ -23,6 +24,7 @@ public SDKError( int code, String message, byte[] body) { + super(message); Utils.checkNotNull(rawResponse, "rawResponse"); Utils.checkNotNull(message, "message"); Utils.checkNotNull(body, "body"); @@ -60,10 +62,12 @@ public int hashCode() { @Override public String toString() { return Utils.toString(SDKError.class, - "rawResponse", rawResponse, + "requestMethod", rawResponse.request().method(), + "requestUri", rawResponse.request().uri(), "code", code, + "responseHeaders", rawResponse.headers().map(), "message", message, - "body", body); + "body", bodyAsString()); } public HttpResponse rawResponse() { @@ -81,4 +85,8 @@ public String message() { public byte[] body() { return this.body; } -} + + public String bodyAsString() { + return new String(body(), StandardCharsets.UTF_8); + } +} \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/models/errors/UncheckedSDKError.java b/src/main/java/com/airbyte/api/models/errors/UncheckedSDKError.java new file mode 100644 index 000000000..c03c0940b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/errors/UncheckedSDKError.java @@ -0,0 +1,93 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.errors; + +import java.net.http.HttpResponse; +import com.airbyte.api.utils.Blob; +import java.nio.charset.StandardCharsets; +import com.airbyte.api.utils.Utils; + +/** + * Thrown by an async service call when an error response occurs. Contains details about the response. + * This is an unchecked exception suitable for use in CompletableFuture chains. + */ +@SuppressWarnings("serial") +public class UncheckedSDKError extends RuntimeException { + + private final HttpResponse rawResponse; + private final int code; + private final String message; + private final byte[] body; + + public UncheckedSDKError( + HttpResponse rawResponse, + int code, + String message, + byte[] body) { + super(message); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(message, "message"); + Utils.checkNotNull(body, "body"); + this.rawResponse = rawResponse; + this.code = code; + this.message = message; + this.body = body; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UncheckedSDKError other = (UncheckedSDKError) o; + return + java.util.Objects.deepEquals(this.rawResponse, other.rawResponse) && + java.util.Objects.deepEquals(this.code, other.code) && + java.util.Objects.deepEquals(this.message, other.message) && + java.util.Objects.deepEquals(this.body, other.body); + } + + @Override + public int hashCode() { + return java.util.Objects.hash( + rawResponse, + code, + message, + body); + } + + @Override + public String toString() { + return Utils.toString(UncheckedSDKError.class, + "requestMethod", rawResponse.request().method(), + "requestUri", rawResponse.request().uri(), + "code", code, + "responseHeaders", rawResponse.headers().map(), + "message", message, + "body", bodyAsString()); + } + + public HttpResponse rawResponse() { + return this.rawResponse; + } + + public int code() { + return this.code; + } + + public String message() { + return this.message; + } + + public byte[] body() { + return this.body; + } + + public String bodyAsString() { + return new String(body(), StandardCharsets.UTF_8); + } +} \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/models/operations/CancelJobRequest.java b/src/main/java/com/airbyte/api/models/operations/CancelJobRequest.java index ef356b1c3..bec1f7284 100644 --- a/src/main/java/com/airbyte/api/models/operations/CancelJobRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/CancelJobRequest.java @@ -10,7 +10,7 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class CancelJobRequest { @@ -29,9 +29,10 @@ public long jobId() { return jobId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public CancelJobRequest withJobId(long jobId) { Utils.checkNotNull(jobId, "jobId"); @@ -39,7 +40,6 @@ public CancelJobRequest withJobId(long jobId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +50,12 @@ public boolean equals(java.lang.Object o) { } CancelJobRequest other = (CancelJobRequest) o; return - Objects.deepEquals(this.jobId, other.jobId); + Utils.enhancedDeepEquals(this.jobId, other.jobId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( jobId); } @@ -64,24 +64,28 @@ public String toString() { return Utils.toString(CancelJobRequest.class, "jobId", jobId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Long jobId; - + private Builder() { // force use of static builder() method } + public Builder jobId(long jobId) { Utils.checkNotNull(jobId, "jobId"); this.jobId = jobId; return this; } - + public CancelJobRequest build() { + return new CancelJobRequest( jobId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CancelJobRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CancelJobRequestBuilder.java index e944834ce..dc4bad32e 100644 --- a/src/main/java/com/airbyte/api/models/operations/CancelJobRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CancelJobRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.CancelJob; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class CancelJobRequestBuilder { private CancelJobRequest request; - private final SDKMethodInterfaces.MethodCallCancelJob sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CancelJobRequestBuilder(SDKMethodInterfaces.MethodCallCancelJob sdk) { - this.sdk = sdk; + public CancelJobRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CancelJobRequestBuilder request(CancelJobRequest request) { @@ -22,8 +28,10 @@ public CancelJobRequestBuilder request(CancelJobRequest request) { } public CancelJobResponse call() throws Exception { + + RequestOperation operation + = new CancelJob.Sync(sdkConfiguration, _headers); - return sdk.cancelJob( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CancelJobResponse.java b/src/main/java/com/airbyte/api/models/operations/CancelJobResponse.java index 33f5f6bed..73b543209 100644 --- a/src/main/java/com/airbyte/api/models/operations/CancelJobResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CancelJobResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CancelJobResponse implements Response { +public class CancelJobResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public CancelJobResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public CancelJobResponse withJobResponse(JobResponse jobResponse) { return this; } + /** * Cancel a Job. */ @@ -144,7 +146,6 @@ public CancelJobResponse withRawResponse(HttpResponse rawResponse) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } CancelJobResponse other = (CancelJobResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.jobResponse, other.jobResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.jobResponse, other.jobResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - jobResponse, - statusCode, + return Utils.enhancedHash( + contentType, jobResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional jobResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Cancel a Job. */ @@ -220,6 +222,7 @@ public Builder jobResponse(Optional jobResponse) { return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public CancelJobResponse build() { + return new CancelJobResponse( - contentType, - jobResponse, - statusCode, + contentType, jobResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateConnectionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateConnectionRequestBuilder.java index dd54db8dd..4c61aadbf 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateConnectionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateConnectionRequestBuilder.java @@ -3,17 +3,23 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; import com.airbyte.api.models.shared.ConnectionCreateRequest; +import com.airbyte.api.operations.CreateConnection; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class CreateConnectionRequestBuilder { private ConnectionCreateRequest request; - private final SDKMethodInterfaces.MethodCallCreateConnection sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreateConnectionRequestBuilder(SDKMethodInterfaces.MethodCallCreateConnection sdk) { - this.sdk = sdk; + public CreateConnectionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreateConnectionRequestBuilder request(ConnectionCreateRequest request) { @@ -23,8 +29,10 @@ public CreateConnectionRequestBuilder request(ConnectionCreateRequest request) { } public CreateConnectionResponse call() throws Exception { + + RequestOperation operation + = new CreateConnection.Sync(sdkConfiguration, _headers); - return sdk.createConnection( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateConnectionResponse.java index ac87e9702..e61a3985c 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateConnectionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateConnectionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CreateConnectionResponse implements Response { +public class CreateConnectionResponse implements Response { /** * Successful operation */ @@ -59,7 +58,8 @@ public CreateConnectionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(Optional.empty(), contentType, statusCode, rawResponse); + this(Optional.empty(), contentType, statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Successful operation @@ -108,6 +109,7 @@ public CreateConnectionResponse withConnectionResponse(ConnectionResponse connec return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public CreateConnectionResponse withRawResponse(HttpResponse rawRes return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } CreateConnectionResponse other = (CreateConnectionResponse) o; return - Objects.deepEquals(this.connectionResponse, other.connectionResponse) && - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.connectionResponse, other.connectionResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - connectionResponse, - contentType, - statusCode, + return Utils.enhancedHash( + connectionResponse, contentType, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional connectionResponse = Optional.empty(); - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * Successful operation */ @@ -211,6 +212,7 @@ public Builder connectionResponse(Optional connect return this; } + /** * HTTP response content type for this operation */ @@ -220,6 +222,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public CreateConnectionResponse build() { + return new CreateConnectionResponse( - connectionResponse, - contentType, - statusCode, + connectionResponse, contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionRequest.java index f6b88b657..1415a7860 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionRequest.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class CreateDeclarativeSourceDefinitionRequest { @SpeakeasyMetadata("request:mediaType=application/json") private com.airbyte.api.models.shared.CreateDeclarativeSourceDefinitionRequest createDeclarativeSourceDefinitionRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -39,9 +40,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public CreateDeclarativeSourceDefinitionRequest withCreateDeclarativeSourceDefinitionRequest(com.airbyte.api.models.shared.CreateDeclarativeSourceDefinitionRequest createDeclarativeSourceDefinitionRequest) { Utils.checkNotNull(createDeclarativeSourceDefinitionRequest, "createDeclarativeSourceDefinitionRequest"); @@ -55,7 +57,6 @@ public CreateDeclarativeSourceDefinitionRequest withWorkspaceId(String workspace return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } CreateDeclarativeSourceDefinitionRequest other = (CreateDeclarativeSourceDefinitionRequest) o; return - Objects.deepEquals(this.createDeclarativeSourceDefinitionRequest, other.createDeclarativeSourceDefinitionRequest) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.createDeclarativeSourceDefinitionRequest, other.createDeclarativeSourceDefinitionRequest) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - createDeclarativeSourceDefinitionRequest, - workspaceId); + return Utils.enhancedHash( + createDeclarativeSourceDefinitionRequest, workspaceId); } @Override @@ -83,33 +83,37 @@ public String toString() { "createDeclarativeSourceDefinitionRequest", createDeclarativeSourceDefinitionRequest, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private com.airbyte.api.models.shared.CreateDeclarativeSourceDefinitionRequest createDeclarativeSourceDefinitionRequest; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder createDeclarativeSourceDefinitionRequest(com.airbyte.api.models.shared.CreateDeclarativeSourceDefinitionRequest createDeclarativeSourceDefinitionRequest) { Utils.checkNotNull(createDeclarativeSourceDefinitionRequest, "createDeclarativeSourceDefinitionRequest"); this.createDeclarativeSourceDefinitionRequest = createDeclarativeSourceDefinitionRequest; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public CreateDeclarativeSourceDefinitionRequest build() { + return new CreateDeclarativeSourceDefinitionRequest( - createDeclarativeSourceDefinitionRequest, - workspaceId); + createDeclarativeSourceDefinitionRequest, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionRequestBuilder.java index fc83b1120..e7956af3a 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.CreateDeclarativeSourceDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class CreateDeclarativeSourceDefinitionRequestBuilder { private CreateDeclarativeSourceDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallCreateDeclarativeSourceDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreateDeclarativeSourceDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallCreateDeclarativeSourceDefinition sdk) { - this.sdk = sdk; + public CreateDeclarativeSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreateDeclarativeSourceDefinitionRequestBuilder request(CreateDeclarativeSourceDefinitionRequest request) { @@ -22,8 +28,10 @@ public CreateDeclarativeSourceDefinitionRequestBuilder request(CreateDeclarative } public CreateDeclarativeSourceDefinitionResponse call() throws Exception { + + RequestOperation operation + = new CreateDeclarativeSourceDefinition.Sync(sdkConfiguration, _headers); - return sdk.createDeclarativeSourceDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionResponse.java index 86b6cba5c..f9db7a389 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateDeclarativeSourceDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CreateDeclarativeSourceDefinitionResponse implements Response { +public class CreateDeclarativeSourceDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public CreateDeclarativeSourceDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public CreateDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinition return this; } + /** * Success */ @@ -144,7 +146,6 @@ public CreateDeclarativeSourceDefinitionResponse withRawResponse(HttpResponse declarativeSourceDefinitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder declarativeSourceDefinitionResponse(Optional rawResponse) { this.rawResponse = rawResponse; return this; } - + public CreateDeclarativeSourceDefinitionResponse build() { + return new CreateDeclarativeSourceDefinitionResponse( - contentType, - declarativeSourceDefinitionResponse, - statusCode, + contentType, declarativeSourceDefinitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionRequest.java index 16047266b..e2e4624a3 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionRequest.java @@ -10,13 +10,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class CreateDestinationDefinitionRequest { @SpeakeasyMetadata("request:mediaType=application/json") private CreateDefinitionRequest createDefinitionRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -40,9 +41,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public CreateDestinationDefinitionRequest withCreateDefinitionRequest(CreateDefinitionRequest createDefinitionRequest) { Utils.checkNotNull(createDefinitionRequest, "createDefinitionRequest"); @@ -56,7 +58,6 @@ public CreateDestinationDefinitionRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,15 +68,14 @@ public boolean equals(java.lang.Object o) { } CreateDestinationDefinitionRequest other = (CreateDestinationDefinitionRequest) o; return - Objects.deepEquals(this.createDefinitionRequest, other.createDefinitionRequest) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.createDefinitionRequest, other.createDefinitionRequest) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - createDefinitionRequest, - workspaceId); + return Utils.enhancedHash( + createDefinitionRequest, workspaceId); } @Override @@ -84,33 +84,37 @@ public String toString() { "createDefinitionRequest", createDefinitionRequest, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private CreateDefinitionRequest createDefinitionRequest; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder createDefinitionRequest(CreateDefinitionRequest createDefinitionRequest) { Utils.checkNotNull(createDefinitionRequest, "createDefinitionRequest"); this.createDefinitionRequest = createDefinitionRequest; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public CreateDestinationDefinitionRequest build() { + return new CreateDestinationDefinitionRequest( - createDefinitionRequest, - workspaceId); + createDefinitionRequest, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionRequestBuilder.java index 0dd6bcf0c..2ed6ca6ba 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.CreateDestinationDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class CreateDestinationDefinitionRequestBuilder { private CreateDestinationDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallCreateDestinationDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreateDestinationDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallCreateDestinationDefinition sdk) { - this.sdk = sdk; + public CreateDestinationDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreateDestinationDefinitionRequestBuilder request(CreateDestinationDefinitionRequest request) { @@ -22,8 +28,10 @@ public CreateDestinationDefinitionRequestBuilder request(CreateDestinationDefini } public CreateDestinationDefinitionResponse call() throws Exception { + + RequestOperation operation + = new CreateDestinationDefinition.Sync(sdkConfiguration, _headers); - return sdk.createDestinationDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionResponse.java index cf1a4db8d..a7220f097 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateDestinationDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CreateDestinationDefinitionResponse implements Response { +public class CreateDestinationDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public CreateDestinationDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public CreateDestinationDefinitionResponse withDefinitionResponse(DefinitionResp return this; } + /** * Success */ @@ -144,7 +146,6 @@ public CreateDestinationDefinitionResponse withRawResponse(HttpResponse definitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder definitionResponse(Optional definit return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public CreateDestinationDefinitionResponse build() { + return new CreateDestinationDefinitionResponse( - contentType, - definitionResponse, - statusCode, + contentType, definitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateDestinationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateDestinationRequestBuilder.java index da2fe2e9e..686b9316e 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateDestinationRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateDestinationRequestBuilder.java @@ -3,7 +3,12 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; import com.airbyte.api.models.shared.DestinationCreateRequest; +import com.airbyte.api.operations.CreateDestination; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; import java.util.Optional; @@ -11,10 +16,11 @@ public class CreateDestinationRequestBuilder { private Optional request = Optional.empty(); - private final SDKMethodInterfaces.MethodCallCreateDestination sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreateDestinationRequestBuilder(SDKMethodInterfaces.MethodCallCreateDestination sdk) { - this.sdk = sdk; + public CreateDestinationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreateDestinationRequestBuilder request(DestinationCreateRequest request) { @@ -30,8 +36,10 @@ public CreateDestinationRequestBuilder request(Optional, CreateDestinationResponse> operation + = new CreateDestination.Sync(sdkConfiguration, _headers); - return sdk.createDestination( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateDestinationResponse.java index 928ace387..5b9be9625 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateDestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateDestinationResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CreateDestinationResponse implements Response { +public class CreateDestinationResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public CreateDestinationResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public CreateDestinationResponse withDestinationResponse(DestinationResponse des return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public CreateDestinationResponse withRawResponse(HttpResponse rawRe return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } CreateDestinationResponse other = (CreateDestinationResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.destinationResponse, other.destinationResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.destinationResponse, other.destinationResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - destinationResponse, - statusCode, + return Utils.enhancedHash( + contentType, destinationResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional destinationResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Successful operation */ @@ -220,6 +222,7 @@ public Builder destinationResponse(Optional desti return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public CreateDestinationResponse build() { + return new CreateDestinationResponse( - contentType, - destinationResponse, - statusCode, + contentType, destinationResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateJobRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateJobRequestBuilder.java index ab015dde5..bb0a55f1b 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateJobRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateJobRequestBuilder.java @@ -3,17 +3,23 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; import com.airbyte.api.models.shared.JobCreateRequest; +import com.airbyte.api.operations.CreateJob; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class CreateJobRequestBuilder { private JobCreateRequest request; - private final SDKMethodInterfaces.MethodCallCreateJob sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreateJobRequestBuilder(SDKMethodInterfaces.MethodCallCreateJob sdk) { - this.sdk = sdk; + public CreateJobRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreateJobRequestBuilder request(JobCreateRequest request) { @@ -23,8 +29,10 @@ public CreateJobRequestBuilder request(JobCreateRequest request) { } public CreateJobResponse call() throws Exception { + + RequestOperation operation + = new CreateJob.Sync(sdkConfiguration, _headers); - return sdk.createJob( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateJobResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateJobResponse.java index 894ba0650..8641b56b1 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateJobResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateJobResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CreateJobResponse implements Response { +public class CreateJobResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public CreateJobResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public CreateJobResponse withJobResponse(JobResponse jobResponse) { return this; } + /** * Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. */ @@ -144,7 +146,6 @@ public CreateJobResponse withRawResponse(HttpResponse rawResponse) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } CreateJobResponse other = (CreateJobResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.jobResponse, other.jobResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.jobResponse, other.jobResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - jobResponse, - statusCode, + return Utils.enhancedHash( + contentType, jobResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional jobResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. */ @@ -220,6 +222,7 @@ public Builder jobResponse(Optional jobResponse) { return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public CreateJobResponse build() { + return new CreateJobResponse( - contentType, - jobResponse, - statusCode, + contentType, jobResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequest.java b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequest.java new file mode 100644 index 000000000..c6ab40a44 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequest.java @@ -0,0 +1,120 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations; + +import com.airbyte.api.models.shared.OrganizationOAuthCredentialsRequest; +import com.airbyte.api.utils.SpeakeasyMetadata; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Override; +import java.lang.String; + + +public class CreateOrUpdateOrganizationOAuthCredentialsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private OrganizationOAuthCredentialsRequest organizationOAuthCredentialsRequest; + + + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=organizationId") + private String organizationId; + + @JsonCreator + public CreateOrUpdateOrganizationOAuthCredentialsRequest( + OrganizationOAuthCredentialsRequest organizationOAuthCredentialsRequest, + String organizationId) { + Utils.checkNotNull(organizationOAuthCredentialsRequest, "organizationOAuthCredentialsRequest"); + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationOAuthCredentialsRequest = organizationOAuthCredentialsRequest; + this.organizationId = organizationId; + } + + @JsonIgnore + public OrganizationOAuthCredentialsRequest organizationOAuthCredentialsRequest() { + return organizationOAuthCredentialsRequest; + } + + @JsonIgnore + public String organizationId() { + return organizationId; + } + + public static Builder builder() { + return new Builder(); + } + + + public CreateOrUpdateOrganizationOAuthCredentialsRequest withOrganizationOAuthCredentialsRequest(OrganizationOAuthCredentialsRequest organizationOAuthCredentialsRequest) { + Utils.checkNotNull(organizationOAuthCredentialsRequest, "organizationOAuthCredentialsRequest"); + this.organizationOAuthCredentialsRequest = organizationOAuthCredentialsRequest; + return this; + } + + public CreateOrUpdateOrganizationOAuthCredentialsRequest withOrganizationId(String organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = organizationId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateOrUpdateOrganizationOAuthCredentialsRequest other = (CreateOrUpdateOrganizationOAuthCredentialsRequest) o; + return + Utils.enhancedDeepEquals(this.organizationOAuthCredentialsRequest, other.organizationOAuthCredentialsRequest) && + Utils.enhancedDeepEquals(this.organizationId, other.organizationId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + organizationOAuthCredentialsRequest, organizationId); + } + + @Override + public String toString() { + return Utils.toString(CreateOrUpdateOrganizationOAuthCredentialsRequest.class, + "organizationOAuthCredentialsRequest", organizationOAuthCredentialsRequest, + "organizationId", organizationId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private OrganizationOAuthCredentialsRequest organizationOAuthCredentialsRequest; + + private String organizationId; + + private Builder() { + // force use of static builder() method + } + + + public Builder organizationOAuthCredentialsRequest(OrganizationOAuthCredentialsRequest organizationOAuthCredentialsRequest) { + Utils.checkNotNull(organizationOAuthCredentialsRequest, "organizationOAuthCredentialsRequest"); + this.organizationOAuthCredentialsRequest = organizationOAuthCredentialsRequest; + return this; + } + + + public Builder organizationId(String organizationId) { + Utils.checkNotNull(organizationId, "organizationId"); + this.organizationId = organizationId; + return this; + } + + public CreateOrUpdateOrganizationOAuthCredentialsRequest build() { + + return new CreateOrUpdateOrganizationOAuthCredentialsRequest( + organizationOAuthCredentialsRequest, organizationId); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder.java new file mode 100644 index 000000000..82538c1e8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.CreateOrUpdateOrganizationOAuthCredentials; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; + +public class CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder { + + private CreateOrUpdateOrganizationOAuthCredentialsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder request(CreateOrUpdateOrganizationOAuthCredentialsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CreateOrUpdateOrganizationOAuthCredentialsResponse call() throws Exception { + + RequestOperation operation + = new CreateOrUpdateOrganizationOAuthCredentials.Sync(sdkConfiguration, _headers); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsResponse.java new file mode 100644 index 000000000..ce5b828ff --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateOrganizationOAuthCredentialsResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations; + +import com.airbyte.api.utils.Response; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class CreateOrUpdateOrganizationOAuthCredentialsResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreateOrUpdateOrganizationOAuthCredentialsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateOrUpdateOrganizationOAuthCredentialsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateOrUpdateOrganizationOAuthCredentialsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateOrUpdateOrganizationOAuthCredentialsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateOrUpdateOrganizationOAuthCredentialsResponse other = (CreateOrUpdateOrganizationOAuthCredentialsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateOrUpdateOrganizationOAuthCredentialsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreateOrUpdateOrganizationOAuthCredentialsResponse build() { + + return new CreateOrUpdateOrganizationOAuthCredentialsResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.java b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.java index f52262b21..ca650da8a 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequest.java @@ -10,13 +10,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class CreateOrUpdateWorkspaceOAuthCredentialsRequest { @SpeakeasyMetadata("request:mediaType=application/json") private WorkspaceOAuthCredentialsRequest workspaceOAuthCredentialsRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -40,9 +41,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public CreateOrUpdateWorkspaceOAuthCredentialsRequest withWorkspaceOAuthCredentialsRequest(WorkspaceOAuthCredentialsRequest workspaceOAuthCredentialsRequest) { Utils.checkNotNull(workspaceOAuthCredentialsRequest, "workspaceOAuthCredentialsRequest"); @@ -56,7 +58,6 @@ public CreateOrUpdateWorkspaceOAuthCredentialsRequest withWorkspaceId(String wor return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,15 +68,14 @@ public boolean equals(java.lang.Object o) { } CreateOrUpdateWorkspaceOAuthCredentialsRequest other = (CreateOrUpdateWorkspaceOAuthCredentialsRequest) o; return - Objects.deepEquals(this.workspaceOAuthCredentialsRequest, other.workspaceOAuthCredentialsRequest) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.workspaceOAuthCredentialsRequest, other.workspaceOAuthCredentialsRequest) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - workspaceOAuthCredentialsRequest, - workspaceId); + return Utils.enhancedHash( + workspaceOAuthCredentialsRequest, workspaceId); } @Override @@ -84,33 +84,37 @@ public String toString() { "workspaceOAuthCredentialsRequest", workspaceOAuthCredentialsRequest, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private WorkspaceOAuthCredentialsRequest workspaceOAuthCredentialsRequest; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder workspaceOAuthCredentialsRequest(WorkspaceOAuthCredentialsRequest workspaceOAuthCredentialsRequest) { Utils.checkNotNull(workspaceOAuthCredentialsRequest, "workspaceOAuthCredentialsRequest"); this.workspaceOAuthCredentialsRequest = workspaceOAuthCredentialsRequest; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public CreateOrUpdateWorkspaceOAuthCredentialsRequest build() { + return new CreateOrUpdateWorkspaceOAuthCredentialsRequest( - workspaceOAuthCredentialsRequest, - workspaceId); + workspaceOAuthCredentialsRequest, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder.java index cafa8867c..e6dccc755 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.CreateOrUpdateWorkspaceOAuthCredentials; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder { private CreateOrUpdateWorkspaceOAuthCredentialsRequest request; - private final SDKMethodInterfaces.MethodCallCreateOrUpdateWorkspaceOAuthCredentials sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder(SDKMethodInterfaces.MethodCallCreateOrUpdateWorkspaceOAuthCredentials sdk) { - this.sdk = sdk; + public CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder request(CreateOrUpdateWorkspaceOAuthCredentialsRequest request) { @@ -22,8 +28,10 @@ public CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder request(CreateOrUpd } public CreateOrUpdateWorkspaceOAuthCredentialsResponse call() throws Exception { + + RequestOperation operation + = new CreateOrUpdateWorkspaceOAuthCredentials.Sync(sdkConfiguration, _headers); - return sdk.createOrUpdateWorkspaceOAuthCredentials( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java index d9669a1ce..f08f0b986 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.net.http.HttpResponse; -import java.util.Objects; -public class CreateOrUpdateWorkspaceOAuthCredentialsResponse implements Response { +public class CreateOrUpdateWorkspaceOAuthCredentialsResponse implements Response { /** * HTTP response content type for this operation */ @@ -68,9 +67,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -99,7 +99,6 @@ public CreateOrUpdateWorkspaceOAuthCredentialsResponse withRawResponse(HttpRespo return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } CreateOrUpdateWorkspaceOAuthCredentialsResponse other = (CreateOrUpdateWorkspaceOAuthCredentialsResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse); + return Utils.enhancedHash( + contentType, statusCode, rawResponse); } @Override @@ -130,19 +127,21 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -152,6 +151,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -161,6 +161,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -169,12 +170,12 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public CreateOrUpdateWorkspaceOAuthCredentialsResponse build() { + return new CreateOrUpdateWorkspaceOAuthCredentialsResponse( - contentType, - statusCode, - rawResponse); + contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreatePermissionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreatePermissionRequestBuilder.java index 8061230b9..ecd12c28a 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreatePermissionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreatePermissionRequestBuilder.java @@ -3,17 +3,23 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; import com.airbyte.api.models.shared.PermissionCreateRequest; +import com.airbyte.api.operations.CreatePermission; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class CreatePermissionRequestBuilder { private PermissionCreateRequest request; - private final SDKMethodInterfaces.MethodCallCreatePermission sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreatePermissionRequestBuilder(SDKMethodInterfaces.MethodCallCreatePermission sdk) { - this.sdk = sdk; + public CreatePermissionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreatePermissionRequestBuilder request(PermissionCreateRequest request) { @@ -23,8 +29,10 @@ public CreatePermissionRequestBuilder request(PermissionCreateRequest request) { } public CreatePermissionResponse call() throws Exception { + + RequestOperation operation + = new CreatePermission.Sync(sdkConfiguration, _headers); - return sdk.createPermission( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreatePermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/CreatePermissionResponse.java index 46f499528..edaff109b 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreatePermissionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreatePermissionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CreatePermissionResponse implements Response { +public class CreatePermissionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public CreatePermissionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public CreatePermissionResponse withPermissionResponse(PermissionResponse permis return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public CreatePermissionResponse withRawResponse(HttpResponse rawRes return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } CreatePermissionResponse other = (CreatePermissionResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.permissionResponse, other.permissionResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.permissionResponse, other.permissionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - permissionResponse, - statusCode, + return Utils.enhancedHash( + contentType, permissionResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional permissionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Successful operation */ @@ -220,6 +222,7 @@ public Builder permissionResponse(Optional permiss return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public CreatePermissionResponse build() { + return new CreatePermissionResponse( - contentType, - permissionResponse, - statusCode, + contentType, permissionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionRequest.java index b0575bd5a..43ab97583 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionRequest.java @@ -10,13 +10,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class CreateSourceDefinitionRequest { @SpeakeasyMetadata("request:mediaType=application/json") private CreateDefinitionRequest createDefinitionRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -40,9 +41,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public CreateSourceDefinitionRequest withCreateDefinitionRequest(CreateDefinitionRequest createDefinitionRequest) { Utils.checkNotNull(createDefinitionRequest, "createDefinitionRequest"); @@ -56,7 +58,6 @@ public CreateSourceDefinitionRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,15 +68,14 @@ public boolean equals(java.lang.Object o) { } CreateSourceDefinitionRequest other = (CreateSourceDefinitionRequest) o; return - Objects.deepEquals(this.createDefinitionRequest, other.createDefinitionRequest) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.createDefinitionRequest, other.createDefinitionRequest) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - createDefinitionRequest, - workspaceId); + return Utils.enhancedHash( + createDefinitionRequest, workspaceId); } @Override @@ -84,33 +84,37 @@ public String toString() { "createDefinitionRequest", createDefinitionRequest, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private CreateDefinitionRequest createDefinitionRequest; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder createDefinitionRequest(CreateDefinitionRequest createDefinitionRequest) { Utils.checkNotNull(createDefinitionRequest, "createDefinitionRequest"); this.createDefinitionRequest = createDefinitionRequest; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public CreateSourceDefinitionRequest build() { + return new CreateSourceDefinitionRequest( - createDefinitionRequest, - workspaceId); + createDefinitionRequest, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionRequestBuilder.java index 725915f79..f559eb352 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.CreateSourceDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class CreateSourceDefinitionRequestBuilder { private CreateSourceDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallCreateSourceDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreateSourceDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallCreateSourceDefinition sdk) { - this.sdk = sdk; + public CreateSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreateSourceDefinitionRequestBuilder request(CreateSourceDefinitionRequest request) { @@ -22,8 +28,10 @@ public CreateSourceDefinitionRequestBuilder request(CreateSourceDefinitionReques } public CreateSourceDefinitionResponse call() throws Exception { + + RequestOperation operation + = new CreateSourceDefinition.Sync(sdkConfiguration, _headers); - return sdk.createSourceDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionResponse.java index 057f8f906..346dc11bb 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateSourceDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CreateSourceDefinitionResponse implements Response { +public class CreateSourceDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public CreateSourceDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public CreateSourceDefinitionResponse withDefinitionResponse(DefinitionResponse return this; } + /** * Success */ @@ -144,7 +146,6 @@ public CreateSourceDefinitionResponse withRawResponse(HttpResponse return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } CreateSourceDefinitionResponse other = (CreateSourceDefinitionResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.definitionResponse, other.definitionResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - definitionResponse, - statusCode, + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional definitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder definitionResponse(Optional definit return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public CreateSourceDefinitionResponse build() { + return new CreateSourceDefinitionResponse( - contentType, - definitionResponse, - statusCode, + contentType, definitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateSourceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateSourceRequestBuilder.java index b86a1154e..508781eb4 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateSourceRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateSourceRequestBuilder.java @@ -3,7 +3,12 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; import com.airbyte.api.models.shared.SourceCreateRequest; +import com.airbyte.api.operations.CreateSource; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; import java.util.Optional; @@ -11,10 +16,11 @@ public class CreateSourceRequestBuilder { private Optional request = Optional.empty(); - private final SDKMethodInterfaces.MethodCallCreateSource sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreateSourceRequestBuilder(SDKMethodInterfaces.MethodCallCreateSource sdk) { - this.sdk = sdk; + public CreateSourceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreateSourceRequestBuilder request(SourceCreateRequest request) { @@ -30,8 +36,10 @@ public CreateSourceRequestBuilder request(Optional, CreateSourceResponse> operation + = new CreateSource.Sync(sdkConfiguration, _headers); - return sdk.createSource( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateSourceResponse.java index a965521fc..667c15bc1 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateSourceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateSourceResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CreateSourceResponse implements Response { +public class CreateSourceResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public CreateSourceResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public CreateSourceResponse withSourceResponse(SourceResponse sourceResponse) { return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public CreateSourceResponse withRawResponse(HttpResponse rawRespons return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } CreateSourceResponse other = (CreateSourceResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.sourceResponse, other.sourceResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.sourceResponse, other.sourceResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - sourceResponse, - statusCode, + return Utils.enhancedHash( + contentType, sourceResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional sourceResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Successful operation */ @@ -220,6 +222,7 @@ public Builder sourceResponse(Optional sourceResponse) return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public CreateSourceResponse build() { + return new CreateSourceResponse( - contentType, - sourceResponse, - statusCode, + contentType, sourceResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateTagRequestBuilder.java index bf063e546..0a5971627 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateTagRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateTagRequestBuilder.java @@ -3,17 +3,23 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; import com.airbyte.api.models.shared.TagCreateRequest; +import com.airbyte.api.operations.CreateTag; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class CreateTagRequestBuilder { private TagCreateRequest request; - private final SDKMethodInterfaces.MethodCallCreateTag sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreateTagRequestBuilder(SDKMethodInterfaces.MethodCallCreateTag sdk) { - this.sdk = sdk; + public CreateTagRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreateTagRequestBuilder request(TagCreateRequest request) { @@ -23,8 +29,10 @@ public CreateTagRequestBuilder request(TagCreateRequest request) { } public CreateTagResponse call() throws Exception { + + RequestOperation operation + = new CreateTag.Sync(sdkConfiguration, _headers); - return sdk.createTag( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateTagResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateTagResponse.java index cad96b504..c5ec3ed59 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateTagResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateTagResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CreateTagResponse implements Response { +public class CreateTagResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public CreateTagResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, + Optional.empty()); } /** @@ -95,9 +95,10 @@ public Optional tagResponse() { return (Optional) tagResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -135,6 +136,7 @@ public CreateTagResponse withTagResponse(TagResponse tagResponse) { return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public CreateTagResponse withTagResponse(Optional tagResp return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } CreateTagResponse other = (CreateTagResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.tagResponse, other.tagResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.tagResponse, other.tagResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, + return Utils.enhancedHash( + contentType, statusCode, rawResponse, tagResponse); } @@ -178,21 +177,23 @@ public String toString() { "rawResponse", rawResponse, "tagResponse", tagResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Optional tagResponse = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -211,6 +213,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -220,6 +223,7 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } + /** * Successful operation */ @@ -237,13 +241,13 @@ public Builder tagResponse(Optional tagResponse) { this.tagResponse = tagResponse; return this; } - + public CreateTagResponse build() { + return new CreateTagResponse( - contentType, - statusCode, - rawResponse, + contentType, statusCode, rawResponse, tagResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceRequestBuilder.java index 0baf14aa7..1c8aafca9 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceRequestBuilder.java @@ -3,17 +3,23 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; import com.airbyte.api.models.shared.WorkspaceCreateRequest; +import com.airbyte.api.operations.CreateWorkspace; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class CreateWorkspaceRequestBuilder { private WorkspaceCreateRequest request; - private final SDKMethodInterfaces.MethodCallCreateWorkspace sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public CreateWorkspaceRequestBuilder(SDKMethodInterfaces.MethodCallCreateWorkspace sdk) { - this.sdk = sdk; + public CreateWorkspaceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public CreateWorkspaceRequestBuilder request(WorkspaceCreateRequest request) { @@ -23,8 +29,10 @@ public CreateWorkspaceRequestBuilder request(WorkspaceCreateRequest request) { } public CreateWorkspaceResponse call() throws Exception { + + RequestOperation operation + = new CreateWorkspace.Sync(sdkConfiguration, _headers); - return sdk.createWorkspace( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceResponse.java index be44da0d6..bb5043a54 100644 --- a/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/CreateWorkspaceResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class CreateWorkspaceResponse implements Response { +public class CreateWorkspaceResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public CreateWorkspaceResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, + Optional.empty()); } /** @@ -95,9 +95,10 @@ public Optional workspaceResponse() { return (Optional) workspaceResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -135,6 +136,7 @@ public CreateWorkspaceResponse withWorkspaceResponse(WorkspaceResponse workspace return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public CreateWorkspaceResponse withWorkspaceResponse(Optional rawResponse; - + private Optional workspaceResponse = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -211,6 +213,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -220,6 +223,7 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } + /** * Successful operation */ @@ -237,13 +241,13 @@ public Builder workspaceResponse(Optional workspace this.workspaceResponse = workspaceResponse; return this; } - + public CreateWorkspaceResponse build() { + return new CreateWorkspaceResponse( - contentType, - statusCode, - rawResponse, + contentType, statusCode, rawResponse, workspaceResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequest.java index 6f502da3f..a36e27882 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DeleteConnectionRequest { @@ -28,9 +28,10 @@ public String connectionId() { return connectionId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeleteConnectionRequest withConnectionId(String connectionId) { Utils.checkNotNull(connectionId, "connectionId"); @@ -38,7 +39,6 @@ public DeleteConnectionRequest withConnectionId(String connectionId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } DeleteConnectionRequest other = (DeleteConnectionRequest) o; return - Objects.deepEquals(this.connectionId, other.connectionId); + Utils.enhancedDeepEquals(this.connectionId, other.connectionId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( connectionId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(DeleteConnectionRequest.class, "connectionId", connectionId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String connectionId; - + private Builder() { // force use of static builder() method } + public Builder connectionId(String connectionId) { Utils.checkNotNull(connectionId, "connectionId"); this.connectionId = connectionId; return this; } - + public DeleteConnectionRequest build() { + return new DeleteConnectionRequest( connectionId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequestBuilder.java index e79e5a6b7..9b8953add 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteConnectionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.DeleteConnection; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class DeleteConnectionRequestBuilder { private DeleteConnectionRequest request; - private final SDKMethodInterfaces.MethodCallDeleteConnection sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public DeleteConnectionRequestBuilder(SDKMethodInterfaces.MethodCallDeleteConnection sdk) { - this.sdk = sdk; + public DeleteConnectionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public DeleteConnectionRequestBuilder request(DeleteConnectionRequest request) { @@ -22,8 +28,10 @@ public DeleteConnectionRequestBuilder request(DeleteConnectionRequest request) { } public DeleteConnectionResponse call() throws Exception { + + RequestOperation operation + = new DeleteConnection.Sync(sdkConfiguration, _headers); - return sdk.deleteConnection( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteConnectionResponse.java index fc772236f..3807aefcc 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteConnectionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteConnectionResponse.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.net.http.HttpResponse; -import java.util.Objects; -public class DeleteConnectionResponse implements Response { +public class DeleteConnectionResponse implements Response { /** * HTTP response content type for this operation */ @@ -68,9 +67,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -99,7 +99,6 @@ public DeleteConnectionResponse withRawResponse(HttpResponse rawRes return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } DeleteConnectionResponse other = (DeleteConnectionResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse); + return Utils.enhancedHash( + contentType, statusCode, rawResponse); } @Override @@ -130,19 +127,21 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -152,6 +151,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -161,6 +161,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -169,12 +170,12 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public DeleteConnectionResponse build() { + return new DeleteConnectionResponse( - contentType, - statusCode, - rawResponse); + contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionRequest.java index e5911f8ad..55ef7d0d1 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionRequest.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DeleteDeclarativeSourceDefinitionRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=definitionId") private String definitionId; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -39,9 +40,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeleteDeclarativeSourceDefinitionRequest withDefinitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -55,7 +57,6 @@ public DeleteDeclarativeSourceDefinitionRequest withWorkspaceId(String workspace return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } DeleteDeclarativeSourceDefinitionRequest other = (DeleteDeclarativeSourceDefinitionRequest) o; return - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - definitionId, - workspaceId); + return Utils.enhancedHash( + definitionId, workspaceId); } @Override @@ -83,33 +83,37 @@ public String toString() { "definitionId", definitionId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String definitionId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public DeleteDeclarativeSourceDefinitionRequest build() { + return new DeleteDeclarativeSourceDefinitionRequest( - definitionId, - workspaceId); + definitionId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionRequestBuilder.java index 2fce752f6..cc91c2354 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.DeleteDeclarativeSourceDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class DeleteDeclarativeSourceDefinitionRequestBuilder { private DeleteDeclarativeSourceDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallDeleteDeclarativeSourceDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public DeleteDeclarativeSourceDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallDeleteDeclarativeSourceDefinition sdk) { - this.sdk = sdk; + public DeleteDeclarativeSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public DeleteDeclarativeSourceDefinitionRequestBuilder request(DeleteDeclarativeSourceDefinitionRequest request) { @@ -22,8 +28,10 @@ public DeleteDeclarativeSourceDefinitionRequestBuilder request(DeleteDeclarative } public DeleteDeclarativeSourceDefinitionResponse call() throws Exception { + + RequestOperation operation + = new DeleteDeclarativeSourceDefinition.Sync(sdkConfiguration, _headers); - return sdk.deleteDeclarativeSourceDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionResponse.java index 752f10b31..7af2d6c78 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDeclarativeSourceDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class DeleteDeclarativeSourceDefinitionResponse implements Response { +public class DeleteDeclarativeSourceDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public DeleteDeclarativeSourceDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public DeleteDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinition return this; } + /** * Success */ @@ -144,7 +146,6 @@ public DeleteDeclarativeSourceDefinitionResponse withRawResponse(HttpResponse declarativeSourceDefinitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder declarativeSourceDefinitionResponse(Optional rawResponse) { this.rawResponse = rawResponse; return this; } - + public DeleteDeclarativeSourceDefinitionResponse build() { + return new DeleteDeclarativeSourceDefinitionResponse( - contentType, - declarativeSourceDefinitionResponse, - statusCode, + contentType, declarativeSourceDefinitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionRequest.java index 574abca52..6e7a72fc2 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionRequest.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DeleteDestinationDefinitionRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=definitionId") private String definitionId; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -39,9 +40,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeleteDestinationDefinitionRequest withDefinitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -55,7 +57,6 @@ public DeleteDestinationDefinitionRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } DeleteDestinationDefinitionRequest other = (DeleteDestinationDefinitionRequest) o; return - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - definitionId, - workspaceId); + return Utils.enhancedHash( + definitionId, workspaceId); } @Override @@ -83,33 +83,37 @@ public String toString() { "definitionId", definitionId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String definitionId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public DeleteDestinationDefinitionRequest build() { + return new DeleteDestinationDefinitionRequest( - definitionId, - workspaceId); + definitionId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionRequestBuilder.java index 568091e9d..81ca42b34 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.DeleteDestinationDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class DeleteDestinationDefinitionRequestBuilder { private DeleteDestinationDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallDeleteDestinationDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public DeleteDestinationDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallDeleteDestinationDefinition sdk) { - this.sdk = sdk; + public DeleteDestinationDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public DeleteDestinationDefinitionRequestBuilder request(DeleteDestinationDefinitionRequest request) { @@ -22,8 +28,10 @@ public DeleteDestinationDefinitionRequestBuilder request(DeleteDestinationDefini } public DeleteDestinationDefinitionResponse call() throws Exception { + + RequestOperation operation + = new DeleteDestinationDefinition.Sync(sdkConfiguration, _headers); - return sdk.deleteDestinationDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionResponse.java index d2a04cb1b..d782c4972 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class DeleteDestinationDefinitionResponse implements Response { +public class DeleteDestinationDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public DeleteDestinationDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public DeleteDestinationDefinitionResponse withDefinitionResponse(DefinitionResp return this; } + /** * Success */ @@ -144,7 +146,6 @@ public DeleteDestinationDefinitionResponse withRawResponse(HttpResponse definitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder definitionResponse(Optional definit return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public DeleteDestinationDefinitionResponse build() { + return new DeleteDestinationDefinitionResponse( - contentType, - definitionResponse, - statusCode, + contentType, definitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequest.java index b977fd15a..86cb73be3 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DeleteDestinationRequest { @@ -28,9 +28,10 @@ public String destinationId() { return destinationId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeleteDestinationRequest withDestinationId(String destinationId) { Utils.checkNotNull(destinationId, "destinationId"); @@ -38,7 +39,6 @@ public DeleteDestinationRequest withDestinationId(String destinationId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } DeleteDestinationRequest other = (DeleteDestinationRequest) o; return - Objects.deepEquals(this.destinationId, other.destinationId); + Utils.enhancedDeepEquals(this.destinationId, other.destinationId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( destinationId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(DeleteDestinationRequest.class, "destinationId", destinationId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String destinationId; - + private Builder() { // force use of static builder() method } + public Builder destinationId(String destinationId) { Utils.checkNotNull(destinationId, "destinationId"); this.destinationId = destinationId; return this; } - + public DeleteDestinationRequest build() { + return new DeleteDestinationRequest( destinationId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequestBuilder.java index 5ef3ce160..844c59999 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.DeleteDestination; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class DeleteDestinationRequestBuilder { private DeleteDestinationRequest request; - private final SDKMethodInterfaces.MethodCallDeleteDestination sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public DeleteDestinationRequestBuilder(SDKMethodInterfaces.MethodCallDeleteDestination sdk) { - this.sdk = sdk; + public DeleteDestinationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public DeleteDestinationRequestBuilder request(DeleteDestinationRequest request) { @@ -22,8 +28,10 @@ public DeleteDestinationRequestBuilder request(DeleteDestinationRequest request) } public DeleteDestinationResponse call() throws Exception { + + RequestOperation operation + = new DeleteDestination.Sync(sdkConfiguration, _headers); - return sdk.deleteDestination( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationResponse.java index a69f976c6..80a75f6ea 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteDestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteDestinationResponse.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.net.http.HttpResponse; -import java.util.Objects; -public class DeleteDestinationResponse implements Response { +public class DeleteDestinationResponse implements Response { /** * HTTP response content type for this operation */ @@ -68,9 +67,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -99,7 +99,6 @@ public DeleteDestinationResponse withRawResponse(HttpResponse rawRe return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } DeleteDestinationResponse other = (DeleteDestinationResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse); + return Utils.enhancedHash( + contentType, statusCode, rawResponse); } @Override @@ -130,19 +127,21 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -152,6 +151,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -161,6 +161,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -169,12 +170,12 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public DeleteDestinationResponse build() { + return new DeleteDestinationResponse( - contentType, - statusCode, - rawResponse); + contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequest.java b/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequest.java index f986b015e..5b76dbb71 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DeletePermissionRequest { @@ -28,9 +28,10 @@ public String permissionId() { return permissionId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeletePermissionRequest withPermissionId(String permissionId) { Utils.checkNotNull(permissionId, "permissionId"); @@ -38,7 +39,6 @@ public DeletePermissionRequest withPermissionId(String permissionId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } DeletePermissionRequest other = (DeletePermissionRequest) o; return - Objects.deepEquals(this.permissionId, other.permissionId); + Utils.enhancedDeepEquals(this.permissionId, other.permissionId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( permissionId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(DeletePermissionRequest.class, "permissionId", permissionId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String permissionId; - + private Builder() { // force use of static builder() method } + public Builder permissionId(String permissionId) { Utils.checkNotNull(permissionId, "permissionId"); this.permissionId = permissionId; return this; } - + public DeletePermissionRequest build() { + return new DeletePermissionRequest( permissionId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequestBuilder.java index 46605d8c7..cca660be2 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/DeletePermissionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.DeletePermission; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class DeletePermissionRequestBuilder { private DeletePermissionRequest request; - private final SDKMethodInterfaces.MethodCallDeletePermission sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public DeletePermissionRequestBuilder(SDKMethodInterfaces.MethodCallDeletePermission sdk) { - this.sdk = sdk; + public DeletePermissionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public DeletePermissionRequestBuilder request(DeletePermissionRequest request) { @@ -22,8 +28,10 @@ public DeletePermissionRequestBuilder request(DeletePermissionRequest request) { } public DeletePermissionResponse call() throws Exception { + + RequestOperation operation + = new DeletePermission.Sync(sdkConfiguration, _headers); - return sdk.deletePermission( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeletePermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/DeletePermissionResponse.java index 51e40d2dd..878e894ac 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeletePermissionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeletePermissionResponse.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.net.http.HttpResponse; -import java.util.Objects; -public class DeletePermissionResponse implements Response { +public class DeletePermissionResponse implements Response { /** * HTTP response content type for this operation */ @@ -68,9 +67,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -99,7 +99,6 @@ public DeletePermissionResponse withRawResponse(HttpResponse rawRes return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } DeletePermissionResponse other = (DeletePermissionResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse); + return Utils.enhancedHash( + contentType, statusCode, rawResponse); } @Override @@ -130,19 +127,21 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -152,6 +151,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -161,6 +161,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -169,12 +170,12 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public DeletePermissionResponse build() { + return new DeletePermissionResponse( - contentType, - statusCode, - rawResponse); + contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionRequest.java index 75edbd829..27a4b425a 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionRequest.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DeleteSourceDefinitionRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=definitionId") private String definitionId; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -39,9 +40,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeleteSourceDefinitionRequest withDefinitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -55,7 +57,6 @@ public DeleteSourceDefinitionRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } DeleteSourceDefinitionRequest other = (DeleteSourceDefinitionRequest) o; return - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - definitionId, - workspaceId); + return Utils.enhancedHash( + definitionId, workspaceId); } @Override @@ -83,33 +83,37 @@ public String toString() { "definitionId", definitionId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String definitionId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public DeleteSourceDefinitionRequest build() { + return new DeleteSourceDefinitionRequest( - definitionId, - workspaceId); + definitionId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionRequestBuilder.java index b69b5e6ad..17bc71390 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.DeleteSourceDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class DeleteSourceDefinitionRequestBuilder { private DeleteSourceDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallDeleteSourceDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public DeleteSourceDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallDeleteSourceDefinition sdk) { - this.sdk = sdk; + public DeleteSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public DeleteSourceDefinitionRequestBuilder request(DeleteSourceDefinitionRequest request) { @@ -22,8 +28,10 @@ public DeleteSourceDefinitionRequestBuilder request(DeleteSourceDefinitionReques } public DeleteSourceDefinitionResponse call() throws Exception { + + RequestOperation operation + = new DeleteSourceDefinition.Sync(sdkConfiguration, _headers); - return sdk.deleteSourceDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionResponse.java index 23bdee35f..6a19b8c45 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteSourceDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class DeleteSourceDefinitionResponse implements Response { +public class DeleteSourceDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public DeleteSourceDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public DeleteSourceDefinitionResponse withDefinitionResponse(DefinitionResponse return this; } + /** * Success */ @@ -144,7 +146,6 @@ public DeleteSourceDefinitionResponse withRawResponse(HttpResponse return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } DeleteSourceDefinitionResponse other = (DeleteSourceDefinitionResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.definitionResponse, other.definitionResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - definitionResponse, - statusCode, + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional definitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder definitionResponse(Optional definit return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public DeleteSourceDefinitionResponse build() { + return new DeleteSourceDefinitionResponse( - contentType, - definitionResponse, - statusCode, + contentType, definitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequest.java index 24508d425..5a123102e 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DeleteSourceRequest { @@ -28,9 +28,10 @@ public String sourceId() { return sourceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeleteSourceRequest withSourceId(String sourceId) { Utils.checkNotNull(sourceId, "sourceId"); @@ -38,7 +39,6 @@ public DeleteSourceRequest withSourceId(String sourceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } DeleteSourceRequest other = (DeleteSourceRequest) o; return - Objects.deepEquals(this.sourceId, other.sourceId); + Utils.enhancedDeepEquals(this.sourceId, other.sourceId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( sourceId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(DeleteSourceRequest.class, "sourceId", sourceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sourceId; - + private Builder() { // force use of static builder() method } + public Builder sourceId(String sourceId) { Utils.checkNotNull(sourceId, "sourceId"); this.sourceId = sourceId; return this; } - + public DeleteSourceRequest build() { + return new DeleteSourceRequest( sourceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequestBuilder.java index c162f225f..c3ab9a7ca 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteSourceRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.DeleteSource; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class DeleteSourceRequestBuilder { private DeleteSourceRequest request; - private final SDKMethodInterfaces.MethodCallDeleteSource sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public DeleteSourceRequestBuilder(SDKMethodInterfaces.MethodCallDeleteSource sdk) { - this.sdk = sdk; + public DeleteSourceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public DeleteSourceRequestBuilder request(DeleteSourceRequest request) { @@ -22,8 +28,10 @@ public DeleteSourceRequestBuilder request(DeleteSourceRequest request) { } public DeleteSourceResponse call() throws Exception { + + RequestOperation operation + = new DeleteSource.Sync(sdkConfiguration, _headers); - return sdk.deleteSource( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteSourceResponse.java index bf3be8c1f..17220b53b 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteSourceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteSourceResponse.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.net.http.HttpResponse; -import java.util.Objects; -public class DeleteSourceResponse implements Response { +public class DeleteSourceResponse implements Response { /** * HTTP response content type for this operation */ @@ -68,9 +67,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -99,7 +99,6 @@ public DeleteSourceResponse withRawResponse(HttpResponse rawRespons return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } DeleteSourceResponse other = (DeleteSourceResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse); + return Utils.enhancedHash( + contentType, statusCode, rawResponse); } @Override @@ -130,19 +127,21 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -152,6 +151,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -161,6 +161,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -169,12 +170,12 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public DeleteSourceResponse build() { + return new DeleteSourceResponse( - contentType, - statusCode, - rawResponse); + contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteTagRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteTagRequest.java index 50617ccb7..17865e807 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteTagRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteTagRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DeleteTagRequest { @@ -28,9 +28,10 @@ public String tagId() { return tagId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeleteTagRequest withTagId(String tagId) { Utils.checkNotNull(tagId, "tagId"); @@ -38,7 +39,6 @@ public DeleteTagRequest withTagId(String tagId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } DeleteTagRequest other = (DeleteTagRequest) o; return - Objects.deepEquals(this.tagId, other.tagId); + Utils.enhancedDeepEquals(this.tagId, other.tagId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tagId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(DeleteTagRequest.class, "tagId", tagId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tagId; - + private Builder() { // force use of static builder() method } + public Builder tagId(String tagId) { Utils.checkNotNull(tagId, "tagId"); this.tagId = tagId; return this; } - + public DeleteTagRequest build() { + return new DeleteTagRequest( tagId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/DeleteTagRequestBuilder.java index 57e1fb0f6..a40c0818d 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteTagRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteTagRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.DeleteTag; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class DeleteTagRequestBuilder { private DeleteTagRequest request; - private final SDKMethodInterfaces.MethodCallDeleteTag sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public DeleteTagRequestBuilder(SDKMethodInterfaces.MethodCallDeleteTag sdk) { - this.sdk = sdk; + public DeleteTagRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public DeleteTagRequestBuilder request(DeleteTagRequest request) { @@ -22,8 +28,10 @@ public DeleteTagRequestBuilder request(DeleteTagRequest request) { } public DeleteTagResponse call() throws Exception { + + RequestOperation operation + = new DeleteTag.Sync(sdkConfiguration, _headers); - return sdk.deleteTag( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteTagResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteTagResponse.java index ed5f3009f..e17187415 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteTagResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteTagResponse.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.net.http.HttpResponse; -import java.util.Objects; -public class DeleteTagResponse implements Response { +public class DeleteTagResponse implements Response { /** * HTTP response content type for this operation */ @@ -68,9 +67,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -99,7 +99,6 @@ public DeleteTagResponse withRawResponse(HttpResponse rawResponse) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } DeleteTagResponse other = (DeleteTagResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse); + return Utils.enhancedHash( + contentType, statusCode, rawResponse); } @Override @@ -130,19 +127,21 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -152,6 +151,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -161,6 +161,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -169,12 +170,12 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public DeleteTagResponse build() { + return new DeleteTagResponse( - contentType, - statusCode, - rawResponse); + contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequest.java b/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequest.java index dd5d718da..d95331132 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DeleteWorkspaceRequest { @@ -28,9 +28,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeleteWorkspaceRequest withWorkspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); @@ -38,7 +39,6 @@ public DeleteWorkspaceRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } DeleteWorkspaceRequest other = (DeleteWorkspaceRequest) o; return - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( workspaceId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(DeleteWorkspaceRequest.class, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public DeleteWorkspaceRequest build() { + return new DeleteWorkspaceRequest( workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequestBuilder.java index 0c9a674d4..32859cb40 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.DeleteWorkspace; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class DeleteWorkspaceRequestBuilder { private DeleteWorkspaceRequest request; - private final SDKMethodInterfaces.MethodCallDeleteWorkspace sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public DeleteWorkspaceRequestBuilder(SDKMethodInterfaces.MethodCallDeleteWorkspace sdk) { - this.sdk = sdk; + public DeleteWorkspaceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public DeleteWorkspaceRequestBuilder request(DeleteWorkspaceRequest request) { @@ -22,8 +28,10 @@ public DeleteWorkspaceRequestBuilder request(DeleteWorkspaceRequest request) { } public DeleteWorkspaceResponse call() throws Exception { + + RequestOperation operation + = new DeleteWorkspace.Sync(sdkConfiguration, _headers); - return sdk.deleteWorkspace( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceResponse.java index b587e3fd9..7c9cfb6ed 100644 --- a/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/DeleteWorkspaceResponse.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.net.http.HttpResponse; -import java.util.Objects; -public class DeleteWorkspaceResponse implements Response { +public class DeleteWorkspaceResponse implements Response { /** * HTTP response content type for this operation */ @@ -68,9 +67,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -99,7 +99,6 @@ public DeleteWorkspaceResponse withRawResponse(HttpResponse rawResp return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } DeleteWorkspaceResponse other = (DeleteWorkspaceResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse); + return Utils.enhancedHash( + contentType, statusCode, rawResponse); } @Override @@ -130,19 +127,21 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -152,6 +151,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -161,6 +161,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -169,12 +170,12 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public DeleteWorkspaceResponse build() { + return new DeleteWorkspaceResponse( - contentType, - statusCode, - rawResponse); + contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetConnectionRequest.java b/src/main/java/com/airbyte/api/models/operations/GetConnectionRequest.java index 4b7c2ba2c..ea9b53657 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetConnectionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetConnectionRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class GetConnectionRequest { @@ -28,9 +28,10 @@ public String connectionId() { return connectionId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GetConnectionRequest withConnectionId(String connectionId) { Utils.checkNotNull(connectionId, "connectionId"); @@ -38,7 +39,6 @@ public GetConnectionRequest withConnectionId(String connectionId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } GetConnectionRequest other = (GetConnectionRequest) o; return - Objects.deepEquals(this.connectionId, other.connectionId); + Utils.enhancedDeepEquals(this.connectionId, other.connectionId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( connectionId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(GetConnectionRequest.class, "connectionId", connectionId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String connectionId; - + private Builder() { // force use of static builder() method } + public Builder connectionId(String connectionId) { Utils.checkNotNull(connectionId, "connectionId"); this.connectionId = connectionId; return this; } - + public GetConnectionRequest build() { + return new GetConnectionRequest( connectionId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetConnectionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetConnectionRequestBuilder.java index 38ddea005..5b2187353 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetConnectionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetConnectionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetConnection; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class GetConnectionRequestBuilder { private GetConnectionRequest request; - private final SDKMethodInterfaces.MethodCallGetConnection sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetConnectionRequestBuilder(SDKMethodInterfaces.MethodCallGetConnection sdk) { - this.sdk = sdk; + public GetConnectionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetConnectionRequestBuilder request(GetConnectionRequest request) { @@ -22,8 +28,10 @@ public GetConnectionRequestBuilder request(GetConnectionRequest request) { } public GetConnectionResponse call() throws Exception { + + RequestOperation operation + = new GetConnection.Sync(sdkConfiguration, _headers); - return sdk.getConnection( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/GetConnectionResponse.java index 535595a5e..ae7429bb6 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetConnectionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetConnectionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class GetConnectionResponse implements Response { +public class GetConnectionResponse implements Response { /** * Get a Connection by the id in the path. */ @@ -59,7 +58,8 @@ public GetConnectionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(Optional.empty(), contentType, statusCode, rawResponse); + this(Optional.empty(), contentType, statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Get a Connection by the id in the path. @@ -108,6 +109,7 @@ public GetConnectionResponse withConnectionResponse(ConnectionResponse connectio return this; } + /** * Get a Connection by the id in the path. */ @@ -144,7 +146,6 @@ public GetConnectionResponse withRawResponse(HttpResponse rawRespon return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } GetConnectionResponse other = (GetConnectionResponse) o; return - Objects.deepEquals(this.connectionResponse, other.connectionResponse) && - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.connectionResponse, other.connectionResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - connectionResponse, - contentType, - statusCode, + return Utils.enhancedHash( + connectionResponse, contentType, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional connectionResponse = Optional.empty(); - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * Get a Connection by the id in the path. */ @@ -211,6 +212,7 @@ public Builder connectionResponse(Optional connect return this; } + /** * HTTP response content type for this operation */ @@ -220,6 +222,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public GetConnectionResponse build() { + return new GetConnectionResponse( - connectionResponse, - contentType, - statusCode, + connectionResponse, contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionRequest.java index e186aa703..2680656b0 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionRequest.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class GetDeclarativeSourceDefinitionRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=definitionId") private String definitionId; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -39,9 +40,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GetDeclarativeSourceDefinitionRequest withDefinitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -55,7 +57,6 @@ public GetDeclarativeSourceDefinitionRequest withWorkspaceId(String workspaceId) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } GetDeclarativeSourceDefinitionRequest other = (GetDeclarativeSourceDefinitionRequest) o; return - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - definitionId, - workspaceId); + return Utils.enhancedHash( + definitionId, workspaceId); } @Override @@ -83,33 +83,37 @@ public String toString() { "definitionId", definitionId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String definitionId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public GetDeclarativeSourceDefinitionRequest build() { + return new GetDeclarativeSourceDefinitionRequest( - definitionId, - workspaceId); + definitionId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionRequestBuilder.java index eabf3fa9b..223926927 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetDeclarativeSourceDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class GetDeclarativeSourceDefinitionRequestBuilder { private GetDeclarativeSourceDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallGetDeclarativeSourceDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetDeclarativeSourceDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallGetDeclarativeSourceDefinition sdk) { - this.sdk = sdk; + public GetDeclarativeSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetDeclarativeSourceDefinitionRequestBuilder request(GetDeclarativeSourceDefinitionRequest request) { @@ -22,8 +28,10 @@ public GetDeclarativeSourceDefinitionRequestBuilder request(GetDeclarativeSource } public GetDeclarativeSourceDefinitionResponse call() throws Exception { + + RequestOperation operation + = new GetDeclarativeSourceDefinition.Sync(sdkConfiguration, _headers); - return sdk.getDeclarativeSourceDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionResponse.java index 2138160ad..89283ecdc 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDeclarativeSourceDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class GetDeclarativeSourceDefinitionResponse implements Response { +public class GetDeclarativeSourceDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public GetDeclarativeSourceDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public GetDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinitionRes return this; } + /** * Success */ @@ -144,7 +146,6 @@ public GetDeclarativeSourceDefinitionResponse withRawResponse(HttpResponse declarativeSourceDefinitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder declarativeSourceDefinitionResponse(Optional rawResponse) { this.rawResponse = rawResponse; return this; } - + public GetDeclarativeSourceDefinitionResponse build() { + return new GetDeclarativeSourceDefinitionResponse( - contentType, - declarativeSourceDefinitionResponse, - statusCode, + contentType, declarativeSourceDefinitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionRequest.java index cc32e60da..f12e7abc8 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionRequest.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class GetDestinationDefinitionRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=definitionId") private String definitionId; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -39,9 +40,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GetDestinationDefinitionRequest withDefinitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -55,7 +57,6 @@ public GetDestinationDefinitionRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } GetDestinationDefinitionRequest other = (GetDestinationDefinitionRequest) o; return - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - definitionId, - workspaceId); + return Utils.enhancedHash( + definitionId, workspaceId); } @Override @@ -83,33 +83,37 @@ public String toString() { "definitionId", definitionId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String definitionId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public GetDestinationDefinitionRequest build() { + return new GetDestinationDefinitionRequest( - definitionId, - workspaceId); + definitionId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionRequestBuilder.java index 133dd3494..bf51d1934 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetDestinationDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class GetDestinationDefinitionRequestBuilder { private GetDestinationDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallGetDestinationDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetDestinationDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallGetDestinationDefinition sdk) { - this.sdk = sdk; + public GetDestinationDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetDestinationDefinitionRequestBuilder request(GetDestinationDefinitionRequest request) { @@ -22,8 +28,10 @@ public GetDestinationDefinitionRequestBuilder request(GetDestinationDefinitionRe } public GetDestinationDefinitionResponse call() throws Exception { + + RequestOperation operation + = new GetDestinationDefinition.Sync(sdkConfiguration, _headers); - return sdk.getDestinationDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionResponse.java index 9a43e3124..2e0f1ba9f 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDestinationDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class GetDestinationDefinitionResponse implements Response { +public class GetDestinationDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public GetDestinationDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public GetDestinationDefinitionResponse withDefinitionResponse(DefinitionRespons return this; } + /** * Success */ @@ -144,7 +146,6 @@ public GetDestinationDefinitionResponse withRawResponse(HttpResponse definitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder definitionResponse(Optional definit return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public GetDestinationDefinitionResponse build() { + return new GetDestinationDefinitionResponse( - contentType, - definitionResponse, - statusCode, + contentType, definitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetDestinationRequest.java b/src/main/java/com/airbyte/api/models/operations/GetDestinationRequest.java index 0780d1137..8daa46786 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDestinationRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDestinationRequest.java @@ -10,9 +10,9 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class GetDestinationRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=destinationId") @@ -52,9 +52,10 @@ public Optional includeSecretCoordinates() { return includeSecretCoordinates; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GetDestinationRequest withDestinationId(String destinationId) { Utils.checkNotNull(destinationId, "destinationId"); @@ -71,6 +72,7 @@ public GetDestinationRequest withIncludeSecretCoordinates(boolean includeSecretC return this; } + /** * Rather than return *** for secret properties include the secret coordinate information */ @@ -80,7 +82,6 @@ public GetDestinationRequest withIncludeSecretCoordinates(Optional incl return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -91,15 +92,14 @@ public boolean equals(java.lang.Object o) { } GetDestinationRequest other = (GetDestinationRequest) o; return - Objects.deepEquals(this.destinationId, other.destinationId) && - Objects.deepEquals(this.includeSecretCoordinates, other.includeSecretCoordinates); + Utils.enhancedDeepEquals(this.destinationId, other.destinationId) && + Utils.enhancedDeepEquals(this.includeSecretCoordinates, other.includeSecretCoordinates); } @Override public int hashCode() { - return Objects.hash( - destinationId, - includeSecretCoordinates); + return Utils.enhancedHash( + destinationId, includeSecretCoordinates); } @Override @@ -108,23 +108,26 @@ public String toString() { "destinationId", destinationId, "includeSecretCoordinates", includeSecretCoordinates); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String destinationId; - + private Optional includeSecretCoordinates = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder destinationId(String destinationId) { Utils.checkNotNull(destinationId, "destinationId"); this.destinationId = destinationId; return this; } + /** * Rather than return *** for secret properties include the secret coordinate information */ @@ -142,11 +145,12 @@ public Builder includeSecretCoordinates(Optional includeSecretCoordinat this.includeSecretCoordinates = includeSecretCoordinates; return this; } - + public GetDestinationRequest build() { + return new GetDestinationRequest( - destinationId, - includeSecretCoordinates); + destinationId, includeSecretCoordinates); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetDestinationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetDestinationRequestBuilder.java index abb2e1295..01b278374 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDestinationRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDestinationRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetDestination; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class GetDestinationRequestBuilder { private GetDestinationRequest request; - private final SDKMethodInterfaces.MethodCallGetDestination sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetDestinationRequestBuilder(SDKMethodInterfaces.MethodCallGetDestination sdk) { - this.sdk = sdk; + public GetDestinationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetDestinationRequestBuilder request(GetDestinationRequest request) { @@ -22,8 +28,10 @@ public GetDestinationRequestBuilder request(GetDestinationRequest request) { } public GetDestinationResponse call() throws Exception { + + RequestOperation operation + = new GetDestination.Sync(sdkConfiguration, _headers); - return sdk.getDestination( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/GetDestinationResponse.java index d1c59e830..20b0e2c80 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetDestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetDestinationResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class GetDestinationResponse implements Response { +public class GetDestinationResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public GetDestinationResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public GetDestinationResponse withDestinationResponse(DestinationResponse destin return this; } + /** * Get a Destination by the id in the path. */ @@ -144,7 +146,6 @@ public GetDestinationResponse withRawResponse(HttpResponse rawRespo return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } GetDestinationResponse other = (GetDestinationResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.destinationResponse, other.destinationResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.destinationResponse, other.destinationResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - destinationResponse, - statusCode, + return Utils.enhancedHash( + contentType, destinationResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional destinationResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Get a Destination by the id in the path. */ @@ -220,6 +222,7 @@ public Builder destinationResponse(Optional desti return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public GetDestinationResponse build() { + return new GetDestinationResponse( - contentType, - destinationResponse, - statusCode, + contentType, destinationResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetHealthCheckRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetHealthCheckRequestBuilder.java index 1b4613fd9..4aa74c06a 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetHealthCheckRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetHealthCheckRequestBuilder.java @@ -3,18 +3,27 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestlessOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetHealthCheck; +import com.airbyte.api.utils.Headers; import java.lang.Exception; public class GetHealthCheckRequestBuilder { - private final SDKMethodInterfaces.MethodCallGetHealthCheck sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetHealthCheckRequestBuilder(SDKMethodInterfaces.MethodCallGetHealthCheck sdk) { - this.sdk = sdk; + public GetHealthCheckRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetHealthCheckResponse call() throws Exception { + + RequestlessOperation operation + = new GetHealthCheck.Sync(sdkConfiguration, _headers); - return sdk.getHealthCheckDirect(); + return operation.handleResponse(operation.doRequest()); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetHealthCheckResponse.java b/src/main/java/com/airbyte/api/models/operations/GetHealthCheckResponse.java index d43b610d9..afa22f9b1 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetHealthCheckResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetHealthCheckResponse.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.net.http.HttpResponse; -import java.util.Objects; -public class GetHealthCheckResponse implements Response { +public class GetHealthCheckResponse implements Response { /** * HTTP response content type for this operation */ @@ -68,9 +67,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -99,7 +99,6 @@ public GetHealthCheckResponse withRawResponse(HttpResponse rawRespo return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } GetHealthCheckResponse other = (GetHealthCheckResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse); + return Utils.enhancedHash( + contentType, statusCode, rawResponse); } @Override @@ -130,19 +127,21 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -152,6 +151,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -161,6 +161,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -169,12 +170,12 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public GetHealthCheckResponse build() { + return new GetHealthCheckResponse( - contentType, - statusCode, - rawResponse); + contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetJobRequest.java b/src/main/java/com/airbyte/api/models/operations/GetJobRequest.java index d57ee5144..87a49e34c 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetJobRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetJobRequest.java @@ -10,7 +10,7 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class GetJobRequest { @@ -29,9 +29,10 @@ public long jobId() { return jobId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GetJobRequest withJobId(long jobId) { Utils.checkNotNull(jobId, "jobId"); @@ -39,7 +40,6 @@ public GetJobRequest withJobId(long jobId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +50,12 @@ public boolean equals(java.lang.Object o) { } GetJobRequest other = (GetJobRequest) o; return - Objects.deepEquals(this.jobId, other.jobId); + Utils.enhancedDeepEquals(this.jobId, other.jobId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( jobId); } @@ -64,24 +64,28 @@ public String toString() { return Utils.toString(GetJobRequest.class, "jobId", jobId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Long jobId; - + private Builder() { // force use of static builder() method } + public Builder jobId(long jobId) { Utils.checkNotNull(jobId, "jobId"); this.jobId = jobId; return this; } - + public GetJobRequest build() { + return new GetJobRequest( jobId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetJobRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetJobRequestBuilder.java index af439aba4..46c7f4690 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetJobRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetJobRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetJob; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class GetJobRequestBuilder { private GetJobRequest request; - private final SDKMethodInterfaces.MethodCallGetJob sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetJobRequestBuilder(SDKMethodInterfaces.MethodCallGetJob sdk) { - this.sdk = sdk; + public GetJobRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetJobRequestBuilder request(GetJobRequest request) { @@ -22,8 +28,10 @@ public GetJobRequestBuilder request(GetJobRequest request) { } public GetJobResponse call() throws Exception { + + RequestOperation operation + = new GetJob.Sync(sdkConfiguration, _headers); - return sdk.getJob( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetJobResponse.java b/src/main/java/com/airbyte/api/models/operations/GetJobResponse.java index f8f5421b9..354f2bac6 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetJobResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetJobResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class GetJobResponse implements Response { +public class GetJobResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public GetJobResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public GetJobResponse withJobResponse(JobResponse jobResponse) { return this; } + /** * Get a Job by the id in the path. */ @@ -144,7 +146,6 @@ public GetJobResponse withRawResponse(HttpResponse rawResponse) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } GetJobResponse other = (GetJobResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.jobResponse, other.jobResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.jobResponse, other.jobResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - jobResponse, - statusCode, + return Utils.enhancedHash( + contentType, jobResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional jobResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Get a Job by the id in the path. */ @@ -220,6 +222,7 @@ public Builder jobResponse(Optional jobResponse) { return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public GetJobResponse build() { + return new GetJobResponse( - contentType, - jobResponse, - statusCode, + contentType, jobResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetPermissionRequest.java b/src/main/java/com/airbyte/api/models/operations/GetPermissionRequest.java index a02d19591..2f5c5e778 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetPermissionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetPermissionRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class GetPermissionRequest { @@ -28,9 +28,10 @@ public String permissionId() { return permissionId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GetPermissionRequest withPermissionId(String permissionId) { Utils.checkNotNull(permissionId, "permissionId"); @@ -38,7 +39,6 @@ public GetPermissionRequest withPermissionId(String permissionId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } GetPermissionRequest other = (GetPermissionRequest) o; return - Objects.deepEquals(this.permissionId, other.permissionId); + Utils.enhancedDeepEquals(this.permissionId, other.permissionId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( permissionId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(GetPermissionRequest.class, "permissionId", permissionId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String permissionId; - + private Builder() { // force use of static builder() method } + public Builder permissionId(String permissionId) { Utils.checkNotNull(permissionId, "permissionId"); this.permissionId = permissionId; return this; } - + public GetPermissionRequest build() { + return new GetPermissionRequest( permissionId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetPermissionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetPermissionRequestBuilder.java index c73324165..0e37c246a 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetPermissionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetPermissionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetPermission; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class GetPermissionRequestBuilder { private GetPermissionRequest request; - private final SDKMethodInterfaces.MethodCallGetPermission sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetPermissionRequestBuilder(SDKMethodInterfaces.MethodCallGetPermission sdk) { - this.sdk = sdk; + public GetPermissionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetPermissionRequestBuilder request(GetPermissionRequest request) { @@ -22,8 +28,10 @@ public GetPermissionRequestBuilder request(GetPermissionRequest request) { } public GetPermissionResponse call() throws Exception { + + RequestOperation operation + = new GetPermission.Sync(sdkConfiguration, _headers); - return sdk.getPermission( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetPermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/GetPermissionResponse.java index 2a97b08bb..263db958c 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetPermissionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetPermissionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class GetPermissionResponse implements Response { +public class GetPermissionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public GetPermissionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public GetPermissionResponse withPermissionResponse(PermissionResponse permissio return this; } + /** * Get a Permission by the id in the path. */ @@ -144,7 +146,6 @@ public GetPermissionResponse withRawResponse(HttpResponse rawRespon return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } GetPermissionResponse other = (GetPermissionResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.permissionResponse, other.permissionResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.permissionResponse, other.permissionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - permissionResponse, - statusCode, + return Utils.enhancedHash( + contentType, permissionResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional permissionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Get a Permission by the id in the path. */ @@ -220,6 +222,7 @@ public Builder permissionResponse(Optional permiss return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public GetPermissionResponse build() { + return new GetPermissionResponse( - contentType, - permissionResponse, - statusCode, + contentType, permissionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionRequest.java index b4db8960c..fc16c3108 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionRequest.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class GetSourceDefinitionRequest { @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=definitionId") private String definitionId; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -39,9 +40,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GetSourceDefinitionRequest withDefinitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -55,7 +57,6 @@ public GetSourceDefinitionRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } GetSourceDefinitionRequest other = (GetSourceDefinitionRequest) o; return - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - definitionId, - workspaceId); + return Utils.enhancedHash( + definitionId, workspaceId); } @Override @@ -83,33 +83,37 @@ public String toString() { "definitionId", definitionId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String definitionId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public GetSourceDefinitionRequest build() { + return new GetSourceDefinitionRequest( - definitionId, - workspaceId); + definitionId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionRequestBuilder.java index 71290f000..a539f5796 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetSourceDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class GetSourceDefinitionRequestBuilder { private GetSourceDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallGetSourceDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetSourceDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallGetSourceDefinition sdk) { - this.sdk = sdk; + public GetSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetSourceDefinitionRequestBuilder request(GetSourceDefinitionRequest request) { @@ -22,8 +28,10 @@ public GetSourceDefinitionRequestBuilder request(GetSourceDefinitionRequest requ } public GetSourceDefinitionResponse call() throws Exception { + + RequestOperation operation + = new GetSourceDefinition.Sync(sdkConfiguration, _headers); - return sdk.getSourceDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionResponse.java index 936fcaa9a..b588a3a4b 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetSourceDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class GetSourceDefinitionResponse implements Response { +public class GetSourceDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public GetSourceDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public GetSourceDefinitionResponse withDefinitionResponse(DefinitionResponse def return this; } + /** * Success */ @@ -144,7 +146,6 @@ public GetSourceDefinitionResponse withRawResponse(HttpResponse raw return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } GetSourceDefinitionResponse other = (GetSourceDefinitionResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.definitionResponse, other.definitionResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - definitionResponse, - statusCode, + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional definitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder definitionResponse(Optional definit return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public GetSourceDefinitionResponse build() { + return new GetSourceDefinitionResponse( - contentType, - definitionResponse, - statusCode, + contentType, definitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetSourceRequest.java b/src/main/java/com/airbyte/api/models/operations/GetSourceRequest.java index 6c2ec97f6..44b8435a9 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetSourceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetSourceRequest.java @@ -10,17 +10,17 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GetSourceRequest { +public class GetSourceRequest { /** * Rather than return *** for secret properties include the secret coordinate information */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=includeSecretCoordinates") private Optional includeSecretCoordinates; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sourceId") private String sourceId; @@ -52,9 +52,10 @@ public String sourceId() { return sourceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Rather than return *** for secret properties include the secret coordinate information @@ -65,6 +66,7 @@ public GetSourceRequest withIncludeSecretCoordinates(boolean includeSecretCoordi return this; } + /** * Rather than return *** for secret properties include the secret coordinate information */ @@ -80,7 +82,6 @@ public GetSourceRequest withSourceId(String sourceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -91,15 +92,14 @@ public boolean equals(java.lang.Object o) { } GetSourceRequest other = (GetSourceRequest) o; return - Objects.deepEquals(this.includeSecretCoordinates, other.includeSecretCoordinates) && - Objects.deepEquals(this.sourceId, other.sourceId); + Utils.enhancedDeepEquals(this.includeSecretCoordinates, other.includeSecretCoordinates) && + Utils.enhancedDeepEquals(this.sourceId, other.sourceId); } @Override public int hashCode() { - return Objects.hash( - includeSecretCoordinates, - sourceId); + return Utils.enhancedHash( + includeSecretCoordinates, sourceId); } @Override @@ -108,17 +108,19 @@ public String toString() { "includeSecretCoordinates", includeSecretCoordinates, "sourceId", sourceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional includeSecretCoordinates = Optional.empty(); - + private String sourceId; - + private Builder() { // force use of static builder() method } + /** * Rather than return *** for secret properties include the secret coordinate information */ @@ -137,16 +139,18 @@ public Builder includeSecretCoordinates(Optional includeSecretCoordinat return this; } + public Builder sourceId(String sourceId) { Utils.checkNotNull(sourceId, "sourceId"); this.sourceId = sourceId; return this; } - + public GetSourceRequest build() { + return new GetSourceRequest( - includeSecretCoordinates, - sourceId); + includeSecretCoordinates, sourceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetSourceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetSourceRequestBuilder.java index dba03b75a..6a6bada31 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetSourceRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetSourceRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetSource; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class GetSourceRequestBuilder { private GetSourceRequest request; - private final SDKMethodInterfaces.MethodCallGetSource sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetSourceRequestBuilder(SDKMethodInterfaces.MethodCallGetSource sdk) { - this.sdk = sdk; + public GetSourceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetSourceRequestBuilder request(GetSourceRequest request) { @@ -22,8 +28,10 @@ public GetSourceRequestBuilder request(GetSourceRequest request) { } public GetSourceResponse call() throws Exception { + + RequestOperation operation + = new GetSource.Sync(sdkConfiguration, _headers); - return sdk.getSource( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/GetSourceResponse.java index f4a41f9e8..5ab0a4ca1 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetSourceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetSourceResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class GetSourceResponse implements Response { +public class GetSourceResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public GetSourceResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public GetSourceResponse withSourceResponse(SourceResponse sourceResponse) { return this; } + /** * Get a Source by the id in the path. */ @@ -144,7 +146,6 @@ public GetSourceResponse withRawResponse(HttpResponse rawResponse) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } GetSourceResponse other = (GetSourceResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.sourceResponse, other.sourceResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.sourceResponse, other.sourceResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - sourceResponse, - statusCode, + return Utils.enhancedHash( + contentType, sourceResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional sourceResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Get a Source by the id in the path. */ @@ -220,6 +222,7 @@ public Builder sourceResponse(Optional sourceResponse) return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public GetSourceResponse build() { + return new GetSourceResponse( - contentType, - sourceResponse, - statusCode, + contentType, sourceResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequest.java b/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequest.java index 0b8c353c3..449f61002 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequest.java @@ -12,11 +12,10 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GetStreamPropertiesRequest { +public class GetStreamPropertiesRequest { /** * ID of the destination */ @@ -77,9 +76,10 @@ public String sourceId() { return sourceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * ID of the destination @@ -90,6 +90,7 @@ public GetStreamPropertiesRequest withDestinationId(String destinationId) { return this; } + /** * ID of the destination */ @@ -108,6 +109,7 @@ public GetStreamPropertiesRequest withIgnoreCache(boolean ignoreCache) { return this; } + /** * If true pull the latest schema from the source, else pull from cache (default false) */ @@ -126,7 +128,6 @@ public GetStreamPropertiesRequest withSourceId(String sourceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,17 +138,15 @@ public boolean equals(java.lang.Object o) { } GetStreamPropertiesRequest other = (GetStreamPropertiesRequest) o; return - Objects.deepEquals(this.destinationId, other.destinationId) && - Objects.deepEquals(this.ignoreCache, other.ignoreCache) && - Objects.deepEquals(this.sourceId, other.sourceId); + Utils.enhancedDeepEquals(this.destinationId, other.destinationId) && + Utils.enhancedDeepEquals(this.ignoreCache, other.ignoreCache) && + Utils.enhancedDeepEquals(this.sourceId, other.sourceId); } @Override public int hashCode() { - return Objects.hash( - destinationId, - ignoreCache, - sourceId); + return Utils.enhancedHash( + destinationId, ignoreCache, sourceId); } @Override @@ -157,19 +156,21 @@ public String toString() { "ignoreCache", ignoreCache, "sourceId", sourceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional destinationId = Optional.empty(); - + private Optional ignoreCache; - + private String sourceId; - + private Builder() { // force use of static builder() method } + /** * ID of the destination */ @@ -188,6 +189,7 @@ public Builder destinationId(Optional destinationId) { return this; } + /** * If true pull the latest schema from the source, else pull from cache (default false) */ @@ -206,6 +208,7 @@ public Builder ignoreCache(Optional ignoreCache) { return this; } + /** * ID of the source */ @@ -214,17 +217,17 @@ public Builder sourceId(String sourceId) { this.sourceId = sourceId; return this; } - + public GetStreamPropertiesRequest build() { if (ignoreCache == null) { ignoreCache = _SINGLETON_VALUE_IgnoreCache.value(); } + return new GetStreamPropertiesRequest( - destinationId, - ignoreCache, - sourceId); + destinationId, ignoreCache, sourceId); } + private static final LazySingletonValue> _SINGLETON_VALUE_IgnoreCache = new LazySingletonValue<>( "ignoreCache", diff --git a/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequestBuilder.java index 9f998e9b5..d0e013ab2 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetStreamProperties; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class GetStreamPropertiesRequestBuilder { private GetStreamPropertiesRequest request; - private final SDKMethodInterfaces.MethodCallGetStreamProperties sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetStreamPropertiesRequestBuilder(SDKMethodInterfaces.MethodCallGetStreamProperties sdk) { - this.sdk = sdk; + public GetStreamPropertiesRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetStreamPropertiesRequestBuilder request(GetStreamPropertiesRequest request) { @@ -22,8 +28,10 @@ public GetStreamPropertiesRequestBuilder request(GetStreamPropertiesRequest requ } public GetStreamPropertiesResponse call() throws Exception { + + RequestOperation operation + = new GetStreamProperties.Sync(sdkConfiguration, _headers); - return sdk.getStreamProperties( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesResponse.java b/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesResponse.java index f6da32cef..33e723f2f 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetStreamPropertiesResponse.java @@ -15,11 +15,10 @@ import java.lang.SuppressWarnings; import java.net.http.HttpResponse; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class GetStreamPropertiesResponse implements Response { +public class GetStreamPropertiesResponse implements Response { /** * HTTP response content type for this operation */ @@ -60,7 +59,8 @@ public GetStreamPropertiesResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, + Optional.empty()); } /** @@ -96,9 +96,10 @@ public Optional> streamPropertiesResponse() { return (Optional>) streamPropertiesResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -136,6 +137,7 @@ public GetStreamPropertiesResponse withStreamPropertiesResponse(List rawResponse; - + private Optional> streamPropertiesResponse = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -203,6 +204,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -212,6 +214,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -221,6 +224,7 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } + /** * Get the available streams properties for a source/destination pair. */ @@ -238,13 +242,13 @@ public Builder streamPropertiesResponse(Optional operation + = new GetTag.Sync(sdkConfiguration, _headers); - return sdk.getTag( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetTagResponse.java b/src/main/java/com/airbyte/api/models/operations/GetTagResponse.java index 1101bf0cc..c77018ccd 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetTagResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetTagResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class GetTagResponse implements Response { +public class GetTagResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public GetTagResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, + Optional.empty()); } /** @@ -95,9 +95,10 @@ public Optional tagResponse() { return (Optional) tagResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -135,6 +136,7 @@ public GetTagResponse withTagResponse(TagResponse tagResponse) { return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public GetTagResponse withTagResponse(Optional tagRespons return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } GetTagResponse other = (GetTagResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.tagResponse, other.tagResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.tagResponse, other.tagResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, + return Utils.enhancedHash( + contentType, statusCode, rawResponse, tagResponse); } @@ -178,21 +177,23 @@ public String toString() { "rawResponse", rawResponse, "tagResponse", tagResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Optional tagResponse = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -211,6 +213,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -220,6 +223,7 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } + /** * Successful operation */ @@ -237,13 +241,13 @@ public Builder tagResponse(Optional tagResponse) { this.tagResponse = tagResponse; return this; } - + public GetTagResponse build() { + return new GetTagResponse( - contentType, - statusCode, - rawResponse, + contentType, statusCode, rawResponse, tagResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequest.java b/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequest.java index bdf71d8cf..82e43e9a2 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class GetWorkspaceRequest { @@ -28,9 +28,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GetWorkspaceRequest withWorkspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); @@ -38,7 +39,6 @@ public GetWorkspaceRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } GetWorkspaceRequest other = (GetWorkspaceRequest) o; return - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( workspaceId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(GetWorkspaceRequest.class, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public GetWorkspaceRequest build() { + return new GetWorkspaceRequest( workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequestBuilder.java index d5b59a172..5fdced342 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/GetWorkspaceRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetWorkspace; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class GetWorkspaceRequestBuilder { private GetWorkspaceRequest request; - private final SDKMethodInterfaces.MethodCallGetWorkspace sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public GetWorkspaceRequestBuilder(SDKMethodInterfaces.MethodCallGetWorkspace sdk) { - this.sdk = sdk; + public GetWorkspaceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public GetWorkspaceRequestBuilder request(GetWorkspaceRequest request) { @@ -22,8 +28,10 @@ public GetWorkspaceRequestBuilder request(GetWorkspaceRequest request) { } public GetWorkspaceResponse call() throws Exception { + + RequestOperation operation + = new GetWorkspace.Sync(sdkConfiguration, _headers); - return sdk.getWorkspace( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/GetWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/GetWorkspaceResponse.java index bf7b659bd..eabb13b1e 100644 --- a/src/main/java/com/airbyte/api/models/operations/GetWorkspaceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/GetWorkspaceResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class GetWorkspaceResponse implements Response { +public class GetWorkspaceResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public GetWorkspaceResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, + Optional.empty()); } /** @@ -95,9 +95,10 @@ public Optional workspaceResponse() { return (Optional) workspaceResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -135,6 +136,7 @@ public GetWorkspaceResponse withWorkspaceResponse(WorkspaceResponse workspaceRes return this; } + /** * Get a Workspace by the id in the path. */ @@ -144,7 +146,6 @@ public GetWorkspaceResponse withWorkspaceResponse(Optional rawResponse; - + private Optional workspaceResponse = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -211,6 +213,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -220,6 +223,7 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } + /** * Get a Workspace by the id in the path. */ @@ -237,13 +241,13 @@ public Builder workspaceResponse(Optional workspace this.workspaceResponse = workspaceResponse; return this; } - + public GetWorkspaceResponse build() { + return new GetWorkspaceResponse( - contentType, - statusCode, - rawResponse, + contentType, statusCode, rawResponse, workspaceResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/InitiateOAuthRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/InitiateOAuthRequestBuilder.java index 58b4105f0..c08bf36cb 100644 --- a/src/main/java/com/airbyte/api/models/operations/InitiateOAuthRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/InitiateOAuthRequestBuilder.java @@ -3,17 +3,23 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; import com.airbyte.api.models.shared.InitiateOauthRequest; +import com.airbyte.api.operations.InitiateOAuth; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class InitiateOAuthRequestBuilder { private InitiateOauthRequest request; - private final SDKMethodInterfaces.MethodCallInitiateOAuth sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public InitiateOAuthRequestBuilder(SDKMethodInterfaces.MethodCallInitiateOAuth sdk) { - this.sdk = sdk; + public InitiateOAuthRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public InitiateOAuthRequestBuilder request(InitiateOauthRequest request) { @@ -23,8 +29,10 @@ public InitiateOAuthRequestBuilder request(InitiateOauthRequest request) { } public InitiateOAuthResponse call() throws Exception { + + RequestOperation operation + = new InitiateOAuth.Sync(sdkConfiguration, _headers); - return sdk.initiateOAuth( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/InitiateOAuthResponse.java b/src/main/java/com/airbyte/api/models/operations/InitiateOAuthResponse.java index 93851c4ea..779a625e5 100644 --- a/src/main/java/com/airbyte/api/models/operations/InitiateOAuthResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/InitiateOAuthResponse.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.net.http.HttpResponse; -import java.util.Objects; -public class InitiateOAuthResponse implements Response { +public class InitiateOAuthResponse implements Response { /** * HTTP response content type for this operation */ @@ -68,9 +67,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -99,7 +99,6 @@ public InitiateOAuthResponse withRawResponse(HttpResponse rawRespon return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } InitiateOAuthResponse other = (InitiateOAuthResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse); + return Utils.enhancedHash( + contentType, statusCode, rawResponse); } @Override @@ -130,19 +127,21 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -152,6 +151,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -161,6 +161,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -169,12 +170,12 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public InitiateOAuthResponse build() { + return new InitiateOAuthResponse( - contentType, - statusCode, - rawResponse); + contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequest.java index 9b0f482f2..7707857f6 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequest.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class ListConnectionsRequest { +public class ListConnectionsRequest { /** * Include deleted connections in the returned results. */ @@ -45,7 +44,8 @@ public class ListConnectionsRequest { private Optional> tagIds; /** - * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed + * workspaces. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=workspaceIds") private Optional> workspaceIds; @@ -70,7 +70,8 @@ public ListConnectionsRequest( } public ListConnectionsRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -107,7 +108,8 @@ public Optional> tagIds() { } /** - * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed + * workspaces. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,9 +117,10 @@ public Optional> workspaceIds() { return (Optional>) workspaceIds; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Include deleted connections in the returned results. @@ -128,6 +131,7 @@ public ListConnectionsRequest withIncludeDeleted(boolean includeDeleted) { return this; } + /** * Include deleted connections in the returned results. */ @@ -146,6 +150,7 @@ public ListConnectionsRequest withLimit(int limit) { return this; } + /** * Set the limit on the number of Connections returned. The default is 20. */ @@ -164,6 +169,7 @@ public ListConnectionsRequest withOffset(int offset) { return this; } + /** * Set the offset to start at when returning Connections. The default is 0 */ @@ -182,6 +188,7 @@ public ListConnectionsRequest withTagIds(List tagIds) { return this; } + /** * The UUIDs of the tags you wish to list connections for. Empty list will retrieve all connections. */ @@ -192,7 +199,8 @@ public ListConnectionsRequest withTagIds(Optional> tagIds } /** - * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed + * workspaces. */ public ListConnectionsRequest withWorkspaceIds(List workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -200,8 +208,10 @@ public ListConnectionsRequest withWorkspaceIds(List workspaceIds) { return this; } + /** - * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed + * workspaces. */ public ListConnectionsRequest withWorkspaceIds(Optional> workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -209,7 +219,6 @@ public ListConnectionsRequest withWorkspaceIds(Optional> return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -220,21 +229,18 @@ public boolean equals(java.lang.Object o) { } ListConnectionsRequest other = (ListConnectionsRequest) o; return - Objects.deepEquals(this.includeDeleted, other.includeDeleted) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.offset, other.offset) && - Objects.deepEquals(this.tagIds, other.tagIds) && - Objects.deepEquals(this.workspaceIds, other.workspaceIds); + Utils.enhancedDeepEquals(this.includeDeleted, other.includeDeleted) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.offset, other.offset) && + Utils.enhancedDeepEquals(this.tagIds, other.tagIds) && + Utils.enhancedDeepEquals(this.workspaceIds, other.workspaceIds); } @Override public int hashCode() { - return Objects.hash( - includeDeleted, - limit, - offset, - tagIds, - workspaceIds); + return Utils.enhancedHash( + includeDeleted, limit, offset, + tagIds, workspaceIds); } @Override @@ -246,23 +252,25 @@ public String toString() { "tagIds", tagIds, "workspaceIds", workspaceIds); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional includeDeleted; - + private Optional limit; - + private Optional offset; - + private Optional> tagIds = Optional.empty(); - + private Optional> workspaceIds = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Include deleted connections in the returned results. */ @@ -281,6 +289,7 @@ public Builder includeDeleted(Optional includeDeleted) { return this; } + /** * Set the limit on the number of Connections returned. The default is 20. */ @@ -299,6 +308,7 @@ public Builder limit(Optional limit) { return this; } + /** * Set the offset to start at when returning Connections. The default is 0 */ @@ -317,6 +327,7 @@ public Builder offset(Optional offset) { return this; } + /** * The UUIDs of the tags you wish to list connections for. Empty list will retrieve all connections. */ @@ -335,8 +346,10 @@ public Builder tagIds(Optional> tagIds) { return this; } + /** - * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed + * workspaces. */ public Builder workspaceIds(List workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -345,14 +358,15 @@ public Builder workspaceIds(List workspaceIds) { } /** - * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list connections for. Empty list will retrieve all allowed + * workspaces. */ public Builder workspaceIds(Optional> workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); this.workspaceIds = workspaceIds; return this; } - + public ListConnectionsRequest build() { if (includeDeleted == null) { includeDeleted = _SINGLETON_VALUE_IncludeDeleted.value(); @@ -363,14 +377,13 @@ public ListConnectionsRequest build() { if (offset == null) { offset = _SINGLETON_VALUE_Offset.value(); } + return new ListConnectionsRequest( - includeDeleted, - limit, - offset, - tagIds, - workspaceIds); + includeDeleted, limit, offset, + tagIds, workspaceIds); } + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeDeleted = new LazySingletonValue<>( "includeDeleted", diff --git a/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequestBuilder.java index 45ce0662f..503d6c2c5 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListConnectionsRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListConnections; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListConnectionsRequestBuilder { private ListConnectionsRequest request; - private final SDKMethodInterfaces.MethodCallListConnections sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListConnectionsRequestBuilder(SDKMethodInterfaces.MethodCallListConnections sdk) { - this.sdk = sdk; + public ListConnectionsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListConnectionsRequestBuilder request(ListConnectionsRequest request) { @@ -22,8 +28,10 @@ public ListConnectionsRequestBuilder request(ListConnectionsRequest request) { } public ListConnectionsResponse call() throws Exception { + + RequestOperation operation + = new ListConnections.Sync(sdkConfiguration, _headers); - return sdk.listConnections( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListConnectionsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListConnectionsResponse.java index b45a5a3f8..35f84b4a9 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListConnectionsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListConnectionsResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListConnectionsResponse implements Response { +public class ListConnectionsResponse implements Response { /** * Successful operation */ @@ -59,7 +58,8 @@ public ListConnectionsResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(Optional.empty(), contentType, statusCode, rawResponse); + this(Optional.empty(), contentType, statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Successful operation @@ -108,6 +109,7 @@ public ListConnectionsResponse withConnectionsResponse(ConnectionsResponse conne return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public ListConnectionsResponse withRawResponse(HttpResponse rawResp return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } ListConnectionsResponse other = (ListConnectionsResponse) o; return - Objects.deepEquals(this.connectionsResponse, other.connectionsResponse) && - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.connectionsResponse, other.connectionsResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - connectionsResponse, - contentType, - statusCode, + return Utils.enhancedHash( + connectionsResponse, contentType, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional connectionsResponse = Optional.empty(); - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * Successful operation */ @@ -211,6 +212,7 @@ public Builder connectionsResponse(Optional conne return this; } + /** * HTTP response content type for this operation */ @@ -220,6 +222,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public ListConnectionsResponse build() { + return new ListConnectionsResponse( - connectionsResponse, - contentType, - statusCode, + connectionsResponse, contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsRequest.java index 2b6a4309e..b77509723 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class ListDeclarativeSourceDefinitionsRequest { @@ -28,9 +28,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ListDeclarativeSourceDefinitionsRequest withWorkspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); @@ -38,7 +39,6 @@ public ListDeclarativeSourceDefinitionsRequest withWorkspaceId(String workspaceI return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } ListDeclarativeSourceDefinitionsRequest other = (ListDeclarativeSourceDefinitionsRequest) o; return - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( workspaceId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(ListDeclarativeSourceDefinitionsRequest.class, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public ListDeclarativeSourceDefinitionsRequest build() { + return new ListDeclarativeSourceDefinitionsRequest( workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsRequestBuilder.java index 49e475f5d..a3555ab3a 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListDeclarativeSourceDefinitions; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListDeclarativeSourceDefinitionsRequestBuilder { private ListDeclarativeSourceDefinitionsRequest request; - private final SDKMethodInterfaces.MethodCallListDeclarativeSourceDefinitions sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListDeclarativeSourceDefinitionsRequestBuilder(SDKMethodInterfaces.MethodCallListDeclarativeSourceDefinitions sdk) { - this.sdk = sdk; + public ListDeclarativeSourceDefinitionsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListDeclarativeSourceDefinitionsRequestBuilder request(ListDeclarativeSourceDefinitionsRequest request) { @@ -22,8 +28,10 @@ public ListDeclarativeSourceDefinitionsRequestBuilder request(ListDeclarativeSou } public ListDeclarativeSourceDefinitionsResponse call() throws Exception { + + RequestOperation operation + = new ListDeclarativeSourceDefinitions.Sync(sdkConfiguration, _headers); - return sdk.listDeclarativeSourceDefinitions( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsResponse.java index 4c343bbad..cdd40c148 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDeclarativeSourceDefinitionsResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListDeclarativeSourceDefinitionsResponse implements Response { +public class ListDeclarativeSourceDefinitionsResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListDeclarativeSourceDefinitionsResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public ListDeclarativeSourceDefinitionsResponse withDeclarativeSourceDefinitions return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public ListDeclarativeSourceDefinitionsResponse withRawResponse(HttpResponse declarativeSourceDefinitionsResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Successful operation */ @@ -220,6 +222,7 @@ public Builder declarativeSourceDefinitionsResponse(Optional rawResponse) { this.rawResponse = rawResponse; return this; } - + public ListDeclarativeSourceDefinitionsResponse build() { + return new ListDeclarativeSourceDefinitionsResponse( - contentType, - declarativeSourceDefinitionsResponse, - statusCode, + contentType, declarativeSourceDefinitionsResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsRequest.java index 71a4a3dd3..27d0b718a 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class ListDestinationDefinitionsRequest { @@ -28,9 +28,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ListDestinationDefinitionsRequest withWorkspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); @@ -38,7 +39,6 @@ public ListDestinationDefinitionsRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } ListDestinationDefinitionsRequest other = (ListDestinationDefinitionsRequest) o; return - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( workspaceId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(ListDestinationDefinitionsRequest.class, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public ListDestinationDefinitionsRequest build() { + return new ListDestinationDefinitionsRequest( workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsRequestBuilder.java index 822edabe5..329514aaa 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListDestinationDefinitions; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListDestinationDefinitionsRequestBuilder { private ListDestinationDefinitionsRequest request; - private final SDKMethodInterfaces.MethodCallListDestinationDefinitions sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListDestinationDefinitionsRequestBuilder(SDKMethodInterfaces.MethodCallListDestinationDefinitions sdk) { - this.sdk = sdk; + public ListDestinationDefinitionsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListDestinationDefinitionsRequestBuilder request(ListDestinationDefinitionsRequest request) { @@ -22,8 +28,10 @@ public ListDestinationDefinitionsRequestBuilder request(ListDestinationDefinitio } public ListDestinationDefinitionsResponse call() throws Exception { + + RequestOperation operation + = new ListDestinationDefinitions.Sync(sdkConfiguration, _headers); - return sdk.listDestinationDefinitions( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsResponse.java index 1da5ebd76..f55f6832e 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDestinationDefinitionsResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListDestinationDefinitionsResponse implements Response { +public class ListDestinationDefinitionsResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListDestinationDefinitionsResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public ListDestinationDefinitionsResponse withDefinitionsResponse(DefinitionsRes return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public ListDestinationDefinitionsResponse withRawResponse(HttpResponse definitionsResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Successful operation */ @@ -220,6 +222,7 @@ public Builder definitionsResponse(Optional defin return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public ListDestinationDefinitionsResponse build() { + return new ListDestinationDefinitionsResponse( - contentType, - definitionsResponse, - statusCode, + contentType, definitionsResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequest.java index f77210b4d..0e47cb516 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequest.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class ListDestinationsRequest { +public class ListDestinationsRequest { /** * Include deleted destinations in the returned results. */ @@ -39,7 +38,8 @@ public class ListDestinationsRequest { private Optional offset; /** - * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed + * workspaces. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=workspaceIds") private Optional> workspaceIds; @@ -61,7 +61,8 @@ public ListDestinationsRequest( } public ListDestinationsRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -89,7 +90,8 @@ public Optional offset() { } /** - * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed + * workspaces. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -97,9 +99,10 @@ public Optional> workspaceIds() { return (Optional>) workspaceIds; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Include deleted destinations in the returned results. @@ -110,6 +113,7 @@ public ListDestinationsRequest withIncludeDeleted(boolean includeDeleted) { return this; } + /** * Include deleted destinations in the returned results. */ @@ -128,6 +132,7 @@ public ListDestinationsRequest withLimit(int limit) { return this; } + /** * Set the limit on the number of destinations returned. The default is 20. */ @@ -146,6 +151,7 @@ public ListDestinationsRequest withOffset(int offset) { return this; } + /** * Set the offset to start at when returning destinations. The default is 0 */ @@ -156,7 +162,8 @@ public ListDestinationsRequest withOffset(Optional offset) { } /** - * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed + * workspaces. */ public ListDestinationsRequest withWorkspaceIds(List workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -164,8 +171,10 @@ public ListDestinationsRequest withWorkspaceIds(List workspaceIds) { return this; } + /** - * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed + * workspaces. */ public ListDestinationsRequest withWorkspaceIds(Optional> workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -173,7 +182,6 @@ public ListDestinationsRequest withWorkspaceIds(Optional> return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -184,18 +192,16 @@ public boolean equals(java.lang.Object o) { } ListDestinationsRequest other = (ListDestinationsRequest) o; return - Objects.deepEquals(this.includeDeleted, other.includeDeleted) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.offset, other.offset) && - Objects.deepEquals(this.workspaceIds, other.workspaceIds); + Utils.enhancedDeepEquals(this.includeDeleted, other.includeDeleted) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.offset, other.offset) && + Utils.enhancedDeepEquals(this.workspaceIds, other.workspaceIds); } @Override public int hashCode() { - return Objects.hash( - includeDeleted, - limit, - offset, + return Utils.enhancedHash( + includeDeleted, limit, offset, workspaceIds); } @@ -207,21 +213,23 @@ public String toString() { "offset", offset, "workspaceIds", workspaceIds); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional includeDeleted; - + private Optional limit; - + private Optional offset; - + private Optional> workspaceIds = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Include deleted destinations in the returned results. */ @@ -240,6 +248,7 @@ public Builder includeDeleted(Optional includeDeleted) { return this; } + /** * Set the limit on the number of destinations returned. The default is 20. */ @@ -258,6 +267,7 @@ public Builder limit(Optional limit) { return this; } + /** * Set the offset to start at when returning destinations. The default is 0 */ @@ -276,8 +286,10 @@ public Builder offset(Optional offset) { return this; } + /** - * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed + * workspaces. */ public Builder workspaceIds(List workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -286,14 +298,15 @@ public Builder workspaceIds(List workspaceIds) { } /** - * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list destinations for. Empty list will retrieve all allowed + * workspaces. */ public Builder workspaceIds(Optional> workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); this.workspaceIds = workspaceIds; return this; } - + public ListDestinationsRequest build() { if (includeDeleted == null) { includeDeleted = _SINGLETON_VALUE_IncludeDeleted.value(); @@ -304,13 +317,13 @@ public ListDestinationsRequest build() { if (offset == null) { offset = _SINGLETON_VALUE_Offset.value(); } + return new ListDestinationsRequest( - includeDeleted, - limit, - offset, + includeDeleted, limit, offset, workspaceIds); } + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeDeleted = new LazySingletonValue<>( "includeDeleted", diff --git a/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequestBuilder.java index aad625396..47ccece30 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDestinationsRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListDestinations; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListDestinationsRequestBuilder { private ListDestinationsRequest request; - private final SDKMethodInterfaces.MethodCallListDestinations sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListDestinationsRequestBuilder(SDKMethodInterfaces.MethodCallListDestinations sdk) { - this.sdk = sdk; + public ListDestinationsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListDestinationsRequestBuilder request(ListDestinationsRequest request) { @@ -22,8 +28,10 @@ public ListDestinationsRequestBuilder request(ListDestinationsRequest request) { } public ListDestinationsResponse call() throws Exception { + + RequestOperation operation + = new ListDestinations.Sync(sdkConfiguration, _headers); - return sdk.listDestinations( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListDestinationsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListDestinationsResponse.java index 98e1dace8..05cbfb9e2 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListDestinationsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListDestinationsResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListDestinationsResponse implements Response { +public class ListDestinationsResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListDestinationsResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public ListDestinationsResponse withDestinationsResponse(DestinationsResponse de return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public ListDestinationsResponse withRawResponse(HttpResponse rawRes return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } ListDestinationsResponse other = (ListDestinationsResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.destinationsResponse, other.destinationsResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.destinationsResponse, other.destinationsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - destinationsResponse, - statusCode, + return Utils.enhancedHash( + contentType, destinationsResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional destinationsResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Successful operation */ @@ -220,6 +222,7 @@ public Builder destinationsResponse(Optional des return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public ListDestinationsResponse build() { + return new ListDestinationsResponse( - contentType, - destinationsResponse, - statusCode, + contentType, destinationsResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListJobsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListJobsRequest.java index d63769ce2..16382514a 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListJobsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListJobsRequest.java @@ -17,11 +17,10 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class ListJobsRequest { +public class ListJobsRequest { /** * Filter the Jobs by connectionId. */ @@ -83,7 +82,8 @@ public class ListJobsRequest { private Optional updatedAtStart; /** - * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed + * workspaces. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=workspaceIds") private Optional> workspaceIds; @@ -126,7 +126,10 @@ public ListJobsRequest( } public ListJobsRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -212,7 +215,8 @@ public Optional updatedAtStart() { } /** - * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed + * workspaces. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -220,9 +224,10 @@ public Optional> workspaceIds() { return (Optional>) workspaceIds; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Filter the Jobs by connectionId. @@ -233,6 +238,7 @@ public ListJobsRequest withConnectionId(String connectionId) { return this; } + /** * Filter the Jobs by connectionId. */ @@ -251,6 +257,7 @@ public ListJobsRequest withCreatedAtEnd(OffsetDateTime createdAtEnd) { return this; } + /** * The end date to filter by */ @@ -269,6 +276,7 @@ public ListJobsRequest withCreatedAtStart(OffsetDateTime createdAtStart) { return this; } + /** * The start date to filter by */ @@ -287,6 +295,7 @@ public ListJobsRequest withJobType(JobTypeEnum jobType) { return this; } + /** * Filter the Jobs by jobType. */ @@ -305,6 +314,7 @@ public ListJobsRequest withLimit(int limit) { return this; } + /** * Set the limit on the number of Jobs returned. The default is 20 Jobs. */ @@ -323,6 +333,7 @@ public ListJobsRequest withOffset(int offset) { return this; } + /** * Set the offset to start at when returning Jobs. The default is 0. */ @@ -341,6 +352,7 @@ public ListJobsRequest withOrderBy(String orderBy) { return this; } + /** * The field and method to use for ordering */ @@ -359,6 +371,7 @@ public ListJobsRequest withStatus(JobStatusEnum status) { return this; } + /** * The Job status you want to filter by */ @@ -377,6 +390,7 @@ public ListJobsRequest withUpdatedAtEnd(OffsetDateTime updatedAtEnd) { return this; } + /** * The end date to filter by */ @@ -395,6 +409,7 @@ public ListJobsRequest withUpdatedAtStart(OffsetDateTime updatedAtStart) { return this; } + /** * The start date to filter by */ @@ -405,7 +420,8 @@ public ListJobsRequest withUpdatedAtStart(Optional updatedAtStar } /** - * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed + * workspaces. */ public ListJobsRequest withWorkspaceIds(List workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -413,8 +429,10 @@ public ListJobsRequest withWorkspaceIds(List workspaceIds) { return this; } + /** - * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed + * workspaces. */ public ListJobsRequest withWorkspaceIds(Optional> workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -422,7 +440,6 @@ public ListJobsRequest withWorkspaceIds(Optional> workspa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -433,33 +450,26 @@ public boolean equals(java.lang.Object o) { } ListJobsRequest other = (ListJobsRequest) o; return - Objects.deepEquals(this.connectionId, other.connectionId) && - Objects.deepEquals(this.createdAtEnd, other.createdAtEnd) && - Objects.deepEquals(this.createdAtStart, other.createdAtStart) && - Objects.deepEquals(this.jobType, other.jobType) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.offset, other.offset) && - Objects.deepEquals(this.orderBy, other.orderBy) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.updatedAtEnd, other.updatedAtEnd) && - Objects.deepEquals(this.updatedAtStart, other.updatedAtStart) && - Objects.deepEquals(this.workspaceIds, other.workspaceIds); + Utils.enhancedDeepEquals(this.connectionId, other.connectionId) && + Utils.enhancedDeepEquals(this.createdAtEnd, other.createdAtEnd) && + Utils.enhancedDeepEquals(this.createdAtStart, other.createdAtStart) && + Utils.enhancedDeepEquals(this.jobType, other.jobType) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.offset, other.offset) && + Utils.enhancedDeepEquals(this.orderBy, other.orderBy) && + Utils.enhancedDeepEquals(this.status, other.status) && + Utils.enhancedDeepEquals(this.updatedAtEnd, other.updatedAtEnd) && + Utils.enhancedDeepEquals(this.updatedAtStart, other.updatedAtStart) && + Utils.enhancedDeepEquals(this.workspaceIds, other.workspaceIds); } @Override public int hashCode() { - return Objects.hash( - connectionId, - createdAtEnd, - createdAtStart, - jobType, - limit, - offset, - orderBy, - status, - updatedAtEnd, - updatedAtStart, - workspaceIds); + return Utils.enhancedHash( + connectionId, createdAtEnd, createdAtStart, + jobType, limit, offset, + orderBy, status, updatedAtEnd, + updatedAtStart, workspaceIds); } @Override @@ -477,35 +487,37 @@ public String toString() { "updatedAtStart", updatedAtStart, "workspaceIds", workspaceIds); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional connectionId = Optional.empty(); - + private Optional createdAtEnd = Optional.empty(); - + private Optional createdAtStart = Optional.empty(); - + private Optional jobType = Optional.empty(); - + private Optional limit; - + private Optional offset; - + private Optional orderBy = Optional.empty(); - + private Optional status = Optional.empty(); - + private Optional updatedAtEnd = Optional.empty(); - + private Optional updatedAtStart = Optional.empty(); - + private Optional> workspaceIds = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Filter the Jobs by connectionId. */ @@ -524,6 +536,7 @@ public Builder connectionId(Optional connectionId) { return this; } + /** * The end date to filter by */ @@ -542,6 +555,7 @@ public Builder createdAtEnd(Optional createdAtEnd) { return this; } + /** * The start date to filter by */ @@ -560,6 +574,7 @@ public Builder createdAtStart(Optional createdAtStart) { return this; } + /** * Filter the Jobs by jobType. */ @@ -578,6 +593,7 @@ public Builder jobType(Optional jobType) { return this; } + /** * Set the limit on the number of Jobs returned. The default is 20 Jobs. */ @@ -596,6 +612,7 @@ public Builder limit(Optional limit) { return this; } + /** * Set the offset to start at when returning Jobs. The default is 0. */ @@ -614,6 +631,7 @@ public Builder offset(Optional offset) { return this; } + /** * The field and method to use for ordering */ @@ -632,6 +650,7 @@ public Builder orderBy(Optional orderBy) { return this; } + /** * The Job status you want to filter by */ @@ -650,6 +669,7 @@ public Builder status(Optional status) { return this; } + /** * The end date to filter by */ @@ -668,6 +688,7 @@ public Builder updatedAtEnd(Optional updatedAtEnd) { return this; } + /** * The start date to filter by */ @@ -686,8 +707,10 @@ public Builder updatedAtStart(Optional updatedAtStart) { return this; } + /** - * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed + * workspaces. */ public Builder workspaceIds(List workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -696,14 +719,15 @@ public Builder workspaceIds(List workspaceIds) { } /** - * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list jobs for. Empty list will retrieve all allowed + * workspaces. */ public Builder workspaceIds(Optional> workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); this.workspaceIds = workspaceIds; return this; } - + public ListJobsRequest build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); @@ -711,20 +735,15 @@ public ListJobsRequest build() { if (offset == null) { offset = _SINGLETON_VALUE_Offset.value(); } + return new ListJobsRequest( - connectionId, - createdAtEnd, - createdAtStart, - jobType, - limit, - offset, - orderBy, - status, - updatedAtEnd, - updatedAtStart, - workspaceIds); + connectionId, createdAtEnd, createdAtStart, + jobType, limit, offset, + orderBy, status, updatedAtEnd, + updatedAtStart, workspaceIds); } + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = new LazySingletonValue<>( "limit", diff --git a/src/main/java/com/airbyte/api/models/operations/ListJobsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListJobsRequestBuilder.java index a0a0d30c3..48a375c72 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListJobsRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListJobsRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListJobs; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListJobsRequestBuilder { private ListJobsRequest request; - private final SDKMethodInterfaces.MethodCallListJobs sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListJobsRequestBuilder(SDKMethodInterfaces.MethodCallListJobs sdk) { - this.sdk = sdk; + public ListJobsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListJobsRequestBuilder request(ListJobsRequest request) { @@ -22,8 +28,10 @@ public ListJobsRequestBuilder request(ListJobsRequest request) { } public ListJobsResponse call() throws Exception { + + RequestOperation operation + = new ListJobs.Sync(sdkConfiguration, _headers); - return sdk.listJobs( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListJobsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListJobsResponse.java index d00163b19..36b3c72d9 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListJobsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListJobsResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListJobsResponse implements Response { +public class ListJobsResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListJobsResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public ListJobsResponse withJobsResponse(JobsResponse jobsResponse) { return this; } + /** * List all the Jobs by connectionId. */ @@ -144,7 +146,6 @@ public ListJobsResponse withRawResponse(HttpResponse rawResponse) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } ListJobsResponse other = (ListJobsResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.jobsResponse, other.jobsResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.jobsResponse, other.jobsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - jobsResponse, - statusCode, + return Utils.enhancedHash( + contentType, jobsResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional jobsResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * List all the Jobs by connectionId. */ @@ -220,6 +222,7 @@ public Builder jobsResponse(Optional jobsResponse) { return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public ListJobsResponse build() { + return new ListJobsResponse( - contentType, - jobsResponse, - statusCode, + contentType, jobsResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserRequestBuilder.java index 4a0a41797..e5b8e80b6 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserRequestBuilder.java @@ -3,18 +3,27 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestlessOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListOrganizationsForUser; +import com.airbyte.api.utils.Headers; import java.lang.Exception; public class ListOrganizationsForUserRequestBuilder { - private final SDKMethodInterfaces.MethodCallListOrganizationsForUser sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListOrganizationsForUserRequestBuilder(SDKMethodInterfaces.MethodCallListOrganizationsForUser sdk) { - this.sdk = sdk; + public ListOrganizationsForUserRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListOrganizationsForUserResponse call() throws Exception { + + RequestlessOperation operation + = new ListOrganizationsForUser.Sync(sdkConfiguration, _headers); - return sdk.listOrganizationsForUserDirect(); + return operation.handleResponse(operation.doRequest()); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java b/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java index db4c514f3..0660e4e67 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListOrganizationsForUserResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListOrganizationsForUserResponse implements Response { +public class ListOrganizationsForUserResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListOrganizationsForUserResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public ListOrganizationsForUserResponse withOrganizationsResponse(OrganizationsR return this; } + /** * List user's organizations. */ @@ -144,7 +146,6 @@ public ListOrganizationsForUserResponse withRawResponse(HttpResponse organizationsResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * List user's organizations. */ @@ -220,6 +222,7 @@ public Builder organizationsResponse(Optional o return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public ListOrganizationsForUserResponse build() { + return new ListOrganizationsForUserResponse( - contentType, - organizationsResponse, - statusCode, + contentType, organizationsResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequest.java index 80ace4508..bd5f49af2 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequest.java @@ -9,13 +9,13 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class ListPermissionsRequest { +public class ListPermissionsRequest { /** - * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + * This is required if you want to read someone else's permissions, and you should have organization + * admin or a higher role. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=organizationId") private Optional organizationId; @@ -41,7 +41,8 @@ public ListPermissionsRequest() { } /** - * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + * This is required if you want to read someone else's permissions, and you should have organization + * admin or a higher role. */ @JsonIgnore public Optional organizationId() { @@ -56,12 +57,14 @@ public Optional userId() { return userId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + * This is required if you want to read someone else's permissions, and you should have organization + * admin or a higher role. */ public ListPermissionsRequest withOrganizationId(String organizationId) { Utils.checkNotNull(organizationId, "organizationId"); @@ -69,8 +72,10 @@ public ListPermissionsRequest withOrganizationId(String organizationId) { return this; } + /** - * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + * This is required if you want to read someone else's permissions, and you should have organization + * admin or a higher role. */ public ListPermissionsRequest withOrganizationId(Optional organizationId) { Utils.checkNotNull(organizationId, "organizationId"); @@ -87,6 +92,7 @@ public ListPermissionsRequest withUserId(String userId) { return this; } + /** * User Id in permission. */ @@ -96,7 +102,6 @@ public ListPermissionsRequest withUserId(Optional userId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -107,15 +112,14 @@ public boolean equals(java.lang.Object o) { } ListPermissionsRequest other = (ListPermissionsRequest) o; return - Objects.deepEquals(this.organizationId, other.organizationId) && - Objects.deepEquals(this.userId, other.userId); + Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && + Utils.enhancedDeepEquals(this.userId, other.userId); } @Override public int hashCode() { - return Objects.hash( - organizationId, - userId); + return Utils.enhancedHash( + organizationId, userId); } @Override @@ -124,19 +128,22 @@ public String toString() { "organizationId", organizationId, "userId", userId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional organizationId = Optional.empty(); - + private Optional userId = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + * This is required if you want to read someone else's permissions, and you should have organization + * admin or a higher role. */ public Builder organizationId(String organizationId) { Utils.checkNotNull(organizationId, "organizationId"); @@ -145,7 +152,8 @@ public Builder organizationId(String organizationId) { } /** - * This is required if you want to read someone else's permissions, and you should have organization admin or a higher role. + * This is required if you want to read someone else's permissions, and you should have organization + * admin or a higher role. */ public Builder organizationId(Optional organizationId) { Utils.checkNotNull(organizationId, "organizationId"); @@ -153,6 +161,7 @@ public Builder organizationId(Optional organizationId) { return this; } + /** * User Id in permission. */ @@ -170,11 +179,12 @@ public Builder userId(Optional userId) { this.userId = userId; return this; } - + public ListPermissionsRequest build() { + return new ListPermissionsRequest( - organizationId, - userId); + organizationId, userId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequestBuilder.java index 83ed69e84..61ee8b0f4 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListPermissionsRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListPermissions; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListPermissionsRequestBuilder { private ListPermissionsRequest request; - private final SDKMethodInterfaces.MethodCallListPermissions sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListPermissionsRequestBuilder(SDKMethodInterfaces.MethodCallListPermissions sdk) { - this.sdk = sdk; + public ListPermissionsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListPermissionsRequestBuilder request(ListPermissionsRequest request) { @@ -22,8 +28,10 @@ public ListPermissionsRequestBuilder request(ListPermissionsRequest request) { } public ListPermissionsResponse call() throws Exception { + + RequestOperation operation + = new ListPermissions.Sync(sdkConfiguration, _headers); - return sdk.listPermissions( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListPermissionsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListPermissionsResponse.java index abcd7adec..9312b7bf6 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListPermissionsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListPermissionsResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListPermissionsResponse implements Response { +public class ListPermissionsResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListPermissionsResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public ListPermissionsResponse withPermissionsResponse(PermissionsResponse permi return this; } + /** * List Permissions. */ @@ -144,7 +146,6 @@ public ListPermissionsResponse withRawResponse(HttpResponse rawResp return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } ListPermissionsResponse other = (ListPermissionsResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.permissionsResponse, other.permissionsResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.permissionsResponse, other.permissionsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - permissionsResponse, - statusCode, + return Utils.enhancedHash( + contentType, permissionsResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional permissionsResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * List Permissions. */ @@ -220,6 +222,7 @@ public Builder permissionsResponse(Optional permi return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public ListPermissionsResponse build() { + return new ListPermissionsResponse( - contentType, - permissionsResponse, - statusCode, + contentType, permissionsResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsRequest.java index c69b28a98..215795c1d 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsRequest.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class ListSourceDefinitionsRequest { @@ -28,9 +28,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ListSourceDefinitionsRequest withWorkspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); @@ -38,7 +39,6 @@ public ListSourceDefinitionsRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } ListSourceDefinitionsRequest other = (ListSourceDefinitionsRequest) o; return - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( workspaceId); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(ListSourceDefinitionsRequest.class, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public ListSourceDefinitionsRequest build() { + return new ListSourceDefinitionsRequest( workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsRequestBuilder.java index 7034d9d56..c87898849 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListSourceDefinitions; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListSourceDefinitionsRequestBuilder { private ListSourceDefinitionsRequest request; - private final SDKMethodInterfaces.MethodCallListSourceDefinitions sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListSourceDefinitionsRequestBuilder(SDKMethodInterfaces.MethodCallListSourceDefinitions sdk) { - this.sdk = sdk; + public ListSourceDefinitionsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListSourceDefinitionsRequestBuilder request(ListSourceDefinitionsRequest request) { @@ -22,8 +28,10 @@ public ListSourceDefinitionsRequestBuilder request(ListSourceDefinitionsRequest } public ListSourceDefinitionsResponse call() throws Exception { + + RequestOperation operation + = new ListSourceDefinitions.Sync(sdkConfiguration, _headers); - return sdk.listSourceDefinitions( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsResponse.java index f6b40cf37..5a317d675 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListSourceDefinitionsResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListSourceDefinitionsResponse implements Response { +public class ListSourceDefinitionsResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListSourceDefinitionsResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public ListSourceDefinitionsResponse withDefinitionsResponse(DefinitionsResponse return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public ListSourceDefinitionsResponse withRawResponse(HttpResponse r return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } ListSourceDefinitionsResponse other = (ListSourceDefinitionsResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.definitionsResponse, other.definitionsResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionsResponse, other.definitionsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - definitionsResponse, - statusCode, + return Utils.enhancedHash( + contentType, definitionsResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional definitionsResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Successful operation */ @@ -220,6 +222,7 @@ public Builder definitionsResponse(Optional defin return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public ListSourceDefinitionsResponse build() { + return new ListSourceDefinitionsResponse( - contentType, - definitionsResponse, - statusCode, + contentType, definitionsResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListSourcesRequest.java b/src/main/java/com/airbyte/api/models/operations/ListSourcesRequest.java index c2eb01038..a2ff10fe0 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListSourcesRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListSourcesRequest.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class ListSourcesRequest { +public class ListSourcesRequest { /** * Include deleted sources in the returned results. */ @@ -39,7 +38,8 @@ public class ListSourcesRequest { private Optional offset; /** - * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed + * workspaces. */ @SpeakeasyMetadata("queryParam:style=form,explode=true,name=workspaceIds") private Optional> workspaceIds; @@ -61,7 +61,8 @@ public ListSourcesRequest( } public ListSourcesRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -89,7 +90,8 @@ public Optional offset() { } /** - * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed + * workspaces. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -97,9 +99,10 @@ public Optional> workspaceIds() { return (Optional>) workspaceIds; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Include deleted sources in the returned results. @@ -110,6 +113,7 @@ public ListSourcesRequest withIncludeDeleted(boolean includeDeleted) { return this; } + /** * Include deleted sources in the returned results. */ @@ -128,6 +132,7 @@ public ListSourcesRequest withLimit(int limit) { return this; } + /** * Set the limit on the number of sources returned. The default is 20. */ @@ -146,6 +151,7 @@ public ListSourcesRequest withOffset(int offset) { return this; } + /** * Set the offset to start at when returning sources. The default is 0 */ @@ -156,7 +162,8 @@ public ListSourcesRequest withOffset(Optional offset) { } /** - * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed + * workspaces. */ public ListSourcesRequest withWorkspaceIds(List workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -164,8 +171,10 @@ public ListSourcesRequest withWorkspaceIds(List workspaceIds) { return this; } + /** - * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed + * workspaces. */ public ListSourcesRequest withWorkspaceIds(Optional> workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -173,7 +182,6 @@ public ListSourcesRequest withWorkspaceIds(Optional> work return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -184,18 +192,16 @@ public boolean equals(java.lang.Object o) { } ListSourcesRequest other = (ListSourcesRequest) o; return - Objects.deepEquals(this.includeDeleted, other.includeDeleted) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.offset, other.offset) && - Objects.deepEquals(this.workspaceIds, other.workspaceIds); + Utils.enhancedDeepEquals(this.includeDeleted, other.includeDeleted) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.offset, other.offset) && + Utils.enhancedDeepEquals(this.workspaceIds, other.workspaceIds); } @Override public int hashCode() { - return Objects.hash( - includeDeleted, - limit, - offset, + return Utils.enhancedHash( + includeDeleted, limit, offset, workspaceIds); } @@ -207,21 +213,23 @@ public String toString() { "offset", offset, "workspaceIds", workspaceIds); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional includeDeleted; - + private Optional limit; - + private Optional offset; - + private Optional> workspaceIds = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Include deleted sources in the returned results. */ @@ -240,6 +248,7 @@ public Builder includeDeleted(Optional includeDeleted) { return this; } + /** * Set the limit on the number of sources returned. The default is 20. */ @@ -258,6 +267,7 @@ public Builder limit(Optional limit) { return this; } + /** * Set the offset to start at when returning sources. The default is 0 */ @@ -276,8 +286,10 @@ public Builder offset(Optional offset) { return this; } + /** - * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed + * workspaces. */ public Builder workspaceIds(List workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -286,14 +298,15 @@ public Builder workspaceIds(List workspaceIds) { } /** - * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed workspaces. + * The UUIDs of the workspaces you wish to list sources for. Empty list will retrieve all allowed + * workspaces. */ public Builder workspaceIds(Optional> workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); this.workspaceIds = workspaceIds; return this; } - + public ListSourcesRequest build() { if (includeDeleted == null) { includeDeleted = _SINGLETON_VALUE_IncludeDeleted.value(); @@ -304,13 +317,13 @@ public ListSourcesRequest build() { if (offset == null) { offset = _SINGLETON_VALUE_Offset.value(); } + return new ListSourcesRequest( - includeDeleted, - limit, - offset, + includeDeleted, limit, offset, workspaceIds); } + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeDeleted = new LazySingletonValue<>( "includeDeleted", diff --git a/src/main/java/com/airbyte/api/models/operations/ListSourcesRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListSourcesRequestBuilder.java index 90f1532ae..b417b7b63 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListSourcesRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListSourcesRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListSources; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListSourcesRequestBuilder { private ListSourcesRequest request; - private final SDKMethodInterfaces.MethodCallListSources sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListSourcesRequestBuilder(SDKMethodInterfaces.MethodCallListSources sdk) { - this.sdk = sdk; + public ListSourcesRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListSourcesRequestBuilder request(ListSourcesRequest request) { @@ -22,8 +28,10 @@ public ListSourcesRequestBuilder request(ListSourcesRequest request) { } public ListSourcesResponse call() throws Exception { + + RequestOperation operation + = new ListSources.Sync(sdkConfiguration, _headers); - return sdk.listSources( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListSourcesResponse.java b/src/main/java/com/airbyte/api/models/operations/ListSourcesResponse.java index d63a44e27..27d5e1c52 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListSourcesResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListSourcesResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListSourcesResponse implements Response { +public class ListSourcesResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListSourcesResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public ListSourcesResponse withSourcesResponse(SourcesResponse sourcesResponse) return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public ListSourcesResponse withRawResponse(HttpResponse rawResponse return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } ListSourcesResponse other = (ListSourcesResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.sourcesResponse, other.sourcesResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.sourcesResponse, other.sourcesResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - sourcesResponse, - statusCode, + return Utils.enhancedHash( + contentType, sourcesResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional sourcesResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Successful operation */ @@ -220,6 +222,7 @@ public Builder sourcesResponse(Optional sourcesRespon return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public ListSourcesResponse build() { + return new ListSourcesResponse( - contentType, - sourcesResponse, - statusCode, + contentType, sourcesResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListTagsRequest.java b/src/main/java/com/airbyte/api/models/operations/ListTagsRequest.java index 43f10da1d..04d986a59 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListTagsRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListTagsRequest.java @@ -11,9 +11,9 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class ListTagsRequest { @SpeakeasyMetadata("queryParam:style=form,explode=true,name=workspaceIds") @@ -36,9 +36,10 @@ public Optional> workspaceIds() { return (Optional>) workspaceIds; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ListTagsRequest withWorkspaceIds(List workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); @@ -46,13 +47,13 @@ public ListTagsRequest withWorkspaceIds(List workspaceIds) { return this; } + public ListTagsRequest withWorkspaceIds(Optional> workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); this.workspaceIds = workspaceIds; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -63,12 +64,12 @@ public boolean equals(java.lang.Object o) { } ListTagsRequest other = (ListTagsRequest) o; return - Objects.deepEquals(this.workspaceIds, other.workspaceIds); + Utils.enhancedDeepEquals(this.workspaceIds, other.workspaceIds); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( workspaceIds); } @@ -77,15 +78,17 @@ public String toString() { return Utils.toString(ListTagsRequest.class, "workspaceIds", workspaceIds); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> workspaceIds = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder workspaceIds(List workspaceIds) { Utils.checkNotNull(workspaceIds, "workspaceIds"); this.workspaceIds = Optional.ofNullable(workspaceIds); @@ -97,10 +100,12 @@ public Builder workspaceIds(Optional> workspaceIds) { this.workspaceIds = workspaceIds; return this; } - + public ListTagsRequest build() { + return new ListTagsRequest( workspaceIds); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListTagsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListTagsRequestBuilder.java index 131538b27..e52c599c9 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListTagsRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListTagsRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListTags; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListTagsRequestBuilder { private ListTagsRequest request; - private final SDKMethodInterfaces.MethodCallListTags sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListTagsRequestBuilder(SDKMethodInterfaces.MethodCallListTags sdk) { - this.sdk = sdk; + public ListTagsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListTagsRequestBuilder request(ListTagsRequest request) { @@ -22,8 +28,10 @@ public ListTagsRequestBuilder request(ListTagsRequest request) { } public ListTagsResponse call() throws Exception { + + RequestOperation operation + = new ListTags.Sync(sdkConfiguration, _headers); - return sdk.listTags( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListTagsResponse.java b/src/main/java/com/airbyte/api/models/operations/ListTagsResponse.java index 95702f05c..be8552453 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListTagsResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListTagsResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListTagsResponse implements Response { +public class ListTagsResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListTagsResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, + Optional.empty()); } /** @@ -95,9 +95,10 @@ public Optional tagsResponse() { return (Optional) tagsResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -135,6 +136,7 @@ public ListTagsResponse withTagsResponse(TagsResponse tagsResponse) { return this; } + /** * List Tags. */ @@ -144,7 +146,6 @@ public ListTagsResponse withTagsResponse(Optional tagsRe return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } ListTagsResponse other = (ListTagsResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.tagsResponse, other.tagsResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.tagsResponse, other.tagsResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, + return Utils.enhancedHash( + contentType, statusCode, rawResponse, tagsResponse); } @@ -178,21 +177,23 @@ public String toString() { "rawResponse", rawResponse, "tagsResponse", tagsResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Optional tagsResponse = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -211,6 +213,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -220,6 +223,7 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } + /** * List Tags. */ @@ -237,13 +241,13 @@ public Builder tagsResponse(Optional tagsResponse) { this.tagsResponse = tagsResponse; return this; } - + public ListTagsResponse build() { + return new ListTagsResponse( - contentType, - statusCode, - rawResponse, + contentType, statusCode, rawResponse, tagsResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java index 4fc56895d..6c4c3cf8b 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequest.java @@ -11,11 +11,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class ListUsersWithinAnOrganizationRequest { +public class ListUsersWithinAnOrganizationRequest { /** * List of user emails to filter by */ @@ -28,6 +27,7 @@ public class ListUsersWithinAnOrganizationRequest { @SpeakeasyMetadata("queryParam:style=form,explode=true,name=ids") private Optional> ids; + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=organizationId") private String organizationId; @@ -72,9 +72,10 @@ public String organizationId() { return organizationId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * List of user emails to filter by @@ -85,6 +86,7 @@ public ListUsersWithinAnOrganizationRequest withEmails(List emails) { return this; } + /** * List of user emails to filter by */ @@ -103,6 +105,7 @@ public ListUsersWithinAnOrganizationRequest withIds(List ids) { return this; } + /** * List of user IDs to filter by */ @@ -118,7 +121,6 @@ public ListUsersWithinAnOrganizationRequest withOrganizationId(String organizati return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,17 +131,15 @@ public boolean equals(java.lang.Object o) { } ListUsersWithinAnOrganizationRequest other = (ListUsersWithinAnOrganizationRequest) o; return - Objects.deepEquals(this.emails, other.emails) && - Objects.deepEquals(this.ids, other.ids) && - Objects.deepEquals(this.organizationId, other.organizationId); + Utils.enhancedDeepEquals(this.emails, other.emails) && + Utils.enhancedDeepEquals(this.ids, other.ids) && + Utils.enhancedDeepEquals(this.organizationId, other.organizationId); } @Override public int hashCode() { - return Objects.hash( - emails, - ids, - organizationId); + return Utils.enhancedHash( + emails, ids, organizationId); } @Override @@ -149,19 +149,21 @@ public String toString() { "ids", ids, "organizationId", organizationId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> emails = Optional.empty(); - + private Optional> ids = Optional.empty(); - + private String organizationId; - + private Builder() { // force use of static builder() method } + /** * List of user emails to filter by */ @@ -180,6 +182,7 @@ public Builder emails(Optional> emails) { return this; } + /** * List of user IDs to filter by */ @@ -198,17 +201,18 @@ public Builder ids(Optional> ids) { return this; } + public Builder organizationId(String organizationId) { Utils.checkNotNull(organizationId, "organizationId"); this.organizationId = organizationId; return this; } - + public ListUsersWithinAnOrganizationRequest build() { + return new ListUsersWithinAnOrganizationRequest( - emails, - ids, - organizationId); + emails, ids, organizationId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequestBuilder.java index 6367f643c..b970985f8 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListUsersWithinAnOrganization; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListUsersWithinAnOrganizationRequestBuilder { private ListUsersWithinAnOrganizationRequest request; - private final SDKMethodInterfaces.MethodCallListUsersWithinAnOrganization sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListUsersWithinAnOrganizationRequestBuilder(SDKMethodInterfaces.MethodCallListUsersWithinAnOrganization sdk) { - this.sdk = sdk; + public ListUsersWithinAnOrganizationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListUsersWithinAnOrganizationRequestBuilder request(ListUsersWithinAnOrganizationRequest request) { @@ -22,8 +28,10 @@ public ListUsersWithinAnOrganizationRequestBuilder request(ListUsersWithinAnOrga } public ListUsersWithinAnOrganizationResponse call() throws Exception { + + RequestOperation operation + = new ListUsersWithinAnOrganization.Sync(sdkConfiguration, _headers); - return sdk.listUsersWithinAnOrganization( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java index 93d34d6ce..9e217ca1c 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListUsersWithinAnOrganizationResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListUsersWithinAnOrganizationResponse implements Response { +public class ListUsersWithinAnOrganizationResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListUsersWithinAnOrganizationResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, + Optional.empty()); } /** @@ -95,9 +95,10 @@ public Optional usersResponse() { return (Optional) usersResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -135,6 +136,7 @@ public ListUsersWithinAnOrganizationResponse withUsersResponse(UsersResponse use return this; } + /** * List Users. */ @@ -144,7 +146,6 @@ public ListUsersWithinAnOrganizationResponse withUsersResponse(Optional rawResponse; - + private Optional usersResponse = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -211,6 +213,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -220,6 +223,7 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } + /** * List Users. */ @@ -237,13 +241,13 @@ public Builder usersResponse(Optional usersResponse) { this.usersResponse = usersResponse; return this; } - + public ListUsersWithinAnOrganizationResponse build() { + return new ListUsersWithinAnOrganizationResponse( - contentType, - statusCode, - rawResponse, + contentType, statusCode, rawResponse, usersResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequest.java b/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequest.java index aca927764..ef9aa17d0 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequest.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class ListWorkspacesRequest { +public class ListWorkspacesRequest { /** * Include deleted workspaces in the returned results. */ @@ -61,7 +60,8 @@ public ListWorkspacesRequest( } public ListWorkspacesRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -97,9 +97,10 @@ public Optional> workspaceIds() { return (Optional>) workspaceIds; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Include deleted workspaces in the returned results. @@ -110,6 +111,7 @@ public ListWorkspacesRequest withIncludeDeleted(boolean includeDeleted) { return this; } + /** * Include deleted workspaces in the returned results. */ @@ -128,6 +130,7 @@ public ListWorkspacesRequest withLimit(int limit) { return this; } + /** * Set the limit on the number of workspaces returned. The default is 20. */ @@ -146,6 +149,7 @@ public ListWorkspacesRequest withOffset(int offset) { return this; } + /** * Set the offset to start at when returning workspaces. The default is 0 */ @@ -164,6 +168,7 @@ public ListWorkspacesRequest withWorkspaceIds(List workspaceIds) { return this; } + /** * The UUIDs of the workspaces you wish to fetch. Empty list will retrieve all allowed workspaces. */ @@ -173,7 +178,6 @@ public ListWorkspacesRequest withWorkspaceIds(Optional> w return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -184,18 +188,16 @@ public boolean equals(java.lang.Object o) { } ListWorkspacesRequest other = (ListWorkspacesRequest) o; return - Objects.deepEquals(this.includeDeleted, other.includeDeleted) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.offset, other.offset) && - Objects.deepEquals(this.workspaceIds, other.workspaceIds); + Utils.enhancedDeepEquals(this.includeDeleted, other.includeDeleted) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.offset, other.offset) && + Utils.enhancedDeepEquals(this.workspaceIds, other.workspaceIds); } @Override public int hashCode() { - return Objects.hash( - includeDeleted, - limit, - offset, + return Utils.enhancedHash( + includeDeleted, limit, offset, workspaceIds); } @@ -207,21 +209,23 @@ public String toString() { "offset", offset, "workspaceIds", workspaceIds); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional includeDeleted; - + private Optional limit; - + private Optional offset; - + private Optional> workspaceIds = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Include deleted workspaces in the returned results. */ @@ -240,6 +244,7 @@ public Builder includeDeleted(Optional includeDeleted) { return this; } + /** * Set the limit on the number of workspaces returned. The default is 20. */ @@ -258,6 +263,7 @@ public Builder limit(Optional limit) { return this; } + /** * Set the offset to start at when returning workspaces. The default is 0 */ @@ -276,6 +282,7 @@ public Builder offset(Optional offset) { return this; } + /** * The UUIDs of the workspaces you wish to fetch. Empty list will retrieve all allowed workspaces. */ @@ -293,7 +300,7 @@ public Builder workspaceIds(Optional> workspaceIds) { this.workspaceIds = workspaceIds; return this; } - + public ListWorkspacesRequest build() { if (includeDeleted == null) { includeDeleted = _SINGLETON_VALUE_IncludeDeleted.value(); @@ -304,13 +311,13 @@ public ListWorkspacesRequest build() { if (offset == null) { offset = _SINGLETON_VALUE_Offset.value(); } + return new ListWorkspacesRequest( - includeDeleted, - limit, - offset, + includeDeleted, limit, offset, workspaceIds); } + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeDeleted = new LazySingletonValue<>( "includeDeleted", diff --git a/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequestBuilder.java index 3816fb125..2b081eb6b 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/ListWorkspacesRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListWorkspaces; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class ListWorkspacesRequestBuilder { private ListWorkspacesRequest request; - private final SDKMethodInterfaces.MethodCallListWorkspaces sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public ListWorkspacesRequestBuilder(SDKMethodInterfaces.MethodCallListWorkspaces sdk) { - this.sdk = sdk; + public ListWorkspacesRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public ListWorkspacesRequestBuilder request(ListWorkspacesRequest request) { @@ -22,8 +28,10 @@ public ListWorkspacesRequestBuilder request(ListWorkspacesRequest request) { } public ListWorkspacesResponse call() throws Exception { + + RequestOperation operation + = new ListWorkspaces.Sync(sdkConfiguration, _headers); - return sdk.listWorkspaces( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/ListWorkspacesResponse.java b/src/main/java/com/airbyte/api/models/operations/ListWorkspacesResponse.java index d3e0cdaa2..fae79f0c9 100644 --- a/src/main/java/com/airbyte/api/models/operations/ListWorkspacesResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/ListWorkspacesResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class ListWorkspacesResponse implements Response { +public class ListWorkspacesResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public ListWorkspacesResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, + Optional.empty()); } /** @@ -95,9 +95,10 @@ public Optional workspacesResponse() { return (Optional) workspacesResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -135,6 +136,7 @@ public ListWorkspacesResponse withWorkspacesResponse(WorkspacesResponse workspac return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public ListWorkspacesResponse withWorkspacesResponse(Optional rawResponse; - + private Optional workspacesResponse = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -211,6 +213,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -220,6 +223,7 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } + /** * Successful operation */ @@ -237,13 +241,13 @@ public Builder workspacesResponse(Optional workspa this.workspacesResponse = workspacesResponse; return this; } - + public ListWorkspacesResponse build() { + return new ListWorkspacesResponse( - contentType, - statusCode, - rawResponse, + contentType, statusCode, rawResponse, workspacesResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequest.java b/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequest.java index 87566f3df..b1394f09b 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequest.java @@ -10,13 +10,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class PatchConnectionRequest { @SpeakeasyMetadata("request:mediaType=application/json") private ConnectionPatchRequest connectionPatchRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=connectionId") private String connectionId; @@ -40,9 +41,10 @@ public String connectionId() { return connectionId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PatchConnectionRequest withConnectionPatchRequest(ConnectionPatchRequest connectionPatchRequest) { Utils.checkNotNull(connectionPatchRequest, "connectionPatchRequest"); @@ -56,7 +58,6 @@ public PatchConnectionRequest withConnectionId(String connectionId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,15 +68,14 @@ public boolean equals(java.lang.Object o) { } PatchConnectionRequest other = (PatchConnectionRequest) o; return - Objects.deepEquals(this.connectionPatchRequest, other.connectionPatchRequest) && - Objects.deepEquals(this.connectionId, other.connectionId); + Utils.enhancedDeepEquals(this.connectionPatchRequest, other.connectionPatchRequest) && + Utils.enhancedDeepEquals(this.connectionId, other.connectionId); } @Override public int hashCode() { - return Objects.hash( - connectionPatchRequest, - connectionId); + return Utils.enhancedHash( + connectionPatchRequest, connectionId); } @Override @@ -84,33 +84,37 @@ public String toString() { "connectionPatchRequest", connectionPatchRequest, "connectionId", connectionId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private ConnectionPatchRequest connectionPatchRequest; - + private String connectionId; - + private Builder() { // force use of static builder() method } + public Builder connectionPatchRequest(ConnectionPatchRequest connectionPatchRequest) { Utils.checkNotNull(connectionPatchRequest, "connectionPatchRequest"); this.connectionPatchRequest = connectionPatchRequest; return this; } + public Builder connectionId(String connectionId) { Utils.checkNotNull(connectionId, "connectionId"); this.connectionId = connectionId; return this; } - + public PatchConnectionRequest build() { + return new PatchConnectionRequest( - connectionPatchRequest, - connectionId); + connectionPatchRequest, connectionId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequestBuilder.java index 046c0db4b..1f32489c2 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchConnectionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.PatchConnection; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class PatchConnectionRequestBuilder { private PatchConnectionRequest request; - private final SDKMethodInterfaces.MethodCallPatchConnection sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public PatchConnectionRequestBuilder(SDKMethodInterfaces.MethodCallPatchConnection sdk) { - this.sdk = sdk; + public PatchConnectionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public PatchConnectionRequestBuilder request(PatchConnectionRequest request) { @@ -22,8 +28,10 @@ public PatchConnectionRequestBuilder request(PatchConnectionRequest request) { } public PatchConnectionResponse call() throws Exception { + + RequestOperation operation + = new PatchConnection.Sync(sdkConfiguration, _headers); - return sdk.patchConnection( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/PatchConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/PatchConnectionResponse.java index 14fc19147..81d4ce56f 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchConnectionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchConnectionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class PatchConnectionResponse implements Response { +public class PatchConnectionResponse implements Response { /** * Update a Connection by the id in the path. */ @@ -59,7 +58,8 @@ public PatchConnectionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(Optional.empty(), contentType, statusCode, rawResponse); + this(Optional.empty(), contentType, statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Update a Connection by the id in the path. @@ -108,6 +109,7 @@ public PatchConnectionResponse withConnectionResponse(ConnectionResponse connect return this; } + /** * Update a Connection by the id in the path. */ @@ -144,7 +146,6 @@ public PatchConnectionResponse withRawResponse(HttpResponse rawResp return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } PatchConnectionResponse other = (PatchConnectionResponse) o; return - Objects.deepEquals(this.connectionResponse, other.connectionResponse) && - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.connectionResponse, other.connectionResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - connectionResponse, - contentType, - statusCode, + return Utils.enhancedHash( + connectionResponse, contentType, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional connectionResponse = Optional.empty(); - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * Update a Connection by the id in the path. */ @@ -211,6 +212,7 @@ public Builder connectionResponse(Optional connect return this; } + /** * HTTP response content type for this operation */ @@ -220,6 +222,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public PatchConnectionResponse build() { + return new PatchConnectionResponse( - connectionResponse, - contentType, - statusCode, + connectionResponse, contentType, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/PatchDestinationRequest.java b/src/main/java/com/airbyte/api/models/operations/PatchDestinationRequest.java index 3487a9ebd..f5fcbc0bf 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchDestinationRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchDestinationRequest.java @@ -11,14 +11,15 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class PatchDestinationRequest { @SpeakeasyMetadata("request:mediaType=application/json") private Optional destinationPatchRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=destinationId") private String destinationId; @@ -48,9 +49,10 @@ public String destinationId() { return destinationId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PatchDestinationRequest withDestinationPatchRequest(DestinationPatchRequest destinationPatchRequest) { Utils.checkNotNull(destinationPatchRequest, "destinationPatchRequest"); @@ -58,6 +60,7 @@ public PatchDestinationRequest withDestinationPatchRequest(DestinationPatchReque return this; } + public PatchDestinationRequest withDestinationPatchRequest(Optional destinationPatchRequest) { Utils.checkNotNull(destinationPatchRequest, "destinationPatchRequest"); this.destinationPatchRequest = destinationPatchRequest; @@ -70,7 +73,6 @@ public PatchDestinationRequest withDestinationId(String destinationId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,15 +83,14 @@ public boolean equals(java.lang.Object o) { } PatchDestinationRequest other = (PatchDestinationRequest) o; return - Objects.deepEquals(this.destinationPatchRequest, other.destinationPatchRequest) && - Objects.deepEquals(this.destinationId, other.destinationId); + Utils.enhancedDeepEquals(this.destinationPatchRequest, other.destinationPatchRequest) && + Utils.enhancedDeepEquals(this.destinationId, other.destinationId); } @Override public int hashCode() { - return Objects.hash( - destinationPatchRequest, - destinationId); + return Utils.enhancedHash( + destinationPatchRequest, destinationId); } @Override @@ -98,17 +99,19 @@ public String toString() { "destinationPatchRequest", destinationPatchRequest, "destinationId", destinationId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional destinationPatchRequest = Optional.empty(); - + private String destinationId; - + private Builder() { // force use of static builder() method } + public Builder destinationPatchRequest(DestinationPatchRequest destinationPatchRequest) { Utils.checkNotNull(destinationPatchRequest, "destinationPatchRequest"); this.destinationPatchRequest = Optional.ofNullable(destinationPatchRequest); @@ -121,16 +124,18 @@ public Builder destinationPatchRequest(Optional operation + = new PatchDestination.Sync(sdkConfiguration, _headers); - return sdk.patchDestination( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/PatchDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/PatchDestinationResponse.java index 83ffb6310..df5f312cf 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchDestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchDestinationResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class PatchDestinationResponse implements Response { +public class PatchDestinationResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public PatchDestinationResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public PatchDestinationResponse withDestinationResponse(DestinationResponse dest return this; } + /** * Update a Destination */ @@ -144,7 +146,6 @@ public PatchDestinationResponse withRawResponse(HttpResponse rawRes return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } PatchDestinationResponse other = (PatchDestinationResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.destinationResponse, other.destinationResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.destinationResponse, other.destinationResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - destinationResponse, - statusCode, + return Utils.enhancedHash( + contentType, destinationResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional destinationResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Update a Destination */ @@ -220,6 +222,7 @@ public Builder destinationResponse(Optional desti return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public PatchDestinationResponse build() { + return new PatchDestinationResponse( - contentType, - destinationResponse, - statusCode, + contentType, destinationResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/PatchSourceRequest.java b/src/main/java/com/airbyte/api/models/operations/PatchSourceRequest.java index d6cb8461b..442aaf0a4 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchSourceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchSourceRequest.java @@ -11,14 +11,15 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class PatchSourceRequest { @SpeakeasyMetadata("request:mediaType=application/json") private Optional sourcePatchRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sourceId") private String sourceId; @@ -48,9 +49,10 @@ public String sourceId() { return sourceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PatchSourceRequest withSourcePatchRequest(SourcePatchRequest sourcePatchRequest) { Utils.checkNotNull(sourcePatchRequest, "sourcePatchRequest"); @@ -58,6 +60,7 @@ public PatchSourceRequest withSourcePatchRequest(SourcePatchRequest sourcePatchR return this; } + public PatchSourceRequest withSourcePatchRequest(Optional sourcePatchRequest) { Utils.checkNotNull(sourcePatchRequest, "sourcePatchRequest"); this.sourcePatchRequest = sourcePatchRequest; @@ -70,7 +73,6 @@ public PatchSourceRequest withSourceId(String sourceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,15 +83,14 @@ public boolean equals(java.lang.Object o) { } PatchSourceRequest other = (PatchSourceRequest) o; return - Objects.deepEquals(this.sourcePatchRequest, other.sourcePatchRequest) && - Objects.deepEquals(this.sourceId, other.sourceId); + Utils.enhancedDeepEquals(this.sourcePatchRequest, other.sourcePatchRequest) && + Utils.enhancedDeepEquals(this.sourceId, other.sourceId); } @Override public int hashCode() { - return Objects.hash( - sourcePatchRequest, - sourceId); + return Utils.enhancedHash( + sourcePatchRequest, sourceId); } @Override @@ -98,17 +99,19 @@ public String toString() { "sourcePatchRequest", sourcePatchRequest, "sourceId", sourceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional sourcePatchRequest = Optional.empty(); - + private String sourceId; - + private Builder() { // force use of static builder() method } + public Builder sourcePatchRequest(SourcePatchRequest sourcePatchRequest) { Utils.checkNotNull(sourcePatchRequest, "sourcePatchRequest"); this.sourcePatchRequest = Optional.ofNullable(sourcePatchRequest); @@ -121,16 +124,18 @@ public Builder sourcePatchRequest(Optional sourceP return this; } + public Builder sourceId(String sourceId) { Utils.checkNotNull(sourceId, "sourceId"); this.sourceId = sourceId; return this; } - + public PatchSourceRequest build() { + return new PatchSourceRequest( - sourcePatchRequest, - sourceId); + sourcePatchRequest, sourceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/PatchSourceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/PatchSourceRequestBuilder.java index 0a40862e1..25fef1c09 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchSourceRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchSourceRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.PatchSource; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class PatchSourceRequestBuilder { private PatchSourceRequest request; - private final SDKMethodInterfaces.MethodCallPatchSource sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public PatchSourceRequestBuilder(SDKMethodInterfaces.MethodCallPatchSource sdk) { - this.sdk = sdk; + public PatchSourceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public PatchSourceRequestBuilder request(PatchSourceRequest request) { @@ -22,8 +28,10 @@ public PatchSourceRequestBuilder request(PatchSourceRequest request) { } public PatchSourceResponse call() throws Exception { + + RequestOperation operation + = new PatchSource.Sync(sdkConfiguration, _headers); - return sdk.patchSource( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/PatchSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/PatchSourceResponse.java index 23fefa624..e256ef128 100644 --- a/src/main/java/com/airbyte/api/models/operations/PatchSourceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/PatchSourceResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class PatchSourceResponse implements Response { +public class PatchSourceResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public PatchSourceResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public PatchSourceResponse withSourceResponse(SourceResponse sourceResponse) { return this; } + /** * Update a Source */ @@ -144,7 +146,6 @@ public PatchSourceResponse withRawResponse(HttpResponse rawResponse return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } PatchSourceResponse other = (PatchSourceResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.sourceResponse, other.sourceResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.sourceResponse, other.sourceResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - sourceResponse, - statusCode, + return Utils.enhancedHash( + contentType, sourceResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional sourceResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Update a Source */ @@ -220,6 +222,7 @@ public Builder sourceResponse(Optional sourceResponse) return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public PatchSourceResponse build() { + return new PatchSourceResponse( - contentType, - sourceResponse, - statusCode, + contentType, sourceResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/PutDestinationRequest.java b/src/main/java/com/airbyte/api/models/operations/PutDestinationRequest.java index 2f4a530e5..59fbe4713 100644 --- a/src/main/java/com/airbyte/api/models/operations/PutDestinationRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/PutDestinationRequest.java @@ -11,14 +11,15 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class PutDestinationRequest { @SpeakeasyMetadata("request:mediaType=application/json") private Optional destinationPutRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=destinationId") private String destinationId; @@ -48,9 +49,10 @@ public String destinationId() { return destinationId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PutDestinationRequest withDestinationPutRequest(DestinationPutRequest destinationPutRequest) { Utils.checkNotNull(destinationPutRequest, "destinationPutRequest"); @@ -58,6 +60,7 @@ public PutDestinationRequest withDestinationPutRequest(DestinationPutRequest des return this; } + public PutDestinationRequest withDestinationPutRequest(Optional destinationPutRequest) { Utils.checkNotNull(destinationPutRequest, "destinationPutRequest"); this.destinationPutRequest = destinationPutRequest; @@ -70,7 +73,6 @@ public PutDestinationRequest withDestinationId(String destinationId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,15 +83,14 @@ public boolean equals(java.lang.Object o) { } PutDestinationRequest other = (PutDestinationRequest) o; return - Objects.deepEquals(this.destinationPutRequest, other.destinationPutRequest) && - Objects.deepEquals(this.destinationId, other.destinationId); + Utils.enhancedDeepEquals(this.destinationPutRequest, other.destinationPutRequest) && + Utils.enhancedDeepEquals(this.destinationId, other.destinationId); } @Override public int hashCode() { - return Objects.hash( - destinationPutRequest, - destinationId); + return Utils.enhancedHash( + destinationPutRequest, destinationId); } @Override @@ -98,17 +99,19 @@ public String toString() { "destinationPutRequest", destinationPutRequest, "destinationId", destinationId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional destinationPutRequest = Optional.empty(); - + private String destinationId; - + private Builder() { // force use of static builder() method } + public Builder destinationPutRequest(DestinationPutRequest destinationPutRequest) { Utils.checkNotNull(destinationPutRequest, "destinationPutRequest"); this.destinationPutRequest = Optional.ofNullable(destinationPutRequest); @@ -121,16 +124,18 @@ public Builder destinationPutRequest(Optional d return this; } + public Builder destinationId(String destinationId) { Utils.checkNotNull(destinationId, "destinationId"); this.destinationId = destinationId; return this; } - + public PutDestinationRequest build() { + return new PutDestinationRequest( - destinationPutRequest, - destinationId); + destinationPutRequest, destinationId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/PutDestinationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/PutDestinationRequestBuilder.java index 811b0c5e1..e3e2a9700 100644 --- a/src/main/java/com/airbyte/api/models/operations/PutDestinationRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/PutDestinationRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.PutDestination; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class PutDestinationRequestBuilder { private PutDestinationRequest request; - private final SDKMethodInterfaces.MethodCallPutDestination sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public PutDestinationRequestBuilder(SDKMethodInterfaces.MethodCallPutDestination sdk) { - this.sdk = sdk; + public PutDestinationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public PutDestinationRequestBuilder request(PutDestinationRequest request) { @@ -22,8 +28,10 @@ public PutDestinationRequestBuilder request(PutDestinationRequest request) { } public PutDestinationResponse call() throws Exception { + + RequestOperation operation + = new PutDestination.Sync(sdkConfiguration, _headers); - return sdk.putDestination( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/PutDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/PutDestinationResponse.java index a424b5dcd..ae431175e 100644 --- a/src/main/java/com/airbyte/api/models/operations/PutDestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/PutDestinationResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class PutDestinationResponse implements Response { +public class PutDestinationResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public PutDestinationResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public PutDestinationResponse withDestinationResponse(DestinationResponse destin return this; } + /** * Update a Destination and fully overwrite it */ @@ -144,7 +146,6 @@ public PutDestinationResponse withRawResponse(HttpResponse rawRespo return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } PutDestinationResponse other = (PutDestinationResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.destinationResponse, other.destinationResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.destinationResponse, other.destinationResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - destinationResponse, - statusCode, + return Utils.enhancedHash( + contentType, destinationResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional destinationResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Update a Destination and fully overwrite it */ @@ -220,6 +222,7 @@ public Builder destinationResponse(Optional desti return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public PutDestinationResponse build() { + return new PutDestinationResponse( - contentType, - destinationResponse, - statusCode, + contentType, destinationResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/PutSourceRequest.java b/src/main/java/com/airbyte/api/models/operations/PutSourceRequest.java index 7a1960ada..dd64b40e5 100644 --- a/src/main/java/com/airbyte/api/models/operations/PutSourceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/PutSourceRequest.java @@ -11,14 +11,15 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class PutSourceRequest { @SpeakeasyMetadata("request:mediaType=application/json") private Optional sourcePutRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=sourceId") private String sourceId; @@ -48,9 +49,10 @@ public String sourceId() { return sourceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PutSourceRequest withSourcePutRequest(SourcePutRequest sourcePutRequest) { Utils.checkNotNull(sourcePutRequest, "sourcePutRequest"); @@ -58,6 +60,7 @@ public PutSourceRequest withSourcePutRequest(SourcePutRequest sourcePutRequest) return this; } + public PutSourceRequest withSourcePutRequest(Optional sourcePutRequest) { Utils.checkNotNull(sourcePutRequest, "sourcePutRequest"); this.sourcePutRequest = sourcePutRequest; @@ -70,7 +73,6 @@ public PutSourceRequest withSourceId(String sourceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,15 +83,14 @@ public boolean equals(java.lang.Object o) { } PutSourceRequest other = (PutSourceRequest) o; return - Objects.deepEquals(this.sourcePutRequest, other.sourcePutRequest) && - Objects.deepEquals(this.sourceId, other.sourceId); + Utils.enhancedDeepEquals(this.sourcePutRequest, other.sourcePutRequest) && + Utils.enhancedDeepEquals(this.sourceId, other.sourceId); } @Override public int hashCode() { - return Objects.hash( - sourcePutRequest, - sourceId); + return Utils.enhancedHash( + sourcePutRequest, sourceId); } @Override @@ -98,17 +99,19 @@ public String toString() { "sourcePutRequest", sourcePutRequest, "sourceId", sourceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional sourcePutRequest = Optional.empty(); - + private String sourceId; - + private Builder() { // force use of static builder() method } + public Builder sourcePutRequest(SourcePutRequest sourcePutRequest) { Utils.checkNotNull(sourcePutRequest, "sourcePutRequest"); this.sourcePutRequest = Optional.ofNullable(sourcePutRequest); @@ -121,16 +124,18 @@ public Builder sourcePutRequest(Optional sourcePutRe return this; } + public Builder sourceId(String sourceId) { Utils.checkNotNull(sourceId, "sourceId"); this.sourceId = sourceId; return this; } - + public PutSourceRequest build() { + return new PutSourceRequest( - sourcePutRequest, - sourceId); + sourcePutRequest, sourceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/PutSourceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/PutSourceRequestBuilder.java index b41478e11..1bdfbddc0 100644 --- a/src/main/java/com/airbyte/api/models/operations/PutSourceRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/PutSourceRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.PutSource; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class PutSourceRequestBuilder { private PutSourceRequest request; - private final SDKMethodInterfaces.MethodCallPutSource sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public PutSourceRequestBuilder(SDKMethodInterfaces.MethodCallPutSource sdk) { - this.sdk = sdk; + public PutSourceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public PutSourceRequestBuilder request(PutSourceRequest request) { @@ -22,8 +28,10 @@ public PutSourceRequestBuilder request(PutSourceRequest request) { } public PutSourceResponse call() throws Exception { + + RequestOperation operation + = new PutSource.Sync(sdkConfiguration, _headers); - return sdk.putSource( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/PutSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/PutSourceResponse.java index f1c24bd91..af9eac3e4 100644 --- a/src/main/java/com/airbyte/api/models/operations/PutSourceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/PutSourceResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class PutSourceResponse implements Response { +public class PutSourceResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public PutSourceResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public PutSourceResponse withSourceResponse(SourceResponse sourceResponse) { return this; } + /** * Update a source and fully overwrite it */ @@ -144,7 +146,6 @@ public PutSourceResponse withRawResponse(HttpResponse rawResponse) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } PutSourceResponse other = (PutSourceResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.sourceResponse, other.sourceResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.sourceResponse, other.sourceResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - sourceResponse, - statusCode, + return Utils.enhancedHash( + contentType, sourceResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional sourceResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Update a source and fully overwrite it */ @@ -220,6 +222,7 @@ public Builder sourceResponse(Optional sourceResponse) return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public PutSourceResponse build() { + return new PutSourceResponse( - contentType, - sourceResponse, - statusCode, + contentType, sourceResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/SDKMethodInterfaces.java b/src/main/java/com/airbyte/api/models/operations/SDKMethodInterfaces.java deleted file mode 100644 index ccf7f32d1..000000000 --- a/src/main/java/com/airbyte/api/models/operations/SDKMethodInterfaces.java +++ /dev/null @@ -1,301 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.airbyte.api.models.operations; - -import com.airbyte.api.models.shared.ConnectionCreateRequest; -import com.airbyte.api.models.shared.DestinationCreateRequest; -import com.airbyte.api.models.shared.InitiateOauthRequest; -import com.airbyte.api.models.shared.JobCreateRequest; -import com.airbyte.api.models.shared.PermissionCreateRequest; -import com.airbyte.api.models.shared.SourceCreateRequest; -import com.airbyte.api.models.shared.TagCreateRequest; -import com.airbyte.api.models.shared.WorkspaceCreateRequest; -import java.lang.Exception; -import java.util.Optional; - -public class SDKMethodInterfaces { - - public interface MethodCallCreateConnection { - CreateConnectionResponse createConnection( - ConnectionCreateRequest request) throws Exception; - } - - public interface MethodCallDeleteConnection { - DeleteConnectionResponse deleteConnection( - DeleteConnectionRequest request) throws Exception; - } - - public interface MethodCallGetConnection { - GetConnectionResponse getConnection( - GetConnectionRequest request) throws Exception; - } - - public interface MethodCallListConnections { - ListConnectionsResponse listConnections( - ListConnectionsRequest request) throws Exception; - } - - public interface MethodCallPatchConnection { - PatchConnectionResponse patchConnection( - PatchConnectionRequest request) throws Exception; - } - - public interface MethodCallCreateDestination { - CreateDestinationResponse createDestination( - Optional request) throws Exception; - } - - public interface MethodCallDeleteDestination { - DeleteDestinationResponse deleteDestination( - DeleteDestinationRequest request) throws Exception; - } - - public interface MethodCallGetDestination { - GetDestinationResponse getDestination( - GetDestinationRequest request) throws Exception; - } - - public interface MethodCallListDestinations { - ListDestinationsResponse listDestinations( - ListDestinationsRequest request) throws Exception; - } - - public interface MethodCallPatchDestination { - PatchDestinationResponse patchDestination( - PatchDestinationRequest request) throws Exception; - } - - public interface MethodCallPutDestination { - PutDestinationResponse putDestination( - PutDestinationRequest request) throws Exception; - } - - public interface MethodCallGetHealthCheck { - GetHealthCheckResponse getHealthCheckDirect() throws Exception; - } - - public interface MethodCallCancelJob { - CancelJobResponse cancelJob( - CancelJobRequest request) throws Exception; - } - - public interface MethodCallCreateJob { - CreateJobResponse createJob( - JobCreateRequest request) throws Exception; - } - - public interface MethodCallGetJob { - GetJobResponse getJob( - GetJobRequest request) throws Exception; - } - - public interface MethodCallListJobs { - ListJobsResponse listJobs( - ListJobsRequest request) throws Exception; - } - - public interface MethodCallListOrganizationsForUser { - ListOrganizationsForUserResponse listOrganizationsForUserDirect() throws Exception; - } - - public interface MethodCallCreatePermission { - CreatePermissionResponse createPermission( - PermissionCreateRequest request) throws Exception; - } - - public interface MethodCallDeletePermission { - DeletePermissionResponse deletePermission( - DeletePermissionRequest request) throws Exception; - } - - public interface MethodCallGetPermission { - GetPermissionResponse getPermission( - GetPermissionRequest request) throws Exception; - } - - public interface MethodCallListPermissions { - ListPermissionsResponse listPermissions( - ListPermissionsRequest request) throws Exception; - } - - public interface MethodCallUpdatePermission { - UpdatePermissionResponse updatePermission( - UpdatePermissionRequest request) throws Exception; - } - - public interface MethodCallCreateSource { - CreateSourceResponse createSource( - Optional request) throws Exception; - } - - public interface MethodCallDeleteSource { - DeleteSourceResponse deleteSource( - DeleteSourceRequest request) throws Exception; - } - - public interface MethodCallGetSource { - GetSourceResponse getSource( - GetSourceRequest request) throws Exception; - } - - public interface MethodCallInitiateOAuth { - InitiateOAuthResponse initiateOAuth( - InitiateOauthRequest request) throws Exception; - } - - public interface MethodCallListSources { - ListSourcesResponse listSources( - ListSourcesRequest request) throws Exception; - } - - public interface MethodCallPatchSource { - PatchSourceResponse patchSource( - PatchSourceRequest request) throws Exception; - } - - public interface MethodCallPutSource { - PutSourceResponse putSource( - PutSourceRequest request) throws Exception; - } - - public interface MethodCallGetStreamProperties { - GetStreamPropertiesResponse getStreamProperties( - GetStreamPropertiesRequest request) throws Exception; - } - - public interface MethodCallCreateTag { - CreateTagResponse createTag( - TagCreateRequest request) throws Exception; - } - - public interface MethodCallDeleteTag { - DeleteTagResponse deleteTag( - DeleteTagRequest request) throws Exception; - } - - public interface MethodCallGetTag { - GetTagResponse getTag( - GetTagRequest request) throws Exception; - } - - public interface MethodCallListTags { - ListTagsResponse listTags( - ListTagsRequest request) throws Exception; - } - - public interface MethodCallUpdateTag { - UpdateTagResponse updateTag( - UpdateTagRequest request) throws Exception; - } - - public interface MethodCallListUsersWithinAnOrganization { - ListUsersWithinAnOrganizationResponse listUsersWithinAnOrganization( - ListUsersWithinAnOrganizationRequest request) throws Exception; - } - - public interface MethodCallCreateOrUpdateWorkspaceOAuthCredentials { - CreateOrUpdateWorkspaceOAuthCredentialsResponse createOrUpdateWorkspaceOAuthCredentials( - CreateOrUpdateWorkspaceOAuthCredentialsRequest request) throws Exception; - } - - public interface MethodCallCreateWorkspace { - CreateWorkspaceResponse createWorkspace( - WorkspaceCreateRequest request) throws Exception; - } - - public interface MethodCallDeleteWorkspace { - DeleteWorkspaceResponse deleteWorkspace( - DeleteWorkspaceRequest request) throws Exception; - } - - public interface MethodCallGetWorkspace { - GetWorkspaceResponse getWorkspace( - GetWorkspaceRequest request) throws Exception; - } - - public interface MethodCallListWorkspaces { - ListWorkspacesResponse listWorkspaces( - ListWorkspacesRequest request) throws Exception; - } - - public interface MethodCallUpdateWorkspace { - UpdateWorkspaceResponse updateWorkspace( - UpdateWorkspaceRequest request) throws Exception; - } - - public interface MethodCallCreateDeclarativeSourceDefinition { - CreateDeclarativeSourceDefinitionResponse createDeclarativeSourceDefinition( - CreateDeclarativeSourceDefinitionRequest request) throws Exception; - } - - public interface MethodCallDeleteDeclarativeSourceDefinition { - DeleteDeclarativeSourceDefinitionResponse deleteDeclarativeSourceDefinition( - DeleteDeclarativeSourceDefinitionRequest request) throws Exception; - } - - public interface MethodCallGetDeclarativeSourceDefinition { - GetDeclarativeSourceDefinitionResponse getDeclarativeSourceDefinition( - GetDeclarativeSourceDefinitionRequest request) throws Exception; - } - - public interface MethodCallListDeclarativeSourceDefinitions { - ListDeclarativeSourceDefinitionsResponse listDeclarativeSourceDefinitions( - ListDeclarativeSourceDefinitionsRequest request) throws Exception; - } - - public interface MethodCallUpdateDeclarativeSourceDefinition { - UpdateDeclarativeSourceDefinitionResponse updateDeclarativeSourceDefinition( - UpdateDeclarativeSourceDefinitionRequest request) throws Exception; - } - - public interface MethodCallCreateDestinationDefinition { - CreateDestinationDefinitionResponse createDestinationDefinition( - CreateDestinationDefinitionRequest request) throws Exception; - } - - public interface MethodCallDeleteDestinationDefinition { - DeleteDestinationDefinitionResponse deleteDestinationDefinition( - DeleteDestinationDefinitionRequest request) throws Exception; - } - - public interface MethodCallGetDestinationDefinition { - GetDestinationDefinitionResponse getDestinationDefinition( - GetDestinationDefinitionRequest request) throws Exception; - } - - public interface MethodCallListDestinationDefinitions { - ListDestinationDefinitionsResponse listDestinationDefinitions( - ListDestinationDefinitionsRequest request) throws Exception; - } - - public interface MethodCallUpdateDestinationDefinition { - UpdateDestinationDefinitionResponse updateDestinationDefinition( - UpdateDestinationDefinitionRequest request) throws Exception; - } - - public interface MethodCallCreateSourceDefinition { - CreateSourceDefinitionResponse createSourceDefinition( - CreateSourceDefinitionRequest request) throws Exception; - } - - public interface MethodCallDeleteSourceDefinition { - DeleteSourceDefinitionResponse deleteSourceDefinition( - DeleteSourceDefinitionRequest request) throws Exception; - } - - public interface MethodCallGetSourceDefinition { - GetSourceDefinitionResponse getSourceDefinition( - GetSourceDefinitionRequest request) throws Exception; - } - - public interface MethodCallListSourceDefinitions { - ListSourceDefinitionsResponse listSourceDefinitions( - ListSourceDefinitionsRequest request) throws Exception; - } - - public interface MethodCallUpdateSourceDefinition { - UpdateSourceDefinitionResponse updateSourceDefinition( - UpdateSourceDefinitionRequest request) throws Exception; - } -} diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionRequest.java index 5e5e04a3e..16f79f09b 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionRequest.java @@ -9,16 +9,18 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class UpdateDeclarativeSourceDefinitionRequest { @SpeakeasyMetadata("request:mediaType=application/json") private com.airbyte.api.models.shared.UpdateDeclarativeSourceDefinitionRequest updateDeclarativeSourceDefinitionRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=definitionId") private String definitionId; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -50,9 +52,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public UpdateDeclarativeSourceDefinitionRequest withUpdateDeclarativeSourceDefinitionRequest(com.airbyte.api.models.shared.UpdateDeclarativeSourceDefinitionRequest updateDeclarativeSourceDefinitionRequest) { Utils.checkNotNull(updateDeclarativeSourceDefinitionRequest, "updateDeclarativeSourceDefinitionRequest"); @@ -72,7 +75,6 @@ public UpdateDeclarativeSourceDefinitionRequest withWorkspaceId(String workspace return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -83,17 +85,15 @@ public boolean equals(java.lang.Object o) { } UpdateDeclarativeSourceDefinitionRequest other = (UpdateDeclarativeSourceDefinitionRequest) o; return - Objects.deepEquals(this.updateDeclarativeSourceDefinitionRequest, other.updateDeclarativeSourceDefinitionRequest) && - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.updateDeclarativeSourceDefinitionRequest, other.updateDeclarativeSourceDefinitionRequest) && + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - updateDeclarativeSourceDefinitionRequest, - definitionId, - workspaceId); + return Utils.enhancedHash( + updateDeclarativeSourceDefinitionRequest, definitionId, workspaceId); } @Override @@ -103,42 +103,46 @@ public String toString() { "definitionId", definitionId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private com.airbyte.api.models.shared.UpdateDeclarativeSourceDefinitionRequest updateDeclarativeSourceDefinitionRequest; - + private String definitionId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder updateDeclarativeSourceDefinitionRequest(com.airbyte.api.models.shared.UpdateDeclarativeSourceDefinitionRequest updateDeclarativeSourceDefinitionRequest) { Utils.checkNotNull(updateDeclarativeSourceDefinitionRequest, "updateDeclarativeSourceDefinitionRequest"); this.updateDeclarativeSourceDefinitionRequest = updateDeclarativeSourceDefinitionRequest; return this; } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public UpdateDeclarativeSourceDefinitionRequest build() { + return new UpdateDeclarativeSourceDefinitionRequest( - updateDeclarativeSourceDefinitionRequest, - definitionId, - workspaceId); + updateDeclarativeSourceDefinitionRequest, definitionId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionRequestBuilder.java index 3d768e345..4555c1d92 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.UpdateDeclarativeSourceDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class UpdateDeclarativeSourceDefinitionRequestBuilder { private UpdateDeclarativeSourceDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallUpdateDeclarativeSourceDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public UpdateDeclarativeSourceDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallUpdateDeclarativeSourceDefinition sdk) { - this.sdk = sdk; + public UpdateDeclarativeSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public UpdateDeclarativeSourceDefinitionRequestBuilder request(UpdateDeclarativeSourceDefinitionRequest request) { @@ -22,8 +28,10 @@ public UpdateDeclarativeSourceDefinitionRequestBuilder request(UpdateDeclarative } public UpdateDeclarativeSourceDefinitionResponse call() throws Exception { + + RequestOperation operation + = new UpdateDeclarativeSourceDefinition.Sync(sdkConfiguration, _headers); - return sdk.updateDeclarativeSourceDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionResponse.java index 168e4081c..18febbf9b 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateDeclarativeSourceDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class UpdateDeclarativeSourceDefinitionResponse implements Response { +public class UpdateDeclarativeSourceDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public UpdateDeclarativeSourceDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public UpdateDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinition return this; } + /** * Success */ @@ -144,7 +146,6 @@ public UpdateDeclarativeSourceDefinitionResponse withRawResponse(HttpResponse declarativeSourceDefinitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder declarativeSourceDefinitionResponse(Optional rawResponse) { this.rawResponse = rawResponse; return this; } - + public UpdateDeclarativeSourceDefinitionResponse build() { + return new UpdateDeclarativeSourceDefinitionResponse( - contentType, - declarativeSourceDefinitionResponse, - statusCode, + contentType, declarativeSourceDefinitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionRequest.java index 71341e0e0..22940b6c3 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionRequest.java @@ -10,16 +10,18 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class UpdateDestinationDefinitionRequest { @SpeakeasyMetadata("request:mediaType=application/json") private UpdateDefinitionRequest updateDefinitionRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=definitionId") private String definitionId; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -51,9 +53,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public UpdateDestinationDefinitionRequest withUpdateDefinitionRequest(UpdateDefinitionRequest updateDefinitionRequest) { Utils.checkNotNull(updateDefinitionRequest, "updateDefinitionRequest"); @@ -73,7 +76,6 @@ public UpdateDestinationDefinitionRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,17 +86,15 @@ public boolean equals(java.lang.Object o) { } UpdateDestinationDefinitionRequest other = (UpdateDestinationDefinitionRequest) o; return - Objects.deepEquals(this.updateDefinitionRequest, other.updateDefinitionRequest) && - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.updateDefinitionRequest, other.updateDefinitionRequest) && + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - updateDefinitionRequest, - definitionId, - workspaceId); + return Utils.enhancedHash( + updateDefinitionRequest, definitionId, workspaceId); } @Override @@ -104,42 +104,46 @@ public String toString() { "definitionId", definitionId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private UpdateDefinitionRequest updateDefinitionRequest; - + private String definitionId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder updateDefinitionRequest(UpdateDefinitionRequest updateDefinitionRequest) { Utils.checkNotNull(updateDefinitionRequest, "updateDefinitionRequest"); this.updateDefinitionRequest = updateDefinitionRequest; return this; } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public UpdateDestinationDefinitionRequest build() { + return new UpdateDestinationDefinitionRequest( - updateDefinitionRequest, - definitionId, - workspaceId); + updateDefinitionRequest, definitionId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionRequestBuilder.java index 97edb8ebd..b9a258077 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.UpdateDestinationDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class UpdateDestinationDefinitionRequestBuilder { private UpdateDestinationDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallUpdateDestinationDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public UpdateDestinationDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallUpdateDestinationDefinition sdk) { - this.sdk = sdk; + public UpdateDestinationDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public UpdateDestinationDefinitionRequestBuilder request(UpdateDestinationDefinitionRequest request) { @@ -22,8 +28,10 @@ public UpdateDestinationDefinitionRequestBuilder request(UpdateDestinationDefini } public UpdateDestinationDefinitionResponse call() throws Exception { + + RequestOperation operation + = new UpdateDestinationDefinition.Sync(sdkConfiguration, _headers); - return sdk.updateDestinationDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionResponse.java index 3bea4aa9e..dc32d45c1 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateDestinationDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class UpdateDestinationDefinitionResponse implements Response { +public class UpdateDestinationDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public UpdateDestinationDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public UpdateDestinationDefinitionResponse withDefinitionResponse(DefinitionResp return this; } + /** * Success */ @@ -144,7 +146,6 @@ public UpdateDestinationDefinitionResponse withRawResponse(HttpResponse definitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder definitionResponse(Optional definit return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public UpdateDestinationDefinitionResponse build() { + return new UpdateDestinationDefinitionResponse( - contentType, - definitionResponse, - statusCode, + contentType, definitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequest.java b/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequest.java index 91a91805f..6d40583ce 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequest.java @@ -10,13 +10,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class UpdatePermissionRequest { @SpeakeasyMetadata("request:mediaType=application/json") private PermissionUpdateRequest permissionUpdateRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=permissionId") private String permissionId; @@ -40,9 +41,10 @@ public String permissionId() { return permissionId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public UpdatePermissionRequest withPermissionUpdateRequest(PermissionUpdateRequest permissionUpdateRequest) { Utils.checkNotNull(permissionUpdateRequest, "permissionUpdateRequest"); @@ -56,7 +58,6 @@ public UpdatePermissionRequest withPermissionId(String permissionId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,15 +68,14 @@ public boolean equals(java.lang.Object o) { } UpdatePermissionRequest other = (UpdatePermissionRequest) o; return - Objects.deepEquals(this.permissionUpdateRequest, other.permissionUpdateRequest) && - Objects.deepEquals(this.permissionId, other.permissionId); + Utils.enhancedDeepEquals(this.permissionUpdateRequest, other.permissionUpdateRequest) && + Utils.enhancedDeepEquals(this.permissionId, other.permissionId); } @Override public int hashCode() { - return Objects.hash( - permissionUpdateRequest, - permissionId); + return Utils.enhancedHash( + permissionUpdateRequest, permissionId); } @Override @@ -84,33 +84,37 @@ public String toString() { "permissionUpdateRequest", permissionUpdateRequest, "permissionId", permissionId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private PermissionUpdateRequest permissionUpdateRequest; - + private String permissionId; - + private Builder() { // force use of static builder() method } + public Builder permissionUpdateRequest(PermissionUpdateRequest permissionUpdateRequest) { Utils.checkNotNull(permissionUpdateRequest, "permissionUpdateRequest"); this.permissionUpdateRequest = permissionUpdateRequest; return this; } + public Builder permissionId(String permissionId) { Utils.checkNotNull(permissionId, "permissionId"); this.permissionId = permissionId; return this; } - + public UpdatePermissionRequest build() { + return new UpdatePermissionRequest( - permissionUpdateRequest, - permissionId); + permissionUpdateRequest, permissionId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequestBuilder.java index af10c4a6c..ad11df248 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdatePermissionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.UpdatePermission; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class UpdatePermissionRequestBuilder { private UpdatePermissionRequest request; - private final SDKMethodInterfaces.MethodCallUpdatePermission sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public UpdatePermissionRequestBuilder(SDKMethodInterfaces.MethodCallUpdatePermission sdk) { - this.sdk = sdk; + public UpdatePermissionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public UpdatePermissionRequestBuilder request(UpdatePermissionRequest request) { @@ -22,8 +28,10 @@ public UpdatePermissionRequestBuilder request(UpdatePermissionRequest request) { } public UpdatePermissionResponse call() throws Exception { + + RequestOperation operation + = new UpdatePermission.Sync(sdkConfiguration, _headers); - return sdk.updatePermission( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdatePermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/UpdatePermissionResponse.java index ef25d81a1..abc7ea867 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdatePermissionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdatePermissionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class UpdatePermissionResponse implements Response { +public class UpdatePermissionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public UpdatePermissionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public UpdatePermissionResponse withPermissionResponse(PermissionResponse permis return this; } + /** * Successful updated */ @@ -144,7 +146,6 @@ public UpdatePermissionResponse withRawResponse(HttpResponse rawRes return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } UpdatePermissionResponse other = (UpdatePermissionResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.permissionResponse, other.permissionResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.permissionResponse, other.permissionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - permissionResponse, - statusCode, + return Utils.enhancedHash( + contentType, permissionResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional permissionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Successful updated */ @@ -220,6 +222,7 @@ public Builder permissionResponse(Optional permiss return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public UpdatePermissionResponse build() { + return new UpdatePermissionResponse( - contentType, - permissionResponse, - statusCode, + contentType, permissionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionRequest.java b/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionRequest.java index 137a3242f..1f5eb94c8 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionRequest.java @@ -10,16 +10,18 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class UpdateSourceDefinitionRequest { @SpeakeasyMetadata("request:mediaType=application/json") private UpdateDefinitionRequest updateDefinitionRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=definitionId") private String definitionId; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -51,9 +53,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public UpdateSourceDefinitionRequest withUpdateDefinitionRequest(UpdateDefinitionRequest updateDefinitionRequest) { Utils.checkNotNull(updateDefinitionRequest, "updateDefinitionRequest"); @@ -73,7 +76,6 @@ public UpdateSourceDefinitionRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,17 +86,15 @@ public boolean equals(java.lang.Object o) { } UpdateSourceDefinitionRequest other = (UpdateSourceDefinitionRequest) o; return - Objects.deepEquals(this.updateDefinitionRequest, other.updateDefinitionRequest) && - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.updateDefinitionRequest, other.updateDefinitionRequest) && + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - updateDefinitionRequest, - definitionId, - workspaceId); + return Utils.enhancedHash( + updateDefinitionRequest, definitionId, workspaceId); } @Override @@ -104,42 +104,46 @@ public String toString() { "definitionId", definitionId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private UpdateDefinitionRequest updateDefinitionRequest; - + private String definitionId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder updateDefinitionRequest(UpdateDefinitionRequest updateDefinitionRequest) { Utils.checkNotNull(updateDefinitionRequest, "updateDefinitionRequest"); this.updateDefinitionRequest = updateDefinitionRequest; return this; } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public UpdateSourceDefinitionRequest build() { + return new UpdateSourceDefinitionRequest( - updateDefinitionRequest, - definitionId, - workspaceId); + updateDefinitionRequest, definitionId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionRequestBuilder.java index 5e5ddd96e..b0eade4a3 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.UpdateSourceDefinition; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class UpdateSourceDefinitionRequestBuilder { private UpdateSourceDefinitionRequest request; - private final SDKMethodInterfaces.MethodCallUpdateSourceDefinition sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public UpdateSourceDefinitionRequestBuilder(SDKMethodInterfaces.MethodCallUpdateSourceDefinition sdk) { - this.sdk = sdk; + public UpdateSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public UpdateSourceDefinitionRequestBuilder request(UpdateSourceDefinitionRequest request) { @@ -22,8 +28,10 @@ public UpdateSourceDefinitionRequestBuilder request(UpdateSourceDefinitionReques } public UpdateSourceDefinitionResponse call() throws Exception { + + RequestOperation operation + = new UpdateSourceDefinition.Sync(sdkConfiguration, _headers); - return sdk.updateSourceDefinition( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionResponse.java index a931b7176..46ffe84c5 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateSourceDefinitionResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class UpdateSourceDefinitionResponse implements Response { +public class UpdateSourceDefinitionResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public UpdateSourceDefinitionResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, rawResponse); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -95,9 +95,10 @@ public HttpResponse rawResponse() { return rawResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -117,6 +118,7 @@ public UpdateSourceDefinitionResponse withDefinitionResponse(DefinitionResponse return this; } + /** * Success */ @@ -144,7 +146,6 @@ public UpdateSourceDefinitionResponse withRawResponse(HttpResponse return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } UpdateSourceDefinitionResponse other = (UpdateSourceDefinitionResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.definitionResponse, other.definitionResponse) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - definitionResponse, - statusCode, + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, rawResponse); } @@ -178,21 +177,23 @@ public String toString() { "statusCode", statusCode, "rawResponse", rawResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Optional definitionResponse = Optional.empty(); - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * Success */ @@ -220,6 +222,7 @@ public Builder definitionResponse(Optional definit return this; } + /** * HTTP response status code for this operation */ @@ -229,6 +232,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -237,13 +241,13 @@ public Builder rawResponse(HttpResponse rawResponse) { this.rawResponse = rawResponse; return this; } - + public UpdateSourceDefinitionResponse build() { + return new UpdateSourceDefinitionResponse( - contentType, - definitionResponse, - statusCode, + contentType, definitionResponse, statusCode, rawResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateTagRequest.java b/src/main/java/com/airbyte/api/models/operations/UpdateTagRequest.java index b10b620bb..9a3f32a20 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateTagRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateTagRequest.java @@ -10,13 +10,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class UpdateTagRequest { @SpeakeasyMetadata("request:mediaType=application/json") private TagPatchRequest tagPatchRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=tagId") private String tagId; @@ -40,9 +41,10 @@ public String tagId() { return tagId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public UpdateTagRequest withTagPatchRequest(TagPatchRequest tagPatchRequest) { Utils.checkNotNull(tagPatchRequest, "tagPatchRequest"); @@ -56,7 +58,6 @@ public UpdateTagRequest withTagId(String tagId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,15 +68,14 @@ public boolean equals(java.lang.Object o) { } UpdateTagRequest other = (UpdateTagRequest) o; return - Objects.deepEquals(this.tagPatchRequest, other.tagPatchRequest) && - Objects.deepEquals(this.tagId, other.tagId); + Utils.enhancedDeepEquals(this.tagPatchRequest, other.tagPatchRequest) && + Utils.enhancedDeepEquals(this.tagId, other.tagId); } @Override public int hashCode() { - return Objects.hash( - tagPatchRequest, - tagId); + return Utils.enhancedHash( + tagPatchRequest, tagId); } @Override @@ -84,33 +84,37 @@ public String toString() { "tagPatchRequest", tagPatchRequest, "tagId", tagId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private TagPatchRequest tagPatchRequest; - + private String tagId; - + private Builder() { // force use of static builder() method } + public Builder tagPatchRequest(TagPatchRequest tagPatchRequest) { Utils.checkNotNull(tagPatchRequest, "tagPatchRequest"); this.tagPatchRequest = tagPatchRequest; return this; } + public Builder tagId(String tagId) { Utils.checkNotNull(tagId, "tagId"); this.tagId = tagId; return this; } - + public UpdateTagRequest build() { + return new UpdateTagRequest( - tagPatchRequest, - tagId); + tagPatchRequest, tagId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/UpdateTagRequestBuilder.java index 30bb63831..20de9e1a4 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateTagRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateTagRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.UpdateTag; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class UpdateTagRequestBuilder { private UpdateTagRequest request; - private final SDKMethodInterfaces.MethodCallUpdateTag sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public UpdateTagRequestBuilder(SDKMethodInterfaces.MethodCallUpdateTag sdk) { - this.sdk = sdk; + public UpdateTagRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public UpdateTagRequestBuilder request(UpdateTagRequest request) { @@ -22,8 +28,10 @@ public UpdateTagRequestBuilder request(UpdateTagRequest request) { } public UpdateTagResponse call() throws Exception { + + RequestOperation operation + = new UpdateTag.Sync(sdkConfiguration, _headers); - return sdk.updateTag( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateTagResponse.java b/src/main/java/com/airbyte/api/models/operations/UpdateTagResponse.java index ba3e942fe..fdd2cc57a 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateTagResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateTagResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class UpdateTagResponse implements Response { +public class UpdateTagResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public UpdateTagResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, + Optional.empty()); } /** @@ -95,9 +95,10 @@ public Optional tagResponse() { return (Optional) tagResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -135,6 +136,7 @@ public UpdateTagResponse withTagResponse(TagResponse tagResponse) { return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public UpdateTagResponse withTagResponse(Optional tagResp return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,18 +156,16 @@ public boolean equals(java.lang.Object o) { } UpdateTagResponse other = (UpdateTagResponse) o; return - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.statusCode, other.statusCode) && - Objects.deepEquals(this.rawResponse, other.rawResponse) && - Objects.deepEquals(this.tagResponse, other.tagResponse); + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.tagResponse, other.tagResponse); } @Override public int hashCode() { - return Objects.hash( - contentType, - statusCode, - rawResponse, + return Utils.enhancedHash( + contentType, statusCode, rawResponse, tagResponse); } @@ -178,21 +177,23 @@ public String toString() { "rawResponse", rawResponse, "tagResponse", tagResponse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String contentType; - + private Integer statusCode; - + private HttpResponse rawResponse; - + private Optional tagResponse = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -211,6 +213,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -220,6 +223,7 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } + /** * Successful operation */ @@ -237,13 +241,13 @@ public Builder tagResponse(Optional tagResponse) { this.tagResponse = tagResponse; return this; } - + public UpdateTagResponse build() { + return new UpdateTagResponse( - contentType, - statusCode, - rawResponse, + contentType, statusCode, rawResponse, tagResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequest.java b/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequest.java index 37daf0309..697464429 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequest.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequest.java @@ -10,13 +10,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class UpdateWorkspaceRequest { @SpeakeasyMetadata("request:mediaType=application/json") private WorkspaceUpdateRequest workspaceUpdateRequest; + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=workspaceId") private String workspaceId; @@ -40,9 +41,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public UpdateWorkspaceRequest withWorkspaceUpdateRequest(WorkspaceUpdateRequest workspaceUpdateRequest) { Utils.checkNotNull(workspaceUpdateRequest, "workspaceUpdateRequest"); @@ -56,7 +58,6 @@ public UpdateWorkspaceRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,15 +68,14 @@ public boolean equals(java.lang.Object o) { } UpdateWorkspaceRequest other = (UpdateWorkspaceRequest) o; return - Objects.deepEquals(this.workspaceUpdateRequest, other.workspaceUpdateRequest) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.workspaceUpdateRequest, other.workspaceUpdateRequest) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - workspaceUpdateRequest, - workspaceId); + return Utils.enhancedHash( + workspaceUpdateRequest, workspaceId); } @Override @@ -84,33 +84,37 @@ public String toString() { "workspaceUpdateRequest", workspaceUpdateRequest, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private WorkspaceUpdateRequest workspaceUpdateRequest; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder workspaceUpdateRequest(WorkspaceUpdateRequest workspaceUpdateRequest) { Utils.checkNotNull(workspaceUpdateRequest, "workspaceUpdateRequest"); this.workspaceUpdateRequest = workspaceUpdateRequest; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public UpdateWorkspaceRequest build() { + return new UpdateWorkspaceRequest( - workspaceUpdateRequest, - workspaceId); + workspaceUpdateRequest, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequestBuilder.java index 2084b574e..81f425dd2 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequestBuilder.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceRequestBuilder.java @@ -3,16 +3,22 @@ */ package com.airbyte.api.models.operations; +import static com.airbyte.api.operations.Operations.RequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.UpdateWorkspace; +import com.airbyte.api.utils.Headers; import com.airbyte.api.utils.Utils; import java.lang.Exception; public class UpdateWorkspaceRequestBuilder { private UpdateWorkspaceRequest request; - private final SDKMethodInterfaces.MethodCallUpdateWorkspace sdk; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); - public UpdateWorkspaceRequestBuilder(SDKMethodInterfaces.MethodCallUpdateWorkspace sdk) { - this.sdk = sdk; + public UpdateWorkspaceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; } public UpdateWorkspaceRequestBuilder request(UpdateWorkspaceRequest request) { @@ -22,8 +28,10 @@ public UpdateWorkspaceRequestBuilder request(UpdateWorkspaceRequest request) { } public UpdateWorkspaceResponse call() throws Exception { + + RequestOperation operation + = new UpdateWorkspace.Sync(sdkConfiguration, _headers); - return sdk.updateWorkspace( - request); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceResponse.java index 7bb45df7e..e0e4490c0 100644 --- a/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceResponse.java +++ b/src/main/java/com/airbyte/api/models/operations/UpdateWorkspaceResponse.java @@ -14,11 +14,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.net.http.HttpResponse; -import java.util.Objects; import java.util.Optional; -public class UpdateWorkspaceResponse implements Response { +public class UpdateWorkspaceResponse implements Response { /** * HTTP response content type for this operation */ @@ -59,7 +58,8 @@ public UpdateWorkspaceResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, Optional.empty()); + this(contentType, statusCode, rawResponse, + Optional.empty()); } /** @@ -95,9 +95,10 @@ public Optional workspaceResponse() { return (Optional) workspaceResponse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * HTTP response content type for this operation @@ -135,6 +136,7 @@ public UpdateWorkspaceResponse withWorkspaceResponse(WorkspaceResponse workspace return this; } + /** * Successful operation */ @@ -144,7 +146,6 @@ public UpdateWorkspaceResponse withWorkspaceResponse(Optional rawResponse; - + private Optional workspaceResponse = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * HTTP response content type for this operation */ @@ -202,6 +203,7 @@ public Builder contentType(String contentType) { return this; } + /** * HTTP response status code for this operation */ @@ -211,6 +213,7 @@ public Builder statusCode(int statusCode) { return this; } + /** * Raw HTTP response; suitable for custom response parsing */ @@ -220,6 +223,7 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } + /** * Successful operation */ @@ -237,13 +241,13 @@ public Builder workspaceResponse(Optional workspace this.workspaceResponse = workspaceResponse; return this; } - + public UpdateWorkspaceResponse build() { + return new UpdateWorkspaceResponse( - contentType, - statusCode, - rawResponse, + contentType, statusCode, rawResponse, workspaceResponse); } + } } diff --git a/src/main/java/com/airbyte/api/models/operations/async/CancelJobRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CancelJobRequestBuilder.java new file mode 100644 index 000000000..ab72059c1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CancelJobRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.CancelJobRequest; +import com.airbyte.api.operations.CancelJob; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CancelJobRequestBuilder { + + private CancelJobRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CancelJobRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CancelJobRequestBuilder request(CancelJobRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CancelJob.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CancelJobResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CancelJobResponse.java new file mode 100644 index 000000000..d81b37ee3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CancelJobResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.JobResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CancelJobResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Cancel a Job. + */ + private Optional jobResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CancelJobResponse( + String contentType, + Optional jobResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(jobResponse, "jobResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.jobResponse = jobResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public CancelJobResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Cancel a Job. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional jobResponse() { + return (Optional) jobResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CancelJobResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Cancel a Job. + */ + public CancelJobResponse withJobResponse(JobResponse jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = Optional.ofNullable(jobResponse); + return this; + } + + + /** + * Cancel a Job. + */ + public CancelJobResponse withJobResponse(Optional jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = jobResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CancelJobResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CancelJobResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CancelJobResponse other = (CancelJobResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.jobResponse, other.jobResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, jobResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CancelJobResponse.class, + "contentType", contentType, + "jobResponse", jobResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional jobResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Cancel a Job. + */ + public Builder jobResponse(JobResponse jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = Optional.ofNullable(jobResponse); + return this; + } + + /** + * Cancel a Job. + */ + public Builder jobResponse(Optional jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = jobResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CancelJobResponse build() { + + return new CancelJobResponse( + contentType, jobResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateConnectionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateConnectionRequestBuilder.java new file mode 100644 index 000000000..801ba1fcb --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateConnectionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.shared.ConnectionCreateRequest; +import com.airbyte.api.operations.CreateConnection; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CreateConnectionRequestBuilder { + + private ConnectionCreateRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateConnectionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateConnectionRequestBuilder request(ConnectionCreateRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CreateConnection.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateConnectionResponse.java new file mode 100644 index 000000000..594ef851e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateConnectionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.ConnectionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateConnectionResponse implements AsyncResponse { + /** + * Successful operation + */ + private Optional connectionResponse; + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreateConnectionResponse( + Optional connectionResponse, + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.connectionResponse = connectionResponse; + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public CreateConnectionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(Optional.empty(), contentType, statusCode, + rawResponse); + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional connectionResponse() { + return (Optional) connectionResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Successful operation + */ + public CreateConnectionResponse withConnectionResponse(ConnectionResponse connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = Optional.ofNullable(connectionResponse); + return this; + } + + + /** + * Successful operation + */ + public CreateConnectionResponse withConnectionResponse(Optional connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = connectionResponse; + return this; + } + + /** + * HTTP response content type for this operation + */ + public CreateConnectionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateConnectionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateConnectionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateConnectionResponse other = (CreateConnectionResponse) o; + return + Utils.enhancedDeepEquals(this.connectionResponse, other.connectionResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + connectionResponse, contentType, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateConnectionResponse.class, + "connectionResponse", connectionResponse, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional connectionResponse = Optional.empty(); + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * Successful operation + */ + public Builder connectionResponse(ConnectionResponse connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = Optional.ofNullable(connectionResponse); + return this; + } + + /** + * Successful operation + */ + public Builder connectionResponse(Optional connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = connectionResponse; + return this; + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreateConnectionResponse build() { + + return new CreateConnectionResponse( + connectionResponse, contentType, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateDeclarativeSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateDeclarativeSourceDefinitionRequestBuilder.java new file mode 100644 index 000000000..64f6fca69 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateDeclarativeSourceDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionRequest; +import com.airbyte.api.operations.CreateDeclarativeSourceDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CreateDeclarativeSourceDefinitionRequestBuilder { + + private CreateDeclarativeSourceDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateDeclarativeSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateDeclarativeSourceDefinitionRequestBuilder request(CreateDeclarativeSourceDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CreateDeclarativeSourceDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateDeclarativeSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateDeclarativeSourceDefinitionResponse.java new file mode 100644 index 000000000..9261c73e3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateDeclarativeSourceDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DeclarativeSourceDefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateDeclarativeSourceDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional declarativeSourceDefinitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreateDeclarativeSourceDefinitionResponse( + String contentType, + Optional declarativeSourceDefinitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public CreateDeclarativeSourceDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional declarativeSourceDefinitionResponse() { + return (Optional) declarativeSourceDefinitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateDeclarativeSourceDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public CreateDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinitionResponse(DeclarativeSourceDefinitionResponse declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = Optional.ofNullable(declarativeSourceDefinitionResponse); + return this; + } + + + /** + * Success + */ + public CreateDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinitionResponse(Optional declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateDeclarativeSourceDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateDeclarativeSourceDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateDeclarativeSourceDefinitionResponse other = (CreateDeclarativeSourceDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.declarativeSourceDefinitionResponse, other.declarativeSourceDefinitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, declarativeSourceDefinitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateDeclarativeSourceDefinitionResponse.class, + "contentType", contentType, + "declarativeSourceDefinitionResponse", declarativeSourceDefinitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional declarativeSourceDefinitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder declarativeSourceDefinitionResponse(DeclarativeSourceDefinitionResponse declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = Optional.ofNullable(declarativeSourceDefinitionResponse); + return this; + } + + /** + * Success + */ + public Builder declarativeSourceDefinitionResponse(Optional declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreateDeclarativeSourceDefinitionResponse build() { + + return new CreateDeclarativeSourceDefinitionResponse( + contentType, declarativeSourceDefinitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationDefinitionRequestBuilder.java new file mode 100644 index 000000000..b90c6ec1c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.CreateDestinationDefinitionRequest; +import com.airbyte.api.operations.CreateDestinationDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CreateDestinationDefinitionRequestBuilder { + + private CreateDestinationDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateDestinationDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateDestinationDefinitionRequestBuilder request(CreateDestinationDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CreateDestinationDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationDefinitionResponse.java new file mode 100644 index 000000000..6cc69a6f7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateDestinationDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional definitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreateDestinationDefinitionResponse( + String contentType, + Optional definitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(definitionResponse, "definitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.definitionResponse = definitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public CreateDestinationDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional definitionResponse() { + return (Optional) definitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateDestinationDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public CreateDestinationDefinitionResponse withDefinitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + + /** + * Success + */ + public CreateDestinationDefinitionResponse withDefinitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateDestinationDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateDestinationDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateDestinationDefinitionResponse other = (CreateDestinationDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateDestinationDefinitionResponse.class, + "contentType", contentType, + "definitionResponse", definitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional definitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder definitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + /** + * Success + */ + public Builder definitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreateDestinationDefinitionResponse build() { + + return new CreateDestinationDefinitionResponse( + contentType, definitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationRequestBuilder.java new file mode 100644 index 000000000..be801bda4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationRequestBuilder.java @@ -0,0 +1,47 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.shared.DestinationCreateRequest; +import com.airbyte.api.operations.CreateDestination; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; + +public class CreateDestinationRequestBuilder { + + private Optional request = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateDestinationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateDestinationRequestBuilder request(DestinationCreateRequest request) { + Utils.checkNotNull(request, "request"); + this.request = Optional.of(request); + return this; + } + + public CreateDestinationRequestBuilder request(Optional request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation, CreateDestinationResponse> operation + = new CreateDestination.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationResponse.java new file mode 100644 index 000000000..bd2eeef7a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateDestinationResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DestinationResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateDestinationResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Successful operation + */ + private Optional destinationResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreateDestinationResponse( + String contentType, + Optional destinationResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(destinationResponse, "destinationResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.destinationResponse = destinationResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public CreateDestinationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional destinationResponse() { + return (Optional) destinationResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateDestinationResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Successful operation + */ + public CreateDestinationResponse withDestinationResponse(DestinationResponse destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = Optional.ofNullable(destinationResponse); + return this; + } + + + /** + * Successful operation + */ + public CreateDestinationResponse withDestinationResponse(Optional destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = destinationResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateDestinationResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateDestinationResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateDestinationResponse other = (CreateDestinationResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.destinationResponse, other.destinationResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, destinationResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateDestinationResponse.class, + "contentType", contentType, + "destinationResponse", destinationResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional destinationResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Successful operation + */ + public Builder destinationResponse(DestinationResponse destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = Optional.ofNullable(destinationResponse); + return this; + } + + /** + * Successful operation + */ + public Builder destinationResponse(Optional destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = destinationResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreateDestinationResponse build() { + + return new CreateDestinationResponse( + contentType, destinationResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateJobRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateJobRequestBuilder.java new file mode 100644 index 000000000..9e7fa8e06 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateJobRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.shared.JobCreateRequest; +import com.airbyte.api.operations.CreateJob; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CreateJobRequestBuilder { + + private JobCreateRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateJobRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateJobRequestBuilder request(JobCreateRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CreateJob.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateJobResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateJobResponse.java new file mode 100644 index 000000000..93981e85e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateJobResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.JobResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateJobResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. + */ + private Optional jobResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreateJobResponse( + String contentType, + Optional jobResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(jobResponse, "jobResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.jobResponse = jobResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public CreateJobResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional jobResponse() { + return (Optional) jobResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateJobResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. + */ + public CreateJobResponse withJobResponse(JobResponse jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = Optional.ofNullable(jobResponse); + return this; + } + + + /** + * Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. + */ + public CreateJobResponse withJobResponse(Optional jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = jobResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateJobResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateJobResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateJobResponse other = (CreateJobResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.jobResponse, other.jobResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, jobResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateJobResponse.class, + "contentType", contentType, + "jobResponse", jobResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional jobResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. + */ + public Builder jobResponse(JobResponse jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = Optional.ofNullable(jobResponse); + return this; + } + + /** + * Kicks off a new Job based on the JobType. The connectionId is the resource that Job will be run for. + */ + public Builder jobResponse(Optional jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = jobResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreateJobResponse build() { + + return new CreateJobResponse( + contentType, jobResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder.java new file mode 100644 index 000000000..2d0b962e4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.CreateOrUpdateOrganizationOAuthCredentialsRequest; +import com.airbyte.api.operations.CreateOrUpdateOrganizationOAuthCredentials; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder { + + private CreateOrUpdateOrganizationOAuthCredentialsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateOrUpdateOrganizationOAuthCredentialsRequestBuilder request(CreateOrUpdateOrganizationOAuthCredentialsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CreateOrUpdateOrganizationOAuthCredentials.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateOrganizationOAuthCredentialsResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateOrganizationOAuthCredentialsResponse.java new file mode 100644 index 000000000..ebc2bbc44 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateOrganizationOAuthCredentialsResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class CreateOrUpdateOrganizationOAuthCredentialsResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreateOrUpdateOrganizationOAuthCredentialsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateOrUpdateOrganizationOAuthCredentialsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateOrUpdateOrganizationOAuthCredentialsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateOrUpdateOrganizationOAuthCredentialsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateOrUpdateOrganizationOAuthCredentialsResponse other = (CreateOrUpdateOrganizationOAuthCredentialsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateOrUpdateOrganizationOAuthCredentialsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreateOrUpdateOrganizationOAuthCredentialsResponse build() { + + return new CreateOrUpdateOrganizationOAuthCredentialsResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder.java new file mode 100644 index 000000000..32ec29c48 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsRequest; +import com.airbyte.api.operations.CreateOrUpdateWorkspaceOAuthCredentials; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder { + + private CreateOrUpdateWorkspaceOAuthCredentialsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateOrUpdateWorkspaceOAuthCredentialsRequestBuilder request(CreateOrUpdateWorkspaceOAuthCredentialsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CreateOrUpdateWorkspaceOAuthCredentials.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java new file mode 100644 index 000000000..eda850f03 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateOrUpdateWorkspaceOAuthCredentialsResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class CreateOrUpdateWorkspaceOAuthCredentialsResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreateOrUpdateWorkspaceOAuthCredentialsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateOrUpdateWorkspaceOAuthCredentialsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateOrUpdateWorkspaceOAuthCredentialsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateOrUpdateWorkspaceOAuthCredentialsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateOrUpdateWorkspaceOAuthCredentialsResponse other = (CreateOrUpdateWorkspaceOAuthCredentialsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateOrUpdateWorkspaceOAuthCredentialsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreateOrUpdateWorkspaceOAuthCredentialsResponse build() { + + return new CreateOrUpdateWorkspaceOAuthCredentialsResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreatePermissionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreatePermissionRequestBuilder.java new file mode 100644 index 000000000..0b41b292a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreatePermissionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.shared.PermissionCreateRequest; +import com.airbyte.api.operations.CreatePermission; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CreatePermissionRequestBuilder { + + private PermissionCreateRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreatePermissionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreatePermissionRequestBuilder request(PermissionCreateRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CreatePermission.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreatePermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreatePermissionResponse.java new file mode 100644 index 000000000..3f5befdb9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreatePermissionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.PermissionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreatePermissionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Successful operation + */ + private Optional permissionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreatePermissionResponse( + String contentType, + Optional permissionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(permissionResponse, "permissionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.permissionResponse = permissionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public CreatePermissionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional permissionResponse() { + return (Optional) permissionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreatePermissionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Successful operation + */ + public CreatePermissionResponse withPermissionResponse(PermissionResponse permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = Optional.ofNullable(permissionResponse); + return this; + } + + + /** + * Successful operation + */ + public CreatePermissionResponse withPermissionResponse(Optional permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = permissionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreatePermissionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreatePermissionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreatePermissionResponse other = (CreatePermissionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.permissionResponse, other.permissionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, permissionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreatePermissionResponse.class, + "contentType", contentType, + "permissionResponse", permissionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional permissionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Successful operation + */ + public Builder permissionResponse(PermissionResponse permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = Optional.ofNullable(permissionResponse); + return this; + } + + /** + * Successful operation + */ + public Builder permissionResponse(Optional permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = permissionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreatePermissionResponse build() { + + return new CreatePermissionResponse( + contentType, permissionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateSourceDefinitionRequestBuilder.java new file mode 100644 index 000000000..950413067 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateSourceDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.CreateSourceDefinitionRequest; +import com.airbyte.api.operations.CreateSourceDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CreateSourceDefinitionRequestBuilder { + + private CreateSourceDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateSourceDefinitionRequestBuilder request(CreateSourceDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CreateSourceDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateSourceDefinitionResponse.java new file mode 100644 index 000000000..4f75e27be --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateSourceDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateSourceDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional definitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreateSourceDefinitionResponse( + String contentType, + Optional definitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(definitionResponse, "definitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.definitionResponse = definitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public CreateSourceDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional definitionResponse() { + return (Optional) definitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateSourceDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public CreateSourceDefinitionResponse withDefinitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + + /** + * Success + */ + public CreateSourceDefinitionResponse withDefinitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateSourceDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateSourceDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSourceDefinitionResponse other = (CreateSourceDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateSourceDefinitionResponse.class, + "contentType", contentType, + "definitionResponse", definitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional definitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder definitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + /** + * Success + */ + public Builder definitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreateSourceDefinitionResponse build() { + + return new CreateSourceDefinitionResponse( + contentType, definitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateSourceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateSourceRequestBuilder.java new file mode 100644 index 000000000..a9c778e32 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateSourceRequestBuilder.java @@ -0,0 +1,47 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.shared.SourceCreateRequest; +import com.airbyte.api.operations.CreateSource; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; + +public class CreateSourceRequestBuilder { + + private Optional request = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateSourceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateSourceRequestBuilder request(SourceCreateRequest request) { + Utils.checkNotNull(request, "request"); + this.request = Optional.of(request); + return this; + } + + public CreateSourceRequestBuilder request(Optional request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation, CreateSourceResponse> operation + = new CreateSource.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateSourceResponse.java new file mode 100644 index 000000000..e48b79f68 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateSourceResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.SourceResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateSourceResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Successful operation + */ + private Optional sourceResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public CreateSourceResponse( + String contentType, + Optional sourceResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(sourceResponse, "sourceResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.sourceResponse = sourceResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public CreateSourceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional sourceResponse() { + return (Optional) sourceResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateSourceResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Successful operation + */ + public CreateSourceResponse withSourceResponse(SourceResponse sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = Optional.ofNullable(sourceResponse); + return this; + } + + + /** + * Successful operation + */ + public CreateSourceResponse withSourceResponse(Optional sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = sourceResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateSourceResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateSourceResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSourceResponse other = (CreateSourceResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.sourceResponse, other.sourceResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, sourceResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateSourceResponse.class, + "contentType", contentType, + "sourceResponse", sourceResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional sourceResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Successful operation + */ + public Builder sourceResponse(SourceResponse sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = Optional.ofNullable(sourceResponse); + return this; + } + + /** + * Successful operation + */ + public Builder sourceResponse(Optional sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = sourceResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public CreateSourceResponse build() { + + return new CreateSourceResponse( + contentType, sourceResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateTagRequestBuilder.java new file mode 100644 index 000000000..93b837037 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateTagRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.shared.TagCreateRequest; +import com.airbyte.api.operations.CreateTag; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CreateTagRequestBuilder { + + private TagCreateRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateTagRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateTagRequestBuilder request(TagCreateRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CreateTag.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateTagResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateTagResponse.java new file mode 100644 index 000000000..a2d7379f3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateTagResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.TagResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateTagResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful operation + */ + private Optional tagResponse; + + @JsonCreator + public CreateTagResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional tagResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(tagResponse, "tagResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.tagResponse = tagResponse; + } + + public CreateTagResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional tagResponse() { + return (Optional) tagResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateTagResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateTagResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateTagResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public CreateTagResponse withTagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + + /** + * Successful operation + */ + public CreateTagResponse withTagResponse(Optional tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateTagResponse other = (CreateTagResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.tagResponse, other.tagResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + tagResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateTagResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "tagResponse", tagResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional tagResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful operation + */ + public Builder tagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + /** + * Successful operation + */ + public Builder tagResponse(Optional tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + public CreateTagResponse build() { + + return new CreateTagResponse( + contentType, statusCode, rawResponse, + tagResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateWorkspaceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/CreateWorkspaceRequestBuilder.java new file mode 100644 index 000000000..57fd93d37 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateWorkspaceRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.shared.WorkspaceCreateRequest; +import com.airbyte.api.operations.CreateWorkspace; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class CreateWorkspaceRequestBuilder { + + private WorkspaceCreateRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public CreateWorkspaceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CreateWorkspaceRequestBuilder request(WorkspaceCreateRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new CreateWorkspace.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/CreateWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/async/CreateWorkspaceResponse.java new file mode 100644 index 000000000..39ba3eec8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/CreateWorkspaceResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.WorkspaceResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class CreateWorkspaceResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful operation + */ + private Optional workspaceResponse; + + @JsonCreator + public CreateWorkspaceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional workspaceResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.workspaceResponse = workspaceResponse; + } + + public CreateWorkspaceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional workspaceResponse() { + return (Optional) workspaceResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public CreateWorkspaceResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public CreateWorkspaceResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public CreateWorkspaceResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public CreateWorkspaceResponse withWorkspaceResponse(WorkspaceResponse workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = Optional.ofNullable(workspaceResponse); + return this; + } + + + /** + * Successful operation + */ + public CreateWorkspaceResponse withWorkspaceResponse(Optional workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = workspaceResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWorkspaceResponse other = (CreateWorkspaceResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.workspaceResponse, other.workspaceResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + workspaceResponse); + } + + @Override + public String toString() { + return Utils.toString(CreateWorkspaceResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "workspaceResponse", workspaceResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional workspaceResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful operation + */ + public Builder workspaceResponse(WorkspaceResponse workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = Optional.ofNullable(workspaceResponse); + return this; + } + + /** + * Successful operation + */ + public Builder workspaceResponse(Optional workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = workspaceResponse; + return this; + } + + public CreateWorkspaceResponse build() { + + return new CreateWorkspaceResponse( + contentType, statusCode, rawResponse, + workspaceResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteConnectionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteConnectionRequestBuilder.java new file mode 100644 index 000000000..f14688c14 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteConnectionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.DeleteConnectionRequest; +import com.airbyte.api.operations.DeleteConnection; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class DeleteConnectionRequestBuilder { + + private DeleteConnectionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteConnectionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteConnectionRequestBuilder request(DeleteConnectionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new DeleteConnection.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteConnectionResponse.java new file mode 100644 index 000000000..4956f0d6f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteConnectionResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class DeleteConnectionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public DeleteConnectionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteConnectionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteConnectionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteConnectionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteConnectionResponse other = (DeleteConnectionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(DeleteConnectionResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public DeleteConnectionResponse build() { + + return new DeleteConnectionResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteDeclarativeSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteDeclarativeSourceDefinitionRequestBuilder.java new file mode 100644 index 000000000..0a9c1c5c3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteDeclarativeSourceDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.DeleteDeclarativeSourceDefinitionRequest; +import com.airbyte.api.operations.DeleteDeclarativeSourceDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class DeleteDeclarativeSourceDefinitionRequestBuilder { + + private DeleteDeclarativeSourceDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteDeclarativeSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteDeclarativeSourceDefinitionRequestBuilder request(DeleteDeclarativeSourceDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new DeleteDeclarativeSourceDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteDeclarativeSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteDeclarativeSourceDefinitionResponse.java new file mode 100644 index 000000000..07512efae --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteDeclarativeSourceDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DeclarativeSourceDefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class DeleteDeclarativeSourceDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional declarativeSourceDefinitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public DeleteDeclarativeSourceDefinitionResponse( + String contentType, + Optional declarativeSourceDefinitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public DeleteDeclarativeSourceDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional declarativeSourceDefinitionResponse() { + return (Optional) declarativeSourceDefinitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteDeclarativeSourceDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public DeleteDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinitionResponse(DeclarativeSourceDefinitionResponse declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = Optional.ofNullable(declarativeSourceDefinitionResponse); + return this; + } + + + /** + * Success + */ + public DeleteDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinitionResponse(Optional declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteDeclarativeSourceDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteDeclarativeSourceDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteDeclarativeSourceDefinitionResponse other = (DeleteDeclarativeSourceDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.declarativeSourceDefinitionResponse, other.declarativeSourceDefinitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, declarativeSourceDefinitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(DeleteDeclarativeSourceDefinitionResponse.class, + "contentType", contentType, + "declarativeSourceDefinitionResponse", declarativeSourceDefinitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional declarativeSourceDefinitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder declarativeSourceDefinitionResponse(DeclarativeSourceDefinitionResponse declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = Optional.ofNullable(declarativeSourceDefinitionResponse); + return this; + } + + /** + * Success + */ + public Builder declarativeSourceDefinitionResponse(Optional declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public DeleteDeclarativeSourceDefinitionResponse build() { + + return new DeleteDeclarativeSourceDefinitionResponse( + contentType, declarativeSourceDefinitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationDefinitionRequestBuilder.java new file mode 100644 index 000000000..0615a772b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.DeleteDestinationDefinitionRequest; +import com.airbyte.api.operations.DeleteDestinationDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class DeleteDestinationDefinitionRequestBuilder { + + private DeleteDestinationDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteDestinationDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteDestinationDefinitionRequestBuilder request(DeleteDestinationDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new DeleteDestinationDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationDefinitionResponse.java new file mode 100644 index 000000000..b018d5cfa --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class DeleteDestinationDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional definitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public DeleteDestinationDefinitionResponse( + String contentType, + Optional definitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(definitionResponse, "definitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.definitionResponse = definitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public DeleteDestinationDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional definitionResponse() { + return (Optional) definitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteDestinationDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public DeleteDestinationDefinitionResponse withDefinitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + + /** + * Success + */ + public DeleteDestinationDefinitionResponse withDefinitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteDestinationDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteDestinationDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteDestinationDefinitionResponse other = (DeleteDestinationDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(DeleteDestinationDefinitionResponse.class, + "contentType", contentType, + "definitionResponse", definitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional definitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder definitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + /** + * Success + */ + public Builder definitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public DeleteDestinationDefinitionResponse build() { + + return new DeleteDestinationDefinitionResponse( + contentType, definitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationRequestBuilder.java new file mode 100644 index 000000000..625ec8204 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.DeleteDestinationRequest; +import com.airbyte.api.operations.DeleteDestination; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class DeleteDestinationRequestBuilder { + + private DeleteDestinationRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteDestinationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteDestinationRequestBuilder request(DeleteDestinationRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new DeleteDestination.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationResponse.java new file mode 100644 index 000000000..215e5633c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteDestinationResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class DeleteDestinationResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public DeleteDestinationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteDestinationResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteDestinationResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteDestinationResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteDestinationResponse other = (DeleteDestinationResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(DeleteDestinationResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public DeleteDestinationResponse build() { + + return new DeleteDestinationResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeletePermissionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/DeletePermissionRequestBuilder.java new file mode 100644 index 000000000..083b4ce0d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeletePermissionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.DeletePermissionRequest; +import com.airbyte.api.operations.DeletePermission; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class DeletePermissionRequestBuilder { + + private DeletePermissionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeletePermissionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeletePermissionRequestBuilder request(DeletePermissionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new DeletePermission.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeletePermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/DeletePermissionResponse.java new file mode 100644 index 000000000..faf167ae1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeletePermissionResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class DeletePermissionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public DeletePermissionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeletePermissionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeletePermissionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeletePermissionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeletePermissionResponse other = (DeletePermissionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(DeletePermissionResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public DeletePermissionResponse build() { + + return new DeletePermissionResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceDefinitionRequestBuilder.java new file mode 100644 index 000000000..c1cffbdab --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.DeleteSourceDefinitionRequest; +import com.airbyte.api.operations.DeleteSourceDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class DeleteSourceDefinitionRequestBuilder { + + private DeleteSourceDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteSourceDefinitionRequestBuilder request(DeleteSourceDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new DeleteSourceDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceDefinitionResponse.java new file mode 100644 index 000000000..c3607a5c5 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class DeleteSourceDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional definitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public DeleteSourceDefinitionResponse( + String contentType, + Optional definitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(definitionResponse, "definitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.definitionResponse = definitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public DeleteSourceDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional definitionResponse() { + return (Optional) definitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteSourceDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public DeleteSourceDefinitionResponse withDefinitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + + /** + * Success + */ + public DeleteSourceDefinitionResponse withDefinitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteSourceDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteSourceDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSourceDefinitionResponse other = (DeleteSourceDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(DeleteSourceDefinitionResponse.class, + "contentType", contentType, + "definitionResponse", definitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional definitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder definitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + /** + * Success + */ + public Builder definitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public DeleteSourceDefinitionResponse build() { + + return new DeleteSourceDefinitionResponse( + contentType, definitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceRequestBuilder.java new file mode 100644 index 000000000..d7d8b874d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.DeleteSourceRequest; +import com.airbyte.api.operations.DeleteSource; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class DeleteSourceRequestBuilder { + + private DeleteSourceRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteSourceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteSourceRequestBuilder request(DeleteSourceRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new DeleteSource.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceResponse.java new file mode 100644 index 000000000..b3753f738 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteSourceResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class DeleteSourceResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public DeleteSourceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteSourceResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteSourceResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteSourceResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSourceResponse other = (DeleteSourceResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(DeleteSourceResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public DeleteSourceResponse build() { + + return new DeleteSourceResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteTagRequestBuilder.java new file mode 100644 index 000000000..a9b84ce04 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteTagRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.DeleteTagRequest; +import com.airbyte.api.operations.DeleteTag; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class DeleteTagRequestBuilder { + + private DeleteTagRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteTagRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteTagRequestBuilder request(DeleteTagRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new DeleteTag.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteTagResponse.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteTagResponse.java new file mode 100644 index 000000000..e4139d01e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteTagResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class DeleteTagResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public DeleteTagResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteTagResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteTagResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteTagResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteTagResponse other = (DeleteTagResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(DeleteTagResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public DeleteTagResponse build() { + + return new DeleteTagResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteWorkspaceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteWorkspaceRequestBuilder.java new file mode 100644 index 000000000..02991732d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteWorkspaceRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.DeleteWorkspaceRequest; +import com.airbyte.api.operations.DeleteWorkspace; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class DeleteWorkspaceRequestBuilder { + + private DeleteWorkspaceRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public DeleteWorkspaceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public DeleteWorkspaceRequestBuilder request(DeleteWorkspaceRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new DeleteWorkspace.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/DeleteWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/async/DeleteWorkspaceResponse.java new file mode 100644 index 000000000..8ad903c46 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/DeleteWorkspaceResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class DeleteWorkspaceResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public DeleteWorkspaceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public DeleteWorkspaceResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public DeleteWorkspaceResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public DeleteWorkspaceResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteWorkspaceResponse other = (DeleteWorkspaceResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(DeleteWorkspaceResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public DeleteWorkspaceResponse build() { + + return new DeleteWorkspaceResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetConnectionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetConnectionRequestBuilder.java new file mode 100644 index 000000000..7a2e58b4b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetConnectionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetConnectionRequest; +import com.airbyte.api.operations.GetConnection; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetConnectionRequestBuilder { + + private GetConnectionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetConnectionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetConnectionRequestBuilder request(GetConnectionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetConnection.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetConnectionResponse.java new file mode 100644 index 000000000..52759eb59 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetConnectionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.ConnectionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetConnectionResponse implements AsyncResponse { + /** + * Get a Connection by the id in the path. + */ + private Optional connectionResponse; + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetConnectionResponse( + Optional connectionResponse, + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.connectionResponse = connectionResponse; + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetConnectionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(Optional.empty(), contentType, statusCode, + rawResponse); + } + + /** + * Get a Connection by the id in the path. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional connectionResponse() { + return (Optional) connectionResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Get a Connection by the id in the path. + */ + public GetConnectionResponse withConnectionResponse(ConnectionResponse connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = Optional.ofNullable(connectionResponse); + return this; + } + + + /** + * Get a Connection by the id in the path. + */ + public GetConnectionResponse withConnectionResponse(Optional connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = connectionResponse; + return this; + } + + /** + * HTTP response content type for this operation + */ + public GetConnectionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetConnectionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetConnectionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetConnectionResponse other = (GetConnectionResponse) o; + return + Utils.enhancedDeepEquals(this.connectionResponse, other.connectionResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + connectionResponse, contentType, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetConnectionResponse.class, + "connectionResponse", connectionResponse, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional connectionResponse = Optional.empty(); + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * Get a Connection by the id in the path. + */ + public Builder connectionResponse(ConnectionResponse connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = Optional.ofNullable(connectionResponse); + return this; + } + + /** + * Get a Connection by the id in the path. + */ + public Builder connectionResponse(Optional connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = connectionResponse; + return this; + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetConnectionResponse build() { + + return new GetConnectionResponse( + connectionResponse, contentType, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetDeclarativeSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetDeclarativeSourceDefinitionRequestBuilder.java new file mode 100644 index 000000000..ff0807f8d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetDeclarativeSourceDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetDeclarativeSourceDefinitionRequest; +import com.airbyte.api.operations.GetDeclarativeSourceDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetDeclarativeSourceDefinitionRequestBuilder { + + private GetDeclarativeSourceDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetDeclarativeSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetDeclarativeSourceDefinitionRequestBuilder request(GetDeclarativeSourceDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetDeclarativeSourceDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetDeclarativeSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetDeclarativeSourceDefinitionResponse.java new file mode 100644 index 000000000..ab6a38418 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetDeclarativeSourceDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DeclarativeSourceDefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetDeclarativeSourceDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional declarativeSourceDefinitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetDeclarativeSourceDefinitionResponse( + String contentType, + Optional declarativeSourceDefinitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetDeclarativeSourceDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional declarativeSourceDefinitionResponse() { + return (Optional) declarativeSourceDefinitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetDeclarativeSourceDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public GetDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinitionResponse(DeclarativeSourceDefinitionResponse declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = Optional.ofNullable(declarativeSourceDefinitionResponse); + return this; + } + + + /** + * Success + */ + public GetDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinitionResponse(Optional declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetDeclarativeSourceDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetDeclarativeSourceDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetDeclarativeSourceDefinitionResponse other = (GetDeclarativeSourceDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.declarativeSourceDefinitionResponse, other.declarativeSourceDefinitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, declarativeSourceDefinitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetDeclarativeSourceDefinitionResponse.class, + "contentType", contentType, + "declarativeSourceDefinitionResponse", declarativeSourceDefinitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional declarativeSourceDefinitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder declarativeSourceDefinitionResponse(DeclarativeSourceDefinitionResponse declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = Optional.ofNullable(declarativeSourceDefinitionResponse); + return this; + } + + /** + * Success + */ + public Builder declarativeSourceDefinitionResponse(Optional declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetDeclarativeSourceDefinitionResponse build() { + + return new GetDeclarativeSourceDefinitionResponse( + contentType, declarativeSourceDefinitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetDestinationDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetDestinationDefinitionRequestBuilder.java new file mode 100644 index 000000000..a8957a1ad --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetDestinationDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetDestinationDefinitionRequest; +import com.airbyte.api.operations.GetDestinationDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetDestinationDefinitionRequestBuilder { + + private GetDestinationDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetDestinationDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetDestinationDefinitionRequestBuilder request(GetDestinationDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetDestinationDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetDestinationDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetDestinationDefinitionResponse.java new file mode 100644 index 000000000..8b96b6a59 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetDestinationDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetDestinationDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional definitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetDestinationDefinitionResponse( + String contentType, + Optional definitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(definitionResponse, "definitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.definitionResponse = definitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetDestinationDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional definitionResponse() { + return (Optional) definitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetDestinationDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public GetDestinationDefinitionResponse withDefinitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + + /** + * Success + */ + public GetDestinationDefinitionResponse withDefinitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetDestinationDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetDestinationDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetDestinationDefinitionResponse other = (GetDestinationDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetDestinationDefinitionResponse.class, + "contentType", contentType, + "definitionResponse", definitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional definitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder definitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + /** + * Success + */ + public Builder definitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetDestinationDefinitionResponse build() { + + return new GetDestinationDefinitionResponse( + contentType, definitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetDestinationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetDestinationRequestBuilder.java new file mode 100644 index 000000000..c537f7dca --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetDestinationRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetDestinationRequest; +import com.airbyte.api.operations.GetDestination; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetDestinationRequestBuilder { + + private GetDestinationRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetDestinationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetDestinationRequestBuilder request(GetDestinationRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetDestination.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetDestinationResponse.java new file mode 100644 index 000000000..ddd1fbe84 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetDestinationResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DestinationResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetDestinationResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Get a Destination by the id in the path. + */ + private Optional destinationResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetDestinationResponse( + String contentType, + Optional destinationResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(destinationResponse, "destinationResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.destinationResponse = destinationResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetDestinationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Get a Destination by the id in the path. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional destinationResponse() { + return (Optional) destinationResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetDestinationResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Get a Destination by the id in the path. + */ + public GetDestinationResponse withDestinationResponse(DestinationResponse destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = Optional.ofNullable(destinationResponse); + return this; + } + + + /** + * Get a Destination by the id in the path. + */ + public GetDestinationResponse withDestinationResponse(Optional destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = destinationResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetDestinationResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetDestinationResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetDestinationResponse other = (GetDestinationResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.destinationResponse, other.destinationResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, destinationResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetDestinationResponse.class, + "contentType", contentType, + "destinationResponse", destinationResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional destinationResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Get a Destination by the id in the path. + */ + public Builder destinationResponse(DestinationResponse destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = Optional.ofNullable(destinationResponse); + return this; + } + + /** + * Get a Destination by the id in the path. + */ + public Builder destinationResponse(Optional destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = destinationResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetDestinationResponse build() { + + return new GetDestinationResponse( + contentType, destinationResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetHealthCheckRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetHealthCheckRequestBuilder.java new file mode 100644 index 000000000..3de303dd8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetHealthCheckRequestBuilder.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestlessOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.GetHealthCheck; +import com.airbyte.api.utils.Headers; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetHealthCheckRequestBuilder { + + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetHealthCheckRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestlessOperation operation + = new GetHealthCheck.Async(sdkConfiguration, _headers); + + return operation.doRequest() + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetHealthCheckResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetHealthCheckResponse.java new file mode 100644 index 000000000..52fdf3b2a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetHealthCheckResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class GetHealthCheckResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetHealthCheckResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetHealthCheckResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetHealthCheckResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetHealthCheckResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetHealthCheckResponse other = (GetHealthCheckResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetHealthCheckResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetHealthCheckResponse build() { + + return new GetHealthCheckResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetJobRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetJobRequestBuilder.java new file mode 100644 index 000000000..a2c6c4d2b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetJobRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetJobRequest; +import com.airbyte.api.operations.GetJob; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetJobRequestBuilder { + + private GetJobRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetJobRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetJobRequestBuilder request(GetJobRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetJob.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetJobResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetJobResponse.java new file mode 100644 index 000000000..f42965fcd --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetJobResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.JobResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetJobResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Get a Job by the id in the path. + */ + private Optional jobResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetJobResponse( + String contentType, + Optional jobResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(jobResponse, "jobResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.jobResponse = jobResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetJobResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Get a Job by the id in the path. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional jobResponse() { + return (Optional) jobResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetJobResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Get a Job by the id in the path. + */ + public GetJobResponse withJobResponse(JobResponse jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = Optional.ofNullable(jobResponse); + return this; + } + + + /** + * Get a Job by the id in the path. + */ + public GetJobResponse withJobResponse(Optional jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = jobResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetJobResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetJobResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetJobResponse other = (GetJobResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.jobResponse, other.jobResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, jobResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetJobResponse.class, + "contentType", contentType, + "jobResponse", jobResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional jobResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Get a Job by the id in the path. + */ + public Builder jobResponse(JobResponse jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = Optional.ofNullable(jobResponse); + return this; + } + + /** + * Get a Job by the id in the path. + */ + public Builder jobResponse(Optional jobResponse) { + Utils.checkNotNull(jobResponse, "jobResponse"); + this.jobResponse = jobResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetJobResponse build() { + + return new GetJobResponse( + contentType, jobResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetPermissionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetPermissionRequestBuilder.java new file mode 100644 index 000000000..74fa2874a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetPermissionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetPermissionRequest; +import com.airbyte.api.operations.GetPermission; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetPermissionRequestBuilder { + + private GetPermissionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetPermissionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetPermissionRequestBuilder request(GetPermissionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetPermission.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetPermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetPermissionResponse.java new file mode 100644 index 000000000..e6b9ea303 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetPermissionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.PermissionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetPermissionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Get a Permission by the id in the path. + */ + private Optional permissionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetPermissionResponse( + String contentType, + Optional permissionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(permissionResponse, "permissionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.permissionResponse = permissionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetPermissionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Get a Permission by the id in the path. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional permissionResponse() { + return (Optional) permissionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetPermissionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Get a Permission by the id in the path. + */ + public GetPermissionResponse withPermissionResponse(PermissionResponse permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = Optional.ofNullable(permissionResponse); + return this; + } + + + /** + * Get a Permission by the id in the path. + */ + public GetPermissionResponse withPermissionResponse(Optional permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = permissionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetPermissionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetPermissionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetPermissionResponse other = (GetPermissionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.permissionResponse, other.permissionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, permissionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetPermissionResponse.class, + "contentType", contentType, + "permissionResponse", permissionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional permissionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Get a Permission by the id in the path. + */ + public Builder permissionResponse(PermissionResponse permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = Optional.ofNullable(permissionResponse); + return this; + } + + /** + * Get a Permission by the id in the path. + */ + public Builder permissionResponse(Optional permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = permissionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetPermissionResponse build() { + + return new GetPermissionResponse( + contentType, permissionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetSourceDefinitionRequestBuilder.java new file mode 100644 index 000000000..074639a14 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetSourceDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetSourceDefinitionRequest; +import com.airbyte.api.operations.GetSourceDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetSourceDefinitionRequestBuilder { + + private GetSourceDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetSourceDefinitionRequestBuilder request(GetSourceDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetSourceDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetSourceDefinitionResponse.java new file mode 100644 index 000000000..bcb38371f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetSourceDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetSourceDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional definitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetSourceDefinitionResponse( + String contentType, + Optional definitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(definitionResponse, "definitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.definitionResponse = definitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetSourceDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional definitionResponse() { + return (Optional) definitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetSourceDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public GetSourceDefinitionResponse withDefinitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + + /** + * Success + */ + public GetSourceDefinitionResponse withDefinitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetSourceDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetSourceDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetSourceDefinitionResponse other = (GetSourceDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetSourceDefinitionResponse.class, + "contentType", contentType, + "definitionResponse", definitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional definitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder definitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + /** + * Success + */ + public Builder definitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetSourceDefinitionResponse build() { + + return new GetSourceDefinitionResponse( + contentType, definitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetSourceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetSourceRequestBuilder.java new file mode 100644 index 000000000..49fec0527 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetSourceRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetSourceRequest; +import com.airbyte.api.operations.GetSource; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetSourceRequestBuilder { + + private GetSourceRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetSourceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetSourceRequestBuilder request(GetSourceRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetSource.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetSourceResponse.java new file mode 100644 index 000000000..5ee534d15 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetSourceResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.SourceResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetSourceResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Get a Source by the id in the path. + */ + private Optional sourceResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetSourceResponse( + String contentType, + Optional sourceResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(sourceResponse, "sourceResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.sourceResponse = sourceResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetSourceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Get a Source by the id in the path. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional sourceResponse() { + return (Optional) sourceResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetSourceResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Get a Source by the id in the path. + */ + public GetSourceResponse withSourceResponse(SourceResponse sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = Optional.ofNullable(sourceResponse); + return this; + } + + + /** + * Get a Source by the id in the path. + */ + public GetSourceResponse withSourceResponse(Optional sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = sourceResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetSourceResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetSourceResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetSourceResponse other = (GetSourceResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.sourceResponse, other.sourceResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, sourceResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetSourceResponse.class, + "contentType", contentType, + "sourceResponse", sourceResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional sourceResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Get a Source by the id in the path. + */ + public Builder sourceResponse(SourceResponse sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = Optional.ofNullable(sourceResponse); + return this; + } + + /** + * Get a Source by the id in the path. + */ + public Builder sourceResponse(Optional sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = sourceResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetSourceResponse build() { + + return new GetSourceResponse( + contentType, sourceResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetStreamPropertiesRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetStreamPropertiesRequestBuilder.java new file mode 100644 index 000000000..d1e4e181b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetStreamPropertiesRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetStreamPropertiesRequest; +import com.airbyte.api.operations.GetStreamProperties; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetStreamPropertiesRequestBuilder { + + private GetStreamPropertiesRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetStreamPropertiesRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetStreamPropertiesRequestBuilder request(GetStreamPropertiesRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetStreamProperties.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetStreamPropertiesResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetStreamPropertiesResponse.java new file mode 100644 index 000000000..d2923a99a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetStreamPropertiesResponse.java @@ -0,0 +1,254 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.StreamProperties; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; + + +public class GetStreamPropertiesResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Get the available streams properties for a source/destination pair. + */ + private Optional> streamPropertiesResponse; + + @JsonCreator + public GetStreamPropertiesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional> streamPropertiesResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(streamPropertiesResponse, "streamPropertiesResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.streamPropertiesResponse = streamPropertiesResponse; + } + + public GetStreamPropertiesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Get the available streams properties for a source/destination pair. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> streamPropertiesResponse() { + return (Optional>) streamPropertiesResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetStreamPropertiesResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetStreamPropertiesResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetStreamPropertiesResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Get the available streams properties for a source/destination pair. + */ + public GetStreamPropertiesResponse withStreamPropertiesResponse(List streamPropertiesResponse) { + Utils.checkNotNull(streamPropertiesResponse, "streamPropertiesResponse"); + this.streamPropertiesResponse = Optional.ofNullable(streamPropertiesResponse); + return this; + } + + + /** + * Get the available streams properties for a source/destination pair. + */ + public GetStreamPropertiesResponse withStreamPropertiesResponse(Optional> streamPropertiesResponse) { + Utils.checkNotNull(streamPropertiesResponse, "streamPropertiesResponse"); + this.streamPropertiesResponse = streamPropertiesResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetStreamPropertiesResponse other = (GetStreamPropertiesResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.streamPropertiesResponse, other.streamPropertiesResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + streamPropertiesResponse); + } + + @Override + public String toString() { + return Utils.toString(GetStreamPropertiesResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "streamPropertiesResponse", streamPropertiesResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional> streamPropertiesResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Get the available streams properties for a source/destination pair. + */ + public Builder streamPropertiesResponse(List streamPropertiesResponse) { + Utils.checkNotNull(streamPropertiesResponse, "streamPropertiesResponse"); + this.streamPropertiesResponse = Optional.ofNullable(streamPropertiesResponse); + return this; + } + + /** + * Get the available streams properties for a source/destination pair. + */ + public Builder streamPropertiesResponse(Optional> streamPropertiesResponse) { + Utils.checkNotNull(streamPropertiesResponse, "streamPropertiesResponse"); + this.streamPropertiesResponse = streamPropertiesResponse; + return this; + } + + public GetStreamPropertiesResponse build() { + + return new GetStreamPropertiesResponse( + contentType, statusCode, rawResponse, + streamPropertiesResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetTagRequestBuilder.java new file mode 100644 index 000000000..1800a3874 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetTagRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetTagRequest; +import com.airbyte.api.operations.GetTag; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetTagRequestBuilder { + + private GetTagRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetTagRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetTagRequestBuilder request(GetTagRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetTag.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetTagResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetTagResponse.java new file mode 100644 index 000000000..e7a2ac560 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetTagResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.TagResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetTagResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful operation + */ + private Optional tagResponse; + + @JsonCreator + public GetTagResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional tagResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(tagResponse, "tagResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.tagResponse = tagResponse; + } + + public GetTagResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional tagResponse() { + return (Optional) tagResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetTagResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetTagResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetTagResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public GetTagResponse withTagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + + /** + * Successful operation + */ + public GetTagResponse withTagResponse(Optional tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetTagResponse other = (GetTagResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.tagResponse, other.tagResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + tagResponse); + } + + @Override + public String toString() { + return Utils.toString(GetTagResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "tagResponse", tagResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional tagResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful operation + */ + public Builder tagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + /** + * Successful operation + */ + public Builder tagResponse(Optional tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + public GetTagResponse build() { + + return new GetTagResponse( + contentType, statusCode, rawResponse, + tagResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetWorkspaceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/GetWorkspaceRequestBuilder.java new file mode 100644 index 000000000..180ad2d93 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetWorkspaceRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.GetWorkspaceRequest; +import com.airbyte.api.operations.GetWorkspace; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class GetWorkspaceRequestBuilder { + + private GetWorkspaceRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetWorkspaceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetWorkspaceRequestBuilder request(GetWorkspaceRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new GetWorkspace.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/GetWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/async/GetWorkspaceResponse.java new file mode 100644 index 000000000..12521a172 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/GetWorkspaceResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.WorkspaceResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetWorkspaceResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Get a Workspace by the id in the path. + */ + private Optional workspaceResponse; + + @JsonCreator + public GetWorkspaceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional workspaceResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.workspaceResponse = workspaceResponse; + } + + public GetWorkspaceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Get a Workspace by the id in the path. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional workspaceResponse() { + return (Optional) workspaceResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetWorkspaceResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetWorkspaceResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetWorkspaceResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Get a Workspace by the id in the path. + */ + public GetWorkspaceResponse withWorkspaceResponse(WorkspaceResponse workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = Optional.ofNullable(workspaceResponse); + return this; + } + + + /** + * Get a Workspace by the id in the path. + */ + public GetWorkspaceResponse withWorkspaceResponse(Optional workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = workspaceResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWorkspaceResponse other = (GetWorkspaceResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.workspaceResponse, other.workspaceResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + workspaceResponse); + } + + @Override + public String toString() { + return Utils.toString(GetWorkspaceResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "workspaceResponse", workspaceResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional workspaceResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Get a Workspace by the id in the path. + */ + public Builder workspaceResponse(WorkspaceResponse workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = Optional.ofNullable(workspaceResponse); + return this; + } + + /** + * Get a Workspace by the id in the path. + */ + public Builder workspaceResponse(Optional workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = workspaceResponse; + return this; + } + + public GetWorkspaceResponse build() { + + return new GetWorkspaceResponse( + contentType, statusCode, rawResponse, + workspaceResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/InitiateOAuthRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/InitiateOAuthRequestBuilder.java new file mode 100644 index 000000000..acce5ae05 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/InitiateOAuthRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.shared.InitiateOauthRequest; +import com.airbyte.api.operations.InitiateOAuth; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class InitiateOAuthRequestBuilder { + + private InitiateOauthRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public InitiateOAuthRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public InitiateOAuthRequestBuilder request(InitiateOauthRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new InitiateOAuth.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/InitiateOAuthResponse.java b/src/main/java/com/airbyte/api/models/operations/async/InitiateOAuthResponse.java new file mode 100644 index 000000000..974d116dd --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/InitiateOAuthResponse.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.net.http.HttpResponse; + + +public class InitiateOAuthResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public InitiateOAuthResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public InitiateOAuthResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public InitiateOAuthResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public InitiateOAuthResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InitiateOAuthResponse other = (InitiateOAuthResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(InitiateOAuthResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public InitiateOAuthResponse build() { + + return new InitiateOAuthResponse( + contentType, statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListConnectionsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListConnectionsRequestBuilder.java new file mode 100644 index 000000000..ff081ecbb --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListConnectionsRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListConnectionsRequest; +import com.airbyte.api.operations.ListConnections; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListConnectionsRequestBuilder { + + private ListConnectionsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListConnectionsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListConnectionsRequestBuilder request(ListConnectionsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListConnections.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListConnectionsResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListConnectionsResponse.java new file mode 100644 index 000000000..10afd44b3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListConnectionsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.ConnectionsResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListConnectionsResponse implements AsyncResponse { + /** + * Successful operation + */ + private Optional connectionsResponse; + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListConnectionsResponse( + Optional connectionsResponse, + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(connectionsResponse, "connectionsResponse"); + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.connectionsResponse = connectionsResponse; + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListConnectionsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(Optional.empty(), contentType, statusCode, + rawResponse); + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional connectionsResponse() { + return (Optional) connectionsResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Successful operation + */ + public ListConnectionsResponse withConnectionsResponse(ConnectionsResponse connectionsResponse) { + Utils.checkNotNull(connectionsResponse, "connectionsResponse"); + this.connectionsResponse = Optional.ofNullable(connectionsResponse); + return this; + } + + + /** + * Successful operation + */ + public ListConnectionsResponse withConnectionsResponse(Optional connectionsResponse) { + Utils.checkNotNull(connectionsResponse, "connectionsResponse"); + this.connectionsResponse = connectionsResponse; + return this; + } + + /** + * HTTP response content type for this operation + */ + public ListConnectionsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListConnectionsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListConnectionsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListConnectionsResponse other = (ListConnectionsResponse) o; + return + Utils.enhancedDeepEquals(this.connectionsResponse, other.connectionsResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + connectionsResponse, contentType, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListConnectionsResponse.class, + "connectionsResponse", connectionsResponse, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional connectionsResponse = Optional.empty(); + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * Successful operation + */ + public Builder connectionsResponse(ConnectionsResponse connectionsResponse) { + Utils.checkNotNull(connectionsResponse, "connectionsResponse"); + this.connectionsResponse = Optional.ofNullable(connectionsResponse); + return this; + } + + /** + * Successful operation + */ + public Builder connectionsResponse(Optional connectionsResponse) { + Utils.checkNotNull(connectionsResponse, "connectionsResponse"); + this.connectionsResponse = connectionsResponse; + return this; + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListConnectionsResponse build() { + + return new ListConnectionsResponse( + connectionsResponse, contentType, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListDeclarativeSourceDefinitionsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListDeclarativeSourceDefinitionsRequestBuilder.java new file mode 100644 index 000000000..ffbe210a3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListDeclarativeSourceDefinitionsRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListDeclarativeSourceDefinitionsRequest; +import com.airbyte.api.operations.ListDeclarativeSourceDefinitions; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListDeclarativeSourceDefinitionsRequestBuilder { + + private ListDeclarativeSourceDefinitionsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListDeclarativeSourceDefinitionsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListDeclarativeSourceDefinitionsRequestBuilder request(ListDeclarativeSourceDefinitionsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListDeclarativeSourceDefinitions.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListDeclarativeSourceDefinitionsResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListDeclarativeSourceDefinitionsResponse.java new file mode 100644 index 000000000..9c2292699 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListDeclarativeSourceDefinitionsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DeclarativeSourceDefinitionsResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListDeclarativeSourceDefinitionsResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Successful operation + */ + private Optional declarativeSourceDefinitionsResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListDeclarativeSourceDefinitionsResponse( + String contentType, + Optional declarativeSourceDefinitionsResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(declarativeSourceDefinitionsResponse, "declarativeSourceDefinitionsResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.declarativeSourceDefinitionsResponse = declarativeSourceDefinitionsResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListDeclarativeSourceDefinitionsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional declarativeSourceDefinitionsResponse() { + return (Optional) declarativeSourceDefinitionsResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListDeclarativeSourceDefinitionsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Successful operation + */ + public ListDeclarativeSourceDefinitionsResponse withDeclarativeSourceDefinitionsResponse(DeclarativeSourceDefinitionsResponse declarativeSourceDefinitionsResponse) { + Utils.checkNotNull(declarativeSourceDefinitionsResponse, "declarativeSourceDefinitionsResponse"); + this.declarativeSourceDefinitionsResponse = Optional.ofNullable(declarativeSourceDefinitionsResponse); + return this; + } + + + /** + * Successful operation + */ + public ListDeclarativeSourceDefinitionsResponse withDeclarativeSourceDefinitionsResponse(Optional declarativeSourceDefinitionsResponse) { + Utils.checkNotNull(declarativeSourceDefinitionsResponse, "declarativeSourceDefinitionsResponse"); + this.declarativeSourceDefinitionsResponse = declarativeSourceDefinitionsResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListDeclarativeSourceDefinitionsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListDeclarativeSourceDefinitionsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListDeclarativeSourceDefinitionsResponse other = (ListDeclarativeSourceDefinitionsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.declarativeSourceDefinitionsResponse, other.declarativeSourceDefinitionsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, declarativeSourceDefinitionsResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListDeclarativeSourceDefinitionsResponse.class, + "contentType", contentType, + "declarativeSourceDefinitionsResponse", declarativeSourceDefinitionsResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional declarativeSourceDefinitionsResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Successful operation + */ + public Builder declarativeSourceDefinitionsResponse(DeclarativeSourceDefinitionsResponse declarativeSourceDefinitionsResponse) { + Utils.checkNotNull(declarativeSourceDefinitionsResponse, "declarativeSourceDefinitionsResponse"); + this.declarativeSourceDefinitionsResponse = Optional.ofNullable(declarativeSourceDefinitionsResponse); + return this; + } + + /** + * Successful operation + */ + public Builder declarativeSourceDefinitionsResponse(Optional declarativeSourceDefinitionsResponse) { + Utils.checkNotNull(declarativeSourceDefinitionsResponse, "declarativeSourceDefinitionsResponse"); + this.declarativeSourceDefinitionsResponse = declarativeSourceDefinitionsResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListDeclarativeSourceDefinitionsResponse build() { + + return new ListDeclarativeSourceDefinitionsResponse( + contentType, declarativeSourceDefinitionsResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListDestinationDefinitionsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListDestinationDefinitionsRequestBuilder.java new file mode 100644 index 000000000..20d3f66b5 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListDestinationDefinitionsRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListDestinationDefinitionsRequest; +import com.airbyte.api.operations.ListDestinationDefinitions; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListDestinationDefinitionsRequestBuilder { + + private ListDestinationDefinitionsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListDestinationDefinitionsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListDestinationDefinitionsRequestBuilder request(ListDestinationDefinitionsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListDestinationDefinitions.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListDestinationDefinitionsResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListDestinationDefinitionsResponse.java new file mode 100644 index 000000000..a267cda17 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListDestinationDefinitionsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DefinitionsResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListDestinationDefinitionsResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Successful operation + */ + private Optional definitionsResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListDestinationDefinitionsResponse( + String contentType, + Optional definitionsResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(definitionsResponse, "definitionsResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.definitionsResponse = definitionsResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListDestinationDefinitionsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional definitionsResponse() { + return (Optional) definitionsResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListDestinationDefinitionsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Successful operation + */ + public ListDestinationDefinitionsResponse withDefinitionsResponse(DefinitionsResponse definitionsResponse) { + Utils.checkNotNull(definitionsResponse, "definitionsResponse"); + this.definitionsResponse = Optional.ofNullable(definitionsResponse); + return this; + } + + + /** + * Successful operation + */ + public ListDestinationDefinitionsResponse withDefinitionsResponse(Optional definitionsResponse) { + Utils.checkNotNull(definitionsResponse, "definitionsResponse"); + this.definitionsResponse = definitionsResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListDestinationDefinitionsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListDestinationDefinitionsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListDestinationDefinitionsResponse other = (ListDestinationDefinitionsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionsResponse, other.definitionsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, definitionsResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListDestinationDefinitionsResponse.class, + "contentType", contentType, + "definitionsResponse", definitionsResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional definitionsResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Successful operation + */ + public Builder definitionsResponse(DefinitionsResponse definitionsResponse) { + Utils.checkNotNull(definitionsResponse, "definitionsResponse"); + this.definitionsResponse = Optional.ofNullable(definitionsResponse); + return this; + } + + /** + * Successful operation + */ + public Builder definitionsResponse(Optional definitionsResponse) { + Utils.checkNotNull(definitionsResponse, "definitionsResponse"); + this.definitionsResponse = definitionsResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListDestinationDefinitionsResponse build() { + + return new ListDestinationDefinitionsResponse( + contentType, definitionsResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListDestinationsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListDestinationsRequestBuilder.java new file mode 100644 index 000000000..c5ef946ab --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListDestinationsRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListDestinationsRequest; +import com.airbyte.api.operations.ListDestinations; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListDestinationsRequestBuilder { + + private ListDestinationsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListDestinationsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListDestinationsRequestBuilder request(ListDestinationsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListDestinations.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListDestinationsResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListDestinationsResponse.java new file mode 100644 index 000000000..088d825a0 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListDestinationsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DestinationsResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListDestinationsResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Successful operation + */ + private Optional destinationsResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListDestinationsResponse( + String contentType, + Optional destinationsResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(destinationsResponse, "destinationsResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.destinationsResponse = destinationsResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListDestinationsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional destinationsResponse() { + return (Optional) destinationsResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListDestinationsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Successful operation + */ + public ListDestinationsResponse withDestinationsResponse(DestinationsResponse destinationsResponse) { + Utils.checkNotNull(destinationsResponse, "destinationsResponse"); + this.destinationsResponse = Optional.ofNullable(destinationsResponse); + return this; + } + + + /** + * Successful operation + */ + public ListDestinationsResponse withDestinationsResponse(Optional destinationsResponse) { + Utils.checkNotNull(destinationsResponse, "destinationsResponse"); + this.destinationsResponse = destinationsResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListDestinationsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListDestinationsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListDestinationsResponse other = (ListDestinationsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.destinationsResponse, other.destinationsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, destinationsResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListDestinationsResponse.class, + "contentType", contentType, + "destinationsResponse", destinationsResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional destinationsResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Successful operation + */ + public Builder destinationsResponse(DestinationsResponse destinationsResponse) { + Utils.checkNotNull(destinationsResponse, "destinationsResponse"); + this.destinationsResponse = Optional.ofNullable(destinationsResponse); + return this; + } + + /** + * Successful operation + */ + public Builder destinationsResponse(Optional destinationsResponse) { + Utils.checkNotNull(destinationsResponse, "destinationsResponse"); + this.destinationsResponse = destinationsResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListDestinationsResponse build() { + + return new ListDestinationsResponse( + contentType, destinationsResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListJobsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListJobsRequestBuilder.java new file mode 100644 index 000000000..26bfc8522 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListJobsRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListJobsRequest; +import com.airbyte.api.operations.ListJobs; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListJobsRequestBuilder { + + private ListJobsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListJobsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListJobsRequestBuilder request(ListJobsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListJobs.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListJobsResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListJobsResponse.java new file mode 100644 index 000000000..3f101ef73 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListJobsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.JobsResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListJobsResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * List all the Jobs by connectionId. + */ + private Optional jobsResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListJobsResponse( + String contentType, + Optional jobsResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(jobsResponse, "jobsResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.jobsResponse = jobsResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListJobsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * List all the Jobs by connectionId. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional jobsResponse() { + return (Optional) jobsResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListJobsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * List all the Jobs by connectionId. + */ + public ListJobsResponse withJobsResponse(JobsResponse jobsResponse) { + Utils.checkNotNull(jobsResponse, "jobsResponse"); + this.jobsResponse = Optional.ofNullable(jobsResponse); + return this; + } + + + /** + * List all the Jobs by connectionId. + */ + public ListJobsResponse withJobsResponse(Optional jobsResponse) { + Utils.checkNotNull(jobsResponse, "jobsResponse"); + this.jobsResponse = jobsResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListJobsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListJobsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListJobsResponse other = (ListJobsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.jobsResponse, other.jobsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, jobsResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListJobsResponse.class, + "contentType", contentType, + "jobsResponse", jobsResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional jobsResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * List all the Jobs by connectionId. + */ + public Builder jobsResponse(JobsResponse jobsResponse) { + Utils.checkNotNull(jobsResponse, "jobsResponse"); + this.jobsResponse = Optional.ofNullable(jobsResponse); + return this; + } + + /** + * List all the Jobs by connectionId. + */ + public Builder jobsResponse(Optional jobsResponse) { + Utils.checkNotNull(jobsResponse, "jobsResponse"); + this.jobsResponse = jobsResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListJobsResponse build() { + + return new ListJobsResponse( + contentType, jobsResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListOrganizationsForUserRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListOrganizationsForUserRequestBuilder.java new file mode 100644 index 000000000..9a361aec4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListOrganizationsForUserRequestBuilder.java @@ -0,0 +1,31 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestlessOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.operations.ListOrganizationsForUser; +import com.airbyte.api.utils.Headers; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListOrganizationsForUserRequestBuilder { + + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListOrganizationsForUserRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestlessOperation operation + = new ListOrganizationsForUser.Async(sdkConfiguration, _headers); + + return operation.doRequest() + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListOrganizationsForUserResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListOrganizationsForUserResponse.java new file mode 100644 index 000000000..4ef71bfa9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListOrganizationsForUserResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.OrganizationsResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListOrganizationsForUserResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * List user's organizations. + */ + private Optional organizationsResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListOrganizationsForUserResponse( + String contentType, + Optional organizationsResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(organizationsResponse, "organizationsResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.organizationsResponse = organizationsResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListOrganizationsForUserResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * List user's organizations. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional organizationsResponse() { + return (Optional) organizationsResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListOrganizationsForUserResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * List user's organizations. + */ + public ListOrganizationsForUserResponse withOrganizationsResponse(OrganizationsResponse organizationsResponse) { + Utils.checkNotNull(organizationsResponse, "organizationsResponse"); + this.organizationsResponse = Optional.ofNullable(organizationsResponse); + return this; + } + + + /** + * List user's organizations. + */ + public ListOrganizationsForUserResponse withOrganizationsResponse(Optional organizationsResponse) { + Utils.checkNotNull(organizationsResponse, "organizationsResponse"); + this.organizationsResponse = organizationsResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListOrganizationsForUserResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListOrganizationsForUserResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListOrganizationsForUserResponse other = (ListOrganizationsForUserResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.organizationsResponse, other.organizationsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, organizationsResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListOrganizationsForUserResponse.class, + "contentType", contentType, + "organizationsResponse", organizationsResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional organizationsResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * List user's organizations. + */ + public Builder organizationsResponse(OrganizationsResponse organizationsResponse) { + Utils.checkNotNull(organizationsResponse, "organizationsResponse"); + this.organizationsResponse = Optional.ofNullable(organizationsResponse); + return this; + } + + /** + * List user's organizations. + */ + public Builder organizationsResponse(Optional organizationsResponse) { + Utils.checkNotNull(organizationsResponse, "organizationsResponse"); + this.organizationsResponse = organizationsResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListOrganizationsForUserResponse build() { + + return new ListOrganizationsForUserResponse( + contentType, organizationsResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListPermissionsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListPermissionsRequestBuilder.java new file mode 100644 index 000000000..184e62919 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListPermissionsRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListPermissionsRequest; +import com.airbyte.api.operations.ListPermissions; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListPermissionsRequestBuilder { + + private ListPermissionsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListPermissionsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListPermissionsRequestBuilder request(ListPermissionsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListPermissions.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListPermissionsResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListPermissionsResponse.java new file mode 100644 index 000000000..fb6471c7f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListPermissionsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.PermissionsResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListPermissionsResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * List Permissions. + */ + private Optional permissionsResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListPermissionsResponse( + String contentType, + Optional permissionsResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(permissionsResponse, "permissionsResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.permissionsResponse = permissionsResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListPermissionsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * List Permissions. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional permissionsResponse() { + return (Optional) permissionsResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListPermissionsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * List Permissions. + */ + public ListPermissionsResponse withPermissionsResponse(PermissionsResponse permissionsResponse) { + Utils.checkNotNull(permissionsResponse, "permissionsResponse"); + this.permissionsResponse = Optional.ofNullable(permissionsResponse); + return this; + } + + + /** + * List Permissions. + */ + public ListPermissionsResponse withPermissionsResponse(Optional permissionsResponse) { + Utils.checkNotNull(permissionsResponse, "permissionsResponse"); + this.permissionsResponse = permissionsResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListPermissionsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListPermissionsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListPermissionsResponse other = (ListPermissionsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.permissionsResponse, other.permissionsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, permissionsResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListPermissionsResponse.class, + "contentType", contentType, + "permissionsResponse", permissionsResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional permissionsResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * List Permissions. + */ + public Builder permissionsResponse(PermissionsResponse permissionsResponse) { + Utils.checkNotNull(permissionsResponse, "permissionsResponse"); + this.permissionsResponse = Optional.ofNullable(permissionsResponse); + return this; + } + + /** + * List Permissions. + */ + public Builder permissionsResponse(Optional permissionsResponse) { + Utils.checkNotNull(permissionsResponse, "permissionsResponse"); + this.permissionsResponse = permissionsResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListPermissionsResponse build() { + + return new ListPermissionsResponse( + contentType, permissionsResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListSourceDefinitionsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListSourceDefinitionsRequestBuilder.java new file mode 100644 index 000000000..b36383124 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListSourceDefinitionsRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListSourceDefinitionsRequest; +import com.airbyte.api.operations.ListSourceDefinitions; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListSourceDefinitionsRequestBuilder { + + private ListSourceDefinitionsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListSourceDefinitionsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListSourceDefinitionsRequestBuilder request(ListSourceDefinitionsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListSourceDefinitions.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListSourceDefinitionsResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListSourceDefinitionsResponse.java new file mode 100644 index 000000000..c7f3d0c8b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListSourceDefinitionsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DefinitionsResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListSourceDefinitionsResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Successful operation + */ + private Optional definitionsResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListSourceDefinitionsResponse( + String contentType, + Optional definitionsResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(definitionsResponse, "definitionsResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.definitionsResponse = definitionsResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListSourceDefinitionsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional definitionsResponse() { + return (Optional) definitionsResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListSourceDefinitionsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Successful operation + */ + public ListSourceDefinitionsResponse withDefinitionsResponse(DefinitionsResponse definitionsResponse) { + Utils.checkNotNull(definitionsResponse, "definitionsResponse"); + this.definitionsResponse = Optional.ofNullable(definitionsResponse); + return this; + } + + + /** + * Successful operation + */ + public ListSourceDefinitionsResponse withDefinitionsResponse(Optional definitionsResponse) { + Utils.checkNotNull(definitionsResponse, "definitionsResponse"); + this.definitionsResponse = definitionsResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListSourceDefinitionsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListSourceDefinitionsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSourceDefinitionsResponse other = (ListSourceDefinitionsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionsResponse, other.definitionsResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, definitionsResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListSourceDefinitionsResponse.class, + "contentType", contentType, + "definitionsResponse", definitionsResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional definitionsResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Successful operation + */ + public Builder definitionsResponse(DefinitionsResponse definitionsResponse) { + Utils.checkNotNull(definitionsResponse, "definitionsResponse"); + this.definitionsResponse = Optional.ofNullable(definitionsResponse); + return this; + } + + /** + * Successful operation + */ + public Builder definitionsResponse(Optional definitionsResponse) { + Utils.checkNotNull(definitionsResponse, "definitionsResponse"); + this.definitionsResponse = definitionsResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListSourceDefinitionsResponse build() { + + return new ListSourceDefinitionsResponse( + contentType, definitionsResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListSourcesRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListSourcesRequestBuilder.java new file mode 100644 index 000000000..77433a59d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListSourcesRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListSourcesRequest; +import com.airbyte.api.operations.ListSources; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListSourcesRequestBuilder { + + private ListSourcesRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListSourcesRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListSourcesRequestBuilder request(ListSourcesRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListSources.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListSourcesResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListSourcesResponse.java new file mode 100644 index 000000000..bbd397cd0 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListSourcesResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.SourcesResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListSourcesResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Successful operation + */ + private Optional sourcesResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListSourcesResponse( + String contentType, + Optional sourcesResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(sourcesResponse, "sourcesResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.sourcesResponse = sourcesResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListSourcesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional sourcesResponse() { + return (Optional) sourcesResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListSourcesResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Successful operation + */ + public ListSourcesResponse withSourcesResponse(SourcesResponse sourcesResponse) { + Utils.checkNotNull(sourcesResponse, "sourcesResponse"); + this.sourcesResponse = Optional.ofNullable(sourcesResponse); + return this; + } + + + /** + * Successful operation + */ + public ListSourcesResponse withSourcesResponse(Optional sourcesResponse) { + Utils.checkNotNull(sourcesResponse, "sourcesResponse"); + this.sourcesResponse = sourcesResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListSourcesResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListSourcesResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSourcesResponse other = (ListSourcesResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.sourcesResponse, other.sourcesResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, sourcesResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListSourcesResponse.class, + "contentType", contentType, + "sourcesResponse", sourcesResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional sourcesResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Successful operation + */ + public Builder sourcesResponse(SourcesResponse sourcesResponse) { + Utils.checkNotNull(sourcesResponse, "sourcesResponse"); + this.sourcesResponse = Optional.ofNullable(sourcesResponse); + return this; + } + + /** + * Successful operation + */ + public Builder sourcesResponse(Optional sourcesResponse) { + Utils.checkNotNull(sourcesResponse, "sourcesResponse"); + this.sourcesResponse = sourcesResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListSourcesResponse build() { + + return new ListSourcesResponse( + contentType, sourcesResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListTagsRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListTagsRequestBuilder.java new file mode 100644 index 000000000..2cd072469 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListTagsRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListTagsRequest; +import com.airbyte.api.operations.ListTags; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListTagsRequestBuilder { + + private ListTagsRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListTagsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListTagsRequestBuilder request(ListTagsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListTags.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListTagsResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListTagsResponse.java new file mode 100644 index 000000000..54c4611fb --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListTagsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.TagsResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListTagsResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * List Tags. + */ + private Optional tagsResponse; + + @JsonCreator + public ListTagsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional tagsResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(tagsResponse, "tagsResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.tagsResponse = tagsResponse; + } + + public ListTagsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * List Tags. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional tagsResponse() { + return (Optional) tagsResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListTagsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListTagsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListTagsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * List Tags. + */ + public ListTagsResponse withTagsResponse(TagsResponse tagsResponse) { + Utils.checkNotNull(tagsResponse, "tagsResponse"); + this.tagsResponse = Optional.ofNullable(tagsResponse); + return this; + } + + + /** + * List Tags. + */ + public ListTagsResponse withTagsResponse(Optional tagsResponse) { + Utils.checkNotNull(tagsResponse, "tagsResponse"); + this.tagsResponse = tagsResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListTagsResponse other = (ListTagsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.tagsResponse, other.tagsResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + tagsResponse); + } + + @Override + public String toString() { + return Utils.toString(ListTagsResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "tagsResponse", tagsResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional tagsResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * List Tags. + */ + public Builder tagsResponse(TagsResponse tagsResponse) { + Utils.checkNotNull(tagsResponse, "tagsResponse"); + this.tagsResponse = Optional.ofNullable(tagsResponse); + return this; + } + + /** + * List Tags. + */ + public Builder tagsResponse(Optional tagsResponse) { + Utils.checkNotNull(tagsResponse, "tagsResponse"); + this.tagsResponse = tagsResponse; + return this; + } + + public ListTagsResponse build() { + + return new ListTagsResponse( + contentType, statusCode, rawResponse, + tagsResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListUsersWithinAnOrganizationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListUsersWithinAnOrganizationRequestBuilder.java new file mode 100644 index 000000000..57a8cd030 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListUsersWithinAnOrganizationRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequest; +import com.airbyte.api.operations.ListUsersWithinAnOrganization; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListUsersWithinAnOrganizationRequestBuilder { + + private ListUsersWithinAnOrganizationRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListUsersWithinAnOrganizationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListUsersWithinAnOrganizationRequestBuilder request(ListUsersWithinAnOrganizationRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListUsersWithinAnOrganization.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListUsersWithinAnOrganizationResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListUsersWithinAnOrganizationResponse.java new file mode 100644 index 000000000..ad2085645 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListUsersWithinAnOrganizationResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.UsersResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListUsersWithinAnOrganizationResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * List Users. + */ + private Optional usersResponse; + + @JsonCreator + public ListUsersWithinAnOrganizationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional usersResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(usersResponse, "usersResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.usersResponse = usersResponse; + } + + public ListUsersWithinAnOrganizationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * List Users. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional usersResponse() { + return (Optional) usersResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListUsersWithinAnOrganizationResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListUsersWithinAnOrganizationResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListUsersWithinAnOrganizationResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * List Users. + */ + public ListUsersWithinAnOrganizationResponse withUsersResponse(UsersResponse usersResponse) { + Utils.checkNotNull(usersResponse, "usersResponse"); + this.usersResponse = Optional.ofNullable(usersResponse); + return this; + } + + + /** + * List Users. + */ + public ListUsersWithinAnOrganizationResponse withUsersResponse(Optional usersResponse) { + Utils.checkNotNull(usersResponse, "usersResponse"); + this.usersResponse = usersResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListUsersWithinAnOrganizationResponse other = (ListUsersWithinAnOrganizationResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.usersResponse, other.usersResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + usersResponse); + } + + @Override + public String toString() { + return Utils.toString(ListUsersWithinAnOrganizationResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "usersResponse", usersResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional usersResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * List Users. + */ + public Builder usersResponse(UsersResponse usersResponse) { + Utils.checkNotNull(usersResponse, "usersResponse"); + this.usersResponse = Optional.ofNullable(usersResponse); + return this; + } + + /** + * List Users. + */ + public Builder usersResponse(Optional usersResponse) { + Utils.checkNotNull(usersResponse, "usersResponse"); + this.usersResponse = usersResponse; + return this; + } + + public ListUsersWithinAnOrganizationResponse build() { + + return new ListUsersWithinAnOrganizationResponse( + contentType, statusCode, rawResponse, + usersResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListWorkspacesRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/ListWorkspacesRequestBuilder.java new file mode 100644 index 000000000..ad106aef1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListWorkspacesRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.ListWorkspacesRequest; +import com.airbyte.api.operations.ListWorkspaces; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class ListWorkspacesRequestBuilder { + + private ListWorkspacesRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListWorkspacesRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListWorkspacesRequestBuilder request(ListWorkspacesRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new ListWorkspaces.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/ListWorkspacesResponse.java b/src/main/java/com/airbyte/api/models/operations/async/ListWorkspacesResponse.java new file mode 100644 index 000000000..978221d8e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/ListWorkspacesResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.WorkspacesResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListWorkspacesResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful operation + */ + private Optional workspacesResponse; + + @JsonCreator + public ListWorkspacesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional workspacesResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(workspacesResponse, "workspacesResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.workspacesResponse = workspacesResponse; + } + + public ListWorkspacesResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional workspacesResponse() { + return (Optional) workspacesResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public ListWorkspacesResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListWorkspacesResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListWorkspacesResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public ListWorkspacesResponse withWorkspacesResponse(WorkspacesResponse workspacesResponse) { + Utils.checkNotNull(workspacesResponse, "workspacesResponse"); + this.workspacesResponse = Optional.ofNullable(workspacesResponse); + return this; + } + + + /** + * Successful operation + */ + public ListWorkspacesResponse withWorkspacesResponse(Optional workspacesResponse) { + Utils.checkNotNull(workspacesResponse, "workspacesResponse"); + this.workspacesResponse = workspacesResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWorkspacesResponse other = (ListWorkspacesResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.workspacesResponse, other.workspacesResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + workspacesResponse); + } + + @Override + public String toString() { + return Utils.toString(ListWorkspacesResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "workspacesResponse", workspacesResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional workspacesResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful operation + */ + public Builder workspacesResponse(WorkspacesResponse workspacesResponse) { + Utils.checkNotNull(workspacesResponse, "workspacesResponse"); + this.workspacesResponse = Optional.ofNullable(workspacesResponse); + return this; + } + + /** + * Successful operation + */ + public Builder workspacesResponse(Optional workspacesResponse) { + Utils.checkNotNull(workspacesResponse, "workspacesResponse"); + this.workspacesResponse = workspacesResponse; + return this; + } + + public ListWorkspacesResponse build() { + + return new ListWorkspacesResponse( + contentType, statusCode, rawResponse, + workspacesResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/PatchConnectionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/PatchConnectionRequestBuilder.java new file mode 100644 index 000000000..552375d46 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/PatchConnectionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.PatchConnectionRequest; +import com.airbyte.api.operations.PatchConnection; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class PatchConnectionRequestBuilder { + + private PatchConnectionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PatchConnectionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PatchConnectionRequestBuilder request(PatchConnectionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new PatchConnection.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/PatchConnectionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/PatchConnectionResponse.java new file mode 100644 index 000000000..3433097c1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/PatchConnectionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.ConnectionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PatchConnectionResponse implements AsyncResponse { + /** + * Update a Connection by the id in the path. + */ + private Optional connectionResponse; + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public PatchConnectionResponse( + Optional connectionResponse, + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.connectionResponse = connectionResponse; + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public PatchConnectionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(Optional.empty(), contentType, statusCode, + rawResponse); + } + + /** + * Update a Connection by the id in the path. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional connectionResponse() { + return (Optional) connectionResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Update a Connection by the id in the path. + */ + public PatchConnectionResponse withConnectionResponse(ConnectionResponse connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = Optional.ofNullable(connectionResponse); + return this; + } + + + /** + * Update a Connection by the id in the path. + */ + public PatchConnectionResponse withConnectionResponse(Optional connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = connectionResponse; + return this; + } + + /** + * HTTP response content type for this operation + */ + public PatchConnectionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PatchConnectionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PatchConnectionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PatchConnectionResponse other = (PatchConnectionResponse) o; + return + Utils.enhancedDeepEquals(this.connectionResponse, other.connectionResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + connectionResponse, contentType, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(PatchConnectionResponse.class, + "connectionResponse", connectionResponse, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional connectionResponse = Optional.empty(); + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * Update a Connection by the id in the path. + */ + public Builder connectionResponse(ConnectionResponse connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = Optional.ofNullable(connectionResponse); + return this; + } + + /** + * Update a Connection by the id in the path. + */ + public Builder connectionResponse(Optional connectionResponse) { + Utils.checkNotNull(connectionResponse, "connectionResponse"); + this.connectionResponse = connectionResponse; + return this; + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public PatchConnectionResponse build() { + + return new PatchConnectionResponse( + connectionResponse, contentType, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/PatchDestinationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/PatchDestinationRequestBuilder.java new file mode 100644 index 000000000..2a846ad59 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/PatchDestinationRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.PatchDestinationRequest; +import com.airbyte.api.operations.PatchDestination; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class PatchDestinationRequestBuilder { + + private PatchDestinationRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PatchDestinationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PatchDestinationRequestBuilder request(PatchDestinationRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new PatchDestination.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/PatchDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/async/PatchDestinationResponse.java new file mode 100644 index 000000000..30290ff91 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/PatchDestinationResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DestinationResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PatchDestinationResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Update a Destination + */ + private Optional destinationResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public PatchDestinationResponse( + String contentType, + Optional destinationResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(destinationResponse, "destinationResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.destinationResponse = destinationResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public PatchDestinationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Update a Destination + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional destinationResponse() { + return (Optional) destinationResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PatchDestinationResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Update a Destination + */ + public PatchDestinationResponse withDestinationResponse(DestinationResponse destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = Optional.ofNullable(destinationResponse); + return this; + } + + + /** + * Update a Destination + */ + public PatchDestinationResponse withDestinationResponse(Optional destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = destinationResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PatchDestinationResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PatchDestinationResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PatchDestinationResponse other = (PatchDestinationResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.destinationResponse, other.destinationResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, destinationResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(PatchDestinationResponse.class, + "contentType", contentType, + "destinationResponse", destinationResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional destinationResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Update a Destination + */ + public Builder destinationResponse(DestinationResponse destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = Optional.ofNullable(destinationResponse); + return this; + } + + /** + * Update a Destination + */ + public Builder destinationResponse(Optional destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = destinationResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public PatchDestinationResponse build() { + + return new PatchDestinationResponse( + contentType, destinationResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/PatchSourceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/PatchSourceRequestBuilder.java new file mode 100644 index 000000000..dd01c1942 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/PatchSourceRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.PatchSourceRequest; +import com.airbyte.api.operations.PatchSource; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class PatchSourceRequestBuilder { + + private PatchSourceRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PatchSourceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PatchSourceRequestBuilder request(PatchSourceRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new PatchSource.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/PatchSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/async/PatchSourceResponse.java new file mode 100644 index 000000000..45accc0d3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/PatchSourceResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.SourceResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PatchSourceResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Update a Source + */ + private Optional sourceResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public PatchSourceResponse( + String contentType, + Optional sourceResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(sourceResponse, "sourceResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.sourceResponse = sourceResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public PatchSourceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Update a Source + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional sourceResponse() { + return (Optional) sourceResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PatchSourceResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Update a Source + */ + public PatchSourceResponse withSourceResponse(SourceResponse sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = Optional.ofNullable(sourceResponse); + return this; + } + + + /** + * Update a Source + */ + public PatchSourceResponse withSourceResponse(Optional sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = sourceResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PatchSourceResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PatchSourceResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PatchSourceResponse other = (PatchSourceResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.sourceResponse, other.sourceResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, sourceResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(PatchSourceResponse.class, + "contentType", contentType, + "sourceResponse", sourceResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional sourceResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Update a Source + */ + public Builder sourceResponse(SourceResponse sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = Optional.ofNullable(sourceResponse); + return this; + } + + /** + * Update a Source + */ + public Builder sourceResponse(Optional sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = sourceResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public PatchSourceResponse build() { + + return new PatchSourceResponse( + contentType, sourceResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/PutDestinationRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/PutDestinationRequestBuilder.java new file mode 100644 index 000000000..e341da3f0 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/PutDestinationRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.PutDestinationRequest; +import com.airbyte.api.operations.PutDestination; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class PutDestinationRequestBuilder { + + private PutDestinationRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PutDestinationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PutDestinationRequestBuilder request(PutDestinationRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new PutDestination.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/PutDestinationResponse.java b/src/main/java/com/airbyte/api/models/operations/async/PutDestinationResponse.java new file mode 100644 index 000000000..3e271f39f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/PutDestinationResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DestinationResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PutDestinationResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Update a Destination and fully overwrite it + */ + private Optional destinationResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public PutDestinationResponse( + String contentType, + Optional destinationResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(destinationResponse, "destinationResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.destinationResponse = destinationResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public PutDestinationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Update a Destination and fully overwrite it + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional destinationResponse() { + return (Optional) destinationResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PutDestinationResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Update a Destination and fully overwrite it + */ + public PutDestinationResponse withDestinationResponse(DestinationResponse destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = Optional.ofNullable(destinationResponse); + return this; + } + + + /** + * Update a Destination and fully overwrite it + */ + public PutDestinationResponse withDestinationResponse(Optional destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = destinationResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PutDestinationResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PutDestinationResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PutDestinationResponse other = (PutDestinationResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.destinationResponse, other.destinationResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, destinationResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(PutDestinationResponse.class, + "contentType", contentType, + "destinationResponse", destinationResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional destinationResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Update a Destination and fully overwrite it + */ + public Builder destinationResponse(DestinationResponse destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = Optional.ofNullable(destinationResponse); + return this; + } + + /** + * Update a Destination and fully overwrite it + */ + public Builder destinationResponse(Optional destinationResponse) { + Utils.checkNotNull(destinationResponse, "destinationResponse"); + this.destinationResponse = destinationResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public PutDestinationResponse build() { + + return new PutDestinationResponse( + contentType, destinationResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/PutSourceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/PutSourceRequestBuilder.java new file mode 100644 index 000000000..bfff21e08 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/PutSourceRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.PutSourceRequest; +import com.airbyte.api.operations.PutSource; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class PutSourceRequestBuilder { + + private PutSourceRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public PutSourceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public PutSourceRequestBuilder request(PutSourceRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new PutSource.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/PutSourceResponse.java b/src/main/java/com/airbyte/api/models/operations/async/PutSourceResponse.java new file mode 100644 index 000000000..617180994 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/PutSourceResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.SourceResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class PutSourceResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Update a source and fully overwrite it + */ + private Optional sourceResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public PutSourceResponse( + String contentType, + Optional sourceResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(sourceResponse, "sourceResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.sourceResponse = sourceResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public PutSourceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Update a source and fully overwrite it + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional sourceResponse() { + return (Optional) sourceResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public PutSourceResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Update a source and fully overwrite it + */ + public PutSourceResponse withSourceResponse(SourceResponse sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = Optional.ofNullable(sourceResponse); + return this; + } + + + /** + * Update a source and fully overwrite it + */ + public PutSourceResponse withSourceResponse(Optional sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = sourceResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public PutSourceResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public PutSourceResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PutSourceResponse other = (PutSourceResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.sourceResponse, other.sourceResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, sourceResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(PutSourceResponse.class, + "contentType", contentType, + "sourceResponse", sourceResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional sourceResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Update a source and fully overwrite it + */ + public Builder sourceResponse(SourceResponse sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = Optional.ofNullable(sourceResponse); + return this; + } + + /** + * Update a source and fully overwrite it + */ + public Builder sourceResponse(Optional sourceResponse) { + Utils.checkNotNull(sourceResponse, "sourceResponse"); + this.sourceResponse = sourceResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public PutSourceResponse build() { + + return new PutSourceResponse( + contentType, sourceResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdateDeclarativeSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/UpdateDeclarativeSourceDefinitionRequestBuilder.java new file mode 100644 index 000000000..d6914116b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdateDeclarativeSourceDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionRequest; +import com.airbyte.api.operations.UpdateDeclarativeSourceDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class UpdateDeclarativeSourceDefinitionRequestBuilder { + + private UpdateDeclarativeSourceDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public UpdateDeclarativeSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public UpdateDeclarativeSourceDefinitionRequestBuilder request(UpdateDeclarativeSourceDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new UpdateDeclarativeSourceDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdateDeclarativeSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/UpdateDeclarativeSourceDefinitionResponse.java new file mode 100644 index 000000000..db6216bf3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdateDeclarativeSourceDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DeclarativeSourceDefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class UpdateDeclarativeSourceDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional declarativeSourceDefinitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public UpdateDeclarativeSourceDefinitionResponse( + String contentType, + Optional declarativeSourceDefinitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public UpdateDeclarativeSourceDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional declarativeSourceDefinitionResponse() { + return (Optional) declarativeSourceDefinitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public UpdateDeclarativeSourceDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public UpdateDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinitionResponse(DeclarativeSourceDefinitionResponse declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = Optional.ofNullable(declarativeSourceDefinitionResponse); + return this; + } + + + /** + * Success + */ + public UpdateDeclarativeSourceDefinitionResponse withDeclarativeSourceDefinitionResponse(Optional declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public UpdateDeclarativeSourceDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public UpdateDeclarativeSourceDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateDeclarativeSourceDefinitionResponse other = (UpdateDeclarativeSourceDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.declarativeSourceDefinitionResponse, other.declarativeSourceDefinitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, declarativeSourceDefinitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(UpdateDeclarativeSourceDefinitionResponse.class, + "contentType", contentType, + "declarativeSourceDefinitionResponse", declarativeSourceDefinitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional declarativeSourceDefinitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder declarativeSourceDefinitionResponse(DeclarativeSourceDefinitionResponse declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = Optional.ofNullable(declarativeSourceDefinitionResponse); + return this; + } + + /** + * Success + */ + public Builder declarativeSourceDefinitionResponse(Optional declarativeSourceDefinitionResponse) { + Utils.checkNotNull(declarativeSourceDefinitionResponse, "declarativeSourceDefinitionResponse"); + this.declarativeSourceDefinitionResponse = declarativeSourceDefinitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public UpdateDeclarativeSourceDefinitionResponse build() { + + return new UpdateDeclarativeSourceDefinitionResponse( + contentType, declarativeSourceDefinitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdateDestinationDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/UpdateDestinationDefinitionRequestBuilder.java new file mode 100644 index 000000000..3bb05a4d9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdateDestinationDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.UpdateDestinationDefinitionRequest; +import com.airbyte.api.operations.UpdateDestinationDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class UpdateDestinationDefinitionRequestBuilder { + + private UpdateDestinationDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public UpdateDestinationDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public UpdateDestinationDefinitionRequestBuilder request(UpdateDestinationDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new UpdateDestinationDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdateDestinationDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/UpdateDestinationDefinitionResponse.java new file mode 100644 index 000000000..98c58f42d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdateDestinationDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class UpdateDestinationDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional definitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public UpdateDestinationDefinitionResponse( + String contentType, + Optional definitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(definitionResponse, "definitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.definitionResponse = definitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public UpdateDestinationDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional definitionResponse() { + return (Optional) definitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public UpdateDestinationDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public UpdateDestinationDefinitionResponse withDefinitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + + /** + * Success + */ + public UpdateDestinationDefinitionResponse withDefinitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public UpdateDestinationDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public UpdateDestinationDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateDestinationDefinitionResponse other = (UpdateDestinationDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(UpdateDestinationDefinitionResponse.class, + "contentType", contentType, + "definitionResponse", definitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional definitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder definitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + /** + * Success + */ + public Builder definitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public UpdateDestinationDefinitionResponse build() { + + return new UpdateDestinationDefinitionResponse( + contentType, definitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdatePermissionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/UpdatePermissionRequestBuilder.java new file mode 100644 index 000000000..95c0a5951 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdatePermissionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.UpdatePermissionRequest; +import com.airbyte.api.operations.UpdatePermission; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class UpdatePermissionRequestBuilder { + + private UpdatePermissionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public UpdatePermissionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public UpdatePermissionRequestBuilder request(UpdatePermissionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new UpdatePermission.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdatePermissionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/UpdatePermissionResponse.java new file mode 100644 index 000000000..e09c918e3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdatePermissionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.PermissionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class UpdatePermissionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Successful updated + */ + private Optional permissionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public UpdatePermissionResponse( + String contentType, + Optional permissionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(permissionResponse, "permissionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.permissionResponse = permissionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public UpdatePermissionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Successful updated + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional permissionResponse() { + return (Optional) permissionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public UpdatePermissionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Successful updated + */ + public UpdatePermissionResponse withPermissionResponse(PermissionResponse permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = Optional.ofNullable(permissionResponse); + return this; + } + + + /** + * Successful updated + */ + public UpdatePermissionResponse withPermissionResponse(Optional permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = permissionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public UpdatePermissionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public UpdatePermissionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdatePermissionResponse other = (UpdatePermissionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.permissionResponse, other.permissionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, permissionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(UpdatePermissionResponse.class, + "contentType", contentType, + "permissionResponse", permissionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional permissionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Successful updated + */ + public Builder permissionResponse(PermissionResponse permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = Optional.ofNullable(permissionResponse); + return this; + } + + /** + * Successful updated + */ + public Builder permissionResponse(Optional permissionResponse) { + Utils.checkNotNull(permissionResponse, "permissionResponse"); + this.permissionResponse = permissionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public UpdatePermissionResponse build() { + + return new UpdatePermissionResponse( + contentType, permissionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdateSourceDefinitionRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/UpdateSourceDefinitionRequestBuilder.java new file mode 100644 index 000000000..f31d288ab --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdateSourceDefinitionRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.UpdateSourceDefinitionRequest; +import com.airbyte.api.operations.UpdateSourceDefinition; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class UpdateSourceDefinitionRequestBuilder { + + private UpdateSourceDefinitionRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public UpdateSourceDefinitionRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public UpdateSourceDefinitionRequestBuilder request(UpdateSourceDefinitionRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new UpdateSourceDefinition.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdateSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/operations/async/UpdateSourceDefinitionResponse.java new file mode 100644 index 000000000..3b8c61322 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdateSourceDefinitionResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class UpdateSourceDefinitionResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Success + */ + private Optional definitionResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public UpdateSourceDefinitionResponse( + String contentType, + Optional definitionResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(definitionResponse, "definitionResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.definitionResponse = definitionResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public UpdateSourceDefinitionResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Success + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional definitionResponse() { + return (Optional) definitionResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public UpdateSourceDefinitionResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Success + */ + public UpdateSourceDefinitionResponse withDefinitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + + /** + * Success + */ + public UpdateSourceDefinitionResponse withDefinitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public UpdateSourceDefinitionResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public UpdateSourceDefinitionResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSourceDefinitionResponse other = (UpdateSourceDefinitionResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.definitionResponse, other.definitionResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, definitionResponse, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(UpdateSourceDefinitionResponse.class, + "contentType", contentType, + "definitionResponse", definitionResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional definitionResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Success + */ + public Builder definitionResponse(DefinitionResponse definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = Optional.ofNullable(definitionResponse); + return this; + } + + /** + * Success + */ + public Builder definitionResponse(Optional definitionResponse) { + Utils.checkNotNull(definitionResponse, "definitionResponse"); + this.definitionResponse = definitionResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public UpdateSourceDefinitionResponse build() { + + return new UpdateSourceDefinitionResponse( + contentType, definitionResponse, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdateTagRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/UpdateTagRequestBuilder.java new file mode 100644 index 000000000..198374bf9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdateTagRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.UpdateTagRequest; +import com.airbyte.api.operations.UpdateTag; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class UpdateTagRequestBuilder { + + private UpdateTagRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public UpdateTagRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public UpdateTagRequestBuilder request(UpdateTagRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new UpdateTag.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdateTagResponse.java b/src/main/java/com/airbyte/api/models/operations/async/UpdateTagResponse.java new file mode 100644 index 000000000..2c16bb379 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdateTagResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.TagResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class UpdateTagResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful operation + */ + private Optional tagResponse; + + @JsonCreator + public UpdateTagResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional tagResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(tagResponse, "tagResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.tagResponse = tagResponse; + } + + public UpdateTagResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional tagResponse() { + return (Optional) tagResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public UpdateTagResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public UpdateTagResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public UpdateTagResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public UpdateTagResponse withTagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + + /** + * Successful operation + */ + public UpdateTagResponse withTagResponse(Optional tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateTagResponse other = (UpdateTagResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.tagResponse, other.tagResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + tagResponse); + } + + @Override + public String toString() { + return Utils.toString(UpdateTagResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "tagResponse", tagResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional tagResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful operation + */ + public Builder tagResponse(TagResponse tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = Optional.ofNullable(tagResponse); + return this; + } + + /** + * Successful operation + */ + public Builder tagResponse(Optional tagResponse) { + Utils.checkNotNull(tagResponse, "tagResponse"); + this.tagResponse = tagResponse; + return this; + } + + public UpdateTagResponse build() { + + return new UpdateTagResponse( + contentType, statusCode, rawResponse, + tagResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdateWorkspaceRequestBuilder.java b/src/main/java/com/airbyte/api/models/operations/async/UpdateWorkspaceRequestBuilder.java new file mode 100644 index 000000000..513f12dfe --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdateWorkspaceRequestBuilder.java @@ -0,0 +1,40 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.models.operations.UpdateWorkspaceRequest; +import com.airbyte.api.operations.UpdateWorkspace; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Utils; +import java.lang.Exception; +import java.util.concurrent.CompletableFuture; + +public class UpdateWorkspaceRequestBuilder { + + private UpdateWorkspaceRequest request; + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public UpdateWorkspaceRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public UpdateWorkspaceRequestBuilder request(UpdateWorkspaceRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public CompletableFuture call() throws Exception { + + AsyncRequestOperation operation + = new UpdateWorkspace.Async(sdkConfiguration, _headers); + + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } +} diff --git a/src/main/java/com/airbyte/api/models/operations/async/UpdateWorkspaceResponse.java b/src/main/java/com/airbyte/api/models/operations/async/UpdateWorkspaceResponse.java new file mode 100644 index 000000000..e297ae615 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/operations/async/UpdateWorkspaceResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.operations.async; + +import com.airbyte.api.models.shared.WorkspaceResponse; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class UpdateWorkspaceResponse implements AsyncResponse { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + /** + * Successful operation + */ + private Optional workspaceResponse; + + @JsonCreator + public UpdateWorkspaceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse, + Optional workspaceResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + this.workspaceResponse = workspaceResponse; + } + + public UpdateWorkspaceResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, statusCode, rawResponse, + Optional.empty()); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + /** + * Successful operation + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional workspaceResponse() { + return (Optional) workspaceResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public UpdateWorkspaceResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public UpdateWorkspaceResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public UpdateWorkspaceResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + /** + * Successful operation + */ + public UpdateWorkspaceResponse withWorkspaceResponse(WorkspaceResponse workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = Optional.ofNullable(workspaceResponse); + return this; + } + + + /** + * Successful operation + */ + public UpdateWorkspaceResponse withWorkspaceResponse(Optional workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = workspaceResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateWorkspaceResponse other = (UpdateWorkspaceResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && + Utils.enhancedDeepEquals(this.workspaceResponse, other.workspaceResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, statusCode, rawResponse, + workspaceResponse); + } + + @Override + public String toString() { + return Utils.toString(UpdateWorkspaceResponse.class, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse, + "workspaceResponse", workspaceResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Optional workspaceResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + + /** + * Successful operation + */ + public Builder workspaceResponse(WorkspaceResponse workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = Optional.ofNullable(workspaceResponse); + return this; + } + + /** + * Successful operation + */ + public Builder workspaceResponse(Optional workspaceResponse) { + Utils.checkNotNull(workspaceResponse, "workspaceResponse"); + this.workspaceResponse = workspaceResponse; + return this; + } + + public UpdateWorkspaceResponse build() { + + return new UpdateWorkspaceResponse( + contentType, statusCode, rawResponse, + workspaceResponse); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/APIAccessToken.java b/src/main/java/com/airbyte/api/models/shared/APIAccessToken.java index c26b21195..549e4094c 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/APIAccessToken.java @@ -14,17 +14,23 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class APIAccessToken { +public class APIAccessToken { /** - * The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the <a href="https://docs.airbyte.com/integrations/sources/smartsheets/#setup-guide">setup guide</a> for information on how to obtain this token. + * The access token to use for accessing your data from Smartsheets. This access token must be + * generated by a user with at least read access to the data you'd like to replicate. Generate an + * access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API + * Access. + * + *

See the setup + * guide for information on how to obtain this token. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -38,7 +44,13 @@ public APIAccessToken( } /** - * The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the <a href="https://docs.airbyte.com/integrations/sources/smartsheets/#setup-guide">setup guide</a> for information on how to obtain this token. + * The access token to use for accessing your data from Smartsheets. This access token must be + * generated by a user with at least read access to the data you'd like to replicate. Generate an + * access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API + * Access. + * + *

See the setup + * guide for information on how to obtain this token. */ @JsonIgnore public String accessToken() { @@ -51,12 +63,19 @@ public Optional authType() { return (Optional) authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the <a href="https://docs.airbyte.com/integrations/sources/smartsheets/#setup-guide">setup guide</a> for information on how to obtain this token. + * The access token to use for accessing your data from Smartsheets. This access token must be + * generated by a user with at least read access to the data you'd like to replicate. Generate an + * access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API + * Access. + * + *

See the setup + * guide for information on how to obtain this token. */ public APIAccessToken withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -64,7 +83,6 @@ public APIAccessToken withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +93,14 @@ public boolean equals(java.lang.Object o) { } APIAccessToken other = (APIAccessToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType); + return Utils.enhancedHash( + accessToken, authType); } @Override @@ -92,29 +109,39 @@ public String toString() { "accessToken", accessToken, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * The access token to use for accessing your data from Smartsheets. This access token must be generated by a user with at least read access to the data you'd like to replicate. Generate an access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API Access. See the <a href="https://docs.airbyte.com/integrations/sources/smartsheets/#setup-guide">setup guide</a> for information on how to obtain this token. + * The access token to use for accessing your data from Smartsheets. This access token must be + * generated by a user with at least read access to the data you'd like to replicate. Generate an + * access token in the Smartsheets main menu by clicking Account > Apps & Integrations > API + * Access. + * + *

See the setup + * guide for information on how to obtain this token. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public APIAccessToken build() { + return new APIAccessToken( accessToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/APIEndpoint.java b/src/main/java/com/airbyte/api/models/shared/APIEndpoint.java index 8ee741641..10cb00bb2 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIEndpoint.java +++ b/src/main/java/com/airbyte/api/models/shared/APIEndpoint.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = APIEndpoint._Deserializer.class) public class APIEndpoint { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } APIEndpoint other = (APIEndpoint) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java b/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java index 81f3c4a64..10a5f6e30 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java +++ b/src/main/java/com/airbyte/api/models/shared/APIEndpointPrefix.java @@ -15,7 +15,7 @@ public enum APIEndpointPrefix { @JsonValue private final String value; - private APIEndpointPrefix(String value) { + APIEndpointPrefix(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/APIHost.java b/src/main/java/com/airbyte/api/models/shared/APIHost.java index 4d6215765..4b352cc7c 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIHost.java +++ b/src/main/java/com/airbyte/api/models/shared/APIHost.java @@ -20,7 +20,7 @@ public enum APIHost { @JsonValue private final String value; - private APIHost(String value) { + APIHost(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/APIKey.java b/src/main/java/com/airbyte/api/models/shared/APIKey.java index 2f39ff3bf..4382f4886 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIKey.java +++ b/src/main/java/com/airbyte/api/models/shared/APIKey.java @@ -7,58 +7,76 @@ import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.util.Optional; -public class APIKey { +public class APIKey { /** - * Mailchimp API Key. See the <a href="https://docs.airbyte.com/integrations/sources/mailchimp">docs</a> for information on how to generate this key. + * Kit/ConvertKit API Key */ - @JsonProperty("apikey") - private String apikey; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("api_key") + private Optional apiKey; + @JsonProperty("auth_type") - private SourceMailchimpSchemasAuthType authType; + private SourceConvertkitSchemasAuthType authType; @JsonCreator public APIKey( - @JsonProperty("apikey") String apikey) { - Utils.checkNotNull(apikey, "apikey"); - this.apikey = apikey; + @JsonProperty("api_key") Optional apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; this.authType = Builder._SINGLETON_VALUE_AuthType.value(); } + + public APIKey() { + this(Optional.empty()); + } /** - * Mailchimp API Key. See the <a href="https://docs.airbyte.com/integrations/sources/mailchimp">docs</a> for information on how to generate this key. + * Kit/ConvertKit API Key */ @JsonIgnore - public String apikey() { - return apikey; + public Optional apiKey() { + return apiKey; } @JsonIgnore - public SourceMailchimpSchemasAuthType authType() { + public SourceConvertkitSchemasAuthType authType() { return authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Mailchimp API Key. See the <a href="https://docs.airbyte.com/integrations/sources/mailchimp">docs</a> for information on how to generate this key. + * Kit/ConvertKit API Key */ - public APIKey withApikey(String apikey) { - Utils.checkNotNull(apikey, "apikey"); - this.apikey = apikey; + public APIKey withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = Optional.ofNullable(apiKey); + return this; + } + + + /** + * Kit/ConvertKit API Key + */ + public APIKey withApiKey(Optional apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,50 +87,71 @@ public boolean equals(java.lang.Object o) { } APIKey other = (APIKey) o; return - Objects.deepEquals(this.apikey, other.apikey) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - apikey, - authType); + return Utils.enhancedHash( + apiKey, authType); } @Override public String toString() { return Utils.toString(APIKey.class, - "apikey", apikey, + "apiKey", apiKey, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - - private String apikey; - + + private Optional apiKey; + private Builder() { // force use of static builder() method } + + /** + * Kit/ConvertKit API Key + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = Optional.ofNullable(apiKey); + return this; + } + /** - * Mailchimp API Key. See the <a href="https://docs.airbyte.com/integrations/sources/mailchimp">docs</a> for information on how to generate this key. + * Kit/ConvertKit API Key */ - public Builder apikey(String apikey) { - Utils.checkNotNull(apikey, "apikey"); - this.apikey = apikey; + public Builder apiKey(Optional apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; return this; } - + public APIKey build() { + if (apiKey == null) { + apiKey = _SINGLETON_VALUE_ApiKey.value(); + } + return new APIKey( - apikey); + apiKey); } - private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + + private static final LazySingletonValue> _SINGLETON_VALUE_ApiKey = + new LazySingletonValue<>( + "api_key", + "\"{{ config.get('credentials',{}).get('api_key') or config.get('api_secret') }}\"", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", - "\"apikey\"", - new TypeReference() {}); + "\"api_key\"", + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/APIParameterConfigModel.java b/src/main/java/com/airbyte/api/models/shared/APIParameterConfigModel.java index 3de694537..1cc0b7948 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIParameterConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/APIParameterConfigModel.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class APIParameterConfigModel { +public class APIParameterConfigModel { /** * The name of the unstructured API parameter to use */ @@ -51,9 +50,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The name of the unstructured API parameter to use @@ -73,7 +73,6 @@ public APIParameterConfigModel withValue(String value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +83,14 @@ public boolean equals(java.lang.Object o) { } APIParameterConfigModel other = (APIParameterConfigModel) o; return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - name, - value); + return Utils.enhancedHash( + name, value); } @Override @@ -101,17 +99,19 @@ public String toString() { "name", name, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String name; - + private String value; - + private Builder() { // force use of static builder() method } + /** * The name of the unstructured API parameter to use */ @@ -121,6 +121,7 @@ public Builder name(String name) { return this; } + /** * The value of the parameter */ @@ -129,11 +130,12 @@ public Builder value(String value) { this.value = value; return this; } - + public APIParameterConfigModel build() { + return new APIParameterConfigModel( - name, - value); + name, value); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/APIPassword.java b/src/main/java/com/airbyte/api/models/shared/APIPassword.java index 460834974..68f09528c 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/APIPassword.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * APIPassword @@ -19,13 +18,13 @@ *

API Password Auth */ public class APIPassword { - /** * The API Password for your private application in the `Shopify` store. */ @JsonProperty("api_password") private String apiPassword; + @JsonProperty("auth_method") private SourceShopifySchemasAuthMethod authMethod; @@ -50,9 +49,10 @@ public SourceShopifySchemasAuthMethod authMethod() { return authMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API Password for your private application in the `Shopify` store. @@ -63,7 +63,6 @@ public APIPassword withApiPassword(String apiPassword) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -74,15 +73,14 @@ public boolean equals(java.lang.Object o) { } APIPassword other = (APIPassword) o; return - Objects.deepEquals(this.apiPassword, other.apiPassword) && - Objects.deepEquals(this.authMethod, other.authMethod); + Utils.enhancedDeepEquals(this.apiPassword, other.apiPassword) && + Utils.enhancedDeepEquals(this.authMethod, other.authMethod); } @Override public int hashCode() { - return Objects.hash( - apiPassword, - authMethod); + return Utils.enhancedHash( + apiPassword, authMethod); } @Override @@ -91,15 +89,17 @@ public String toString() { "apiPassword", apiPassword, "authMethod", authMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiPassword; - + private Builder() { // force use of static builder() method } + /** * The API Password for your private application in the `Shopify` store. */ @@ -108,12 +108,14 @@ public Builder apiPassword(String apiPassword) { this.apiPassword = apiPassword; return this; } - + public APIPassword build() { + return new APIPassword( apiPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/APIServer.java b/src/main/java/com/airbyte/api/models/shared/APIServer.java index ffd11b612..6feac1e86 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIServer.java +++ b/src/main/java/com/airbyte/api/models/shared/APIServer.java @@ -15,7 +15,7 @@ public enum APIServer { @JsonValue private final String value; - private APIServer(String value) { + APIServer(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/APIToken.java b/src/main/java/com/airbyte/api/models/shared/APIToken.java index f222ec2c6..75eb5e9bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/APIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/APIToken.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class APIToken { +public class APIToken { /** * API Token for making authenticated requests. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("auth_type") private SourceMondaySchemasAuthType authType; @@ -45,9 +45,10 @@ public SourceMondaySchemasAuthType authType() { return authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Token for making authenticated requests. @@ -58,7 +59,6 @@ public APIToken withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } APIToken other = (APIToken) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - authType); + return Utils.enhancedHash( + apiToken, authType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * API Token for making authenticated requests. */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public APIToken build() { + return new APIToken( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java b/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java index 359920500..169de314e 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSEnvironment.java @@ -20,7 +20,7 @@ public enum AWSEnvironment { @JsonValue private final String value; - private AWSEnvironment(String value) { + AWSEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AWSRegion.java b/src/main/java/com/airbyte/api/models/shared/AWSRegion.java index 516f38b69..64ca46c8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSRegion.java @@ -40,7 +40,7 @@ public enum AWSRegion { @JsonValue private final String value; - private AWSRegion(String value) { + AWSRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java b/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java index a1c80d41e..88cb2b345 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSS3Staging.java @@ -15,18 +15,22 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * AWSS3Staging * - *

<i>(recommended)</i> Uploads data to S3 and then uses a COPY to insert the data into Redshift. COPY is recommended for production workloads for better speed and scalability. See <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/creating-bucket.html">AWS docs</a> for more details. + *

(recommended) Uploads data to S3 and then uses a COPY to insert the data into Redshift. COPY + * is recommended for production workloads for better speed and scalability. See AWS docs for + * more details. */ public class AWSS3Staging { - /** - * This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. See <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">AWS docs</a> on how to generate an access key ID and secret access key. + * This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to + * the given bucket. See AWS + * docs on how to generate an access key ID and secret access key. */ @JsonProperty("access_key_id") private String accessKeyId; @@ -38,11 +42,14 @@ public class AWSS3Staging { @JsonProperty("file_name_pattern") private Optional fileNamePattern; + @JsonProperty("method") private DestinationRedshiftMethod method; /** - * Whether to delete the staging files from S3 after completing the sync. See <a href="https://docs.airbyte.com/integrations/destinations/redshift/#:~:text=the%20root%20directory.-,Purge%20Staging%20Data,-Whether%20to%20delete"> docs</a> for details. + * Whether to delete the staging files from S3 after completing the sync. See + * docs for details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("purge_staging_data") @@ -55,7 +62,10 @@ public class AWSS3Staging { private String s3BucketName; /** - * The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/defining-bucket-names-data-lakes/faq.html#:~:text=be%20globally%20unique.-,For%20S3%20bucket%20paths,-%2C%20you%20can%20use">path's name recommendations</a> for more details. + * The directory under the S3 bucket where data will be written. If not provided, then defaults to the + * root directory. See path's + * name recommendations for more details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("s3_bucket_path") @@ -69,7 +79,9 @@ public class AWSS3Staging { private Optional s3BucketRegion; /** - * The corresponding secret to the above access key id. See <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">AWS docs</a> on how to generate an access key ID and secret access key. + * The corresponding secret to the above access key id. See AWS + * docs on how to generate an access key ID and secret access key. */ @JsonProperty("secret_access_key") private String secretAccessKey; @@ -104,11 +116,16 @@ public AWSS3Staging( String accessKeyId, String s3BucketName, String secretAccessKey) { - this(accessKeyId, Optional.empty(), Optional.empty(), s3BucketName, Optional.empty(), Optional.empty(), secretAccessKey); + this(accessKeyId, Optional.empty(), Optional.empty(), + s3BucketName, Optional.empty(), Optional.empty(), + secretAccessKey); } /** - * This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. See <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">AWS docs</a> on how to generate an access key ID and secret access key. + * This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to + * the given bucket. See AWS + * docs on how to generate an access key ID and secret access key. */ @JsonIgnore public String accessKeyId() { @@ -129,7 +146,9 @@ public DestinationRedshiftMethod method() { } /** - * Whether to delete the staging files from S3 after completing the sync. See <a href="https://docs.airbyte.com/integrations/destinations/redshift/#:~:text=the%20root%20directory.-,Purge%20Staging%20Data,-Whether%20to%20delete"> docs</a> for details. + * Whether to delete the staging files from S3 after completing the sync. See + * docs for details. */ @JsonIgnore public Optional purgeStagingData() { @@ -145,7 +164,10 @@ public String s3BucketName() { } /** - * The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/defining-bucket-names-data-lakes/faq.html#:~:text=be%20globally%20unique.-,For%20S3%20bucket%20paths,-%2C%20you%20can%20use">path's name recommendations</a> for more details. + * The directory under the S3 bucket where data will be written. If not provided, then defaults to the + * root directory. See path's + * name recommendations for more details. */ @JsonIgnore public Optional s3BucketPath() { @@ -162,19 +184,25 @@ public Optional s3BucketRegion() { } /** - * The corresponding secret to the above access key id. See <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">AWS docs</a> on how to generate an access key ID and secret access key. + * The corresponding secret to the above access key id. See AWS + * docs on how to generate an access key ID and secret access key. */ @JsonIgnore public String secretAccessKey() { return secretAccessKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. See <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">AWS docs</a> on how to generate an access key ID and secret access key. + * This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to + * the given bucket. See AWS + * docs on how to generate an access key ID and secret access key. */ public AWSS3Staging withAccessKeyId(String accessKeyId) { Utils.checkNotNull(accessKeyId, "accessKeyId"); @@ -191,6 +219,7 @@ public AWSS3Staging withFileNamePattern(String fileNamePattern) { return this; } + /** * The pattern allows you to set the file-name format for the S3 staging file(s) */ @@ -201,7 +230,9 @@ public AWSS3Staging withFileNamePattern(Optional fileNamePattern) { } /** - * Whether to delete the staging files from S3 after completing the sync. See <a href="https://docs.airbyte.com/integrations/destinations/redshift/#:~:text=the%20root%20directory.-,Purge%20Staging%20Data,-Whether%20to%20delete"> docs</a> for details. + * Whether to delete the staging files from S3 after completing the sync. See + * docs for details. */ public AWSS3Staging withPurgeStagingData(boolean purgeStagingData) { Utils.checkNotNull(purgeStagingData, "purgeStagingData"); @@ -209,8 +240,11 @@ public AWSS3Staging withPurgeStagingData(boolean purgeStagingData) { return this; } + /** - * Whether to delete the staging files from S3 after completing the sync. See <a href="https://docs.airbyte.com/integrations/destinations/redshift/#:~:text=the%20root%20directory.-,Purge%20Staging%20Data,-Whether%20to%20delete"> docs</a> for details. + * Whether to delete the staging files from S3 after completing the sync. See + * docs for details. */ public AWSS3Staging withPurgeStagingData(Optional purgeStagingData) { Utils.checkNotNull(purgeStagingData, "purgeStagingData"); @@ -228,7 +262,10 @@ public AWSS3Staging withS3BucketName(String s3BucketName) { } /** - * The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/defining-bucket-names-data-lakes/faq.html#:~:text=be%20globally%20unique.-,For%20S3%20bucket%20paths,-%2C%20you%20can%20use">path's name recommendations</a> for more details. + * The directory under the S3 bucket where data will be written. If not provided, then defaults to the + * root directory. See path's + * name recommendations for more details. */ public AWSS3Staging withS3BucketPath(String s3BucketPath) { Utils.checkNotNull(s3BucketPath, "s3BucketPath"); @@ -236,8 +273,12 @@ public AWSS3Staging withS3BucketPath(String s3BucketPath) { return this; } + /** - * The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/defining-bucket-names-data-lakes/faq.html#:~:text=be%20globally%20unique.-,For%20S3%20bucket%20paths,-%2C%20you%20can%20use">path's name recommendations</a> for more details. + * The directory under the S3 bucket where data will be written. If not provided, then defaults to the + * root directory. See path's + * name recommendations for more details. */ public AWSS3Staging withS3BucketPath(Optional s3BucketPath) { Utils.checkNotNull(s3BucketPath, "s3BucketPath"); @@ -254,6 +295,7 @@ public AWSS3Staging withS3BucketRegion(DestinationRedshiftS3BucketRegion s3Bucke return this; } + /** * The region of the S3 staging bucket. */ @@ -264,7 +306,9 @@ public AWSS3Staging withS3BucketRegion(OptionalAWS + * docs on how to generate an access key ID and secret access key. */ public AWSS3Staging withSecretAccessKey(String secretAccessKey) { Utils.checkNotNull(secretAccessKey, "secretAccessKey"); @@ -272,7 +316,6 @@ public AWSS3Staging withSecretAccessKey(String secretAccessKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -283,27 +326,22 @@ public boolean equals(java.lang.Object o) { } AWSS3Staging other = (AWSS3Staging) o; return - Objects.deepEquals(this.accessKeyId, other.accessKeyId) && - Objects.deepEquals(this.fileNamePattern, other.fileNamePattern) && - Objects.deepEquals(this.method, other.method) && - Objects.deepEquals(this.purgeStagingData, other.purgeStagingData) && - Objects.deepEquals(this.s3BucketName, other.s3BucketName) && - Objects.deepEquals(this.s3BucketPath, other.s3BucketPath) && - Objects.deepEquals(this.s3BucketRegion, other.s3BucketRegion) && - Objects.deepEquals(this.secretAccessKey, other.secretAccessKey); + Utils.enhancedDeepEquals(this.accessKeyId, other.accessKeyId) && + Utils.enhancedDeepEquals(this.fileNamePattern, other.fileNamePattern) && + Utils.enhancedDeepEquals(this.method, other.method) && + Utils.enhancedDeepEquals(this.purgeStagingData, other.purgeStagingData) && + Utils.enhancedDeepEquals(this.s3BucketName, other.s3BucketName) && + Utils.enhancedDeepEquals(this.s3BucketPath, other.s3BucketPath) && + Utils.enhancedDeepEquals(this.s3BucketRegion, other.s3BucketRegion) && + Utils.enhancedDeepEquals(this.secretAccessKey, other.secretAccessKey); } @Override public int hashCode() { - return Objects.hash( - accessKeyId, - fileNamePattern, - method, - purgeStagingData, - s3BucketName, - s3BucketPath, - s3BucketRegion, - secretAccessKey); + return Utils.enhancedHash( + accessKeyId, fileNamePattern, method, + purgeStagingData, s3BucketName, s3BucketPath, + s3BucketRegion, secretAccessKey); } @Override @@ -318,29 +356,34 @@ public String toString() { "s3BucketRegion", s3BucketRegion, "secretAccessKey", secretAccessKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKeyId; - + private Optional fileNamePattern = Optional.empty(); - + private Optional purgeStagingData; - + private String s3BucketName; - + private Optional s3BucketPath = Optional.empty(); - + private Optional s3BucketRegion; - + private String secretAccessKey; - + private Builder() { // force use of static builder() method } + /** - * This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to the given bucket. See <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">AWS docs</a> on how to generate an access key ID and secret access key. + * This ID grants access to the above S3 staging bucket. Airbyte requires Read and Write permissions to + * the given bucket. See AWS + * docs on how to generate an access key ID and secret access key. */ public Builder accessKeyId(String accessKeyId) { Utils.checkNotNull(accessKeyId, "accessKeyId"); @@ -348,6 +391,7 @@ public Builder accessKeyId(String accessKeyId) { return this; } + /** * The pattern allows you to set the file-name format for the S3 staging file(s) */ @@ -366,8 +410,11 @@ public Builder fileNamePattern(Optional fileNamePattern) { return this; } + /** - * Whether to delete the staging files from S3 after completing the sync. See <a href="https://docs.airbyte.com/integrations/destinations/redshift/#:~:text=the%20root%20directory.-,Purge%20Staging%20Data,-Whether%20to%20delete"> docs</a> for details. + * Whether to delete the staging files from S3 after completing the sync. See + * docs for details. */ public Builder purgeStagingData(boolean purgeStagingData) { Utils.checkNotNull(purgeStagingData, "purgeStagingData"); @@ -376,7 +423,9 @@ public Builder purgeStagingData(boolean purgeStagingData) { } /** - * Whether to delete the staging files from S3 after completing the sync. See <a href="https://docs.airbyte.com/integrations/destinations/redshift/#:~:text=the%20root%20directory.-,Purge%20Staging%20Data,-Whether%20to%20delete"> docs</a> for details. + * Whether to delete the staging files from S3 after completing the sync. See + * docs for details. */ public Builder purgeStagingData(Optional purgeStagingData) { Utils.checkNotNull(purgeStagingData, "purgeStagingData"); @@ -384,6 +433,7 @@ public Builder purgeStagingData(Optional purgeStagingData) { return this; } + /** * The name of the staging S3 bucket. */ @@ -393,8 +443,12 @@ public Builder s3BucketName(String s3BucketName) { return this; } + /** - * The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/defining-bucket-names-data-lakes/faq.html#:~:text=be%20globally%20unique.-,For%20S3%20bucket%20paths,-%2C%20you%20can%20use">path's name recommendations</a> for more details. + * The directory under the S3 bucket where data will be written. If not provided, then defaults to the + * root directory. See path's + * name recommendations for more details. */ public Builder s3BucketPath(String s3BucketPath) { Utils.checkNotNull(s3BucketPath, "s3BucketPath"); @@ -403,7 +457,10 @@ public Builder s3BucketPath(String s3BucketPath) { } /** - * The directory under the S3 bucket where data will be written. If not provided, then defaults to the root directory. See <a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/defining-bucket-names-data-lakes/faq.html#:~:text=be%20globally%20unique.-,For%20S3%20bucket%20paths,-%2C%20you%20can%20use">path's name recommendations</a> for more details. + * The directory under the S3 bucket where data will be written. If not provided, then defaults to the + * root directory. See path's + * name recommendations for more details. */ public Builder s3BucketPath(Optional s3BucketPath) { Utils.checkNotNull(s3BucketPath, "s3BucketPath"); @@ -411,6 +468,7 @@ public Builder s3BucketPath(Optional s3BucketPath) { return this; } + /** * The region of the S3 staging bucket. */ @@ -429,15 +487,18 @@ public Builder s3BucketRegion(OptionalAWS + * docs on how to generate an access key ID and secret access key. */ public Builder secretAccessKey(String secretAccessKey) { Utils.checkNotNull(secretAccessKey, "secretAccessKey"); this.secretAccessKey = secretAccessKey; return this; } - + public AWSS3Staging build() { if (purgeStagingData == null) { purgeStagingData = _SINGLETON_VALUE_PurgeStagingData.value(); @@ -445,16 +506,14 @@ public AWSS3Staging build() { if (s3BucketRegion == null) { s3BucketRegion = _SINGLETON_VALUE_S3BucketRegion.value(); } + return new AWSS3Staging( - accessKeyId, - fileNamePattern, - purgeStagingData, - s3BucketName, - s3BucketPath, - s3BucketRegion, + accessKeyId, fileNamePattern, purgeStagingData, + s3BucketName, s3BucketPath, s3BucketRegion, secretAccessKey); } + private static final LazySingletonValue _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", diff --git a/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java b/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java index 83a433f54..7e326123a 100644 --- a/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java +++ b/src/main/java/com/airbyte/api/models/shared/AWSSellerPartnerAccountType.java @@ -20,7 +20,7 @@ public enum AWSSellerPartnerAccountType { @JsonValue private final String value; - private AWSSellerPartnerAccountType(String value) { + AWSSellerPartnerAccountType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AccessToken.java b/src/main/java/com/airbyte/api/models/shared/AccessToken.java index c72c631b0..8bf178c7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/AccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/AccessToken.java @@ -14,17 +14,18 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class AccessToken { +public class AccessToken { /** - * Drift Access Token. See the <a href="https://docs.airbyte.com/integrations/sources/drift">docs</a> for more information on how to generate this key. + * Drift Access Token. See the docs + * for more information on how to generate this key. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; @@ -38,7 +39,8 @@ public AccessToken( } /** - * Drift Access Token. See the <a href="https://docs.airbyte.com/integrations/sources/drift">docs</a> for more information on how to generate this key. + * Drift Access Token. See the docs + * for more information on how to generate this key. */ @JsonIgnore public String accessToken() { @@ -51,12 +53,14 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Drift Access Token. See the <a href="https://docs.airbyte.com/integrations/sources/drift">docs</a> for more information on how to generate this key. + * Drift Access Token. See the docs + * for more information on how to generate this key. */ public AccessToken withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -64,7 +68,6 @@ public AccessToken withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +78,14 @@ public boolean equals(java.lang.Object o) { } AccessToken other = (AccessToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( - accessToken, - credentials); + return Utils.enhancedHash( + accessToken, credentials); } @Override @@ -92,29 +94,34 @@ public String toString() { "accessToken", accessToken, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * Drift Access Token. See the <a href="https://docs.airbyte.com/integrations/sources/drift">docs</a> for more information on how to generate this key. + * Drift Access Token. See the docs + * for more information on how to generate this key. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public AccessToken build() { + return new AccessToken( accessToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_Credentials = new LazySingletonValue<>( "credentials", diff --git a/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java b/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java index 107e03cf0..f01214052 100644 --- a/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java +++ b/src/main/java/com/airbyte/api/models/shared/AccessTokenIsRequiredForAuthenticationRequests.java @@ -14,7 +14,7 @@ public enum AccessTokenIsRequiredForAuthenticationRequests { @JsonValue private final String value; - private AccessTokenIsRequiredForAuthenticationRequests(String value) { + AccessTokenIsRequiredForAuthenticationRequests(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AccountNames.java b/src/main/java/com/airbyte/api/models/shared/AccountNames.java index 20252bb43..0612d4392 100644 --- a/src/main/java/com/airbyte/api/models/shared/AccountNames.java +++ b/src/main/java/com/airbyte/api/models/shared/AccountNames.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * AccountNames @@ -17,7 +16,6 @@ *

Account Names Predicates Config. */ public class AccountNames { - /** * Account Name is a string value for comparing with the specified predicate. */ @@ -25,7 +23,10 @@ public class AccountNames { private String name; /** - * An Operator that will be used to filter accounts. The Contains predicate has features for matching words, matching inflectional forms of words, searching using wildcard characters, and searching using proximity. The Equals is used to return all rows where account name is equal(=) to the string that you provided + * An Operator that will be used to filter accounts. The Contains predicate has features for matching + * words, matching inflectional forms of words, searching using wildcard characters, and searching + * using proximity. The Equals is used to return all rows where account name is equal(=) to the string + * that you provided */ @JsonProperty("operator") private Operator operator; @@ -49,16 +50,20 @@ public String name() { } /** - * An Operator that will be used to filter accounts. The Contains predicate has features for matching words, matching inflectional forms of words, searching using wildcard characters, and searching using proximity. The Equals is used to return all rows where account name is equal(=) to the string that you provided + * An Operator that will be used to filter accounts. The Contains predicate has features for matching + * words, matching inflectional forms of words, searching using wildcard characters, and searching + * using proximity. The Equals is used to return all rows where account name is equal(=) to the string + * that you provided */ @JsonIgnore public Operator operator() { return operator; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Account Name is a string value for comparing with the specified predicate. @@ -70,7 +75,10 @@ public AccountNames withName(String name) { } /** - * An Operator that will be used to filter accounts. The Contains predicate has features for matching words, matching inflectional forms of words, searching using wildcard characters, and searching using proximity. The Equals is used to return all rows where account name is equal(=) to the string that you provided + * An Operator that will be used to filter accounts. The Contains predicate has features for matching + * words, matching inflectional forms of words, searching using wildcard characters, and searching + * using proximity. The Equals is used to return all rows where account name is equal(=) to the string + * that you provided */ public AccountNames withOperator(Operator operator) { Utils.checkNotNull(operator, "operator"); @@ -78,7 +86,6 @@ public AccountNames withOperator(Operator operator) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -89,15 +96,14 @@ public boolean equals(java.lang.Object o) { } AccountNames other = (AccountNames) o; return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.operator, other.operator); + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.operator, other.operator); } @Override public int hashCode() { - return Objects.hash( - name, - operator); + return Utils.enhancedHash( + name, operator); } @Override @@ -106,17 +112,19 @@ public String toString() { "name", name, "operator", operator); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String name; - + private Operator operator; - + private Builder() { // force use of static builder() method } + /** * Account Name is a string value for comparing with the specified predicate. */ @@ -126,19 +134,24 @@ public Builder name(String name) { return this; } + /** - * An Operator that will be used to filter accounts. The Contains predicate has features for matching words, matching inflectional forms of words, searching using wildcard characters, and searching using proximity. The Equals is used to return all rows where account name is equal(=) to the string that you provided + * An Operator that will be used to filter accounts. The Contains predicate has features for matching + * words, matching inflectional forms of words, searching using wildcard characters, and searching + * using proximity. The Equals is used to return all rows where account name is equal(=) to the string + * that you provided */ public Builder operator(Operator operator) { Utils.checkNotNull(operator, "operator"); this.operator = operator; return this; } - + public AccountNames build() { + return new AccountNames( - name, - operator); + name, operator); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java b/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java index 8d2cf8527..c2bb7ee80 100644 --- a/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java +++ b/src/main/java/com/airbyte/api/models/shared/ActionReportTime.java @@ -20,7 +20,7 @@ public enum ActionReportTime { @JsonValue private final String value; - private ActionReportTime(String value) { + ActionReportTime(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Activecampaign.java b/src/main/java/com/airbyte/api/models/shared/Activecampaign.java index 7770075ea..c86418bad 100644 --- a/src/main/java/com/airbyte/api/models/shared/Activecampaign.java +++ b/src/main/java/com/airbyte/api/models/shared/Activecampaign.java @@ -14,7 +14,7 @@ public enum Activecampaign { @JsonValue private final String value; - private Activecampaign(String value) { + Activecampaign(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ActorTypeEnum.java b/src/main/java/com/airbyte/api/models/shared/ActorTypeEnum.java index 87c9bc29e..04350b309 100644 --- a/src/main/java/com/airbyte/api/models/shared/ActorTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ActorTypeEnum.java @@ -20,7 +20,7 @@ public enum ActorTypeEnum { @JsonValue private final String value; - private ActorTypeEnum(String value) { + ActorTypeEnum(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AdAnalyticsReportConfiguration.java b/src/main/java/com/airbyte/api/models/shared/AdAnalyticsReportConfiguration.java index a7f99badb..a2465d9f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/AdAnalyticsReportConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/AdAnalyticsReportConfiguration.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * AdAnalyticsReportConfiguration @@ -17,7 +16,6 @@ *

Config for custom ad Analytics Report */ public class AdAnalyticsReportConfiguration { - /** * The name for the custom report. */ @@ -25,13 +23,18 @@ public class AdAnalyticsReportConfiguration { private String name; /** - * Choose a category to pivot your analytics report around. This selection will organize your data based on the chosen attribute, allowing you to analyze trends and performance from different perspectives. + * Choose a category to pivot your analytics report around. This selection will organize your data + * based on the chosen attribute, allowing you to analyze trends and performance from different + * perspectives. */ @JsonProperty("pivot_by") private PivotCategory pivotBy; /** - * Choose how to group the data in your report by time. The options are:<br>- 'ALL': A single result summarizing the entire time range.<br>- 'DAILY': Group results by each day.<br>- 'MONTHLY': Group results by each month.<br>- 'YEARLY': Group results by each year.<br>Selecting a time grouping helps you analyze trends and patterns over different time periods. + * Choose how to group the data in your report by time. The options are:
- 'ALL': A single result + * summarizing the entire time range.
- 'DAILY': Group results by each day.
- 'MONTHLY': Group + * results by each month.
- 'YEARLY': Group results by each year.
Selecting a time grouping helps + * you analyze trends and patterns over different time periods. */ @JsonProperty("time_granularity") private TimeGranularity timeGranularity; @@ -58,7 +61,9 @@ public String name() { } /** - * Choose a category to pivot your analytics report around. This selection will organize your data based on the chosen attribute, allowing you to analyze trends and performance from different perspectives. + * Choose a category to pivot your analytics report around. This selection will organize your data + * based on the chosen attribute, allowing you to analyze trends and performance from different + * perspectives. */ @JsonIgnore public PivotCategory pivotBy() { @@ -66,16 +71,20 @@ public PivotCategory pivotBy() { } /** - * Choose how to group the data in your report by time. The options are:<br>- 'ALL': A single result summarizing the entire time range.<br>- 'DAILY': Group results by each day.<br>- 'MONTHLY': Group results by each month.<br>- 'YEARLY': Group results by each year.<br>Selecting a time grouping helps you analyze trends and patterns over different time periods. + * Choose how to group the data in your report by time. The options are:
- 'ALL': A single result + * summarizing the entire time range.
- 'DAILY': Group results by each day.
- 'MONTHLY': Group + * results by each month.
- 'YEARLY': Group results by each year.
Selecting a time grouping helps + * you analyze trends and patterns over different time periods. */ @JsonIgnore public TimeGranularity timeGranularity() { return timeGranularity; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The name for the custom report. @@ -87,7 +96,9 @@ public AdAnalyticsReportConfiguration withName(String name) { } /** - * Choose a category to pivot your analytics report around. This selection will organize your data based on the chosen attribute, allowing you to analyze trends and performance from different perspectives. + * Choose a category to pivot your analytics report around. This selection will organize your data + * based on the chosen attribute, allowing you to analyze trends and performance from different + * perspectives. */ public AdAnalyticsReportConfiguration withPivotBy(PivotCategory pivotBy) { Utils.checkNotNull(pivotBy, "pivotBy"); @@ -96,7 +107,10 @@ public AdAnalyticsReportConfiguration withPivotBy(PivotCategory pivotBy) { } /** - * Choose how to group the data in your report by time. The options are:<br>- 'ALL': A single result summarizing the entire time range.<br>- 'DAILY': Group results by each day.<br>- 'MONTHLY': Group results by each month.<br>- 'YEARLY': Group results by each year.<br>Selecting a time grouping helps you analyze trends and patterns over different time periods. + * Choose how to group the data in your report by time. The options are:
- 'ALL': A single result + * summarizing the entire time range.
- 'DAILY': Group results by each day.
- 'MONTHLY': Group + * results by each month.
- 'YEARLY': Group results by each year.
Selecting a time grouping helps + * you analyze trends and patterns over different time periods. */ public AdAnalyticsReportConfiguration withTimeGranularity(TimeGranularity timeGranularity) { Utils.checkNotNull(timeGranularity, "timeGranularity"); @@ -104,7 +118,6 @@ public AdAnalyticsReportConfiguration withTimeGranularity(TimeGranularity timeGr return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -115,17 +128,15 @@ public boolean equals(java.lang.Object o) { } AdAnalyticsReportConfiguration other = (AdAnalyticsReportConfiguration) o; return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.pivotBy, other.pivotBy) && - Objects.deepEquals(this.timeGranularity, other.timeGranularity); + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.pivotBy, other.pivotBy) && + Utils.enhancedDeepEquals(this.timeGranularity, other.timeGranularity); } @Override public int hashCode() { - return Objects.hash( - name, - pivotBy, - timeGranularity); + return Utils.enhancedHash( + name, pivotBy, timeGranularity); } @Override @@ -135,19 +146,21 @@ public String toString() { "pivotBy", pivotBy, "timeGranularity", timeGranularity); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String name; - + private PivotCategory pivotBy; - + private TimeGranularity timeGranularity; - + private Builder() { // force use of static builder() method } + /** * The name for the custom report. */ @@ -157,8 +170,11 @@ public Builder name(String name) { return this; } + /** - * Choose a category to pivot your analytics report around. This selection will organize your data based on the chosen attribute, allowing you to analyze trends and performance from different perspectives. + * Choose a category to pivot your analytics report around. This selection will organize your data + * based on the chosen attribute, allowing you to analyze trends and performance from different + * perspectives. */ public Builder pivotBy(PivotCategory pivotBy) { Utils.checkNotNull(pivotBy, "pivotBy"); @@ -166,20 +182,24 @@ public Builder pivotBy(PivotCategory pivotBy) { return this; } + /** - * Choose how to group the data in your report by time. The options are:<br>- 'ALL': A single result summarizing the entire time range.<br>- 'DAILY': Group results by each day.<br>- 'MONTHLY': Group results by each month.<br>- 'YEARLY': Group results by each year.<br>Selecting a time grouping helps you analyze trends and patterns over different time periods. + * Choose how to group the data in your report by time. The options are:
- 'ALL': A single result + * summarizing the entire time range.
- 'DAILY': Group results by each day.
- 'MONTHLY': Group + * results by each month.
- 'YEARLY': Group results by each year.
Selecting a time grouping helps + * you analyze trends and patterns over different time periods. */ public Builder timeGranularity(TimeGranularity timeGranularity) { Utils.checkNotNull(timeGranularity, "timeGranularity"); this.timeGranularity = timeGranularity; return this; } - + public AdAnalyticsReportConfiguration build() { + return new AdAnalyticsReportConfiguration( - name, - pivotBy, - timeGranularity); + name, pivotBy, timeGranularity); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Agilecrm.java b/src/main/java/com/airbyte/api/models/shared/Agilecrm.java index 254029440..4ab810238 100644 --- a/src/main/java/com/airbyte/api/models/shared/Agilecrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Agilecrm.java @@ -14,7 +14,7 @@ public enum Agilecrm { @JsonValue private final String value; - private Agilecrm(String value) { + Agilecrm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Aha.java b/src/main/java/com/airbyte/api/models/shared/Aha.java index fcf630fd3..ca5c21589 100644 --- a/src/main/java/com/airbyte/api/models/shared/Aha.java +++ b/src/main/java/com/airbyte/api/models/shared/Aha.java @@ -14,7 +14,7 @@ public enum Aha { @JsonValue private final String value; - private Aha(String value) { + Aha(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Airbyte.java b/src/main/java/com/airbyte/api/models/shared/Airbyte.java index 6b6d7cf65..dd05ed49b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Airbyte.java +++ b/src/main/java/com/airbyte/api/models/shared/Airbyte.java @@ -14,7 +14,7 @@ public enum Airbyte { @JsonValue private final String value; - private Airbyte(String value) { + Airbyte(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AirbyteApiConnectionSchedule.java b/src/main/java/com/airbyte/api/models/shared/AirbyteApiConnectionSchedule.java index 277c5edbc..537330361 100644 --- a/src/main/java/com/airbyte/api/models/shared/AirbyteApiConnectionSchedule.java +++ b/src/main/java/com/airbyte/api/models/shared/AirbyteApiConnectionSchedule.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -25,6 +24,7 @@ public class AirbyteApiConnectionSchedule { @JsonProperty("cronExpression") private Optional cronExpression; + @JsonProperty("scheduleType") private ScheduleTypeEnum scheduleType; @@ -53,9 +53,10 @@ public ScheduleTypeEnum scheduleType() { return scheduleType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public AirbyteApiConnectionSchedule withCronExpression(String cronExpression) { Utils.checkNotNull(cronExpression, "cronExpression"); @@ -63,6 +64,7 @@ public AirbyteApiConnectionSchedule withCronExpression(String cronExpression) { return this; } + public AirbyteApiConnectionSchedule withCronExpression(Optional cronExpression) { Utils.checkNotNull(cronExpression, "cronExpression"); this.cronExpression = cronExpression; @@ -75,7 +77,6 @@ public AirbyteApiConnectionSchedule withScheduleType(ScheduleTypeEnum scheduleTy return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,15 +87,14 @@ public boolean equals(java.lang.Object o) { } AirbyteApiConnectionSchedule other = (AirbyteApiConnectionSchedule) o; return - Objects.deepEquals(this.cronExpression, other.cronExpression) && - Objects.deepEquals(this.scheduleType, other.scheduleType); + Utils.enhancedDeepEquals(this.cronExpression, other.cronExpression) && + Utils.enhancedDeepEquals(this.scheduleType, other.scheduleType); } @Override public int hashCode() { - return Objects.hash( - cronExpression, - scheduleType); + return Utils.enhancedHash( + cronExpression, scheduleType); } @Override @@ -103,17 +103,19 @@ public String toString() { "cronExpression", cronExpression, "scheduleType", scheduleType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional cronExpression = Optional.empty(); - + private ScheduleTypeEnum scheduleType; - + private Builder() { // force use of static builder() method } + public Builder cronExpression(String cronExpression) { Utils.checkNotNull(cronExpression, "cronExpression"); this.cronExpression = Optional.ofNullable(cronExpression); @@ -126,16 +128,18 @@ public Builder cronExpression(Optional cronExpression) { return this; } + public Builder scheduleType(ScheduleTypeEnum scheduleType) { Utils.checkNotNull(scheduleType, "scheduleType"); this.scheduleType = scheduleType; return this; } - + public AirbyteApiConnectionSchedule build() { + return new AirbyteApiConnectionSchedule( - cronExpression, - scheduleType); + cronExpression, scheduleType); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Aircall.java b/src/main/java/com/airbyte/api/models/shared/Aircall.java index 39dde7138..8e964c666 100644 --- a/src/main/java/com/airbyte/api/models/shared/Aircall.java +++ b/src/main/java/com/airbyte/api/models/shared/Aircall.java @@ -14,7 +14,7 @@ public enum Aircall { @JsonValue private final String value; - private Aircall(String value) { + Aircall(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Airtable.java b/src/main/java/com/airbyte/api/models/shared/Airtable.java index 6dc663a22..d0d7c0908 100644 --- a/src/main/java/com/airbyte/api/models/shared/Airtable.java +++ b/src/main/java/com/airbyte/api/models/shared/Airtable.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Airtable { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Airtable withCredentials(Credentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Airtable withCredentials(Credentials credentials) { return this; } + public Airtable withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Airtable other = (Airtable) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Airtable.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(Credentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Airtable build() { + return new Airtable( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Akeneo.java b/src/main/java/com/airbyte/api/models/shared/Akeneo.java index 7585f7abe..ce77a621e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Akeneo.java +++ b/src/main/java/com/airbyte/api/models/shared/Akeneo.java @@ -14,7 +14,7 @@ public enum Akeneo { @JsonValue private final String value; - private Akeneo(String value) { + Akeneo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Algolia.java b/src/main/java/com/airbyte/api/models/shared/Algolia.java index 52dd05393..505022fda 100644 --- a/src/main/java/com/airbyte/api/models/shared/Algolia.java +++ b/src/main/java/com/airbyte/api/models/shared/Algolia.java @@ -14,7 +14,7 @@ public enum Algolia { @JsonValue private final String value; - private Algolia(String value) { + Algolia(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Allow.java b/src/main/java/com/airbyte/api/models/shared/Allow.java index f2103f10d..c31f3a9c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Allow.java +++ b/src/main/java/com/airbyte/api/models/shared/Allow.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class Allow { @JsonCreator public Allow() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } Allow other = (Allow) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(Allow.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public Allow build() { + return new Allow( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/AlpacaBrokerApi.java b/src/main/java/com/airbyte/api/models/shared/AlpacaBrokerApi.java index 16197ec37..94bf64b9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/AlpacaBrokerApi.java +++ b/src/main/java/com/airbyte/api/models/shared/AlpacaBrokerApi.java @@ -14,7 +14,7 @@ public enum AlpacaBrokerApi { @JsonValue private final String value; - private AlpacaBrokerApi(String value) { + AlpacaBrokerApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AlphaVantage.java b/src/main/java/com/airbyte/api/models/shared/AlphaVantage.java index e9dcb0ae6..f963fb225 100644 --- a/src/main/java/com/airbyte/api/models/shared/AlphaVantage.java +++ b/src/main/java/com/airbyte/api/models/shared/AlphaVantage.java @@ -14,7 +14,7 @@ public enum AlphaVantage { @JsonValue private final String value; - private AlphaVantage(String value) { + AlphaVantage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AmazonAds.java b/src/main/java/com/airbyte/api/models/shared/AmazonAds.java index f3ef29bfb..89d4b39d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/AmazonAds.java +++ b/src/main/java/com/airbyte/api/models/shared/AmazonAds.java @@ -11,20 +11,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class AmazonAds { +public class AmazonAds { /** - * The client ID of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client ID of your Amazon Ads developer application. See the docs + * for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * The client secret of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client secret of your Amazon Ads developer application. See the docs + * for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") @@ -45,7 +48,9 @@ public AmazonAds() { } /** - * The client ID of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client ID of your Amazon Ads developer application. See the docs + * for more information. */ @JsonIgnore public Optional clientId() { @@ -53,19 +58,24 @@ public Optional clientId() { } /** - * The client secret of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client secret of your Amazon Ads developer application. See the docs + * for more information. */ @JsonIgnore public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The client ID of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client ID of your Amazon Ads developer application. See the docs + * for more information. */ public AmazonAds withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -73,8 +83,11 @@ public AmazonAds withClientId(String clientId) { return this; } + /** - * The client ID of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client ID of your Amazon Ads developer application. See the docs + * for more information. */ public AmazonAds withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +96,9 @@ public AmazonAds withClientId(Optional clientId) { } /** - * The client secret of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client secret of your Amazon Ads developer application. See the docs + * for more information. */ public AmazonAds withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -91,8 +106,11 @@ public AmazonAds withClientSecret(String clientSecret) { return this; } + /** - * The client secret of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client secret of your Amazon Ads developer application. See the docs + * for more information. */ public AmazonAds withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -100,7 +118,6 @@ public AmazonAds withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +128,14 @@ public boolean equals(java.lang.Object o) { } AmazonAds other = (AmazonAds) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,19 +144,23 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The client ID of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client ID of your Amazon Ads developer application. See the docs + * for more information. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -149,7 +169,9 @@ public Builder clientId(String clientId) { } /** - * The client ID of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client ID of your Amazon Ads developer application. See the docs + * for more information. */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -157,8 +179,11 @@ public Builder clientId(Optional clientId) { return this; } + /** - * The client secret of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client secret of your Amazon Ads developer application. See the docs + * for more information. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -167,18 +192,21 @@ public Builder clientSecret(String clientSecret) { } /** - * The client secret of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client secret of your Amazon Ads developer application. See the docs + * for more information. */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public AmazonAds build() { + return new AmazonAds( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AmazonSellerPartner.java b/src/main/java/com/airbyte/api/models/shared/AmazonSellerPartner.java index 4abcf51df..c8538ef34 100644 --- a/src/main/java/com/airbyte/api/models/shared/AmazonSellerPartner.java +++ b/src/main/java/com/airbyte/api/models/shared/AmazonSellerPartner.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class AmazonSellerPartner { +public class AmazonSellerPartner { /** * Your Amazon Application ID. */ @@ -78,9 +77,10 @@ public Optional lwaClientSecret() { return lwaClientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your Amazon Application ID. @@ -91,6 +91,7 @@ public AmazonSellerPartner withAppId(String appId) { return this; } + /** * Your Amazon Application ID. */ @@ -109,6 +110,7 @@ public AmazonSellerPartner withLwaAppId(String lwaAppId) { return this; } + /** * Your Login with Amazon Client ID. */ @@ -127,6 +129,7 @@ public AmazonSellerPartner withLwaClientSecret(String lwaClientSecret) { return this; } + /** * Your Login with Amazon Client Secret. */ @@ -136,7 +139,6 @@ public AmazonSellerPartner withLwaClientSecret(Optional lwaClientSecret) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -147,17 +149,15 @@ public boolean equals(java.lang.Object o) { } AmazonSellerPartner other = (AmazonSellerPartner) o; return - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.lwaAppId, other.lwaAppId) && - Objects.deepEquals(this.lwaClientSecret, other.lwaClientSecret); + Utils.enhancedDeepEquals(this.appId, other.appId) && + Utils.enhancedDeepEquals(this.lwaAppId, other.lwaAppId) && + Utils.enhancedDeepEquals(this.lwaClientSecret, other.lwaClientSecret); } @Override public int hashCode() { - return Objects.hash( - appId, - lwaAppId, - lwaClientSecret); + return Utils.enhancedHash( + appId, lwaAppId, lwaClientSecret); } @Override @@ -167,19 +167,21 @@ public String toString() { "lwaAppId", lwaAppId, "lwaClientSecret", lwaClientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional appId = Optional.empty(); - + private Optional lwaAppId = Optional.empty(); - + private Optional lwaClientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Your Amazon Application ID. */ @@ -198,6 +200,7 @@ public Builder appId(Optional appId) { return this; } + /** * Your Login with Amazon Client ID. */ @@ -216,6 +219,7 @@ public Builder lwaAppId(Optional lwaAppId) { return this; } + /** * Your Login with Amazon Client Secret. */ @@ -233,12 +237,12 @@ public Builder lwaClientSecret(Optional lwaClientSecret) { this.lwaClientSecret = lwaClientSecret; return this; } - + public AmazonSellerPartner build() { + return new AmazonSellerPartner( - appId, - lwaAppId, - lwaClientSecret); + appId, lwaAppId, lwaClientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AmazonSqs.java b/src/main/java/com/airbyte/api/models/shared/AmazonSqs.java index f3f9b3120..e71e5e0a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/AmazonSqs.java +++ b/src/main/java/com/airbyte/api/models/shared/AmazonSqs.java @@ -14,7 +14,7 @@ public enum AmazonSqs { @JsonValue private final String value; - private AmazonSqs(String value) { + AmazonSqs(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Amplitude.java b/src/main/java/com/airbyte/api/models/shared/Amplitude.java index 27c761901..205f70082 100644 --- a/src/main/java/com/airbyte/api/models/shared/Amplitude.java +++ b/src/main/java/com/airbyte/api/models/shared/Amplitude.java @@ -14,7 +14,7 @@ public enum Amplitude { @JsonValue private final String value; - private Amplitude(String value) { + Amplitude(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AndGroup.java b/src/main/java/com/airbyte/api/models/shared/AndGroup.java index 522c532bb..d62d25a57 100644 --- a/src/main/java/com/airbyte/api/models/shared/AndGroup.java +++ b/src/main/java/com/airbyte/api/models/shared/AndGroup.java @@ -12,7 +12,6 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; /** * AndGroup @@ -24,6 +23,7 @@ public class AndGroup { @JsonProperty("expressions") private List expressions; + @JsonProperty("filter_type") private FilterType filterType; @@ -45,9 +45,10 @@ public FilterType filterType() { return filterType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public AndGroup withExpressions(List expressions) { Utils.checkNotNull(expressions, "expressions"); @@ -55,7 +56,6 @@ public AndGroup withExpressions(List expressions) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +66,14 @@ public boolean equals(java.lang.Object o) { } AndGroup other = (AndGroup) o; return - Objects.deepEquals(this.expressions, other.expressions) && - Objects.deepEquals(this.filterType, other.filterType); + Utils.enhancedDeepEquals(this.expressions, other.expressions) && + Utils.enhancedDeepEquals(this.filterType, other.filterType); } @Override public int hashCode() { - return Objects.hash( - expressions, - filterType); + return Utils.enhancedHash( + expressions, filterType); } @Override @@ -83,26 +82,30 @@ public String toString() { "expressions", expressions, "filterType", filterType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List expressions; - + private Builder() { // force use of static builder() method } + public Builder expressions(List expressions) { Utils.checkNotNull(expressions, "expressions"); this.expressions = expressions; return this; } - + public AndGroup build() { + return new AndGroup( expressions); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterType = new LazySingletonValue<>( "filter_type", diff --git a/src/main/java/com/airbyte/api/models/shared/ApiKeyAuth.java b/src/main/java/com/airbyte/api/models/shared/ApiKeyAuth.java index 2b95e0915..369136b0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ApiKeyAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/ApiKeyAuth.java @@ -14,17 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class ApiKeyAuth { +public class ApiKeyAuth { /** * API Key for the Qdrant instance */ @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -51,9 +51,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key for the Qdrant instance @@ -64,7 +65,6 @@ public ApiKeyAuth withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +75,14 @@ public boolean equals(java.lang.Object o) { } ApiKeyAuth other = (ApiKeyAuth) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - apiKey, - mode); + return Utils.enhancedHash( + apiKey, mode); } @Override @@ -92,15 +91,17 @@ public String toString() { "apiKey", apiKey, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API Key for the Qdrant instance */ @@ -109,12 +110,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public ApiKeyAuth build() { + return new ApiKeyAuth( apiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/ApiKeySecret.java b/src/main/java/com/airbyte/api/models/shared/ApiKeySecret.java index 077834d9d..8d2f7d8bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/ApiKeySecret.java +++ b/src/main/java/com/airbyte/api/models/shared/ApiKeySecret.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * ApiKeySecret @@ -19,7 +18,6 @@ *

Use a api key and secret combination to authenticate */ public class ApiKeySecret { - /** * The Key ID to used when accessing an enterprise Elasticsearch instance. */ @@ -32,6 +30,7 @@ public class ApiKeySecret { @JsonProperty("apiKeySecret") private String apiKeySecret; + @JsonProperty("method") private DestinationElasticsearchSchemasMethod method; @@ -67,9 +66,10 @@ public DestinationElasticsearchSchemasMethod method() { return method; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Key ID to used when accessing an enterprise Elasticsearch instance. @@ -89,7 +89,6 @@ public ApiKeySecret withApiKeySecret(String apiKeySecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,17 +99,15 @@ public boolean equals(java.lang.Object o) { } ApiKeySecret other = (ApiKeySecret) o; return - Objects.deepEquals(this.apiKeyId, other.apiKeyId) && - Objects.deepEquals(this.apiKeySecret, other.apiKeySecret) && - Objects.deepEquals(this.method, other.method); + Utils.enhancedDeepEquals(this.apiKeyId, other.apiKeyId) && + Utils.enhancedDeepEquals(this.apiKeySecret, other.apiKeySecret) && + Utils.enhancedDeepEquals(this.method, other.method); } @Override public int hashCode() { - return Objects.hash( - apiKeyId, - apiKeySecret, - method); + return Utils.enhancedHash( + apiKeyId, apiKeySecret, method); } @Override @@ -120,17 +117,19 @@ public String toString() { "apiKeySecret", apiKeySecret, "method", method); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKeyId; - + private String apiKeySecret; - + private Builder() { // force use of static builder() method } + /** * The Key ID to used when accessing an enterprise Elasticsearch instance. */ @@ -140,6 +139,7 @@ public Builder apiKeyId(String apiKeyId) { return this; } + /** * The secret associated with the API Key ID. */ @@ -148,13 +148,14 @@ public Builder apiKeySecret(String apiKeySecret) { this.apiKeySecret = apiKeySecret; return this; } - + public ApiKeySecret build() { + return new ApiKeySecret( - apiKeyId, - apiKeySecret); + apiKeyId, apiKeySecret); } + private static final LazySingletonValue _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", diff --git a/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java b/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java index 9b04b15ef..9ed737ef6 100644 --- a/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java +++ b/src/main/java/com/airbyte/api/models/shared/ApifyDataset.java @@ -14,7 +14,7 @@ public enum ApifyDataset { @JsonValue private final String value; - private ApifyDataset(String value) { + ApifyDataset(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Appcues.java b/src/main/java/com/airbyte/api/models/shared/Appcues.java index a3bd09e47..11f378c5a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Appcues.java +++ b/src/main/java/com/airbyte/api/models/shared/Appcues.java @@ -14,7 +14,7 @@ public enum Appcues { @JsonValue private final String value; - private Appcues(String value) { + Appcues(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Appfigures.java b/src/main/java/com/airbyte/api/models/shared/Appfigures.java index 93fb23da7..639be3a26 100644 --- a/src/main/java/com/airbyte/api/models/shared/Appfigures.java +++ b/src/main/java/com/airbyte/api/models/shared/Appfigures.java @@ -14,7 +14,7 @@ public enum Appfigures { @JsonValue private final String value; - private Appfigures(String value) { + Appfigures(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Appfollow.java b/src/main/java/com/airbyte/api/models/shared/Appfollow.java index 6209b1bbb..feaee1a98 100644 --- a/src/main/java/com/airbyte/api/models/shared/Appfollow.java +++ b/src/main/java/com/airbyte/api/models/shared/Appfollow.java @@ -14,7 +14,7 @@ public enum Appfollow { @JsonValue private final String value; - private Appfollow(String value) { + Appfollow(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java b/src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java index 2aeb6a6fd..0c7109acb 100644 --- a/src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java +++ b/src/main/java/com/airbyte/api/models/shared/AppleSearchAds.java @@ -14,7 +14,7 @@ public enum AppleSearchAds { @JsonValue private final String value; - private AppleSearchAds(String value) { + AppleSearchAds(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Applications.java b/src/main/java/com/airbyte/api/models/shared/Applications.java index 447ff516c..9ae241684 100644 --- a/src/main/java/com/airbyte/api/models/shared/Applications.java +++ b/src/main/java/com/airbyte/api/models/shared/Applications.java @@ -11,17 +11,19 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class Applications { @JsonProperty("app_api_key") private String appApiKey; + @JsonProperty("app_id") private String appId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("app_name") private Optional appName; @@ -60,9 +62,10 @@ public Optional appName() { return appName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Applications withAppApiKey(String appApiKey) { Utils.checkNotNull(appApiKey, "appApiKey"); @@ -82,13 +85,13 @@ public Applications withAppName(String appName) { return this; } + public Applications withAppName(Optional appName) { Utils.checkNotNull(appName, "appName"); this.appName = appName; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -99,17 +102,15 @@ public boolean equals(java.lang.Object o) { } Applications other = (Applications) o; return - Objects.deepEquals(this.appApiKey, other.appApiKey) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.appName, other.appName); + Utils.enhancedDeepEquals(this.appApiKey, other.appApiKey) && + Utils.enhancedDeepEquals(this.appId, other.appId) && + Utils.enhancedDeepEquals(this.appName, other.appName); } @Override public int hashCode() { - return Objects.hash( - appApiKey, - appId, - appName); + return Utils.enhancedHash( + appApiKey, appId, appName); } @Override @@ -119,31 +120,35 @@ public String toString() { "appId", appId, "appName", appName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String appApiKey; - + private String appId; - + private Optional appName = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder appApiKey(String appApiKey) { Utils.checkNotNull(appApiKey, "appApiKey"); this.appApiKey = appApiKey; return this; } + public Builder appId(String appId) { Utils.checkNotNull(appId, "appId"); this.appId = appId; return this; } + public Builder appName(String appName) { Utils.checkNotNull(appName, "appName"); this.appName = Optional.ofNullable(appName); @@ -155,12 +160,12 @@ public Builder appName(Optional appName) { this.appName = appName; return this; } - + public Applications build() { + return new Applications( - appApiKey, - appId, - appName); + appApiKey, appId, appName); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Appsflyer.java b/src/main/java/com/airbyte/api/models/shared/Appsflyer.java new file mode 100644 index 000000000..75a5164f9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Appsflyer.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Appsflyer { + APPSFLYER("appsflyer"); + + @JsonValue + private final String value; + + Appsflyer(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Appsflyer o: Appsflyer.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Apptivo.java b/src/main/java/com/airbyte/api/models/shared/Apptivo.java index a8eca3217..bb9fbcaaa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Apptivo.java +++ b/src/main/java/com/airbyte/api/models/shared/Apptivo.java @@ -14,7 +14,7 @@ public enum Apptivo { @JsonValue private final String value; - private Apptivo(String value) { + Apptivo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Asana.java b/src/main/java/com/airbyte/api/models/shared/Asana.java index 8dbd95ac6..dd9484cd7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Asana.java +++ b/src/main/java/com/airbyte/api/models/shared/Asana.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Asana { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Asana withCredentials(AsanaCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Asana withCredentials(AsanaCredentials credentials) { return this; } + public Asana withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Asana other = (Asana) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Asana.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(AsanaCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Asana build() { + return new Asana( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AsanaCredentials.java b/src/main/java/com/airbyte/api/models/shared/AsanaCredentials.java index 070103775..31c01c3c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/AsanaCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/AsanaCredentials.java @@ -11,15 +11,16 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class AsanaCredentials { @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") private Optional clientSecret; @@ -48,9 +49,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public AsanaCredentials withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -58,6 +60,7 @@ public AsanaCredentials withClientId(String clientId) { return this; } + public AsanaCredentials withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; @@ -70,13 +73,13 @@ public AsanaCredentials withClientSecret(String clientSecret) { return this; } + public AsanaCredentials withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,15 +90,14 @@ public boolean equals(java.lang.Object o) { } AsanaCredentials other = (AsanaCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -104,17 +106,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = Optional.ofNullable(clientId); @@ -127,6 +131,7 @@ public Builder clientId(Optional clientId) { return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = Optional.ofNullable(clientSecret); @@ -138,11 +143,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public AsanaCredentials build() { + return new AsanaCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Ashby.java b/src/main/java/com/airbyte/api/models/shared/Ashby.java index 9c171d328..31f6bc05e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ashby.java +++ b/src/main/java/com/airbyte/api/models/shared/Ashby.java @@ -14,7 +14,7 @@ public enum Ashby { @JsonValue private final String value; - private Ashby(String value) { + Ashby(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Assemblyai.java b/src/main/java/com/airbyte/api/models/shared/Assemblyai.java index 114815996..fe523b812 100644 --- a/src/main/java/com/airbyte/api/models/shared/Assemblyai.java +++ b/src/main/java/com/airbyte/api/models/shared/Assemblyai.java @@ -14,7 +14,7 @@ public enum Assemblyai { @JsonValue private final String value; - private Assemblyai(String value) { + Assemblyai(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Astra.java b/src/main/java/com/airbyte/api/models/shared/Astra.java index 60d7b8636..86af5462e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Astra.java +++ b/src/main/java/com/airbyte/api/models/shared/Astra.java @@ -14,7 +14,7 @@ public enum Astra { @JsonValue private final String value; - private Astra(String value) { + Astra(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Auth0.java b/src/main/java/com/airbyte/api/models/shared/Auth0.java index 483de4e22..d0cd22a5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Auth0.java +++ b/src/main/java/com/airbyte/api/models/shared/Auth0.java @@ -14,7 +14,7 @@ public enum Auth0 { @JsonValue private final String value; - private Auth0(String value) { + Auth0(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthMethod.java b/src/main/java/com/airbyte/api/models/shared/AuthMethod.java index 8320431cb..9664b08f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthMethod.java @@ -14,7 +14,7 @@ public enum AuthMethod { @JsonValue private final String value; - private AuthMethod(String value) { + AuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthType.java b/src/main/java/com/airbyte/api/models/shared/AuthType.java index 6ee0395a0..93c5fa827 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthType.java @@ -14,7 +14,7 @@ public enum AuthType { @JsonValue private final String value; - private AuthType(String value) { + AuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAPIKey.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAPIKey.java index c8910e8d7..8d0068c42 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAPIKey.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAPIKey.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class AuthenticateViaAPIKey { +public class AuthenticateViaAPIKey { /** - * API Key for making authenticated requests. More instruction on how to find this value in our <a href="https://docs.airbyte.com/integrations/sources/salesloft#setup-guide">docs</a> + * API Key for making authenticated requests. More instruction on how to find this value in our docs */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("auth_type") private SourceSalesloftSchemasAuthType authType; @@ -33,7 +34,8 @@ public AuthenticateViaAPIKey( } /** - * API Key for making authenticated requests. More instruction on how to find this value in our <a href="https://docs.airbyte.com/integrations/sources/salesloft#setup-guide">docs</a> + * API Key for making authenticated requests. More instruction on how to find this value in our docs */ @JsonIgnore public String apiKey() { @@ -45,12 +47,14 @@ public SourceSalesloftSchemasAuthType authType() { return authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API Key for making authenticated requests. More instruction on how to find this value in our <a href="https://docs.airbyte.com/integrations/sources/salesloft#setup-guide">docs</a> + * API Key for making authenticated requests. More instruction on how to find this value in our docs */ public AuthenticateViaAPIKey withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +62,6 @@ public AuthenticateViaAPIKey withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaAPIKey other = (AuthenticateViaAPIKey) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - authType); + return Utils.enhancedHash( + apiKey, authType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiKey", apiKey, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * API Key for making authenticated requests. More instruction on how to find this value in our <a href="https://docs.airbyte.com/integrations/sources/salesloft#setup-guide">docs</a> + * API Key for making authenticated requests. More instruction on how to find this value in our docs */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public AuthenticateViaAPIKey build() { + return new AuthenticateViaAPIKey( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAccessKeys.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAccessKeys.java index 599381c35..2f7f7cbc0 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAccessKeys.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAccessKeys.java @@ -19,9 +19,9 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaAccessKeys { @JsonIgnore @@ -33,6 +33,7 @@ public class AuthenticateViaAccessKeys { @JsonProperty("access_key_id") private String accessKeyId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -82,9 +83,10 @@ public String secretAccessKey() { return secretAccessKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public AuthenticateViaAccessKeys withAdditionalProperty(String key, Object value) { @@ -92,8 +94,7 @@ public AuthenticateViaAccessKeys withAdditionalProperty(String key, Object value Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public AuthenticateViaAccessKeys withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -118,7 +119,6 @@ public AuthenticateViaAccessKeys withSecretAccessKey(String secretAccessKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,18 +129,16 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaAccessKeys other = (AuthenticateViaAccessKeys) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.accessKeyId, other.accessKeyId) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.secretAccessKey, other.secretAccessKey); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.accessKeyId, other.accessKeyId) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.secretAccessKey, other.secretAccessKey); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - accessKeyId, - authType, + return Utils.enhancedHash( + additionalProperties, accessKeyId, authType, secretAccessKey); } @@ -152,15 +150,16 @@ public String toString() { "authType", authType, "secretAccessKey", secretAccessKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String accessKeyId; - + private String secretAccessKey; - + private Builder() { // force use of static builder() method } @@ -181,6 +180,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * The access key id to access Dynamodb. Airbyte requires read permissions to the database */ @@ -190,6 +190,7 @@ public Builder accessKeyId(String accessKeyId) { return this; } + /** * The corresponding secret to the access key id. */ @@ -198,14 +199,15 @@ public Builder secretAccessKey(String secretAccessKey) { this.secretAccessKey = secretAccessKey; return this; } - + public AuthenticateViaAccessKeys build() { + return new AuthenticateViaAccessKeys( - accessKeyId, - secretAccessKey) + accessKeyId, secretAccessKey) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAsanaOauth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAsanaOauth.java index 96c168f84..5c38376d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAsanaOauth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaAsanaOauth.java @@ -14,14 +14,15 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaAsanaOauth { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; @@ -32,6 +33,7 @@ public class AuthenticateViaAsanaOauth { @JsonProperty("option_title") private Optional optionTitle; + @JsonProperty("refresh_token") private String refreshToken; @@ -73,9 +75,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public AuthenticateViaAsanaOauth withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -95,7 +98,6 @@ public AuthenticateViaAsanaOauth withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,18 +108,16 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaAsanaOauth other = (AuthenticateViaAsanaOauth) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.optionTitle, other.optionTitle) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.optionTitle, other.optionTitle) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - optionTitle, + return Utils.enhancedHash( + clientId, clientSecret, optionTitle, refreshToken); } @@ -129,44 +129,48 @@ public String toString() { "optionTitle", optionTitle, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } - + public AuthenticateViaAsanaOauth build() { + return new AuthenticateViaAsanaOauth( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_OptionTitle = new LazySingletonValue<>( "option_title", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaClientCredentials.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaClientCredentials.java index d38362f20..755cb1f22 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaClientCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaClientCredentials.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class AuthenticateViaClientCredentials { +public class AuthenticateViaClientCredentials { /** * Client ID of your Microsoft developer application */ @@ -37,6 +36,7 @@ public class AuthenticateViaClientCredentials { @JsonProperty("app_tenant_id") private String appTenantId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -85,9 +85,10 @@ public Optional authType() { return (Optional) authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID of your Microsoft developer application @@ -116,7 +117,6 @@ public AuthenticateViaClientCredentials withAppTenantId(String appTenantId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,18 +127,16 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaClientCredentials other = (AuthenticateViaClientCredentials) o; return - Objects.deepEquals(this.appClientId, other.appClientId) && - Objects.deepEquals(this.appClientSecret, other.appClientSecret) && - Objects.deepEquals(this.appTenantId, other.appTenantId) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.appClientId, other.appClientId) && + Utils.enhancedDeepEquals(this.appClientSecret, other.appClientSecret) && + Utils.enhancedDeepEquals(this.appTenantId, other.appTenantId) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - appClientId, - appClientSecret, - appTenantId, + return Utils.enhancedHash( + appClientId, appClientSecret, appTenantId, authType); } @@ -150,19 +148,21 @@ public String toString() { "appTenantId", appTenantId, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String appClientId; - + private String appClientSecret; - + private String appTenantId; - + private Builder() { // force use of static builder() method } + /** * Client ID of your Microsoft developer application */ @@ -172,6 +172,7 @@ public Builder appClientId(String appClientId) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -181,6 +182,7 @@ public Builder appClientSecret(String appClientSecret) { return this; } + /** * Tenant ID of the Microsoft Azure Application */ @@ -189,14 +191,14 @@ public Builder appTenantId(String appTenantId) { this.appTenantId = appTenantId; return this; } - + public AuthenticateViaClientCredentials build() { + return new AuthenticateViaClientCredentials( - appClientId, - appClientSecret, - appTenantId); + appClientId, appClientSecret, appTenantId); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java index db95d2943..543631dfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaFacebookMarketingOauth.java @@ -14,18 +14,23 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class AuthenticateViaFacebookMarketingOauth { +public class AuthenticateViaFacebookMarketingOauth { /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

Then click on "Get token". See the docs for more + * information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("access_token") private Optional accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -63,7 +68,12 @@ public AuthenticateViaFacebookMarketingOauth( } /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

Then click on "Get token". See the docs for more + * information. */ @JsonIgnore public Optional accessToken() { @@ -92,12 +102,18 @@ public String clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

Then click on "Get token". See the docs for more + * information. */ public AuthenticateViaFacebookMarketingOauth withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -105,8 +121,14 @@ public AuthenticateViaFacebookMarketingOauth withAccessToken(String accessToken) return this; } + /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

Then click on "Get token". See the docs for more + * information. */ public AuthenticateViaFacebookMarketingOauth withAccessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -132,7 +154,6 @@ public AuthenticateViaFacebookMarketingOauth withClientSecret(String clientSecre return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -143,18 +164,16 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaFacebookMarketingOauth other = (AuthenticateViaFacebookMarketingOauth) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, + return Utils.enhancedHash( + accessToken, authType, clientId, clientSecret); } @@ -166,21 +185,28 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accessToken = Optional.empty(); - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

Then click on "Get token". See the docs for more + * information. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -189,7 +215,12 @@ public Builder accessToken(String accessToken) { } /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

Then click on "Get token". See the docs for more + * information. */ public Builder accessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -197,6 +228,7 @@ public Builder accessToken(Optional accessToken) { return this; } + /** * Client ID for the Facebook Marketing API */ @@ -206,6 +238,7 @@ public Builder clientId(String clientId) { return this; } + /** * Client Secret for the Facebook Marketing API */ @@ -214,14 +247,14 @@ public Builder clientSecret(String clientSecret) { this.clientSecret = clientSecret; return this; } - + public AuthenticateViaFacebookMarketingOauth build() { + return new AuthenticateViaFacebookMarketingOauth( - accessToken, - clientId, - clientSecret); + accessToken, clientId, clientSecret); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaGoogleOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaGoogleOAuth.java index cbc0928a6..c745f37c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaGoogleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaGoogleOAuth.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaGoogleOAuth { @JsonInclude(Include.NON_ABSENT) @@ -85,9 +85,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Google Sheets developer application. @@ -116,7 +117,6 @@ public AuthenticateViaGoogleOAuth withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,18 +127,16 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaGoogleOAuth other = (AuthenticateViaGoogleOAuth) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, + return Utils.enhancedHash( + authType, clientId, clientSecret, refreshToken); } @@ -150,19 +148,21 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Google Sheets developer application. */ @@ -172,6 +172,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Google Sheets developer application. */ @@ -181,6 +182,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The token for obtaining new access token. */ @@ -189,14 +191,14 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public AuthenticateViaGoogleOAuth build() { + return new AuthenticateViaGoogleOAuth( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaHarvestOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaHarvestOAuth.java index 5469782b6..493e8a1ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaHarvestOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaHarvestOAuth.java @@ -19,14 +19,15 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaHarvestOAuth { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -99,9 +100,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public AuthenticateViaHarvestOAuth withAdditionalProperty(String key, Object value) { @@ -109,8 +111,7 @@ public AuthenticateViaHarvestOAuth withAdditionalProperty(String key, Object val Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public AuthenticateViaHarvestOAuth withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -144,7 +145,6 @@ public AuthenticateViaHarvestOAuth withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,21 +155,18 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaHarvestOAuth other = (AuthenticateViaHarvestOAuth) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - authType, - clientId, - clientSecret, - refreshToken); + return Utils.enhancedHash( + additionalProperties, authType, clientId, + clientSecret, refreshToken); } @Override @@ -181,17 +178,18 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } @@ -212,6 +210,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * The Client ID of your Harvest developer application. */ @@ -221,6 +220,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Harvest developer application. */ @@ -230,6 +230,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Refresh Token to renew the expired Access Token. */ @@ -238,15 +239,15 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public AuthenticateViaHarvestOAuth build() { + return new AuthenticateViaHarvestOAuth( - clientId, - clientSecret, - refreshToken) + clientId, clientSecret, refreshToken) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverApiKey.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverApiKey.java index 49ef01554..6927309d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverApiKey.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverApiKey.java @@ -14,17 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class AuthenticateViaLeverApiKey { +public class AuthenticateViaLeverApiKey { /** * The Api Key of your Lever Hiring account. */ @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -51,9 +51,10 @@ public Optional authType() { return (Optional) authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Api Key of your Lever Hiring account. @@ -64,7 +65,6 @@ public AuthenticateViaLeverApiKey withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +75,14 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaLeverApiKey other = (AuthenticateViaLeverApiKey) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - authType); + return Utils.enhancedHash( + apiKey, authType); } @Override @@ -92,15 +91,17 @@ public String toString() { "apiKey", apiKey, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * The Api Key of your Lever Hiring account. */ @@ -109,12 +110,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public AuthenticateViaLeverApiKey build() { + return new AuthenticateViaLeverApiKey( apiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverOAuth.java index c9348590e..87653c0f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaLeverOAuth.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaLeverOAuth { @JsonInclude(Include.NON_ABSENT) @@ -92,9 +92,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Lever Hiring developer application. @@ -105,6 +106,7 @@ public AuthenticateViaLeverOAuth withClientId(String clientId) { return this; } + /** * The Client ID of your Lever Hiring developer application. */ @@ -123,6 +125,7 @@ public AuthenticateViaLeverOAuth withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your Lever Hiring developer application. */ @@ -141,7 +144,6 @@ public AuthenticateViaLeverOAuth withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -152,18 +154,16 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaLeverOAuth other = (AuthenticateViaLeverOAuth) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, + return Utils.enhancedHash( + authType, clientId, clientSecret, refreshToken); } @@ -175,19 +175,21 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Lever Hiring developer application. */ @@ -206,6 +208,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your Lever Hiring developer application. */ @@ -224,6 +227,7 @@ public Builder clientSecret(Optional clientSecret) { return this; } + /** * The token for obtaining new access token. */ @@ -232,14 +236,14 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public AuthenticateViaLeverOAuth build() { + return new AuthenticateViaLeverOAuth( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoft.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoft.java index 4e432bc81..7229324d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoft.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoft.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaMicrosoft { @JsonInclude(Include.NON_ABSENT) @@ -36,7 +36,10 @@ public class AuthenticateViaMicrosoft { private String clientSecret; /** - * A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL + * A globally unique identifier (GUID) that is different than your organization name or domain. Follow + * these steps to obtain: open one of the Teams where you belong inside the Teams Application -> + * Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the + * team and grab the tenant ID form the URL */ @JsonProperty("tenant_id") private String tenantId; @@ -78,16 +81,20 @@ public String clientSecret() { } /** - * A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL + * A globally unique identifier (GUID) that is different than your organization name or domain. Follow + * these steps to obtain: open one of the Teams where you belong inside the Teams Application -> + * Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the + * team and grab the tenant ID form the URL */ @JsonIgnore public String tenantId() { return tenantId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Microsoft Teams developer application. @@ -108,7 +115,10 @@ public AuthenticateViaMicrosoft withClientSecret(String clientSecret) { } /** - * A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL + * A globally unique identifier (GUID) that is different than your organization name or domain. Follow + * these steps to obtain: open one of the Teams where you belong inside the Teams Application -> + * Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the + * team and grab the tenant ID form the URL */ public AuthenticateViaMicrosoft withTenantId(String tenantId) { Utils.checkNotNull(tenantId, "tenantId"); @@ -116,7 +126,6 @@ public AuthenticateViaMicrosoft withTenantId(String tenantId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,18 +136,16 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaMicrosoft other = (AuthenticateViaMicrosoft) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.tenantId, other.tenantId); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, + return Utils.enhancedHash( + authType, clientId, clientSecret, tenantId); } @@ -150,19 +157,21 @@ public String toString() { "clientSecret", clientSecret, "tenantId", tenantId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String tenantId; - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Microsoft Teams developer application. */ @@ -172,6 +181,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Microsoft Teams developer application. */ @@ -181,22 +191,26 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL + * A globally unique identifier (GUID) that is different than your organization name or domain. Follow + * these steps to obtain: open one of the Teams where you belong inside the Teams Application -> + * Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the + * team and grab the tenant ID form the URL */ public Builder tenantId(String tenantId) { Utils.checkNotNull(tenantId, "tenantId"); this.tenantId = tenantId; return this; } - + public AuthenticateViaMicrosoft build() { + return new AuthenticateViaMicrosoft( - clientId, - clientSecret, - tenantId); + clientId, clientSecret, tenantId); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth.java index 884b057eb..f2b4f6360 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -108,9 +107,10 @@ public String tenantId() { return tenantId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID of your Microsoft developer application @@ -148,7 +148,6 @@ public AuthenticateViaMicrosoftOAuth withTenantId(String tenantId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -159,21 +158,18 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaMicrosoftOAuth other = (AuthenticateViaMicrosoftOAuth) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tenantId, other.tenantId); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, - refreshToken, - tenantId); + return Utils.enhancedHash( + authType, clientId, clientSecret, + refreshToken, tenantId); } @Override @@ -185,21 +181,23 @@ public String toString() { "refreshToken", refreshToken, "tenantId", tenantId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private String tenantId; - + private Builder() { // force use of static builder() method } + /** * Client ID of your Microsoft developer application */ @@ -209,6 +207,7 @@ public Builder clientId(String clientId) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -218,6 +217,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Refresh Token of your Microsoft developer application */ @@ -227,6 +227,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * Tenant ID of the Microsoft OneDrive user */ @@ -235,15 +236,15 @@ public Builder tenantId(String tenantId) { this.tenantId = tenantId; return this; } - + public AuthenticateViaMicrosoftOAuth build() { + return new AuthenticateViaMicrosoftOAuth( - clientId, - clientSecret, - refreshToken, + clientId, clientSecret, refreshToken, tenantId); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth20.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth20.java index 6c92f3cc1..1e5b8f676 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaMicrosoftOAuth20.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaMicrosoftOAuth20 { @JsonInclude(Include.NON_ABSENT) @@ -42,7 +42,10 @@ public class AuthenticateViaMicrosoftOAuth20 { private String refreshToken; /** - * A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL + * A globally unique identifier (GUID) that is different than your organization name or domain. Follow + * these steps to obtain: open one of the Teams where you belong inside the Teams Application -> + * Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the + * team and grab the tenant ID form the URL */ @JsonProperty("tenant_id") private String tenantId; @@ -95,16 +98,20 @@ public String refreshToken() { } /** - * A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL + * A globally unique identifier (GUID) that is different than your organization name or domain. Follow + * these steps to obtain: open one of the Teams where you belong inside the Teams Application -> + * Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the + * team and grab the tenant ID form the URL */ @JsonIgnore public String tenantId() { return tenantId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Microsoft Teams developer application. @@ -134,7 +141,10 @@ public AuthenticateViaMicrosoftOAuth20 withRefreshToken(String refreshToken) { } /** - * A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL + * A globally unique identifier (GUID) that is different than your organization name or domain. Follow + * these steps to obtain: open one of the Teams where you belong inside the Teams Application -> + * Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the + * team and grab the tenant ID form the URL */ public AuthenticateViaMicrosoftOAuth20 withTenantId(String tenantId) { Utils.checkNotNull(tenantId, "tenantId"); @@ -142,7 +152,6 @@ public AuthenticateViaMicrosoftOAuth20 withTenantId(String tenantId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -153,21 +162,18 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaMicrosoftOAuth20 other = (AuthenticateViaMicrosoftOAuth20) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tenantId, other.tenantId); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, - refreshToken, - tenantId); + return Utils.enhancedHash( + authType, clientId, clientSecret, + refreshToken, tenantId); } @Override @@ -179,21 +185,23 @@ public String toString() { "refreshToken", refreshToken, "tenantId", tenantId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private String tenantId; - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Microsoft Teams developer application. */ @@ -203,6 +211,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Microsoft Teams developer application. */ @@ -212,6 +221,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * A Refresh Token to renew the expired Access Token. */ @@ -221,23 +231,27 @@ public Builder refreshToken(String refreshToken) { return this; } + /** - * A globally unique identifier (GUID) that is different than your organization name or domain. Follow these steps to obtain: open one of the Teams where you belong inside the Teams Application -> Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the team and grab the tenant ID form the URL + * A globally unique identifier (GUID) that is different than your organization name or domain. Follow + * these steps to obtain: open one of the Teams where you belong inside the Teams Application -> + * Click on the … next to the Team title -> Click on Get link to team -> Copy the link to the + * team and grab the tenant ID form the URL */ public Builder tenantId(String tenantId) { Utils.checkNotNull(tenantId, "tenantId"); this.tenantId = tenantId; return this; } - + public AuthenticateViaMicrosoftOAuth20 build() { + return new AuthenticateViaMicrosoftOAuth20( - clientId, - clientSecret, - refreshToken, + clientId, clientSecret, refreshToken, tenantId); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth.java index 6d3d92d47..4b00c04d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth.java @@ -12,16 +12,16 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class AuthenticateViaOAuth { +public class AuthenticateViaOAuth { /** * Access Token for making authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("auth_type") private SourceSalesloftAuthType authType; @@ -114,9 +114,10 @@ public OffsetDateTime tokenExpiryDate() { return tokenExpiryDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -163,7 +164,6 @@ public AuthenticateViaOAuth withTokenExpiryDate(OffsetDateTime tokenExpiryDate) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,23 +174,19 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaOAuth other = (AuthenticateViaOAuth) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tokenExpiryDate, other.tokenExpiryDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tokenExpiryDate, other.tokenExpiryDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, refreshToken, tokenExpiryDate); } @Override @@ -203,23 +199,25 @@ public String toString() { "refreshToken", refreshToken, "tokenExpiryDate", tokenExpiryDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private OffsetDateTime tokenExpiryDate; - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -229,6 +227,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Client ID of your Salesloft developer application. */ @@ -238,6 +237,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Salesloft developer application. */ @@ -247,6 +247,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The token for obtaining a new access token. */ @@ -256,6 +257,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * The date-time when the access token should be refreshed. */ @@ -264,16 +266,15 @@ public Builder tokenExpiryDate(OffsetDateTime tokenExpiryDate) { this.tokenExpiryDate = tokenExpiryDate; return this; } - + public AuthenticateViaOAuth build() { + return new AuthenticateViaOAuth( - accessToken, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + accessToken, clientId, clientSecret, + refreshToken, tokenExpiryDate); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth20.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth20.java index 8e32edc95..12e7da791 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOAuth20.java @@ -14,7 +14,7 @@ import java.lang.String; import java.util.HashMap; import java.util.Map; -import java.util.Objects; + public class AuthenticateViaOAuth20 { @@ -82,9 +82,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public AuthenticateViaOAuth20 withAdditionalProperty(String key, Object value) { @@ -92,8 +93,7 @@ public AuthenticateViaOAuth20 withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public AuthenticateViaOAuth20 withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -127,7 +127,6 @@ public AuthenticateViaOAuth20 withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -138,18 +137,16 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaOAuth20 other = (AuthenticateViaOAuth20) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - clientId, - clientSecret, + return Utils.enhancedHash( + additionalProperties, clientId, clientSecret, refreshToken); } @@ -161,17 +158,18 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } @@ -192,6 +190,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * The Client ID of your developer application */ @@ -201,6 +200,7 @@ public Builder clientId(String clientId) { return this; } + /** * The client secret of your developer application */ @@ -210,6 +210,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * A refresh token generated using the above client ID and secret */ @@ -218,13 +219,13 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public AuthenticateViaOAuth20 build() { + return new AuthenticateViaOAuth20( - clientId, - clientSecret, - refreshToken) + clientId, clientSecret, refreshToken) .withAdditionalProperties(additionalProperties); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOauth2.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOauth2.java index 2bed92469..690f94090 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOauth2.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaOauth2.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaOauth2 { @JsonInclude(Include.NON_ABSENT) @@ -102,9 +102,10 @@ public String tenantId() { return tenantId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID of your Microsoft developer application @@ -142,7 +143,6 @@ public AuthenticateViaOauth2 withTenantId(String tenantId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -153,21 +153,18 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaOauth2 other = (AuthenticateViaOauth2) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tenantId, other.tenantId); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, - refreshToken, - tenantId); + return Utils.enhancedHash( + authType, clientId, clientSecret, + refreshToken, tenantId); } @Override @@ -179,21 +176,23 @@ public String toString() { "refreshToken", refreshToken, "tenantId", tenantId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private String tenantId; - + private Builder() { // force use of static builder() method } + /** * Client ID of your Microsoft developer application */ @@ -203,6 +202,7 @@ public Builder clientId(String clientId) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -212,6 +212,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Refresh Token of your Microsoft developer application */ @@ -221,6 +222,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * Tenant ID of the Microsoft Azure Application user */ @@ -229,15 +231,15 @@ public Builder tenantId(String tenantId) { this.tenantId = tenantId; return this; } - + public AuthenticateViaOauth2 build() { + return new AuthenticateViaOauth2( - clientId, - clientSecret, - refreshToken, + clientId, clientSecret, refreshToken, tenantId); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPassword.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPassword.java index c955ee62b..6b2410156 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPassword.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaPassword { @JsonInclude(Include.NON_ABSENT) @@ -51,9 +51,10 @@ public String password() { return password; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Password @@ -64,7 +65,6 @@ public AuthenticateViaPassword withPassword(String password) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +75,14 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaPassword other = (AuthenticateViaPassword) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.password, other.password); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.password, other.password); } @Override public int hashCode() { - return Objects.hash( - authType, - password); + return Utils.enhancedHash( + authType, password); } @Override @@ -92,15 +91,17 @@ public String toString() { "authType", authType, "password", password); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private Builder() { // force use of static builder() method } + /** * Password */ @@ -109,12 +110,14 @@ public Builder password(String password) { this.password = password; return this; } - + public AuthenticateViaPassword build() { + return new AuthenticateViaPassword( password); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPrivateKey.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPrivateKey.java index ad229dcfd..00d22e1e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPrivateKey.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaPrivateKey.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaPrivateKey { @JsonInclude(Include.NON_ABSENT) @@ -51,9 +51,10 @@ public String privateKey() { return privateKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Private key @@ -64,7 +65,6 @@ public AuthenticateViaPrivateKey withPrivateKey(String privateKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +75,14 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaPrivateKey other = (AuthenticateViaPrivateKey) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.privateKey, other.privateKey); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.privateKey, other.privateKey); } @Override public int hashCode() { - return Objects.hash( - authType, - privateKey); + return Utils.enhancedHash( + authType, privateKey); } @Override @@ -92,15 +91,17 @@ public String toString() { "authType", authType, "privateKey", privateKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String privateKey; - + private Builder() { // force use of static builder() method } + /** * The Private key */ @@ -109,12 +110,14 @@ public Builder privateKey(String privateKey) { this.privateKey = privateKey; return this; } - + public AuthenticateViaPrivateKey build() { + return new AuthenticateViaPrivateKey( privateKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaRetentlyOAuth.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaRetentlyOAuth.java index c34c08149..9461b42f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaRetentlyOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaRetentlyOAuth.java @@ -19,14 +19,15 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaRetentlyOAuth { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -99,9 +100,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public AuthenticateViaRetentlyOAuth withAdditionalProperty(String key, Object value) { @@ -109,8 +111,7 @@ public AuthenticateViaRetentlyOAuth withAdditionalProperty(String key, Object va Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public AuthenticateViaRetentlyOAuth withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -144,7 +145,6 @@ public AuthenticateViaRetentlyOAuth withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,21 +155,18 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaRetentlyOAuth other = (AuthenticateViaRetentlyOAuth) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - authType, - clientId, - clientSecret, - refreshToken); + return Utils.enhancedHash( + additionalProperties, authType, clientId, + clientSecret, refreshToken); } @Override @@ -181,17 +178,18 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } @@ -212,6 +210,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * The Client ID of your Retently developer application. */ @@ -221,6 +220,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Retently developer application. */ @@ -230,6 +230,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Retently Refresh Token which can be used to fetch new Bearer Tokens when the current one expires. */ @@ -238,15 +239,15 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public AuthenticateViaRetentlyOAuth build() { + return new AuthenticateViaRetentlyOAuth( - clientId, - clientSecret, - refreshToken) + clientId, clientSecret, refreshToken) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaStorageAccountKey.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaStorageAccountKey.java index 23c918e48..214780a8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateViaStorageAccountKey.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateViaStorageAccountKey.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class AuthenticateViaStorageAccountKey { @JsonInclude(Include.NON_ABSENT) @@ -51,9 +51,10 @@ public String azureBlobStorageAccountKey() { return azureBlobStorageAccountKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Azure blob storage account key. @@ -64,7 +65,6 @@ public AuthenticateViaStorageAccountKey withAzureBlobStorageAccountKey(String az return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +75,14 @@ public boolean equals(java.lang.Object o) { } AuthenticateViaStorageAccountKey other = (AuthenticateViaStorageAccountKey) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.azureBlobStorageAccountKey, other.azureBlobStorageAccountKey); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.azureBlobStorageAccountKey, other.azureBlobStorageAccountKey); } @Override public int hashCode() { - return Objects.hash( - authType, - azureBlobStorageAccountKey); + return Utils.enhancedHash( + authType, azureBlobStorageAccountKey); } @Override @@ -92,15 +91,17 @@ public String toString() { "authType", authType, "azureBlobStorageAccountKey", azureBlobStorageAccountKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String azureBlobStorageAccountKey; - + private Builder() { // force use of static builder() method } + /** * The Azure blob storage account key. */ @@ -109,12 +110,14 @@ public Builder azureBlobStorageAccountKey(String azureBlobStorageAccountKey) { this.azureBlobStorageAccountKey = azureBlobStorageAccountKey; return this; } - + public AuthenticateViaStorageAccountKey build() { + return new AuthenticateViaStorageAccountKey( azureBlobStorageAccountKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateWithAPIToken.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateWithAPIToken.java index acac63339..0708d8d35 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateWithAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateWithAPIToken.java @@ -19,20 +19,22 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class AuthenticateWithAPIToken { @JsonIgnore private Map additionalProperties; /** - * Retently API Token. See the <a href="https://app.retently.com/settings/api/tokens">docs</a> for more information on how to obtain this key. + * Retently API Token. See the docs for more + * information on how to obtain this key. */ @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -52,7 +54,8 @@ public Map additionalProperties() { } /** - * Retently API Token. See the <a href="https://app.retently.com/settings/api/tokens">docs</a> for more information on how to obtain this key. + * Retently API Token. See the docs for more + * information on how to obtain this key. */ @JsonIgnore public String apiKey() { @@ -65,9 +68,10 @@ public Optional authType() { return (Optional) authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public AuthenticateWithAPIToken withAdditionalProperty(String key, Object value) { @@ -75,8 +79,7 @@ public AuthenticateWithAPIToken withAdditionalProperty(String key, Object value) Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public AuthenticateWithAPIToken withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -84,7 +87,8 @@ public AuthenticateWithAPIToken withAdditionalProperties(Map add } /** - * Retently API Token. See the <a href="https://app.retently.com/settings/api/tokens">docs</a> for more information on how to obtain this key. + * Retently API Token. See the docs for more + * information on how to obtain this key. */ public AuthenticateWithAPIToken withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -92,7 +96,6 @@ public AuthenticateWithAPIToken withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -103,17 +106,15 @@ public boolean equals(java.lang.Object o) { } AuthenticateWithAPIToken other = (AuthenticateWithAPIToken) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - apiKey, - authType); + return Utils.enhancedHash( + additionalProperties, apiKey, authType); } @Override @@ -123,13 +124,14 @@ public String toString() { "apiKey", apiKey, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String apiKey; - + private Builder() { // force use of static builder() method } @@ -150,21 +152,25 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * Retently API Token. See the <a href="https://app.retently.com/settings/api/tokens">docs</a> for more information on how to obtain this key. + * Retently API Token. See the docs for more + * information on how to obtain this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public AuthenticateWithAPIToken build() { + return new AuthenticateWithAPIToken( apiKey) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticateWithPersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/AuthenticateWithPersonalAccessToken.java index f0683aa9a..7f92d2808 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticateWithPersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticateWithPersonalAccessToken.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class AuthenticateWithPersonalAccessToken { +public class AuthenticateWithPersonalAccessToken { /** * PAT Credentials */ @@ -27,7 +26,8 @@ public class AuthenticateWithPersonalAccessToken { private Optional optionTitle; /** - * Asana Personal Access Token (generate yours <a href="https://app.asana.com/0/developer-console">here</a>). + * Asana Personal Access Token (generate yours here). */ @JsonProperty("personal_access_token") private String personalAccessToken; @@ -50,19 +50,22 @@ public Optional optionTitle() { } /** - * Asana Personal Access Token (generate yours <a href="https://app.asana.com/0/developer-console">here</a>). + * Asana Personal Access Token (generate yours here). */ @JsonIgnore public String personalAccessToken() { return personalAccessToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Asana Personal Access Token (generate yours <a href="https://app.asana.com/0/developer-console">here</a>). + * Asana Personal Access Token (generate yours here). */ public AuthenticateWithPersonalAccessToken withPersonalAccessToken(String personalAccessToken) { Utils.checkNotNull(personalAccessToken, "personalAccessToken"); @@ -70,7 +73,6 @@ public AuthenticateWithPersonalAccessToken withPersonalAccessToken(String person return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,15 +83,14 @@ public boolean equals(java.lang.Object o) { } AuthenticateWithPersonalAccessToken other = (AuthenticateWithPersonalAccessToken) o; return - Objects.deepEquals(this.optionTitle, other.optionTitle) && - Objects.deepEquals(this.personalAccessToken, other.personalAccessToken); + Utils.enhancedDeepEquals(this.optionTitle, other.optionTitle) && + Utils.enhancedDeepEquals(this.personalAccessToken, other.personalAccessToken); } @Override public int hashCode() { - return Objects.hash( - optionTitle, - personalAccessToken); + return Utils.enhancedHash( + optionTitle, personalAccessToken); } @Override @@ -98,29 +99,34 @@ public String toString() { "optionTitle", optionTitle, "personalAccessToken", personalAccessToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String personalAccessToken; - + private Builder() { // force use of static builder() method } + /** - * Asana Personal Access Token (generate yours <a href="https://app.asana.com/0/developer-console">here</a>). + * Asana Personal Access Token (generate yours here). */ public Builder personalAccessToken(String personalAccessToken) { Utils.checkNotNull(personalAccessToken, "personalAccessToken"); this.personalAccessToken = personalAccessToken; return this; } - + public AuthenticateWithPersonalAccessToken build() { + return new AuthenticateWithPersonalAccessToken( personalAccessToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_OptionTitle = new LazySingletonValue<>( "option_title", diff --git a/src/main/java/com/airbyte/api/models/shared/Authentication.java b/src/main/java/com/airbyte/api/models/shared/Authentication.java index 4130f43b2..0e5521ebc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Authentication.java +++ b/src/main/java/com/airbyte/api/models/shared/Authentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * Authentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } Authentication other = (Authentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationMechanism.java index 022767ec5..0b544046a 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationMechanism.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * AuthenticationMechanism @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } AuthenticationMechanism other = (AuthenticationMechanism) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationMethod.java index ea808dfd0..3327637c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * AuthenticationMethod @@ -31,9 +30,9 @@ private AuthenticationMethod(TypedObject value) { this.value = value; } - public static AuthenticationMethod of(None value) { + public static AuthenticationMethod of(DestinationElasticsearchNone value) { Utils.checkNotNull(value, "value"); - return new AuthenticationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new AuthenticationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } public static AuthenticationMethod of(ApiKeySecret value) { @@ -49,7 +48,7 @@ public static AuthenticationMethod of(UsernamePassword value) { /** * Returns an instance of one of these types: *

    - *
  • {@code com.airbyte.api.models.shared.None}
  • + *
  • {@code com.airbyte.api.models.shared.DestinationElasticsearchNone}
  • *
  • {@code com.airbyte.api.models.shared.ApiKeySecret}
  • *
  • {@code com.airbyte.api.models.shared.UsernamePassword}
  • *
@@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } AuthenticationMethod other = (AuthenticationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") @@ -93,7 +92,7 @@ public _Deserializer() { super(AuthenticationMethod.class, false, TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationMode.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationMode.java index 1a3cbbf56..2607dbac6 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationMode.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationMode.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * AuthenticationMode @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } AuthenticationMode other = (AuthenticationMode) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationType.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationType.java index 07f01f042..d3b6cce3f 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationType.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationType.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = AuthenticationType._Deserializer.class) public class AuthenticationType { @@ -26,21 +25,21 @@ private AuthenticationType(TypedObject value) { this.value = value; } - public static AuthenticationType of(SourceGoogleSearchConsoleOAuth value) { + public static AuthenticationType of(SourceConvertkitOAuth20 value) { Utils.checkNotNull(value, "value"); - return new AuthenticationType(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new AuthenticationType(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static AuthenticationType of(SourceGoogleSearchConsoleServiceAccountKeyAuthentication value) { + public static AuthenticationType of(APIKey value) { Utils.checkNotNull(value, "value"); - return new AuthenticationType(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new AuthenticationType(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *
    - *
  • {@code com.airbyte.api.models.shared.SourceGoogleSearchConsoleOAuth}
  • - *
  • {@code com.airbyte.api.models.shared.SourceGoogleSearchConsoleServiceAccountKeyAuthentication}
  • + *
  • {@code com.airbyte.api.models.shared.SourceConvertkitOAuth20}
  • + *
  • {@code com.airbyte.api.models.shared.APIKey}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } AuthenticationType other = (AuthenticationType) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") @@ -80,8 +79,8 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthenticationWildcard.java b/src/main/java/com/airbyte/api/models/shared/AuthenticationWildcard.java index 3aac77a5e..f3cba8f21 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthenticationWildcard.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthenticationWildcard.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * AuthenticationWildcard @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } AuthenticationWildcard other = (AuthenticationWildcard) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Authorization.java b/src/main/java/com/airbyte/api/models/shared/Authorization.java index 48cbdb721..e74768949 100644 --- a/src/main/java/com/airbyte/api/models/shared/Authorization.java +++ b/src/main/java/com/airbyte/api/models/shared/Authorization.java @@ -11,20 +11,21 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class Authorization { +public class Authorization { /** - * The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client ID of your Google Search Console developer application. Read more here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client secret of your Google Search Console developer application. Read more here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") @@ -45,7 +46,8 @@ public Authorization() { } /** - * The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client ID of your Google Search Console developer application. Read more here. */ @JsonIgnore public Optional clientId() { @@ -53,19 +55,22 @@ public Optional clientId() { } /** - * The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client secret of your Google Search Console developer application. Read more here. */ @JsonIgnore public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client ID of your Google Search Console developer application. Read more here. */ public Authorization withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -73,8 +78,10 @@ public Authorization withClientId(String clientId) { return this; } + /** - * The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client ID of your Google Search Console developer application. Read more here. */ public Authorization withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +90,8 @@ public Authorization withClientId(Optional clientId) { } /** - * The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client secret of your Google Search Console developer application. Read more here. */ public Authorization withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -91,8 +99,10 @@ public Authorization withClientSecret(String clientSecret) { return this; } + /** - * The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client secret of your Google Search Console developer application. Read more here. */ public Authorization withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -100,7 +110,6 @@ public Authorization withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +120,14 @@ public boolean equals(java.lang.Object o) { } Authorization other = (Authorization) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,19 +136,22 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client ID of your Google Search Console developer application. Read more here. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -149,7 +160,8 @@ public Builder clientId(String clientId) { } /** - * The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client ID of your Google Search Console developer application. Read more here. */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -157,8 +169,10 @@ public Builder clientId(Optional clientId) { return this; } + /** - * The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client secret of your Google Search Console developer application. Read more here. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -167,18 +181,20 @@ public Builder clientSecret(String clientSecret) { } /** - * The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client secret of your Google Search Console developer application. Read more here. */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public Authorization build() { + return new Authorization( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AuthorizationMechanism.java b/src/main/java/com/airbyte/api/models/shared/AuthorizationMechanism.java index 15ef766c8..b9ec3613e 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthorizationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthorizationMechanism.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = AuthorizationMechanism._Deserializer.class) public class AuthorizationMechanism { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } AuthorizationMechanism other = (AuthorizationMechanism) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/AuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/AuthorizationMethod.java index 0b8f72f10..fcb33b16b 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = AuthorizationMethod._Deserializer.class) public class AuthorizationMethod { @@ -73,12 +72,12 @@ public boolean equals(java.lang.Object o) { return false; } AuthorizationMethod other = (AuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/AuthorizationType.java b/src/main/java/com/airbyte/api/models/shared/AuthorizationType.java index b6a26d6c3..df1a284cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/AuthorizationType.java +++ b/src/main/java/com/airbyte/api/models/shared/AuthorizationType.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * AuthorizationType @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } AuthorizationType other = (AuthorizationType) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Autogenerated.java b/src/main/java/com/airbyte/api/models/shared/Autogenerated.java index bc0f8229e..4e75803c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Autogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/Autogenerated.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Autogenerated { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class Autogenerated { @JsonCreator public Autogenerated() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionType return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } Autogenerated other = (Autogenerated) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(Autogenerated.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public Autogenerated build() { + return new Autogenerated( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Aviationstack.java b/src/main/java/com/airbyte/api/models/shared/Aviationstack.java index aea57f177..740443984 100644 --- a/src/main/java/com/airbyte/api/models/shared/Aviationstack.java +++ b/src/main/java/com/airbyte/api/models/shared/Aviationstack.java @@ -14,7 +14,7 @@ public enum Aviationstack { @JsonValue private final String value; - private Aviationstack(String value) { + Aviationstack(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AvroApacheAvro.java b/src/main/java/com/airbyte/api/models/shared/AvroApacheAvro.java index 839984f85..83d803ef4 100644 --- a/src/main/java/com/airbyte/api/models/shared/AvroApacheAvro.java +++ b/src/main/java/com/airbyte/api/models/shared/AvroApacheAvro.java @@ -14,17 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class AvroApacheAvro { +public class AvroApacheAvro { /** * The compression algorithm used to compress data. Default to no compression. */ @JsonProperty("compression_codec") private CompressionCodec compressionCodec; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; @@ -58,9 +58,10 @@ public Optional formatType() { return (Optional) formatType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The compression algorithm used to compress data. Default to no compression. @@ -77,13 +78,13 @@ public AvroApacheAvro withFormatType(DestinationGcsFormatType formatType) { return this; } + public AvroApacheAvro withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,15 +95,14 @@ public boolean equals(java.lang.Object o) { } AvroApacheAvro other = (AvroApacheAvro) o; return - Objects.deepEquals(this.compressionCodec, other.compressionCodec) && - Objects.deepEquals(this.formatType, other.formatType); + Utils.enhancedDeepEquals(this.compressionCodec, other.compressionCodec) && + Utils.enhancedDeepEquals(this.formatType, other.formatType); } @Override public int hashCode() { - return Objects.hash( - compressionCodec, - formatType); + return Utils.enhancedHash( + compressionCodec, formatType); } @Override @@ -111,17 +111,19 @@ public String toString() { "compressionCodec", compressionCodec, "formatType", formatType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private CompressionCodec compressionCodec; - + private Optional formatType; - + private Builder() { // force use of static builder() method } + /** * The compression algorithm used to compress data. Default to no compression. */ @@ -131,6 +133,7 @@ public Builder compressionCodec(CompressionCodec compressionCodec) { return this; } + public Builder formatType(DestinationGcsFormatType formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = Optional.ofNullable(formatType); @@ -142,16 +145,17 @@ public Builder formatType(Optional formatTyp this.formatType = formatType; return this; } - + public AvroApacheAvro build() { if (formatType == null) { formatType = _SINGLETON_VALUE_FormatType.value(); } + return new AvroApacheAvro( - compressionCodec, - formatType); + compressionCodec, formatType); } + private static final LazySingletonValue> _SINGLETON_VALUE_FormatType = new LazySingletonValue<>( "format_type", diff --git a/src/main/java/com/airbyte/api/models/shared/AvroFormat.java b/src/main/java/com/airbyte/api/models/shared/AvroFormat.java index 7d8ca6e18..f6dceaa69 100644 --- a/src/main/java/com/airbyte/api/models/shared/AvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/AvroFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class AvroFormat { +public class AvroFormat { /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("double_as_string") private Optional doubleAsString; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public AvroFormat() { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonIgnore public Optional doubleAsString() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public AvroFormat withDoubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -70,8 +74,10 @@ public AvroFormat withDoubleAsString(boolean doubleAsString) { return this; } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public AvroFormat withDoubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -79,7 +85,6 @@ public AvroFormat withDoubleAsString(Optional doubleAsString) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } AvroFormat other = (AvroFormat) o; return - Objects.deepEquals(this.doubleAsString, other.doubleAsString) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.doubleAsString, other.doubleAsString) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - doubleAsString, - filetype); + return Utils.enhancedHash( + doubleAsString, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "doubleAsString", doubleAsString, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional doubleAsString; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -126,22 +133,25 @@ public Builder doubleAsString(boolean doubleAsString) { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); this.doubleAsString = doubleAsString; return this; } - + public AvroFormat build() { if (doubleAsString == null) { doubleAsString = _SINGLETON_VALUE_DoubleAsString.value(); } + return new AvroFormat( doubleAsString); } + private static final LazySingletonValue> _SINGLETON_VALUE_DoubleAsString = new LazySingletonValue<>( "double_as_string", diff --git a/src/main/java/com/airbyte/api/models/shared/AwinAdvertiser.java b/src/main/java/com/airbyte/api/models/shared/AwinAdvertiser.java new file mode 100644 index 000000000..728b9ec3a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/AwinAdvertiser.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum AwinAdvertiser { + AWIN_ADVERTISER("awin-advertiser"); + + @JsonValue + private final String value; + + AwinAdvertiser(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (AwinAdvertiser o: AwinAdvertiser.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java b/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java index dd787474c..4bf867034 100644 --- a/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java +++ b/src/main/java/com/airbyte/api/models/shared/AwsCloudtrail.java @@ -14,7 +14,7 @@ public enum AwsCloudtrail { @JsonValue private final String value; - private AwsCloudtrail(String value) { + AwsCloudtrail(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AwsDatalake.java b/src/main/java/com/airbyte/api/models/shared/AwsDatalake.java index bb65ba78e..4629cafde 100644 --- a/src/main/java/com/airbyte/api/models/shared/AwsDatalake.java +++ b/src/main/java/com/airbyte/api/models/shared/AwsDatalake.java @@ -14,7 +14,7 @@ public enum AwsDatalake { @JsonValue private final String value; - private AwsDatalake(String value) { + AwsDatalake(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/AzBlobAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/AzBlobAzureBlobStorage.java index 528eedbc0..f61a03d95 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzBlobAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/AzBlobAzureBlobStorage.java @@ -13,30 +13,36 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class AzBlobAzureBlobStorage { +public class AzBlobAzureBlobStorage { /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is + * not necessary. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sas_token") private Optional sasToken; /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a storage account shared key (aka account key or access key). If accessing publicly + * available data, this field is not necessary. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("shared_key") private Optional sharedKey; + @JsonProperty("storage") private SourceFileSchemasProviderStorage storage; /** - * The globally unique name of the storage account that the desired blob sits within. See <a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview" target="_blank">here</a> for more details. + * The globally unique name of the storage account that the desired blob sits within. See here for + * more details. */ @JsonProperty("storage_account") private String storageAccount; @@ -61,7 +67,9 @@ public AzBlobAzureBlobStorage( } /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is + * not necessary. */ @JsonIgnore public Optional sasToken() { @@ -69,7 +77,9 @@ public Optional sasToken() { } /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a storage account shared key (aka account key or access key). If accessing publicly + * available data, this field is not necessary. */ @JsonIgnore public Optional sharedKey() { @@ -82,19 +92,24 @@ public SourceFileSchemasProviderStorage storage() { } /** - * The globally unique name of the storage account that the desired blob sits within. See <a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview" target="_blank">here</a> for more details. + * The globally unique name of the storage account that the desired blob sits within. See here for + * more details. */ @JsonIgnore public String storageAccount() { return storageAccount; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is + * not necessary. */ public AzBlobAzureBlobStorage withSasToken(String sasToken) { Utils.checkNotNull(sasToken, "sasToken"); @@ -102,8 +117,11 @@ public AzBlobAzureBlobStorage withSasToken(String sasToken) { return this; } + /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is + * not necessary. */ public AzBlobAzureBlobStorage withSasToken(Optional sasToken) { Utils.checkNotNull(sasToken, "sasToken"); @@ -112,7 +130,9 @@ public AzBlobAzureBlobStorage withSasToken(Optional sasToken) { } /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a storage account shared key (aka account key or access key). If accessing publicly + * available data, this field is not necessary. */ public AzBlobAzureBlobStorage withSharedKey(String sharedKey) { Utils.checkNotNull(sharedKey, "sharedKey"); @@ -120,8 +140,11 @@ public AzBlobAzureBlobStorage withSharedKey(String sharedKey) { return this; } + /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a storage account shared key (aka account key or access key). If accessing publicly + * available data, this field is not necessary. */ public AzBlobAzureBlobStorage withSharedKey(Optional sharedKey) { Utils.checkNotNull(sharedKey, "sharedKey"); @@ -130,7 +153,9 @@ public AzBlobAzureBlobStorage withSharedKey(Optional sharedKey) { } /** - * The globally unique name of the storage account that the desired blob sits within. See <a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview" target="_blank">here</a> for more details. + * The globally unique name of the storage account that the desired blob sits within. See here for + * more details. */ public AzBlobAzureBlobStorage withStorageAccount(String storageAccount) { Utils.checkNotNull(storageAccount, "storageAccount"); @@ -138,7 +163,6 @@ public AzBlobAzureBlobStorage withStorageAccount(String storageAccount) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,18 +173,16 @@ public boolean equals(java.lang.Object o) { } AzBlobAzureBlobStorage other = (AzBlobAzureBlobStorage) o; return - Objects.deepEquals(this.sasToken, other.sasToken) && - Objects.deepEquals(this.sharedKey, other.sharedKey) && - Objects.deepEquals(this.storage, other.storage) && - Objects.deepEquals(this.storageAccount, other.storageAccount); + Utils.enhancedDeepEquals(this.sasToken, other.sasToken) && + Utils.enhancedDeepEquals(this.sharedKey, other.sharedKey) && + Utils.enhancedDeepEquals(this.storage, other.storage) && + Utils.enhancedDeepEquals(this.storageAccount, other.storageAccount); } @Override public int hashCode() { - return Objects.hash( - sasToken, - sharedKey, - storage, + return Utils.enhancedHash( + sasToken, sharedKey, storage, storageAccount); } @@ -172,21 +194,25 @@ public String toString() { "storage", storage, "storageAccount", storageAccount); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional sasToken = Optional.empty(); - + private Optional sharedKey = Optional.empty(); - + private String storageAccount; - + private Builder() { // force use of static builder() method } + /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is + * not necessary. */ public Builder sasToken(String sasToken) { Utils.checkNotNull(sasToken, "sasToken"); @@ -195,7 +221,9 @@ public Builder sasToken(String sasToken) { } /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a SAS (Shared Access Signature) token. If accessing publicly available data, this field is + * not necessary. */ public Builder sasToken(Optional sasToken) { Utils.checkNotNull(sasToken, "sasToken"); @@ -203,8 +231,11 @@ public Builder sasToken(Optional sasToken) { return this; } + /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a storage account shared key (aka account key or access key). If accessing publicly + * available data, this field is not necessary. */ public Builder sharedKey(String sharedKey) { Utils.checkNotNull(sharedKey, "sharedKey"); @@ -213,7 +244,9 @@ public Builder sharedKey(String sharedKey) { } /** - * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One option is a storage account shared key (aka account key or access key). If accessing publicly available data, this field is not necessary. + * To access Azure Blob Storage, this connector would need credentials with the proper permissions. One + * option is a storage account shared key (aka account key or access key). If accessing publicly + * available data, this field is not necessary. */ public Builder sharedKey(Optional sharedKey) { Utils.checkNotNull(sharedKey, "sharedKey"); @@ -221,22 +254,25 @@ public Builder sharedKey(Optional sharedKey) { return this; } + /** - * The globally unique name of the storage account that the desired blob sits within. See <a href="https://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview" target="_blank">here</a> for more details. + * The globally unique name of the storage account that the desired blob sits within. See here for + * more details. */ public Builder storageAccount(String storageAccount) { Utils.checkNotNull(storageAccount, "storageAccount"); this.storageAccount = storageAccount; return this; } - + public AzBlobAzureBlobStorage build() { + return new AzBlobAzureBlobStorage( - sasToken, - sharedKey, - storageAccount); + sasToken, sharedKey, storageAccount); } + private static final LazySingletonValue _SINGLETON_VALUE_Storage = new LazySingletonValue<>( "storage", diff --git a/src/main/java/com/airbyte/api/models/shared/AzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/AzureBlobStorage.java index 5f2db60ad..c871d07c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/AzureBlobStorage.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class AzureBlobStorage { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public AzureBlobStorage withCredentials(AzureBlobStorageCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public AzureBlobStorage withCredentials(AzureBlobStorageCredentials credentials) return this; } + public AzureBlobStorage withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } AzureBlobStorage other = (AzureBlobStorage) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(AzureBlobStorage.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(AzureBlobStorageCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional crede this.credentials = credentials; return this; } - + public AzureBlobStorage build() { + return new AzureBlobStorage( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AzureBlobStorageCredentials.java b/src/main/java/com/airbyte/api/models/shared/AzureBlobStorageCredentials.java index 77f77a3fe..80c9c9b4b 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzureBlobStorageCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/AzureBlobStorageCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class AzureBlobStorageCredentials { +public class AzureBlobStorageCredentials { /** * Client ID of your Microsoft developer application */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID of your Microsoft developer application @@ -73,6 +73,7 @@ public AzureBlobStorageCredentials withClientId(String clientId) { return this; } + /** * Client ID of your Microsoft developer application */ @@ -91,6 +92,7 @@ public AzureBlobStorageCredentials withClientSecret(String clientSecret) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -100,7 +102,6 @@ public AzureBlobStorageCredentials withClientSecret(Optional clientSecre return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } AzureBlobStorageCredentials other = (AzureBlobStorageCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Client ID of your Microsoft developer application */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public AzureBlobStorageCredentials build() { + return new AzureBlobStorageCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java index 23a9ab2e9..ffedb6644 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/AzureOpenAI.java @@ -14,34 +14,37 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * AzureOpenAI * - *

Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model + * with 1536 embedding dimensions. */ public class AzureOpenAI { - /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("api_base") private String apiBase; /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonProperty("deployment") private String deployment; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("openai_key") private String openaiKey; @@ -61,7 +64,8 @@ public AzureOpenAI( } /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String apiBase() { @@ -69,7 +73,8 @@ public String apiBase() { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonIgnore public String deployment() { @@ -83,19 +88,22 @@ public Optional mode() { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public AzureOpenAI withApiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -104,7 +112,8 @@ public AzureOpenAI withApiBase(String apiBase) { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public AzureOpenAI withDeployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -113,7 +122,8 @@ public AzureOpenAI withDeployment(String deployment) { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public AzureOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -121,7 +131,6 @@ public AzureOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +141,16 @@ public boolean equals(java.lang.Object o) { } AzureOpenAI other = (AzureOpenAI) o; return - Objects.deepEquals(this.apiBase, other.apiBase) && - Objects.deepEquals(this.deployment, other.deployment) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.apiBase, other.apiBase) && + Utils.enhancedDeepEquals(this.deployment, other.deployment) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - apiBase, - deployment, - mode, + return Utils.enhancedHash( + apiBase, deployment, mode, openaiKey); } @@ -155,21 +162,24 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiBase; - + private String deployment; - + private String openaiKey; - + private Builder() { // force use of static builder() method } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder apiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -177,8 +187,10 @@ public Builder apiBase(String apiBase) { return this; } + /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public Builder deployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -186,22 +198,24 @@ public Builder deployment(String deployment) { return this; } + /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public AzureOpenAI build() { + return new AzureOpenAI( - apiBase, - deployment, - openaiKey); + apiBase, deployment, openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/AzureTable.java b/src/main/java/com/airbyte/api/models/shared/AzureTable.java index bd0047f7c..2a11693aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/AzureTable.java +++ b/src/main/java/com/airbyte/api/models/shared/AzureTable.java @@ -14,7 +14,7 @@ public enum AzureTable { @JsonValue private final String value; - private AzureTable(String value) { + AzureTable(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Babelforce.java b/src/main/java/com/airbyte/api/models/shared/Babelforce.java index 1ab0173c0..b72c75c6c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Babelforce.java +++ b/src/main/java/com/airbyte/api/models/shared/Babelforce.java @@ -14,7 +14,7 @@ public enum Babelforce { @JsonValue private final String value; - private Babelforce(String value) { + Babelforce(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/BambooHr.java b/src/main/java/com/airbyte/api/models/shared/BambooHr.java index 9b7bec720..39cd9e496 100644 --- a/src/main/java/com/airbyte/api/models/shared/BambooHr.java +++ b/src/main/java/com/airbyte/api/models/shared/BambooHr.java @@ -14,7 +14,7 @@ public enum BambooHr { @JsonValue private final String value; - private BambooHr(String value) { + BambooHr(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/BaseURL.java b/src/main/java/com/airbyte/api/models/shared/BaseURL.java index 70d58afa1..2da0458a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/BaseURL.java +++ b/src/main/java/com/airbyte/api/models/shared/BaseURL.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * BaseURL @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } BaseURL other = (BaseURL) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java b/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java index 768e27934..b6645a189 100644 --- a/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java +++ b/src/main/java/com/airbyte/api/models/shared/BaseURLPrefix.java @@ -11,7 +11,9 @@ /** * BaseURLPrefix * - *

You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) + *

You can access our API through the following URLs - Standard API Usage (Use the default API URL - + * https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use + * the HIPAA API URL - https://hipaa-api.jotform.com) */ public enum BaseURLPrefix { STANDARD("Standard"), @@ -21,7 +23,7 @@ public enum BaseURLPrefix { @JsonValue private final String value; - private BaseURLPrefix(String value) { + BaseURLPrefix(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Basecamp.java b/src/main/java/com/airbyte/api/models/shared/Basecamp.java index 5ee3bded8..f9bed73e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Basecamp.java +++ b/src/main/java/com/airbyte/api/models/shared/Basecamp.java @@ -14,7 +14,7 @@ public enum Basecamp { @JsonValue private final String value; - private Basecamp(String value) { + Basecamp(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Basic.java b/src/main/java/com/airbyte/api/models/shared/Basic.java index 1c977da58..db328e88b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Basic.java +++ b/src/main/java/com/airbyte/api/models/shared/Basic.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Basic { @JsonInclude(Include.NON_ABSENT) @@ -24,7 +24,9 @@ public class Basic { private Optional apiEndpoint; /** - * You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) + * You can access our API through the following URLs - Standard API Usage (Use the default API URL - + * https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use + * the HIPAA API URL - https://hipaa-api.jotform.com) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("url_prefix") @@ -49,7 +51,9 @@ public Optional apiEndpoint() { } /** - * You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) + * You can access our API through the following URLs - Standard API Usage (Use the default API URL - + * https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use + * the HIPAA API URL - https://hipaa-api.jotform.com) */ @SuppressWarnings("unchecked") @JsonIgnore @@ -57,12 +61,15 @@ public Optional urlPrefix() { return (Optional) urlPrefix; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) + * You can access our API through the following URLs - Standard API Usage (Use the default API URL - + * https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use + * the HIPAA API URL - https://hipaa-api.jotform.com) */ public Basic withUrlPrefix(BaseURLPrefix urlPrefix) { Utils.checkNotNull(urlPrefix, "urlPrefix"); @@ -70,8 +77,11 @@ public Basic withUrlPrefix(BaseURLPrefix urlPrefix) { return this; } + /** - * You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) + * You can access our API through the following URLs - Standard API Usage (Use the default API URL - + * https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use + * the HIPAA API URL - https://hipaa-api.jotform.com) */ public Basic withUrlPrefix(Optional urlPrefix) { Utils.checkNotNull(urlPrefix, "urlPrefix"); @@ -79,7 +89,6 @@ public Basic withUrlPrefix(Optional urlPrefix) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +99,14 @@ public boolean equals(java.lang.Object o) { } Basic other = (Basic) o; return - Objects.deepEquals(this.apiEndpoint, other.apiEndpoint) && - Objects.deepEquals(this.urlPrefix, other.urlPrefix); + Utils.enhancedDeepEquals(this.apiEndpoint, other.apiEndpoint) && + Utils.enhancedDeepEquals(this.urlPrefix, other.urlPrefix); } @Override public int hashCode() { - return Objects.hash( - apiEndpoint, - urlPrefix); + return Utils.enhancedHash( + apiEndpoint, urlPrefix); } @Override @@ -107,17 +115,21 @@ public String toString() { "apiEndpoint", apiEndpoint, "urlPrefix", urlPrefix); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional urlPrefix; - + private Builder() { // force use of static builder() method } + /** - * You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) + * You can access our API through the following URLs - Standard API Usage (Use the default API URL - + * https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use + * the HIPAA API URL - https://hipaa-api.jotform.com) */ public Builder urlPrefix(BaseURLPrefix urlPrefix) { Utils.checkNotNull(urlPrefix, "urlPrefix"); @@ -126,22 +138,26 @@ public Builder urlPrefix(BaseURLPrefix urlPrefix) { } /** - * You can access our API through the following URLs - Standard API Usage (Use the default API URL - https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use the HIPAA API URL - https://hipaa-api.jotform.com) + * You can access our API through the following URLs - Standard API Usage (Use the default API URL - + * https://api.jotform.com), For EU (Use the EU API URL - https://eu-api.jotform.com), For HIPAA (Use + * the HIPAA API URL - https://hipaa-api.jotform.com) */ public Builder urlPrefix(Optional urlPrefix) { Utils.checkNotNull(urlPrefix, "urlPrefix"); this.urlPrefix = urlPrefix; return this; } - + public Basic build() { if (urlPrefix == null) { urlPrefix = _SINGLETON_VALUE_UrlPrefix.value(); } + return new Basic( urlPrefix); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiEndpoint = new LazySingletonValue<>( "api_endpoint", diff --git a/src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java b/src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java index a4014f866..8085deaa6 100644 --- a/src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java +++ b/src/main/java/com/airbyte/api/models/shared/BatchedStandardInserts.java @@ -5,40 +5,92 @@ import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; /** * BatchedStandardInserts * - *

Direct loading using batched SQL INSERT statements. This method uses the BigQuery driver to convert large INSERT statements into file uploads automatically. + *

Direct loading using batched SQL INSERT statements. This method uses the BigQuery driver to convert + * large INSERT statements into file uploads automatically. */ public class BatchedStandardInserts { + @JsonIgnore + private Map additionalProperties; + + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("method") - private Method method; + private Optional method; @JsonCreator + public BatchedStandardInserts( + @JsonProperty("method") Optional method) { + Utils.checkNotNull(method, "method"); + this.additionalProperties = new HashMap<>(); + this.method = method; + } + public BatchedStandardInserts() { - - this.method = Builder._SINGLETON_VALUE_Method.value(); + this(Optional.empty()); } + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") @JsonIgnore - public Method method() { - return method; + public Optional method() { + return (Optional) method; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + @JsonAnySetter + public BatchedStandardInserts withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public BatchedStandardInserts withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public BatchedStandardInserts withMethod(Method method) { + Utils.checkNotNull(method, "method"); + this.method = Optional.ofNullable(method); + return this; + } + + + public BatchedStandardInserts withMethod(Optional method) { + Utils.checkNotNull(method, "method"); + this.method = method; + return this; + } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,36 +101,78 @@ public boolean equals(java.lang.Object o) { } BatchedStandardInserts other = (BatchedStandardInserts) o; return - Objects.deepEquals(this.method, other.method); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.method, other.method); } @Override public int hashCode() { - return Objects.hash( - method); + return Utils.enhancedHash( + additionalProperties, method); } @Override public String toString() { return Utils.toString(BatchedStandardInserts.class, + "additionalProperties", additionalProperties, "method", method); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Map additionalProperties = new HashMap<>(); + + private Optional method; + private Builder() { // force use of static builder() method } - + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder method(Method method) { + Utils.checkNotNull(method, "method"); + this.method = Optional.ofNullable(method); + return this; + } + + public Builder method(Optional method) { + Utils.checkNotNull(method, "method"); + this.method = method; + return this; + } + public BatchedStandardInserts build() { + if (method == null) { + method = _SINGLETON_VALUE_Method.value(); + } + return new BatchedStandardInserts( - ); + method) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue _SINGLETON_VALUE_Method = + + private static final LazySingletonValue> _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", "\"Standard\"", - new TypeReference() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Beamer.java b/src/main/java/com/airbyte/api/models/shared/Beamer.java index 5fa231d5d..fb4c6d2d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Beamer.java +++ b/src/main/java/com/airbyte/api/models/shared/Beamer.java @@ -14,7 +14,7 @@ public enum Beamer { @JsonValue private final String value; - private Beamer(String value) { + Beamer(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/BetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/BetweenFilter.java index d61de8678..68fe581a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/BetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/BetweenFilter.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class BetweenFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName filterName; + @JsonProperty("fromValue") private FromValue fromValue; + @JsonProperty("toValue") private ToValue toValue; @@ -50,9 +52,10 @@ public ToValue toValue() { return toValue; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public BetweenFilter withFromValue(FromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); @@ -66,7 +69,6 @@ public BetweenFilter withToValue(ToValue toValue) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } BetweenFilter other = (BetweenFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.fromValue, other.fromValue) && - Objects.deepEquals(this.toValue, other.toValue); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.fromValue, other.fromValue) && + Utils.enhancedDeepEquals(this.toValue, other.toValue); } @Override public int hashCode() { - return Objects.hash( - filterName, - fromValue, - toValue); + return Utils.enhancedHash( + filterName, fromValue, toValue); } @Override @@ -97,35 +97,39 @@ public String toString() { "fromValue", fromValue, "toValue", toValue); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private FromValue fromValue; - + private ToValue toValue; - + private Builder() { // force use of static builder() method } + public Builder fromValue(FromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); this.fromValue = fromValue; return this; } + public Builder toValue(ToValue toValue) { Utils.checkNotNull(toValue, "toValue"); this.toValue = toValue; return this; } - + public BetweenFilter build() { + return new BetweenFilter( - fromValue, - toValue); + fromValue, toValue); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/Bigmailer.java b/src/main/java/com/airbyte/api/models/shared/Bigmailer.java index 03709c588..3d8f24f7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bigmailer.java +++ b/src/main/java/com/airbyte/api/models/shared/Bigmailer.java @@ -14,7 +14,7 @@ public enum Bigmailer { @JsonValue private final String value; - private Bigmailer(String value) { + Bigmailer(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Bigquery.java b/src/main/java/com/airbyte/api/models/shared/Bigquery.java index 507acb870..26f8a0ddf 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bigquery.java +++ b/src/main/java/com/airbyte/api/models/shared/Bigquery.java @@ -14,7 +14,7 @@ public enum Bigquery { @JsonValue private final String value; - private Bigquery(String value) { + Bigquery(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/BingAds.java b/src/main/java/com/airbyte/api/models/shared/BingAds.java index 1dc38ecbb..ef59a1fb3 100644 --- a/src/main/java/com/airbyte/api/models/shared/BingAds.java +++ b/src/main/java/com/airbyte/api/models/shared/BingAds.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class BingAds { +public class BingAds { /** * The Client ID of your Microsoft Advertising developer application. */ @@ -62,9 +61,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Microsoft Advertising developer application. @@ -75,6 +75,7 @@ public BingAds withClientId(String clientId) { return this; } + /** * The Client ID of your Microsoft Advertising developer application. */ @@ -93,6 +94,7 @@ public BingAds withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your Microsoft Advertising developer application. */ @@ -102,7 +104,6 @@ public BingAds withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,15 +114,14 @@ public boolean equals(java.lang.Object o) { } BingAds other = (BingAds) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -130,17 +130,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret; - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Microsoft Advertising developer application. */ @@ -159,6 +161,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your Microsoft Advertising developer application. */ @@ -176,16 +179,17 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public BingAds build() { if (clientSecret == null) { clientSecret = _SINGLETON_VALUE_ClientSecret.value(); } + return new BingAds( - clientId, - clientSecret); + clientId, clientSecret); } + private static final LazySingletonValue> _SINGLETON_VALUE_ClientSecret = new LazySingletonValue<>( "client_secret", diff --git a/src/main/java/com/airbyte/api/models/shared/Bitly.java b/src/main/java/com/airbyte/api/models/shared/Bitly.java index fa4ac1874..e6654d699 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bitly.java +++ b/src/main/java/com/airbyte/api/models/shared/Bitly.java @@ -14,7 +14,7 @@ public enum Bitly { @JsonValue private final String value; - private Bitly(String value) { + Bitly(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Blogger.java b/src/main/java/com/airbyte/api/models/shared/Blogger.java index ef58673ea..1434aec62 100644 --- a/src/main/java/com/airbyte/api/models/shared/Blogger.java +++ b/src/main/java/com/airbyte/api/models/shared/Blogger.java @@ -14,7 +14,7 @@ public enum Blogger { @JsonValue private final String value; - private Blogger(String value) { + Blogger(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Bluetally.java b/src/main/java/com/airbyte/api/models/shared/Bluetally.java index 1195d8863..e7390ee40 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bluetally.java +++ b/src/main/java/com/airbyte/api/models/shared/Bluetally.java @@ -14,7 +14,7 @@ public enum Bluetally { @JsonValue private final String value; - private Bluetally(String value) { + Bluetally(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Boldsign.java b/src/main/java/com/airbyte/api/models/shared/Boldsign.java index 74396f983..3cd8935c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Boldsign.java +++ b/src/main/java/com/airbyte/api/models/shared/Boldsign.java @@ -14,7 +14,7 @@ public enum Boldsign { @JsonValue private final String value; - private Boldsign(String value) { + Boldsign(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/BothUsernameAndPasswordIsRequiredForAuthenticationRequest.java b/src/main/java/com/airbyte/api/models/shared/BothUsernameAndPasswordIsRequiredForAuthenticationRequest.java index a45de3feb..9550996f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/BothUsernameAndPasswordIsRequiredForAuthenticationRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/BothUsernameAndPasswordIsRequiredForAuthenticationRequest.java @@ -14,7 +14,7 @@ public enum BothUsernameAndPasswordIsRequiredForAuthenticationRequest { @JsonValue private final String value; - private BothUsernameAndPasswordIsRequiredForAuthenticationRequest(String value) { + BothUsernameAndPasswordIsRequiredForAuthenticationRequest(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Box.java b/src/main/java/com/airbyte/api/models/shared/Box.java index 618a3ab41..ae95375d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Box.java +++ b/src/main/java/com/airbyte/api/models/shared/Box.java @@ -14,7 +14,7 @@ public enum Box { @JsonValue private final String value; - private Box(String value) { + Box(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Braintree.java b/src/main/java/com/airbyte/api/models/shared/Braintree.java index 1b51dd48b..bbad7914d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Braintree.java +++ b/src/main/java/com/airbyte/api/models/shared/Braintree.java @@ -14,7 +14,7 @@ public enum Braintree { @JsonValue private final String value; - private Braintree(String value) { + Braintree(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Braze.java b/src/main/java/com/airbyte/api/models/shared/Braze.java index df3a96953..4dc4696dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Braze.java +++ b/src/main/java/com/airbyte/api/models/shared/Braze.java @@ -14,7 +14,7 @@ public enum Braze { @JsonValue private final String value; - private Braze(String value) { + Braze(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Breezometer.java b/src/main/java/com/airbyte/api/models/shared/Breezometer.java index 9cfa71465..a504adb8f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Breezometer.java +++ b/src/main/java/com/airbyte/api/models/shared/Breezometer.java @@ -14,7 +14,7 @@ public enum Breezometer { @JsonValue private final String value; - private Breezometer(String value) { + Breezometer(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/BreezyHr.java b/src/main/java/com/airbyte/api/models/shared/BreezyHr.java index 4a101c35c..b7738256b 100644 --- a/src/main/java/com/airbyte/api/models/shared/BreezyHr.java +++ b/src/main/java/com/airbyte/api/models/shared/BreezyHr.java @@ -14,7 +14,7 @@ public enum BreezyHr { @JsonValue private final String value; - private BreezyHr(String value) { + BreezyHr(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Brevo.java b/src/main/java/com/airbyte/api/models/shared/Brevo.java index 5d9bdfad8..fd5e2eee5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Brevo.java +++ b/src/main/java/com/airbyte/api/models/shared/Brevo.java @@ -14,7 +14,7 @@ public enum Brevo { @JsonValue private final String value; - private Brevo(String value) { + Brevo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Brex.java b/src/main/java/com/airbyte/api/models/shared/Brex.java index a512a3f9d..4f87e52a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Brex.java +++ b/src/main/java/com/airbyte/api/models/shared/Brex.java @@ -14,7 +14,7 @@ public enum Brex { @JsonValue private final String value; - private Brex(String value) { + Brex(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Bugsnag.java b/src/main/java/com/airbyte/api/models/shared/Bugsnag.java index 9dc7ed38f..430660c09 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bugsnag.java +++ b/src/main/java/com/airbyte/api/models/shared/Bugsnag.java @@ -14,7 +14,7 @@ public enum Bugsnag { @JsonValue private final String value; - private Bugsnag(String value) { + Bugsnag(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Buildkite.java b/src/main/java/com/airbyte/api/models/shared/Buildkite.java index 1f5d0fc90..531e5dea1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Buildkite.java +++ b/src/main/java/com/airbyte/api/models/shared/Buildkite.java @@ -14,7 +14,7 @@ public enum Buildkite { @JsonValue private final String value; - private Buildkite(String value) { + Buildkite(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/BulkLoad.java b/src/main/java/com/airbyte/api/models/shared/BulkLoad.java index d6ffd34f4..be47d7776 100644 --- a/src/main/java/com/airbyte/api/models/shared/BulkLoad.java +++ b/src/main/java/com/airbyte/api/models/shared/BulkLoad.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -41,36 +40,43 @@ public class BulkLoad { private Optional azureBlobStorageAccountKey; /** - * The name of the Azure Blob Storage account. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts + * The name of the Azure Blob Storage account. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts */ @JsonProperty("azure_blob_storage_account_name") private String azureBlobStorageAccountName; /** - * The name of the Azure Blob Storage container. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers + * The name of the Azure Blob Storage container. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers */ @JsonProperty("azure_blob_storage_container_name") private String azureBlobStorageContainerName; /** - * Specifies the external data source name configured in MSSQL, which references the Azure Blob container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql + * Specifies the external data source name configured in MSSQL, which references the Azure Blob + * container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql */ @JsonProperty("bulk_load_data_source") private String bulkLoadDataSource; /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("bulk_load_validate_values_pre_load") private Optional bulkLoadValidateValuesPreLoad; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("load_type") private Optional loadType; /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually exclusive with an account key + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually + * exclusive with an account key */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("shared_access_signature") @@ -106,7 +112,9 @@ public BulkLoad( String azureBlobStorageAccountName, String azureBlobStorageContainerName, String bulkLoadDataSource) { - this(Optional.empty(), azureBlobStorageAccountName, azureBlobStorageContainerName, bulkLoadDataSource, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), azureBlobStorageAccountName, azureBlobStorageContainerName, + bulkLoadDataSource, Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonAnyGetter @@ -123,7 +131,8 @@ public Optional azureBlobStorageAccountKey() { } /** - * The name of the Azure Blob Storage account. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts + * The name of the Azure Blob Storage account. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts */ @JsonIgnore public String azureBlobStorageAccountName() { @@ -131,7 +140,8 @@ public String azureBlobStorageAccountName() { } /** - * The name of the Azure Blob Storage container. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers + * The name of the Azure Blob Storage container. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers */ @JsonIgnore public String azureBlobStorageContainerName() { @@ -139,7 +149,8 @@ public String azureBlobStorageContainerName() { } /** - * Specifies the external data source name configured in MSSQL, which references the Azure Blob container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql + * Specifies the external data source name configured in MSSQL, which references the Azure Blob + * container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql */ @JsonIgnore public String bulkLoadDataSource() { @@ -147,7 +158,8 @@ public String bulkLoadDataSource() { } /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ @JsonIgnore public Optional bulkLoadValidateValuesPreLoad() { @@ -161,16 +173,19 @@ public Optional loadType() { } /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually exclusive with an account key + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually + * exclusive with an account key */ @JsonIgnore public Optional sharedAccessSignature() { return sharedAccessSignature; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public BulkLoad withAdditionalProperty(String key, Object value) { @@ -178,8 +193,7 @@ public BulkLoad withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public BulkLoad withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -195,6 +209,7 @@ public BulkLoad withAzureBlobStorageAccountKey(String azureBlobStorageAccountKey return this; } + /** * The Azure blob storage account key. Mutually exclusive with a Shared Access Signature */ @@ -205,7 +220,8 @@ public BulkLoad withAzureBlobStorageAccountKey(Optional azureBlobStorage } /** - * The name of the Azure Blob Storage account. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts + * The name of the Azure Blob Storage account. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts */ public BulkLoad withAzureBlobStorageAccountName(String azureBlobStorageAccountName) { Utils.checkNotNull(azureBlobStorageAccountName, "azureBlobStorageAccountName"); @@ -214,7 +230,8 @@ public BulkLoad withAzureBlobStorageAccountName(String azureBlobStorageAccountNa } /** - * The name of the Azure Blob Storage container. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers + * The name of the Azure Blob Storage container. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers */ public BulkLoad withAzureBlobStorageContainerName(String azureBlobStorageContainerName) { Utils.checkNotNull(azureBlobStorageContainerName, "azureBlobStorageContainerName"); @@ -223,7 +240,8 @@ public BulkLoad withAzureBlobStorageContainerName(String azureBlobStorageContain } /** - * Specifies the external data source name configured in MSSQL, which references the Azure Blob container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql + * Specifies the external data source name configured in MSSQL, which references the Azure Blob + * container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql */ public BulkLoad withBulkLoadDataSource(String bulkLoadDataSource) { Utils.checkNotNull(bulkLoadDataSource, "bulkLoadDataSource"); @@ -232,7 +250,8 @@ public BulkLoad withBulkLoadDataSource(String bulkLoadDataSource) { } /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ public BulkLoad withBulkLoadValidateValuesPreLoad(boolean bulkLoadValidateValuesPreLoad) { Utils.checkNotNull(bulkLoadValidateValuesPreLoad, "bulkLoadValidateValuesPreLoad"); @@ -240,8 +259,10 @@ public BulkLoad withBulkLoadValidateValuesPreLoad(boolean bulkLoadValidateValues return this; } + /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ public BulkLoad withBulkLoadValidateValuesPreLoad(Optional bulkLoadValidateValuesPreLoad) { Utils.checkNotNull(bulkLoadValidateValuesPreLoad, "bulkLoadValidateValuesPreLoad"); @@ -255,6 +276,7 @@ public BulkLoad withLoadType(DestinationMssqlLoadType loadType) { return this; } + public BulkLoad withLoadType(Optional loadType) { Utils.checkNotNull(loadType, "loadType"); this.loadType = loadType; @@ -262,7 +284,9 @@ public BulkLoad withLoadType(Optional loadTy } /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually exclusive with an account key + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually + * exclusive with an account key */ public BulkLoad withSharedAccessSignature(String sharedAccessSignature) { Utils.checkNotNull(sharedAccessSignature, "sharedAccessSignature"); @@ -270,8 +294,11 @@ public BulkLoad withSharedAccessSignature(String sharedAccessSignature) { return this; } + /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually exclusive with an account key + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually + * exclusive with an account key */ public BulkLoad withSharedAccessSignature(Optional sharedAccessSignature) { Utils.checkNotNull(sharedAccessSignature, "sharedAccessSignature"); @@ -279,7 +306,6 @@ public BulkLoad withSharedAccessSignature(Optional sharedAccessSignature return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -290,27 +316,22 @@ public boolean equals(java.lang.Object o) { } BulkLoad other = (BulkLoad) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.azureBlobStorageAccountKey, other.azureBlobStorageAccountKey) && - Objects.deepEquals(this.azureBlobStorageAccountName, other.azureBlobStorageAccountName) && - Objects.deepEquals(this.azureBlobStorageContainerName, other.azureBlobStorageContainerName) && - Objects.deepEquals(this.bulkLoadDataSource, other.bulkLoadDataSource) && - Objects.deepEquals(this.bulkLoadValidateValuesPreLoad, other.bulkLoadValidateValuesPreLoad) && - Objects.deepEquals(this.loadType, other.loadType) && - Objects.deepEquals(this.sharedAccessSignature, other.sharedAccessSignature); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.azureBlobStorageAccountKey, other.azureBlobStorageAccountKey) && + Utils.enhancedDeepEquals(this.azureBlobStorageAccountName, other.azureBlobStorageAccountName) && + Utils.enhancedDeepEquals(this.azureBlobStorageContainerName, other.azureBlobStorageContainerName) && + Utils.enhancedDeepEquals(this.bulkLoadDataSource, other.bulkLoadDataSource) && + Utils.enhancedDeepEquals(this.bulkLoadValidateValuesPreLoad, other.bulkLoadValidateValuesPreLoad) && + Utils.enhancedDeepEquals(this.loadType, other.loadType) && + Utils.enhancedDeepEquals(this.sharedAccessSignature, other.sharedAccessSignature); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - azureBlobStorageAccountKey, - azureBlobStorageAccountName, - azureBlobStorageContainerName, - bulkLoadDataSource, - bulkLoadValidateValuesPreLoad, - loadType, - sharedAccessSignature); + return Utils.enhancedHash( + additionalProperties, azureBlobStorageAccountKey, azureBlobStorageAccountName, + azureBlobStorageContainerName, bulkLoadDataSource, bulkLoadValidateValuesPreLoad, + loadType, sharedAccessSignature); } @Override @@ -325,25 +346,26 @@ public String toString() { "loadType", loadType, "sharedAccessSignature", sharedAccessSignature); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional azureBlobStorageAccountKey = Optional.empty(); - + private String azureBlobStorageAccountName; - + private String azureBlobStorageContainerName; - + private String bulkLoadDataSource; - + private Optional bulkLoadValidateValuesPreLoad; - + private Optional loadType; - + private Optional sharedAccessSignature = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -364,6 +386,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * The Azure blob storage account key. Mutually exclusive with a Shared Access Signature */ @@ -382,8 +405,10 @@ public Builder azureBlobStorageAccountKey(Optional azureBlobStorageAccou return this; } + /** - * The name of the Azure Blob Storage account. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts + * The name of the Azure Blob Storage account. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts */ public Builder azureBlobStorageAccountName(String azureBlobStorageAccountName) { Utils.checkNotNull(azureBlobStorageAccountName, "azureBlobStorageAccountName"); @@ -391,8 +416,10 @@ public Builder azureBlobStorageAccountName(String azureBlobStorageAccountName) { return this; } + /** - * The name of the Azure Blob Storage container. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers + * The name of the Azure Blob Storage container. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers */ public Builder azureBlobStorageContainerName(String azureBlobStorageContainerName) { Utils.checkNotNull(azureBlobStorageContainerName, "azureBlobStorageContainerName"); @@ -400,8 +427,10 @@ public Builder azureBlobStorageContainerName(String azureBlobStorageContainerNam return this; } + /** - * Specifies the external data source name configured in MSSQL, which references the Azure Blob container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql + * Specifies the external data source name configured in MSSQL, which references the Azure Blob + * container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql */ public Builder bulkLoadDataSource(String bulkLoadDataSource) { Utils.checkNotNull(bulkLoadDataSource, "bulkLoadDataSource"); @@ -409,8 +438,10 @@ public Builder bulkLoadDataSource(String bulkLoadDataSource) { return this; } + /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ public Builder bulkLoadValidateValuesPreLoad(boolean bulkLoadValidateValuesPreLoad) { Utils.checkNotNull(bulkLoadValidateValuesPreLoad, "bulkLoadValidateValuesPreLoad"); @@ -419,7 +450,8 @@ public Builder bulkLoadValidateValuesPreLoad(boolean bulkLoadValidateValuesPreLo } /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ public Builder bulkLoadValidateValuesPreLoad(Optional bulkLoadValidateValuesPreLoad) { Utils.checkNotNull(bulkLoadValidateValuesPreLoad, "bulkLoadValidateValuesPreLoad"); @@ -427,6 +459,7 @@ public Builder bulkLoadValidateValuesPreLoad(Optional bulkLoadValidateV return this; } + public Builder loadType(DestinationMssqlLoadType loadType) { Utils.checkNotNull(loadType, "loadType"); this.loadType = Optional.ofNullable(loadType); @@ -439,8 +472,11 @@ public Builder loadType(Optional loadType) { return this; } + /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually exclusive with an account key + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually + * exclusive with an account key */ public Builder sharedAccessSignature(String sharedAccessSignature) { Utils.checkNotNull(sharedAccessSignature, "sharedAccessSignature"); @@ -449,14 +485,16 @@ public Builder sharedAccessSignature(String sharedAccessSignature) { } /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually exclusive with an account key + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview.Mutually + * exclusive with an account key */ public Builder sharedAccessSignature(Optional sharedAccessSignature) { Utils.checkNotNull(sharedAccessSignature, "sharedAccessSignature"); this.sharedAccessSignature = sharedAccessSignature; return this; } - + public BulkLoad build() { if (bulkLoadValidateValuesPreLoad == null) { bulkLoadValidateValuesPreLoad = _SINGLETON_VALUE_BulkLoadValidateValuesPreLoad.value(); @@ -464,17 +502,15 @@ public BulkLoad build() { if (loadType == null) { loadType = _SINGLETON_VALUE_LoadType.value(); } + return new BulkLoad( - azureBlobStorageAccountKey, - azureBlobStorageAccountName, - azureBlobStorageContainerName, - bulkLoadDataSource, - bulkLoadValidateValuesPreLoad, - loadType, + azureBlobStorageAccountKey, azureBlobStorageAccountName, azureBlobStorageContainerName, + bulkLoadDataSource, bulkLoadValidateValuesPreLoad, loadType, sharedAccessSignature) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_BulkLoadValidateValuesPreLoad = new LazySingletonValue<>( "bulk_load_validate_values_pre_load", diff --git a/src/main/java/com/airbyte/api/models/shared/BunnyInc.java b/src/main/java/com/airbyte/api/models/shared/BunnyInc.java index ca99d7ab3..5d12c0947 100644 --- a/src/main/java/com/airbyte/api/models/shared/BunnyInc.java +++ b/src/main/java/com/airbyte/api/models/shared/BunnyInc.java @@ -14,7 +14,7 @@ public enum BunnyInc { @JsonValue private final String value; - private BunnyInc(String value) { + BunnyInc(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Buzzsprout.java b/src/main/java/com/airbyte/api/models/shared/Buzzsprout.java index 411084d3b..9fa9e5981 100644 --- a/src/main/java/com/airbyte/api/models/shared/Buzzsprout.java +++ b/src/main/java/com/airbyte/api/models/shared/Buzzsprout.java @@ -14,7 +14,7 @@ public enum Buzzsprout { @JsonValue private final String value; - private Buzzsprout(String value) { + Buzzsprout(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/ByMarkdownHeader.java index d5df76fe9..39324a8ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/ByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/ByMarkdownHeader.java @@ -15,13 +15,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * ByMarkdownHeader * - *

Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. + *

Split the text by Markdown headers down to the specified header level. If the chunk size fits + * multiple sections, they will be combined into a single chunk. */ public class ByMarkdownHeader { @@ -30,7 +30,8 @@ public class ByMarkdownHeader { private Optional mode; /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("split_level") @@ -55,19 +56,22 @@ public Optional mode() { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonIgnore public Optional splitLevel() { return splitLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public ByMarkdownHeader withSplitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -75,8 +79,10 @@ public ByMarkdownHeader withSplitLevel(long splitLevel) { return this; } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public ByMarkdownHeader withSplitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -84,7 +90,6 @@ public ByMarkdownHeader withSplitLevel(Optional splitLevel) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +100,14 @@ public boolean equals(java.lang.Object o) { } ByMarkdownHeader other = (ByMarkdownHeader) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.splitLevel, other.splitLevel); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.splitLevel, other.splitLevel); } @Override public int hashCode() { - return Objects.hash( - mode, - splitLevel); + return Utils.enhancedHash( + mode, splitLevel); } @Override @@ -112,17 +116,20 @@ public String toString() { "mode", mode, "splitLevel", splitLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional splitLevel; - + private Builder() { // force use of static builder() method } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -131,22 +138,25 @@ public Builder splitLevel(long splitLevel) { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); this.splitLevel = splitLevel; return this; } - + public ByMarkdownHeader build() { if (splitLevel == null) { splitLevel = _SINGLETON_VALUE_SplitLevel.value(); } + return new ByMarkdownHeader( splitLevel); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/ByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/ByProgrammingLanguage.java index 230f0058b..bb1b47e93 100644 --- a/src/main/java/com/airbyte/api/models/shared/ByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/ByProgrammingLanguage.java @@ -14,22 +14,22 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * ByProgrammingLanguage * - *

Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. + *

Split the text by suitable delimiters based on the programming language. This is useful for + * splitting code into chunks. */ public class ByProgrammingLanguage { - /** * Split code in suitable places based on the programming language */ @JsonProperty("language") private DestinationAstraLanguage language; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -56,9 +56,10 @@ public Optional m return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Split code in suitable places based on the programming language @@ -69,7 +70,6 @@ public ByProgrammingLanguage withLanguage(DestinationAstraLanguage language) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +80,14 @@ public boolean equals(java.lang.Object o) { } ByProgrammingLanguage other = (ByProgrammingLanguage) o; return - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.language, other.language) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - language, - mode); + return Utils.enhancedHash( + language, mode); } @Override @@ -97,15 +96,17 @@ public String toString() { "language", language, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationAstraLanguage language; - + private Builder() { // force use of static builder() method } + /** * Split code in suitable places based on the programming language */ @@ -114,12 +115,14 @@ public Builder language(DestinationAstraLanguage language) { this.language = language; return this; } - + public ByProgrammingLanguage build() { + return new ByProgrammingLanguage( language); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/BySeparator.java b/src/main/java/com/airbyte/api/models/shared/BySeparator.java index 6e9177bb9..a0116e692 100644 --- a/src/main/java/com/airbyte/api/models/shared/BySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/BySeparator.java @@ -16,16 +16,16 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * BySeparator * - *

Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. + *

Split the text by the list of separators until the chunk size is reached, using the earlier + * mentioned separators where possible. This is useful for splitting text fields by paragraphs, + * sentences, words, etc. */ public class BySeparator { - /** * Whether to keep the separator in the resulting chunks */ @@ -33,12 +33,16 @@ public class BySeparator { @JsonProperty("keep_separator") private Optional keepSeparator; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

To split by a newline, use "\n". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("separators") @@ -74,7 +78,10 @@ public Optional mode() { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

To split by a newline, use "\n". */ @SuppressWarnings("unchecked") @JsonIgnore @@ -82,9 +89,10 @@ public Optional> separators() { return (Optional>) separators; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Whether to keep the separator in the resulting chunks @@ -95,6 +103,7 @@ public BySeparator withKeepSeparator(boolean keepSeparator) { return this; } + /** * Whether to keep the separator in the resulting chunks */ @@ -105,7 +114,10 @@ public BySeparator withKeepSeparator(Optional keepSeparator) { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

To split by a newline, use "\n". */ public BySeparator withSeparators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -113,8 +125,12 @@ public BySeparator withSeparators(List separators) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

To split by a newline, use "\n". */ public BySeparator withSeparators(Optional> separators) { Utils.checkNotNull(separators, "separators"); @@ -122,7 +138,6 @@ public BySeparator withSeparators(Optional> separators) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -133,17 +148,15 @@ public boolean equals(java.lang.Object o) { } BySeparator other = (BySeparator) o; return - Objects.deepEquals(this.keepSeparator, other.keepSeparator) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.separators, other.separators); + Utils.enhancedDeepEquals(this.keepSeparator, other.keepSeparator) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.separators, other.separators); } @Override public int hashCode() { - return Objects.hash( - keepSeparator, - mode, - separators); + return Utils.enhancedHash( + keepSeparator, mode, separators); } @Override @@ -153,17 +166,19 @@ public String toString() { "mode", mode, "separators", separators); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional keepSeparator; - + private Optional> separators = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Whether to keep the separator in the resulting chunks */ @@ -182,8 +197,12 @@ public Builder keepSeparator(Optional keepSeparator) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

To split by a newline, use "\n". */ public Builder separators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -192,23 +211,27 @@ public Builder separators(List separators) { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

To split by a newline, use "\n". */ public Builder separators(Optional> separators) { Utils.checkNotNull(separators, "separators"); this.separators = separators; return this; } - + public BySeparator build() { if (keepSeparator == null) { keepSeparator = _SINGLETON_VALUE_KeepSeparator.value(); } + return new BySeparator( - keepSeparator, - separators); + keepSeparator, separators); } + private static final LazySingletonValue> _SINGLETON_VALUE_KeepSeparator = new LazySingletonValue<>( "keep_separator", diff --git a/src/main/java/com/airbyte/api/models/shared/Bzip2.java b/src/main/java/com/airbyte/api/models/shared/Bzip2.java index 793912466..b233afb0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Bzip2.java +++ b/src/main/java/com/airbyte/api/models/shared/Bzip2.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Bzip2 { @JsonInclude(Include.NON_ABSENT) @@ -40,9 +40,10 @@ public Optional codec() { return (Optional) codec; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Bzip2 withCodec(DestinationGcsSchemasCodec codec) { Utils.checkNotNull(codec, "codec"); @@ -50,13 +51,13 @@ public Bzip2 withCodec(DestinationGcsSchemasCodec codec) { return this; } + public Bzip2 withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,12 +68,12 @@ public boolean equals(java.lang.Object o) { } Bzip2 other = (Bzip2) o; return - Objects.deepEquals(this.codec, other.codec); + Utils.enhancedDeepEquals(this.codec, other.codec); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( codec); } @@ -81,15 +82,17 @@ public String toString() { return Utils.toString(Bzip2.class, "codec", codec); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional codec; - + private Builder() { // force use of static builder() method } + public Builder codec(DestinationGcsSchemasCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -101,15 +104,17 @@ public Builder codec(Optional codec) { this.codec = codec; return this; } - + public Bzip2 build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); } + return new Bzip2( codec); } + private static final LazySingletonValue> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/CDCDeletionMode.java b/src/main/java/com/airbyte/api/models/shared/CDCDeletionMode.java new file mode 100644 index 000000000..347101619 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/CDCDeletionMode.java @@ -0,0 +1,43 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * CDCDeletionMode + * + *

Whether to execute CDC deletions as hard deletes (i.e. propagate source deletions to the + * destination), or soft deletes (i.e. leave a tombstone record in the destination). + * + *

Defaults to hard deletes. + */ +public enum CDCDeletionMode { + HARD_DELETE("Hard delete"), + SOFT_DELETE("Soft delete"); + + @JsonValue + private final String value; + + CDCDeletionMode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (CDCDeletionMode o: CDCDeletionMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java b/src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java index 94f3e36ea..e12dc9819 100644 --- a/src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java +++ b/src/main/java/com/airbyte/api/models/shared/CSVCommaSeparatedValues.java @@ -19,18 +19,20 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class CSVCommaSeparatedValues { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("flattening") private Optional flattening; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; @@ -67,9 +69,10 @@ public Optional formatType() { return (Optional) formatType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public CSVCommaSeparatedValues withAdditionalProperty(String key, Object value) { @@ -77,8 +80,7 @@ public CSVCommaSeparatedValues withAdditionalProperty(String key, Object value) Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public CSVCommaSeparatedValues withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -91,6 +93,7 @@ public CSVCommaSeparatedValues withFlattening(Flattening flattening) { return this; } + public CSVCommaSeparatedValues withFlattening(Optional flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = flattening; @@ -103,13 +106,13 @@ public CSVCommaSeparatedValues withFormatType(FormatType formatType) { return this; } + public CSVCommaSeparatedValues withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,17 +123,15 @@ public boolean equals(java.lang.Object o) { } CSVCommaSeparatedValues other = (CSVCommaSeparatedValues) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.flattening, other.flattening) && - Objects.deepEquals(this.formatType, other.formatType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.flattening, other.flattening) && + Utils.enhancedDeepEquals(this.formatType, other.formatType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - flattening, - formatType); + return Utils.enhancedHash( + additionalProperties, flattening, formatType); } @Override @@ -140,15 +141,16 @@ public String toString() { "flattening", flattening, "formatType", formatType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional flattening; - + private Optional formatType; - + private Builder() { // force use of static builder() method } @@ -169,6 +171,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder flattening(Flattening flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = Optional.ofNullable(flattening); @@ -181,6 +184,7 @@ public Builder flattening(Optional flattening) { return this; } + public Builder formatType(FormatType formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = Optional.ofNullable(formatType); @@ -192,7 +196,7 @@ public Builder formatType(Optional formatType) { this.formatType = formatType; return this; } - + public CSVCommaSeparatedValues build() { if (flattening == null) { flattening = _SINGLETON_VALUE_Flattening.value(); @@ -200,12 +204,13 @@ public CSVCommaSeparatedValues build() { if (formatType == null) { formatType = _SINGLETON_VALUE_FormatType.value(); } + return new CSVCommaSeparatedValues( - flattening, - formatType) + flattening, formatType) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Flattening = new LazySingletonValue<>( "flattening", diff --git a/src/main/java/com/airbyte/api/models/shared/CSVFormat.java b/src/main/java/com/airbyte/api/models/shared/CSVFormat.java index ad9452424..082e56c30 100644 --- a/src/main/java/com/airbyte/api/models/shared/CSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/CSVFormat.java @@ -17,13 +17,13 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class CSVFormat { +public class CSVFormat { /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("delimiter") @@ -37,7 +37,9 @@ public class CSVFormat { private Optional doubleQuote; /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("encoding") @@ -57,26 +59,35 @@ public class CSVFormat { @JsonProperty("false_values") private Optional> falseValues; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition") private Optional headerDefinition; /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ignore_errors_on_fields_mismatch") private Optional ignoreErrorsOnFieldsMismatch; /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("null_values") @@ -97,14 +108,17 @@ public class CSVFormat { private Optional skipRowsAfterHeader; /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_rows_before_header") private Optional skipRowsBeforeHeader; /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strings_can_be_null") @@ -162,11 +176,16 @@ public CSVFormat( } public CSVFormat() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonIgnore public Optional delimiter() { @@ -182,7 +201,9 @@ public Optional doubleQuote() { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonIgnore public Optional encoding() { @@ -213,7 +234,13 @@ public Optional filetype() { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -222,7 +249,8 @@ public Optional headerDefinition() { } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonIgnore public Optional ignoreErrorsOnFieldsMismatch() { @@ -230,7 +258,8 @@ public Optional ignoreErrorsOnFieldsMismatch() { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -255,7 +284,8 @@ public Optional skipRowsAfterHeader() { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonIgnore public Optional skipRowsBeforeHeader() { @@ -263,7 +293,9 @@ public Optional skipRowsBeforeHeader() { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonIgnore public Optional stringsCanBeNull() { @@ -279,12 +311,14 @@ public Optional> trueValues() { return (Optional>) trueValues; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public CSVFormat withDelimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -292,8 +326,10 @@ public CSVFormat withDelimiter(String delimiter) { return this; } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public CSVFormat withDelimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -310,6 +346,7 @@ public CSVFormat withDoubleQuote(boolean doubleQuote) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -320,7 +357,9 @@ public CSVFormat withDoubleQuote(Optional doubleQuote) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public CSVFormat withEncoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -328,8 +367,11 @@ public CSVFormat withEncoding(String encoding) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public CSVFormat withEncoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -346,6 +388,7 @@ public CSVFormat withEscapeChar(String escapeChar) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -364,6 +407,7 @@ public CSVFormat withFalseValues(List falseValues) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -374,7 +418,13 @@ public CSVFormat withFalseValues(Optional> falseValues) { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public CSVFormat withHeaderDefinition(CSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -382,8 +432,15 @@ public CSVFormat withHeaderDefinition(CSVHeaderDefinition headerDefinition) { return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public CSVFormat withHeaderDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -392,7 +449,8 @@ public CSVFormat withHeaderDefinition(Optional he } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ public CSVFormat withIgnoreErrorsOnFieldsMismatch(boolean ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -400,8 +458,10 @@ public CSVFormat withIgnoreErrorsOnFieldsMismatch(boolean ignoreErrorsOnFieldsMi return this; } + /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ public CSVFormat withIgnoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -410,7 +470,8 @@ public CSVFormat withIgnoreErrorsOnFieldsMismatch(Optional ignoreErrors } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public CSVFormat withNullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -418,8 +479,10 @@ public CSVFormat withNullValues(List nullValues) { return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public CSVFormat withNullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -436,6 +499,7 @@ public CSVFormat withQuoteChar(String quoteChar) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -454,6 +518,7 @@ public CSVFormat withSkipRowsAfterHeader(long skipRowsAfterHeader) { return this; } + /** * The number of rows to skip after the header row. */ @@ -464,7 +529,8 @@ public CSVFormat withSkipRowsAfterHeader(Optional skipRowsAfterHeader) { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public CSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -472,8 +538,10 @@ public CSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public CSVFormat withSkipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -482,7 +550,9 @@ public CSVFormat withSkipRowsBeforeHeader(Optional skipRowsBeforeHeader) { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public CSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -490,8 +560,11 @@ public CSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public CSVFormat withStringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -508,6 +581,7 @@ public CSVFormat withTrueValues(List trueValues) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -517,7 +591,6 @@ public CSVFormat withTrueValues(Optional> trueValues) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -528,39 +601,30 @@ public boolean equals(java.lang.Object o) { } CSVFormat other = (CSVFormat) o; return - Objects.deepEquals(this.delimiter, other.delimiter) && - Objects.deepEquals(this.doubleQuote, other.doubleQuote) && - Objects.deepEquals(this.encoding, other.encoding) && - Objects.deepEquals(this.escapeChar, other.escapeChar) && - Objects.deepEquals(this.falseValues, other.falseValues) && - Objects.deepEquals(this.filetype, other.filetype) && - Objects.deepEquals(this.headerDefinition, other.headerDefinition) && - Objects.deepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && - Objects.deepEquals(this.nullValues, other.nullValues) && - Objects.deepEquals(this.quoteChar, other.quoteChar) && - Objects.deepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && - Objects.deepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && - Objects.deepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && - Objects.deepEquals(this.trueValues, other.trueValues); + Utils.enhancedDeepEquals(this.delimiter, other.delimiter) && + Utils.enhancedDeepEquals(this.doubleQuote, other.doubleQuote) && + Utils.enhancedDeepEquals(this.encoding, other.encoding) && + Utils.enhancedDeepEquals(this.escapeChar, other.escapeChar) && + Utils.enhancedDeepEquals(this.falseValues, other.falseValues) && + Utils.enhancedDeepEquals(this.filetype, other.filetype) && + Utils.enhancedDeepEquals(this.headerDefinition, other.headerDefinition) && + Utils.enhancedDeepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && + Utils.enhancedDeepEquals(this.nullValues, other.nullValues) && + Utils.enhancedDeepEquals(this.quoteChar, other.quoteChar) && + Utils.enhancedDeepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && + Utils.enhancedDeepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && + Utils.enhancedDeepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && + Utils.enhancedDeepEquals(this.trueValues, other.trueValues); } @Override public int hashCode() { - return Objects.hash( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - filetype, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, - trueValues); + return Utils.enhancedHash( + delimiter, doubleQuote, encoding, + escapeChar, falseValues, filetype, + headerDefinition, ignoreErrorsOnFieldsMismatch, nullValues, + quoteChar, skipRowsAfterHeader, skipRowsBeforeHeader, + stringsCanBeNull, trueValues); } @Override @@ -581,41 +645,44 @@ public String toString() { "stringsCanBeNull", stringsCanBeNull, "trueValues", trueValues); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional delimiter; - + private Optional doubleQuote; - + private Optional encoding; - + private Optional escapeChar = Optional.empty(); - + private Optional> falseValues = Optional.empty(); - + private Optional headerDefinition = Optional.empty(); - + private Optional ignoreErrorsOnFieldsMismatch; - + private Optional> nullValues = Optional.empty(); - + private Optional quoteChar; - + private Optional skipRowsAfterHeader; - + private Optional skipRowsBeforeHeader; - + private Optional stringsCanBeNull; - + private Optional> trueValues = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -624,7 +691,8 @@ public Builder delimiter(String delimiter) { } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -632,6 +700,7 @@ public Builder delimiter(Optional delimiter) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -650,8 +719,11 @@ public Builder doubleQuote(Optional doubleQuote) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -660,7 +732,9 @@ public Builder encoding(String encoding) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -668,6 +742,7 @@ public Builder encoding(Optional encoding) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -686,6 +761,7 @@ public Builder escapeChar(Optional escapeChar) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -704,8 +780,15 @@ public Builder falseValues(Optional> falseValues) { return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(CSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -714,7 +797,13 @@ public Builder headerDefinition(CSVHeaderDefinition headerDefinition) { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -722,8 +811,10 @@ public Builder headerDefinition(Optional headerDe return this; } + /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ public Builder ignoreErrorsOnFieldsMismatch(boolean ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -732,7 +823,8 @@ public Builder ignoreErrorsOnFieldsMismatch(boolean ignoreErrorsOnFieldsMismatch } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -740,8 +832,10 @@ public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFiel return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -750,7 +844,8 @@ public Builder nullValues(List nullValues) { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -758,6 +853,7 @@ public Builder nullValues(Optional> nullValues) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -776,6 +872,7 @@ public Builder quoteChar(Optional quoteChar) { return this; } + /** * The number of rows to skip after the header row. */ @@ -794,8 +891,10 @@ public Builder skipRowsAfterHeader(Optional skipRowsAfterHeader) { return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -804,7 +903,8 @@ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -812,8 +912,11 @@ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -822,7 +925,9 @@ public Builder stringsCanBeNull(boolean stringsCanBeNull) { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -830,6 +935,7 @@ public Builder stringsCanBeNull(Optional stringsCanBeNull) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -847,7 +953,7 @@ public Builder trueValues(Optional> trueValues) { this.trueValues = trueValues; return this; } - + public CSVFormat build() { if (delimiter == null) { delimiter = _SINGLETON_VALUE_Delimiter.value(); @@ -873,22 +979,16 @@ public CSVFormat build() { if (stringsCanBeNull == null) { stringsCanBeNull = _SINGLETON_VALUE_StringsCanBeNull.value(); } + return new CSVFormat( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, + delimiter, doubleQuote, encoding, + escapeChar, falseValues, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, + skipRowsAfterHeader, skipRowsBeforeHeader, stringsCanBeNull, trueValues); } + private static final LazySingletonValue> _SINGLETON_VALUE_Delimiter = new LazySingletonValue<>( "delimiter", diff --git a/src/main/java/com/airbyte/api/models/shared/CSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/CSVHeaderDefinition.java index 6c95bb2c8..c5e8ff61e 100644 --- a/src/main/java/com/airbyte/api/models/shared/CSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/CSVHeaderDefinition.java @@ -14,12 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * CSVHeaderDefinition * - *

How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + *

How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonDeserialize(using = CSVHeaderDefinition._Deserializer.class) public class CSVHeaderDefinition { @@ -78,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } CSVHeaderDefinition other = (CSVHeaderDefinition) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/CacheType.java b/src/main/java/com/airbyte/api/models/shared/CacheType.java index 07e57b6a1..e7350c13d 100644 --- a/src/main/java/com/airbyte/api/models/shared/CacheType.java +++ b/src/main/java/com/airbyte/api/models/shared/CacheType.java @@ -19,7 +19,7 @@ public enum CacheType { @JsonValue private final String value; - private CacheType(String value) { + CacheType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CalCom.java b/src/main/java/com/airbyte/api/models/shared/CalCom.java index 4ec3ac835..7634b4a04 100644 --- a/src/main/java/com/airbyte/api/models/shared/CalCom.java +++ b/src/main/java/com/airbyte/api/models/shared/CalCom.java @@ -14,7 +14,7 @@ public enum CalCom { @JsonValue private final String value; - private CalCom(String value) { + CalCom(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Calendly.java b/src/main/java/com/airbyte/api/models/shared/Calendly.java index e057ba150..d9c1e0e62 100644 --- a/src/main/java/com/airbyte/api/models/shared/Calendly.java +++ b/src/main/java/com/airbyte/api/models/shared/Calendly.java @@ -14,7 +14,7 @@ public enum Calendly { @JsonValue private final String value; - private Calendly(String value) { + Calendly(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Callrail.java b/src/main/java/com/airbyte/api/models/shared/Callrail.java index a50c69651..427ef608d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Callrail.java +++ b/src/main/java/com/airbyte/api/models/shared/Callrail.java @@ -14,7 +14,7 @@ public enum Callrail { @JsonValue private final String value; - private Callrail(String value) { + Callrail(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CampaignMonitor.java b/src/main/java/com/airbyte/api/models/shared/CampaignMonitor.java index d47660a0b..a80ea1ab8 100644 --- a/src/main/java/com/airbyte/api/models/shared/CampaignMonitor.java +++ b/src/main/java/com/airbyte/api/models/shared/CampaignMonitor.java @@ -14,7 +14,7 @@ public enum CampaignMonitor { @JsonValue private final String value; - private CampaignMonitor(String value) { + CampaignMonitor(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Campayn.java b/src/main/java/com/airbyte/api/models/shared/Campayn.java index bbad9cb8a..51d5dad9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Campayn.java +++ b/src/main/java/com/airbyte/api/models/shared/Campayn.java @@ -14,7 +14,7 @@ public enum Campayn { @JsonValue private final String value; - private Campayn(String value) { + Campayn(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Canny.java b/src/main/java/com/airbyte/api/models/shared/Canny.java index 58e6e8f29..4e0c6949d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Canny.java +++ b/src/main/java/com/airbyte/api/models/shared/Canny.java @@ -14,7 +14,7 @@ public enum Canny { @JsonValue private final String value; - private Canny(String value) { + Canny(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java b/src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java index 8e100b5b1..97f370004 100644 --- a/src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/CapsuleCrm.java @@ -14,7 +14,7 @@ public enum CapsuleCrm { @JsonValue private final String value; - private CapsuleCrm(String value) { + CapsuleCrm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CaptainData.java b/src/main/java/com/airbyte/api/models/shared/CaptainData.java index 2525cc6de..1104987e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/CaptainData.java +++ b/src/main/java/com/airbyte/api/models/shared/CaptainData.java @@ -14,7 +14,7 @@ public enum CaptainData { @JsonValue private final String value; - private CaptainData(String value) { + CaptainData(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java b/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java index ba0c182f0..c3e469953 100644 --- a/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/CaptureModeAdvanced.java @@ -11,7 +11,13 @@ /** * CaptureModeAdvanced * - *

Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current value of the document will be read. If 'Post Image' is chosen, then the version of the document immediately after an update will be read. WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not set on your Mongo instance : https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. + *

Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current + * value of the document will be read. If 'Post Image' is chosen, then the version of the document + * immediately after an update will be read. + * + *

WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not + * set on your Mongo instance : + * https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. */ public enum CaptureModeAdvanced { LOOKUP("Lookup"), @@ -20,7 +26,7 @@ public enum CaptureModeAdvanced { @JsonValue private final String value; - private CaptureModeAdvanced(String value) { + CaptureModeAdvanced(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java b/src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java index e4e0d39a2..7e3b7ca85 100644 --- a/src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java +++ b/src/main/java/com/airbyte/api/models/shared/CareQualityCommission.java @@ -14,7 +14,7 @@ public enum CareQualityCommission { @JsonValue private final String value; - private CareQualityCommission(String value) { + CareQualityCommission(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Cart.java b/src/main/java/com/airbyte/api/models/shared/Cart.java index fda0f386a..f833a84f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cart.java +++ b/src/main/java/com/airbyte/api/models/shared/Cart.java @@ -14,7 +14,7 @@ public enum Cart { @JsonValue private final String value; - private Cart(String value) { + Cart(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CastorEdc.java b/src/main/java/com/airbyte/api/models/shared/CastorEdc.java index d261e3b4e..ffa7d2d51 100644 --- a/src/main/java/com/airbyte/api/models/shared/CastorEdc.java +++ b/src/main/java/com/airbyte/api/models/shared/CastorEdc.java @@ -14,7 +14,7 @@ public enum CastorEdc { @JsonValue private final String value; - private CastorEdc(String value) { + CastorEdc(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CatalogType.java b/src/main/java/com/airbyte/api/models/shared/CatalogType.java index 5b7fa658f..b1ac79804 100644 --- a/src/main/java/com/airbyte/api/models/shared/CatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/CatalogType.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * CatalogType @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } CatalogType other = (CatalogType) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Categories.java b/src/main/java/com/airbyte/api/models/shared/Categories.java index 6b877d5cb..8ea104256 100644 --- a/src/main/java/com/airbyte/api/models/shared/Categories.java +++ b/src/main/java/com/airbyte/api/models/shared/Categories.java @@ -18,7 +18,7 @@ public enum Categories { @JsonValue private final String value; - private Categories(String value) { + Categories(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Category.java b/src/main/java/com/airbyte/api/models/shared/Category.java index b7e840027..b10f5e33b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Category.java +++ b/src/main/java/com/airbyte/api/models/shared/Category.java @@ -25,7 +25,7 @@ public enum Category { @JsonValue private final String value; - private Category(String value) { + Category(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CentralAPIRouter.java b/src/main/java/com/airbyte/api/models/shared/CentralAPIRouter.java index 7c0ab53dc..7c35bf35b 100644 --- a/src/main/java/com/airbyte/api/models/shared/CentralAPIRouter.java +++ b/src/main/java/com/airbyte/api/models/shared/CentralAPIRouter.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class CentralAPIRouter { @@ -19,7 +19,8 @@ public class CentralAPIRouter { private SourceCartAuthType authType; /** - * You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and reading the response param PSID + * You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and + * reading the response param PSID */ @JsonProperty("site_id") private String siteId; @@ -56,7 +57,8 @@ public SourceCartAuthType authType() { } /** - * You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and reading the response param PSID + * You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and + * reading the response param PSID */ @JsonIgnore public String siteId() { @@ -79,12 +81,14 @@ public String userSecret() { return userSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and reading the response param PSID + * You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and + * reading the response param PSID */ public CentralAPIRouter withSiteId(String siteId) { Utils.checkNotNull(siteId, "siteId"); @@ -110,7 +114,6 @@ public CentralAPIRouter withUserSecret(String userSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +124,16 @@ public boolean equals(java.lang.Object o) { } CentralAPIRouter other = (CentralAPIRouter) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.siteId, other.siteId) && - Objects.deepEquals(this.userName, other.userName) && - Objects.deepEquals(this.userSecret, other.userSecret); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.siteId, other.siteId) && + Utils.enhancedDeepEquals(this.userName, other.userName) && + Utils.enhancedDeepEquals(this.userSecret, other.userSecret); } @Override public int hashCode() { - return Objects.hash( - authType, - siteId, - userName, + return Utils.enhancedHash( + authType, siteId, userName, userSecret); } @@ -144,21 +145,24 @@ public String toString() { "userName", userName, "userSecret", userSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String siteId; - + private String userName; - + private String userSecret; - + private Builder() { // force use of static builder() method } + /** - * You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and reading the response param PSID + * You can determine a site provisioning site Id by hitting https://site.com/store/sitemonitor.aspx and + * reading the response param PSID */ public Builder siteId(String siteId) { Utils.checkNotNull(siteId, "siteId"); @@ -166,6 +170,7 @@ public Builder siteId(String siteId) { return this; } + /** * Enter your application's User Name */ @@ -175,6 +180,7 @@ public Builder userName(String userName) { return this; } + /** * Enter your application's User Secret */ @@ -183,14 +189,14 @@ public Builder userSecret(String userSecret) { this.userSecret = userSecret; return this; } - + public CentralAPIRouter build() { + return new CentralAPIRouter( - siteId, - userName, - userSecret); + siteId, userName, userSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Chameleon.java b/src/main/java/com/airbyte/api/models/shared/Chameleon.java index 22a1986e1..74379b0e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chameleon.java +++ b/src/main/java/com/airbyte/api/models/shared/Chameleon.java @@ -14,7 +14,7 @@ public enum Chameleon { @JsonValue private final String value; - private Chameleon(String value) { + Chameleon(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Chargebee.java b/src/main/java/com/airbyte/api/models/shared/Chargebee.java index 1e10d967a..bfef9cbd5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chargebee.java +++ b/src/main/java/com/airbyte/api/models/shared/Chargebee.java @@ -14,7 +14,7 @@ public enum Chargebee { @JsonValue private final String value; - private Chargebee(String value) { + Chargebee(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Chargedesk.java b/src/main/java/com/airbyte/api/models/shared/Chargedesk.java index 03e132627..ddbc27154 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chargedesk.java +++ b/src/main/java/com/airbyte/api/models/shared/Chargedesk.java @@ -14,7 +14,7 @@ public enum Chargedesk { @JsonValue private final String value; - private Chargedesk(String value) { + Chargedesk(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Chargify.java b/src/main/java/com/airbyte/api/models/shared/Chargify.java index daf8063ad..bb8f3e2fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chargify.java +++ b/src/main/java/com/airbyte/api/models/shared/Chargify.java @@ -14,7 +14,7 @@ public enum Chargify { @JsonValue private final String value; - private Chargify(String value) { + Chargify(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Chartmogul.java b/src/main/java/com/airbyte/api/models/shared/Chartmogul.java index b0d3ee640..53f9b2159 100644 --- a/src/main/java/com/airbyte/api/models/shared/Chartmogul.java +++ b/src/main/java/com/airbyte/api/models/shared/Chartmogul.java @@ -14,7 +14,7 @@ public enum Chartmogul { @JsonValue private final String value; - private Chartmogul(String value) { + Chartmogul(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java b/src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java index 6a39f39b1..a75c7bdfa 100644 --- a/src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java +++ b/src/main/java/com/airbyte/api/models/shared/ChooseHowToPartitionData.java @@ -25,7 +25,7 @@ public enum ChooseHowToPartitionData { @JsonValue private final String value; - private ChooseHowToPartitionData(String value) { + ChooseHowToPartitionData(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Churnkey.java b/src/main/java/com/airbyte/api/models/shared/Churnkey.java new file mode 100644 index 000000000..9a85b841d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Churnkey.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Churnkey { + CHURNKEY("churnkey"); + + @JsonValue + private final String value; + + Churnkey(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Churnkey o: Churnkey.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Cimis.java b/src/main/java/com/airbyte/api/models/shared/Cimis.java index 0d2a497f2..c8479f6d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cimis.java +++ b/src/main/java/com/airbyte/api/models/shared/Cimis.java @@ -14,7 +14,7 @@ public enum Cimis { @JsonValue private final String value; - private Cimis(String value) { + Cimis(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Cin7.java b/src/main/java/com/airbyte/api/models/shared/Cin7.java index a7db7288e..fb934159e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cin7.java +++ b/src/main/java/com/airbyte/api/models/shared/Cin7.java @@ -14,7 +14,7 @@ public enum Cin7 { @JsonValue private final String value; - private Cin7(String value) { + Cin7(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Circa.java b/src/main/java/com/airbyte/api/models/shared/Circa.java index e14465238..411b77f23 100644 --- a/src/main/java/com/airbyte/api/models/shared/Circa.java +++ b/src/main/java/com/airbyte/api/models/shared/Circa.java @@ -14,7 +14,7 @@ public enum Circa { @JsonValue private final String value; - private Circa(String value) { + Circa(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Circleci.java b/src/main/java/com/airbyte/api/models/shared/Circleci.java index 04946b6e3..0d185fc64 100644 --- a/src/main/java/com/airbyte/api/models/shared/Circleci.java +++ b/src/main/java/com/airbyte/api/models/shared/Circleci.java @@ -14,7 +14,7 @@ public enum Circleci { @JsonValue private final String value; - private Circleci(String value) { + Circleci(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CiscoMeraki.java b/src/main/java/com/airbyte/api/models/shared/CiscoMeraki.java index a32de4591..0a4eadd18 100644 --- a/src/main/java/com/airbyte/api/models/shared/CiscoMeraki.java +++ b/src/main/java/com/airbyte/api/models/shared/CiscoMeraki.java @@ -14,7 +14,7 @@ public enum CiscoMeraki { @JsonValue private final String value; - private CiscoMeraki(String value) { + CiscoMeraki(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ClarifAi.java b/src/main/java/com/airbyte/api/models/shared/ClarifAi.java index ef416ce5c..9ec181fed 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClarifAi.java +++ b/src/main/java/com/airbyte/api/models/shared/ClarifAi.java @@ -14,7 +14,7 @@ public enum ClarifAi { @JsonValue private final String value; - private ClarifAi(String value) { + ClarifAi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Clazar.java b/src/main/java/com/airbyte/api/models/shared/Clazar.java index 567194eab..0941492df 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clazar.java +++ b/src/main/java/com/airbyte/api/models/shared/Clazar.java @@ -14,7 +14,7 @@ public enum Clazar { @JsonValue private final String value; - private Clazar(String value) { + Clazar(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ClickWindowDays.java b/src/main/java/com/airbyte/api/models/shared/ClickWindowDays.java index 8f06df7f1..768f018c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClickWindowDays.java +++ b/src/main/java/com/airbyte/api/models/shared/ClickWindowDays.java @@ -23,7 +23,7 @@ public enum ClickWindowDays { @JsonValue private final long value; - private ClickWindowDays(long value) { + ClickWindowDays(long value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Clickhouse.java b/src/main/java/com/airbyte/api/models/shared/Clickhouse.java index 3d8186ede..51ffdcb9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clickhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/Clickhouse.java @@ -14,7 +14,7 @@ public enum Clickhouse { @JsonValue private final String value; - private Clickhouse(String value) { + Clickhouse(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ClickupApi.java b/src/main/java/com/airbyte/api/models/shared/ClickupApi.java index 5e9fac7fd..f1ebd803e 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClickupApi.java +++ b/src/main/java/com/airbyte/api/models/shared/ClickupApi.java @@ -14,7 +14,7 @@ public enum ClickupApi { @JsonValue private final String value; - private ClickupApi(String value) { + ClickupApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Clockify.java b/src/main/java/com/airbyte/api/models/shared/Clockify.java index b6808c4bd..8bdb1a4c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clockify.java +++ b/src/main/java/com/airbyte/api/models/shared/Clockify.java @@ -14,7 +14,7 @@ public enum Clockify { @JsonValue private final String value; - private Clockify(String value) { + Clockify(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Clockodo.java b/src/main/java/com/airbyte/api/models/shared/Clockodo.java index d48156027..2a9d109a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Clockodo.java +++ b/src/main/java/com/airbyte/api/models/shared/Clockodo.java @@ -14,7 +14,7 @@ public enum Clockodo { @JsonValue private final String value; - private Clockodo(String value) { + Clockodo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CloseCom.java b/src/main/java/com/airbyte/api/models/shared/CloseCom.java index 7b686727b..1f46db4cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/CloseCom.java +++ b/src/main/java/com/airbyte/api/models/shared/CloseCom.java @@ -14,7 +14,7 @@ public enum CloseCom { @JsonValue private final String value; - private CloseCom(String value) { + CloseCom(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Cloudbeds.java b/src/main/java/com/airbyte/api/models/shared/Cloudbeds.java index 4b9fda92a..24c08cd7f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cloudbeds.java +++ b/src/main/java/com/airbyte/api/models/shared/Cloudbeds.java @@ -14,7 +14,7 @@ public enum Cloudbeds { @JsonValue private final String value; - private Cloudbeds(String value) { + Cloudbeds(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ClusterType.java b/src/main/java/com/airbyte/api/models/shared/ClusterType.java index 92d62957b..7b1fddff7 100644 --- a/src/main/java/com/airbyte/api/models/shared/ClusterType.java +++ b/src/main/java/com/airbyte/api/models/shared/ClusterType.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * ClusterType @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } ClusterType other = (ClusterType) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Coassemble.java b/src/main/java/com/airbyte/api/models/shared/Coassemble.java index 74ff5f2bd..6ceee1fb8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Coassemble.java +++ b/src/main/java/com/airbyte/api/models/shared/Coassemble.java @@ -14,7 +14,7 @@ public enum Coassemble { @JsonValue private final String value; - private Coassemble(String value) { + Coassemble(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Coda.java b/src/main/java/com/airbyte/api/models/shared/Coda.java index 873a117cb..7f34edebc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Coda.java +++ b/src/main/java/com/airbyte/api/models/shared/Coda.java @@ -14,7 +14,7 @@ public enum Coda { @JsonValue private final String value; - private Coda(String value) { + Coda(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Codec.java b/src/main/java/com/airbyte/api/models/shared/Codec.java index 6eb248b56..ef6ab05b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/Codec.java @@ -14,7 +14,7 @@ public enum Codec { @JsonValue private final String value; - private Codec(String value) { + Codec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Codefresh.java b/src/main/java/com/airbyte/api/models/shared/Codefresh.java index 958ff7c7f..8c4fa3631 100644 --- a/src/main/java/com/airbyte/api/models/shared/Codefresh.java +++ b/src/main/java/com/airbyte/api/models/shared/Codefresh.java @@ -14,7 +14,7 @@ public enum Codefresh { @JsonValue private final String value; - private Codefresh(String value) { + Codefresh(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Cohere.java b/src/main/java/com/airbyte/api/models/shared/Cohere.java index 206013d9e..a0d51ec57 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cohere.java +++ b/src/main/java/com/airbyte/api/models/shared/Cohere.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -27,6 +26,7 @@ public class Cohere { @JsonProperty("cohere_key") private String cohereKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -50,9 +50,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Cohere withCohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); @@ -60,7 +61,6 @@ public Cohere withCohereKey(String cohereKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +71,14 @@ public boolean equals(java.lang.Object o) { } Cohere other = (Cohere) o; return - Objects.deepEquals(this.cohereKey, other.cohereKey) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.cohereKey, other.cohereKey) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - cohereKey, - mode); + return Utils.enhancedHash( + cohereKey, mode); } @Override @@ -88,26 +87,30 @@ public String toString() { "cohereKey", cohereKey, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String cohereKey; - + private Builder() { // force use of static builder() method } + public Builder cohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); this.cohereKey = cohereKey; return this; } - + public Cohere build() { + return new Cohere( cohereKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/CohortReportSettings.java b/src/main/java/com/airbyte/api/models/shared/CohortReportSettings.java index 2acb5f5be..7c67f2370 100644 --- a/src/main/java/com/airbyte/api/models/shared/CohortReportSettings.java +++ b/src/main/java/com/airbyte/api/models/shared/CohortReportSettings.java @@ -12,7 +12,6 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -21,7 +20,6 @@ *

Optional settings for a cohort report. */ public class CohortReportSettings { - /** * If true, accumulates the result from first touch day to the end day */ @@ -48,9 +46,10 @@ public Optional accumulate() { return accumulate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * If true, accumulates the result from first touch day to the end day @@ -61,6 +60,7 @@ public CohortReportSettings withAccumulate(boolean accumulate) { return this; } + /** * If true, accumulates the result from first touch day to the end day */ @@ -70,7 +70,6 @@ public CohortReportSettings withAccumulate(Optional accumulate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,12 +80,12 @@ public boolean equals(java.lang.Object o) { } CohortReportSettings other = (CohortReportSettings) o; return - Objects.deepEquals(this.accumulate, other.accumulate); + Utils.enhancedDeepEquals(this.accumulate, other.accumulate); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( accumulate); } @@ -95,15 +94,17 @@ public String toString() { return Utils.toString(CohortReportSettings.class, "accumulate", accumulate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accumulate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * If true, accumulates the result from first touch day to the end day */ @@ -121,10 +122,12 @@ public Builder accumulate(Optional accumulate) { this.accumulate = accumulate; return this; } - + public CohortReportSettings build() { + return new CohortReportSettings( accumulate); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CohortReports.java b/src/main/java/com/airbyte/api/models/shared/CohortReports.java index acae80519..298a5512c 100644 --- a/src/main/java/com/airbyte/api/models/shared/CohortReports.java +++ b/src/main/java/com/airbyte/api/models/shared/CohortReports.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * CohortReports @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } CohortReports other = (CohortReports) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Cohorts.java b/src/main/java/com/airbyte/api/models/shared/Cohorts.java index 343634e9e..0f0e9f061 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cohorts.java +++ b/src/main/java/com/airbyte/api/models/shared/Cohorts.java @@ -11,9 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class Cohorts { @JsonProperty("dateRange") @@ -26,7 +26,8 @@ public class Cohorts { private Dimension dimension; /** - * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, cohort_1, etc. + * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, + * cohort_1, etc. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") @@ -65,16 +66,18 @@ public Dimension dimension() { } /** - * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, cohort_1, etc. + * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, + * cohort_1, etc. */ @JsonIgnore public Optional name() { return name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Cohorts withDateRange(DateRange dateRange) { Utils.checkNotNull(dateRange, "dateRange"); @@ -92,7 +95,8 @@ public Cohorts withDimension(Dimension dimension) { } /** - * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, cohort_1, etc. + * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, + * cohort_1, etc. */ public Cohorts withName(String name) { Utils.checkNotNull(name, "name"); @@ -100,8 +104,10 @@ public Cohorts withName(String name) { return this; } + /** - * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, cohort_1, etc. + * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, + * cohort_1, etc. */ public Cohorts withName(Optional name) { Utils.checkNotNull(name, "name"); @@ -109,7 +115,6 @@ public Cohorts withName(Optional name) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,17 +125,15 @@ public boolean equals(java.lang.Object o) { } Cohorts other = (Cohorts) o; return - Objects.deepEquals(this.dateRange, other.dateRange) && - Objects.deepEquals(this.dimension, other.dimension) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.dateRange, other.dateRange) && + Utils.enhancedDeepEquals(this.dimension, other.dimension) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - dateRange, - dimension, - name); + return Utils.enhancedHash( + dateRange, dimension, name); } @Override @@ -140,25 +143,28 @@ public String toString() { "dimension", dimension, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DateRange dateRange; - + private Dimension dimension; - + private Optional name = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder dateRange(DateRange dateRange) { Utils.checkNotNull(dateRange, "dateRange"); this.dateRange = dateRange; return this; } + /** * Dimension used by the cohort. Required and only supports `firstSessionDate` */ @@ -168,8 +174,10 @@ public Builder dimension(Dimension dimension) { return this; } + /** - * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, cohort_1, etc. + * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, + * cohort_1, etc. */ public Builder name(String name) { Utils.checkNotNull(name, "name"); @@ -178,19 +186,20 @@ public Builder name(String name) { } /** - * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, cohort_1, etc. + * Assigns a name to this cohort. If not set, cohorts are named by their zero based index cohort_0, + * cohort_1, etc. */ public Builder name(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - + public Cohorts build() { + return new Cohorts( - dateRange, - dimension, - name); + dateRange, dimension, name); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CohortsRange.java b/src/main/java/com/airbyte/api/models/shared/CohortsRange.java index 0ec04bf3b..62c8d0bc0 100644 --- a/src/main/java/com/airbyte/api/models/shared/CohortsRange.java +++ b/src/main/java/com/airbyte/api/models/shared/CohortsRange.java @@ -12,11 +12,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class CohortsRange { +public class CohortsRange { /** * Specifies the end date of the extended reporting date range for a cohort report. */ @@ -24,7 +23,8 @@ public class CohortsRange { private long endOffset; /** - * The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report. + * The granularity used to interpret the startOffset and endOffset for the extended reporting date + * range for a cohort report. */ @JsonProperty("granularity") private SourceGoogleAnalyticsDataApiGranularity granularity; @@ -64,7 +64,8 @@ public long endOffset() { } /** - * The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report. + * The granularity used to interpret the startOffset and endOffset for the extended reporting date + * range for a cohort report. */ @JsonIgnore public SourceGoogleAnalyticsDataApiGranularity granularity() { @@ -79,9 +80,10 @@ public Optional startOffset() { return startOffset; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Specifies the end date of the extended reporting date range for a cohort report. @@ -93,7 +95,8 @@ public CohortsRange withEndOffset(long endOffset) { } /** - * The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report. + * The granularity used to interpret the startOffset and endOffset for the extended reporting date + * range for a cohort report. */ public CohortsRange withGranularity(SourceGoogleAnalyticsDataApiGranularity granularity) { Utils.checkNotNull(granularity, "granularity"); @@ -110,6 +113,7 @@ public CohortsRange withStartOffset(long startOffset) { return this; } + /** * Specifies the start date of the extended reporting date range for a cohort report. */ @@ -119,7 +123,6 @@ public CohortsRange withStartOffset(Optional startOffset) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -130,17 +133,15 @@ public boolean equals(java.lang.Object o) { } CohortsRange other = (CohortsRange) o; return - Objects.deepEquals(this.endOffset, other.endOffset) && - Objects.deepEquals(this.granularity, other.granularity) && - Objects.deepEquals(this.startOffset, other.startOffset); + Utils.enhancedDeepEquals(this.endOffset, other.endOffset) && + Utils.enhancedDeepEquals(this.granularity, other.granularity) && + Utils.enhancedDeepEquals(this.startOffset, other.startOffset); } @Override public int hashCode() { - return Objects.hash( - endOffset, - granularity, - startOffset); + return Utils.enhancedHash( + endOffset, granularity, startOffset); } @Override @@ -150,19 +151,21 @@ public String toString() { "granularity", granularity, "startOffset", startOffset); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Long endOffset; - + private SourceGoogleAnalyticsDataApiGranularity granularity; - + private Optional startOffset = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Specifies the end date of the extended reporting date range for a cohort report. */ @@ -172,8 +175,10 @@ public Builder endOffset(long endOffset) { return this; } + /** - * The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report. + * The granularity used to interpret the startOffset and endOffset for the extended reporting date + * range for a cohort report. */ public Builder granularity(SourceGoogleAnalyticsDataApiGranularity granularity) { Utils.checkNotNull(granularity, "granularity"); @@ -181,6 +186,7 @@ public Builder granularity(SourceGoogleAnalyticsDataApiGranularity granularity) return this; } + /** * Specifies the start date of the extended reporting date range for a cohort report. */ @@ -198,12 +204,12 @@ public Builder startOffset(Optional startOffset) { this.startOffset = startOffset; return this; } - + public CohortsRange build() { + return new CohortsRange( - endOffset, - granularity, - startOffset); + endOffset, granularity, startOffset); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CoinApi.java b/src/main/java/com/airbyte/api/models/shared/CoinApi.java index 485a752bf..495944377 100644 --- a/src/main/java/com/airbyte/api/models/shared/CoinApi.java +++ b/src/main/java/com/airbyte/api/models/shared/CoinApi.java @@ -14,7 +14,7 @@ public enum CoinApi { @JsonValue private final String value; - private CoinApi(String value) { + CoinApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CoingeckoCoins.java b/src/main/java/com/airbyte/api/models/shared/CoingeckoCoins.java index f0ab658d0..16a4fbd4c 100644 --- a/src/main/java/com/airbyte/api/models/shared/CoingeckoCoins.java +++ b/src/main/java/com/airbyte/api/models/shared/CoingeckoCoins.java @@ -14,7 +14,7 @@ public enum CoingeckoCoins { @JsonValue private final String value; - private CoingeckoCoins(String value) { + CoingeckoCoins(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java b/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java index 663dde0f1..a4f5a335d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java +++ b/src/main/java/com/airbyte/api/models/shared/Coinmarketcap.java @@ -14,7 +14,7 @@ public enum Coinmarketcap { @JsonValue private final String value; - private Coinmarketcap(String value) { + Coinmarketcap(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Collection.java b/src/main/java/com/airbyte/api/models/shared/Collection.java index 7afe6ac2b..49488e638 100644 --- a/src/main/java/com/airbyte/api/models/shared/Collection.java +++ b/src/main/java/com/airbyte/api/models/shared/Collection.java @@ -14,7 +14,6 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -23,20 +22,23 @@ *

Settings for the Fauna Collection. */ public class Collection { - /** - * <b>This only applies to incremental syncs.</b> <br> - * Enabling deletion mode informs your destination of deleted documents.<br> - * Disabled - Leave this feature disabled, and ignore deleted documents.<br> - * Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted. + * This only applies to incremental syncs.
+ * Enabling deletion mode informs your destination of deleted documents.
+ * Disabled - Leave this feature disabled, and ignore deleted documents.
+ * Enabled - Enables this feature. When a document is deleted, the connector exports a record with a + * "deleted at" column containing the time that the document was deleted. */ @JsonProperty("deletions") private DeletionMode deletions; /** - * The page size used when reading documents from the database. The larger the page size, the faster the connector processes documents. However, if a page is too large, the connector may fail. <br> - * Choose your page size based on how large the documents are. <br> - * See <a href="https://docs.fauna.com/fauna/current/learn/understanding/types#page">the docs</a>. + * The page size used when reading documents from the database. The larger the page size, the faster + * the connector processes documents. However, if a page is too large, the connector may fail. + * + *


+ * Choose your page size based on how large the documents are.
+ * See the docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("page_size") @@ -58,10 +60,11 @@ public Collection( } /** - * <b>This only applies to incremental syncs.</b> <br> - * Enabling deletion mode informs your destination of deleted documents.<br> - * Disabled - Leave this feature disabled, and ignore deleted documents.<br> - * Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted. + * This only applies to incremental syncs.
+ * Enabling deletion mode informs your destination of deleted documents.
+ * Disabled - Leave this feature disabled, and ignore deleted documents.
+ * Enabled - Enables this feature. When a document is deleted, the connector exports a record with a + * "deleted at" column containing the time that the document was deleted. */ @JsonIgnore public DeletionMode deletions() { @@ -69,24 +72,29 @@ public DeletionMode deletions() { } /** - * The page size used when reading documents from the database. The larger the page size, the faster the connector processes documents. However, if a page is too large, the connector may fail. <br> - * Choose your page size based on how large the documents are. <br> - * See <a href="https://docs.fauna.com/fauna/current/learn/understanding/types#page">the docs</a>. + * The page size used when reading documents from the database. The larger the page size, the faster + * the connector processes documents. However, if a page is too large, the connector may fail. + * + *


+ * Choose your page size based on how large the documents are.
+ * See the docs. */ @JsonIgnore public Optional pageSize() { return pageSize; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * <b>This only applies to incremental syncs.</b> <br> - * Enabling deletion mode informs your destination of deleted documents.<br> - * Disabled - Leave this feature disabled, and ignore deleted documents.<br> - * Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted. + * This only applies to incremental syncs.
+ * Enabling deletion mode informs your destination of deleted documents.
+ * Disabled - Leave this feature disabled, and ignore deleted documents.
+ * Enabled - Enables this feature. When a document is deleted, the connector exports a record with a + * "deleted at" column containing the time that the document was deleted. */ public Collection withDeletions(DeletionMode deletions) { Utils.checkNotNull(deletions, "deletions"); @@ -95,9 +103,12 @@ public Collection withDeletions(DeletionMode deletions) { } /** - * The page size used when reading documents from the database. The larger the page size, the faster the connector processes documents. However, if a page is too large, the connector may fail. <br> - * Choose your page size based on how large the documents are. <br> - * See <a href="https://docs.fauna.com/fauna/current/learn/understanding/types#page">the docs</a>. + * The page size used when reading documents from the database. The larger the page size, the faster + * the connector processes documents. However, if a page is too large, the connector may fail. + * + *


+ * Choose your page size based on how large the documents are.
+ * See the docs. */ public Collection withPageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -105,10 +116,14 @@ public Collection withPageSize(long pageSize) { return this; } + /** - * The page size used when reading documents from the database. The larger the page size, the faster the connector processes documents. However, if a page is too large, the connector may fail. <br> - * Choose your page size based on how large the documents are. <br> - * See <a href="https://docs.fauna.com/fauna/current/learn/understanding/types#page">the docs</a>. + * The page size used when reading documents from the database. The larger the page size, the faster + * the connector processes documents. However, if a page is too large, the connector may fail. + * + *


+ * Choose your page size based on how large the documents are.
+ * See the docs. */ public Collection withPageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -116,7 +131,6 @@ public Collection withPageSize(Optional pageSize) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,15 +141,14 @@ public boolean equals(java.lang.Object o) { } Collection other = (Collection) o; return - Objects.deepEquals(this.deletions, other.deletions) && - Objects.deepEquals(this.pageSize, other.pageSize); + Utils.enhancedDeepEquals(this.deletions, other.deletions) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize); } @Override public int hashCode() { - return Objects.hash( - deletions, - pageSize); + return Utils.enhancedHash( + deletions, pageSize); } @Override @@ -144,22 +157,25 @@ public String toString() { "deletions", deletions, "pageSize", pageSize); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DeletionMode deletions; - + private Optional pageSize; - + private Builder() { // force use of static builder() method } + /** - * <b>This only applies to incremental syncs.</b> <br> - * Enabling deletion mode informs your destination of deleted documents.<br> - * Disabled - Leave this feature disabled, and ignore deleted documents.<br> - * Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted. + * This only applies to incremental syncs.
+ * Enabling deletion mode informs your destination of deleted documents.
+ * Disabled - Leave this feature disabled, and ignore deleted documents.
+ * Enabled - Enables this feature. When a document is deleted, the connector exports a record with a + * "deleted at" column containing the time that the document was deleted. */ public Builder deletions(DeletionMode deletions) { Utils.checkNotNull(deletions, "deletions"); @@ -167,10 +183,14 @@ public Builder deletions(DeletionMode deletions) { return this; } + /** - * The page size used when reading documents from the database. The larger the page size, the faster the connector processes documents. However, if a page is too large, the connector may fail. <br> - * Choose your page size based on how large the documents are. <br> - * See <a href="https://docs.fauna.com/fauna/current/learn/understanding/types#page">the docs</a>. + * The page size used when reading documents from the database. The larger the page size, the faster + * the connector processes documents. However, if a page is too large, the connector may fail. + * + *


+ * Choose your page size based on how large the documents are.
+ * See the docs. */ public Builder pageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -179,25 +199,29 @@ public Builder pageSize(long pageSize) { } /** - * The page size used when reading documents from the database. The larger the page size, the faster the connector processes documents. However, if a page is too large, the connector may fail. <br> - * Choose your page size based on how large the documents are. <br> - * See <a href="https://docs.fauna.com/fauna/current/learn/understanding/types#page">the docs</a>. + * The page size used when reading documents from the database. The larger the page size, the faster + * the connector processes documents. However, if a page is too large, the connector may fail. + * + *


+ * Choose your page size based on how large the documents are.
+ * See the docs. */ public Builder pageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); this.pageSize = pageSize; return this; } - + public Collection build() { if (pageSize == null) { pageSize = _SINGLETON_VALUE_PageSize.value(); } + return new Collection( - deletions, - pageSize); + deletions, pageSize); } + private static final LazySingletonValue> _SINGLETON_VALUE_PageSize = new LazySingletonValue<>( "page_size", diff --git a/src/main/java/com/airbyte/api/models/shared/Compression.java b/src/main/java/com/airbyte/api/models/shared/Compression.java index bc938b73a..6c2abc94d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Compression.java +++ b/src/main/java/com/airbyte/api/models/shared/Compression.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * Compression * - *

Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + *

Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".csv.gz"). */ @JsonDeserialize(using = Compression._Deserializer.class) public class Compression { @@ -72,12 +72,12 @@ public boolean equals(java.lang.Object o) { return false; } Compression other = (Compression) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/CompressionCodec.java b/src/main/java/com/airbyte/api/models/shared/CompressionCodec.java index 8dcfc4334..914be7ff3 100644 --- a/src/main/java/com/airbyte/api/models/shared/CompressionCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/CompressionCodec.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * CompressionCodec @@ -96,12 +95,12 @@ public boolean equals(java.lang.Object o) { return false; } CompressionCodec other = (CompressionCodec) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java b/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java index 9173525f0..cda5c1d9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java +++ b/src/main/java/com/airbyte/api/models/shared/CompressionCodecOptional.java @@ -20,7 +20,7 @@ public enum CompressionCodecOptional { @JsonValue private final String value; - private CompressionCodecOptional(String value) { + CompressionCodecOptional(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CompressionType.java b/src/main/java/com/airbyte/api/models/shared/CompressionType.java index 6f46c0c37..91472b5b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/CompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/CompressionType.java @@ -14,7 +14,7 @@ public enum CompressionType { @JsonValue private final String value; - private CompressionType(String value) { + CompressionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Concord.java b/src/main/java/com/airbyte/api/models/shared/Concord.java index 09cb940ff..c0559f5b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Concord.java +++ b/src/main/java/com/airbyte/api/models/shared/Concord.java @@ -14,7 +14,7 @@ public enum Concord { @JsonValue private final String value; - private Concord(String value) { + Concord(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Configcat.java b/src/main/java/com/airbyte/api/models/shared/Configcat.java index 5c42f70df..5203c5d1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Configcat.java +++ b/src/main/java/com/airbyte/api/models/shared/Configcat.java @@ -14,7 +14,7 @@ public enum Configcat { @JsonValue private final String value; - private Configcat(String value) { + Configcat(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ConfiguredStreamMapper.java b/src/main/java/com/airbyte/api/models/shared/ConfiguredStreamMapper.java index fcef48c5d..b4ca1d524 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConfiguredStreamMapper.java +++ b/src/main/java/com/airbyte/api/models/shared/ConfiguredStreamMapper.java @@ -11,9 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class ConfiguredStreamMapper { @JsonInclude(Include.NON_ABSENT) @@ -26,6 +26,7 @@ public class ConfiguredStreamMapper { @JsonProperty("mapperConfiguration") private MapperConfiguration mapperConfiguration; + @JsonProperty("type") private StreamMapperType type; @@ -66,9 +67,10 @@ public StreamMapperType type() { return type; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ConfiguredStreamMapper withId(String id) { Utils.checkNotNull(id, "id"); @@ -76,6 +78,7 @@ public ConfiguredStreamMapper withId(String id) { return this; } + public ConfiguredStreamMapper withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; @@ -97,7 +100,6 @@ public ConfiguredStreamMapper withType(StreamMapperType type) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,17 +110,15 @@ public boolean equals(java.lang.Object o) { } ConfiguredStreamMapper other = (ConfiguredStreamMapper) o; return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.mapperConfiguration, other.mapperConfiguration) && - Objects.deepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.mapperConfiguration, other.mapperConfiguration) && + Utils.enhancedDeepEquals(this.type, other.type); } @Override public int hashCode() { - return Objects.hash( - id, - mapperConfiguration, - type); + return Utils.enhancedHash( + id, mapperConfiguration, type); } @Override @@ -128,19 +128,21 @@ public String toString() { "mapperConfiguration", mapperConfiguration, "type", type); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional id = Optional.empty(); - + private MapperConfiguration mapperConfiguration; - + private StreamMapperType type; - + private Builder() { // force use of static builder() method } + public Builder id(String id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); @@ -153,6 +155,7 @@ public Builder id(Optional id) { return this; } + /** * The values required to configure the mapper. */ @@ -162,17 +165,18 @@ public Builder mapperConfiguration(MapperConfiguration mapperConfiguration) { return this; } + public Builder type(StreamMapperType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - + public ConfiguredStreamMapper build() { + return new ConfiguredStreamMapper( - id, - mapperConfiguration, - type); + id, mapperConfiguration, type); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Confluence.java b/src/main/java/com/airbyte/api/models/shared/Confluence.java index 562bc8358..a8dca12c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Confluence.java +++ b/src/main/java/com/airbyte/api/models/shared/Confluence.java @@ -14,7 +14,7 @@ public enum Confluence { @JsonValue private final String value; - private Confluence(String value) { + Confluence(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectBy.java b/src/main/java/com/airbyte/api/models/shared/ConnectBy.java index dab7abbbe..b74abf23f 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectBy.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectBy.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * ConnectBy @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } ConnectBy other = (ConnectBy) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java index 6c213cae3..7615d1494 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionCreateRequest.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class ConnectionCreateRequest { +public class ConnectionCreateRequest { /** * A list of configured stream options for a connection. */ @@ -30,13 +29,14 @@ public class ConnectionCreateRequest { /** * - * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. This will be supported on Cloud until May 31, at which time all connections will use the dataResidency of their associated workspace.. + * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. All connections will use the dataResidency of their associated workspace.. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("dataResidency") @Deprecated private Optional dataResidency; + @JsonProperty("destinationId") private String destinationId; @@ -55,7 +55,8 @@ public class ConnectionCreateRequest { private Optional namespaceDefinition; /** - * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. + * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = + * 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("namespaceFormat") @@ -69,7 +70,8 @@ public class ConnectionCreateRequest { private Optional nonBreakingSchemaUpdatesBehavior; /** - * Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”). + * Prefix that will be prepended to the name of each stream when it is written to the destination (ex. + * “airbyte_” causes “projects” => “airbyte_projects”). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("prefix") @@ -82,13 +84,16 @@ public class ConnectionCreateRequest { @JsonProperty("schedule") private Optional schedule; + @JsonProperty("sourceId") private String sourceId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") private Optional status; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tags") private Optional> tags; @@ -136,7 +141,10 @@ public ConnectionCreateRequest( public ConnectionCreateRequest( String destinationId, String sourceId) { - this(Optional.empty(), Optional.empty(), destinationId, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), sourceId, Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), destinationId, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + sourceId, Optional.empty(), Optional.empty()); } /** @@ -150,7 +158,7 @@ public Optional configurations() { /** * - * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. This will be supported on Cloud until May 31, at which time all connections will use the dataResidency of their associated workspace.. + * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. All connections will use the dataResidency of their associated workspace.. */ @Deprecated @JsonIgnore @@ -181,7 +189,8 @@ public Optional namespaceDefinition() { } /** - * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. + * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = + * 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. */ @JsonIgnore public Optional namespaceFormat() { @@ -198,7 +207,8 @@ public Optional nonBreakingSchemaUpdatesBe } /** - * Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”). + * Prefix that will be prepended to the name of each stream when it is written to the destination (ex. + * “airbyte_” causes “projects” => “airbyte_projects”). */ @JsonIgnore public Optional prefix() { @@ -231,9 +241,10 @@ public Optional> tags() { return (Optional>) tags; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * A list of configured stream options for a connection. @@ -244,6 +255,7 @@ public ConnectionCreateRequest withConfigurations(StreamConfigurationsInput conf return this; } + /** * A list of configured stream options for a connection. */ @@ -255,7 +267,7 @@ public ConnectionCreateRequest withConfigurations(Optional dataResidency) { @@ -290,6 +303,7 @@ public ConnectionCreateRequest withName(String name) { return this; } + /** * Optional name of the connection */ @@ -308,6 +322,7 @@ public ConnectionCreateRequest withNamespaceDefinition(NamespaceDefinitionEnum n return this; } + /** * Define the location where the data will be stored in the destination */ @@ -318,7 +333,8 @@ public ConnectionCreateRequest withNamespaceDefinition(Optional namespaceFormat) { Utils.checkNotNull(namespaceFormat, "namespaceFormat"); @@ -344,6 +362,7 @@ public ConnectionCreateRequest withNonBreakingSchemaUpdatesBehavior(NonBreakingS return this; } + /** * Set how Airbyte handles syncs when it detects a non-breaking schema change in the source */ @@ -354,7 +373,8 @@ public ConnectionCreateRequest withNonBreakingSchemaUpdatesBehavior(Optional prefix) { Utils.checkNotNull(prefix, "prefix"); @@ -380,6 +402,7 @@ public ConnectionCreateRequest withSchedule(AirbyteApiConnectionSchedule schedul return this; } + /** * schedule for when the the connection should run, per the schedule type */ @@ -401,6 +424,7 @@ public ConnectionCreateRequest withStatus(ConnectionStatusEnum status) { return this; } + public ConnectionCreateRequest withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; @@ -413,13 +437,13 @@ public ConnectionCreateRequest withTags(List tags) { return this; } + public ConnectionCreateRequest withTags(Optional> tags) { Utils.checkNotNull(tags, "tags"); this.tags = tags; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -430,35 +454,27 @@ public boolean equals(java.lang.Object o) { } ConnectionCreateRequest other = (ConnectionCreateRequest) o; return - Objects.deepEquals(this.configurations, other.configurations) && - Objects.deepEquals(this.dataResidency, other.dataResidency) && - Objects.deepEquals(this.destinationId, other.destinationId) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.namespaceDefinition, other.namespaceDefinition) && - Objects.deepEquals(this.namespaceFormat, other.namespaceFormat) && - Objects.deepEquals(this.nonBreakingSchemaUpdatesBehavior, other.nonBreakingSchemaUpdatesBehavior) && - Objects.deepEquals(this.prefix, other.prefix) && - Objects.deepEquals(this.schedule, other.schedule) && - Objects.deepEquals(this.sourceId, other.sourceId) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.tags, other.tags); + Utils.enhancedDeepEquals(this.configurations, other.configurations) && + Utils.enhancedDeepEquals(this.dataResidency, other.dataResidency) && + Utils.enhancedDeepEquals(this.destinationId, other.destinationId) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.namespaceDefinition, other.namespaceDefinition) && + Utils.enhancedDeepEquals(this.namespaceFormat, other.namespaceFormat) && + Utils.enhancedDeepEquals(this.nonBreakingSchemaUpdatesBehavior, other.nonBreakingSchemaUpdatesBehavior) && + Utils.enhancedDeepEquals(this.prefix, other.prefix) && + Utils.enhancedDeepEquals(this.schedule, other.schedule) && + Utils.enhancedDeepEquals(this.sourceId, other.sourceId) && + Utils.enhancedDeepEquals(this.status, other.status) && + Utils.enhancedDeepEquals(this.tags, other.tags); } @Override public int hashCode() { - return Objects.hash( - configurations, - dataResidency, - destinationId, - name, - namespaceDefinition, - namespaceFormat, - nonBreakingSchemaUpdatesBehavior, - prefix, - schedule, - sourceId, - status, - tags); + return Utils.enhancedHash( + configurations, dataResidency, destinationId, + name, namespaceDefinition, namespaceFormat, + nonBreakingSchemaUpdatesBehavior, prefix, schedule, + sourceId, status, tags); } @Override @@ -477,38 +493,40 @@ public String toString() { "status", status, "tags", tags); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional configurations = Optional.empty(); - + @Deprecated private Optional dataResidency = Optional.empty(); - + private String destinationId; - + private Optional name = Optional.empty(); - + private Optional namespaceDefinition; - + private Optional namespaceFormat; - + private Optional nonBreakingSchemaUpdatesBehavior; - + private Optional prefix; - + private Optional schedule = Optional.empty(); - + private String sourceId; - + private Optional status = Optional.empty(); - + private Optional> tags = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * A list of configured stream options for a connection. */ @@ -527,9 +545,10 @@ public Builder configurations(Optional conf return this; } + /** * - * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. This will be supported on Cloud until May 31, at which time all connections will use the dataResidency of their associated workspace.. + * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. All connections will use the dataResidency of their associated workspace.. */ @Deprecated public Builder dataResidency(String dataResidency) { @@ -540,7 +559,7 @@ public Builder dataResidency(String dataResidency) { /** * - * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. This will be supported on Cloud until May 31, at which time all connections will use the dataResidency of their associated workspace.. + * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. All connections will use the dataResidency of their associated workspace.. */ @Deprecated public Builder dataResidency(Optional dataResidency) { @@ -549,12 +568,14 @@ public Builder dataResidency(Optional dataResidency) { return this; } + public Builder destinationId(String destinationId) { Utils.checkNotNull(destinationId, "destinationId"); this.destinationId = destinationId; return this; } + /** * Optional name of the connection */ @@ -573,6 +594,7 @@ public Builder name(Optional name) { return this; } + /** * Define the location where the data will be stored in the destination */ @@ -591,8 +613,10 @@ public Builder namespaceDefinition(Optional n return this; } + /** - * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. + * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = + * 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. */ public Builder namespaceFormat(String namespaceFormat) { Utils.checkNotNull(namespaceFormat, "namespaceFormat"); @@ -601,7 +625,8 @@ public Builder namespaceFormat(String namespaceFormat) { } /** - * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. + * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = + * 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. */ public Builder namespaceFormat(Optional namespaceFormat) { Utils.checkNotNull(namespaceFormat, "namespaceFormat"); @@ -609,6 +634,7 @@ public Builder namespaceFormat(Optional namespaceFormat) { return this; } + /** * Set how Airbyte handles syncs when it detects a non-breaking schema change in the source */ @@ -627,8 +653,10 @@ public Builder nonBreakingSchemaUpdatesBehavior(Optional prefix) { Utils.checkNotNull(prefix, "prefix"); @@ -645,6 +674,7 @@ public Builder prefix(Optional prefix) { return this; } + /** * schedule for when the the connection should run, per the schedule type */ @@ -663,12 +693,14 @@ public Builder schedule(Optional schedul return this; } + public Builder sourceId(String sourceId) { Utils.checkNotNull(sourceId, "sourceId"); this.sourceId = sourceId; return this; } + public Builder status(ConnectionStatusEnum status) { Utils.checkNotNull(status, "status"); this.status = Optional.ofNullable(status); @@ -681,6 +713,7 @@ public Builder status(Optional status) { return this; } + public Builder tags(List tags) { Utils.checkNotNull(tags, "tags"); this.tags = Optional.ofNullable(tags); @@ -692,7 +725,7 @@ public Builder tags(Optional> tags) { this.tags = tags; return this; } - + public ConnectionCreateRequest build() { if (namespaceDefinition == null) { namespaceDefinition = _SINGLETON_VALUE_NamespaceDefinition.value(); @@ -706,21 +739,15 @@ public ConnectionCreateRequest build() { if (prefix == null) { prefix = _SINGLETON_VALUE_Prefix.value(); } + return new ConnectionCreateRequest( - configurations, - dataResidency, - destinationId, - name, - namespaceDefinition, - namespaceFormat, - nonBreakingSchemaUpdatesBehavior, - prefix, - schedule, - sourceId, - status, - tags); + configurations, dataResidency, destinationId, + name, namespaceDefinition, namespaceFormat, + nonBreakingSchemaUpdatesBehavior, prefix, schedule, + sourceId, status, tags); } + private static final LazySingletonValue> _SINGLETON_VALUE_NamespaceDefinition = new LazySingletonValue<>( "namespaceDefinition", diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionPatchRequest.java b/src/main/java/com/airbyte/api/models/shared/ConnectionPatchRequest.java index 0a3a32237..8cb44d524 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionPatchRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionPatchRequest.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class ConnectionPatchRequest { +public class ConnectionPatchRequest { /** * A list of configured stream options for a connection. */ @@ -30,7 +29,7 @@ public class ConnectionPatchRequest { /** * - * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. This will be supported on Cloud until May 31, at which time all connections will use the dataResidency of their associated workspace.. + * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. All connections will use the dataResidency of their associated workspace.. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("dataResidency") @@ -52,7 +51,8 @@ public class ConnectionPatchRequest { private Optional namespaceDefinition; /** - * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. + * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = + * 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("namespaceFormat") @@ -66,7 +66,8 @@ public class ConnectionPatchRequest { private Optional nonBreakingSchemaUpdatesBehavior; /** - * Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”). + * Prefix that will be prepended to the name of each stream when it is written to the destination (ex. + * “airbyte_” causes “projects” => “airbyte_projects”). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("prefix") @@ -79,10 +80,12 @@ public class ConnectionPatchRequest { @JsonProperty("schedule") private Optional schedule; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") private Optional status; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tags") private Optional> tags; @@ -122,7 +125,10 @@ public ConnectionPatchRequest( } public ConnectionPatchRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -136,7 +142,7 @@ public Optional configurations() { /** * - * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. This will be supported on Cloud until May 31, at which time all connections will use the dataResidency of their associated workspace.. + * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. All connections will use the dataResidency of their associated workspace.. */ @Deprecated @JsonIgnore @@ -162,7 +168,8 @@ public Optional namespaceDefinition() { } /** - * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. + * Used when namespaceDefinition is 'custom_format'. If blank then behaves like namespaceDefinition = + * 'destination'. If "${SOURCE_NAMESPACE}" then behaves like namespaceDefinition = 'source'. */ @JsonIgnore public Optional namespaceFormat() { @@ -179,7 +186,8 @@ public Optional nonBreakingSchema } /** - * Prefix that will be prepended to the name of each stream when it is written to the destination (ex. “airbyte_” causes “projects” => “airbyte_projects”). + * Prefix that will be prepended to the name of each stream when it is written to the destination (ex. + * “airbyte_” causes “projects” => “airbyte_projects”). */ @JsonIgnore public Optional prefix() { @@ -207,9 +215,10 @@ public Optional> tags() { return (Optional>) tags; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * A list of configured stream options for a connection. @@ -220,6 +229,7 @@ public ConnectionPatchRequest withConfigurations(StreamConfigurationsInput confi return this; } + /** * A list of configured stream options for a connection. */ @@ -231,7 +241,7 @@ public ConnectionPatchRequest withConfigurations(Optional dataResidency) { @@ -260,6 +271,7 @@ public ConnectionPatchRequest withName(String name) { return this; } + /** * Optional name of the connection */ @@ -278,6 +290,7 @@ public ConnectionPatchRequest withNamespaceDefinition(NamespaceDefinitionEnumNoD return this; } + /** * Define the location where the data will be stored in the destination */ @@ -288,7 +301,8 @@ public ConnectionPatchRequest withNamespaceDefinition(Optional namespaceFormat) { Utils.checkNotNull(namespaceFormat, "namespaceFormat"); @@ -314,6 +330,7 @@ public ConnectionPatchRequest withNonBreakingSchemaUpdatesBehavior(NonBreakingSc return this; } + /** * Set how Airbyte handles syncs when it detects a non-breaking schema change in the source */ @@ -324,7 +341,8 @@ public ConnectionPatchRequest withNonBreakingSchemaUpdatesBehavior(Optional prefix) { Utils.checkNotNull(prefix, "prefix"); @@ -350,6 +370,7 @@ public ConnectionPatchRequest withSchedule(AirbyteApiConnectionSchedule schedule return this; } + /** * schedule for when the the connection should run, per the schedule type */ @@ -365,6 +386,7 @@ public ConnectionPatchRequest withStatus(ConnectionStatusEnum status) { return this; } + public ConnectionPatchRequest withStatus(Optional status) { Utils.checkNotNull(status, "status"); this.status = status; @@ -377,13 +399,13 @@ public ConnectionPatchRequest withTags(List tags) { return this; } + public ConnectionPatchRequest withTags(Optional> tags) { Utils.checkNotNull(tags, "tags"); this.tags = tags; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -394,30 +416,24 @@ public boolean equals(java.lang.Object o) { } ConnectionPatchRequest other = (ConnectionPatchRequest) o; return - Objects.deepEquals(this.configurations, other.configurations) && - Objects.deepEquals(this.dataResidency, other.dataResidency) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.namespaceDefinition, other.namespaceDefinition) && - Objects.deepEquals(this.namespaceFormat, other.namespaceFormat) && - Objects.deepEquals(this.nonBreakingSchemaUpdatesBehavior, other.nonBreakingSchemaUpdatesBehavior) && - Objects.deepEquals(this.prefix, other.prefix) && - Objects.deepEquals(this.schedule, other.schedule) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.tags, other.tags); + Utils.enhancedDeepEquals(this.configurations, other.configurations) && + Utils.enhancedDeepEquals(this.dataResidency, other.dataResidency) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.namespaceDefinition, other.namespaceDefinition) && + Utils.enhancedDeepEquals(this.namespaceFormat, other.namespaceFormat) && + Utils.enhancedDeepEquals(this.nonBreakingSchemaUpdatesBehavior, other.nonBreakingSchemaUpdatesBehavior) && + Utils.enhancedDeepEquals(this.prefix, other.prefix) && + Utils.enhancedDeepEquals(this.schedule, other.schedule) && + Utils.enhancedDeepEquals(this.status, other.status) && + Utils.enhancedDeepEquals(this.tags, other.tags); } @Override public int hashCode() { - return Objects.hash( - configurations, - dataResidency, - name, - namespaceDefinition, - namespaceFormat, - nonBreakingSchemaUpdatesBehavior, - prefix, - schedule, - status, + return Utils.enhancedHash( + configurations, dataResidency, name, + namespaceDefinition, namespaceFormat, nonBreakingSchemaUpdatesBehavior, + prefix, schedule, status, tags); } @@ -435,34 +451,36 @@ public String toString() { "status", status, "tags", tags); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional configurations = Optional.empty(); - + @Deprecated private Optional dataResidency = Optional.empty(); - + private Optional name = Optional.empty(); - + private Optional namespaceDefinition = Optional.empty(); - + private Optional namespaceFormat; - + private Optional nonBreakingSchemaUpdatesBehavior = Optional.empty(); - + private Optional prefix = Optional.empty(); - + private Optional schedule = Optional.empty(); - + private Optional status = Optional.empty(); - + private Optional> tags = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * A list of configured stream options for a connection. */ @@ -481,9 +499,10 @@ public Builder configurations(Optional conf return this; } + /** * - * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. This will be supported on Cloud until May 31, at which time all connections will use the dataResidency of their associated workspace.. + * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. All connections will use the dataResidency of their associated workspace.. */ @Deprecated public Builder dataResidency(String dataResidency) { @@ -494,7 +513,7 @@ public Builder dataResidency(String dataResidency) { /** * - * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. This will be supported on Cloud until May 31, at which time all connections will use the dataResidency of their associated workspace.. + * @deprecated field: We no longer support modifying dataResidency on Community and Enterprise connections. All connections will use the dataResidency of their associated workspace.. */ @Deprecated public Builder dataResidency(Optional dataResidency) { @@ -503,6 +522,7 @@ public Builder dataResidency(Optional dataResidency) { return this; } + /** * Optional name of the connection */ @@ -521,6 +541,7 @@ public Builder name(Optional name) { return this; } + /** * Define the location where the data will be stored in the destination */ @@ -539,8 +560,10 @@ public Builder namespaceDefinition(Optional namespaceFormat) { Utils.checkNotNull(namespaceFormat, "namespaceFormat"); @@ -557,6 +581,7 @@ public Builder namespaceFormat(Optional namespaceFormat) { return this; } + /** * Set how Airbyte handles syncs when it detects a non-breaking schema change in the source */ @@ -575,8 +600,10 @@ public Builder nonBreakingSchemaUpdatesBehavior(Optional prefix) { Utils.checkNotNull(prefix, "prefix"); @@ -593,6 +621,7 @@ public Builder prefix(Optional prefix) { return this; } + /** * schedule for when the the connection should run, per the schedule type */ @@ -611,6 +640,7 @@ public Builder schedule(Optional schedul return this; } + public Builder status(ConnectionStatusEnum status) { Utils.checkNotNull(status, "status"); this.status = Optional.ofNullable(status); @@ -623,6 +653,7 @@ public Builder status(Optional status) { return this; } + public Builder tags(List tags) { Utils.checkNotNull(tags, "tags"); this.tags = Optional.ofNullable(tags); @@ -634,24 +665,20 @@ public Builder tags(Optional> tags) { this.tags = tags; return this; } - + public ConnectionPatchRequest build() { if (namespaceFormat == null) { namespaceFormat = _SINGLETON_VALUE_NamespaceFormat.value(); } + return new ConnectionPatchRequest( - configurations, - dataResidency, - name, - namespaceDefinition, - namespaceFormat, - nonBreakingSchemaUpdatesBehavior, - prefix, - schedule, - status, + configurations, dataResidency, name, + namespaceDefinition, namespaceFormat, nonBreakingSchemaUpdatesBehavior, + prefix, schedule, status, tags); } + private static final LazySingletonValue> _SINGLETON_VALUE_NamespaceFormat = new LazySingletonValue<>( "namespaceFormat", diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionResponse.java b/src/main/java/com/airbyte/api/models/shared/ConnectionResponse.java index 9281d9bdd..3b891345a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionResponse.java @@ -16,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -25,25 +24,25 @@ *

Provides details of a single connection. */ public class ConnectionResponse { - /** * A list of configured stream options for a connection. */ @JsonProperty("configurations") private StreamConfigurations configurations; + @JsonProperty("connectionId") private String connectionId; + @JsonProperty("createdAt") private long createdAt; - @JsonProperty("dataResidency") - private String dataResidency; @JsonProperty("destinationId") private String destinationId; + @JsonProperty("name") private String name; @@ -54,6 +53,7 @@ public class ConnectionResponse { @JsonProperty("namespaceDefinition") private Optional namespaceDefinition; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("namespaceFormat") private Optional namespaceFormat; @@ -65,6 +65,7 @@ public class ConnectionResponse { @JsonProperty("nonBreakingSchemaUpdatesBehavior") private Optional nonBreakingSchemaUpdatesBehavior; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("prefix") private Optional prefix; @@ -75,15 +76,19 @@ public class ConnectionResponse { @JsonProperty("schedule") private ConnectionScheduleResponse schedule; + @JsonProperty("sourceId") private String sourceId; + @JsonProperty("status") private ConnectionStatusEnum status; + @JsonProperty("tags") private List tags; + @JsonProperty("workspaceId") private String workspaceId; @@ -92,7 +97,6 @@ public ConnectionResponse( @JsonProperty("configurations") StreamConfigurations configurations, @JsonProperty("connectionId") String connectionId, @JsonProperty("createdAt") long createdAt, - @JsonProperty("dataResidency") String dataResidency, @JsonProperty("destinationId") String destinationId, @JsonProperty("name") String name, @JsonProperty("namespaceDefinition") Optional namespaceDefinition, @@ -107,7 +111,6 @@ public ConnectionResponse( Utils.checkNotNull(configurations, "configurations"); Utils.checkNotNull(connectionId, "connectionId"); Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(dataResidency, "dataResidency"); Utils.checkNotNull(destinationId, "destinationId"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(namespaceDefinition, "namespaceDefinition"); @@ -122,7 +125,6 @@ public ConnectionResponse( this.configurations = configurations; this.connectionId = connectionId; this.createdAt = createdAt; - this.dataResidency = dataResidency; this.destinationId = destinationId; this.name = name; this.namespaceDefinition = namespaceDefinition; @@ -140,7 +142,6 @@ public ConnectionResponse( StreamConfigurations configurations, String connectionId, long createdAt, - String dataResidency, String destinationId, String name, ConnectionScheduleResponse schedule, @@ -148,7 +149,11 @@ public ConnectionResponse( ConnectionStatusEnum status, List tags, String workspaceId) { - this(configurations, connectionId, createdAt, dataResidency, destinationId, name, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), schedule, sourceId, status, tags, workspaceId); + this(configurations, connectionId, createdAt, + destinationId, name, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + schedule, sourceId, status, + tags, workspaceId); } /** @@ -169,11 +174,6 @@ public long createdAt() { return createdAt; } - @JsonIgnore - public String dataResidency() { - return dataResidency; - } - @JsonIgnore public String destinationId() { return destinationId; @@ -240,9 +240,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * A list of configured stream options for a connection. @@ -265,12 +266,6 @@ public ConnectionResponse withCreatedAt(long createdAt) { return this; } - public ConnectionResponse withDataResidency(String dataResidency) { - Utils.checkNotNull(dataResidency, "dataResidency"); - this.dataResidency = dataResidency; - return this; - } - public ConnectionResponse withDestinationId(String destinationId) { Utils.checkNotNull(destinationId, "destinationId"); this.destinationId = destinationId; @@ -292,6 +287,7 @@ public ConnectionResponse withNamespaceDefinition(NamespaceDefinitionEnum namesp return this; } + /** * Define the location where the data will be stored in the destination */ @@ -307,6 +303,7 @@ public ConnectionResponse withNamespaceFormat(String namespaceFormat) { return this; } + public ConnectionResponse withNamespaceFormat(Optional namespaceFormat) { Utils.checkNotNull(namespaceFormat, "namespaceFormat"); this.namespaceFormat = namespaceFormat; @@ -322,6 +319,7 @@ public ConnectionResponse withNonBreakingSchemaUpdatesBehavior(NonBreakingSchema return this; } + /** * Set how Airbyte handles syncs when it detects a non-breaking schema change in the source */ @@ -337,6 +335,7 @@ public ConnectionResponse withPrefix(String prefix) { return this; } + public ConnectionResponse withPrefix(Optional prefix) { Utils.checkNotNull(prefix, "prefix"); this.prefix = prefix; @@ -376,7 +375,6 @@ public ConnectionResponse withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -387,41 +385,30 @@ public boolean equals(java.lang.Object o) { } ConnectionResponse other = (ConnectionResponse) o; return - Objects.deepEquals(this.configurations, other.configurations) && - Objects.deepEquals(this.connectionId, other.connectionId) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.dataResidency, other.dataResidency) && - Objects.deepEquals(this.destinationId, other.destinationId) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.namespaceDefinition, other.namespaceDefinition) && - Objects.deepEquals(this.namespaceFormat, other.namespaceFormat) && - Objects.deepEquals(this.nonBreakingSchemaUpdatesBehavior, other.nonBreakingSchemaUpdatesBehavior) && - Objects.deepEquals(this.prefix, other.prefix) && - Objects.deepEquals(this.schedule, other.schedule) && - Objects.deepEquals(this.sourceId, other.sourceId) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.tags, other.tags) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.configurations, other.configurations) && + Utils.enhancedDeepEquals(this.connectionId, other.connectionId) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.destinationId, other.destinationId) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.namespaceDefinition, other.namespaceDefinition) && + Utils.enhancedDeepEquals(this.namespaceFormat, other.namespaceFormat) && + Utils.enhancedDeepEquals(this.nonBreakingSchemaUpdatesBehavior, other.nonBreakingSchemaUpdatesBehavior) && + Utils.enhancedDeepEquals(this.prefix, other.prefix) && + Utils.enhancedDeepEquals(this.schedule, other.schedule) && + Utils.enhancedDeepEquals(this.sourceId, other.sourceId) && + Utils.enhancedDeepEquals(this.status, other.status) && + Utils.enhancedDeepEquals(this.tags, other.tags) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - configurations, - connectionId, - createdAt, - dataResidency, - destinationId, - name, - namespaceDefinition, - namespaceFormat, - nonBreakingSchemaUpdatesBehavior, - prefix, - schedule, - sourceId, - status, - tags, - workspaceId); + return Utils.enhancedHash( + configurations, connectionId, createdAt, + destinationId, name, namespaceDefinition, + namespaceFormat, nonBreakingSchemaUpdatesBehavior, prefix, + schedule, sourceId, status, + tags, workspaceId); } @Override @@ -430,7 +417,6 @@ public String toString() { "configurations", configurations, "connectionId", connectionId, "createdAt", createdAt, - "dataResidency", dataResidency, "destinationId", destinationId, "name", name, "namespaceDefinition", namespaceDefinition, @@ -443,43 +429,43 @@ public String toString() { "tags", tags, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private StreamConfigurations configurations; - + private String connectionId; - + private Long createdAt; - - private String dataResidency; - + private String destinationId; - + private String name; - + private Optional namespaceDefinition; - + private Optional namespaceFormat = Optional.empty(); - + private Optional nonBreakingSchemaUpdatesBehavior; - + private Optional prefix = Optional.empty(); - + private ConnectionScheduleResponse schedule; - + private String sourceId; - + private ConnectionStatusEnum status; - + private List tags; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + /** * A list of configured stream options for a connection. */ @@ -489,23 +475,20 @@ public Builder configurations(StreamConfigurations configurations) { return this; } + public Builder connectionId(String connectionId) { Utils.checkNotNull(connectionId, "connectionId"); this.connectionId = connectionId; return this; } + public Builder createdAt(long createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; } - public Builder dataResidency(String dataResidency) { - Utils.checkNotNull(dataResidency, "dataResidency"); - this.dataResidency = dataResidency; - return this; - } public Builder destinationId(String destinationId) { Utils.checkNotNull(destinationId, "destinationId"); @@ -513,12 +496,14 @@ public Builder destinationId(String destinationId) { return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + /** * Define the location where the data will be stored in the destination */ @@ -537,6 +522,7 @@ public Builder namespaceDefinition(Optional n return this; } + public Builder namespaceFormat(String namespaceFormat) { Utils.checkNotNull(namespaceFormat, "namespaceFormat"); this.namespaceFormat = Optional.ofNullable(namespaceFormat); @@ -549,6 +535,7 @@ public Builder namespaceFormat(Optional namespaceFormat) { return this; } + /** * Set how Airbyte handles syncs when it detects a non-breaking schema change in the source */ @@ -567,6 +554,7 @@ public Builder nonBreakingSchemaUpdatesBehavior(Optional prefix) { return this; } + /** * schedule for when the the connection should run, per the schedule type */ @@ -588,30 +577,34 @@ public Builder schedule(ConnectionScheduleResponse schedule) { return this; } + public Builder sourceId(String sourceId) { Utils.checkNotNull(sourceId, "sourceId"); this.sourceId = sourceId; return this; } + public Builder status(ConnectionStatusEnum status) { Utils.checkNotNull(status, "status"); this.status = status; return this; } + public Builder tags(List tags) { Utils.checkNotNull(tags, "tags"); this.tags = tags; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public ConnectionResponse build() { if (namespaceDefinition == null) { namespaceDefinition = _SINGLETON_VALUE_NamespaceDefinition.value(); @@ -619,24 +612,16 @@ public ConnectionResponse build() { if (nonBreakingSchemaUpdatesBehavior == null) { nonBreakingSchemaUpdatesBehavior = _SINGLETON_VALUE_NonBreakingSchemaUpdatesBehavior.value(); } + return new ConnectionResponse( - configurations, - connectionId, - createdAt, - dataResidency, - destinationId, - name, - namespaceDefinition, - namespaceFormat, - nonBreakingSchemaUpdatesBehavior, - prefix, - schedule, - sourceId, - status, - tags, - workspaceId); + configurations, connectionId, createdAt, + destinationId, name, namespaceDefinition, + namespaceFormat, nonBreakingSchemaUpdatesBehavior, prefix, + schedule, sourceId, status, + tags, workspaceId); } + private static final LazySingletonValue> _SINGLETON_VALUE_NamespaceDefinition = new LazySingletonValue<>( "namespaceDefinition", diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionScheduleResponse.java b/src/main/java/com/airbyte/api/models/shared/ConnectionScheduleResponse.java index a1eb4a017..7278e31c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionScheduleResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionScheduleResponse.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -25,10 +24,12 @@ public class ConnectionScheduleResponse { @JsonProperty("basicTiming") private Optional basicTiming; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("cronExpression") private Optional cronExpression; + @JsonProperty("scheduleType") private ScheduleTypeWithBasicEnum scheduleType; @@ -65,9 +66,10 @@ public ScheduleTypeWithBasicEnum scheduleType() { return scheduleType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ConnectionScheduleResponse withBasicTiming(String basicTiming) { Utils.checkNotNull(basicTiming, "basicTiming"); @@ -75,6 +77,7 @@ public ConnectionScheduleResponse withBasicTiming(String basicTiming) { return this; } + public ConnectionScheduleResponse withBasicTiming(Optional basicTiming) { Utils.checkNotNull(basicTiming, "basicTiming"); this.basicTiming = basicTiming; @@ -87,6 +90,7 @@ public ConnectionScheduleResponse withCronExpression(String cronExpression) { return this; } + public ConnectionScheduleResponse withCronExpression(Optional cronExpression) { Utils.checkNotNull(cronExpression, "cronExpression"); this.cronExpression = cronExpression; @@ -99,7 +103,6 @@ public ConnectionScheduleResponse withScheduleType(ScheduleTypeWithBasicEnum sch return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +113,15 @@ public boolean equals(java.lang.Object o) { } ConnectionScheduleResponse other = (ConnectionScheduleResponse) o; return - Objects.deepEquals(this.basicTiming, other.basicTiming) && - Objects.deepEquals(this.cronExpression, other.cronExpression) && - Objects.deepEquals(this.scheduleType, other.scheduleType); + Utils.enhancedDeepEquals(this.basicTiming, other.basicTiming) && + Utils.enhancedDeepEquals(this.cronExpression, other.cronExpression) && + Utils.enhancedDeepEquals(this.scheduleType, other.scheduleType); } @Override public int hashCode() { - return Objects.hash( - basicTiming, - cronExpression, - scheduleType); + return Utils.enhancedHash( + basicTiming, cronExpression, scheduleType); } @Override @@ -130,19 +131,21 @@ public String toString() { "cronExpression", cronExpression, "scheduleType", scheduleType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional basicTiming = Optional.empty(); - + private Optional cronExpression = Optional.empty(); - + private ScheduleTypeWithBasicEnum scheduleType; - + private Builder() { // force use of static builder() method } + public Builder basicTiming(String basicTiming) { Utils.checkNotNull(basicTiming, "basicTiming"); this.basicTiming = Optional.ofNullable(basicTiming); @@ -155,6 +158,7 @@ public Builder basicTiming(Optional basicTiming) { return this; } + public Builder cronExpression(String cronExpression) { Utils.checkNotNull(cronExpression, "cronExpression"); this.cronExpression = Optional.ofNullable(cronExpression); @@ -167,17 +171,18 @@ public Builder cronExpression(Optional cronExpression) { return this; } + public Builder scheduleType(ScheduleTypeWithBasicEnum scheduleType) { Utils.checkNotNull(scheduleType, "scheduleType"); this.scheduleType = scheduleType; return this; } - + public ConnectionScheduleResponse build() { + return new ConnectionScheduleResponse( - basicTiming, - cronExpression, - scheduleType); + basicTiming, cronExpression, scheduleType); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionStatusEnum.java b/src/main/java/com/airbyte/api/models/shared/ConnectionStatusEnum.java index 68d428ab5..88f5dbcdd 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionStatusEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionStatusEnum.java @@ -16,7 +16,7 @@ public enum ConnectionStatusEnum { @JsonValue private final String value; - private ConnectionStatusEnum(String value) { + ConnectionStatusEnum(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java b/src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java index ea58b0c61..99e8c0b52 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionSyncModeEnum.java @@ -12,13 +12,17 @@ public enum ConnectionSyncModeEnum { FULL_REFRESH_OVERWRITE("full_refresh_overwrite"), FULL_REFRESH_OVERWRITE_DEDUPED("full_refresh_overwrite_deduped"), FULL_REFRESH_APPEND("full_refresh_append"), + FULL_REFRESH_UPDATE("full_refresh_update"), + FULL_REFRESH_SOFT_DELETE("full_refresh_soft_delete"), INCREMENTAL_APPEND("incremental_append"), - INCREMENTAL_DEDUPED_HISTORY("incremental_deduped_history"); + INCREMENTAL_DEDUPED_HISTORY("incremental_deduped_history"), + INCREMENTAL_UPDATE("incremental_update"), + INCREMENTAL_SOFT_DELETE("incremental_soft_delete"); @JsonValue private final String value; - private ConnectionSyncModeEnum(String value) { + ConnectionSyncModeEnum(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionType.java b/src/main/java/com/airbyte/api/models/shared/ConnectionType.java index 25d71e013..24383eff1 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionType.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionType.java @@ -14,7 +14,7 @@ public enum ConnectionType { @JsonValue private final String value; - private ConnectionType(String value) { + ConnectionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ConnectionsResponse.java b/src/main/java/com/airbyte/api/models/shared/ConnectionsResponse.java index 8b675f3ee..100e272d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConnectionsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/ConnectionsResponse.java @@ -12,18 +12,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class ConnectionsResponse { @JsonProperty("data") private List data; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("next") private Optional next; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("previous") private Optional previous; @@ -61,9 +63,10 @@ public Optional previous() { return previous; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ConnectionsResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -77,6 +80,7 @@ public ConnectionsResponse withNext(String next) { return this; } + public ConnectionsResponse withNext(Optional next) { Utils.checkNotNull(next, "next"); this.next = next; @@ -89,13 +93,13 @@ public ConnectionsResponse withPrevious(String previous) { return this; } + public ConnectionsResponse withPrevious(Optional previous) { Utils.checkNotNull(previous, "previous"); this.previous = previous; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +110,15 @@ public boolean equals(java.lang.Object o) { } ConnectionsResponse other = (ConnectionsResponse) o; return - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.next, other.next) && - Objects.deepEquals(this.previous, other.previous); + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.previous, other.previous); } @Override public int hashCode() { - return Objects.hash( - data, - next, - previous); + return Utils.enhancedHash( + data, next, previous); } @Override @@ -126,25 +128,28 @@ public String toString() { "next", next, "previous", previous); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Optional next = Optional.empty(); - + private Optional previous = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } + public Builder next(String next) { Utils.checkNotNull(next, "next"); this.next = Optional.ofNullable(next); @@ -157,6 +162,7 @@ public Builder next(Optional next) { return this; } + public Builder previous(String previous) { Utils.checkNotNull(previous, "previous"); this.previous = Optional.ofNullable(previous); @@ -168,12 +174,12 @@ public Builder previous(Optional previous) { this.previous = previous; return this; } - + public ConnectionsResponse build() { + return new ConnectionsResponse( - data, - next, - previous); + data, next, previous); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ContentType.java b/src/main/java/com/airbyte/api/models/shared/ContentType.java index 3bc3f6f49..1855efa88 100644 --- a/src/main/java/com/airbyte/api/models/shared/ContentType.java +++ b/src/main/java/com/airbyte/api/models/shared/ContentType.java @@ -21,7 +21,7 @@ public enum ContentType { @JsonValue private final String value; - private ContentType(String value) { + ContentType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ConversionReportTime.java b/src/main/java/com/airbyte/api/models/shared/ConversionReportTime.java index 92a9189c8..351e980d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/ConversionReportTime.java +++ b/src/main/java/com/airbyte/api/models/shared/ConversionReportTime.java @@ -11,7 +11,9 @@ /** * ConversionReportTime * - *

The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.. + *

The date by which the conversion metrics returned from this endpoint will be reported. There are two + * dates associated with a conversion event: the date that the user interacted with the ad, and the + * date that the user completed a conversion event.. */ public enum ConversionReportTime { TIME_OF_AD_ACTION("TIME_OF_AD_ACTION"), @@ -20,7 +22,7 @@ public enum ConversionReportTime { @JsonValue private final String value; - private ConversionReportTime(String value) { + ConversionReportTime(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Convertkit.java b/src/main/java/com/airbyte/api/models/shared/Convertkit.java index 617638db5..961a8d908 100644 --- a/src/main/java/com/airbyte/api/models/shared/Convertkit.java +++ b/src/main/java/com/airbyte/api/models/shared/Convertkit.java @@ -14,7 +14,7 @@ public enum Convertkit { @JsonValue private final String value; - private Convertkit(String value) { + Convertkit(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Convex.java b/src/main/java/com/airbyte/api/models/shared/Convex.java index a631dda5f..8e481254d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Convex.java +++ b/src/main/java/com/airbyte/api/models/shared/Convex.java @@ -14,7 +14,7 @@ public enum Convex { @JsonValue private final String value; - private Convex(String value) { + Convex(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Copper.java b/src/main/java/com/airbyte/api/models/shared/Copper.java index 35b3ae93d..20d548013 100644 --- a/src/main/java/com/airbyte/api/models/shared/Copper.java +++ b/src/main/java/com/airbyte/api/models/shared/Copper.java @@ -14,7 +14,7 @@ public enum Copper { @JsonValue private final String value; - private Copper(String value) { + Copper(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CopyRawFiles.java b/src/main/java/com/airbyte/api/models/shared/CopyRawFiles.java index 08ad9e1bc..7b1c9a0b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/CopyRawFiles.java +++ b/src/main/java/com/airbyte/api/models/shared/CopyRawFiles.java @@ -15,13 +15,14 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * CopyRawFiles * - *

Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. + *

Copy raw files without parsing their contents. Bits are copied into the destination exactly as they + * appeared in the source. Recommended for use with unstructured text data, non-text and compressed + * files. */ public class CopyRawFiles { @@ -30,7 +31,9 @@ public class CopyRawFiles { private Optional deliveryType; /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("preserve_directory_structure") @@ -55,19 +58,24 @@ public Optional deliveryType() { } /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ @JsonIgnore public Optional preserveDirectoryStructure() { return preserveDirectoryStructure; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public CopyRawFiles withPreserveDirectoryStructure(boolean preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -75,8 +83,11 @@ public CopyRawFiles withPreserveDirectoryStructure(boolean preserveDirectoryStru return this; } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public CopyRawFiles withPreserveDirectoryStructure(Optional preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -84,7 +95,6 @@ public CopyRawFiles withPreserveDirectoryStructure(Optional preserveDir return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +105,14 @@ public boolean equals(java.lang.Object o) { } CopyRawFiles other = (CopyRawFiles) o; return - Objects.deepEquals(this.deliveryType, other.deliveryType) && - Objects.deepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType) && + Utils.enhancedDeepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); } @Override public int hashCode() { - return Objects.hash( - deliveryType, - preserveDirectoryStructure); + return Utils.enhancedHash( + deliveryType, preserveDirectoryStructure); } @Override @@ -112,17 +121,21 @@ public String toString() { "deliveryType", deliveryType, "preserveDirectoryStructure", preserveDirectoryStructure); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional preserveDirectoryStructure; - + private Builder() { // force use of static builder() method } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -131,22 +144,26 @@ public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { } /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public Builder preserveDirectoryStructure(Optional preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); this.preserveDirectoryStructure = preserveDirectoryStructure; return this; } - + public CopyRawFiles build() { if (preserveDirectoryStructure == null) { preserveDirectoryStructure = _SINGLETON_VALUE_PreserveDirectoryStructure.value(); } + return new CopyRawFiles( preserveDirectoryStructure); } + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = new LazySingletonValue<>( "delivery_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Couchbase.java b/src/main/java/com/airbyte/api/models/shared/Couchbase.java index 259209b42..df8a8d5a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Couchbase.java +++ b/src/main/java/com/airbyte/api/models/shared/Couchbase.java @@ -14,7 +14,7 @@ public enum Couchbase { @JsonValue private final String value; - private Couchbase(String value) { + Couchbase(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Countercyclical.java b/src/main/java/com/airbyte/api/models/shared/Countercyclical.java index 9b4f815f5..9db39303f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Countercyclical.java +++ b/src/main/java/com/airbyte/api/models/shared/Countercyclical.java @@ -14,7 +14,7 @@ public enum Countercyclical { @JsonValue private final String value; - private Countercyclical(String value) { + Countercyclical(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Country.java b/src/main/java/com/airbyte/api/models/shared/Country.java index 57707f777..78073fa51 100644 --- a/src/main/java/com/airbyte/api/models/shared/Country.java +++ b/src/main/java/com/airbyte/api/models/shared/Country.java @@ -73,7 +73,7 @@ public enum Country { @JsonValue private final String value; - private Country(String value) { + Country(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CreateDeclarativeSourceDefinitionRequest.java b/src/main/java/com/airbyte/api/models/shared/CreateDeclarativeSourceDefinitionRequest.java index 1a5935fba..f9cf45f60 100644 --- a/src/main/java/com/airbyte/api/models/shared/CreateDeclarativeSourceDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/CreateDeclarativeSourceDefinitionRequest.java @@ -10,16 +10,16 @@ import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class CreateDeclarativeSourceDefinitionRequest { +public class CreateDeclarativeSourceDefinitionRequest { /** * Low code CDK manifest JSON object */ @JsonProperty("manifest") private Object manifest; + @JsonProperty("name") private String name; @@ -46,9 +46,10 @@ public String name() { return name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Low code CDK manifest JSON object @@ -65,7 +66,6 @@ public CreateDeclarativeSourceDefinitionRequest withName(String name) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -76,15 +76,14 @@ public boolean equals(java.lang.Object o) { } CreateDeclarativeSourceDefinitionRequest other = (CreateDeclarativeSourceDefinitionRequest) o; return - Objects.deepEquals(this.manifest, other.manifest) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.manifest, other.manifest) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - manifest, - name); + return Utils.enhancedHash( + manifest, name); } @Override @@ -93,17 +92,19 @@ public String toString() { "manifest", manifest, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Object manifest; - + private String name; - + private Builder() { // force use of static builder() method } + /** * Low code CDK manifest JSON object */ @@ -113,16 +114,18 @@ public Builder manifest(Object manifest) { return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - + public CreateDeclarativeSourceDefinitionRequest build() { + return new CreateDeclarativeSourceDefinitionRequest( - manifest, - name); + manifest, name); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CreateDefinitionRequest.java b/src/main/java/com/airbyte/api/models/shared/CreateDefinitionRequest.java index 0f7a2542c..4e488f7dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/CreateDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/CreateDefinitionRequest.java @@ -11,21 +11,24 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class CreateDefinitionRequest { @JsonProperty("dockerImageTag") private String dockerImageTag; + @JsonProperty("dockerRepository") private String dockerRepository; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("documentationUrl") private Optional documentationUrl; + @JsonProperty("name") private String name; @@ -49,7 +52,8 @@ public CreateDefinitionRequest( String dockerImageTag, String dockerRepository, String name) { - this(dockerImageTag, dockerRepository, Optional.empty(), name); + this(dockerImageTag, dockerRepository, Optional.empty(), + name); } @JsonIgnore @@ -72,9 +76,10 @@ public String name() { return name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public CreateDefinitionRequest withDockerImageTag(String dockerImageTag) { Utils.checkNotNull(dockerImageTag, "dockerImageTag"); @@ -94,6 +99,7 @@ public CreateDefinitionRequest withDocumentationUrl(String documentationUrl) { return this; } + public CreateDefinitionRequest withDocumentationUrl(Optional documentationUrl) { Utils.checkNotNull(documentationUrl, "documentationUrl"); this.documentationUrl = documentationUrl; @@ -106,7 +112,6 @@ public CreateDefinitionRequest withName(String name) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -117,18 +122,16 @@ public boolean equals(java.lang.Object o) { } CreateDefinitionRequest other = (CreateDefinitionRequest) o; return - Objects.deepEquals(this.dockerImageTag, other.dockerImageTag) && - Objects.deepEquals(this.dockerRepository, other.dockerRepository) && - Objects.deepEquals(this.documentationUrl, other.documentationUrl) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.dockerImageTag, other.dockerImageTag) && + Utils.enhancedDeepEquals(this.dockerRepository, other.dockerRepository) && + Utils.enhancedDeepEquals(this.documentationUrl, other.documentationUrl) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - dockerImageTag, - dockerRepository, - documentationUrl, + return Utils.enhancedHash( + dockerImageTag, dockerRepository, documentationUrl, name); } @@ -140,33 +143,37 @@ public String toString() { "documentationUrl", documentationUrl, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String dockerImageTag; - + private String dockerRepository; - + private Optional documentationUrl = Optional.empty(); - + private String name; - + private Builder() { // force use of static builder() method } + public Builder dockerImageTag(String dockerImageTag) { Utils.checkNotNull(dockerImageTag, "dockerImageTag"); this.dockerImageTag = dockerImageTag; return this; } + public Builder dockerRepository(String dockerRepository) { Utils.checkNotNull(dockerRepository, "dockerRepository"); this.dockerRepository = dockerRepository; return this; } + public Builder documentationUrl(String documentationUrl) { Utils.checkNotNull(documentationUrl, "documentationUrl"); this.documentationUrl = Optional.ofNullable(documentationUrl); @@ -179,18 +186,19 @@ public Builder documentationUrl(Optional documentationUrl) { return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - + public CreateDefinitionRequest build() { + return new CreateDefinitionRequest( - dockerImageTag, - dockerRepository, - documentationUrl, + dockerImageTag, dockerRepository, documentationUrl, name); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Credential.java b/src/main/java/com/airbyte/api/models/shared/Credential.java index 1c84bb284..0bebe263f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Credential.java +++ b/src/main/java/com/airbyte/api/models/shared/Credential.java @@ -14,12 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * Credential * - *

An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. + *

An HMAC key is a type of credential and can be associated with a service account or a user account + * in Cloud Storage. Read more here. */ @JsonDeserialize(using = Credential._Deserializer.class) public class Credential { @@ -66,12 +67,12 @@ public boolean equals(java.lang.Object o) { return false; } Credential other = (Credential) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/CredentialType.java b/src/main/java/com/airbyte/api/models/shared/CredentialType.java index c97f188ce..7a89a8416 100644 --- a/src/main/java/com/airbyte/api/models/shared/CredentialType.java +++ b/src/main/java/com/airbyte/api/models/shared/CredentialType.java @@ -14,7 +14,7 @@ public enum CredentialType { @JsonValue private final String value; - private CredentialType(String value) { + CredentialType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Credentials.java b/src/main/java/com/airbyte/api/models/shared/Credentials.java index 6fcd71ecd..3ed7aaa02 100644 --- a/src/main/java/com/airbyte/api/models/shared/Credentials.java +++ b/src/main/java/com/airbyte/api/models/shared/Credentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class Credentials { +public class Credentials { /** * The client ID of the Airtable developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The client ID of the Airtable developer application. @@ -73,6 +73,7 @@ public Credentials withClientId(String clientId) { return this; } + /** * The client ID of the Airtable developer application. */ @@ -91,6 +92,7 @@ public Credentials withClientSecret(String clientSecret) { return this; } + /** * The client secret of the Airtable developer application. */ @@ -100,7 +102,6 @@ public Credentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } Credentials other = (Credentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The client ID of the Airtable developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The client secret of the Airtable developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public Credentials build() { + return new Credentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java index 3cabc8d74..76c49370d 100644 --- a/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/CredentialsTitle.java @@ -19,7 +19,7 @@ public enum CredentialsTitle { @JsonValue private final String value; - private CredentialsTitle(String value) { + CredentialsTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CursorMethod.java b/src/main/java/com/airbyte/api/models/shared/CursorMethod.java index cee67efe5..7963a120d 100644 --- a/src/main/java/com/airbyte/api/models/shared/CursorMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/CursorMethod.java @@ -14,7 +14,7 @@ public enum CursorMethod { @JsonValue private final String value; - private CursorMethod(String value) { + CursorMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CustomQueriesArray.java b/src/main/java/com/airbyte/api/models/shared/CustomQueriesArray.java index 43d65b02e..cc424856d 100644 --- a/src/main/java/com/airbyte/api/models/shared/CustomQueriesArray.java +++ b/src/main/java/com/airbyte/api/models/shared/CustomQueriesArray.java @@ -9,12 +9,15 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class CustomQueriesArray { +public class CustomQueriesArray { /** - * A custom defined GAQL query for building the report. Avoid including the segments.date field; wherever possible, Airbyte will automatically include it for incremental syncs. For more information, refer to <a href="https://developers.google.com/google-ads/api/fields/v11/overview_query_builder">Google's documentation</a>. + * A custom defined GAQL query for building the report. Avoid including the segments.date field; + * wherever possible, Airbyte will automatically include it for incremental syncs. For more + * information, refer to Google's + * documentation. */ @JsonProperty("query") private String query; @@ -36,7 +39,11 @@ public CustomQueriesArray( } /** - * A custom defined GAQL query for building the report. Avoid including the segments.date field; wherever possible, Airbyte will automatically include it for incremental syncs. For more information, refer to <a href="https://developers.google.com/google-ads/api/fields/v11/overview_query_builder">Google's documentation</a>. + * A custom defined GAQL query for building the report. Avoid including the segments.date field; + * wherever possible, Airbyte will automatically include it for incremental syncs. For more + * information, refer to Google's + * documentation. */ @JsonIgnore public String query() { @@ -51,12 +58,17 @@ public String tableName() { return tableName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * A custom defined GAQL query for building the report. Avoid including the segments.date field; wherever possible, Airbyte will automatically include it for incremental syncs. For more information, refer to <a href="https://developers.google.com/google-ads/api/fields/v11/overview_query_builder">Google's documentation</a>. + * A custom defined GAQL query for building the report. Avoid including the segments.date field; + * wherever possible, Airbyte will automatically include it for incremental syncs. For more + * information, refer to Google's + * documentation. */ public CustomQueriesArray withQuery(String query) { Utils.checkNotNull(query, "query"); @@ -73,7 +85,6 @@ public CustomQueriesArray withTableName(String tableName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +95,14 @@ public boolean equals(java.lang.Object o) { } CustomQueriesArray other = (CustomQueriesArray) o; return - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.tableName, other.tableName); + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.tableName, other.tableName); } @Override public int hashCode() { - return Objects.hash( - query, - tableName); + return Utils.enhancedHash( + query, tableName); } @Override @@ -101,19 +111,25 @@ public String toString() { "query", query, "tableName", tableName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String query; - + private String tableName; - + private Builder() { // force use of static builder() method } + /** - * A custom defined GAQL query for building the report. Avoid including the segments.date field; wherever possible, Airbyte will automatically include it for incremental syncs. For more information, refer to <a href="https://developers.google.com/google-ads/api/fields/v11/overview_query_builder">Google's documentation</a>. + * A custom defined GAQL query for building the report. Avoid including the segments.date field; + * wherever possible, Airbyte will automatically include it for incremental syncs. For more + * information, refer to Google's + * documentation. */ public Builder query(String query) { Utils.checkNotNull(query, "query"); @@ -121,6 +137,7 @@ public Builder query(String query) { return this; } + /** * The table name in your destination database for the chosen query. */ @@ -129,11 +146,12 @@ public Builder tableName(String tableName) { this.tableName = tableName; return this; } - + public CustomQueriesArray build() { + return new CustomQueriesArray( - query, - tableName); + query, tableName); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/CustomReportConfig.java b/src/main/java/com/airbyte/api/models/shared/CustomReportConfig.java index a32826567..41d9018eb 100644 --- a/src/main/java/com/airbyte/api/models/shared/CustomReportConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/CustomReportConfig.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class CustomReportConfig { +public class CustomReportConfig { /** * The name of the custom report, this name would be used as stream name */ @@ -33,13 +32,15 @@ public class CustomReportConfig { private Optional reportAggregation; /** - * A list of available report object columns. You can find it in description of reporting object that you want to add to custom report. + * A list of available report object columns. You can find it in description of reporting object that + * you want to add to custom report. */ @JsonProperty("report_columns") private List reportColumns; /** - * The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api docs - Reporting API - Reporting Data Objects. + * The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api + * docs - Reporting API - Reporting Data Objects. */ @JsonProperty("reporting_object") private ReportingDataObject reportingObject; @@ -64,7 +65,8 @@ public CustomReportConfig( String name, List reportColumns, ReportingDataObject reportingObject) { - this(name, Optional.empty(), reportColumns, reportingObject); + this(name, Optional.empty(), reportColumns, + reportingObject); } /** @@ -84,7 +86,8 @@ public Optional reportAggregation() { } /** - * A list of available report object columns. You can find it in description of reporting object that you want to add to custom report. + * A list of available report object columns. You can find it in description of reporting object that + * you want to add to custom report. */ @JsonIgnore public List reportColumns() { @@ -92,16 +95,18 @@ public List reportColumns() { } /** - * The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api docs - Reporting API - Reporting Data Objects. + * The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api + * docs - Reporting API - Reporting Data Objects. */ @JsonIgnore public ReportingDataObject reportingObject() { return reportingObject; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The name of the custom report, this name would be used as stream name @@ -121,6 +126,7 @@ public CustomReportConfig withReportAggregation(String reportAggregation) { return this; } + /** * A list of available aggregations. */ @@ -131,7 +137,8 @@ public CustomReportConfig withReportAggregation(Optional reportAggregati } /** - * A list of available report object columns. You can find it in description of reporting object that you want to add to custom report. + * A list of available report object columns. You can find it in description of reporting object that + * you want to add to custom report. */ public CustomReportConfig withReportColumns(List reportColumns) { Utils.checkNotNull(reportColumns, "reportColumns"); @@ -140,7 +147,8 @@ public CustomReportConfig withReportColumns(List reportColumns) { } /** - * The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api docs - Reporting API - Reporting Data Objects. + * The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api + * docs - Reporting API - Reporting Data Objects. */ public CustomReportConfig withReportingObject(ReportingDataObject reportingObject) { Utils.checkNotNull(reportingObject, "reportingObject"); @@ -148,7 +156,6 @@ public CustomReportConfig withReportingObject(ReportingDataObject reportingObjec return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -159,18 +166,16 @@ public boolean equals(java.lang.Object o) { } CustomReportConfig other = (CustomReportConfig) o; return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.reportAggregation, other.reportAggregation) && - Objects.deepEquals(this.reportColumns, other.reportColumns) && - Objects.deepEquals(this.reportingObject, other.reportingObject); + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.reportAggregation, other.reportAggregation) && + Utils.enhancedDeepEquals(this.reportColumns, other.reportColumns) && + Utils.enhancedDeepEquals(this.reportingObject, other.reportingObject); } @Override public int hashCode() { - return Objects.hash( - name, - reportAggregation, - reportColumns, + return Utils.enhancedHash( + name, reportAggregation, reportColumns, reportingObject); } @@ -182,21 +187,23 @@ public String toString() { "reportColumns", reportColumns, "reportingObject", reportingObject); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String name; - + private Optional reportAggregation; - + private List reportColumns; - + private ReportingDataObject reportingObject; - + private Builder() { // force use of static builder() method } + /** * The name of the custom report, this name would be used as stream name */ @@ -206,6 +213,7 @@ public Builder name(String name) { return this; } + /** * A list of available aggregations. */ @@ -224,8 +232,10 @@ public Builder reportAggregation(Optional reportAggregation) { return this; } + /** - * A list of available report object columns. You can find it in description of reporting object that you want to add to custom report. + * A list of available report object columns. You can find it in description of reporting object that + * you want to add to custom report. */ public Builder reportColumns(List reportColumns) { Utils.checkNotNull(reportColumns, "reportColumns"); @@ -233,26 +243,28 @@ public Builder reportColumns(List reportColumns) { return this; } + /** - * The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api docs - Reporting API - Reporting Data Objects. + * The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api + * docs - Reporting API - Reporting Data Objects. */ public Builder reportingObject(ReportingDataObject reportingObject) { Utils.checkNotNull(reportingObject, "reportingObject"); this.reportingObject = reportingObject; return this; } - + public CustomReportConfig build() { if (reportAggregation == null) { reportAggregation = _SINGLETON_VALUE_ReportAggregation.value(); } + return new CustomReportConfig( - name, - reportAggregation, - reportColumns, + name, reportAggregation, reportColumns, reportingObject); } + private static final LazySingletonValue> _SINGLETON_VALUE_ReportAggregation = new LazySingletonValue<>( "report_aggregation", diff --git a/src/main/java/com/airbyte/api/models/shared/CustomerIo.java b/src/main/java/com/airbyte/api/models/shared/CustomerIo.java index b69e7f5bc..6f85ef4f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/CustomerIo.java +++ b/src/main/java/com/airbyte/api/models/shared/CustomerIo.java @@ -14,7 +14,7 @@ public enum CustomerIo { @JsonValue private final String value; - private CustomerIo(String value) { + CustomerIo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/CustomerStatus.java b/src/main/java/com/airbyte/api/models/shared/CustomerStatus.java index 5d9ec4b4a..47b533bc5 100644 --- a/src/main/java/com/airbyte/api/models/shared/CustomerStatus.java +++ b/src/main/java/com/airbyte/api/models/shared/CustomerStatus.java @@ -23,7 +23,7 @@ public enum CustomerStatus { @JsonValue private final String value; - private CustomerStatus(String value) { + CustomerStatus(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Customerly.java b/src/main/java/com/airbyte/api/models/shared/Customerly.java index ec4775ca8..7496053a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Customerly.java +++ b/src/main/java/com/airbyte/api/models/shared/Customerly.java @@ -14,7 +14,7 @@ public enum Customerly { @JsonValue private final String value; - private Customerly(String value) { + Customerly(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DataCenter.java b/src/main/java/com/airbyte/api/models/shared/DataCenter.java index 6062a3cd6..2e4ec0796 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/DataCenter.java @@ -17,7 +17,7 @@ public enum DataCenter { @JsonValue private final String value; - private DataCenter(String value) { + DataCenter(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DataCenterID.java b/src/main/java/com/airbyte/api/models/shared/DataCenterID.java index 4348e31e9..2f6e46ecd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataCenterID.java +++ b/src/main/java/com/airbyte/api/models/shared/DataCenterID.java @@ -20,7 +20,7 @@ public enum DataCenterID { @JsonValue private final String value; - private DataCenterID(String value) { + DataCenterID(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DataCenterLocation.java b/src/main/java/com/airbyte/api/models/shared/DataCenterLocation.java index 94ec7999f..7dd3a918c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataCenterLocation.java +++ b/src/main/java/com/airbyte/api/models/shared/DataCenterLocation.java @@ -11,7 +11,8 @@ /** * DataCenterLocation * - *

Please choose the region of your Data Center location. More info by this <a href="https://www.zoho.com/crm/developer/docs/api/v2/multi-dc.html">Link</a> + *

Please choose the region of your Data Center location. More info by this Link */ public enum DataCenterLocation { US("US"), @@ -24,7 +25,7 @@ public enum DataCenterLocation { @JsonValue private final String value; - private DataCenterLocation(String value) { + DataCenterLocation(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DataFreshness.java b/src/main/java/com/airbyte/api/models/shared/DataFreshness.java index 3fa070ede..2d416375a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataFreshness.java +++ b/src/main/java/com/airbyte/api/models/shared/DataFreshness.java @@ -11,7 +11,13 @@ /** * DataFreshness * - *

If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our <a href='https://docs.airbyte.com/integrations/source/google-search-console'>full documentation</a>. + *

If set to 'final', the returned data will include only finalized, stable data. If set to 'all', + * fresh data will be included. When using Incremental sync mode, we do not recommend setting this + * parameter to 'all' as it may cause data loss. + * + *

More information can be found in our <a + * href='https://docs.airbyte.com/integrations/source/google-search-console'>full + * documentation</a>. */ public enum DataFreshness { FINAL("final"), @@ -20,7 +26,7 @@ public enum DataFreshness { @JsonValue private final String value; - private DataFreshness(String value) { + DataFreshness(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DataRegion.java b/src/main/java/com/airbyte/api/models/shared/DataRegion.java index 91e862a55..addf7bae6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DataRegion.java @@ -20,7 +20,7 @@ public enum DataRegion { @JsonValue private final String value; - private DataRegion(String value) { + DataRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DataSource.java b/src/main/java/com/airbyte/api/models/shared/DataSource.java index c42075a29..8a39b64fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataSource.java +++ b/src/main/java/com/airbyte/api/models/shared/DataSource.java @@ -22,7 +22,7 @@ public enum DataSource { @JsonValue private final String value; - private DataSource(String value) { + DataSource(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DataType.java b/src/main/java/com/airbyte/api/models/shared/DataType.java index bd41ccc12..936c17e20 100644 --- a/src/main/java/com/airbyte/api/models/shared/DataType.java +++ b/src/main/java/com/airbyte/api/models/shared/DataType.java @@ -11,7 +11,9 @@ /** * DataType * - *

/latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See <a href="https://coinmarketcap.com/api/documentation/v1/#section/Endpoint-Overview">here</a>. + *

/latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: + * Intervals of historic market data like OHLCV data or data for use in charting libraries. See here. */ public enum DataType { LATEST("latest"), @@ -20,7 +22,7 @@ public enum DataType { @JsonValue private final String value; - private DataType(String value) { + DataType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Databricks.java b/src/main/java/com/airbyte/api/models/shared/Databricks.java index 06bcd2caa..ec9da2e79 100644 --- a/src/main/java/com/airbyte/api/models/shared/Databricks.java +++ b/src/main/java/com/airbyte/api/models/shared/Databricks.java @@ -14,7 +14,7 @@ public enum Databricks { @JsonValue private final String value; - private Databricks(String value) { + Databricks(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Datadog.java b/src/main/java/com/airbyte/api/models/shared/Datadog.java index 7dfa9215f..631113ee2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Datadog.java +++ b/src/main/java/com/airbyte/api/models/shared/Datadog.java @@ -14,7 +14,7 @@ public enum Datadog { @JsonValue private final String value; - private Datadog(String value) { + Datadog(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Datascope.java b/src/main/java/com/airbyte/api/models/shared/Datascope.java index 7b9ae8513..90efb0be5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Datascope.java +++ b/src/main/java/com/airbyte/api/models/shared/Datascope.java @@ -14,7 +14,7 @@ public enum Datascope { @JsonValue private final String value; - private Datascope(String value) { + Datascope(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DatasetLocation.java b/src/main/java/com/airbyte/api/models/shared/DatasetLocation.java index 5c7bceddd..0017a0a1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DatasetLocation.java +++ b/src/main/java/com/airbyte/api/models/shared/DatasetLocation.java @@ -11,11 +11,13 @@ /** * DatasetLocation * - *

The location of the dataset. Warning: Changes made after creation will not be applied. Read more <a href="https://cloud.google.com/bigquery/docs/locations">here</a>. + *

The location of the dataset. Warning: Changes made after creation will not be applied. Read more here. */ public enum DatasetLocation { - US("US"), EU("EU"), + US("US"), + AFRICA_SOUTH1("africa-south1"), ASIA_EAST1("asia-east1"), ASIA_EAST2("asia-east2"), ASIA_NORTHEAST1("asia-northeast1"), @@ -27,30 +29,29 @@ public enum DatasetLocation { ASIA_SOUTHEAST2("asia-southeast2"), AUSTRALIA_SOUTHEAST1("australia-southeast1"), AUSTRALIA_SOUTHEAST2("australia-southeast2"), - EUROPE_CENTRAL1("europe-central1"), EUROPE_CENTRAL2("europe-central2"), EUROPE_NORTH1("europe-north1"), + EUROPE_NORTH2("europe-north2"), EUROPE_SOUTHWEST1("europe-southwest1"), EUROPE_WEST1("europe-west1"), EUROPE_WEST2("europe-west2"), EUROPE_WEST3("europe-west3"), EUROPE_WEST4("europe-west4"), EUROPE_WEST6("europe-west6"), - EUROPE_WEST7("europe-west7"), EUROPE_WEST8("europe-west8"), EUROPE_WEST9("europe-west9"), + EUROPE_WEST10("europe-west10"), EUROPE_WEST12("europe-west12"), ME_CENTRAL1("me-central1"), ME_CENTRAL2("me-central2"), ME_WEST1("me-west1"), NORTHAMERICA_NORTHEAST1("northamerica-northeast1"), NORTHAMERICA_NORTHEAST2("northamerica-northeast2"), + NORTHAMERICA_SOUTH1("northamerica-south1"), SOUTHAMERICA_EAST1("southamerica-east1"), SOUTHAMERICA_WEST1("southamerica-west1"), US_CENTRAL1("us-central1"), US_EAST1("us-east1"), - US_EAST2("us-east2"), - US_EAST3("us-east3"), US_EAST4("us-east4"), US_EAST5("us-east5"), US_SOUTH1("us-south1"), @@ -62,7 +63,7 @@ public enum DatasetLocation { @JsonValue private final String value; - private DatasetLocation(String value) { + DatasetLocation(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DateRange.java b/src/main/java/com/airbyte/api/models/shared/DateRange.java index 1e8aef75e..cd4e67e04 100644 --- a/src/main/java/com/airbyte/api/models/shared/DateRange.java +++ b/src/main/java/com/airbyte/api/models/shared/DateRange.java @@ -10,13 +10,14 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; + public class DateRange { @JsonProperty("endDate") private LocalDate endDate; + @JsonProperty("startDate") private LocalDate startDate; @@ -40,9 +41,10 @@ public LocalDate startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DateRange withEndDate(LocalDate endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -56,7 +58,6 @@ public DateRange withStartDate(LocalDate startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,15 +68,14 @@ public boolean equals(java.lang.Object o) { } DateRange other = (DateRange) o; return - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - endDate, - startDate); + return Utils.enhancedHash( + endDate, startDate); } @Override @@ -84,33 +84,37 @@ public String toString() { "endDate", endDate, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private LocalDate endDate; - + private LocalDate startDate; - + private Builder() { // force use of static builder() method } + public Builder endDate(LocalDate endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; } + public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public DateRange build() { + return new DateRange( - endDate, - startDate); + endDate, startDate); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Days.java b/src/main/java/com/airbyte/api/models/shared/Days.java index 991a9f88e..6c9e61b56 100644 --- a/src/main/java/com/airbyte/api/models/shared/Days.java +++ b/src/main/java/com/airbyte/api/models/shared/Days.java @@ -26,7 +26,7 @@ public enum Days { @JsonValue private final String value; - private Days(String value) { + Days(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Dbt.java b/src/main/java/com/airbyte/api/models/shared/Dbt.java index 9b1c5f20a..c4459f8f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dbt.java +++ b/src/main/java/com/airbyte/api/models/shared/Dbt.java @@ -14,7 +14,7 @@ public enum Dbt { @JsonValue private final String value; - private Dbt(String value) { + Dbt(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DeclarativeSourceDefinitionResponse.java b/src/main/java/com/airbyte/api/models/shared/DeclarativeSourceDefinitionResponse.java index aaecf1687..3f4607384 100644 --- a/src/main/java/com/airbyte/api/models/shared/DeclarativeSourceDefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/DeclarativeSourceDefinitionResponse.java @@ -11,7 +11,7 @@ import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DeclarativeSourceDefinitionResponse { @@ -24,9 +24,11 @@ public class DeclarativeSourceDefinitionResponse { @JsonProperty("manifest") private Object manifest; + @JsonProperty("name") private String name; + @JsonProperty("version") private long version; @@ -69,9 +71,10 @@ public long version() { return version; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeclarativeSourceDefinitionResponse withId(String id) { Utils.checkNotNull(id, "id"); @@ -100,7 +103,6 @@ public DeclarativeSourceDefinitionResponse withVersion(long version) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,18 +113,16 @@ public boolean equals(java.lang.Object o) { } DeclarativeSourceDefinitionResponse other = (DeclarativeSourceDefinitionResponse) o; return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.manifest, other.manifest) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.version, other.version); + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.manifest, other.manifest) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.version, other.version); } @Override public int hashCode() { - return Objects.hash( - id, - manifest, - name, + return Utils.enhancedHash( + id, manifest, name, version); } @@ -134,27 +134,30 @@ public String toString() { "name", name, "version", version); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String id; - + private Object manifest; - + private String name; - + private Long version; - + private Builder() { // force use of static builder() method } + public Builder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } + /** * Low code CDK manifest JSON object */ @@ -164,24 +167,26 @@ public Builder manifest(Object manifest) { return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + public Builder version(long version) { Utils.checkNotNull(version, "version"); this.version = version; return this; } - + public DeclarativeSourceDefinitionResponse build() { + return new DeclarativeSourceDefinitionResponse( - id, - manifest, - name, + id, manifest, name, version); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DeclarativeSourceDefinitionsResponse.java b/src/main/java/com/airbyte/api/models/shared/DeclarativeSourceDefinitionsResponse.java index 6582e77d8..c0ded95d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DeclarativeSourceDefinitionsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/DeclarativeSourceDefinitionsResponse.java @@ -12,18 +12,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class DeclarativeSourceDefinitionsResponse { @JsonProperty("data") private List data; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("next") private Optional next; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("previous") private Optional previous; @@ -61,9 +63,10 @@ public Optional previous() { return previous; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DeclarativeSourceDefinitionsResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -77,6 +80,7 @@ public DeclarativeSourceDefinitionsResponse withNext(String next) { return this; } + public DeclarativeSourceDefinitionsResponse withNext(Optional next) { Utils.checkNotNull(next, "next"); this.next = next; @@ -89,13 +93,13 @@ public DeclarativeSourceDefinitionsResponse withPrevious(String previous) { return this; } + public DeclarativeSourceDefinitionsResponse withPrevious(Optional previous) { Utils.checkNotNull(previous, "previous"); this.previous = previous; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +110,15 @@ public boolean equals(java.lang.Object o) { } DeclarativeSourceDefinitionsResponse other = (DeclarativeSourceDefinitionsResponse) o; return - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.next, other.next) && - Objects.deepEquals(this.previous, other.previous); + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.previous, other.previous); } @Override public int hashCode() { - return Objects.hash( - data, - next, - previous); + return Utils.enhancedHash( + data, next, previous); } @Override @@ -126,25 +128,28 @@ public String toString() { "next", next, "previous", previous); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Optional next = Optional.empty(); - + private Optional previous = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } + public Builder next(String next) { Utils.checkNotNull(next, "next"); this.next = Optional.ofNullable(next); @@ -157,6 +162,7 @@ public Builder next(Optional next) { return this; } + public Builder previous(String previous) { Utils.checkNotNull(previous, "previous"); this.previous = Optional.ofNullable(previous); @@ -168,12 +174,12 @@ public Builder previous(Optional previous) { this.previous = previous; return this; } - + public DeclarativeSourceDefinitionsResponse build() { + return new DeclarativeSourceDefinitionsResponse( - data, - next, - previous); + data, next, previous); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Deepset.java b/src/main/java/com/airbyte/api/models/shared/Deepset.java index 4c94396b3..e7679a38d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Deepset.java +++ b/src/main/java/com/airbyte/api/models/shared/Deepset.java @@ -14,7 +14,7 @@ public enum Deepset { @JsonValue private final String value; - private Deepset(String value) { + Deepset(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java b/src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java index 52e347175..8d1eaeca3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java +++ b/src/main/java/com/airbyte/api/models/shared/DefaultVectorizer.java @@ -26,7 +26,7 @@ public enum DefaultVectorizer { @JsonValue private final String value; - private DefaultVectorizer(String value) { + DefaultVectorizer(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DefinitionOfConversionCountInReports.java b/src/main/java/com/airbyte/api/models/shared/DefinitionOfConversionCountInReports.java index ae1b3a1dc..6ae5eac18 100644 --- a/src/main/java/com/airbyte/api/models/shared/DefinitionOfConversionCountInReports.java +++ b/src/main/java/com/airbyte/api/models/shared/DefinitionOfConversionCountInReports.java @@ -11,7 +11,9 @@ /** * DefinitionOfConversionCountInReports * - *

The definition of conversion count in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + *

The definition of conversion count in reports. See the + * docs. */ public enum DefinitionOfConversionCountInReports { CLICK_VIEW_TIME("click/view_time"), @@ -20,7 +22,7 @@ public enum DefinitionOfConversionCountInReports { @JsonValue private final String value; - private DefinitionOfConversionCountInReports(String value) { + DefinitionOfConversionCountInReports(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DefinitionResponse.java b/src/main/java/com/airbyte/api/models/shared/DefinitionResponse.java index 6d8114afc..45ae75eac 100644 --- a/src/main/java/com/airbyte/api/models/shared/DefinitionResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/DefinitionResponse.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -24,16 +23,20 @@ public class DefinitionResponse { @JsonProperty("dockerImageTag") private String dockerImageTag; + @JsonProperty("dockerRepository") private String dockerRepository; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("documentationUrl") private Optional documentationUrl; + @JsonProperty("id") private String id; + @JsonProperty("name") private String name; @@ -61,7 +64,8 @@ public DefinitionResponse( String dockerRepository, String id, String name) { - this(dockerImageTag, dockerRepository, Optional.empty(), id, name); + this(dockerImageTag, dockerRepository, Optional.empty(), + id, name); } @JsonIgnore @@ -89,9 +93,10 @@ public String name() { return name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DefinitionResponse withDockerImageTag(String dockerImageTag) { Utils.checkNotNull(dockerImageTag, "dockerImageTag"); @@ -111,6 +116,7 @@ public DefinitionResponse withDocumentationUrl(String documentationUrl) { return this; } + public DefinitionResponse withDocumentationUrl(Optional documentationUrl) { Utils.checkNotNull(documentationUrl, "documentationUrl"); this.documentationUrl = documentationUrl; @@ -129,7 +135,6 @@ public DefinitionResponse withName(String name) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,21 +145,18 @@ public boolean equals(java.lang.Object o) { } DefinitionResponse other = (DefinitionResponse) o; return - Objects.deepEquals(this.dockerImageTag, other.dockerImageTag) && - Objects.deepEquals(this.dockerRepository, other.dockerRepository) && - Objects.deepEquals(this.documentationUrl, other.documentationUrl) && - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.dockerImageTag, other.dockerImageTag) && + Utils.enhancedDeepEquals(this.dockerRepository, other.dockerRepository) && + Utils.enhancedDeepEquals(this.documentationUrl, other.documentationUrl) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - dockerImageTag, - dockerRepository, - documentationUrl, - id, - name); + return Utils.enhancedHash( + dockerImageTag, dockerRepository, documentationUrl, + id, name); } @Override @@ -166,35 +168,39 @@ public String toString() { "id", id, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String dockerImageTag; - + private String dockerRepository; - + private Optional documentationUrl = Optional.empty(); - + private String id; - + private String name; - + private Builder() { // force use of static builder() method } + public Builder dockerImageTag(String dockerImageTag) { Utils.checkNotNull(dockerImageTag, "dockerImageTag"); this.dockerImageTag = dockerImageTag; return this; } + public Builder dockerRepository(String dockerRepository) { Utils.checkNotNull(dockerRepository, "dockerRepository"); this.dockerRepository = dockerRepository; return this; } + public Builder documentationUrl(String documentationUrl) { Utils.checkNotNull(documentationUrl, "documentationUrl"); this.documentationUrl = Optional.ofNullable(documentationUrl); @@ -207,25 +213,26 @@ public Builder documentationUrl(Optional documentationUrl) { return this; } + public Builder id(String id) { Utils.checkNotNull(id, "id"); this.id = id; return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - + public DefinitionResponse build() { + return new DefinitionResponse( - dockerImageTag, - dockerRepository, - documentationUrl, - id, - name); + dockerImageTag, dockerRepository, documentationUrl, + id, name); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DefinitionsResponse.java b/src/main/java/com/airbyte/api/models/shared/DefinitionsResponse.java index 41974a493..0fbded2ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/DefinitionsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/DefinitionsResponse.java @@ -12,18 +12,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class DefinitionsResponse { @JsonProperty("data") private List data; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("next") private Optional next; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("previous") private Optional previous; @@ -61,9 +63,10 @@ public Optional previous() { return previous; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DefinitionsResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -77,6 +80,7 @@ public DefinitionsResponse withNext(String next) { return this; } + public DefinitionsResponse withNext(Optional next) { Utils.checkNotNull(next, "next"); this.next = next; @@ -89,13 +93,13 @@ public DefinitionsResponse withPrevious(String previous) { return this; } + public DefinitionsResponse withPrevious(Optional previous) { Utils.checkNotNull(previous, "previous"); this.previous = previous; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +110,15 @@ public boolean equals(java.lang.Object o) { } DefinitionsResponse other = (DefinitionsResponse) o; return - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.next, other.next) && - Objects.deepEquals(this.previous, other.previous); + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.previous, other.previous); } @Override public int hashCode() { - return Objects.hash( - data, - next, - previous); + return Utils.enhancedHash( + data, next, previous); } @Override @@ -126,25 +128,28 @@ public String toString() { "next", next, "previous", previous); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Optional next = Optional.empty(); - + private Optional previous = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } + public Builder next(String next) { Utils.checkNotNull(next, "next"); this.next = Optional.ofNullable(next); @@ -157,6 +162,7 @@ public Builder next(Optional next) { return this; } + public Builder previous(String previous) { Utils.checkNotNull(previous, "previous"); this.previous = Optional.ofNullable(previous); @@ -168,12 +174,12 @@ public Builder previous(Optional previous) { this.previous = previous; return this; } - + public DefinitionsResponse build() { + return new DefinitionsResponse( - data, - next, - previous); + data, next, previous); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Deflate.java b/src/main/java/com/airbyte/api/models/shared/Deflate.java index 7fe62e269..3be9e9538 100644 --- a/src/main/java/com/airbyte/api/models/shared/Deflate.java +++ b/src/main/java/com/airbyte/api/models/shared/Deflate.java @@ -15,9 +15,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Deflate { @JsonInclude(Include.NON_ABSENT) @@ -59,9 +59,10 @@ public Optional compressionLevel() { return compressionLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Deflate withCodec(DestinationGcsCodec codec) { Utils.checkNotNull(codec, "codec"); @@ -69,6 +70,7 @@ public Deflate withCodec(DestinationGcsCodec codec) { return this; } + public Deflate withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; @@ -84,6 +86,7 @@ public Deflate withCompressionLevel(long compressionLevel) { return this; } + /** * 0: no compression & fastest, 9: best compression & slowest. */ @@ -93,7 +96,6 @@ public Deflate withCompressionLevel(Optional compressionLevel) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,15 +106,14 @@ public boolean equals(java.lang.Object o) { } Deflate other = (Deflate) o; return - Objects.deepEquals(this.codec, other.codec) && - Objects.deepEquals(this.compressionLevel, other.compressionLevel); + Utils.enhancedDeepEquals(this.codec, other.codec) && + Utils.enhancedDeepEquals(this.compressionLevel, other.compressionLevel); } @Override public int hashCode() { - return Objects.hash( - codec, - compressionLevel); + return Utils.enhancedHash( + codec, compressionLevel); } @Override @@ -121,17 +122,19 @@ public String toString() { "codec", codec, "compressionLevel", compressionLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional codec; - + private Optional compressionLevel; - + private Builder() { // force use of static builder() method } + public Builder codec(DestinationGcsCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -144,6 +147,7 @@ public Builder codec(Optional codec) { return this; } + /** * 0: no compression & fastest, 9: best compression & slowest. */ @@ -161,7 +165,7 @@ public Builder compressionLevel(Optional compressionLevel) { this.compressionLevel = compressionLevel; return this; } - + public Deflate build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); @@ -169,11 +173,12 @@ public Deflate build() { if (compressionLevel == null) { compressionLevel = _SINGLETON_VALUE_CompressionLevel.value(); } + return new Deflate( - codec, - compressionLevel); + codec, compressionLevel); } + private static final LazySingletonValue> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/DeletionMode.java b/src/main/java/com/airbyte/api/models/shared/DeletionMode.java index 487dea586..fdb062cdd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DeletionMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DeletionMode.java @@ -14,15 +14,15 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DeletionMode * - *

<b>This only applies to incremental syncs.</b> <br> - * Enabling deletion mode informs your destination of deleted documents.<br> - * Disabled - Leave this feature disabled, and ignore deleted documents.<br> - * Enabled - Enables this feature. When a document is deleted, the connector exports a record with a "deleted at" column containing the time that the document was deleted. + *

This only applies to incremental syncs.
+ * Enabling deletion mode informs your destination of deleted documents.
+ * Disabled - Leave this feature disabled, and ignore deleted documents.
+ * Enabled - Enables this feature. When a document is deleted, the connector exports a record with a + * "deleted at" column containing the time that the document was deleted. */ @JsonDeserialize(using = DeletionMode._Deserializer.class) public class DeletionMode { @@ -75,12 +75,12 @@ public boolean equals(java.lang.Object o) { return false; } DeletionMode other = (DeletionMode) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Delighted.java b/src/main/java/com/airbyte/api/models/shared/Delighted.java index 33b35599b..fe713571f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Delighted.java +++ b/src/main/java/com/airbyte/api/models/shared/Delighted.java @@ -14,7 +14,7 @@ public enum Delighted { @JsonValue private final String value; - private Delighted(String value) { + Delighted(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DeliveryMethod.java b/src/main/java/com/airbyte/api/models/shared/DeliveryMethod.java index 4118f66ce..a9d24980e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DeliveryMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DeliveryMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = DeliveryMethod._Deserializer.class) public class DeliveryMethod { @@ -73,12 +72,12 @@ public boolean equals(java.lang.Object o) { return false; } DeliveryMethod other = (DeliveryMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DeliveryType.java b/src/main/java/com/airbyte/api/models/shared/DeliveryType.java index 979c1c825..79f03e4cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/DeliveryType.java @@ -14,7 +14,7 @@ public enum DeliveryType { @JsonValue private final String value; - private DeliveryType(String value) { + DeliveryType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Deputy.java b/src/main/java/com/airbyte/api/models/shared/Deputy.java index 612377c7e..d888d2c93 100644 --- a/src/main/java/com/airbyte/api/models/shared/Deputy.java +++ b/src/main/java/com/airbyte/api/models/shared/Deputy.java @@ -14,7 +14,7 @@ public enum Deputy { @JsonValue private final String value; - private Deputy(String value) { + Deputy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstra.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstra.java index f009ba20a..cadf82f2e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstra.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstra.java @@ -14,13 +14,13 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** * DestinationAstra * - *

The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, + *

The configuration model for the Vector DB based destinations. This model is used to generate the UI + * for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. * *

The configuration model is composed of four parts: @@ -29,7 +29,8 @@ * * Indexing configuration * * Advanced configuration * - *

Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. + *

Processing, embedding and advanced configuration are provided by this base class, while the indexing + * configuration is provided by the destination connector in the sub class. */ public class DestinationAstra { @@ -43,18 +44,22 @@ public class DestinationAstra { private Embedding embedding; /** - * Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG and Gen AI apps with fewer hallucinations in production. + * Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG + * and Gen AI apps with fewer hallucinations in production. */ @JsonProperty("indexing") private Indexing indexing; /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("omit_raw_text") private Optional omitRawText; + @JsonProperty("processing") private ProcessingConfigModel processing; @@ -79,7 +84,8 @@ public DestinationAstra( Embedding embedding, Indexing indexing, ProcessingConfigModel processing) { - this(embedding, indexing, Optional.empty(), processing); + this(embedding, indexing, Optional.empty(), + processing); } @JsonIgnore @@ -96,7 +102,8 @@ public Embedding embedding() { } /** - * Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG and Gen AI apps with fewer hallucinations in production. + * Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG + * and Gen AI apps with fewer hallucinations in production. */ @JsonIgnore public Indexing indexing() { @@ -104,7 +111,9 @@ public Indexing indexing() { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonIgnore public Optional omitRawText() { @@ -116,9 +125,10 @@ public ProcessingConfigModel processing() { return processing; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Embedding configuration @@ -130,7 +140,8 @@ public DestinationAstra withEmbedding(Embedding embedding) { } /** - * Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG and Gen AI apps with fewer hallucinations in production. + * Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG + * and Gen AI apps with fewer hallucinations in production. */ public DestinationAstra withIndexing(Indexing indexing) { Utils.checkNotNull(indexing, "indexing"); @@ -139,7 +150,9 @@ public DestinationAstra withIndexing(Indexing indexing) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationAstra withOmitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -147,8 +160,11 @@ public DestinationAstra withOmitRawText(boolean omitRawText) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationAstra withOmitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -162,7 +178,6 @@ public DestinationAstra withProcessing(ProcessingConfigModel processing) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +188,18 @@ public boolean equals(java.lang.Object o) { } DestinationAstra other = (DestinationAstra) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.embedding, other.embedding) && - Objects.deepEquals(this.indexing, other.indexing) && - Objects.deepEquals(this.omitRawText, other.omitRawText) && - Objects.deepEquals(this.processing, other.processing); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.embedding, other.embedding) && + Utils.enhancedDeepEquals(this.indexing, other.indexing) && + Utils.enhancedDeepEquals(this.omitRawText, other.omitRawText) && + Utils.enhancedDeepEquals(this.processing, other.processing); } @Override public int hashCode() { - return Objects.hash( - destinationType, - embedding, - indexing, - omitRawText, - processing); + return Utils.enhancedHash( + destinationType, embedding, indexing, + omitRawText, processing); } @Override @@ -199,21 +211,23 @@ public String toString() { "omitRawText", omitRawText, "processing", processing); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Embedding embedding; - + private Indexing indexing; - + private Optional omitRawText; - + private ProcessingConfigModel processing; - + private Builder() { // force use of static builder() method } + /** * Embedding configuration */ @@ -223,8 +237,10 @@ public Builder embedding(Embedding embedding) { return this; } + /** - * Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG and Gen AI apps with fewer hallucinations in production. + * Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG + * and Gen AI apps with fewer hallucinations in production. */ public Builder indexing(Indexing indexing) { Utils.checkNotNull(indexing, "indexing"); @@ -232,8 +248,11 @@ public Builder indexing(Indexing indexing) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -242,7 +261,9 @@ public Builder omitRawText(boolean omitRawText) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -250,23 +271,24 @@ public Builder omitRawText(Optional omitRawText) { return this; } + public Builder processing(ProcessingConfigModel processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; } - + public DestinationAstra build() { if (omitRawText == null) { omitRawText = _SINGLETON_VALUE_OmitRawText.value(); } + return new DestinationAstra( - embedding, - indexing, - omitRawText, + embedding, indexing, omitRawText, processing); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java index 8b94595cd..c4cf30e9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraLanguage.java @@ -34,7 +34,7 @@ public enum DestinationAstraLanguage { @JsonValue private final String value; - private DestinationAstraLanguage(String value) { + DestinationAstraLanguage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java index 9122f90ad..fa4dc7940 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraMode.java @@ -14,7 +14,7 @@ public enum DestinationAstraMode { @JsonValue private final String value; - private DestinationAstraMode(String value) { + DestinationAstraMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.java index 86428589c..93de68ac9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbedding5Mode.java @@ -14,7 +14,7 @@ public enum DestinationAstraSchemasEmbeddingEmbedding5Mode { @JsonValue private final String value; - private DestinationAstraSchemasEmbeddingEmbedding5Mode(String value) { + DestinationAstraSchemasEmbeddingEmbedding5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java index 5e24b2223..ddae13c06 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationAstraSchemasEmbeddingEmbeddingMode { @JsonValue private final String value; - private DestinationAstraSchemasEmbeddingEmbeddingMode(String value) { + DestinationAstraSchemasEmbeddingEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java index a54247534..163dc4b88 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationAstraSchemasEmbeddingMode { @JsonValue private final String value; - private DestinationAstraSchemasEmbeddingMode(String value) { + DestinationAstraSchemasEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java index 01760404c..1e3b820ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationAstraSchemasMode { @JsonValue private final String value; - private DestinationAstraSchemasMode(String value) { + DestinationAstraSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingMode.java index 07f88475a..957afd4fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingMode.java @@ -14,7 +14,7 @@ public enum DestinationAstraSchemasProcessingMode { @JsonValue private final String value; - private DestinationAstraSchemasProcessingMode(String value) { + DestinationAstraSchemasProcessingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterMode.java index 0c4aa0e86..cce603687 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationAstraSchemasProcessingTextSplitterMode { @JsonValue private final String value; - private DestinationAstraSchemasProcessingTextSplitterMode(String value) { + DestinationAstraSchemasProcessingTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.java index 1149f286a..fede49dd5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAstraSchemasProcessingTextSplitterTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationAstraSchemasProcessingTextSplitterTextSplitterMode { @JsonValue private final String value; - private DestinationAstraSchemasProcessingTextSplitterTextSplitterMode(String value) { + DestinationAstraSchemasProcessingTextSplitterTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalake.java b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalake.java index 102e61ec0..9674585d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalake.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationAwsDatalake { +public class DestinationAwsDatalake { /** * target aws account id */ @@ -28,7 +27,8 @@ public class DestinationAwsDatalake { private Optional awsAccountId; /** - * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. + * The name of the S3 bucket. Read more here. */ @JsonProperty("bucket_name") private String bucketName; @@ -46,6 +46,7 @@ public class DestinationAwsDatalake { @JsonProperty("credentials") private AuthenticationMode credentials; + @JsonProperty("destinationType") private AwsDatalake destinationType; @@ -57,7 +58,8 @@ public class DestinationAwsDatalake { private Optional format; /** - * Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers correctly as received from the source. + * Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers + * correctly as received from the source. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("glue_catalog_float_as_decimal") @@ -71,14 +73,16 @@ public class DestinationAwsDatalake { private Optional lakeformationDatabaseDefaultTagKey; /** - * Add default values for the `Tag Key` to databases created by this destination. Comma separate for multiple values. + * Add default values for the `Tag Key` to databases created by this destination. Comma separate for + * multiple values. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lakeformation_database_default_tag_values") private Optional lakeformationDatabaseDefaultTagValues; /** - * The default database this destination will use to create tables in per stream. Can be changed per connection by customizing the namespace. + * The default database this destination will use to create tables in per stream. Can be changed per + * connection by customizing the namespace. */ @JsonProperty("lakeformation_database_name") private String lakeformationDatabaseName; @@ -98,7 +102,9 @@ public class DestinationAwsDatalake { private Optional partitioning; /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("region") @@ -149,7 +155,10 @@ public DestinationAwsDatalake( String bucketName, AuthenticationMode credentials, String lakeformationDatabaseName) { - this(Optional.empty(), bucketName, Optional.empty(), credentials, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), lakeformationDatabaseName, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), bucketName, Optional.empty(), + credentials, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), lakeformationDatabaseName, + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -161,7 +170,8 @@ public Optional awsAccountId() { } /** - * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. + * The name of the S3 bucket. Read more here. */ @JsonIgnore public String bucketName() { @@ -199,7 +209,8 @@ public Optional format() { } /** - * Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers correctly as received from the source. + * Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers + * correctly as received from the source. */ @JsonIgnore public Optional glueCatalogFloatAsDecimal() { @@ -215,7 +226,8 @@ public Optional lakeformationDatabaseDefaultTagKey() { } /** - * Add default values for the `Tag Key` to databases created by this destination. Comma separate for multiple values. + * Add default values for the `Tag Key` to databases created by this destination. Comma separate for + * multiple values. */ @JsonIgnore public Optional lakeformationDatabaseDefaultTagValues() { @@ -223,7 +235,8 @@ public Optional lakeformationDatabaseDefaultTagValues() { } /** - * The default database this destination will use to create tables in per stream. Can be changed per connection by customizing the namespace. + * The default database this destination will use to create tables in per stream. Can be changed per + * connection by customizing the namespace. */ @JsonIgnore public String lakeformationDatabaseName() { @@ -248,7 +261,9 @@ public Optional partitioning() { } /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -256,9 +271,10 @@ public Optional region() { return (Optional) region; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * target aws account id @@ -269,6 +285,7 @@ public DestinationAwsDatalake withAwsAccountId(String awsAccountId) { return this; } + /** * target aws account id */ @@ -279,7 +296,8 @@ public DestinationAwsDatalake withAwsAccountId(Optional awsAccountId) { } /** - * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. + * The name of the S3 bucket. Read more here. */ public DestinationAwsDatalake withBucketName(String bucketName) { Utils.checkNotNull(bucketName, "bucketName"); @@ -296,6 +314,7 @@ public DestinationAwsDatalake withBucketPrefix(String bucketPrefix) { return this; } + /** * S3 prefix */ @@ -323,6 +342,7 @@ public DestinationAwsDatalake withFormat(OutputFormatWildcard format) { return this; } + /** * Format of the data output. */ @@ -333,7 +353,8 @@ public DestinationAwsDatalake withFormat(Optional glueCatalogFloatAsDecimal) { Utils.checkNotNull(glueCatalogFloatAsDecimal, "glueCatalogFloatAsDecimal"); @@ -359,6 +382,7 @@ public DestinationAwsDatalake withLakeformationDatabaseDefaultTagKey(String lake return this; } + /** * Add a default tag key to databases created by this destination */ @@ -369,7 +393,8 @@ public DestinationAwsDatalake withLakeformationDatabaseDefaultTagKey(Optional lakeformationDatabaseDefaultTagValues) { Utils.checkNotNull(lakeformationDatabaseDefaultTagValues, "lakeformationDatabaseDefaultTagValues"); @@ -387,7 +414,8 @@ public DestinationAwsDatalake withLakeformationDatabaseDefaultTagValues(Optional } /** - * The default database this destination will use to create tables in per stream. Can be changed per connection by customizing the namespace. + * The default database this destination will use to create tables in per stream. Can be changed per + * connection by customizing the namespace. */ public DestinationAwsDatalake withLakeformationDatabaseName(String lakeformationDatabaseName) { Utils.checkNotNull(lakeformationDatabaseName, "lakeformationDatabaseName"); @@ -404,6 +432,7 @@ public DestinationAwsDatalake withLakeformationGovernedTables(boolean lakeformat return this; } + /** * Whether to create tables as LF governed tables. */ @@ -422,6 +451,7 @@ public DestinationAwsDatalake withPartitioning(ChooseHowToPartitionData partitio return this; } + /** * Partition data by cursor fields when a cursor field is a date */ @@ -432,7 +462,9 @@ public DestinationAwsDatalake withPartitioning(Optionalhere + * for all region codes. */ public DestinationAwsDatalake withRegion(S3BucketRegion region) { Utils.checkNotNull(region, "region"); @@ -440,8 +472,11 @@ public DestinationAwsDatalake withRegion(S3BucketRegion region) { return this; } + /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ public DestinationAwsDatalake withRegion(Optional region) { Utils.checkNotNull(region, "region"); @@ -449,7 +484,6 @@ public DestinationAwsDatalake withRegion(Optional regi return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -460,36 +494,28 @@ public boolean equals(java.lang.Object o) { } DestinationAwsDatalake other = (DestinationAwsDatalake) o; return - Objects.deepEquals(this.awsAccountId, other.awsAccountId) && - Objects.deepEquals(this.bucketName, other.bucketName) && - Objects.deepEquals(this.bucketPrefix, other.bucketPrefix) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.format, other.format) && - Objects.deepEquals(this.glueCatalogFloatAsDecimal, other.glueCatalogFloatAsDecimal) && - Objects.deepEquals(this.lakeformationDatabaseDefaultTagKey, other.lakeformationDatabaseDefaultTagKey) && - Objects.deepEquals(this.lakeformationDatabaseDefaultTagValues, other.lakeformationDatabaseDefaultTagValues) && - Objects.deepEquals(this.lakeformationDatabaseName, other.lakeformationDatabaseName) && - Objects.deepEquals(this.lakeformationGovernedTables, other.lakeformationGovernedTables) && - Objects.deepEquals(this.partitioning, other.partitioning) && - Objects.deepEquals(this.region, other.region); + Utils.enhancedDeepEquals(this.awsAccountId, other.awsAccountId) && + Utils.enhancedDeepEquals(this.bucketName, other.bucketName) && + Utils.enhancedDeepEquals(this.bucketPrefix, other.bucketPrefix) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.format, other.format) && + Utils.enhancedDeepEquals(this.glueCatalogFloatAsDecimal, other.glueCatalogFloatAsDecimal) && + Utils.enhancedDeepEquals(this.lakeformationDatabaseDefaultTagKey, other.lakeformationDatabaseDefaultTagKey) && + Utils.enhancedDeepEquals(this.lakeformationDatabaseDefaultTagValues, other.lakeformationDatabaseDefaultTagValues) && + Utils.enhancedDeepEquals(this.lakeformationDatabaseName, other.lakeformationDatabaseName) && + Utils.enhancedDeepEquals(this.lakeformationGovernedTables, other.lakeformationGovernedTables) && + Utils.enhancedDeepEquals(this.partitioning, other.partitioning) && + Utils.enhancedDeepEquals(this.region, other.region); } @Override public int hashCode() { - return Objects.hash( - awsAccountId, - bucketName, - bucketPrefix, - credentials, - destinationType, - format, - glueCatalogFloatAsDecimal, - lakeformationDatabaseDefaultTagKey, - lakeformationDatabaseDefaultTagValues, - lakeformationDatabaseName, - lakeformationGovernedTables, - partitioning, + return Utils.enhancedHash( + awsAccountId, bucketName, bucketPrefix, + credentials, destinationType, format, + glueCatalogFloatAsDecimal, lakeformationDatabaseDefaultTagKey, lakeformationDatabaseDefaultTagValues, + lakeformationDatabaseName, lakeformationGovernedTables, partitioning, region); } @@ -510,37 +536,39 @@ public String toString() { "partitioning", partitioning, "region", region); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional awsAccountId = Optional.empty(); - + private String bucketName; - + private Optional bucketPrefix = Optional.empty(); - + private AuthenticationMode credentials; - + private Optional format = Optional.empty(); - + private Optional glueCatalogFloatAsDecimal; - + private Optional lakeformationDatabaseDefaultTagKey = Optional.empty(); - + private Optional lakeformationDatabaseDefaultTagValues = Optional.empty(); - + private String lakeformationDatabaseName; - + private Optional lakeformationGovernedTables; - + private Optional partitioning; - + private Optional region; - + private Builder() { // force use of static builder() method } + /** * target aws account id */ @@ -559,8 +587,10 @@ public Builder awsAccountId(Optional awsAccountId) { return this; } + /** - * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. + * The name of the S3 bucket. Read more here. */ public Builder bucketName(String bucketName) { Utils.checkNotNull(bucketName, "bucketName"); @@ -568,6 +598,7 @@ public Builder bucketName(String bucketName) { return this; } + /** * S3 prefix */ @@ -586,6 +617,7 @@ public Builder bucketPrefix(Optional bucketPrefix) { return this; } + /** * Choose How to Authenticate to AWS. */ @@ -595,6 +627,7 @@ public Builder credentials(AuthenticationMode credentials) { return this; } + /** * Format of the data output. */ @@ -613,8 +646,10 @@ public Builder format(Optional format) { return this; } + /** - * Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers correctly as received from the source. + * Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers + * correctly as received from the source. */ public Builder glueCatalogFloatAsDecimal(boolean glueCatalogFloatAsDecimal) { Utils.checkNotNull(glueCatalogFloatAsDecimal, "glueCatalogFloatAsDecimal"); @@ -623,7 +658,8 @@ public Builder glueCatalogFloatAsDecimal(boolean glueCatalogFloatAsDecimal) { } /** - * Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers correctly as received from the source. + * Cast float/double as decimal(38,18). This can help achieve higher accuracy and represent numbers + * correctly as received from the source. */ public Builder glueCatalogFloatAsDecimal(Optional glueCatalogFloatAsDecimal) { Utils.checkNotNull(glueCatalogFloatAsDecimal, "glueCatalogFloatAsDecimal"); @@ -631,6 +667,7 @@ public Builder glueCatalogFloatAsDecimal(Optional glueCatalogFloatAsDec return this; } + /** * Add a default tag key to databases created by this destination */ @@ -649,8 +686,10 @@ public Builder lakeformationDatabaseDefaultTagKey(Optional lakeformation return this; } + /** - * Add default values for the `Tag Key` to databases created by this destination. Comma separate for multiple values. + * Add default values for the `Tag Key` to databases created by this destination. Comma separate for + * multiple values. */ public Builder lakeformationDatabaseDefaultTagValues(String lakeformationDatabaseDefaultTagValues) { Utils.checkNotNull(lakeformationDatabaseDefaultTagValues, "lakeformationDatabaseDefaultTagValues"); @@ -659,7 +698,8 @@ public Builder lakeformationDatabaseDefaultTagValues(String lakeformationDatabas } /** - * Add default values for the `Tag Key` to databases created by this destination. Comma separate for multiple values. + * Add default values for the `Tag Key` to databases created by this destination. Comma separate for + * multiple values. */ public Builder lakeformationDatabaseDefaultTagValues(Optional lakeformationDatabaseDefaultTagValues) { Utils.checkNotNull(lakeformationDatabaseDefaultTagValues, "lakeformationDatabaseDefaultTagValues"); @@ -667,8 +707,10 @@ public Builder lakeformationDatabaseDefaultTagValues(Optional lakeformat return this; } + /** - * The default database this destination will use to create tables in per stream. Can be changed per connection by customizing the namespace. + * The default database this destination will use to create tables in per stream. Can be changed per + * connection by customizing the namespace. */ public Builder lakeformationDatabaseName(String lakeformationDatabaseName) { Utils.checkNotNull(lakeformationDatabaseName, "lakeformationDatabaseName"); @@ -676,6 +718,7 @@ public Builder lakeformationDatabaseName(String lakeformationDatabaseName) { return this; } + /** * Whether to create tables as LF governed tables. */ @@ -694,6 +737,7 @@ public Builder lakeformationGovernedTables(Optional lakeformationGovern return this; } + /** * Partition data by cursor fields when a cursor field is a date */ @@ -712,8 +756,11 @@ public Builder partitioning(Optional partiti return this; } + /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ public Builder region(S3BucketRegion region) { Utils.checkNotNull(region, "region"); @@ -722,14 +769,16 @@ public Builder region(S3BucketRegion region) { } /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ public Builder region(Optional region) { Utils.checkNotNull(region, "region"); this.region = region; return this; } - + public DestinationAwsDatalake build() { if (glueCatalogFloatAsDecimal == null) { glueCatalogFloatAsDecimal = _SINGLETON_VALUE_GlueCatalogFloatAsDecimal.value(); @@ -743,21 +792,15 @@ public DestinationAwsDatalake build() { if (region == null) { region = _SINGLETON_VALUE_Region.value(); } + return new DestinationAwsDatalake( - awsAccountId, - bucketName, - bucketPrefix, - credentials, - format, - glueCatalogFloatAsDecimal, - lakeformationDatabaseDefaultTagKey, - lakeformationDatabaseDefaultTagValues, - lakeformationDatabaseName, - lakeformationGovernedTables, - partitioning, - region); + awsAccountId, bucketName, bucketPrefix, + credentials, format, glueCatalogFloatAsDecimal, + lakeformationDatabaseDefaultTagKey, lakeformationDatabaseDefaultTagValues, lakeformationDatabaseName, + lakeformationGovernedTables, partitioning, region); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java index 17a2fe67a..1512b42fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCompressionCodecOptional.java @@ -22,7 +22,7 @@ public enum DestinationAwsDatalakeCompressionCodecOptional { @JsonValue private final String value; - private DestinationAwsDatalakeCompressionCodecOptional(String value) { + DestinationAwsDatalakeCompressionCodecOptional(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCredentialsTitle.java index 8bd0efd02..c40abf619 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeCredentialsTitle.java @@ -19,7 +19,7 @@ public enum DestinationAwsDatalakeCredentialsTitle { @JsonValue private final String value; - private DestinationAwsDatalakeCredentialsTitle(String value) { + DestinationAwsDatalakeCredentialsTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeFormatTypeWildcard.java b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeFormatTypeWildcard.java index a7580910f..58f5b4352 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeFormatTypeWildcard.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAwsDatalakeFormatTypeWildcard.java @@ -14,7 +14,7 @@ public enum DestinationAwsDatalakeFormatTypeWildcard { @JsonValue private final String value; - private DestinationAwsDatalakeFormatTypeWildcard(String value) { + DestinationAwsDatalakeFormatTypeWildcard(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorage.java index 92b578459..d71391522 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorage.java @@ -14,44 +14,49 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationAzureBlobStorage { +public class DestinationAzureBlobStorage { /** - * The Azure blob storage account key. If you set this value, you must not set the Shared Access Signature. + * The Azure blob storage account key. If you set this value, you must not set the Shared Access + * Signature. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("azure_blob_storage_account_key") private Optional azureBlobStorageAccountKey; /** - * The name of the Azure Blob Storage Account. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/blobs/storage-blobs-introduction#storage-accounts">here</a>. + * The name of the Azure Blob Storage Account. Read more here. */ @JsonProperty("azure_blob_storage_account_name") private String azureBlobStorageAccountName; /** - * The name of the Azure Blob Storage Container. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/blobs/storage-blobs-introduction#containers">here</a>. + * The name of the Azure Blob Storage Container. Read more here. */ @JsonProperty("azure_blob_storage_container_name") private String azureBlobStorageContainerName; /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("azure_blob_storage_endpoint_domain_name") private Optional azureBlobStorageEndpointDomainName; /** - * The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable. + * The amount of megabytes after which the connector should spill the records in a new blob object. + * Make sure to configure size greater than individual records. Enter 0 if not applicable. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("azure_blob_storage_spill_size") private Optional azureBlobStorageSpillSize; + @JsonProperty("destinationType") private DestinationAzureBlobStorageAzureBlobStorage destinationType; @@ -62,7 +67,10 @@ public class DestinationAzureBlobStorage { private OutputFormat format; /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/common/storage-sas-overview?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&bc=%2Fazure%2Fstorage%2Fblobs%2Fbreadcrumb%2Ftoc.json">here</a>. If you set this value, you must not set the account key. + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. Read more here. + * If you set this value, you must not set the account key. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("shared_access_signature") @@ -98,11 +106,14 @@ public DestinationAzureBlobStorage( String azureBlobStorageAccountName, String azureBlobStorageContainerName, OutputFormat format) { - this(Optional.empty(), azureBlobStorageAccountName, azureBlobStorageContainerName, Optional.empty(), Optional.empty(), format, Optional.empty()); + this(Optional.empty(), azureBlobStorageAccountName, azureBlobStorageContainerName, + Optional.empty(), Optional.empty(), format, + Optional.empty()); } /** - * The Azure blob storage account key. If you set this value, you must not set the Shared Access Signature. + * The Azure blob storage account key. If you set this value, you must not set the Shared Access + * Signature. */ @JsonIgnore public Optional azureBlobStorageAccountKey() { @@ -110,7 +121,8 @@ public Optional azureBlobStorageAccountKey() { } /** - * The name of the Azure Blob Storage Account. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/blobs/storage-blobs-introduction#storage-accounts">here</a>. + * The name of the Azure Blob Storage Account. Read more here. */ @JsonIgnore public String azureBlobStorageAccountName() { @@ -118,7 +130,8 @@ public String azureBlobStorageAccountName() { } /** - * The name of the Azure Blob Storage Container. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/blobs/storage-blobs-introduction#containers">here</a>. + * The name of the Azure Blob Storage Container. Read more here. */ @JsonIgnore public String azureBlobStorageContainerName() { @@ -126,7 +139,8 @@ public String azureBlobStorageContainerName() { } /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ @JsonIgnore public Optional azureBlobStorageEndpointDomainName() { @@ -134,7 +148,8 @@ public Optional azureBlobStorageEndpointDomainName() { } /** - * The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable. + * The amount of megabytes after which the connector should spill the records in a new blob object. + * Make sure to configure size greater than individual records. Enter 0 if not applicable. */ @JsonIgnore public Optional azureBlobStorageSpillSize() { @@ -155,19 +170,24 @@ public OutputFormat format() { } /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/common/storage-sas-overview?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&bc=%2Fazure%2Fstorage%2Fblobs%2Fbreadcrumb%2Ftoc.json">here</a>. If you set this value, you must not set the account key. + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. Read more here. + * If you set this value, you must not set the account key. */ @JsonIgnore public Optional sharedAccessSignature() { return sharedAccessSignature; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Azure blob storage account key. If you set this value, you must not set the Shared Access Signature. + * The Azure blob storage account key. If you set this value, you must not set the Shared Access + * Signature. */ public DestinationAzureBlobStorage withAzureBlobStorageAccountKey(String azureBlobStorageAccountKey) { Utils.checkNotNull(azureBlobStorageAccountKey, "azureBlobStorageAccountKey"); @@ -175,8 +195,10 @@ public DestinationAzureBlobStorage withAzureBlobStorageAccountKey(String azureBl return this; } + /** - * The Azure blob storage account key. If you set this value, you must not set the Shared Access Signature. + * The Azure blob storage account key. If you set this value, you must not set the Shared Access + * Signature. */ public DestinationAzureBlobStorage withAzureBlobStorageAccountKey(Optional azureBlobStorageAccountKey) { Utils.checkNotNull(azureBlobStorageAccountKey, "azureBlobStorageAccountKey"); @@ -185,7 +207,8 @@ public DestinationAzureBlobStorage withAzureBlobStorageAccountKey(Optionalhere. */ public DestinationAzureBlobStorage withAzureBlobStorageAccountName(String azureBlobStorageAccountName) { Utils.checkNotNull(azureBlobStorageAccountName, "azureBlobStorageAccountName"); @@ -194,7 +217,8 @@ public DestinationAzureBlobStorage withAzureBlobStorageAccountName(String azureB } /** - * The name of the Azure Blob Storage Container. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/blobs/storage-blobs-introduction#containers">here</a>. + * The name of the Azure Blob Storage Container. Read more here. */ public DestinationAzureBlobStorage withAzureBlobStorageContainerName(String azureBlobStorageContainerName) { Utils.checkNotNull(azureBlobStorageContainerName, "azureBlobStorageContainerName"); @@ -203,7 +227,8 @@ public DestinationAzureBlobStorage withAzureBlobStorageContainerName(String azur } /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ public DestinationAzureBlobStorage withAzureBlobStorageEndpointDomainName(String azureBlobStorageEndpointDomainName) { Utils.checkNotNull(azureBlobStorageEndpointDomainName, "azureBlobStorageEndpointDomainName"); @@ -211,8 +236,10 @@ public DestinationAzureBlobStorage withAzureBlobStorageEndpointDomainName(String return this; } + /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ public DestinationAzureBlobStorage withAzureBlobStorageEndpointDomainName(Optional azureBlobStorageEndpointDomainName) { Utils.checkNotNull(azureBlobStorageEndpointDomainName, "azureBlobStorageEndpointDomainName"); @@ -221,7 +248,8 @@ public DestinationAzureBlobStorage withAzureBlobStorageEndpointDomainName(Option } /** - * The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable. + * The amount of megabytes after which the connector should spill the records in a new blob object. + * Make sure to configure size greater than individual records. Enter 0 if not applicable. */ public DestinationAzureBlobStorage withAzureBlobStorageSpillSize(long azureBlobStorageSpillSize) { Utils.checkNotNull(azureBlobStorageSpillSize, "azureBlobStorageSpillSize"); @@ -229,8 +257,10 @@ public DestinationAzureBlobStorage withAzureBlobStorageSpillSize(long azureBlobS return this; } + /** - * The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable. + * The amount of megabytes after which the connector should spill the records in a new blob object. + * Make sure to configure size greater than individual records. Enter 0 if not applicable. */ public DestinationAzureBlobStorage withAzureBlobStorageSpillSize(Optional azureBlobStorageSpillSize) { Utils.checkNotNull(azureBlobStorageSpillSize, "azureBlobStorageSpillSize"); @@ -248,7 +278,10 @@ public DestinationAzureBlobStorage withFormat(OutputFormat format) { } /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/common/storage-sas-overview?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&bc=%2Fazure%2Fstorage%2Fblobs%2Fbreadcrumb%2Ftoc.json">here</a>. If you set this value, you must not set the account key. + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. Read more here. + * If you set this value, you must not set the account key. */ public DestinationAzureBlobStorage withSharedAccessSignature(String sharedAccessSignature) { Utils.checkNotNull(sharedAccessSignature, "sharedAccessSignature"); @@ -256,8 +289,12 @@ public DestinationAzureBlobStorage withSharedAccessSignature(String sharedAccess return this; } + /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/common/storage-sas-overview?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&bc=%2Fazure%2Fstorage%2Fblobs%2Fbreadcrumb%2Ftoc.json">here</a>. If you set this value, you must not set the account key. + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. Read more here. + * If you set this value, you must not set the account key. */ public DestinationAzureBlobStorage withSharedAccessSignature(Optional sharedAccessSignature) { Utils.checkNotNull(sharedAccessSignature, "sharedAccessSignature"); @@ -265,7 +302,6 @@ public DestinationAzureBlobStorage withSharedAccessSignature(Optional sh return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -276,27 +312,22 @@ public boolean equals(java.lang.Object o) { } DestinationAzureBlobStorage other = (DestinationAzureBlobStorage) o; return - Objects.deepEquals(this.azureBlobStorageAccountKey, other.azureBlobStorageAccountKey) && - Objects.deepEquals(this.azureBlobStorageAccountName, other.azureBlobStorageAccountName) && - Objects.deepEquals(this.azureBlobStorageContainerName, other.azureBlobStorageContainerName) && - Objects.deepEquals(this.azureBlobStorageEndpointDomainName, other.azureBlobStorageEndpointDomainName) && - Objects.deepEquals(this.azureBlobStorageSpillSize, other.azureBlobStorageSpillSize) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.format, other.format) && - Objects.deepEquals(this.sharedAccessSignature, other.sharedAccessSignature); + Utils.enhancedDeepEquals(this.azureBlobStorageAccountKey, other.azureBlobStorageAccountKey) && + Utils.enhancedDeepEquals(this.azureBlobStorageAccountName, other.azureBlobStorageAccountName) && + Utils.enhancedDeepEquals(this.azureBlobStorageContainerName, other.azureBlobStorageContainerName) && + Utils.enhancedDeepEquals(this.azureBlobStorageEndpointDomainName, other.azureBlobStorageEndpointDomainName) && + Utils.enhancedDeepEquals(this.azureBlobStorageSpillSize, other.azureBlobStorageSpillSize) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.format, other.format) && + Utils.enhancedDeepEquals(this.sharedAccessSignature, other.sharedAccessSignature); } @Override public int hashCode() { - return Objects.hash( - azureBlobStorageAccountKey, - azureBlobStorageAccountName, - azureBlobStorageContainerName, - azureBlobStorageEndpointDomainName, - azureBlobStorageSpillSize, - destinationType, - format, - sharedAccessSignature); + return Utils.enhancedHash( + azureBlobStorageAccountKey, azureBlobStorageAccountName, azureBlobStorageContainerName, + azureBlobStorageEndpointDomainName, azureBlobStorageSpillSize, destinationType, + format, sharedAccessSignature); } @Override @@ -311,29 +342,32 @@ public String toString() { "format", format, "sharedAccessSignature", sharedAccessSignature); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional azureBlobStorageAccountKey = Optional.empty(); - + private String azureBlobStorageAccountName; - + private String azureBlobStorageContainerName; - + private Optional azureBlobStorageEndpointDomainName = Optional.empty(); - + private Optional azureBlobStorageSpillSize; - + private OutputFormat format; - + private Optional sharedAccessSignature = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The Azure blob storage account key. If you set this value, you must not set the Shared Access Signature. + * The Azure blob storage account key. If you set this value, you must not set the Shared Access + * Signature. */ public Builder azureBlobStorageAccountKey(String azureBlobStorageAccountKey) { Utils.checkNotNull(azureBlobStorageAccountKey, "azureBlobStorageAccountKey"); @@ -342,7 +376,8 @@ public Builder azureBlobStorageAccountKey(String azureBlobStorageAccountKey) { } /** - * The Azure blob storage account key. If you set this value, you must not set the Shared Access Signature. + * The Azure blob storage account key. If you set this value, you must not set the Shared Access + * Signature. */ public Builder azureBlobStorageAccountKey(Optional azureBlobStorageAccountKey) { Utils.checkNotNull(azureBlobStorageAccountKey, "azureBlobStorageAccountKey"); @@ -350,8 +385,10 @@ public Builder azureBlobStorageAccountKey(Optional azureBlobStorageAccou return this; } + /** - * The name of the Azure Blob Storage Account. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/blobs/storage-blobs-introduction#storage-accounts">here</a>. + * The name of the Azure Blob Storage Account. Read more here. */ public Builder azureBlobStorageAccountName(String azureBlobStorageAccountName) { Utils.checkNotNull(azureBlobStorageAccountName, "azureBlobStorageAccountName"); @@ -359,8 +396,10 @@ public Builder azureBlobStorageAccountName(String azureBlobStorageAccountName) { return this; } + /** - * The name of the Azure Blob Storage Container. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/blobs/storage-blobs-introduction#containers">here</a>. + * The name of the Azure Blob Storage Container. Read more here. */ public Builder azureBlobStorageContainerName(String azureBlobStorageContainerName) { Utils.checkNotNull(azureBlobStorageContainerName, "azureBlobStorageContainerName"); @@ -368,8 +407,10 @@ public Builder azureBlobStorageContainerName(String azureBlobStorageContainerNam return this; } + /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ public Builder azureBlobStorageEndpointDomainName(String azureBlobStorageEndpointDomainName) { Utils.checkNotNull(azureBlobStorageEndpointDomainName, "azureBlobStorageEndpointDomainName"); @@ -378,7 +419,8 @@ public Builder azureBlobStorageEndpointDomainName(String azureBlobStorageEndpoin } /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ public Builder azureBlobStorageEndpointDomainName(Optional azureBlobStorageEndpointDomainName) { Utils.checkNotNull(azureBlobStorageEndpointDomainName, "azureBlobStorageEndpointDomainName"); @@ -386,8 +428,10 @@ public Builder azureBlobStorageEndpointDomainName(Optional azureBlobStor return this; } + /** - * The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable. + * The amount of megabytes after which the connector should spill the records in a new blob object. + * Make sure to configure size greater than individual records. Enter 0 if not applicable. */ public Builder azureBlobStorageSpillSize(long azureBlobStorageSpillSize) { Utils.checkNotNull(azureBlobStorageSpillSize, "azureBlobStorageSpillSize"); @@ -396,7 +440,8 @@ public Builder azureBlobStorageSpillSize(long azureBlobStorageSpillSize) { } /** - * The amount of megabytes after which the connector should spill the records in a new blob object. Make sure to configure size greater than individual records. Enter 0 if not applicable. + * The amount of megabytes after which the connector should spill the records in a new blob object. + * Make sure to configure size greater than individual records. Enter 0 if not applicable. */ public Builder azureBlobStorageSpillSize(Optional azureBlobStorageSpillSize) { Utils.checkNotNull(azureBlobStorageSpillSize, "azureBlobStorageSpillSize"); @@ -404,6 +449,7 @@ public Builder azureBlobStorageSpillSize(Optional azureBlobStorageSpillSiz return this; } + /** * Format of the data output. */ @@ -413,8 +459,12 @@ public Builder format(OutputFormat format) { return this; } + /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/common/storage-sas-overview?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&bc=%2Fazure%2Fstorage%2Fblobs%2Fbreadcrumb%2Ftoc.json">here</a>. If you set this value, you must not set the account key. + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. Read more here. + * If you set this value, you must not set the account key. */ public Builder sharedAccessSignature(String sharedAccessSignature) { Utils.checkNotNull(sharedAccessSignature, "sharedAccessSignature"); @@ -423,28 +473,29 @@ public Builder sharedAccessSignature(String sharedAccessSignature) { } /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. Read more <a href="https://learn.microsoft.com/en-gb/azure/storage/common/storage-sas-overview?toc=%2Fazure%2Fstorage%2Fblobs%2Ftoc.json&bc=%2Fazure%2Fstorage%2Fblobs%2Fbreadcrumb%2Ftoc.json">here</a>. If you set this value, you must not set the account key. + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. Read more here. + * If you set this value, you must not set the account key. */ public Builder sharedAccessSignature(Optional sharedAccessSignature) { Utils.checkNotNull(sharedAccessSignature, "sharedAccessSignature"); this.sharedAccessSignature = sharedAccessSignature; return this; } - + public DestinationAzureBlobStorage build() { if (azureBlobStorageSpillSize == null) { azureBlobStorageSpillSize = _SINGLETON_VALUE_AzureBlobStorageSpillSize.value(); } + return new DestinationAzureBlobStorage( - azureBlobStorageAccountKey, - azureBlobStorageAccountName, - azureBlobStorageContainerName, - azureBlobStorageEndpointDomainName, - azureBlobStorageSpillSize, - format, + azureBlobStorageAccountKey, azureBlobStorageAccountName, azureBlobStorageContainerName, + azureBlobStorageEndpointDomainName, azureBlobStorageSpillSize, format, sharedAccessSignature); } + private static final LazySingletonValue> _SINGLETON_VALUE_AzureBlobStorageSpillSize = new LazySingletonValue<>( "azure_blob_storage_spill_size", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java index 20df4cd2b..d327c9622 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageAzureBlobStorage.java @@ -14,7 +14,7 @@ public enum DestinationAzureBlobStorageAzureBlobStorage { @JsonValue private final String value; - private DestinationAzureBlobStorageAzureBlobStorage(String value) { + DestinationAzureBlobStorageAzureBlobStorage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFlattening.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFlattening.java index 27f905849..1dfc8711d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFlattening.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFlattening.java @@ -15,7 +15,7 @@ public enum DestinationAzureBlobStorageFlattening { @JsonValue private final String value; - private DestinationAzureBlobStorageFlattening(String value) { + DestinationAzureBlobStorageFlattening(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFormatType.java index c8b62f742..51955f999 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageFormatType.java @@ -14,7 +14,7 @@ public enum DestinationAzureBlobStorageFormatType { @JsonValue private final String value; - private DestinationAzureBlobStorageFormatType(String value) { + DestinationAzureBlobStorageFormatType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java index c540bbf8b..474c8f1d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON.java @@ -19,18 +19,20 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("flattening") private Optional flattening; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; @@ -67,9 +69,10 @@ public Optional formatType() { return (Optional) formatType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON withAdditionalProperty(String key, Object value) { @@ -77,8 +80,7 @@ public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON withAdditionalPr Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -91,6 +93,7 @@ public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON withFlattening(D return this; } + public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON withFlattening(Optional flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = flattening; @@ -103,13 +106,13 @@ public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON withFormatType(D return this; } + public DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,17 +123,15 @@ public boolean equals(java.lang.Object o) { } DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON other = (DestinationAzureBlobStorageJSONLinesNewlineDelimitedJSON) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.flattening, other.flattening) && - Objects.deepEquals(this.formatType, other.formatType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.flattening, other.flattening) && + Utils.enhancedDeepEquals(this.formatType, other.formatType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - flattening, - formatType); + return Utils.enhancedHash( + additionalProperties, flattening, formatType); } @Override @@ -140,15 +141,16 @@ public String toString() { "flattening", flattening, "formatType", formatType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional flattening; - + private Optional formatType; - + private Builder() { // force use of static builder() method } @@ -169,6 +171,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder flattening(DestinationAzureBlobStorageFlattening flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = Optional.ofNullable(flattening); @@ -181,6 +184,7 @@ public Builder flattening(Optional> _SINGLETON_VALUE_Flattening = new LazySingletonValue<>( "flattening", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationBigquery.java b/src/main/java/com/airbyte/api/models/shared/DestinationBigquery.java index 2e06089c4..f38847839 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigquery.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigquery.java @@ -12,46 +12,54 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Boolean; -import java.lang.Long; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationBigquery { +public class DestinationBigquery { /** - * Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more <a href="https://googleapis.dev/python/bigquery/latest/generated/google.cloud.bigquery.client.Client.html">here</a>. + * Whether to execute CDC deletions as hard deletes (i.e. propagate source deletions to the + * destination), or soft deletes (i.e. leave a tombstone record in the destination). + * + *

Defaults to hard deletes. */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("big_query_client_buffer_size_mb") - private Optional bigQueryClientBufferSizeMb; + @JsonProperty("cdc_deletion_mode") + private Optional cdcDeletionMode; /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/bigquery#service-account-key">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if + * you need help generating this key. Default credentials will be used if this field is left empty. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials_json") private Optional credentialsJson; /** - * The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more <a href="https://cloud.google.com/bigquery/docs/datasets#create-dataset">here</a>. + * The default BigQuery Dataset ID that tables are replicated to if the source does not specify a + * namespace. Read more here. */ @JsonProperty("dataset_id") private String datasetId; /** - * The location of the dataset. Warning: Changes made after creation will not be applied. Read more <a href="https://cloud.google.com/bigquery/docs/locations">here</a>. + * The location of the dataset. Warning: Changes made after creation will not be applied. Read more here. */ @JsonProperty("dataset_location") private DatasetLocation datasetLocation; + @JsonProperty("destinationType") private Bigquery destinationType; /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Write the legacy "raw tables" format, to enable backwards compatibility with older versions of this + * connector. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disable_type_dedupe") @@ -65,37 +73,31 @@ public class DestinationBigquery { private Optional loadingMethod; /** - * The GCP project ID for the project containing the target BigQuery dataset. Read more <a href="https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects">here</a>. + * The GCP project ID for the project containing the target BigQuery dataset. Read more here. */ @JsonProperty("project_id") private String projectId; /** - * The dataset to write raw tables into (default: airbyte_internal) + * Airbyte will use this dataset for various internal tables. In legacy raw tables mode, the raw tables + * will be stored in this dataset. Defaults to "airbyte_internal". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("raw_data_dataset") private Optional rawDataDataset; - /** - * Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type <a href="https://cloud.google.com/bigquery/docs/running-queries#queries">here</a>. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries <a href="https://cloud.google.com/bigquery/docs/running-queries#batch">here</a>. The default "interactive" value is used if not set explicitly. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transformation_priority") - private Optional transformationPriority; - @JsonCreator public DestinationBigquery( - @JsonProperty("big_query_client_buffer_size_mb") Optional bigQueryClientBufferSizeMb, + @JsonProperty("cdc_deletion_mode") Optional cdcDeletionMode, @JsonProperty("credentials_json") Optional credentialsJson, @JsonProperty("dataset_id") String datasetId, @JsonProperty("dataset_location") DatasetLocation datasetLocation, @JsonProperty("disable_type_dedupe") Optional disableTypeDedupe, @JsonProperty("loading_method") Optional loadingMethod, @JsonProperty("project_id") String projectId, - @JsonProperty("raw_data_dataset") Optional rawDataDataset, - @JsonProperty("transformation_priority") Optional transformationPriority) { - Utils.checkNotNull(bigQueryClientBufferSizeMb, "bigQueryClientBufferSizeMb"); + @JsonProperty("raw_data_dataset") Optional rawDataDataset) { + Utils.checkNotNull(cdcDeletionMode, "cdcDeletionMode"); Utils.checkNotNull(credentialsJson, "credentialsJson"); Utils.checkNotNull(datasetId, "datasetId"); Utils.checkNotNull(datasetLocation, "datasetLocation"); @@ -103,8 +105,7 @@ public DestinationBigquery( Utils.checkNotNull(loadingMethod, "loadingMethod"); Utils.checkNotNull(projectId, "projectId"); Utils.checkNotNull(rawDataDataset, "rawDataDataset"); - Utils.checkNotNull(transformationPriority, "transformationPriority"); - this.bigQueryClientBufferSizeMb = bigQueryClientBufferSizeMb; + this.cdcDeletionMode = cdcDeletionMode; this.credentialsJson = credentialsJson; this.datasetId = datasetId; this.datasetLocation = datasetLocation; @@ -113,26 +114,33 @@ public DestinationBigquery( this.loadingMethod = loadingMethod; this.projectId = projectId; this.rawDataDataset = rawDataDataset; - this.transformationPriority = transformationPriority; } public DestinationBigquery( String datasetId, DatasetLocation datasetLocation, String projectId) { - this(Optional.empty(), Optional.empty(), datasetId, datasetLocation, Optional.empty(), Optional.empty(), projectId, Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), datasetId, + datasetLocation, Optional.empty(), Optional.empty(), + projectId, Optional.empty()); } /** - * Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more <a href="https://googleapis.dev/python/bigquery/latest/generated/google.cloud.bigquery.client.Client.html">here</a>. + * Whether to execute CDC deletions as hard deletes (i.e. propagate source deletions to the + * destination), or soft deletes (i.e. leave a tombstone record in the destination). + * + *

Defaults to hard deletes. */ + @SuppressWarnings("unchecked") @JsonIgnore - public Optional bigQueryClientBufferSizeMb() { - return bigQueryClientBufferSizeMb; + public Optional cdcDeletionMode() { + return (Optional) cdcDeletionMode; } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/bigquery#service-account-key">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if + * you need help generating this key. Default credentials will be used if this field is left empty. */ @JsonIgnore public Optional credentialsJson() { @@ -140,7 +148,9 @@ public Optional credentialsJson() { } /** - * The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more <a href="https://cloud.google.com/bigquery/docs/datasets#create-dataset">here</a>. + * The default BigQuery Dataset ID that tables are replicated to if the source does not specify a + * namespace. Read more here. */ @JsonIgnore public String datasetId() { @@ -148,7 +158,8 @@ public String datasetId() { } /** - * The location of the dataset. Warning: Changes made after creation will not be applied. Read more <a href="https://cloud.google.com/bigquery/docs/locations">here</a>. + * The location of the dataset. Warning: Changes made after creation will not be applied. Read more here. */ @JsonIgnore public DatasetLocation datasetLocation() { @@ -161,7 +172,8 @@ public Bigquery destinationType() { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Write the legacy "raw tables" format, to enable backwards compatibility with older versions of this + * connector. */ @JsonIgnore public Optional disableTypeDedupe() { @@ -178,7 +190,8 @@ public Optional loadingMethod() { } /** - * The GCP project ID for the project containing the target BigQuery dataset. Read more <a href="https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects">here</a>. + * The GCP project ID for the project containing the target BigQuery dataset. Read more here. */ @JsonIgnore public String projectId() { @@ -186,46 +199,48 @@ public String projectId() { } /** - * The dataset to write raw tables into (default: airbyte_internal) + * Airbyte will use this dataset for various internal tables. In legacy raw tables mode, the raw tables + * will be stored in this dataset. Defaults to "airbyte_internal". */ @JsonIgnore public Optional rawDataDataset() { return rawDataDataset; } - /** - * Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type <a href="https://cloud.google.com/bigquery/docs/running-queries#queries">here</a>. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries <a href="https://cloud.google.com/bigquery/docs/running-queries#batch">here</a>. The default "interactive" value is used if not set explicitly. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional transformationPriority() { - return (Optional) transformationPriority; + public static Builder builder() { + return new Builder(); } - public final static Builder builder() { - return new Builder(); - } /** - * Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more <a href="https://googleapis.dev/python/bigquery/latest/generated/google.cloud.bigquery.client.Client.html">here</a>. + * Whether to execute CDC deletions as hard deletes (i.e. propagate source deletions to the + * destination), or soft deletes (i.e. leave a tombstone record in the destination). + * + *

Defaults to hard deletes. */ - public DestinationBigquery withBigQueryClientBufferSizeMb(long bigQueryClientBufferSizeMb) { - Utils.checkNotNull(bigQueryClientBufferSizeMb, "bigQueryClientBufferSizeMb"); - this.bigQueryClientBufferSizeMb = Optional.ofNullable(bigQueryClientBufferSizeMb); + public DestinationBigquery withCdcDeletionMode(CDCDeletionMode cdcDeletionMode) { + Utils.checkNotNull(cdcDeletionMode, "cdcDeletionMode"); + this.cdcDeletionMode = Optional.ofNullable(cdcDeletionMode); return this; } + /** - * Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more <a href="https://googleapis.dev/python/bigquery/latest/generated/google.cloud.bigquery.client.Client.html">here</a>. + * Whether to execute CDC deletions as hard deletes (i.e. propagate source deletions to the + * destination), or soft deletes (i.e. leave a tombstone record in the destination). + * + *

Defaults to hard deletes. */ - public DestinationBigquery withBigQueryClientBufferSizeMb(Optional bigQueryClientBufferSizeMb) { - Utils.checkNotNull(bigQueryClientBufferSizeMb, "bigQueryClientBufferSizeMb"); - this.bigQueryClientBufferSizeMb = bigQueryClientBufferSizeMb; + public DestinationBigquery withCdcDeletionMode(Optional cdcDeletionMode) { + Utils.checkNotNull(cdcDeletionMode, "cdcDeletionMode"); + this.cdcDeletionMode = cdcDeletionMode; return this; } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/bigquery#service-account-key">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if + * you need help generating this key. Default credentials will be used if this field is left empty. */ public DestinationBigquery withCredentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -233,8 +248,11 @@ public DestinationBigquery withCredentialsJson(String credentialsJson) { return this; } + /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/bigquery#service-account-key">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if + * you need help generating this key. Default credentials will be used if this field is left empty. */ public DestinationBigquery withCredentialsJson(Optional credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -243,7 +261,9 @@ public DestinationBigquery withCredentialsJson(Optional credentialsJson) } /** - * The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more <a href="https://cloud.google.com/bigquery/docs/datasets#create-dataset">here</a>. + * The default BigQuery Dataset ID that tables are replicated to if the source does not specify a + * namespace. Read more here. */ public DestinationBigquery withDatasetId(String datasetId) { Utils.checkNotNull(datasetId, "datasetId"); @@ -252,7 +272,8 @@ public DestinationBigquery withDatasetId(String datasetId) { } /** - * The location of the dataset. Warning: Changes made after creation will not be applied. Read more <a href="https://cloud.google.com/bigquery/docs/locations">here</a>. + * The location of the dataset. Warning: Changes made after creation will not be applied. Read more here. */ public DestinationBigquery withDatasetLocation(DatasetLocation datasetLocation) { Utils.checkNotNull(datasetLocation, "datasetLocation"); @@ -261,7 +282,8 @@ public DestinationBigquery withDatasetLocation(DatasetLocation datasetLocation) } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Write the legacy "raw tables" format, to enable backwards compatibility with older versions of this + * connector. */ public DestinationBigquery withDisableTypeDedupe(boolean disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -269,8 +291,10 @@ public DestinationBigquery withDisableTypeDedupe(boolean disableTypeDedupe) { return this; } + /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Write the legacy "raw tables" format, to enable backwards compatibility with older versions of this + * connector. */ public DestinationBigquery withDisableTypeDedupe(Optional disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -287,6 +311,7 @@ public DestinationBigquery withLoadingMethod(LoadingMethod loadingMethod) { return this; } + /** * The way data will be uploaded to BigQuery. */ @@ -297,7 +322,8 @@ public DestinationBigquery withLoadingMethod(Optional l } /** - * The GCP project ID for the project containing the target BigQuery dataset. Read more <a href="https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects">here</a>. + * The GCP project ID for the project containing the target BigQuery dataset. Read more here. */ public DestinationBigquery withProjectId(String projectId) { Utils.checkNotNull(projectId, "projectId"); @@ -306,7 +332,8 @@ public DestinationBigquery withProjectId(String projectId) { } /** - * The dataset to write raw tables into (default: airbyte_internal) + * Airbyte will use this dataset for various internal tables. In legacy raw tables mode, the raw tables + * will be stored in this dataset. Defaults to "airbyte_internal". */ public DestinationBigquery withRawDataDataset(String rawDataDataset) { Utils.checkNotNull(rawDataDataset, "rawDataDataset"); @@ -314,8 +341,10 @@ public DestinationBigquery withRawDataDataset(String rawDataDataset) { return this; } + /** - * The dataset to write raw tables into (default: airbyte_internal) + * Airbyte will use this dataset for various internal tables. In legacy raw tables mode, the raw tables + * will be stored in this dataset. Defaults to "airbyte_internal". */ public DestinationBigquery withRawDataDataset(Optional rawDataDataset) { Utils.checkNotNull(rawDataDataset, "rawDataDataset"); @@ -323,25 +352,6 @@ public DestinationBigquery withRawDataDataset(Optional rawDataDataset) { return this; } - /** - * Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type <a href="https://cloud.google.com/bigquery/docs/running-queries#queries">here</a>. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries <a href="https://cloud.google.com/bigquery/docs/running-queries#batch">here</a>. The default "interactive" value is used if not set explicitly. - */ - public DestinationBigquery withTransformationPriority(TransformationQueryRunType transformationPriority) { - Utils.checkNotNull(transformationPriority, "transformationPriority"); - this.transformationPriority = Optional.ofNullable(transformationPriority); - return this; - } - - /** - * Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type <a href="https://cloud.google.com/bigquery/docs/running-queries#queries">here</a>. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries <a href="https://cloud.google.com/bigquery/docs/running-queries#batch">here</a>. The default "interactive" value is used if not set explicitly. - */ - public DestinationBigquery withTransformationPriority(Optional transformationPriority) { - Utils.checkNotNull(transformationPriority, "transformationPriority"); - this.transformationPriority = transformationPriority; - return this; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -352,37 +362,29 @@ public boolean equals(java.lang.Object o) { } DestinationBigquery other = (DestinationBigquery) o; return - Objects.deepEquals(this.bigQueryClientBufferSizeMb, other.bigQueryClientBufferSizeMb) && - Objects.deepEquals(this.credentialsJson, other.credentialsJson) && - Objects.deepEquals(this.datasetId, other.datasetId) && - Objects.deepEquals(this.datasetLocation, other.datasetLocation) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.disableTypeDedupe, other.disableTypeDedupe) && - Objects.deepEquals(this.loadingMethod, other.loadingMethod) && - Objects.deepEquals(this.projectId, other.projectId) && - Objects.deepEquals(this.rawDataDataset, other.rawDataDataset) && - Objects.deepEquals(this.transformationPriority, other.transformationPriority); + Utils.enhancedDeepEquals(this.cdcDeletionMode, other.cdcDeletionMode) && + Utils.enhancedDeepEquals(this.credentialsJson, other.credentialsJson) && + Utils.enhancedDeepEquals(this.datasetId, other.datasetId) && + Utils.enhancedDeepEquals(this.datasetLocation, other.datasetLocation) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.disableTypeDedupe, other.disableTypeDedupe) && + Utils.enhancedDeepEquals(this.loadingMethod, other.loadingMethod) && + Utils.enhancedDeepEquals(this.projectId, other.projectId) && + Utils.enhancedDeepEquals(this.rawDataDataset, other.rawDataDataset); } @Override public int hashCode() { - return Objects.hash( - bigQueryClientBufferSizeMb, - credentialsJson, - datasetId, - datasetLocation, - destinationType, - disableTypeDedupe, - loadingMethod, - projectId, - rawDataDataset, - transformationPriority); + return Utils.enhancedHash( + cdcDeletionMode, credentialsJson, datasetId, + datasetLocation, destinationType, disableTypeDedupe, + loadingMethod, projectId, rawDataDataset); } @Override public String toString() { return Utils.toString(DestinationBigquery.class, - "bigQueryClientBufferSizeMb", bigQueryClientBufferSizeMb, + "cdcDeletionMode", cdcDeletionMode, "credentialsJson", credentialsJson, "datasetId", datasetId, "datasetLocation", datasetLocation, @@ -390,54 +392,62 @@ public String toString() { "disableTypeDedupe", disableTypeDedupe, "loadingMethod", loadingMethod, "projectId", projectId, - "rawDataDataset", rawDataDataset, - "transformationPriority", transformationPriority); + "rawDataDataset", rawDataDataset); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - - private Optional bigQueryClientBufferSizeMb; - + + private Optional cdcDeletionMode; + private Optional credentialsJson = Optional.empty(); - + private String datasetId; - + private DatasetLocation datasetLocation; - + private Optional disableTypeDedupe; - + private Optional loadingMethod = Optional.empty(); - + private String projectId; - + private Optional rawDataDataset = Optional.empty(); - - private Optional transformationPriority; - + private Builder() { // force use of static builder() method } + /** - * Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more <a href="https://googleapis.dev/python/bigquery/latest/generated/google.cloud.bigquery.client.Client.html">here</a>. + * Whether to execute CDC deletions as hard deletes (i.e. propagate source deletions to the + * destination), or soft deletes (i.e. leave a tombstone record in the destination). + * + *

Defaults to hard deletes. */ - public Builder bigQueryClientBufferSizeMb(long bigQueryClientBufferSizeMb) { - Utils.checkNotNull(bigQueryClientBufferSizeMb, "bigQueryClientBufferSizeMb"); - this.bigQueryClientBufferSizeMb = Optional.ofNullable(bigQueryClientBufferSizeMb); + public Builder cdcDeletionMode(CDCDeletionMode cdcDeletionMode) { + Utils.checkNotNull(cdcDeletionMode, "cdcDeletionMode"); + this.cdcDeletionMode = Optional.ofNullable(cdcDeletionMode); return this; } /** - * Google BigQuery client's chunk (buffer) size (MIN=1, MAX = 15) for each table. The size that will be written by a single RPC. Written data will be buffered and only flushed upon reaching this size or closing the channel. The default 15MB value is used if not set explicitly. Read more <a href="https://googleapis.dev/python/bigquery/latest/generated/google.cloud.bigquery.client.Client.html">here</a>. + * Whether to execute CDC deletions as hard deletes (i.e. propagate source deletions to the + * destination), or soft deletes (i.e. leave a tombstone record in the destination). + * + *

Defaults to hard deletes. */ - public Builder bigQueryClientBufferSizeMb(Optional bigQueryClientBufferSizeMb) { - Utils.checkNotNull(bigQueryClientBufferSizeMb, "bigQueryClientBufferSizeMb"); - this.bigQueryClientBufferSizeMb = bigQueryClientBufferSizeMb; + public Builder cdcDeletionMode(Optional cdcDeletionMode) { + Utils.checkNotNull(cdcDeletionMode, "cdcDeletionMode"); + this.cdcDeletionMode = cdcDeletionMode; return this; } + /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/bigquery#service-account-key">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if + * you need help generating this key. Default credentials will be used if this field is left empty. */ public Builder credentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -446,7 +456,9 @@ public Builder credentialsJson(String credentialsJson) { } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/bigquery#service-account-key">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if + * you need help generating this key. Default credentials will be used if this field is left empty. */ public Builder credentialsJson(Optional credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -454,8 +466,11 @@ public Builder credentialsJson(Optional credentialsJson) { return this; } + /** - * The default BigQuery Dataset ID that tables are replicated to if the source does not specify a namespace. Read more <a href="https://cloud.google.com/bigquery/docs/datasets#create-dataset">here</a>. + * The default BigQuery Dataset ID that tables are replicated to if the source does not specify a + * namespace. Read more here. */ public Builder datasetId(String datasetId) { Utils.checkNotNull(datasetId, "datasetId"); @@ -463,8 +478,10 @@ public Builder datasetId(String datasetId) { return this; } + /** - * The location of the dataset. Warning: Changes made after creation will not be applied. Read more <a href="https://cloud.google.com/bigquery/docs/locations">here</a>. + * The location of the dataset. Warning: Changes made after creation will not be applied. Read more here. */ public Builder datasetLocation(DatasetLocation datasetLocation) { Utils.checkNotNull(datasetLocation, "datasetLocation"); @@ -472,8 +489,10 @@ public Builder datasetLocation(DatasetLocation datasetLocation) { return this; } + /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Write the legacy "raw tables" format, to enable backwards compatibility with older versions of this + * connector. */ public Builder disableTypeDedupe(boolean disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -482,7 +501,8 @@ public Builder disableTypeDedupe(boolean disableTypeDedupe) { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Write the legacy "raw tables" format, to enable backwards compatibility with older versions of this + * connector. */ public Builder disableTypeDedupe(Optional disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -490,6 +510,7 @@ public Builder disableTypeDedupe(Optional disableTypeDedupe) { return this; } + /** * The way data will be uploaded to BigQuery. */ @@ -508,8 +529,10 @@ public Builder loadingMethod(Optional loadingMethod) { return this; } + /** - * The GCP project ID for the project containing the target BigQuery dataset. Read more <a href="https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects">here</a>. + * The GCP project ID for the project containing the target BigQuery dataset. Read more here. */ public Builder projectId(String projectId) { Utils.checkNotNull(projectId, "projectId"); @@ -517,8 +540,10 @@ public Builder projectId(String projectId) { return this; } + /** - * The dataset to write raw tables into (default: airbyte_internal) + * Airbyte will use this dataset for various internal tables. In legacy raw tables mode, the raw tables + * will be stored in this dataset. Defaults to "airbyte_internal". */ public Builder rawDataDataset(String rawDataDataset) { Utils.checkNotNull(rawDataDataset, "rawDataDataset"); @@ -527,7 +552,8 @@ public Builder rawDataDataset(String rawDataDataset) { } /** - * The dataset to write raw tables into (default: airbyte_internal) + * Airbyte will use this dataset for various internal tables. In legacy raw tables mode, the raw tables + * will be stored in this dataset. Defaults to "airbyte_internal". */ public Builder rawDataDataset(Optional rawDataDataset) { Utils.checkNotNull(rawDataDataset, "rawDataDataset"); @@ -535,51 +561,26 @@ public Builder rawDataDataset(Optional rawDataDataset) { return this; } - /** - * Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type <a href="https://cloud.google.com/bigquery/docs/running-queries#queries">here</a>. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries <a href="https://cloud.google.com/bigquery/docs/running-queries#batch">here</a>. The default "interactive" value is used if not set explicitly. - */ - public Builder transformationPriority(TransformationQueryRunType transformationPriority) { - Utils.checkNotNull(transformationPriority, "transformationPriority"); - this.transformationPriority = Optional.ofNullable(transformationPriority); - return this; - } - - /** - * Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type <a href="https://cloud.google.com/bigquery/docs/running-queries#queries">here</a>. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries <a href="https://cloud.google.com/bigquery/docs/running-queries#batch">here</a>. The default "interactive" value is used if not set explicitly. - */ - public Builder transformationPriority(Optional transformationPriority) { - Utils.checkNotNull(transformationPriority, "transformationPriority"); - this.transformationPriority = transformationPriority; - return this; - } - public DestinationBigquery build() { - if (bigQueryClientBufferSizeMb == null) { - bigQueryClientBufferSizeMb = _SINGLETON_VALUE_BigQueryClientBufferSizeMb.value(); + if (cdcDeletionMode == null) { + cdcDeletionMode = _SINGLETON_VALUE_CdcDeletionMode.value(); } if (disableTypeDedupe == null) { disableTypeDedupe = _SINGLETON_VALUE_DisableTypeDedupe.value(); } - if (transformationPriority == null) { - transformationPriority = _SINGLETON_VALUE_TransformationPriority.value(); - } + return new DestinationBigquery( - bigQueryClientBufferSizeMb, - credentialsJson, - datasetId, - datasetLocation, - disableTypeDedupe, - loadingMethod, - projectId, - rawDataDataset, - transformationPriority); + cdcDeletionMode, credentialsJson, datasetId, + datasetLocation, disableTypeDedupe, loadingMethod, + projectId, rawDataDataset); } - private static final LazySingletonValue> _SINGLETON_VALUE_BigQueryClientBufferSizeMb = + + private static final LazySingletonValue> _SINGLETON_VALUE_CdcDeletionMode = new LazySingletonValue<>( - "big_query_client_buffer_size_mb", - "15", - new TypeReference>() {}); + "cdc_deletion_mode", + "\"Hard delete\"", + new TypeReference>() {}); private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( @@ -592,11 +593,5 @@ public DestinationBigquery build() { "disable_type_dedupe", "false", new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_TransformationPriority = - new LazySingletonValue<>( - "transformation_priority", - "\"interactive\"", - new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java index fd21aa01b..4b3017a2e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryCredentialType.java @@ -14,7 +14,7 @@ public enum DestinationBigqueryCredentialType { @JsonValue private final String value; - private DestinationBigqueryCredentialType(String value) { + DestinationBigqueryCredentialType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryHMACKey.java b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryHMACKey.java index d3dfa1cc4..d2f8d5ecb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryHMACKey.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryHMACKey.java @@ -5,21 +5,36 @@ import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + public class DestinationBigqueryHMACKey { + @JsonIgnore + private Map additionalProperties; + + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("credential_type") - private DestinationBigqueryCredentialType credentialType; + private Optional credentialType; /** - * HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. + * HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to + * a user account, it is 24 characters long. */ @JsonProperty("hmac_key_access_id") private String hmacKeyAccessId; @@ -32,22 +47,38 @@ public class DestinationBigqueryHMACKey { @JsonCreator public DestinationBigqueryHMACKey( + @JsonProperty("credential_type") Optional credentialType, @JsonProperty("hmac_key_access_id") String hmacKeyAccessId, @JsonProperty("hmac_key_secret") String hmacKeySecret) { + Utils.checkNotNull(credentialType, "credentialType"); Utils.checkNotNull(hmacKeyAccessId, "hmacKeyAccessId"); Utils.checkNotNull(hmacKeySecret, "hmacKeySecret"); - this.credentialType = Builder._SINGLETON_VALUE_CredentialType.value(); + this.additionalProperties = new HashMap<>(); + this.credentialType = credentialType; this.hmacKeyAccessId = hmacKeyAccessId; this.hmacKeySecret = hmacKeySecret; } + + public DestinationBigqueryHMACKey( + String hmacKeyAccessId, + String hmacKeySecret) { + this(Optional.empty(), hmacKeyAccessId, hmacKeySecret); + } + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") @JsonIgnore - public DestinationBigqueryCredentialType credentialType() { - return credentialType; + public Optional credentialType() { + return (Optional) credentialType; } /** - * HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. + * HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to + * a user account, it is 24 characters long. */ @JsonIgnore public String hmacKeyAccessId() { @@ -62,12 +93,40 @@ public String hmacKeySecret() { return hmacKeySecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + @JsonAnySetter + public DestinationBigqueryHMACKey withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public DestinationBigqueryHMACKey withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public DestinationBigqueryHMACKey withCredentialType(DestinationBigqueryCredentialType credentialType) { + Utils.checkNotNull(credentialType, "credentialType"); + this.credentialType = Optional.ofNullable(credentialType); + return this; + } + + + public DestinationBigqueryHMACKey withCredentialType(Optional credentialType) { + Utils.checkNotNull(credentialType, "credentialType"); + this.credentialType = credentialType; + return this; + } /** - * HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. + * HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to + * a user account, it is 24 characters long. */ public DestinationBigqueryHMACKey withHmacKeyAccessId(String hmacKeyAccessId) { Utils.checkNotNull(hmacKeyAccessId, "hmacKeyAccessId"); @@ -84,7 +143,6 @@ public DestinationBigqueryHMACKey withHmacKeySecret(String hmacKeySecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,39 +153,76 @@ public boolean equals(java.lang.Object o) { } DestinationBigqueryHMACKey other = (DestinationBigqueryHMACKey) o; return - Objects.deepEquals(this.credentialType, other.credentialType) && - Objects.deepEquals(this.hmacKeyAccessId, other.hmacKeyAccessId) && - Objects.deepEquals(this.hmacKeySecret, other.hmacKeySecret); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.credentialType, other.credentialType) && + Utils.enhancedDeepEquals(this.hmacKeyAccessId, other.hmacKeyAccessId) && + Utils.enhancedDeepEquals(this.hmacKeySecret, other.hmacKeySecret); } @Override public int hashCode() { - return Objects.hash( - credentialType, - hmacKeyAccessId, + return Utils.enhancedHash( + additionalProperties, credentialType, hmacKeyAccessId, hmacKeySecret); } @Override public String toString() { return Utils.toString(DestinationBigqueryHMACKey.class, + "additionalProperties", additionalProperties, "credentialType", credentialType, "hmacKeyAccessId", hmacKeyAccessId, "hmacKeySecret", hmacKeySecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Map additionalProperties = new HashMap<>(); + + private Optional credentialType; + private String hmacKeyAccessId; - + private String hmacKeySecret; - + private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder credentialType(DestinationBigqueryCredentialType credentialType) { + Utils.checkNotNull(credentialType, "credentialType"); + this.credentialType = Optional.ofNullable(credentialType); + return this; + } + + public Builder credentialType(Optional credentialType) { + Utils.checkNotNull(credentialType, "credentialType"); + this.credentialType = credentialType; + return this; + } + + /** - * HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. + * HMAC key access ID. When linked to a service account, this ID is 61 characters long; when linked to + * a user account, it is 24 characters long. */ public Builder hmacKeyAccessId(String hmacKeyAccessId) { Utils.checkNotNull(hmacKeyAccessId, "hmacKeyAccessId"); @@ -135,6 +230,7 @@ public Builder hmacKeyAccessId(String hmacKeyAccessId) { return this; } + /** * The corresponding secret for the access ID. It is a 40-character base-64 encoded string. */ @@ -143,17 +239,22 @@ public Builder hmacKeySecret(String hmacKeySecret) { this.hmacKeySecret = hmacKeySecret; return this; } - + public DestinationBigqueryHMACKey build() { + if (credentialType == null) { + credentialType = _SINGLETON_VALUE_CredentialType.value(); + } + return new DestinationBigqueryHMACKey( - hmacKeyAccessId, - hmacKeySecret); + credentialType, hmacKeyAccessId, hmacKeySecret) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue _SINGLETON_VALUE_CredentialType = + + private static final LazySingletonValue> _SINGLETON_VALUE_CredentialType = new LazySingletonValue<>( "credential_type", "\"HMAC_KEY\"", - new TypeReference() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java index c178c453f..2aa41c3b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationBigqueryMethod.java @@ -14,7 +14,7 @@ public enum DestinationBigqueryMethod { @JsonValue private final String value; - private DestinationBigqueryMethod(String value) { + DestinationBigqueryMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouse.java b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouse.java index 1691b2dde..92ca6f392 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouse.java @@ -16,63 +16,65 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationClickhouse { +public class DestinationClickhouse { /** * Name of the database. */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("database") - private String database; + private Optional database; + @JsonProperty("destinationType") private Clickhouse destinationType; /** - * Hostname of the database. + * Use the JSON type for Object fields. If disabled, the JSON will be converted to a string. */ - @JsonProperty("host") - private String host; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("enable_json") + private Optional enableJson; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Hostname of the database. */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("jdbc_url_params") - private Optional jdbcUrlParams; + @JsonProperty("host") + private String host; /** * Password associated with the username. */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") - private Optional password; + private String password; /** - * HTTP port of the database. + * HTTP port of the database. Default(s) HTTP: 8123 — HTTPS: 8443 */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") - private Optional port; + private Optional port; /** - * The schema to write raw tables into (default: airbyte_internal) + * Protocol for the database connection string. */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("raw_data_schema") - private Optional rawDataSchema; + @JsonProperty("protocol") + private Optional protocol; /** - * Encrypt data using SSL. + * Warning: Tuning this parameter can impact the performances. The maximum number of records that + * should be written to a batch. The batch size limit is still limited to 70 Mb */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ssl") - private Optional ssl; + @JsonProperty("record_window_size") + private Optional recordWindowSize; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -81,53 +83,55 @@ public class DestinationClickhouse { /** * Username to use to access the database. */ + @JsonInclude(Include.NON_ABSENT) @JsonProperty("username") - private String username; + private Optional username; @JsonCreator public DestinationClickhouse( - @JsonProperty("database") String database, + @JsonProperty("database") Optional database, + @JsonProperty("enable_json") Optional enableJson, @JsonProperty("host") String host, - @JsonProperty("jdbc_url_params") Optional jdbcUrlParams, - @JsonProperty("password") Optional password, - @JsonProperty("port") Optional port, - @JsonProperty("raw_data_schema") Optional rawDataSchema, - @JsonProperty("ssl") Optional ssl, + @JsonProperty("password") String password, + @JsonProperty("port") Optional port, + @JsonProperty("protocol") Optional protocol, + @JsonProperty("record_window_size") Optional recordWindowSize, @JsonProperty("tunnel_method") Optional tunnelMethod, - @JsonProperty("username") String username) { + @JsonProperty("username") Optional username) { Utils.checkNotNull(database, "database"); + Utils.checkNotNull(enableJson, "enableJson"); Utils.checkNotNull(host, "host"); - Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); Utils.checkNotNull(password, "password"); Utils.checkNotNull(port, "port"); - Utils.checkNotNull(rawDataSchema, "rawDataSchema"); - Utils.checkNotNull(ssl, "ssl"); + Utils.checkNotNull(protocol, "protocol"); + Utils.checkNotNull(recordWindowSize, "recordWindowSize"); Utils.checkNotNull(tunnelMethod, "tunnelMethod"); Utils.checkNotNull(username, "username"); this.database = database; this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.enableJson = enableJson; this.host = host; - this.jdbcUrlParams = jdbcUrlParams; this.password = password; this.port = port; - this.rawDataSchema = rawDataSchema; - this.ssl = ssl; + this.protocol = protocol; + this.recordWindowSize = recordWindowSize; this.tunnelMethod = tunnelMethod; this.username = username; } public DestinationClickhouse( - String database, String host, - String username) { - this(database, host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + String password) { + this(Optional.empty(), Optional.empty(), host, + password, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** * Name of the database. */ @JsonIgnore - public String database() { + public Optional database() { return database; } @@ -137,55 +141,58 @@ public Clickhouse destinationType() { } /** - * Hostname of the database. + * Use the JSON type for Object fields. If disabled, the JSON will be converted to a string. */ @JsonIgnore - public String host() { - return host; + public Optional enableJson() { + return enableJson; } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Hostname of the database. */ @JsonIgnore - public Optional jdbcUrlParams() { - return jdbcUrlParams; + public String host() { + return host; } /** * Password associated with the username. */ @JsonIgnore - public Optional password() { + public String password() { return password; } /** - * HTTP port of the database. + * HTTP port of the database. Default(s) HTTP: 8123 — HTTPS: 8443 */ @JsonIgnore - public Optional port() { + public Optional port() { return port; } /** - * The schema to write raw tables into (default: airbyte_internal) + * Protocol for the database connection string. */ + @SuppressWarnings("unchecked") @JsonIgnore - public Optional rawDataSchema() { - return rawDataSchema; + public Optional protocol() { + return (Optional) protocol; } /** - * Encrypt data using SSL. + * Warning: Tuning this parameter can impact the performances. The maximum number of records that + * should be written to a batch. The batch size limit is still limited to 70 Mb */ @JsonIgnore - public Optional ssl() { - return ssl; + public Optional recordWindowSize() { + return recordWindowSize; } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -197,124 +204,133 @@ public Optional tunnelMethod() { * Username to use to access the database. */ @JsonIgnore - public String username() { + public Optional username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the database. */ public DestinationClickhouse withDatabase(String database) { Utils.checkNotNull(database, "database"); - this.database = database; + this.database = Optional.ofNullable(database); return this; } + /** - * Hostname of the database. + * Name of the database. */ - public DestinationClickhouse withHost(String host) { - Utils.checkNotNull(host, "host"); - this.host = host; + public DestinationClickhouse withDatabase(Optional database) { + Utils.checkNotNull(database, "database"); + this.database = database; return this; } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Use the JSON type for Object fields. If disabled, the JSON will be converted to a string. */ - public DestinationClickhouse withJdbcUrlParams(String jdbcUrlParams) { - Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); - this.jdbcUrlParams = Optional.ofNullable(jdbcUrlParams); + public DestinationClickhouse withEnableJson(boolean enableJson) { + Utils.checkNotNull(enableJson, "enableJson"); + this.enableJson = Optional.ofNullable(enableJson); return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Use the JSON type for Object fields. If disabled, the JSON will be converted to a string. */ - public DestinationClickhouse withJdbcUrlParams(Optional jdbcUrlParams) { - Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); - this.jdbcUrlParams = jdbcUrlParams; + public DestinationClickhouse withEnableJson(Optional enableJson) { + Utils.checkNotNull(enableJson, "enableJson"); + this.enableJson = enableJson; return this; } /** - * Password associated with the username. + * Hostname of the database. */ - public DestinationClickhouse withPassword(String password) { - Utils.checkNotNull(password, "password"); - this.password = Optional.ofNullable(password); + public DestinationClickhouse withHost(String host) { + Utils.checkNotNull(host, "host"); + this.host = host; return this; } /** * Password associated with the username. */ - public DestinationClickhouse withPassword(Optional password) { + public DestinationClickhouse withPassword(String password) { Utils.checkNotNull(password, "password"); this.password = password; return this; } /** - * HTTP port of the database. + * HTTP port of the database. Default(s) HTTP: 8123 — HTTPS: 8443 */ - public DestinationClickhouse withPort(long port) { + public DestinationClickhouse withPort(String port) { Utils.checkNotNull(port, "port"); this.port = Optional.ofNullable(port); return this; } + /** - * HTTP port of the database. + * HTTP port of the database. Default(s) HTTP: 8123 — HTTPS: 8443 */ - public DestinationClickhouse withPort(Optional port) { + public DestinationClickhouse withPort(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; return this; } /** - * The schema to write raw tables into (default: airbyte_internal) + * Protocol for the database connection string. */ - public DestinationClickhouse withRawDataSchema(String rawDataSchema) { - Utils.checkNotNull(rawDataSchema, "rawDataSchema"); - this.rawDataSchema = Optional.ofNullable(rawDataSchema); + public DestinationClickhouse withProtocol(Protocol protocol) { + Utils.checkNotNull(protocol, "protocol"); + this.protocol = Optional.ofNullable(protocol); return this; } + /** - * The schema to write raw tables into (default: airbyte_internal) + * Protocol for the database connection string. */ - public DestinationClickhouse withRawDataSchema(Optional rawDataSchema) { - Utils.checkNotNull(rawDataSchema, "rawDataSchema"); - this.rawDataSchema = rawDataSchema; + public DestinationClickhouse withProtocol(Optional protocol) { + Utils.checkNotNull(protocol, "protocol"); + this.protocol = protocol; return this; } /** - * Encrypt data using SSL. + * Warning: Tuning this parameter can impact the performances. The maximum number of records that + * should be written to a batch. The batch size limit is still limited to 70 Mb */ - public DestinationClickhouse withSsl(boolean ssl) { - Utils.checkNotNull(ssl, "ssl"); - this.ssl = Optional.ofNullable(ssl); + public DestinationClickhouse withRecordWindowSize(long recordWindowSize) { + Utils.checkNotNull(recordWindowSize, "recordWindowSize"); + this.recordWindowSize = Optional.ofNullable(recordWindowSize); return this; } + /** - * Encrypt data using SSL. + * Warning: Tuning this parameter can impact the performances. The maximum number of records that + * should be written to a batch. The batch size limit is still limited to 70 Mb */ - public DestinationClickhouse withSsl(Optional ssl) { - Utils.checkNotNull(ssl, "ssl"); - this.ssl = ssl; + public DestinationClickhouse withRecordWindowSize(Optional recordWindowSize) { + Utils.checkNotNull(recordWindowSize, "recordWindowSize"); + this.recordWindowSize = recordWindowSize; return this; } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationClickhouse withTunnelMethod(SSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -322,8 +338,10 @@ public DestinationClickhouse withTunnelMethod(SSHTunnelMethod tunnelMethod) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationClickhouse withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -335,12 +353,21 @@ public DestinationClickhouse withTunnelMethod(Optional username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -351,30 +378,24 @@ public boolean equals(java.lang.Object o) { } DestinationClickhouse other = (DestinationClickhouse) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.rawDataSchema, other.rawDataSchema) && - Objects.deepEquals(this.ssl, other.ssl) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.enableJson, other.enableJson) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.protocol, other.protocol) && + Utils.enhancedDeepEquals(this.recordWindowSize, other.recordWindowSize) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - database, - destinationType, - host, - jdbcUrlParams, - password, - port, - rawDataSchema, - ssl, - tunnelMethod, + return Utils.enhancedHash( + database, destinationType, enableJson, + host, password, port, + protocol, recordWindowSize, tunnelMethod, username); } @@ -383,150 +404,162 @@ public String toString() { return Utils.toString(DestinationClickhouse.class, "database", database, "destinationType", destinationType, + "enableJson", enableJson, "host", host, - "jdbcUrlParams", jdbcUrlParams, "password", password, "port", port, - "rawDataSchema", rawDataSchema, - "ssl", ssl, + "protocol", protocol, + "recordWindowSize", recordWindowSize, "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - - private String database; - + + private Optional database; + + private Optional enableJson; + private String host; - - private Optional jdbcUrlParams = Optional.empty(); - - private Optional password = Optional.empty(); - - private Optional port; - - private Optional rawDataSchema = Optional.empty(); - - private Optional ssl; - + + private String password; + + private Optional port; + + private Optional protocol; + + private Optional recordWindowSize = Optional.empty(); + private Optional tunnelMethod = Optional.empty(); - - private String username; - + + private Optional username; + private Builder() { // force use of static builder() method } + /** * Name of the database. */ public Builder database(String database) { Utils.checkNotNull(database, "database"); - this.database = database; + this.database = Optional.ofNullable(database); return this; } /** - * Hostname of the database. + * Name of the database. */ - public Builder host(String host) { - Utils.checkNotNull(host, "host"); - this.host = host; + public Builder database(Optional database) { + Utils.checkNotNull(database, "database"); + this.database = database; return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Use the JSON type for Object fields. If disabled, the JSON will be converted to a string. */ - public Builder jdbcUrlParams(String jdbcUrlParams) { - Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); - this.jdbcUrlParams = Optional.ofNullable(jdbcUrlParams); + public Builder enableJson(boolean enableJson) { + Utils.checkNotNull(enableJson, "enableJson"); + this.enableJson = Optional.ofNullable(enableJson); return this; } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Use the JSON type for Object fields. If disabled, the JSON will be converted to a string. */ - public Builder jdbcUrlParams(Optional jdbcUrlParams) { - Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); - this.jdbcUrlParams = jdbcUrlParams; + public Builder enableJson(Optional enableJson) { + Utils.checkNotNull(enableJson, "enableJson"); + this.enableJson = enableJson; return this; } + /** - * Password associated with the username. + * Hostname of the database. */ - public Builder password(String password) { - Utils.checkNotNull(password, "password"); - this.password = Optional.ofNullable(password); + public Builder host(String host) { + Utils.checkNotNull(host, "host"); + this.host = host; return this; } + /** * Password associated with the username. */ - public Builder password(Optional password) { + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = password; return this; } + /** - * HTTP port of the database. + * HTTP port of the database. Default(s) HTTP: 8123 — HTTPS: 8443 */ - public Builder port(long port) { + public Builder port(String port) { Utils.checkNotNull(port, "port"); this.port = Optional.ofNullable(port); return this; } /** - * HTTP port of the database. + * HTTP port of the database. Default(s) HTTP: 8123 — HTTPS: 8443 */ - public Builder port(Optional port) { + public Builder port(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; return this; } + /** - * The schema to write raw tables into (default: airbyte_internal) + * Protocol for the database connection string. */ - public Builder rawDataSchema(String rawDataSchema) { - Utils.checkNotNull(rawDataSchema, "rawDataSchema"); - this.rawDataSchema = Optional.ofNullable(rawDataSchema); + public Builder protocol(Protocol protocol) { + Utils.checkNotNull(protocol, "protocol"); + this.protocol = Optional.ofNullable(protocol); return this; } /** - * The schema to write raw tables into (default: airbyte_internal) + * Protocol for the database connection string. */ - public Builder rawDataSchema(Optional rawDataSchema) { - Utils.checkNotNull(rawDataSchema, "rawDataSchema"); - this.rawDataSchema = rawDataSchema; + public Builder protocol(Optional protocol) { + Utils.checkNotNull(protocol, "protocol"); + this.protocol = protocol; return this; } + /** - * Encrypt data using SSL. + * Warning: Tuning this parameter can impact the performances. The maximum number of records that + * should be written to a batch. The batch size limit is still limited to 70 Mb */ - public Builder ssl(boolean ssl) { - Utils.checkNotNull(ssl, "ssl"); - this.ssl = Optional.ofNullable(ssl); + public Builder recordWindowSize(long recordWindowSize) { + Utils.checkNotNull(recordWindowSize, "recordWindowSize"); + this.recordWindowSize = Optional.ofNullable(recordWindowSize); return this; } /** - * Encrypt data using SSL. + * Warning: Tuning this parameter can impact the performances. The maximum number of records that + * should be written to a batch. The batch size limit is still limited to 70 Mb */ - public Builder ssl(Optional ssl) { - Utils.checkNotNull(ssl, "ssl"); - this.ssl = ssl; + public Builder recordWindowSize(Optional recordWindowSize) { + Utils.checkNotNull(recordWindowSize, "recordWindowSize"); + this.recordWindowSize = recordWindowSize; return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(SSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -535,7 +568,8 @@ public Builder tunnelMethod(SSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -543,50 +577,83 @@ public Builder tunnelMethod(Optional tunnelMethod) { return this; } + /** * Username to use to access the database. */ public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = Optional.ofNullable(username); + return this; + } + + /** + * Username to use to access the database. + */ + public Builder username(Optional username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public DestinationClickhouse build() { + if (database == null) { + database = _SINGLETON_VALUE_Database.value(); + } + if (enableJson == null) { + enableJson = _SINGLETON_VALUE_EnableJson.value(); + } if (port == null) { port = _SINGLETON_VALUE_Port.value(); } - if (ssl == null) { - ssl = _SINGLETON_VALUE_Ssl.value(); + if (protocol == null) { + protocol = _SINGLETON_VALUE_Protocol.value(); + } + if (username == null) { + username = _SINGLETON_VALUE_Username.value(); } + return new DestinationClickhouse( - database, - host, - jdbcUrlParams, - password, - port, - rawDataSchema, - ssl, - tunnelMethod, - username); + database, enableJson, host, + password, port, protocol, + recordWindowSize, tunnelMethod, username); } + + private static final LazySingletonValue> _SINGLETON_VALUE_Database = + new LazySingletonValue<>( + "database", + "\"default\"", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", "\"clickhouse\"", new TypeReference() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_Port = + private static final LazySingletonValue> _SINGLETON_VALUE_EnableJson = + new LazySingletonValue<>( + "enable_json", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Port = new LazySingletonValue<>( "port", - "8123", - new TypeReference>() {}); + "\"8443\"", + new TypeReference>() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_Ssl = + private static final LazySingletonValue> _SINGLETON_VALUE_Protocol = new LazySingletonValue<>( - "ssl", - "false", - new TypeReference>() {}); + "protocol", + "\"https\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Username = + new LazySingletonValue<>( + "username", + "\"default\"", + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java index bab2653c8..268868fc8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseSchemasTunnelMethod.java @@ -8,18 +8,13 @@ import java.util.Objects; import java.util.Optional; -/** - * DestinationClickhouseSchemasTunnelMethod - * - *

Connect through a jump server tunnel host using username and password authentication - */ public enum DestinationClickhouseSchemasTunnelMethod { SSH_PASSWORD_AUTH("SSH_PASSWORD_AUTH"); @JsonValue private final String value; - private DestinationClickhouseSchemasTunnelMethod(String value) { + DestinationClickhouseSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java index c86fc21e0..ad2db81f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationClickhouseTunnelMethod.java @@ -8,18 +8,13 @@ import java.util.Objects; import java.util.Optional; -/** - * DestinationClickhouseTunnelMethod - * - *

Connect through a jump server tunnel host using username and ssh key - */ public enum DestinationClickhouseTunnelMethod { SSH_KEY_AUTH("SSH_KEY_AUTH"); @JsonValue private final String value; - private DestinationClickhouseTunnelMethod(String value) { + DestinationClickhouseTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationCobra.java b/src/main/java/com/airbyte/api/models/shared/DestinationCobra.java deleted file mode 100644 index 8de7cdc2b..000000000 --- a/src/main/java/com/airbyte/api/models/shared/DestinationCobra.java +++ /dev/null @@ -1,443 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.LazySingletonValue; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Objects; -import java.util.Optional; - -public class DestinationCobra { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("auth_type") - private Optional authType; - - /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> - */ - @JsonProperty("client_id") - private String clientId; - - /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> - */ - @JsonProperty("client_secret") - private String clientSecret; - - @JsonProperty("destinationType") - private Cobra destinationType; - - /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("is_sandbox") - private Optional isSandbox; - - /** - * If enabled, the records content will be printed as part of the log in case of failure which allows for easier debugging. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("print_record_content_on_error") - private Optional printRecordContentOnError; - - /** - * Enter your application's <a href="https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_refresh_token_flow.htm">Salesforce Refresh Token</a> used for Airbyte to access your Salesforce account. - */ - @JsonProperty("refresh_token") - private String refreshToken; - - @JsonProperty("stream_mappings") - private List streamMappings; - - /** - * The order in which the streams should be synced. Streams are synced in the order they are listed. Only those streams will be synced so make sure all the input streams are configured here. - */ - @JsonProperty("stream_order") - private List streamOrder; - - @JsonCreator - public DestinationCobra( - @JsonProperty("client_id") String clientId, - @JsonProperty("client_secret") String clientSecret, - @JsonProperty("is_sandbox") Optional isSandbox, - @JsonProperty("print_record_content_on_error") Optional printRecordContentOnError, - @JsonProperty("refresh_token") String refreshToken, - @JsonProperty("stream_mappings") List streamMappings, - @JsonProperty("stream_order") List streamOrder) { - Utils.checkNotNull(clientId, "clientId"); - Utils.checkNotNull(clientSecret, "clientSecret"); - Utils.checkNotNull(isSandbox, "isSandbox"); - Utils.checkNotNull(printRecordContentOnError, "printRecordContentOnError"); - Utils.checkNotNull(refreshToken, "refreshToken"); - Utils.checkNotNull(streamMappings, "streamMappings"); - Utils.checkNotNull(streamOrder, "streamOrder"); - this.authType = Builder._SINGLETON_VALUE_AuthType.value(); - this.clientId = clientId; - this.clientSecret = clientSecret; - this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); - this.isSandbox = isSandbox; - this.printRecordContentOnError = printRecordContentOnError; - this.refreshToken = refreshToken; - this.streamMappings = streamMappings; - this.streamOrder = streamOrder; - } - - public DestinationCobra( - String clientId, - String clientSecret, - String refreshToken, - List streamMappings, - List streamOrder) { - this(clientId, clientSecret, Optional.empty(), Optional.empty(), refreshToken, streamMappings, streamOrder); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional authType() { - return (Optional) authType; - } - - /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> - */ - @JsonIgnore - public String clientId() { - return clientId; - } - - /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> - */ - @JsonIgnore - public String clientSecret() { - return clientSecret; - } - - @JsonIgnore - public Cobra destinationType() { - return destinationType; - } - - /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> - */ - @JsonIgnore - public Optional isSandbox() { - return isSandbox; - } - - /** - * If enabled, the records content will be printed as part of the log in case of failure which allows for easier debugging. - */ - @JsonIgnore - public Optional printRecordContentOnError() { - return printRecordContentOnError; - } - - /** - * Enter your application's <a href="https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_refresh_token_flow.htm">Salesforce Refresh Token</a> used for Airbyte to access your Salesforce account. - */ - @JsonIgnore - public String refreshToken() { - return refreshToken; - } - - @JsonIgnore - public List streamMappings() { - return streamMappings; - } - - /** - * The order in which the streams should be synced. Streams are synced in the order they are listed. Only those streams will be synced so make sure all the input streams are configured here. - */ - @JsonIgnore - public List streamOrder() { - return streamOrder; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> - */ - public DestinationCobra withClientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = clientId; - return this; - } - - /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> - */ - public DestinationCobra withClientSecret(String clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = clientSecret; - return this; - } - - /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> - */ - public DestinationCobra withIsSandbox(boolean isSandbox) { - Utils.checkNotNull(isSandbox, "isSandbox"); - this.isSandbox = Optional.ofNullable(isSandbox); - return this; - } - - /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> - */ - public DestinationCobra withIsSandbox(Optional isSandbox) { - Utils.checkNotNull(isSandbox, "isSandbox"); - this.isSandbox = isSandbox; - return this; - } - - /** - * If enabled, the records content will be printed as part of the log in case of failure which allows for easier debugging. - */ - public DestinationCobra withPrintRecordContentOnError(boolean printRecordContentOnError) { - Utils.checkNotNull(printRecordContentOnError, "printRecordContentOnError"); - this.printRecordContentOnError = Optional.ofNullable(printRecordContentOnError); - return this; - } - - /** - * If enabled, the records content will be printed as part of the log in case of failure which allows for easier debugging. - */ - public DestinationCobra withPrintRecordContentOnError(Optional printRecordContentOnError) { - Utils.checkNotNull(printRecordContentOnError, "printRecordContentOnError"); - this.printRecordContentOnError = printRecordContentOnError; - return this; - } - - /** - * Enter your application's <a href="https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_refresh_token_flow.htm">Salesforce Refresh Token</a> used for Airbyte to access your Salesforce account. - */ - public DestinationCobra withRefreshToken(String refreshToken) { - Utils.checkNotNull(refreshToken, "refreshToken"); - this.refreshToken = refreshToken; - return this; - } - - public DestinationCobra withStreamMappings(List streamMappings) { - Utils.checkNotNull(streamMappings, "streamMappings"); - this.streamMappings = streamMappings; - return this; - } - - /** - * The order in which the streams should be synced. Streams are synced in the order they are listed. Only those streams will be synced so make sure all the input streams are configured here. - */ - public DestinationCobra withStreamOrder(List streamOrder) { - Utils.checkNotNull(streamOrder, "streamOrder"); - this.streamOrder = streamOrder; - return this; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DestinationCobra other = (DestinationCobra) o; - return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.isSandbox, other.isSandbox) && - Objects.deepEquals(this.printRecordContentOnError, other.printRecordContentOnError) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.streamMappings, other.streamMappings) && - Objects.deepEquals(this.streamOrder, other.streamOrder); - } - - @Override - public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, - destinationType, - isSandbox, - printRecordContentOnError, - refreshToken, - streamMappings, - streamOrder); - } - - @Override - public String toString() { - return Utils.toString(DestinationCobra.class, - "authType", authType, - "clientId", clientId, - "clientSecret", clientSecret, - "destinationType", destinationType, - "isSandbox", isSandbox, - "printRecordContentOnError", printRecordContentOnError, - "refreshToken", refreshToken, - "streamMappings", streamMappings, - "streamOrder", streamOrder); - } - - public final static class Builder { - - private String clientId; - - private String clientSecret; - - private Optional isSandbox; - - private Optional printRecordContentOnError; - - private String refreshToken; - - private List streamMappings; - - private List streamOrder; - - private Builder() { - // force use of static builder() method - } - - /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> - */ - public Builder clientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = clientId; - return this; - } - - /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> - */ - public Builder clientSecret(String clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = clientSecret; - return this; - } - - /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> - */ - public Builder isSandbox(boolean isSandbox) { - Utils.checkNotNull(isSandbox, "isSandbox"); - this.isSandbox = Optional.ofNullable(isSandbox); - return this; - } - - /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> - */ - public Builder isSandbox(Optional isSandbox) { - Utils.checkNotNull(isSandbox, "isSandbox"); - this.isSandbox = isSandbox; - return this; - } - - /** - * If enabled, the records content will be printed as part of the log in case of failure which allows for easier debugging. - */ - public Builder printRecordContentOnError(boolean printRecordContentOnError) { - Utils.checkNotNull(printRecordContentOnError, "printRecordContentOnError"); - this.printRecordContentOnError = Optional.ofNullable(printRecordContentOnError); - return this; - } - - /** - * If enabled, the records content will be printed as part of the log in case of failure which allows for easier debugging. - */ - public Builder printRecordContentOnError(Optional printRecordContentOnError) { - Utils.checkNotNull(printRecordContentOnError, "printRecordContentOnError"); - this.printRecordContentOnError = printRecordContentOnError; - return this; - } - - /** - * Enter your application's <a href="https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_refresh_token_flow.htm">Salesforce Refresh Token</a> used for Airbyte to access your Salesforce account. - */ - public Builder refreshToken(String refreshToken) { - Utils.checkNotNull(refreshToken, "refreshToken"); - this.refreshToken = refreshToken; - return this; - } - - public Builder streamMappings(List streamMappings) { - Utils.checkNotNull(streamMappings, "streamMappings"); - this.streamMappings = streamMappings; - return this; - } - - /** - * The order in which the streams should be synced. Streams are synced in the order they are listed. Only those streams will be synced so make sure all the input streams are configured here. - */ - public Builder streamOrder(List streamOrder) { - Utils.checkNotNull(streamOrder, "streamOrder"); - this.streamOrder = streamOrder; - return this; - } - - public DestinationCobra build() { - if (isSandbox == null) { - isSandbox = _SINGLETON_VALUE_IsSandbox.value(); - } - if (printRecordContentOnError == null) { - printRecordContentOnError = _SINGLETON_VALUE_PrintRecordContentOnError.value(); - } - return new DestinationCobra( - clientId, - clientSecret, - isSandbox, - printRecordContentOnError, - refreshToken, - streamMappings, - streamOrder); - } - - private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = - new LazySingletonValue<>( - "auth_type", - "\"Client\"", - new TypeReference>() {}); - - private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = - new LazySingletonValue<>( - "destinationType", - "\"cobra\"", - new TypeReference() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_IsSandbox = - new LazySingletonValue<>( - "is_sandbox", - "false", - new TypeReference>() {}); - - private static final LazySingletonValue> _SINGLETON_VALUE_PrintRecordContentOnError = - new LazySingletonValue<>( - "print_record_content_on_error", - "false", - new TypeReference>() {}); - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java b/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java index f9f217e7a..bf6465a3d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationConfiguration.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationConfiguration @@ -61,14 +60,14 @@ public static DestinationConfiguration of(DestinationClickhouse value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static DestinationConfiguration of(DestinationCobra value) { + public static DestinationConfiguration of(DestinationConvex value) { Utils.checkNotNull(value, "value"); - return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static DestinationConfiguration of(DestinationConvex value) { + public static DestinationConfiguration of(DestinationCustomerIo value) { Utils.checkNotNull(value, "value"); - return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } public static DestinationConfiguration of(DestinationDatabricks value) { @@ -116,6 +115,11 @@ public static DestinationConfiguration of(DestinationGcs value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static DestinationConfiguration of(DestinationHubspot value) { + Utils.checkNotNull(value, "value"); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static DestinationConfiguration of(DestinationMilvus value) { Utils.checkNotNull(value, "value"); return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -196,6 +200,11 @@ public static DestinationConfiguration of(DestinationS3DataLake value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static DestinationConfiguration of(DestinationSalesforce value) { + Utils.checkNotNull(value, "value"); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static DestinationConfiguration of(DestinationSftpJson value) { Utils.checkNotNull(value, "value"); return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -211,6 +220,11 @@ public static DestinationConfiguration of(DestinationSnowflakeCortex value) { return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static DestinationConfiguration of(DestinationSurrealdb value) { + Utils.checkNotNull(value, "value"); + return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static DestinationConfiguration of(DestinationTeradata value) { Utils.checkNotNull(value, "value"); return new DestinationConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -250,8 +264,8 @@ public static DestinationConfiguration of(DestinationYellowbrick value) { *

  • {@code com.airbyte.api.models.shared.DestinationAzureBlobStorage}
  • *
  • {@code com.airbyte.api.models.shared.DestinationBigquery}
  • *
  • {@code com.airbyte.api.models.shared.DestinationClickhouse}
  • - *
  • {@code com.airbyte.api.models.shared.DestinationCobra}
  • *
  • {@code com.airbyte.api.models.shared.DestinationConvex}
  • + *
  • {@code com.airbyte.api.models.shared.DestinationCustomerIo}
  • *
  • {@code com.airbyte.api.models.shared.DestinationDatabricks}
  • *
  • {@code com.airbyte.api.models.shared.DestinationDeepset}
  • *
  • {@code com.airbyte.api.models.shared.DestinationDevNull}
  • @@ -261,6 +275,7 @@ public static DestinationConfiguration of(DestinationYellowbrick value) { *
  • {@code com.airbyte.api.models.shared.DestinationFirebolt}
  • *
  • {@code com.airbyte.api.models.shared.DestinationFirestore}
  • *
  • {@code com.airbyte.api.models.shared.DestinationGcs}
  • + *
  • {@code com.airbyte.api.models.shared.DestinationHubspot}
  • *
  • {@code com.airbyte.api.models.shared.DestinationMilvus}
  • *
  • {@code com.airbyte.api.models.shared.DestinationMongodb}
  • *
  • {@code com.airbyte.api.models.shared.DestinationMotherduck}
  • @@ -277,9 +292,11 @@ public static DestinationConfiguration of(DestinationYellowbrick value) { *
  • {@code com.airbyte.api.models.shared.DestinationRedshift}
  • *
  • {@code com.airbyte.api.models.shared.DestinationS3}
  • *
  • {@code com.airbyte.api.models.shared.DestinationS3DataLake}
  • + *
  • {@code com.airbyte.api.models.shared.DestinationSalesforce}
  • *
  • {@code com.airbyte.api.models.shared.DestinationSftpJson}
  • *
  • {@code com.airbyte.api.models.shared.DestinationSnowflake}
  • *
  • {@code com.airbyte.api.models.shared.DestinationSnowflakeCortex}
  • + *
  • {@code com.airbyte.api.models.shared.DestinationSurrealdb}
  • *
  • {@code com.airbyte.api.models.shared.DestinationTeradata}
  • *
  • {@code com.airbyte.api.models.shared.DestinationTimeplus}
  • *
  • {@code com.airbyte.api.models.shared.DestinationTypesense}
  • @@ -312,12 +329,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationConfiguration other = (DestinationConfiguration) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") @@ -327,45 +344,48 @@ public _Deserializer() { super(DestinationConfiguration.class, false, TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationConvex.java b/src/main/java/com/airbyte/api/models/shared/DestinationConvex.java index 4a5bac317..011d13436 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationConvex.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationConvex.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationConvex { +public class DestinationConvex { /** * API access key used to send data to a Convex deployment. */ @@ -27,6 +26,7 @@ public class DestinationConvex { @JsonProperty("deployment_url") private String deploymentUrl; + @JsonProperty("destinationType") private Convex destinationType; @@ -62,9 +62,10 @@ public Convex destinationType() { return destinationType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API access key used to send data to a Convex deployment. @@ -84,7 +85,6 @@ public DestinationConvex withDeploymentUrl(String deploymentUrl) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } DestinationConvex other = (DestinationConvex) o; return - Objects.deepEquals(this.accessKey, other.accessKey) && - Objects.deepEquals(this.deploymentUrl, other.deploymentUrl) && - Objects.deepEquals(this.destinationType, other.destinationType); + Utils.enhancedDeepEquals(this.accessKey, other.accessKey) && + Utils.enhancedDeepEquals(this.deploymentUrl, other.deploymentUrl) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType); } @Override public int hashCode() { - return Objects.hash( - accessKey, - deploymentUrl, - destinationType); + return Utils.enhancedHash( + accessKey, deploymentUrl, destinationType); } @Override @@ -115,17 +113,19 @@ public String toString() { "deploymentUrl", deploymentUrl, "destinationType", destinationType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKey; - + private String deploymentUrl; - + private Builder() { // force use of static builder() method } + /** * API access key used to send data to a Convex deployment. */ @@ -135,6 +135,7 @@ public Builder accessKey(String accessKey) { return this; } + /** * URL of the Convex deployment that is the destination */ @@ -143,13 +144,14 @@ public Builder deploymentUrl(String deploymentUrl) { this.deploymentUrl = deploymentUrl; return this; } - + public DestinationConvex build() { + return new DestinationConvex( - accessKey, - deploymentUrl); + accessKey, deploymentUrl); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/DestinationCreateRequest.java index 142d3a5cb..45aaf05c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationCreateRequest.java @@ -12,11 +12,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationCreateRequest { +public class DestinationCreateRequest { /** * The values required to configure the destination. */ @@ -24,7 +23,8 @@ public class DestinationCreateRequest { private DestinationConfiguration configuration; /** - * The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.destinationType or definitionId must be + * provided. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("definitionId") @@ -37,12 +37,18 @@ public class DestinationCreateRequest { private String name; /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("resourceAllocation") private Optional resourceAllocation; + @JsonProperty("workspaceId") private String workspaceId; @@ -69,7 +75,8 @@ public DestinationCreateRequest( DestinationConfiguration configuration, String name, String workspaceId) { - this(configuration, Optional.empty(), name, Optional.empty(), workspaceId); + this(configuration, Optional.empty(), name, + Optional.empty(), workspaceId); } /** @@ -81,7 +88,8 @@ public DestinationConfiguration configuration() { } /** - * The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.destinationType or definitionId must be + * provided. */ @JsonIgnore public Optional definitionId() { @@ -97,7 +105,12 @@ public String name() { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -110,9 +123,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The values required to configure the destination. @@ -124,7 +138,8 @@ public DestinationCreateRequest withConfiguration(DestinationConfiguration confi } /** - * The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.destinationType or definitionId must be + * provided. */ public DestinationCreateRequest withDefinitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -132,8 +147,10 @@ public DestinationCreateRequest withDefinitionId(String definitionId) { return this; } + /** - * The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.destinationType or definitionId must be + * provided. */ public DestinationCreateRequest withDefinitionId(Optional definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -151,7 +168,12 @@ public DestinationCreateRequest withName(String name) { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public DestinationCreateRequest withResourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -159,8 +181,14 @@ public DestinationCreateRequest withResourceAllocation(ScopedResourceRequirement return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public DestinationCreateRequest withResourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -174,7 +202,6 @@ public DestinationCreateRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -185,21 +212,18 @@ public boolean equals(java.lang.Object o) { } DestinationCreateRequest other = (DestinationCreateRequest) o; return - Objects.deepEquals(this.configuration, other.configuration) && - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.resourceAllocation, other.resourceAllocation) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.configuration, other.configuration) && + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.resourceAllocation, other.resourceAllocation) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - configuration, - definitionId, - name, - resourceAllocation, - workspaceId); + return Utils.enhancedHash( + configuration, definitionId, name, + resourceAllocation, workspaceId); } @Override @@ -211,23 +235,25 @@ public String toString() { "resourceAllocation", resourceAllocation, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationConfiguration configuration; - + private Optional definitionId = Optional.empty(); - + private String name; - + private Optional resourceAllocation = Optional.empty(); - + private String workspaceId; - + private Builder() { // force use of static builder() method } + /** * The values required to configure the destination. */ @@ -237,8 +263,10 @@ public Builder configuration(DestinationConfiguration configuration) { return this; } + /** - * The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.destinationType or definitionId must be + * provided. */ public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -247,7 +275,8 @@ public Builder definitionId(String definitionId) { } /** - * The UUID of the connector definition. One of configuration.destinationType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.destinationType or definitionId must be + * provided. */ public Builder definitionId(Optional definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -255,6 +284,7 @@ public Builder definitionId(Optional definitionId) { return this; } + /** * Name of the destination e.g. dev-mysql-instance. */ @@ -264,8 +294,14 @@ public Builder name(String name) { return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -274,7 +310,12 @@ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -282,19 +323,19 @@ public Builder resourceAllocation(Optional return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public DestinationCreateRequest build() { + return new DestinationCreateRequest( - configuration, - definitionId, - name, - resourceAllocation, - workspaceId); + configuration, definitionId, name, + resourceAllocation, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIo.java b/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIo.java new file mode 100644 index 000000000..f0fb5ca11 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIo.java @@ -0,0 +1,174 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class DestinationCustomerIo { + /** + * Enter the site ID and API key to authenticate. + */ + @JsonProperty("credentials") + private DestinationCustomerIoCredentials credentials; + + + @JsonProperty("destinationType") + private CustomerIo destinationType; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("object_storage_config") + private Optional objectStorageConfig; + + @JsonCreator + public DestinationCustomerIo( + @JsonProperty("credentials") DestinationCustomerIoCredentials credentials, + @JsonProperty("object_storage_config") Optional objectStorageConfig) { + Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.credentials = credentials; + this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.objectStorageConfig = objectStorageConfig; + } + + public DestinationCustomerIo( + DestinationCustomerIoCredentials credentials) { + this(credentials, Optional.empty()); + } + + /** + * Enter the site ID and API key to authenticate. + */ + @JsonIgnore + public DestinationCustomerIoCredentials credentials() { + return credentials; + } + + @JsonIgnore + public CustomerIo destinationType() { + return destinationType; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional objectStorageConfig() { + return (Optional) objectStorageConfig; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Enter the site ID and API key to authenticate. + */ + public DestinationCustomerIo withCredentials(DestinationCustomerIoCredentials credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + public DestinationCustomerIo withObjectStorageConfig(ObjectStorageConfiguration objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = Optional.ofNullable(objectStorageConfig); + return this; + } + + + public DestinationCustomerIo withObjectStorageConfig(Optional objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = objectStorageConfig; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationCustomerIo other = (DestinationCustomerIo) o; + return + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.objectStorageConfig, other.objectStorageConfig); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + credentials, destinationType, objectStorageConfig); + } + + @Override + public String toString() { + return Utils.toString(DestinationCustomerIo.class, + "credentials", credentials, + "destinationType", destinationType, + "objectStorageConfig", objectStorageConfig); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private DestinationCustomerIoCredentials credentials; + + private Optional objectStorageConfig = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Enter the site ID and API key to authenticate. + */ + public Builder credentials(DestinationCustomerIoCredentials credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + + public Builder objectStorageConfig(ObjectStorageConfiguration objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = Optional.ofNullable(objectStorageConfig); + return this; + } + + public Builder objectStorageConfig(Optional objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = objectStorageConfig; + return this; + } + + public DestinationCustomerIo build() { + + return new DestinationCustomerIo( + credentials, objectStorageConfig); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = + new LazySingletonValue<>( + "destinationType", + "\"customer-io\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoCredentials.java b/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoCredentials.java new file mode 100644 index 000000000..9b3992849 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoCredentials.java @@ -0,0 +1,210 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; + +/** + * DestinationCustomerIoCredentials + * + *

    Enter the site ID and API key to authenticate. + */ +public class DestinationCustomerIoCredentials { + + @JsonIgnore + private Map additionalProperties; + + /** + * Enter your Customer IO API + * Key. + */ + @JsonProperty("apiKey") + private String apiKey; + + /** + * Enter your Customer IO Site + * ID. + */ + @JsonProperty("siteId") + private String siteId; + + @JsonCreator + public DestinationCustomerIoCredentials( + @JsonProperty("apiKey") String apiKey, + @JsonProperty("siteId") String siteId) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(siteId, "siteId"); + this.additionalProperties = new HashMap<>(); + this.apiKey = apiKey; + this.siteId = siteId; + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + /** + * Enter your Customer IO API + * Key. + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Enter your Customer IO Site + * ID. + */ + @JsonIgnore + public String siteId() { + return siteId; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public DestinationCustomerIoCredentials withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public DestinationCustomerIoCredentials withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Enter your Customer IO API + * Key. + */ + public DestinationCustomerIoCredentials withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Enter your Customer IO Site + * ID. + */ + public DestinationCustomerIoCredentials withSiteId(String siteId) { + Utils.checkNotNull(siteId, "siteId"); + this.siteId = siteId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationCustomerIoCredentials other = (DestinationCustomerIoCredentials) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.siteId, other.siteId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, apiKey, siteId); + } + + @Override + public String toString() { + return Utils.toString(DestinationCustomerIoCredentials.class, + "additionalProperties", additionalProperties, + "apiKey", apiKey, + "siteId", siteId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private String apiKey; + + private String siteId; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + /** + * Enter your Customer IO API + * Key. + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + + /** + * Enter your Customer IO Site + * ID. + */ + public Builder siteId(String siteId) { + Utils.checkNotNull(siteId, "siteId"); + this.siteId = siteId; + return this; + } + + public DestinationCustomerIoCredentials build() { + + return new DestinationCustomerIoCredentials( + apiKey, siteId) + .withAdditionalProperties(additionalProperties); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoS3.java b/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoS3.java new file mode 100644 index 000000000..1baa4bc44 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoS3.java @@ -0,0 +1,611 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + + +public class DestinationCustomerIoS3 { + + @JsonIgnore + private Map additionalProperties; + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("access_key_id") + private Optional accessKeyId; + + /** + * All files in the bucket will be prefixed by this. + */ + @JsonProperty("bucket_path") + private String bucketPath; + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("role_arn") + private Optional roleArn; + + /** + * The name of the S3 bucket. Read more here. + */ + @JsonProperty("s3_bucket_name") + private String s3BucketName; + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("s3_bucket_region") + private Optional s3BucketRegion; + + /** + * Your S3 endpoint url. Read more here + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("s3_endpoint") + private Optional s3Endpoint; + + /** + * The corresponding secret to the access key ID. Read more here + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("secret_access_key") + private Optional secretAccessKey; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("storage_type") + private Optional storageType; + + @JsonCreator + public DestinationCustomerIoS3( + @JsonProperty("access_key_id") Optional accessKeyId, + @JsonProperty("bucket_path") String bucketPath, + @JsonProperty("role_arn") Optional roleArn, + @JsonProperty("s3_bucket_name") String s3BucketName, + @JsonProperty("s3_bucket_region") Optional s3BucketRegion, + @JsonProperty("s3_endpoint") Optional s3Endpoint, + @JsonProperty("secret_access_key") Optional secretAccessKey, + @JsonProperty("storage_type") Optional storageType) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + Utils.checkNotNull(bucketPath, "bucketPath"); + Utils.checkNotNull(roleArn, "roleArn"); + Utils.checkNotNull(s3BucketName, "s3BucketName"); + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + Utils.checkNotNull(storageType, "storageType"); + this.additionalProperties = new HashMap<>(); + this.accessKeyId = accessKeyId; + this.bucketPath = bucketPath; + this.roleArn = roleArn; + this.s3BucketName = s3BucketName; + this.s3BucketRegion = s3BucketRegion; + this.s3Endpoint = s3Endpoint; + this.secretAccessKey = secretAccessKey; + this.storageType = storageType; + } + + public DestinationCustomerIoS3( + String bucketPath, + String s3BucketName) { + this(Optional.empty(), bucketPath, Optional.empty(), + s3BucketName, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + @JsonIgnore + public Optional accessKeyId() { + return accessKeyId; + } + + /** + * All files in the bucket will be prefixed by this. + */ + @JsonIgnore + public String bucketPath() { + return bucketPath; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + @JsonIgnore + public Optional roleArn() { + return roleArn; + } + + /** + * The name of the S3 bucket. Read more here. + */ + @JsonIgnore + public String s3BucketName() { + return s3BucketName; + } + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional s3BucketRegion() { + return (Optional) s3BucketRegion; + } + + /** + * Your S3 endpoint url. Read more here + */ + @JsonIgnore + public Optional s3Endpoint() { + return s3Endpoint; + } + + /** + * The corresponding secret to the access key ID. Read more here + */ + @JsonIgnore + public Optional secretAccessKey() { + return secretAccessKey; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional storageType() { + return (Optional) storageType; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public DestinationCustomerIoS3 withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public DestinationCustomerIoS3 withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public DestinationCustomerIoS3 withAccessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = Optional.ofNullable(accessKeyId); + return this; + } + + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public DestinationCustomerIoS3 withAccessKeyId(Optional accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + /** + * All files in the bucket will be prefixed by this. + */ + public DestinationCustomerIoS3 withBucketPath(String bucketPath) { + Utils.checkNotNull(bucketPath, "bucketPath"); + this.bucketPath = bucketPath; + return this; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public DestinationCustomerIoS3 withRoleArn(String roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = Optional.ofNullable(roleArn); + return this; + } + + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public DestinationCustomerIoS3 withRoleArn(Optional roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = roleArn; + return this; + } + + /** + * The name of the S3 bucket. Read more here. + */ + public DestinationCustomerIoS3 withS3BucketName(String s3BucketName) { + Utils.checkNotNull(s3BucketName, "s3BucketName"); + this.s3BucketName = s3BucketName; + return this; + } + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public DestinationCustomerIoS3 withS3BucketRegion(DestinationCustomerIoS3BucketRegion s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = Optional.ofNullable(s3BucketRegion); + return this; + } + + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public DestinationCustomerIoS3 withS3BucketRegion(Optional s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = s3BucketRegion; + return this; + } + + /** + * Your S3 endpoint url. Read more here + */ + public DestinationCustomerIoS3 withS3Endpoint(String s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = Optional.ofNullable(s3Endpoint); + return this; + } + + + /** + * Your S3 endpoint url. Read more here + */ + public DestinationCustomerIoS3 withS3Endpoint(Optional s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = s3Endpoint; + return this; + } + + /** + * The corresponding secret to the access key ID. Read more here + */ + public DestinationCustomerIoS3 withSecretAccessKey(String secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = Optional.ofNullable(secretAccessKey); + return this; + } + + + /** + * The corresponding secret to the access key ID. Read more here + */ + public DestinationCustomerIoS3 withSecretAccessKey(Optional secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = secretAccessKey; + return this; + } + + public DestinationCustomerIoS3 withStorageType(DestinationCustomerIoStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + + public DestinationCustomerIoS3 withStorageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationCustomerIoS3 other = (DestinationCustomerIoS3) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.accessKeyId, other.accessKeyId) && + Utils.enhancedDeepEquals(this.bucketPath, other.bucketPath) && + Utils.enhancedDeepEquals(this.roleArn, other.roleArn) && + Utils.enhancedDeepEquals(this.s3BucketName, other.s3BucketName) && + Utils.enhancedDeepEquals(this.s3BucketRegion, other.s3BucketRegion) && + Utils.enhancedDeepEquals(this.s3Endpoint, other.s3Endpoint) && + Utils.enhancedDeepEquals(this.secretAccessKey, other.secretAccessKey) && + Utils.enhancedDeepEquals(this.storageType, other.storageType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, accessKeyId, bucketPath, + roleArn, s3BucketName, s3BucketRegion, + s3Endpoint, secretAccessKey, storageType); + } + + @Override + public String toString() { + return Utils.toString(DestinationCustomerIoS3.class, + "additionalProperties", additionalProperties, + "accessKeyId", accessKeyId, + "bucketPath", bucketPath, + "roleArn", roleArn, + "s3BucketName", s3BucketName, + "s3BucketRegion", s3BucketRegion, + "s3Endpoint", s3Endpoint, + "secretAccessKey", secretAccessKey, + "storageType", storageType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private Optional accessKeyId = Optional.empty(); + + private String bucketPath; + + private Optional roleArn = Optional.empty(); + + private String s3BucketName; + + private Optional s3BucketRegion; + + private Optional s3Endpoint = Optional.empty(); + + private Optional secretAccessKey = Optional.empty(); + + private Optional storageType; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public Builder accessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = Optional.ofNullable(accessKeyId); + return this; + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public Builder accessKeyId(Optional accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + + /** + * All files in the bucket will be prefixed by this. + */ + public Builder bucketPath(String bucketPath) { + Utils.checkNotNull(bucketPath, "bucketPath"); + this.bucketPath = bucketPath; + return this; + } + + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public Builder roleArn(String roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = Optional.ofNullable(roleArn); + return this; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public Builder roleArn(Optional roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = roleArn; + return this; + } + + + /** + * The name of the S3 bucket. Read more here. + */ + public Builder s3BucketName(String s3BucketName) { + Utils.checkNotNull(s3BucketName, "s3BucketName"); + this.s3BucketName = s3BucketName; + return this; + } + + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public Builder s3BucketRegion(DestinationCustomerIoS3BucketRegion s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = Optional.ofNullable(s3BucketRegion); + return this; + } + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public Builder s3BucketRegion(Optional s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = s3BucketRegion; + return this; + } + + + /** + * Your S3 endpoint url. Read more here + */ + public Builder s3Endpoint(String s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = Optional.ofNullable(s3Endpoint); + return this; + } + + /** + * Your S3 endpoint url. Read more here + */ + public Builder s3Endpoint(Optional s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = s3Endpoint; + return this; + } + + + /** + * The corresponding secret to the access key ID. Read more here + */ + public Builder secretAccessKey(String secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = Optional.ofNullable(secretAccessKey); + return this; + } + + /** + * The corresponding secret to the access key ID. Read more here + */ + public Builder secretAccessKey(Optional secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = secretAccessKey; + return this; + } + + + public Builder storageType(DestinationCustomerIoStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + public Builder storageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + public DestinationCustomerIoS3 build() { + if (s3BucketRegion == null) { + s3BucketRegion = _SINGLETON_VALUE_S3BucketRegion.value(); + } + if (storageType == null) { + storageType = _SINGLETON_VALUE_StorageType.value(); + } + + return new DestinationCustomerIoS3( + accessKeyId, bucketPath, roleArn, + s3BucketName, s3BucketRegion, s3Endpoint, + secretAccessKey, storageType) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_S3BucketRegion = + new LazySingletonValue<>( + "s3_bucket_region", + "\"\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StorageType = + new LazySingletonValue<>( + "storage_type", + "\"S3\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoS3BucketRegion.java new file mode 100644 index 000000000..0d37b249a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoS3BucketRegion.java @@ -0,0 +1,74 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * DestinationCustomerIoS3BucketRegion + * + *

    The region of the S3 bucket. See here + * for all region codes. + */ +public enum DestinationCustomerIoS3BucketRegion { + UNKNOWN(""), + AF_SOUTH1("af-south-1"), + AP_EAST1("ap-east-1"), + AP_NORTHEAST1("ap-northeast-1"), + AP_NORTHEAST2("ap-northeast-2"), + AP_NORTHEAST3("ap-northeast-3"), + AP_SOUTH1("ap-south-1"), + AP_SOUTH2("ap-south-2"), + AP_SOUTHEAST1("ap-southeast-1"), + AP_SOUTHEAST2("ap-southeast-2"), + AP_SOUTHEAST3("ap-southeast-3"), + AP_SOUTHEAST4("ap-southeast-4"), + CA_CENTRAL1("ca-central-1"), + CA_WEST1("ca-west-1"), + CN_NORTH1("cn-north-1"), + CN_NORTHWEST1("cn-northwest-1"), + EU_CENTRAL1("eu-central-1"), + EU_CENTRAL2("eu-central-2"), + EU_NORTH1("eu-north-1"), + EU_SOUTH1("eu-south-1"), + EU_SOUTH2("eu-south-2"), + EU_WEST1("eu-west-1"), + EU_WEST2("eu-west-2"), + EU_WEST3("eu-west-3"), + IL_CENTRAL1("il-central-1"), + ME_CENTRAL1("me-central-1"), + ME_SOUTH1("me-south-1"), + SA_EAST1("sa-east-1"), + US_EAST1("us-east-1"), + US_EAST2("us-east-2"), + US_GOV_EAST1("us-gov-east-1"), + US_GOV_WEST1("us-gov-west-1"), + US_WEST1("us-west-1"), + US_WEST2("us-west-2"); + + @JsonValue + private final String value; + + DestinationCustomerIoS3BucketRegion(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationCustomerIoS3BucketRegion o: DestinationCustomerIoS3BucketRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoStorageType.java b/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoStorageType.java new file mode 100644 index 000000000..4cd79be6c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationCustomerIoStorageType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum DestinationCustomerIoStorageType { + S3("S3"); + + @JsonValue + private final String value; + + DestinationCustomerIoStorageType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationCustomerIoStorageType o: DestinationCustomerIoStorageType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java index 2ded32121..284a4f232 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricks.java @@ -14,13 +14,13 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationDatabricks { +public class DestinationDatabricks { /** - * You must agree to the Databricks JDBC Driver <a href="https://databricks.com/jdbc-odbc-driver-license">Terms & Conditions</a> to use this connector. + * You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("accept_terms") @@ -38,6 +38,7 @@ public class DestinationDatabricks { @JsonProperty("database") private String database; + @JsonProperty("destinationType") private Databricks destinationType; @@ -118,11 +119,14 @@ public DestinationDatabricks( String database, String hostname, String httpPath) { - this(Optional.empty(), authentication, database, hostname, httpPath, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), authentication, database, + hostname, httpPath, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** - * You must agree to the Databricks JDBC Driver <a href="https://databricks.com/jdbc-odbc-driver-license">Terms & Conditions</a> to use this connector. + * You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. */ @JsonIgnore public Optional acceptTerms() { @@ -198,12 +202,14 @@ public Optional schema() { return schema; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * You must agree to the Databricks JDBC Driver <a href="https://databricks.com/jdbc-odbc-driver-license">Terms & Conditions</a> to use this connector. + * You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. */ public DestinationDatabricks withAcceptTerms(boolean acceptTerms) { Utils.checkNotNull(acceptTerms, "acceptTerms"); @@ -211,8 +217,10 @@ public DestinationDatabricks withAcceptTerms(boolean acceptTerms) { return this; } + /** - * You must agree to the Databricks JDBC Driver <a href="https://databricks.com/jdbc-odbc-driver-license">Terms & Conditions</a> to use this connector. + * You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. */ public DestinationDatabricks withAcceptTerms(Optional acceptTerms) { Utils.checkNotNull(acceptTerms, "acceptTerms"); @@ -265,6 +273,7 @@ public DestinationDatabricks withPort(String port) { return this; } + /** * Databricks Cluster Port. */ @@ -283,6 +292,7 @@ public DestinationDatabricks withPurgeStagingData(boolean purgeStagingData) { return this; } + /** * Default to 'true'. Switch it to 'false' for debugging purpose. */ @@ -301,6 +311,7 @@ public DestinationDatabricks withRawSchemaOverride(String rawSchemaOverride) { return this; } + /** * The schema to write raw tables into (default: airbyte_internal) */ @@ -319,6 +330,7 @@ public DestinationDatabricks withSchema(String schema) { return this; } + /** * The default schema tables are written. If not specified otherwise, the "default" will be used. */ @@ -328,7 +340,6 @@ public DestinationDatabricks withSchema(Optional schema) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -339,30 +350,24 @@ public boolean equals(java.lang.Object o) { } DestinationDatabricks other = (DestinationDatabricks) o; return - Objects.deepEquals(this.acceptTerms, other.acceptTerms) && - Objects.deepEquals(this.authentication, other.authentication) && - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.hostname, other.hostname) && - Objects.deepEquals(this.httpPath, other.httpPath) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.purgeStagingData, other.purgeStagingData) && - Objects.deepEquals(this.rawSchemaOverride, other.rawSchemaOverride) && - Objects.deepEquals(this.schema, other.schema); + Utils.enhancedDeepEquals(this.acceptTerms, other.acceptTerms) && + Utils.enhancedDeepEquals(this.authentication, other.authentication) && + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.hostname, other.hostname) && + Utils.enhancedDeepEquals(this.httpPath, other.httpPath) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.purgeStagingData, other.purgeStagingData) && + Utils.enhancedDeepEquals(this.rawSchemaOverride, other.rawSchemaOverride) && + Utils.enhancedDeepEquals(this.schema, other.schema); } @Override public int hashCode() { - return Objects.hash( - acceptTerms, - authentication, - database, - destinationType, - hostname, - httpPath, - port, - purgeStagingData, - rawSchemaOverride, + return Utils.enhancedHash( + acceptTerms, authentication, database, + destinationType, hostname, httpPath, + port, purgeStagingData, rawSchemaOverride, schema); } @@ -380,33 +385,36 @@ public String toString() { "rawSchemaOverride", rawSchemaOverride, "schema", schema); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional acceptTerms; - + private Authentication authentication; - + private String database; - + private String hostname; - + private String httpPath; - + private Optional port; - + private Optional purgeStagingData; - + private Optional rawSchemaOverride; - + private Optional schema; - + private Builder() { // force use of static builder() method } + /** - * You must agree to the Databricks JDBC Driver <a href="https://databricks.com/jdbc-odbc-driver-license">Terms & Conditions</a> to use this connector. + * You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. */ public Builder acceptTerms(boolean acceptTerms) { Utils.checkNotNull(acceptTerms, "acceptTerms"); @@ -415,7 +423,8 @@ public Builder acceptTerms(boolean acceptTerms) { } /** - * You must agree to the Databricks JDBC Driver <a href="https://databricks.com/jdbc-odbc-driver-license">Terms & Conditions</a> to use this connector. + * You must agree to the Databricks JDBC Driver Terms & Conditions to use this connector. */ public Builder acceptTerms(Optional acceptTerms) { Utils.checkNotNull(acceptTerms, "acceptTerms"); @@ -423,6 +432,7 @@ public Builder acceptTerms(Optional acceptTerms) { return this; } + /** * Authentication mechanism for Staging files and running queries */ @@ -432,6 +442,7 @@ public Builder authentication(Authentication authentication) { return this; } + /** * The name of the unity catalog for the database */ @@ -441,6 +452,7 @@ public Builder database(String database) { return this; } + /** * Databricks Cluster Server Hostname. */ @@ -450,6 +462,7 @@ public Builder hostname(String hostname) { return this; } + /** * Databricks Cluster HTTP Path. */ @@ -459,6 +472,7 @@ public Builder httpPath(String httpPath) { return this; } + /** * Databricks Cluster Port. */ @@ -477,6 +491,7 @@ public Builder port(Optional port) { return this; } + /** * Default to 'true'. Switch it to 'false' for debugging purpose. */ @@ -495,6 +510,7 @@ public Builder purgeStagingData(Optional purgeStagingData) { return this; } + /** * The schema to write raw tables into (default: airbyte_internal) */ @@ -513,6 +529,7 @@ public Builder rawSchemaOverride(Optional rawSchemaOverride) { return this; } + /** * The default schema tables are written. If not specified otherwise, the "default" will be used. */ @@ -530,7 +547,7 @@ public Builder schema(Optional schema) { this.schema = schema; return this; } - + public DestinationDatabricks build() { if (acceptTerms == null) { acceptTerms = _SINGLETON_VALUE_AcceptTerms.value(); @@ -547,18 +564,14 @@ public DestinationDatabricks build() { if (schema == null) { schema = _SINGLETON_VALUE_Schema.value(); } + return new DestinationDatabricks( - acceptTerms, - authentication, - database, - hostname, - httpPath, - port, - purgeStagingData, - rawSchemaOverride, - schema); + acceptTerms, authentication, database, + hostname, httpPath, port, + purgeStagingData, rawSchemaOverride, schema); } + private static final LazySingletonValue> _SINGLETON_VALUE_AcceptTerms = new LazySingletonValue<>( "accept_terms", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java index 953153640..23fd02fa3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksAuthType.java @@ -9,12 +9,12 @@ import java.util.Optional; public enum DestinationDatabricksAuthType { - OAUTH("OAUTH"); + BASIC("BASIC"); @JsonValue private final String value; - private DestinationDatabricksAuthType(String value) { + DestinationDatabricksAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java index 301b9749a..3ed698108 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDatabricksSchemasAuthType.java @@ -9,12 +9,12 @@ import java.util.Optional; public enum DestinationDatabricksSchemasAuthType { - BASIC("BASIC"); + OAUTH("OAUTH"); @JsonValue private final String value; - private DestinationDatabricksSchemasAuthType(String value) { + DestinationDatabricksSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDeepset.java b/src/main/java/com/airbyte/api/models/shared/DestinationDeepset.java index f284e9951..342680892 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDeepset.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDeepset.java @@ -14,11 +14,10 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationDeepset { +public class DestinationDeepset { /** * Your deepset cloud API key */ @@ -26,12 +25,14 @@ public class DestinationDeepset { private String apiKey; /** - * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). Defaults to https://api.cloud.deepset.ai. + * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). + * Defaults to https://api.cloud.deepset.ai. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("base_url") private Optional baseUrl; + @JsonProperty("destinationType") private Deepset destinationType; @@ -68,7 +69,8 @@ public DestinationDeepset( public DestinationDeepset( String apiKey, String workspace) { - this(apiKey, Optional.empty(), Optional.empty(), workspace); + this(apiKey, Optional.empty(), Optional.empty(), + workspace); } /** @@ -80,7 +82,8 @@ public String apiKey() { } /** - * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). Defaults to https://api.cloud.deepset.ai. + * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). + * Defaults to https://api.cloud.deepset.ai. */ @JsonIgnore public Optional baseUrl() { @@ -108,9 +111,10 @@ public String workspace() { return workspace; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your deepset cloud API key @@ -122,7 +126,8 @@ public DestinationDeepset withApiKey(String apiKey) { } /** - * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). Defaults to https://api.cloud.deepset.ai. + * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). + * Defaults to https://api.cloud.deepset.ai. */ public DestinationDeepset withBaseUrl(String baseUrl) { Utils.checkNotNull(baseUrl, "baseUrl"); @@ -130,8 +135,10 @@ public DestinationDeepset withBaseUrl(String baseUrl) { return this; } + /** - * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). Defaults to https://api.cloud.deepset.ai. + * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). + * Defaults to https://api.cloud.deepset.ai. */ public DestinationDeepset withBaseUrl(Optional baseUrl) { Utils.checkNotNull(baseUrl, "baseUrl"); @@ -148,6 +155,7 @@ public DestinationDeepset withRetries(double retries) { return this; } + /** * Number of times to retry an action before giving up. */ @@ -166,7 +174,6 @@ public DestinationDeepset withWorkspace(String workspace) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -177,21 +184,18 @@ public boolean equals(java.lang.Object o) { } DestinationDeepset other = (DestinationDeepset) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.retries, other.retries) && - Objects.deepEquals(this.workspace, other.workspace); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.retries, other.retries) && + Utils.enhancedDeepEquals(this.workspace, other.workspace); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - destinationType, - retries, - workspace); + return Utils.enhancedHash( + apiKey, baseUrl, destinationType, + retries, workspace); } @Override @@ -203,21 +207,23 @@ public String toString() { "retries", retries, "workspace", workspace); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional baseUrl; - + private Optional retries; - + private String workspace; - + private Builder() { // force use of static builder() method } + /** * Your deepset cloud API key */ @@ -227,8 +233,10 @@ public Builder apiKey(String apiKey) { return this; } + /** - * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). Defaults to https://api.cloud.deepset.ai. + * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). + * Defaults to https://api.cloud.deepset.ai. */ public Builder baseUrl(String baseUrl) { Utils.checkNotNull(baseUrl, "baseUrl"); @@ -237,7 +245,8 @@ public Builder baseUrl(String baseUrl) { } /** - * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). Defaults to https://api.cloud.deepset.ai. + * URL of deepset Cloud API (e.g. https://api.cloud.deepset.ai, https://api.us.deepset.ai, etc). + * Defaults to https://api.cloud.deepset.ai. */ public Builder baseUrl(Optional baseUrl) { Utils.checkNotNull(baseUrl, "baseUrl"); @@ -245,6 +254,7 @@ public Builder baseUrl(Optional baseUrl) { return this; } + /** * Number of times to retry an action before giving up. */ @@ -263,6 +273,7 @@ public Builder retries(Optional retries) { return this; } + /** * Name of workspace to which to sync the data. */ @@ -271,7 +282,7 @@ public Builder workspace(String workspace) { this.workspace = workspace; return this; } - + public DestinationDeepset build() { if (baseUrl == null) { baseUrl = _SINGLETON_VALUE_BaseUrl.value(); @@ -279,13 +290,13 @@ public DestinationDeepset build() { if (retries == null) { retries = _SINGLETON_VALUE_Retries.value(); } + return new DestinationDeepset( - apiKey, - baseUrl, - retries, + apiKey, baseUrl, retries, workspace); } + private static final LazySingletonValue> _SINGLETON_VALUE_BaseUrl = new LazySingletonValue<>( "base_url", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java index f9264ca8b..9072a5f05 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNull.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DestinationDevNull { @@ -45,9 +45,10 @@ public TestDestination testDestination() { return testDestination; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The type of destination to be used @@ -58,7 +59,6 @@ public DestinationDevNull withTestDestination(TestDestination testDestination) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } DestinationDevNull other = (DestinationDevNull) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.testDestination, other.testDestination); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.testDestination, other.testDestination); } @Override public int hashCode() { - return Objects.hash( - destinationType, - testDestination); + return Utils.enhancedHash( + destinationType, testDestination); } @Override @@ -86,15 +85,17 @@ public String toString() { "destinationType", destinationType, "testDestination", testDestination); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private TestDestination testDestination; - + private Builder() { // force use of static builder() method } + /** * The type of destination to be used */ @@ -103,12 +104,14 @@ public Builder testDestination(TestDestination testDestination) { this.testDestination = testDestination; return this; } - + public DestinationDevNull build() { + return new DestinationDevNull( testDestination); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java index 187dde394..ed0b886f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullLoggingType.java @@ -14,7 +14,7 @@ public enum DestinationDevNullLoggingType { @JsonValue private final String value; - private DestinationDevNullLoggingType(String value) { + DestinationDevNullLoggingType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java index e4d4121b0..2893caa14 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasLoggingType.java @@ -14,7 +14,7 @@ public enum DestinationDevNullSchemasLoggingType { @JsonValue private final String value; - private DestinationDevNullSchemasLoggingType(String value) { + DestinationDevNullSchemasLoggingType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java index 29b2b0be4..da1bafad4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationTestDestinationType.java @@ -14,7 +14,7 @@ public enum DestinationDevNullSchemasTestDestinationTestDestinationType { @JsonValue private final String value; - private DestinationDevNullSchemasTestDestinationTestDestinationType(String value) { + DestinationDevNullSchemasTestDestinationTestDestinationType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java index 4f36aa621..5ab20a747 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullSchemasTestDestinationType.java @@ -14,7 +14,7 @@ public enum DestinationDevNullSchemasTestDestinationType { @JsonValue private final String value; - private DestinationDevNullSchemasTestDestinationType(String value) { + DestinationDevNullSchemasTestDestinationType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java index 7ebb72fe3..2c2e575a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDevNullTestDestinationType.java @@ -14,7 +14,7 @@ public enum DestinationDevNullTestDestinationType { @JsonValue private final String value; - private DestinationDevNullTestDestinationType(String value) { + DestinationDevNullTestDestinationType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDuckdb.java b/src/main/java/com/airbyte/api/models/shared/DestinationDuckdb.java index 6ca3e2552..94ed45efa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDuckdb.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDuckdb.java @@ -13,16 +13,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class DestinationDuckdb { @JsonProperty("destinationType") private Duckdb destinationType; /** - * Path to the .duckdb file, or the text 'md:' to connect to MotherDuck. The file will be placed inside that local mount. For more information check out our <a href="https://docs.airbyte.io/integrations/destinations/duckdb">docs</a> + * Path to the .duckdb file, or the text 'md:' to connect to MotherDuck. The file will be placed inside + * that local mount. For more information check out our docs */ @JsonProperty("destination_path") private String destinationPath; @@ -66,7 +68,9 @@ public Duckdb destinationType() { } /** - * Path to the .duckdb file, or the text 'md:' to connect to MotherDuck. The file will be placed inside that local mount. For more information check out our <a href="https://docs.airbyte.io/integrations/destinations/duckdb">docs</a> + * Path to the .duckdb file, or the text 'md:' to connect to MotherDuck. The file will be placed inside + * that local mount. For more information check out our docs */ @JsonIgnore public String destinationPath() { @@ -89,12 +93,15 @@ public Optional schema() { return schema; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Path to the .duckdb file, or the text 'md:' to connect to MotherDuck. The file will be placed inside that local mount. For more information check out our <a href="https://docs.airbyte.io/integrations/destinations/duckdb">docs</a> + * Path to the .duckdb file, or the text 'md:' to connect to MotherDuck. The file will be placed inside + * that local mount. For more information check out our docs */ public DestinationDuckdb withDestinationPath(String destinationPath) { Utils.checkNotNull(destinationPath, "destinationPath"); @@ -111,6 +118,7 @@ public DestinationDuckdb withMotherduckApiKey(String motherduckApiKey) { return this; } + /** * API key to use for authentication to a MotherDuck database. */ @@ -129,6 +137,7 @@ public DestinationDuckdb withSchema(String schema) { return this; } + /** * Database schema name, default for duckdb is 'main'. */ @@ -138,7 +147,6 @@ public DestinationDuckdb withSchema(Optional schema) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,18 +157,16 @@ public boolean equals(java.lang.Object o) { } DestinationDuckdb other = (DestinationDuckdb) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.destinationPath, other.destinationPath) && - Objects.deepEquals(this.motherduckApiKey, other.motherduckApiKey) && - Objects.deepEquals(this.schema, other.schema); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.destinationPath, other.destinationPath) && + Utils.enhancedDeepEquals(this.motherduckApiKey, other.motherduckApiKey) && + Utils.enhancedDeepEquals(this.schema, other.schema); } @Override public int hashCode() { - return Objects.hash( - destinationType, - destinationPath, - motherduckApiKey, + return Utils.enhancedHash( + destinationType, destinationPath, motherduckApiKey, schema); } @@ -172,21 +178,25 @@ public String toString() { "motherduckApiKey", motherduckApiKey, "schema", schema); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String destinationPath; - + private Optional motherduckApiKey = Optional.empty(); - + private Optional schema = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Path to the .duckdb file, or the text 'md:' to connect to MotherDuck. The file will be placed inside that local mount. For more information check out our <a href="https://docs.airbyte.io/integrations/destinations/duckdb">docs</a> + * Path to the .duckdb file, or the text 'md:' to connect to MotherDuck. The file will be placed inside + * that local mount. For more information check out our docs */ public Builder destinationPath(String destinationPath) { Utils.checkNotNull(destinationPath, "destinationPath"); @@ -194,6 +204,7 @@ public Builder destinationPath(String destinationPath) { return this; } + /** * API key to use for authentication to a MotherDuck database. */ @@ -212,6 +223,7 @@ public Builder motherduckApiKey(Optional motherduckApiKey) { return this; } + /** * Database schema name, default for duckdb is 'main'. */ @@ -229,14 +241,14 @@ public Builder schema(Optional schema) { this.schema = schema; return this; } - + public DestinationDuckdb build() { + return new DestinationDuckdb( - destinationPath, - motherduckApiKey, - schema); + destinationPath, motherduckApiKey, schema); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationDynamodb.java b/src/main/java/com/airbyte/api/models/shared/DestinationDynamodb.java index 7e308ac98..bc6cab2ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationDynamodb.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationDynamodb.java @@ -14,17 +14,18 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationDynamodb { +public class DestinationDynamodb { /** - * The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the DynamoDB. + * The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the + * DynamoDB. */ @JsonProperty("access_key_id") private String accessKeyId; + @JsonProperty("destinationType") private Dynamodb destinationType; @@ -78,11 +79,13 @@ public DestinationDynamodb( String accessKeyId, String dynamodbTableNamePrefix, String secretAccessKey) { - this(accessKeyId, Optional.empty(), Optional.empty(), dynamodbTableNamePrefix, secretAccessKey); + this(accessKeyId, Optional.empty(), Optional.empty(), + dynamodbTableNamePrefix, secretAccessKey); } /** - * The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the DynamoDB. + * The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the + * DynamoDB. */ @JsonIgnore public String accessKeyId() { @@ -127,12 +130,14 @@ public String secretAccessKey() { return secretAccessKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the DynamoDB. + * The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the + * DynamoDB. */ public DestinationDynamodb withAccessKeyId(String accessKeyId) { Utils.checkNotNull(accessKeyId, "accessKeyId"); @@ -149,6 +154,7 @@ public DestinationDynamodb withDynamodbEndpoint(String dynamodbEndpoint) { return this; } + /** * This is your DynamoDB endpoint url.(if you are working with AWS DynamoDB, just leave empty). */ @@ -167,6 +173,7 @@ public DestinationDynamodb withDynamodbRegion(DynamoDBRegion dynamodbRegion) { return this; } + /** * The region of the DynamoDB. */ @@ -194,7 +201,6 @@ public DestinationDynamodb withSecretAccessKey(String secretAccessKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -205,23 +211,19 @@ public boolean equals(java.lang.Object o) { } DestinationDynamodb other = (DestinationDynamodb) o; return - Objects.deepEquals(this.accessKeyId, other.accessKeyId) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.dynamodbEndpoint, other.dynamodbEndpoint) && - Objects.deepEquals(this.dynamodbRegion, other.dynamodbRegion) && - Objects.deepEquals(this.dynamodbTableNamePrefix, other.dynamodbTableNamePrefix) && - Objects.deepEquals(this.secretAccessKey, other.secretAccessKey); + Utils.enhancedDeepEquals(this.accessKeyId, other.accessKeyId) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.dynamodbEndpoint, other.dynamodbEndpoint) && + Utils.enhancedDeepEquals(this.dynamodbRegion, other.dynamodbRegion) && + Utils.enhancedDeepEquals(this.dynamodbTableNamePrefix, other.dynamodbTableNamePrefix) && + Utils.enhancedDeepEquals(this.secretAccessKey, other.secretAccessKey); } @Override public int hashCode() { - return Objects.hash( - accessKeyId, - destinationType, - dynamodbEndpoint, - dynamodbRegion, - dynamodbTableNamePrefix, - secretAccessKey); + return Utils.enhancedHash( + accessKeyId, destinationType, dynamodbEndpoint, + dynamodbRegion, dynamodbTableNamePrefix, secretAccessKey); } @Override @@ -234,25 +236,28 @@ public String toString() { "dynamodbTableNamePrefix", dynamodbTableNamePrefix, "secretAccessKey", secretAccessKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKeyId; - + private Optional dynamodbEndpoint; - + private Optional dynamodbRegion; - + private String dynamodbTableNamePrefix; - + private String secretAccessKey; - + private Builder() { // force use of static builder() method } + /** - * The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the DynamoDB. + * The access key id to access the DynamoDB. Airbyte requires Read and Write permissions to the + * DynamoDB. */ public Builder accessKeyId(String accessKeyId) { Utils.checkNotNull(accessKeyId, "accessKeyId"); @@ -260,6 +265,7 @@ public Builder accessKeyId(String accessKeyId) { return this; } + /** * This is your DynamoDB endpoint url.(if you are working with AWS DynamoDB, just leave empty). */ @@ -278,6 +284,7 @@ public Builder dynamodbEndpoint(Optional dynamodbEndpoint) { return this; } + /** * The region of the DynamoDB. */ @@ -296,6 +303,7 @@ public Builder dynamodbRegion(Optional dynamodbRegion) return this; } + /** * The prefix to use when naming DynamoDB tables. */ @@ -305,6 +313,7 @@ public Builder dynamodbTableNamePrefix(String dynamodbTableNamePrefix) { return this; } + /** * The corresponding secret to the access key id. */ @@ -313,7 +322,7 @@ public Builder secretAccessKey(String secretAccessKey) { this.secretAccessKey = secretAccessKey; return this; } - + public DestinationDynamodb build() { if (dynamodbEndpoint == null) { dynamodbEndpoint = _SINGLETON_VALUE_DynamodbEndpoint.value(); @@ -321,14 +330,13 @@ public DestinationDynamodb build() { if (dynamodbRegion == null) { dynamodbRegion = _SINGLETON_VALUE_DynamodbRegion.value(); } + return new DestinationDynamodb( - accessKeyId, - dynamodbEndpoint, - dynamodbRegion, - dynamodbTableNamePrefix, - secretAccessKey); + accessKeyId, dynamodbEndpoint, dynamodbRegion, + dynamodbTableNamePrefix, secretAccessKey); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearch.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearch.java index b6972b93e..089bf2b02 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearch.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearch.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationElasticsearch { +public class DestinationElasticsearch { /** * The type of authentication to be used */ @@ -34,6 +33,7 @@ public class DestinationElasticsearch { @JsonProperty("ca_certificate") private Optional caCertificate; + @JsonProperty("destinationType") private Elasticsearch destinationType; @@ -44,14 +44,23 @@ public class DestinationElasticsearch { private String endpoint; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * The Path Prefix of the Elasticsearch server + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pathPrefix") + private Optional pathPrefix; + + /** + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; /** - * If a primary key identifier is defined in the source, an upsert will be performed using the primary key value as the elasticsearch doc id. Does not support composite primary keys. + * If a primary key identifier is defined in the source, an upsert will be performed using the primary + * key value as the elasticsearch doc id. Does not support composite primary keys. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("upsert") @@ -62,24 +71,28 @@ public DestinationElasticsearch( @JsonProperty("authenticationMethod") Optional authenticationMethod, @JsonProperty("ca_certificate") Optional caCertificate, @JsonProperty("endpoint") String endpoint, + @JsonProperty("pathPrefix") Optional pathPrefix, @JsonProperty("tunnel_method") Optional tunnelMethod, @JsonProperty("upsert") Optional upsert) { Utils.checkNotNull(authenticationMethod, "authenticationMethod"); Utils.checkNotNull(caCertificate, "caCertificate"); Utils.checkNotNull(endpoint, "endpoint"); + Utils.checkNotNull(pathPrefix, "pathPrefix"); Utils.checkNotNull(tunnelMethod, "tunnelMethod"); Utils.checkNotNull(upsert, "upsert"); this.authenticationMethod = authenticationMethod; this.caCertificate = caCertificate; this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); this.endpoint = endpoint; + this.pathPrefix = pathPrefix; this.tunnelMethod = tunnelMethod; this.upsert = upsert; } public DestinationElasticsearch( String endpoint) { - this(Optional.empty(), Optional.empty(), endpoint, Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), endpoint, + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -113,7 +126,16 @@ public String endpoint() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * The Path Prefix of the Elasticsearch server + */ + @JsonIgnore + public Optional pathPrefix() { + return pathPrefix; + } + + /** + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -122,16 +144,18 @@ public Optional tunnelMethod() { } /** - * If a primary key identifier is defined in the source, an upsert will be performed using the primary key value as the elasticsearch doc id. Does not support composite primary keys. + * If a primary key identifier is defined in the source, an upsert will be performed using the primary + * key value as the elasticsearch doc id. Does not support composite primary keys. */ @JsonIgnore public Optional upsert() { return upsert; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The type of authentication to be used @@ -142,6 +166,7 @@ public DestinationElasticsearch withAuthenticationMethod(AuthenticationMethod au return this; } + /** * The type of authentication to be used */ @@ -160,6 +185,7 @@ public DestinationElasticsearch withCaCertificate(String caCertificate) { return this; } + /** * CA certificate */ @@ -179,7 +205,27 @@ public DestinationElasticsearch withEndpoint(String endpoint) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * The Path Prefix of the Elasticsearch server + */ + public DestinationElasticsearch withPathPrefix(String pathPrefix) { + Utils.checkNotNull(pathPrefix, "pathPrefix"); + this.pathPrefix = Optional.ofNullable(pathPrefix); + return this; + } + + + /** + * The Path Prefix of the Elasticsearch server + */ + public DestinationElasticsearch withPathPrefix(Optional pathPrefix) { + Utils.checkNotNull(pathPrefix, "pathPrefix"); + this.pathPrefix = pathPrefix; + return this; + } + + /** + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationElasticsearch withTunnelMethod(DestinationElasticsearchSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -187,8 +233,10 @@ public DestinationElasticsearch withTunnelMethod(DestinationElasticsearchSSHTunn return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationElasticsearch withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -197,7 +245,8 @@ public DestinationElasticsearch withTunnelMethod(Optional upsert) { Utils.checkNotNull(upsert, "upsert"); @@ -214,7 +265,6 @@ public DestinationElasticsearch withUpsert(Optional upsert) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -225,22 +275,20 @@ public boolean equals(java.lang.Object o) { } DestinationElasticsearch other = (DestinationElasticsearch) o; return - Objects.deepEquals(this.authenticationMethod, other.authenticationMethod) && - Objects.deepEquals(this.caCertificate, other.caCertificate) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.endpoint, other.endpoint) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.upsert, other.upsert); + Utils.enhancedDeepEquals(this.authenticationMethod, other.authenticationMethod) && + Utils.enhancedDeepEquals(this.caCertificate, other.caCertificate) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.endpoint, other.endpoint) && + Utils.enhancedDeepEquals(this.pathPrefix, other.pathPrefix) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.upsert, other.upsert); } @Override public int hashCode() { - return Objects.hash( - authenticationMethod, - caCertificate, - destinationType, - endpoint, - tunnelMethod, + return Utils.enhancedHash( + authenticationMethod, caCertificate, destinationType, + endpoint, pathPrefix, tunnelMethod, upsert); } @@ -251,26 +299,31 @@ public String toString() { "caCertificate", caCertificate, "destinationType", destinationType, "endpoint", endpoint, + "pathPrefix", pathPrefix, "tunnelMethod", tunnelMethod, "upsert", upsert); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional authenticationMethod = Optional.empty(); - + private Optional caCertificate = Optional.empty(); - + private String endpoint; - + + private Optional pathPrefix = Optional.empty(); + private Optional tunnelMethod = Optional.empty(); - + private Optional upsert; - + private Builder() { // force use of static builder() method } + /** * The type of authentication to be used */ @@ -289,6 +342,7 @@ public Builder authenticationMethod(Optional aut return this; } + /** * CA certificate */ @@ -307,6 +361,7 @@ public Builder caCertificate(Optional caCertificate) { return this; } + /** * The full url of the Elasticsearch server */ @@ -316,8 +371,29 @@ public Builder endpoint(String endpoint) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * The Path Prefix of the Elasticsearch server + */ + public Builder pathPrefix(String pathPrefix) { + Utils.checkNotNull(pathPrefix, "pathPrefix"); + this.pathPrefix = Optional.ofNullable(pathPrefix); + return this; + } + + /** + * The Path Prefix of the Elasticsearch server + */ + public Builder pathPrefix(Optional pathPrefix) { + Utils.checkNotNull(pathPrefix, "pathPrefix"); + this.pathPrefix = pathPrefix; + return this; + } + + + /** + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(DestinationElasticsearchSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -326,7 +402,8 @@ public Builder tunnelMethod(DestinationElasticsearchSSHTunnelMethod tunnelMethod } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -334,8 +411,10 @@ public Builder tunnelMethod(Optional upsert) { Utils.checkNotNull(upsert, "upsert"); this.upsert = upsert; return this; } - + public DestinationElasticsearch build() { if (upsert == null) { upsert = _SINGLETON_VALUE_Upsert.value(); } + return new DestinationElasticsearch( - authenticationMethod, - caCertificate, - endpoint, - tunnelMethod, - upsert); + authenticationMethod, caCertificate, endpoint, + pathPrefix, tunnelMethod, upsert); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java index 2723368fc..bfc2e49ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchMethod.java @@ -14,7 +14,7 @@ public enum DestinationElasticsearchMethod { @JsonValue private final String value; - private DestinationElasticsearchMethod(String value) { + DestinationElasticsearchMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNoTunnel.java index 1a2bc0829..0c3b1a204 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationElasticsearchNoTunnel { +public class DestinationElasticsearchNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class DestinationElasticsearchNoTunnel { @JsonCreator public DestinationElasticsearchNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public DestinationElasticsearchTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } DestinationElasticsearchNoTunnel other = (DestinationElasticsearchNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(DestinationElasticsearchNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationElasticsearchNoTunnel build() { + return new DestinationElasticsearchNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNone.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNone.java new file mode 100644 index 000000000..7f0fd3f78 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchNone.java @@ -0,0 +1,85 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; + +/** + * DestinationElasticsearchNone + * + *

    No authentication will be used + */ +public class DestinationElasticsearchNone { + + @JsonProperty("method") + private DestinationElasticsearchMethod method; + + @JsonCreator + public DestinationElasticsearchNone() { + this.method = Builder._SINGLETON_VALUE_Method.value(); + } + + @JsonIgnore + public DestinationElasticsearchMethod method() { + return method; + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationElasticsearchNone other = (DestinationElasticsearchNone) o; + return + Utils.enhancedDeepEquals(this.method, other.method); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + method); + } + + @Override + public String toString() { + return Utils.toString(DestinationElasticsearchNone.class, + "method", method); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public DestinationElasticsearchNone build() { + + return new DestinationElasticsearchNone( + ); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_Method = + new LazySingletonValue<>( + "method", + "\"none\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchPasswordAuthentication.java index b293b68d8..82bbc6656 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchPasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationElasticsearchPasswordAuthentication { +public class DestinationElasticsearchPasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public DestinationElasticsearchPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public DestinationElasticsearchPasswordAuthentication withTunnelPort(long tunnel return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public DestinationElasticsearchPasswordAuthentication withTunnelUserPassword(Str return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } DestinationElasticsearchPasswordAuthentication other = (DestinationElasticsearchPasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public DestinationElasticsearchPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationElasticsearchPasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHKeyAuthentication.java index ac5516d87..8edd1e723 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationElasticsearchSSHKeyAuthentication { +public class DestinationElasticsearchSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public DestinationElasticsearchSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public DestinationElasticsearchSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public DestinationElasticsearchSSHKeyAuthentication withTunnelPort(long tunnelPo return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public DestinationElasticsearchSSHKeyAuthentication withTunnelUser(String tunnel return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } DestinationElasticsearchSSHKeyAuthentication other = (DestinationElasticsearchSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public DestinationElasticsearchSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationElasticsearchSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHTunnelMethod.java index 3b3ccdfb4..5b17695b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationElasticsearchSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = DestinationElasticsearchSSHTunnelMethod._Deserializer.class) public class DestinationElasticsearchSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationElasticsearchSSHTunnelMethod other = (DestinationElasticsearchSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java index 7d5ec1af2..e016706aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasAuthenticationMethodMethod.java @@ -14,7 +14,7 @@ public enum DestinationElasticsearchSchemasAuthenticationMethodMethod { @JsonValue private final String value; - private DestinationElasticsearchSchemasAuthenticationMethodMethod(String value) { + DestinationElasticsearchSchemasAuthenticationMethodMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasMethod.java index 72571f70e..400afc276 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasMethod.java @@ -14,7 +14,7 @@ public enum DestinationElasticsearchSchemasMethod { @JsonValue private final String value; - private DestinationElasticsearchSchemasMethod(String value) { + DestinationElasticsearchSchemasMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethod.java index 067d0769c..c117b1b2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationElasticsearchSchemasTunnelMethod { @JsonValue private final String value; - private DestinationElasticsearchSchemasTunnelMethod(String value) { + DestinationElasticsearchSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethodTunnelMethod.java index 7176dbaa9..9d4fcf697 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationElasticsearchSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private DestinationElasticsearchSchemasTunnelMethodTunnelMethod(String value) { + DestinationElasticsearchSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchTunnelMethod.java index 72846e154..3e2a37321 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationElasticsearchTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationElasticsearchTunnelMethod { @JsonValue private final String value; - private DestinationElasticsearchTunnelMethod(String value) { + DestinationElasticsearchTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java b/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java index a67b38276..b5a599ebb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFirebolt.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationFirebolt { +public class DestinationFirebolt { /** * Firebolt account to login. */ @@ -43,6 +42,7 @@ public class DestinationFirebolt { @JsonProperty("database") private String database; + @JsonProperty("destinationType") private Firebolt destinationType; @@ -98,7 +98,9 @@ public DestinationFirebolt( String clientSecret, String database, String engine) { - this(account, clientId, clientSecret, database, engine, Optional.empty(), Optional.empty()); + this(account, clientId, clientSecret, + database, engine, Optional.empty(), + Optional.empty()); } /** @@ -163,9 +165,10 @@ public Optional loadingMethod() { return (Optional) loadingMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Firebolt account to login. @@ -221,6 +224,7 @@ public DestinationFirebolt withHost(String host) { return this; } + /** * The host name of your Firebolt database. */ @@ -239,6 +243,7 @@ public DestinationFirebolt withLoadingMethod(DestinationFireboltLoadingMethod lo return this; } + /** * Loading method used to select the way data will be uploaded to Firebolt */ @@ -248,7 +253,6 @@ public DestinationFirebolt withLoadingMethod(Optional host = Optional.empty(); - + private Optional loadingMethod = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Firebolt account to login. */ @@ -324,6 +325,7 @@ public Builder account(String account) { return this; } + /** * Firebolt service account ID. */ @@ -333,6 +335,7 @@ public Builder clientId(String clientId) { return this; } + /** * Firebolt secret, corresponding to the service account ID. */ @@ -342,6 +345,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The database to connect to. */ @@ -351,6 +355,7 @@ public Builder database(String database) { return this; } + /** * Engine name to connect to. */ @@ -360,6 +365,7 @@ public Builder engine(String engine) { return this; } + /** * The host name of your Firebolt database. */ @@ -378,6 +384,7 @@ public Builder host(Optional host) { return this; } + /** * Loading method used to select the way data will be uploaded to Firebolt */ @@ -395,18 +402,16 @@ public Builder loadingMethod(Optional _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java index 88d932478..cbcc70dd5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltLoadingMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationFireboltLoadingMethod @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationFireboltLoadingMethod other = (DestinationFireboltLoadingMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java index 18693a986..be4d0591f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltMethod.java @@ -14,7 +14,7 @@ public enum DestinationFireboltMethod { @JsonValue private final String value; - private DestinationFireboltMethod(String value) { + DestinationFireboltMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java index 6253c6259..3cf3f1bbd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFireboltSchemasMethod.java @@ -14,7 +14,7 @@ public enum DestinationFireboltSchemasMethod { @JsonValue private final String value; - private DestinationFireboltSchemasMethod(String value) { + DestinationFireboltSchemasMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java b/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java index 07277257d..0b169ff88 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationFirestore.java @@ -13,18 +13,20 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationFirestore { +public class DestinationFirestore { /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if you need help + * generating this key. Default credentials will be used if this field is left empty. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials_json") private Optional credentialsJson; + @JsonProperty("destinationType") private Firestore destinationType; @@ -51,7 +53,9 @@ public DestinationFirestore( } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if you need help + * generating this key. Default credentials will be used if this field is left empty. */ @JsonIgnore public Optional credentialsJson() { @@ -71,12 +75,15 @@ public String projectId() { return projectId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if you need help + * generating this key. Default credentials will be used if this field is left empty. */ public DestinationFirestore withCredentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -84,8 +91,11 @@ public DestinationFirestore withCredentialsJson(String credentialsJson) { return this; } + /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if you need help + * generating this key. Default credentials will be used if this field is left empty. */ public DestinationFirestore withCredentialsJson(Optional credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -102,7 +112,6 @@ public DestinationFirestore withProjectId(String projectId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,17 +122,15 @@ public boolean equals(java.lang.Object o) { } DestinationFirestore other = (DestinationFirestore) o; return - Objects.deepEquals(this.credentialsJson, other.credentialsJson) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.projectId, other.projectId); + Utils.enhancedDeepEquals(this.credentialsJson, other.credentialsJson) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.projectId, other.projectId); } @Override public int hashCode() { - return Objects.hash( - credentialsJson, - destinationType, - projectId); + return Utils.enhancedHash( + credentialsJson, destinationType, projectId); } @Override @@ -133,19 +140,23 @@ public String toString() { "destinationType", destinationType, "projectId", projectId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentialsJson = Optional.empty(); - + private String projectId; - + private Builder() { // force use of static builder() method } + /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if you need help + * generating this key. Default credentials will be used if this field is left empty. */ public Builder credentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -154,7 +165,9 @@ public Builder credentialsJson(String credentialsJson) { } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/firestore">docs</a> if you need help generating this key. Default credentials will be used if this field is left empty. + * The contents of the JSON service account key. Check out the docs if you need help + * generating this key. Default credentials will be used if this field is left empty. */ public Builder credentialsJson(Optional credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -162,6 +175,7 @@ public Builder credentialsJson(Optional credentialsJson) { return this; } + /** * The GCP project ID for the project containing the target BigQuery dataset. */ @@ -170,13 +184,14 @@ public Builder projectId(String projectId) { this.projectId = projectId; return this; } - + public DestinationFirestore build() { + return new DestinationFirestore( - credentialsJson, - projectId); + credentialsJson, projectId); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcs.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcs.java index 58126245a..3d5c36a78 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcs.java @@ -14,28 +14,40 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationGcs { +public class DestinationGcs { /** - * An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. + * An HMAC key is a type of credential and can be associated with a service account or a user account + * in Cloud Storage. Read more here. */ @JsonProperty("credential") private DestinationGcsAuthentication credential; + @JsonProperty("destinationType") private DestinationGcsGcs destinationType; /** - * Output data format. One of the following formats must be selected - <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#advantages_of_avro">AVRO</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-parquet#parquet_schemas">PARQUET</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-csv#loading_csv_data_into_a_table">CSV</a> format, or <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-json#loading_json_data_into_a_new_table">JSONL</a> format. + * Output data format. One of the following formats must be selected - AVRO + * format, PARQUET + * format, CSV + * format, or JSONL + * format. */ @JsonProperty("format") private DestinationGcsOutputFormat format; /** - * You can find the bucket name in the App Engine Admin console Application Settings page, under the label Google Cloud Storage Bucket. Read more <a href="https://cloud.google.com/storage/docs/naming-buckets">here</a>. + * You can find the bucket name in the App Engine Admin console Application Settings page, under the + * label Google Cloud Storage Bucket. Read more here. */ @JsonProperty("gcs_bucket_name") private String gcsBucketName; @@ -47,7 +59,8 @@ public class DestinationGcs { private String gcsBucketPath; /** - * Select a Region of the GCS Bucket. Read more <a href="https://cloud.google.com/storage/docs/locations">here</a>. + * Select a Region of the GCS Bucket. Read more here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("gcs_bucket_region") @@ -78,11 +91,14 @@ public DestinationGcs( DestinationGcsOutputFormat format, String gcsBucketName, String gcsBucketPath) { - this(credential, format, gcsBucketName, gcsBucketPath, Optional.empty()); + this(credential, format, gcsBucketName, + gcsBucketPath, Optional.empty()); } /** - * An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. + * An HMAC key is a type of credential and can be associated with a service account or a user account + * in Cloud Storage. Read more here. */ @JsonIgnore public DestinationGcsAuthentication credential() { @@ -95,7 +111,15 @@ public DestinationGcsGcs destinationType() { } /** - * Output data format. One of the following formats must be selected - <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#advantages_of_avro">AVRO</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-parquet#parquet_schemas">PARQUET</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-csv#loading_csv_data_into_a_table">CSV</a> format, or <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-json#loading_json_data_into_a_new_table">JSONL</a> format. + * Output data format. One of the following formats must be selected - AVRO + * format, PARQUET + * format, CSV + * format, or JSONL + * format. */ @JsonIgnore public DestinationGcsOutputFormat format() { @@ -103,7 +127,9 @@ public DestinationGcsOutputFormat format() { } /** - * You can find the bucket name in the App Engine Admin console Application Settings page, under the label Google Cloud Storage Bucket. Read more <a href="https://cloud.google.com/storage/docs/naming-buckets">here</a>. + * You can find the bucket name in the App Engine Admin console Application Settings page, under the + * label Google Cloud Storage Bucket. Read more here. */ @JsonIgnore public String gcsBucketName() { @@ -119,7 +145,8 @@ public String gcsBucketPath() { } /** - * Select a Region of the GCS Bucket. Read more <a href="https://cloud.google.com/storage/docs/locations">here</a>. + * Select a Region of the GCS Bucket. Read more here. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -127,12 +154,15 @@ public Optional gcsBucketRegion() { return (Optional) gcsBucketRegion; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. + * An HMAC key is a type of credential and can be associated with a service account or a user account + * in Cloud Storage. Read more here. */ public DestinationGcs withCredential(DestinationGcsAuthentication credential) { Utils.checkNotNull(credential, "credential"); @@ -141,7 +171,15 @@ public DestinationGcs withCredential(DestinationGcsAuthentication credential) { } /** - * Output data format. One of the following formats must be selected - <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#advantages_of_avro">AVRO</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-parquet#parquet_schemas">PARQUET</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-csv#loading_csv_data_into_a_table">CSV</a> format, or <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-json#loading_json_data_into_a_new_table">JSONL</a> format. + * Output data format. One of the following formats must be selected - AVRO + * format, PARQUET + * format, CSV + * format, or JSONL + * format. */ public DestinationGcs withFormat(DestinationGcsOutputFormat format) { Utils.checkNotNull(format, "format"); @@ -150,7 +188,9 @@ public DestinationGcs withFormat(DestinationGcsOutputFormat format) { } /** - * You can find the bucket name in the App Engine Admin console Application Settings page, under the label Google Cloud Storage Bucket. Read more <a href="https://cloud.google.com/storage/docs/naming-buckets">here</a>. + * You can find the bucket name in the App Engine Admin console Application Settings page, under the + * label Google Cloud Storage Bucket. Read more here. */ public DestinationGcs withGcsBucketName(String gcsBucketName) { Utils.checkNotNull(gcsBucketName, "gcsBucketName"); @@ -168,7 +208,8 @@ public DestinationGcs withGcsBucketPath(String gcsBucketPath) { } /** - * Select a Region of the GCS Bucket. Read more <a href="https://cloud.google.com/storage/docs/locations">here</a>. + * Select a Region of the GCS Bucket. Read more here. */ public DestinationGcs withGcsBucketRegion(GCSBucketRegion gcsBucketRegion) { Utils.checkNotNull(gcsBucketRegion, "gcsBucketRegion"); @@ -176,8 +217,10 @@ public DestinationGcs withGcsBucketRegion(GCSBucketRegion gcsBucketRegion) { return this; } + /** - * Select a Region of the GCS Bucket. Read more <a href="https://cloud.google.com/storage/docs/locations">here</a>. + * Select a Region of the GCS Bucket. Read more here. */ public DestinationGcs withGcsBucketRegion(Optional gcsBucketRegion) { Utils.checkNotNull(gcsBucketRegion, "gcsBucketRegion"); @@ -185,7 +228,6 @@ public DestinationGcs withGcsBucketRegion(Optional gc return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -196,23 +238,19 @@ public boolean equals(java.lang.Object o) { } DestinationGcs other = (DestinationGcs) o; return - Objects.deepEquals(this.credential, other.credential) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.format, other.format) && - Objects.deepEquals(this.gcsBucketName, other.gcsBucketName) && - Objects.deepEquals(this.gcsBucketPath, other.gcsBucketPath) && - Objects.deepEquals(this.gcsBucketRegion, other.gcsBucketRegion); + Utils.enhancedDeepEquals(this.credential, other.credential) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.format, other.format) && + Utils.enhancedDeepEquals(this.gcsBucketName, other.gcsBucketName) && + Utils.enhancedDeepEquals(this.gcsBucketPath, other.gcsBucketPath) && + Utils.enhancedDeepEquals(this.gcsBucketRegion, other.gcsBucketRegion); } @Override public int hashCode() { - return Objects.hash( - credential, - destinationType, - format, - gcsBucketName, - gcsBucketPath, - gcsBucketRegion); + return Utils.enhancedHash( + credential, destinationType, format, + gcsBucketName, gcsBucketPath, gcsBucketRegion); } @Override @@ -225,25 +263,29 @@ public String toString() { "gcsBucketPath", gcsBucketPath, "gcsBucketRegion", gcsBucketRegion); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationGcsAuthentication credential; - + private DestinationGcsOutputFormat format; - + private String gcsBucketName; - + private String gcsBucketPath; - + private Optional gcsBucketRegion; - + private Builder() { // force use of static builder() method } + /** - * An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. + * An HMAC key is a type of credential and can be associated with a service account or a user account + * in Cloud Storage. Read more here. */ public Builder credential(DestinationGcsAuthentication credential) { Utils.checkNotNull(credential, "credential"); @@ -251,8 +293,17 @@ public Builder credential(DestinationGcsAuthentication credential) { return this; } + /** - * Output data format. One of the following formats must be selected - <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#advantages_of_avro">AVRO</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-parquet#parquet_schemas">PARQUET</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-csv#loading_csv_data_into_a_table">CSV</a> format, or <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-json#loading_json_data_into_a_new_table">JSONL</a> format. + * Output data format. One of the following formats must be selected - AVRO + * format, PARQUET + * format, CSV + * format, or JSONL + * format. */ public Builder format(DestinationGcsOutputFormat format) { Utils.checkNotNull(format, "format"); @@ -260,8 +311,11 @@ public Builder format(DestinationGcsOutputFormat format) { return this; } + /** - * You can find the bucket name in the App Engine Admin console Application Settings page, under the label Google Cloud Storage Bucket. Read more <a href="https://cloud.google.com/storage/docs/naming-buckets">here</a>. + * You can find the bucket name in the App Engine Admin console Application Settings page, under the + * label Google Cloud Storage Bucket. Read more here. */ public Builder gcsBucketName(String gcsBucketName) { Utils.checkNotNull(gcsBucketName, "gcsBucketName"); @@ -269,6 +323,7 @@ public Builder gcsBucketName(String gcsBucketName) { return this; } + /** * GCS Bucket Path string Subdirectory under the above bucket to sync the data into. */ @@ -278,8 +333,10 @@ public Builder gcsBucketPath(String gcsBucketPath) { return this; } + /** - * Select a Region of the GCS Bucket. Read more <a href="https://cloud.google.com/storage/docs/locations">here</a>. + * Select a Region of the GCS Bucket. Read more here. */ public Builder gcsBucketRegion(GCSBucketRegion gcsBucketRegion) { Utils.checkNotNull(gcsBucketRegion, "gcsBucketRegion"); @@ -288,26 +345,26 @@ public Builder gcsBucketRegion(GCSBucketRegion gcsBucketRegion) { } /** - * Select a Region of the GCS Bucket. Read more <a href="https://cloud.google.com/storage/docs/locations">here</a>. + * Select a Region of the GCS Bucket. Read more here. */ public Builder gcsBucketRegion(Optional gcsBucketRegion) { Utils.checkNotNull(gcsBucketRegion, "gcsBucketRegion"); this.gcsBucketRegion = gcsBucketRegion; return this; } - + public DestinationGcs build() { if (gcsBucketRegion == null) { gcsBucketRegion = _SINGLETON_VALUE_GcsBucketRegion.value(); } + return new DestinationGcs( - credential, - format, - gcsBucketName, - gcsBucketPath, - gcsBucketRegion); + credential, format, gcsBucketName, + gcsBucketPath, gcsBucketRegion); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java index 4f4347879..03430606a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsAuthentication.java @@ -14,12 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationGcsAuthentication * - *

    An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. + *

    An HMAC key is a type of credential and can be associated with a service account or a user account + * in Cloud Storage. Read more here. */ @JsonDeserialize(using = DestinationGcsAuthentication._Deserializer.class) public class DestinationGcsAuthentication { @@ -66,12 +67,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationGcsAuthentication other = (DestinationGcsAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCSVCommaSeparatedValues.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCSVCommaSeparatedValues.java index 01990a158..8da9f48e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCSVCommaSeparatedValues.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCSVCommaSeparatedValues.java @@ -14,25 +14,27 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationGcsCSVCommaSeparatedValues { +public class DestinationGcsCSVCommaSeparatedValues { /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".csv.gz"). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression") private Optional compression; /** - * Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details. + * Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs + * for details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("flattening") private Optional flattening; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; @@ -55,7 +57,8 @@ public DestinationGcsCSVCommaSeparatedValues() { } /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".csv.gz"). */ @SuppressWarnings("unchecked") @JsonIgnore @@ -64,7 +67,8 @@ public Optional compression() { } /** - * Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details. + * Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs + * for details. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -78,12 +82,14 @@ public Optional formatType() { return (Optional) formatType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".csv.gz"). */ public DestinationGcsCSVCommaSeparatedValues withCompression(Compression compression) { Utils.checkNotNull(compression, "compression"); @@ -91,8 +97,10 @@ public DestinationGcsCSVCommaSeparatedValues withCompression(Compression compres return this; } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".csv.gz"). */ public DestinationGcsCSVCommaSeparatedValues withCompression(Optional compression) { Utils.checkNotNull(compression, "compression"); @@ -101,7 +109,8 @@ public DestinationGcsCSVCommaSeparatedValues withCompression(Optional flattening) { Utils.checkNotNull(flattening, "flattening"); @@ -124,13 +135,13 @@ public DestinationGcsCSVCommaSeparatedValues withFormatType(DestinationGcsSchema return this; } + public DestinationGcsCSVCommaSeparatedValues withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -141,17 +152,15 @@ public boolean equals(java.lang.Object o) { } DestinationGcsCSVCommaSeparatedValues other = (DestinationGcsCSVCommaSeparatedValues) o; return - Objects.deepEquals(this.compression, other.compression) && - Objects.deepEquals(this.flattening, other.flattening) && - Objects.deepEquals(this.formatType, other.formatType); + Utils.enhancedDeepEquals(this.compression, other.compression) && + Utils.enhancedDeepEquals(this.flattening, other.flattening) && + Utils.enhancedDeepEquals(this.formatType, other.formatType); } @Override public int hashCode() { - return Objects.hash( - compression, - flattening, - formatType); + return Utils.enhancedHash( + compression, flattening, formatType); } @Override @@ -161,21 +170,24 @@ public String toString() { "flattening", flattening, "formatType", formatType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional compression = Optional.empty(); - + private Optional flattening; - + private Optional formatType; - + private Builder() { // force use of static builder() method } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".csv.gz"). */ public Builder compression(Compression compression) { Utils.checkNotNull(compression, "compression"); @@ -184,7 +196,8 @@ public Builder compression(Compression compression) { } /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".csv.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".csv.gz"). */ public Builder compression(Optional compression) { Utils.checkNotNull(compression, "compression"); @@ -192,8 +205,10 @@ public Builder compression(Optional compression) { return this; } + /** - * Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details. + * Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs + * for details. */ public Builder flattening(Normalization flattening) { Utils.checkNotNull(flattening, "flattening"); @@ -202,7 +217,8 @@ public Builder flattening(Normalization flattening) { } /** - * Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details. + * Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs + * for details. */ public Builder flattening(Optional flattening) { Utils.checkNotNull(flattening, "flattening"); @@ -210,6 +226,7 @@ public Builder flattening(Optional flattening) { return this; } + public Builder formatType(DestinationGcsSchemasFormatType formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = Optional.ofNullable(formatType); @@ -221,7 +238,7 @@ public Builder formatType(Optional fo this.formatType = formatType; return this; } - + public DestinationGcsCSVCommaSeparatedValues build() { if (flattening == null) { flattening = _SINGLETON_VALUE_Flattening.value(); @@ -229,12 +246,12 @@ public DestinationGcsCSVCommaSeparatedValues build() { if (formatType == null) { formatType = _SINGLETON_VALUE_FormatType.value(); } + return new DestinationGcsCSVCommaSeparatedValues( - compression, - flattening, - formatType); + compression, flattening, formatType); } + private static final LazySingletonValue> _SINGLETON_VALUE_Flattening = new LazySingletonValue<>( "flattening", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java index 7f5987989..ba5b1e625 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCodec.java @@ -14,7 +14,7 @@ public enum DestinationGcsCodec { @JsonValue private final String value; - private DestinationGcsCodec(String value) { + DestinationGcsCodec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompression.java index 2e42b78a6..d154564a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompression.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationGcsCompression * - *

    Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + *

    Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ @JsonDeserialize(using = DestinationGcsCompression._Deserializer.class) public class DestinationGcsCompression { @@ -72,12 +72,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationGcsCompression other = (DestinationGcsCompression) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java index 3df8c31cb..6ac202834 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionCodec.java @@ -25,7 +25,7 @@ public enum DestinationGcsCompressionCodec { @JsonValue private final String value; - private DestinationGcsCompressionCodec(String value) { + DestinationGcsCompressionCodec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionType.java index 90c43f29d..27e70d488 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsCompressionType.java @@ -14,7 +14,7 @@ public enum DestinationGcsCompressionType { @JsonValue private final String value; - private DestinationGcsCompressionType(String value) { + DestinationGcsCompressionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsFormatType.java index ad5a11100..d15b8441a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsFormatType.java @@ -14,7 +14,7 @@ public enum DestinationGcsFormatType { @JsonValue private final String value; - private DestinationGcsFormatType(String value) { + DestinationGcsFormatType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsGZIP.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsGZIP.java index 6312f061a..0e8f033b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsGZIP.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsGZIP.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class DestinationGcsGZIP { @JsonInclude(Include.NON_ABSENT) @@ -40,9 +40,10 @@ public Optional compressionType() { return (Optional) compressionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationGcsGZIP withCompressionType(DestinationGcsSchemasFormatCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); @@ -50,13 +51,13 @@ public DestinationGcsGZIP withCompressionType(DestinationGcsSchemasFormatCompres return this; } + public DestinationGcsGZIP withCompressionType(Optional compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = compressionType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,12 +68,12 @@ public boolean equals(java.lang.Object o) { } DestinationGcsGZIP other = (DestinationGcsGZIP) o; return - Objects.deepEquals(this.compressionType, other.compressionType); + Utils.enhancedDeepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( compressionType); } @@ -81,15 +82,17 @@ public String toString() { return Utils.toString(DestinationGcsGZIP.class, "compressionType", compressionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional compressionType; - + private Builder() { // force use of static builder() method } + public Builder compressionType(DestinationGcsSchemasFormatCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -101,15 +104,17 @@ public Builder compressionType(Optional> _SINGLETON_VALUE_CompressionType = new LazySingletonValue<>( "compression_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java index 6e5d430af..bd9f11968 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsGcs.java @@ -14,7 +14,7 @@ public enum DestinationGcsGcs { @JsonValue private final String value; - private DestinationGcsGcs(String value) { + DestinationGcsGcs(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsJSONLinesNewlineDelimitedJSON.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsJSONLinesNewlineDelimitedJSON.java index 8cd93af0e..9c05600af 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsJSONLinesNewlineDelimitedJSON.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsJSONLinesNewlineDelimitedJSON.java @@ -14,18 +14,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationGcsJSONLinesNewlineDelimitedJSON { +public class DestinationGcsJSONLinesNewlineDelimitedJSON { /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression") private Optional compression; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; @@ -45,7 +46,8 @@ public DestinationGcsJSONLinesNewlineDelimitedJSON() { } /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ @SuppressWarnings("unchecked") @JsonIgnore @@ -59,12 +61,14 @@ public Optional formatType() { return (Optional) formatType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ public DestinationGcsJSONLinesNewlineDelimitedJSON withCompression(DestinationGcsCompression compression) { Utils.checkNotNull(compression, "compression"); @@ -72,8 +76,10 @@ public DestinationGcsJSONLinesNewlineDelimitedJSON withCompression(DestinationGc return this; } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ public DestinationGcsJSONLinesNewlineDelimitedJSON withCompression(Optional compression) { Utils.checkNotNull(compression, "compression"); @@ -87,13 +93,13 @@ public DestinationGcsJSONLinesNewlineDelimitedJSON withFormatType(DestinationGcs return this; } + public DestinationGcsJSONLinesNewlineDelimitedJSON withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,15 +110,14 @@ public boolean equals(java.lang.Object o) { } DestinationGcsJSONLinesNewlineDelimitedJSON other = (DestinationGcsJSONLinesNewlineDelimitedJSON) o; return - Objects.deepEquals(this.compression, other.compression) && - Objects.deepEquals(this.formatType, other.formatType); + Utils.enhancedDeepEquals(this.compression, other.compression) && + Utils.enhancedDeepEquals(this.formatType, other.formatType); } @Override public int hashCode() { - return Objects.hash( - compression, - formatType); + return Utils.enhancedHash( + compression, formatType); } @Override @@ -121,19 +126,22 @@ public String toString() { "compression", compression, "formatType", formatType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional compression = Optional.empty(); - + private Optional formatType; - + private Builder() { // force use of static builder() method } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ public Builder compression(DestinationGcsCompression compression) { Utils.checkNotNull(compression, "compression"); @@ -142,7 +150,8 @@ public Builder compression(DestinationGcsCompression compression) { } /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ public Builder compression(Optional compression) { Utils.checkNotNull(compression, "compression"); @@ -150,6 +159,7 @@ public Builder compression(Optional compres return this; } + public Builder formatType(DestinationGcsSchemasFormatFormatType formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = Optional.ofNullable(formatType); @@ -161,16 +171,17 @@ public Builder formatType(Optional> _SINGLETON_VALUE_FormatType = new LazySingletonValue<>( "format_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsNoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsNoCompression.java index 7efeea8ac..55bb93cc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsNoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsNoCompression.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class DestinationGcsNoCompression { @JsonInclude(Include.NON_ABSENT) @@ -40,9 +40,10 @@ public Optional compressionType() { return (Optional) compressionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationGcsNoCompression withCompressionType(CompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); @@ -50,13 +51,13 @@ public DestinationGcsNoCompression withCompressionType(CompressionType compressi return this; } + public DestinationGcsNoCompression withCompressionType(Optional compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = compressionType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,12 +68,12 @@ public boolean equals(java.lang.Object o) { } DestinationGcsNoCompression other = (DestinationGcsNoCompression) o; return - Objects.deepEquals(this.compressionType, other.compressionType); + Utils.enhancedDeepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( compressionType); } @@ -81,15 +82,17 @@ public String toString() { return Utils.toString(DestinationGcsNoCompression.class, "compressionType", compressionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional compressionType; - + private Builder() { // force use of static builder() method } + public Builder compressionType(CompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -101,15 +104,17 @@ public Builder compressionType(Optional compressionTy this.compressionType = compressionType; return this; } - + public DestinationGcsNoCompression build() { if (compressionType == null) { compressionType = _SINGLETON_VALUE_CompressionType.value(); } + return new DestinationGcsNoCompression( compressionType); } + private static final LazySingletonValue> _SINGLETON_VALUE_CompressionType = new LazySingletonValue<>( "compression_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsOutputFormat.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsOutputFormat.java index f77e2f551..ce516d1c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsOutputFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsOutputFormat.java @@ -14,12 +14,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationGcsOutputFormat * - *

    Output data format. One of the following formats must be selected - <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-avro#advantages_of_avro">AVRO</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-parquet#parquet_schemas">PARQUET</a> format, <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-csv#loading_csv_data_into_a_table">CSV</a> format, or <a href="https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-json#loading_json_data_into_a_new_table">JSONL</a> format. + *

    Output data format. One of the following formats must be selected - AVRO + * format, PARQUET + * format, CSV + * format, or JSONL + * format. */ @JsonDeserialize(using = DestinationGcsOutputFormat._Deserializer.class) public class DestinationGcsOutputFormat { @@ -84,12 +91,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationGcsOutputFormat other = (DestinationGcsOutputFormat) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsParquetColumnarStorage.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsParquetColumnarStorage.java index 43afdb73b..0af15d031 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsParquetColumnarStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsParquetColumnarStorage.java @@ -16,13 +16,15 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationGcsParquetColumnarStorage { +public class DestinationGcsParquetColumnarStorage { /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("block_size_mb") @@ -43,25 +45,31 @@ public class DestinationGcsParquetColumnarStorage { private Optional dictionaryEncoding; /** - * There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB. + * There is one dictionary page per column per row group when dictionary encoding is used. The + * dictionary page size works like the page size but for dictionary. Default: 1024 KB. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("dictionary_page_size_kb") private Optional dictionaryPageSizeKb; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; /** - * Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB. + * Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. + * Default: 8 MB. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("max_padding_size_mb") private Optional maxPaddingSizeMb; /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("page_size_kb") @@ -93,11 +101,16 @@ public DestinationGcsParquetColumnarStorage( } public DestinationGcsParquetColumnarStorage() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ @JsonIgnore public Optional blockSizeMb() { @@ -122,7 +135,8 @@ public Optional dictionaryEncoding() { } /** - * There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB. + * There is one dictionary page per column per row group when dictionary encoding is used. The + * dictionary page size works like the page size but for dictionary. Default: 1024 KB. */ @JsonIgnore public Optional dictionaryPageSizeKb() { @@ -136,7 +150,8 @@ public Optional formatType() } /** - * Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB. + * Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. + * Default: 8 MB. */ @JsonIgnore public Optional maxPaddingSizeMb() { @@ -144,19 +159,26 @@ public Optional maxPaddingSizeMb() { } /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ @JsonIgnore public Optional pageSizeKb() { return pageSizeKb; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ public DestinationGcsParquetColumnarStorage withBlockSizeMb(long blockSizeMb) { Utils.checkNotNull(blockSizeMb, "blockSizeMb"); @@ -164,8 +186,12 @@ public DestinationGcsParquetColumnarStorage withBlockSizeMb(long blockSizeMb) { return this; } + /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ public DestinationGcsParquetColumnarStorage withBlockSizeMb(Optional blockSizeMb) { Utils.checkNotNull(blockSizeMb, "blockSizeMb"); @@ -182,6 +208,7 @@ public DestinationGcsParquetColumnarStorage withCompressionCodec(DestinationGcsC return this; } + /** * The compression algorithm used to compress data pages. */ @@ -200,6 +227,7 @@ public DestinationGcsParquetColumnarStorage withDictionaryEncoding(boolean dicti return this; } + /** * Default: true. */ @@ -210,7 +238,8 @@ public DestinationGcsParquetColumnarStorage withDictionaryEncoding(Optional dictionaryPageSizeKb) { Utils.checkNotNull(dictionaryPageSizeKb, "dictionaryPageSizeKb"); @@ -233,6 +264,7 @@ public DestinationGcsParquetColumnarStorage withFormatType(DestinationGcsSchemas return this; } + public DestinationGcsParquetColumnarStorage withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; @@ -240,7 +272,8 @@ public DestinationGcsParquetColumnarStorage withFormatType(Optional maxPaddingSizeMb) { Utils.checkNotNull(maxPaddingSizeMb, "maxPaddingSizeMb"); @@ -258,7 +293,10 @@ public DestinationGcsParquetColumnarStorage withMaxPaddingSizeMb(Optional } /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ public DestinationGcsParquetColumnarStorage withPageSizeKb(long pageSizeKb) { Utils.checkNotNull(pageSizeKb, "pageSizeKb"); @@ -266,8 +304,12 @@ public DestinationGcsParquetColumnarStorage withPageSizeKb(long pageSizeKb) { return this; } + /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ public DestinationGcsParquetColumnarStorage withPageSizeKb(Optional pageSizeKb) { Utils.checkNotNull(pageSizeKb, "pageSizeKb"); @@ -275,7 +317,6 @@ public DestinationGcsParquetColumnarStorage withPageSizeKb(Optional pageSi return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -286,24 +327,20 @@ public boolean equals(java.lang.Object o) { } DestinationGcsParquetColumnarStorage other = (DestinationGcsParquetColumnarStorage) o; return - Objects.deepEquals(this.blockSizeMb, other.blockSizeMb) && - Objects.deepEquals(this.compressionCodec, other.compressionCodec) && - Objects.deepEquals(this.dictionaryEncoding, other.dictionaryEncoding) && - Objects.deepEquals(this.dictionaryPageSizeKb, other.dictionaryPageSizeKb) && - Objects.deepEquals(this.formatType, other.formatType) && - Objects.deepEquals(this.maxPaddingSizeMb, other.maxPaddingSizeMb) && - Objects.deepEquals(this.pageSizeKb, other.pageSizeKb); + Utils.enhancedDeepEquals(this.blockSizeMb, other.blockSizeMb) && + Utils.enhancedDeepEquals(this.compressionCodec, other.compressionCodec) && + Utils.enhancedDeepEquals(this.dictionaryEncoding, other.dictionaryEncoding) && + Utils.enhancedDeepEquals(this.dictionaryPageSizeKb, other.dictionaryPageSizeKb) && + Utils.enhancedDeepEquals(this.formatType, other.formatType) && + Utils.enhancedDeepEquals(this.maxPaddingSizeMb, other.maxPaddingSizeMb) && + Utils.enhancedDeepEquals(this.pageSizeKb, other.pageSizeKb); } @Override public int hashCode() { - return Objects.hash( - blockSizeMb, - compressionCodec, - dictionaryEncoding, - dictionaryPageSizeKb, - formatType, - maxPaddingSizeMb, + return Utils.enhancedHash( + blockSizeMb, compressionCodec, dictionaryEncoding, + dictionaryPageSizeKb, formatType, maxPaddingSizeMb, pageSizeKb); } @@ -318,29 +355,34 @@ public String toString() { "maxPaddingSizeMb", maxPaddingSizeMb, "pageSizeKb", pageSizeKb); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional blockSizeMb; - + private Optional compressionCodec; - + private Optional dictionaryEncoding; - + private Optional dictionaryPageSizeKb; - + private Optional formatType; - + private Optional maxPaddingSizeMb; - + private Optional pageSizeKb; - + private Builder() { // force use of static builder() method } + /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ public Builder blockSizeMb(long blockSizeMb) { Utils.checkNotNull(blockSizeMb, "blockSizeMb"); @@ -349,7 +391,10 @@ public Builder blockSizeMb(long blockSizeMb) { } /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ public Builder blockSizeMb(Optional blockSizeMb) { Utils.checkNotNull(blockSizeMb, "blockSizeMb"); @@ -357,6 +402,7 @@ public Builder blockSizeMb(Optional blockSizeMb) { return this; } + /** * The compression algorithm used to compress data pages. */ @@ -375,6 +421,7 @@ public Builder compressionCodec(Optional dictionaryEncoding) { return this; } + /** - * There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB. + * There is one dictionary page per column per row group when dictionary encoding is used. The + * dictionary page size works like the page size but for dictionary. Default: 1024 KB. */ public Builder dictionaryPageSizeKb(long dictionaryPageSizeKb) { Utils.checkNotNull(dictionaryPageSizeKb, "dictionaryPageSizeKb"); @@ -403,7 +452,8 @@ public Builder dictionaryPageSizeKb(long dictionaryPageSizeKb) { } /** - * There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB. + * There is one dictionary page per column per row group when dictionary encoding is used. The + * dictionary page size works like the page size but for dictionary. Default: 1024 KB. */ public Builder dictionaryPageSizeKb(Optional dictionaryPageSizeKb) { Utils.checkNotNull(dictionaryPageSizeKb, "dictionaryPageSizeKb"); @@ -411,6 +461,7 @@ public Builder dictionaryPageSizeKb(Optional dictionaryPageSizeKb) { return this; } + public Builder formatType(DestinationGcsSchemasFormatOutputFormatFormatType formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = Optional.ofNullable(formatType); @@ -423,8 +474,10 @@ public Builder formatType(Optional maxPaddingSizeMb) { Utils.checkNotNull(maxPaddingSizeMb, "maxPaddingSizeMb"); @@ -441,8 +495,12 @@ public Builder maxPaddingSizeMb(Optional maxPaddingSizeMb) { return this; } + /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ public Builder pageSizeKb(long pageSizeKb) { Utils.checkNotNull(pageSizeKb, "pageSizeKb"); @@ -451,14 +509,17 @@ public Builder pageSizeKb(long pageSizeKb) { } /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ public Builder pageSizeKb(Optional pageSizeKb) { Utils.checkNotNull(pageSizeKb, "pageSizeKb"); this.pageSizeKb = pageSizeKb; return this; } - + public DestinationGcsParquetColumnarStorage build() { if (blockSizeMb == null) { blockSizeMb = _SINGLETON_VALUE_BlockSizeMb.value(); @@ -481,16 +542,14 @@ public DestinationGcsParquetColumnarStorage build() { if (pageSizeKb == null) { pageSizeKb = _SINGLETON_VALUE_PageSizeKb.value(); } + return new DestinationGcsParquetColumnarStorage( - blockSizeMb, - compressionCodec, - dictionaryEncoding, - dictionaryPageSizeKb, - formatType, - maxPaddingSizeMb, + blockSizeMb, compressionCodec, dictionaryEncoding, + dictionaryPageSizeKb, formatType, maxPaddingSizeMb, pageSizeKb); } + private static final LazySingletonValue> _SINGLETON_VALUE_BlockSizeMb = new LazySingletonValue<>( "block_size_mb", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java index e3cf863f9..ae8752602 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCodec.java @@ -14,7 +14,7 @@ public enum DestinationGcsSchemasCodec { @JsonValue private final String value; - private DestinationGcsSchemasCodec(String value) { + DestinationGcsSchemasCodec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCompressionType.java index f305b8e74..edbb83bca 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasCompressionType.java @@ -14,7 +14,7 @@ public enum DestinationGcsSchemasCompressionType { @JsonValue private final String value; - private DestinationGcsSchemasCompressionType(String value) { + DestinationGcsSchemasCompressionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCodec.java index 2e96f8c4a..b481d00d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCodec.java @@ -14,7 +14,7 @@ public enum DestinationGcsSchemasFormatCodec { @JsonValue private final String value; - private DestinationGcsSchemasFormatCodec(String value) { + DestinationGcsSchemasFormatCodec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCompressionType.java index 0891e2a66..c798f69f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatCompressionType.java @@ -14,7 +14,7 @@ public enum DestinationGcsSchemasFormatCompressionType { @JsonValue private final String value; - private DestinationGcsSchemasFormatCompressionType(String value) { + DestinationGcsSchemasFormatCompressionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatFormatType.java index 3144ae597..520af5a52 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatFormatType.java @@ -14,7 +14,7 @@ public enum DestinationGcsSchemasFormatFormatType { @JsonValue private final String value; - private DestinationGcsSchemasFormatFormatType(String value) { + DestinationGcsSchemasFormatFormatType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormat1Codec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormat1Codec.java index 54d868f69..8823f0548 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormat1Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormat1Codec.java @@ -14,7 +14,7 @@ public enum DestinationGcsSchemasFormatOutputFormat1Codec { @JsonValue private final String value; - private DestinationGcsSchemasFormatOutputFormat1Codec(String value) { + DestinationGcsSchemasFormatOutputFormat1Codec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatCodec.java index ab684415d..875e8a53e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatCodec.java @@ -14,7 +14,7 @@ public enum DestinationGcsSchemasFormatOutputFormatCodec { @JsonValue private final String value; - private DestinationGcsSchemasFormatOutputFormatCodec(String value) { + DestinationGcsSchemasFormatOutputFormatCodec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java index 6402e8307..997cd2b62 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatOutputFormatFormatType.java @@ -14,7 +14,7 @@ public enum DestinationGcsSchemasFormatOutputFormatFormatType { @JsonValue private final String value; - private DestinationGcsSchemasFormatOutputFormatFormatType(String value) { + DestinationGcsSchemasFormatOutputFormatFormatType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatType.java index ea0865830..ca56e3878 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasFormatType.java @@ -14,7 +14,7 @@ public enum DestinationGcsSchemasFormatType { @JsonValue private final String value; - private DestinationGcsSchemasFormatType(String value) { + DestinationGcsSchemasFormatType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasNoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasNoCompression.java index 853a834ab..16c0c2c83 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasNoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGcsSchemasNoCompression.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class DestinationGcsSchemasNoCompression { @JsonInclude(Include.NON_ABSENT) @@ -40,9 +40,10 @@ public Optional compressionType() { return (Optional) compressionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationGcsSchemasNoCompression withCompressionType(DestinationGcsSchemasCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); @@ -50,13 +51,13 @@ public DestinationGcsSchemasNoCompression withCompressionType(DestinationGcsSche return this; } + public DestinationGcsSchemasNoCompression withCompressionType(Optional compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = compressionType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,12 +68,12 @@ public boolean equals(java.lang.Object o) { } DestinationGcsSchemasNoCompression other = (DestinationGcsSchemasNoCompression) o; return - Objects.deepEquals(this.compressionType, other.compressionType); + Utils.enhancedDeepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( compressionType); } @@ -81,15 +82,17 @@ public String toString() { return Utils.toString(DestinationGcsSchemasNoCompression.class, "compressionType", compressionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional compressionType; - + private Builder() { // force use of static builder() method } + public Builder compressionType(DestinationGcsSchemasCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -101,15 +104,17 @@ public Builder compressionType(Optional> _SINGLETON_VALUE_CompressionType = new LazySingletonValue<>( "compression_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheets.java index e69f9b073..b19f9939e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheets.java @@ -11,21 +11,23 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationGoogleSheets { +public class DestinationGoogleSheets { /** * Authentication method to access Google Sheets */ @JsonProperty("credentials") private DestinationGoogleSheetsAuthentication credentials; + @JsonProperty("destinationType") private DestinationGoogleSheetsGoogleSheets destinationType; /** - * The link to your spreadsheet. See <a href='https://docs.airbyte.com/integrations/destinations/google-sheets#sheetlink'>this guide</a> for more details. + * The link to your spreadsheet. See <a + * href='https://docs.airbyte.com/integrations/destinations/google-sheets#sheetlink'>this + * guide</a> for more details. */ @JsonProperty("spreadsheet_id") private String spreadsheetId; @@ -55,16 +57,19 @@ public DestinationGoogleSheetsGoogleSheets destinationType() { } /** - * The link to your spreadsheet. See <a href='https://docs.airbyte.com/integrations/destinations/google-sheets#sheetlink'>this guide</a> for more details. + * The link to your spreadsheet. See <a + * href='https://docs.airbyte.com/integrations/destinations/google-sheets#sheetlink'>this + * guide</a> for more details. */ @JsonIgnore public String spreadsheetId() { return spreadsheetId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Authentication method to access Google Sheets @@ -76,7 +81,9 @@ public DestinationGoogleSheets withCredentials(DestinationGoogleSheetsAuthentica } /** - * The link to your spreadsheet. See <a href='https://docs.airbyte.com/integrations/destinations/google-sheets#sheetlink'>this guide</a> for more details. + * The link to your spreadsheet. See <a + * href='https://docs.airbyte.com/integrations/destinations/google-sheets#sheetlink'>this + * guide</a> for more details. */ public DestinationGoogleSheets withSpreadsheetId(String spreadsheetId) { Utils.checkNotNull(spreadsheetId, "spreadsheetId"); @@ -84,7 +91,6 @@ public DestinationGoogleSheets withSpreadsheetId(String spreadsheetId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +101,15 @@ public boolean equals(java.lang.Object o) { } DestinationGoogleSheets other = (DestinationGoogleSheets) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.spreadsheetId, other.spreadsheetId); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.spreadsheetId, other.spreadsheetId); } @Override public int hashCode() { - return Objects.hash( - credentials, - destinationType, - spreadsheetId); + return Utils.enhancedHash( + credentials, destinationType, spreadsheetId); } @Override @@ -115,17 +119,19 @@ public String toString() { "destinationType", destinationType, "spreadsheetId", spreadsheetId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationGoogleSheetsAuthentication credentials; - + private String spreadsheetId; - + private Builder() { // force use of static builder() method } + /** * Authentication method to access Google Sheets */ @@ -135,21 +141,25 @@ public Builder credentials(DestinationGoogleSheetsAuthentication credentials) { return this; } + /** - * The link to your spreadsheet. See <a href='https://docs.airbyte.com/integrations/destinations/google-sheets#sheetlink'>this guide</a> for more details. + * The link to your spreadsheet. See <a + * href='https://docs.airbyte.com/integrations/destinations/google-sheets#sheetlink'>this + * guide</a> for more details. */ public Builder spreadsheetId(String spreadsheetId) { Utils.checkNotNull(spreadsheetId, "spreadsheetId"); this.spreadsheetId = spreadsheetId; return this; } - + public DestinationGoogleSheets build() { + return new DestinationGoogleSheets( - credentials, - spreadsheetId); + credentials, spreadsheetId); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsAuthType.java index c4fb40697..b44f85051 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsAuthType.java @@ -14,7 +14,7 @@ public enum DestinationGoogleSheetsAuthType { @JsonValue private final String value; - private DestinationGoogleSheetsAuthType(String value) { + DestinationGoogleSheetsAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsAuthentication.java index bde353091..8194666d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationGoogleSheetsAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationGoogleSheetsAuthentication other = (DestinationGoogleSheetsAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java index 7994e0a4d..3493050b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsGoogleSheets.java @@ -14,7 +14,7 @@ public enum DestinationGoogleSheetsGoogleSheets { @JsonValue private final String value; - private DestinationGoogleSheetsGoogleSheets(String value) { + DestinationGoogleSheetsGoogleSheets(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsSchemasAuthType.java index cb80801d0..49123086d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationGoogleSheetsSchemasAuthType.java @@ -14,7 +14,7 @@ public enum DestinationGoogleSheetsSchemasAuthType { @JsonValue private final String value; - private DestinationGoogleSheetsSchemasAuthType(String value) { + DestinationGoogleSheetsSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationHubspot.java b/src/main/java/com/airbyte/api/models/shared/DestinationHubspot.java new file mode 100644 index 000000000..c0b1a103c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationHubspot.java @@ -0,0 +1,174 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class DestinationHubspot { + /** + * Choose how to authenticate to HubSpot. + */ + @JsonProperty("credentials") + private DestinationHubspotCredentials credentials; + + + @JsonProperty("destinationType") + private DestinationHubspotHubspot destinationType; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("object_storage_config") + private Optional objectStorageConfig; + + @JsonCreator + public DestinationHubspot( + @JsonProperty("credentials") DestinationHubspotCredentials credentials, + @JsonProperty("object_storage_config") Optional objectStorageConfig) { + Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.credentials = credentials; + this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.objectStorageConfig = objectStorageConfig; + } + + public DestinationHubspot( + DestinationHubspotCredentials credentials) { + this(credentials, Optional.empty()); + } + + /** + * Choose how to authenticate to HubSpot. + */ + @JsonIgnore + public DestinationHubspotCredentials credentials() { + return credentials; + } + + @JsonIgnore + public DestinationHubspotHubspot destinationType() { + return destinationType; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional objectStorageConfig() { + return (Optional) objectStorageConfig; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Choose how to authenticate to HubSpot. + */ + public DestinationHubspot withCredentials(DestinationHubspotCredentials credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + public DestinationHubspot withObjectStorageConfig(DestinationHubspotObjectStorageConfiguration objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = Optional.ofNullable(objectStorageConfig); + return this; + } + + + public DestinationHubspot withObjectStorageConfig(Optional objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = objectStorageConfig; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationHubspot other = (DestinationHubspot) o; + return + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.objectStorageConfig, other.objectStorageConfig); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + credentials, destinationType, objectStorageConfig); + } + + @Override + public String toString() { + return Utils.toString(DestinationHubspot.class, + "credentials", credentials, + "destinationType", destinationType, + "objectStorageConfig", objectStorageConfig); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private DestinationHubspotCredentials credentials; + + private Optional objectStorageConfig = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Choose how to authenticate to HubSpot. + */ + public Builder credentials(DestinationHubspotCredentials credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + + public Builder objectStorageConfig(DestinationHubspotObjectStorageConfiguration objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = Optional.ofNullable(objectStorageConfig); + return this; + } + + public Builder objectStorageConfig(Optional objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = objectStorageConfig; + return this; + } + + public DestinationHubspot build() { + + return new DestinationHubspot( + credentials, objectStorageConfig); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = + new LazySingletonValue<>( + "destinationType", + "\"hubspot\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationHubspotCredentials.java b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotCredentials.java new file mode 100644 index 000000000..bdc50137f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotCredentials.java @@ -0,0 +1,92 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +/** + * DestinationHubspotCredentials + * + *

    Choose how to authenticate to HubSpot. + */ +@JsonDeserialize(using = DestinationHubspotCredentials._Deserializer.class) +public class DestinationHubspotCredentials { + + @JsonValue + private TypedObject value; + + private DestinationHubspotCredentials(TypedObject value) { + this.value = value; + } + + public static DestinationHubspotCredentials of(OAuth value) { + Utils.checkNotNull(value, "value"); + return new DestinationHubspotCredentials(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.OAuth}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationHubspotCredentials other = (DestinationHubspotCredentials) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(DestinationHubspotCredentials.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(DestinationHubspotCredentials.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationHubspotHubspot.java b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotHubspot.java new file mode 100644 index 000000000..638ec9bc3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotHubspot.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum DestinationHubspotHubspot { + HUBSPOT("hubspot"); + + @JsonValue + private final String value; + + DestinationHubspotHubspot(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationHubspotHubspot o: DestinationHubspotHubspot.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationHubspotNone.java b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotNone.java new file mode 100644 index 000000000..d91438dce --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotNone.java @@ -0,0 +1,173 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + + +public class DestinationHubspotNone { + + @JsonIgnore + private Map additionalProperties; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("storage_type") + private Optional storageType; + + @JsonCreator + public DestinationHubspotNone( + @JsonProperty("storage_type") Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.additionalProperties = new HashMap<>(); + this.storageType = storageType; + } + + public DestinationHubspotNone() { + this(Optional.empty()); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional storageType() { + return (Optional) storageType; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public DestinationHubspotNone withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public DestinationHubspotNone withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public DestinationHubspotNone withStorageType(DestinationHubspotStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + + public DestinationHubspotNone withStorageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationHubspotNone other = (DestinationHubspotNone) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.storageType, other.storageType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, storageType); + } + + @Override + public String toString() { + return Utils.toString(DestinationHubspotNone.class, + "additionalProperties", additionalProperties, + "storageType", storageType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private Optional storageType; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder storageType(DestinationHubspotStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + public Builder storageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + public DestinationHubspotNone build() { + if (storageType == null) { + storageType = _SINGLETON_VALUE_StorageType.value(); + } + + return new DestinationHubspotNone( + storageType) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_StorageType = + new LazySingletonValue<>( + "storage_type", + "\"None\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationHubspotObjectStorageConfiguration.java b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotObjectStorageConfiguration.java new file mode 100644 index 000000000..e002b1e73 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotObjectStorageConfiguration.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = DestinationHubspotObjectStorageConfiguration._Deserializer.class) +public class DestinationHubspotObjectStorageConfiguration { + + @JsonValue + private TypedObject value; + + private DestinationHubspotObjectStorageConfiguration(TypedObject value) { + this.value = value; + } + + public static DestinationHubspotObjectStorageConfiguration of(DestinationHubspotNone value) { + Utils.checkNotNull(value, "value"); + return new DestinationHubspotObjectStorageConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static DestinationHubspotObjectStorageConfiguration of(DestinationHubspotS3 value) { + Utils.checkNotNull(value, "value"); + return new DestinationHubspotObjectStorageConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *
      + *
    • {@code com.airbyte.api.models.shared.DestinationHubspotNone}
    • + *
    • {@code com.airbyte.api.models.shared.DestinationHubspotS3}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationHubspotObjectStorageConfiguration other = (DestinationHubspotObjectStorageConfiguration) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(DestinationHubspotObjectStorageConfiguration.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(DestinationHubspotObjectStorageConfiguration.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationHubspotS3.java b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotS3.java new file mode 100644 index 000000000..e74c78723 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotS3.java @@ -0,0 +1,611 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + + +public class DestinationHubspotS3 { + + @JsonIgnore + private Map additionalProperties; + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("access_key_id") + private Optional accessKeyId; + + /** + * All files in the bucket will be prefixed by this. + */ + @JsonProperty("bucket_path") + private String bucketPath; + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("role_arn") + private Optional roleArn; + + /** + * The name of the S3 bucket. Read more here. + */ + @JsonProperty("s3_bucket_name") + private String s3BucketName; + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("s3_bucket_region") + private Optional s3BucketRegion; + + /** + * Your S3 endpoint url. Read more here + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("s3_endpoint") + private Optional s3Endpoint; + + /** + * The corresponding secret to the access key ID. Read more here + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("secret_access_key") + private Optional secretAccessKey; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("storage_type") + private Optional storageType; + + @JsonCreator + public DestinationHubspotS3( + @JsonProperty("access_key_id") Optional accessKeyId, + @JsonProperty("bucket_path") String bucketPath, + @JsonProperty("role_arn") Optional roleArn, + @JsonProperty("s3_bucket_name") String s3BucketName, + @JsonProperty("s3_bucket_region") Optional s3BucketRegion, + @JsonProperty("s3_endpoint") Optional s3Endpoint, + @JsonProperty("secret_access_key") Optional secretAccessKey, + @JsonProperty("storage_type") Optional storageType) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + Utils.checkNotNull(bucketPath, "bucketPath"); + Utils.checkNotNull(roleArn, "roleArn"); + Utils.checkNotNull(s3BucketName, "s3BucketName"); + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + Utils.checkNotNull(storageType, "storageType"); + this.additionalProperties = new HashMap<>(); + this.accessKeyId = accessKeyId; + this.bucketPath = bucketPath; + this.roleArn = roleArn; + this.s3BucketName = s3BucketName; + this.s3BucketRegion = s3BucketRegion; + this.s3Endpoint = s3Endpoint; + this.secretAccessKey = secretAccessKey; + this.storageType = storageType; + } + + public DestinationHubspotS3( + String bucketPath, + String s3BucketName) { + this(Optional.empty(), bucketPath, Optional.empty(), + s3BucketName, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + @JsonIgnore + public Optional accessKeyId() { + return accessKeyId; + } + + /** + * All files in the bucket will be prefixed by this. + */ + @JsonIgnore + public String bucketPath() { + return bucketPath; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + @JsonIgnore + public Optional roleArn() { + return roleArn; + } + + /** + * The name of the S3 bucket. Read more here. + */ + @JsonIgnore + public String s3BucketName() { + return s3BucketName; + } + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional s3BucketRegion() { + return (Optional) s3BucketRegion; + } + + /** + * Your S3 endpoint url. Read more here + */ + @JsonIgnore + public Optional s3Endpoint() { + return s3Endpoint; + } + + /** + * The corresponding secret to the access key ID. Read more here + */ + @JsonIgnore + public Optional secretAccessKey() { + return secretAccessKey; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional storageType() { + return (Optional) storageType; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public DestinationHubspotS3 withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public DestinationHubspotS3 withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public DestinationHubspotS3 withAccessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = Optional.ofNullable(accessKeyId); + return this; + } + + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public DestinationHubspotS3 withAccessKeyId(Optional accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + /** + * All files in the bucket will be prefixed by this. + */ + public DestinationHubspotS3 withBucketPath(String bucketPath) { + Utils.checkNotNull(bucketPath, "bucketPath"); + this.bucketPath = bucketPath; + return this; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public DestinationHubspotS3 withRoleArn(String roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = Optional.ofNullable(roleArn); + return this; + } + + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public DestinationHubspotS3 withRoleArn(Optional roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = roleArn; + return this; + } + + /** + * The name of the S3 bucket. Read more here. + */ + public DestinationHubspotS3 withS3BucketName(String s3BucketName) { + Utils.checkNotNull(s3BucketName, "s3BucketName"); + this.s3BucketName = s3BucketName; + return this; + } + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public DestinationHubspotS3 withS3BucketRegion(DestinationHubspotS3BucketRegion s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = Optional.ofNullable(s3BucketRegion); + return this; + } + + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public DestinationHubspotS3 withS3BucketRegion(Optional s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = s3BucketRegion; + return this; + } + + /** + * Your S3 endpoint url. Read more here + */ + public DestinationHubspotS3 withS3Endpoint(String s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = Optional.ofNullable(s3Endpoint); + return this; + } + + + /** + * Your S3 endpoint url. Read more here + */ + public DestinationHubspotS3 withS3Endpoint(Optional s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = s3Endpoint; + return this; + } + + /** + * The corresponding secret to the access key ID. Read more here + */ + public DestinationHubspotS3 withSecretAccessKey(String secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = Optional.ofNullable(secretAccessKey); + return this; + } + + + /** + * The corresponding secret to the access key ID. Read more here + */ + public DestinationHubspotS3 withSecretAccessKey(Optional secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = secretAccessKey; + return this; + } + + public DestinationHubspotS3 withStorageType(DestinationHubspotSchemasStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + + public DestinationHubspotS3 withStorageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationHubspotS3 other = (DestinationHubspotS3) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.accessKeyId, other.accessKeyId) && + Utils.enhancedDeepEquals(this.bucketPath, other.bucketPath) && + Utils.enhancedDeepEquals(this.roleArn, other.roleArn) && + Utils.enhancedDeepEquals(this.s3BucketName, other.s3BucketName) && + Utils.enhancedDeepEquals(this.s3BucketRegion, other.s3BucketRegion) && + Utils.enhancedDeepEquals(this.s3Endpoint, other.s3Endpoint) && + Utils.enhancedDeepEquals(this.secretAccessKey, other.secretAccessKey) && + Utils.enhancedDeepEquals(this.storageType, other.storageType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, accessKeyId, bucketPath, + roleArn, s3BucketName, s3BucketRegion, + s3Endpoint, secretAccessKey, storageType); + } + + @Override + public String toString() { + return Utils.toString(DestinationHubspotS3.class, + "additionalProperties", additionalProperties, + "accessKeyId", accessKeyId, + "bucketPath", bucketPath, + "roleArn", roleArn, + "s3BucketName", s3BucketName, + "s3BucketRegion", s3BucketRegion, + "s3Endpoint", s3Endpoint, + "secretAccessKey", secretAccessKey, + "storageType", storageType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private Optional accessKeyId = Optional.empty(); + + private String bucketPath; + + private Optional roleArn = Optional.empty(); + + private String s3BucketName; + + private Optional s3BucketRegion; + + private Optional s3Endpoint = Optional.empty(); + + private Optional secretAccessKey = Optional.empty(); + + private Optional storageType; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public Builder accessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = Optional.ofNullable(accessKeyId); + return this; + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public Builder accessKeyId(Optional accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + + /** + * All files in the bucket will be prefixed by this. + */ + public Builder bucketPath(String bucketPath) { + Utils.checkNotNull(bucketPath, "bucketPath"); + this.bucketPath = bucketPath; + return this; + } + + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public Builder roleArn(String roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = Optional.ofNullable(roleArn); + return this; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public Builder roleArn(Optional roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = roleArn; + return this; + } + + + /** + * The name of the S3 bucket. Read more here. + */ + public Builder s3BucketName(String s3BucketName) { + Utils.checkNotNull(s3BucketName, "s3BucketName"); + this.s3BucketName = s3BucketName; + return this; + } + + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public Builder s3BucketRegion(DestinationHubspotS3BucketRegion s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = Optional.ofNullable(s3BucketRegion); + return this; + } + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public Builder s3BucketRegion(Optional s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = s3BucketRegion; + return this; + } + + + /** + * Your S3 endpoint url. Read more here + */ + public Builder s3Endpoint(String s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = Optional.ofNullable(s3Endpoint); + return this; + } + + /** + * Your S3 endpoint url. Read more here + */ + public Builder s3Endpoint(Optional s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = s3Endpoint; + return this; + } + + + /** + * The corresponding secret to the access key ID. Read more here + */ + public Builder secretAccessKey(String secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = Optional.ofNullable(secretAccessKey); + return this; + } + + /** + * The corresponding secret to the access key ID. Read more here + */ + public Builder secretAccessKey(Optional secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = secretAccessKey; + return this; + } + + + public Builder storageType(DestinationHubspotSchemasStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + public Builder storageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + public DestinationHubspotS3 build() { + if (s3BucketRegion == null) { + s3BucketRegion = _SINGLETON_VALUE_S3BucketRegion.value(); + } + if (storageType == null) { + storageType = _SINGLETON_VALUE_StorageType.value(); + } + + return new DestinationHubspotS3( + accessKeyId, bucketPath, roleArn, + s3BucketName, s3BucketRegion, s3Endpoint, + secretAccessKey, storageType) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_S3BucketRegion = + new LazySingletonValue<>( + "s3_bucket_region", + "\"\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StorageType = + new LazySingletonValue<>( + "storage_type", + "\"S3\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationHubspotS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotS3BucketRegion.java new file mode 100644 index 000000000..524186aaa --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotS3BucketRegion.java @@ -0,0 +1,74 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * DestinationHubspotS3BucketRegion + * + *

    The region of the S3 bucket. See here + * for all region codes. + */ +public enum DestinationHubspotS3BucketRegion { + UNKNOWN(""), + AF_SOUTH1("af-south-1"), + AP_EAST1("ap-east-1"), + AP_NORTHEAST1("ap-northeast-1"), + AP_NORTHEAST2("ap-northeast-2"), + AP_NORTHEAST3("ap-northeast-3"), + AP_SOUTH1("ap-south-1"), + AP_SOUTH2("ap-south-2"), + AP_SOUTHEAST1("ap-southeast-1"), + AP_SOUTHEAST2("ap-southeast-2"), + AP_SOUTHEAST3("ap-southeast-3"), + AP_SOUTHEAST4("ap-southeast-4"), + CA_CENTRAL1("ca-central-1"), + CA_WEST1("ca-west-1"), + CN_NORTH1("cn-north-1"), + CN_NORTHWEST1("cn-northwest-1"), + EU_CENTRAL1("eu-central-1"), + EU_CENTRAL2("eu-central-2"), + EU_NORTH1("eu-north-1"), + EU_SOUTH1("eu-south-1"), + EU_SOUTH2("eu-south-2"), + EU_WEST1("eu-west-1"), + EU_WEST2("eu-west-2"), + EU_WEST3("eu-west-3"), + IL_CENTRAL1("il-central-1"), + ME_CENTRAL1("me-central-1"), + ME_SOUTH1("me-south-1"), + SA_EAST1("sa-east-1"), + US_EAST1("us-east-1"), + US_EAST2("us-east-2"), + US_GOV_EAST1("us-gov-east-1"), + US_GOV_WEST1("us-gov-west-1"), + US_WEST1("us-west-1"), + US_WEST2("us-west-2"); + + @JsonValue + private final String value; + + DestinationHubspotS3BucketRegion(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationHubspotS3BucketRegion o: DestinationHubspotS3BucketRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationHubspotSchemasStorageType.java b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotSchemasStorageType.java new file mode 100644 index 000000000..38ab49c87 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotSchemasStorageType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum DestinationHubspotSchemasStorageType { + S3("S3"); + + @JsonValue + private final String value; + + DestinationHubspotSchemasStorageType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationHubspotSchemasStorageType o: DestinationHubspotSchemasStorageType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotStorageType.java similarity index 67% rename from src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java rename to src/main/java/com/airbyte/api/models/shared/DestinationHubspotStorageType.java index 32d711047..c6ed747cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationHubspotStorageType.java @@ -8,13 +8,13 @@ import java.util.Objects; import java.util.Optional; -public enum DestinationSnowflakeSnowflake { - SNOWFLAKE("snowflake"); +public enum DestinationHubspotStorageType { + NONE("None"); @JsonValue private final String value; - private DestinationSnowflakeSnowflake(String value) { + DestinationHubspotStorageType(String value) { this.value = value; } @@ -22,8 +22,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (DestinationSnowflakeSnowflake o: DestinationSnowflakeSnowflake.values()) { + public static Optional fromValue(String value) { + for (DestinationHubspotStorageType o: DestinationHubspotStorageType.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvus.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvus.java index bb89b66f8..8abd8b754 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvus.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvus.java @@ -14,13 +14,13 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** * DestinationMilvus * - *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, + *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI + * for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. * *

    The configuration model is composed of four parts: @@ -29,7 +29,8 @@ * * Indexing configuration * * Advanced configuration * - *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. + *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing + * configuration is provided by the destination connector in the sub class. */ public class DestinationMilvus { @@ -49,12 +50,15 @@ public class DestinationMilvus { private DestinationMilvusIndexing indexing; /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("omit_raw_text") private Optional omitRawText; + @JsonProperty("processing") private DestinationMilvusProcessingConfigModel processing; @@ -79,7 +83,8 @@ public DestinationMilvus( DestinationMilvusEmbedding embedding, DestinationMilvusIndexing indexing, DestinationMilvusProcessingConfigModel processing) { - this(embedding, indexing, Optional.empty(), processing); + this(embedding, indexing, Optional.empty(), + processing); } @JsonIgnore @@ -104,7 +109,9 @@ public DestinationMilvusIndexing indexing() { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonIgnore public Optional omitRawText() { @@ -116,9 +123,10 @@ public DestinationMilvusProcessingConfigModel processing() { return processing; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Embedding configuration @@ -139,7 +147,9 @@ public DestinationMilvus withIndexing(DestinationMilvusIndexing indexing) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationMilvus withOmitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -147,8 +157,11 @@ public DestinationMilvus withOmitRawText(boolean omitRawText) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationMilvus withOmitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -162,7 +175,6 @@ public DestinationMilvus withProcessing(DestinationMilvusProcessingConfigModel p return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +185,18 @@ public boolean equals(java.lang.Object o) { } DestinationMilvus other = (DestinationMilvus) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.embedding, other.embedding) && - Objects.deepEquals(this.indexing, other.indexing) && - Objects.deepEquals(this.omitRawText, other.omitRawText) && - Objects.deepEquals(this.processing, other.processing); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.embedding, other.embedding) && + Utils.enhancedDeepEquals(this.indexing, other.indexing) && + Utils.enhancedDeepEquals(this.omitRawText, other.omitRawText) && + Utils.enhancedDeepEquals(this.processing, other.processing); } @Override public int hashCode() { - return Objects.hash( - destinationType, - embedding, - indexing, - omitRawText, - processing); + return Utils.enhancedHash( + destinationType, embedding, indexing, + omitRawText, processing); } @Override @@ -199,21 +208,23 @@ public String toString() { "omitRawText", omitRawText, "processing", processing); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationMilvusEmbedding embedding; - + private DestinationMilvusIndexing indexing; - + private Optional omitRawText; - + private DestinationMilvusProcessingConfigModel processing; - + private Builder() { // force use of static builder() method } + /** * Embedding configuration */ @@ -223,6 +234,7 @@ public Builder embedding(DestinationMilvusEmbedding embedding) { return this; } + /** * Indexing configuration */ @@ -232,8 +244,11 @@ public Builder indexing(DestinationMilvusIndexing indexing) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -242,7 +257,9 @@ public Builder omitRawText(boolean omitRawText) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -250,23 +267,24 @@ public Builder omitRawText(Optional omitRawText) { return this; } + public Builder processing(DestinationMilvusProcessingConfigModel processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; } - + public DestinationMilvus build() { if (omitRawText == null) { omitRawText = _SINGLETON_VALUE_OmitRawText.value(); } + return new DestinationMilvus( - embedding, - indexing, - omitRawText, + embedding, indexing, omitRawText, processing); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAPIToken.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAPIToken.java index b3b564f55..203e874e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAPIToken.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -56,9 +55,10 @@ public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Token for the Milvus instance @@ -69,7 +69,6 @@ public DestinationMilvusAPIToken withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +79,14 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusAPIToken other = (DestinationMilvusAPIToken) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - mode, - token); + return Utils.enhancedHash( + mode, token); } @Override @@ -97,15 +95,17 @@ public String toString() { "mode", mode, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String token; - + private Builder() { // force use of static builder() method } + /** * API Token for the Milvus instance */ @@ -114,12 +114,14 @@ public Builder token(String token) { this.token = token; return this; } - + public DestinationMilvusAPIToken build() { + return new DestinationMilvusAPIToken( token); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAuthentication.java index 8b7689c66..08dea44aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationMilvusAuthentication @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationMilvusAuthentication other = (DestinationMilvusAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAzureOpenAI.java index a6736c36b..b3d2e8685 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusAzureOpenAI.java @@ -14,34 +14,37 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationMilvusAzureOpenAI * - *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model + * with 1536 embedding dimensions. */ public class DestinationMilvusAzureOpenAI { - /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("api_base") private String apiBase; /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonProperty("deployment") private String deployment; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("openai_key") private String openaiKey; @@ -61,7 +64,8 @@ public DestinationMilvusAzureOpenAI( } /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String apiBase() { @@ -69,7 +73,8 @@ public String apiBase() { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonIgnore public String deployment() { @@ -83,19 +88,22 @@ public Optional mode() { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationMilvusAzureOpenAI withApiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -104,7 +112,8 @@ public DestinationMilvusAzureOpenAI withApiBase(String apiBase) { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public DestinationMilvusAzureOpenAI withDeployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -113,7 +122,8 @@ public DestinationMilvusAzureOpenAI withDeployment(String deployment) { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationMilvusAzureOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -121,7 +131,6 @@ public DestinationMilvusAzureOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +141,16 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusAzureOpenAI other = (DestinationMilvusAzureOpenAI) o; return - Objects.deepEquals(this.apiBase, other.apiBase) && - Objects.deepEquals(this.deployment, other.deployment) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.apiBase, other.apiBase) && + Utils.enhancedDeepEquals(this.deployment, other.deployment) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - apiBase, - deployment, - mode, + return Utils.enhancedHash( + apiBase, deployment, mode, openaiKey); } @@ -155,21 +162,24 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiBase; - + private String deployment; - + private String openaiKey; - + private Builder() { // force use of static builder() method } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder apiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -177,8 +187,10 @@ public Builder apiBase(String apiBase) { return this; } + /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public Builder deployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -186,22 +198,24 @@ public Builder deployment(String deployment) { return this; } + /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationMilvusAzureOpenAI build() { + return new DestinationMilvusAzureOpenAI( - apiBase, - deployment, - openaiKey); + apiBase, deployment, openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByMarkdownHeader.java index 2b53a00bc..eead84deb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByMarkdownHeader.java @@ -15,13 +15,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationMilvusByMarkdownHeader * - *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. + *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits + * multiple sections, they will be combined into a single chunk. */ public class DestinationMilvusByMarkdownHeader { @@ -30,7 +30,8 @@ public class DestinationMilvusByMarkdownHeader { private Optional mode; /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("split_level") @@ -55,19 +56,22 @@ public Optional mode() { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonIgnore public Optional splitLevel() { return splitLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationMilvusByMarkdownHeader withSplitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -75,8 +79,10 @@ public DestinationMilvusByMarkdownHeader withSplitLevel(long splitLevel) { return this; } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationMilvusByMarkdownHeader withSplitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -84,7 +90,6 @@ public DestinationMilvusByMarkdownHeader withSplitLevel(Optional splitLeve return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +100,14 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusByMarkdownHeader other = (DestinationMilvusByMarkdownHeader) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.splitLevel, other.splitLevel); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.splitLevel, other.splitLevel); } @Override public int hashCode() { - return Objects.hash( - mode, - splitLevel); + return Utils.enhancedHash( + mode, splitLevel); } @Override @@ -112,17 +116,20 @@ public String toString() { "mode", mode, "splitLevel", splitLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional splitLevel; - + private Builder() { // force use of static builder() method } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -131,22 +138,25 @@ public Builder splitLevel(long splitLevel) { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); this.splitLevel = splitLevel; return this; } - + public DestinationMilvusByMarkdownHeader build() { if (splitLevel == null) { splitLevel = _SINGLETON_VALUE_SplitLevel.value(); } + return new DestinationMilvusByMarkdownHeader( splitLevel); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByProgrammingLanguage.java index 409a212e0..56eb689ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusByProgrammingLanguage.java @@ -14,22 +14,22 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationMilvusByProgrammingLanguage * - *

    Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. + *

    Split the text by suitable delimiters based on the programming language. This is useful for + * splitting code into chunks. */ public class DestinationMilvusByProgrammingLanguage { - /** * Split code in suitable places based on the programming language */ @JsonProperty("language") private DestinationMilvusLanguage language; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -56,9 +56,10 @@ public Optional return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Split code in suitable places based on the programming language @@ -69,7 +70,6 @@ public DestinationMilvusByProgrammingLanguage withLanguage(DestinationMilvusLang return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +80,14 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusByProgrammingLanguage other = (DestinationMilvusByProgrammingLanguage) o; return - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.language, other.language) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - language, - mode); + return Utils.enhancedHash( + language, mode); } @Override @@ -97,15 +96,17 @@ public String toString() { "language", language, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationMilvusLanguage language; - + private Builder() { // force use of static builder() method } + /** * Split code in suitable places based on the programming language */ @@ -114,12 +115,14 @@ public Builder language(DestinationMilvusLanguage language) { this.language = language; return this; } - + public DestinationMilvusByProgrammingLanguage build() { + return new DestinationMilvusByProgrammingLanguage( language); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusBySeparator.java index 5e24203ca..56d51f999 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusBySeparator.java @@ -16,16 +16,16 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * DestinationMilvusBySeparator * - *

    Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. + *

    Split the text by the list of separators until the chunk size is reached, using the earlier + * mentioned separators where possible. This is useful for splitting text fields by paragraphs, + * sentences, words, etc. */ public class DestinationMilvusBySeparator { - /** * Whether to keep the separator in the resulting chunks */ @@ -33,12 +33,16 @@ public class DestinationMilvusBySeparator { @JsonProperty("keep_separator") private Optional keepSeparator; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("separators") @@ -74,7 +78,10 @@ public Optional mode() { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @SuppressWarnings("unchecked") @JsonIgnore @@ -82,9 +89,10 @@ public Optional> separators() { return (Optional>) separators; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Whether to keep the separator in the resulting chunks @@ -95,6 +103,7 @@ public DestinationMilvusBySeparator withKeepSeparator(boolean keepSeparator) { return this; } + /** * Whether to keep the separator in the resulting chunks */ @@ -105,7 +114,10 @@ public DestinationMilvusBySeparator withKeepSeparator(Optional keepSepa } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationMilvusBySeparator withSeparators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -113,8 +125,12 @@ public DestinationMilvusBySeparator withSeparators(List separators) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationMilvusBySeparator withSeparators(Optional> separators) { Utils.checkNotNull(separators, "separators"); @@ -122,7 +138,6 @@ public DestinationMilvusBySeparator withSeparators(Optional keepSeparator; - + private Optional> separators = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Whether to keep the separator in the resulting chunks */ @@ -182,8 +197,12 @@ public Builder keepSeparator(Optional keepSeparator) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -192,23 +211,27 @@ public Builder separators(List separators) { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(Optional> separators) { Utils.checkNotNull(separators, "separators"); this.separators = separators; return this; } - + public DestinationMilvusBySeparator build() { if (keepSeparator == null) { keepSeparator = _SINGLETON_VALUE_KeepSeparator.value(); } + return new DestinationMilvusBySeparator( - keepSeparator, - separators); + keepSeparator, separators); } + private static final LazySingletonValue> _SINGLETON_VALUE_KeepSeparator = new LazySingletonValue<>( "keep_separator", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusCohere.java index ad8e77289..0be0328bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusCohere.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -27,6 +26,7 @@ public class DestinationMilvusCohere { @JsonProperty("cohere_key") private String cohereKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -50,9 +50,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationMilvusCohere withCohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); @@ -60,7 +61,6 @@ public DestinationMilvusCohere withCohereKey(String cohereKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +71,14 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusCohere other = (DestinationMilvusCohere) o; return - Objects.deepEquals(this.cohereKey, other.cohereKey) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.cohereKey, other.cohereKey) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - cohereKey, - mode); + return Utils.enhancedHash( + cohereKey, mode); } @Override @@ -88,26 +87,30 @@ public String toString() { "cohereKey", cohereKey, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String cohereKey; - + private Builder() { // force use of static builder() method } + public Builder cohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); this.cohereKey = cohereKey; return this; } - + public DestinationMilvusCohere build() { + return new DestinationMilvusCohere( cohereKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusEmbedding.java index 9ad67fee5..43294d0a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusEmbedding.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationMilvusEmbedding @@ -90,12 +89,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationMilvusEmbedding other = (DestinationMilvusEmbedding) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFake.java index 9c08147b8..393efe88e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFake.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationMilvusFake * - *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. + *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for + * testing the data pipeline without incurring any costs. */ public class DestinationMilvusFake { @@ -30,7 +30,6 @@ public class DestinationMilvusFake { @JsonCreator public DestinationMilvusFake() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +39,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusFake other = (DestinationMilvusFake) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +68,21 @@ public String toString() { return Utils.toString(DestinationMilvusFake.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationMilvusFake build() { + return new DestinationMilvusFake( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFieldNameMappingConfigModel.java index 8fa851d3e..6174b0d57 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusFieldNameMappingConfigModel.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationMilvusFieldNameMappingConfigModel { +public class DestinationMilvusFieldNameMappingConfigModel { /** * The field name in the source */ @@ -51,9 +50,10 @@ public String toField() { return toField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The field name in the source @@ -73,7 +73,6 @@ public DestinationMilvusFieldNameMappingConfigModel withToField(String toField) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +83,14 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusFieldNameMappingConfigModel other = (DestinationMilvusFieldNameMappingConfigModel) o; return - Objects.deepEquals(this.fromField, other.fromField) && - Objects.deepEquals(this.toField, other.toField); + Utils.enhancedDeepEquals(this.fromField, other.fromField) && + Utils.enhancedDeepEquals(this.toField, other.toField); } @Override public int hashCode() { - return Objects.hash( - fromField, - toField); + return Utils.enhancedHash( + fromField, toField); } @Override @@ -101,17 +99,19 @@ public String toString() { "fromField", fromField, "toField", toField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fromField; - + private String toField; - + private Builder() { // force use of static builder() method } + /** * The field name in the source */ @@ -121,6 +121,7 @@ public Builder fromField(String fromField) { return this; } + /** * The field name to use in the destination */ @@ -129,11 +130,12 @@ public Builder toField(String toField) { this.toField = toField; return this; } - + public DestinationMilvusFieldNameMappingConfigModel build() { + return new DestinationMilvusFieldNameMappingConfigModel( - fromField, - toField); + fromField, toField); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusIndexing.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusIndexing.java index 089f5c89f..8a46140a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusIndexing.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusIndexing.java @@ -13,7 +13,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -22,7 +21,6 @@ *

    Indexing configuration */ public class DestinationMilvusIndexing { - /** * Authentication method */ @@ -88,7 +86,8 @@ public DestinationMilvusIndexing( DestinationMilvusAuthentication auth, String collection, String host) { - this(auth, collection, Optional.empty(), host, Optional.empty(), Optional.empty()); + this(auth, collection, Optional.empty(), + host, Optional.empty(), Optional.empty()); } /** @@ -139,9 +138,10 @@ public Optional vectorField() { return vectorField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Authentication method @@ -170,6 +170,7 @@ public DestinationMilvusIndexing withDb(String db) { return this; } + /** * The database to connect to */ @@ -197,6 +198,7 @@ public DestinationMilvusIndexing withTextField(String textField) { return this; } + /** * The field in the entity that contains the embedded text */ @@ -215,6 +217,7 @@ public DestinationMilvusIndexing withVectorField(String vectorField) { return this; } + /** * The field in the entity that contains the vector */ @@ -224,7 +227,6 @@ public DestinationMilvusIndexing withVectorField(Optional vectorField) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -235,23 +237,19 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusIndexing other = (DestinationMilvusIndexing) o; return - Objects.deepEquals(this.auth, other.auth) && - Objects.deepEquals(this.collection, other.collection) && - Objects.deepEquals(this.db, other.db) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.textField, other.textField) && - Objects.deepEquals(this.vectorField, other.vectorField); + Utils.enhancedDeepEquals(this.auth, other.auth) && + Utils.enhancedDeepEquals(this.collection, other.collection) && + Utils.enhancedDeepEquals(this.db, other.db) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.textField, other.textField) && + Utils.enhancedDeepEquals(this.vectorField, other.vectorField); } @Override public int hashCode() { - return Objects.hash( - auth, - collection, - db, - host, - textField, - vectorField); + return Utils.enhancedHash( + auth, collection, db, + host, textField, vectorField); } @Override @@ -264,25 +262,27 @@ public String toString() { "textField", textField, "vectorField", vectorField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationMilvusAuthentication auth; - + private String collection; - + private Optional db; - + private String host; - + private Optional textField; - + private Optional vectorField; - + private Builder() { // force use of static builder() method } + /** * Authentication method */ @@ -292,6 +292,7 @@ public Builder auth(DestinationMilvusAuthentication auth) { return this; } + /** * The collection to load data into */ @@ -301,6 +302,7 @@ public Builder collection(String collection) { return this; } + /** * The database to connect to */ @@ -319,6 +321,7 @@ public Builder db(Optional db) { return this; } + /** * The public endpoint of the Milvus instance. */ @@ -328,6 +331,7 @@ public Builder host(String host) { return this; } + /** * The field in the entity that contains the embedded text */ @@ -346,6 +350,7 @@ public Builder textField(Optional textField) { return this; } + /** * The field in the entity that contains the vector */ @@ -363,7 +368,7 @@ public Builder vectorField(Optional vectorField) { this.vectorField = vectorField; return this; } - + public DestinationMilvusIndexing build() { if (db == null) { db = _SINGLETON_VALUE_Db.value(); @@ -374,15 +379,13 @@ public DestinationMilvusIndexing build() { if (vectorField == null) { vectorField = _SINGLETON_VALUE_VectorField.value(); } + return new DestinationMilvusIndexing( - auth, - collection, - db, - host, - textField, - vectorField); + auth, collection, db, + host, textField, vectorField); } + private static final LazySingletonValue> _SINGLETON_VALUE_Db = new LazySingletonValue<>( "db", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java index ec33fb13a..0bcee765a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusLanguage.java @@ -34,7 +34,7 @@ public enum DestinationMilvusLanguage { @JsonValue private final String value; - private DestinationMilvusLanguage(String value) { + DestinationMilvusLanguage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusMode.java index 7bf3668ee..b726d1a7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusMode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusMode { @JsonValue private final String value; - private DestinationMilvusMode(String value) { + DestinationMilvusMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAI.java index 63fad1fe4..00ee63259 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAI.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationMilvusOpenAI * - *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 + * embedding dimensions. */ public class DestinationMilvusOpenAI { @@ -28,6 +28,7 @@ public class DestinationMilvusOpenAI { @JsonProperty("mode") private Optional mode; + @JsonProperty("openai_key") private String openaiKey; @@ -50,9 +51,10 @@ public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationMilvusOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -60,7 +62,6 @@ public DestinationMilvusOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +72,14 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusOpenAI other = (DestinationMilvusOpenAI) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - mode, - openaiKey); + return Utils.enhancedHash( + mode, openaiKey); } @Override @@ -88,26 +88,30 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String openaiKey; - + private Builder() { // force use of static builder() method } + public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationMilvusOpenAI build() { + return new DestinationMilvusOpenAI( openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAICompatible.java index 7d39f120d..e3e7f3e12 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusOpenAICompatible.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -41,6 +40,7 @@ public class DestinationMilvusOpenAICompatible { @JsonProperty("dimensions") private long dimensions; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -72,7 +72,8 @@ public DestinationMilvusOpenAICompatible( public DestinationMilvusOpenAICompatible( String baseUrl, long dimensions) { - this(Optional.empty(), baseUrl, dimensions, Optional.empty()); + this(Optional.empty(), baseUrl, dimensions, + Optional.empty()); } @JsonIgnore @@ -110,9 +111,10 @@ public Optional modelName() { return modelName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationMilvusOpenAICompatible withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -120,6 +122,7 @@ public DestinationMilvusOpenAICompatible withApiKey(String apiKey) { return this; } + public DestinationMilvusOpenAICompatible withApiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; @@ -153,6 +156,7 @@ public DestinationMilvusOpenAICompatible withModelName(String modelName) { return this; } + /** * The name of the model to use for embedding */ @@ -162,7 +166,6 @@ public DestinationMilvusOpenAICompatible withModelName(Optional modelNam return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +176,18 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusOpenAICompatible other = (DestinationMilvusOpenAICompatible) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.dimensions, other.dimensions) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.modelName, other.modelName); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.dimensions, other.dimensions) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.modelName, other.modelName); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - dimensions, - mode, - modelName); + return Utils.enhancedHash( + apiKey, baseUrl, dimensions, + mode, modelName); } @Override @@ -199,21 +199,23 @@ public String toString() { "mode", mode, "modelName", modelName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey; - + private String baseUrl; - + private Long dimensions; - + private Optional modelName; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = Optional.ofNullable(apiKey); @@ -226,6 +228,7 @@ public Builder apiKey(Optional apiKey) { return this; } + /** * The base URL for your OpenAI-compatible service */ @@ -235,6 +238,7 @@ public Builder baseUrl(String baseUrl) { return this; } + /** * The number of dimensions the embedding model is generating */ @@ -244,6 +248,7 @@ public Builder dimensions(long dimensions) { return this; } + /** * The name of the model to use for embedding */ @@ -261,7 +266,7 @@ public Builder modelName(Optional modelName) { this.modelName = modelName; return this; } - + public DestinationMilvusOpenAICompatible build() { if (apiKey == null) { apiKey = _SINGLETON_VALUE_ApiKey.value(); @@ -269,13 +274,13 @@ public DestinationMilvusOpenAICompatible build() { if (modelName == null) { modelName = _SINGLETON_VALUE_ModelName.value(); } + return new DestinationMilvusOpenAICompatible( - apiKey, - baseUrl, - dimensions, + apiKey, baseUrl, dimensions, modelName); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiKey = new LazySingletonValue<>( "api_key", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusProcessingConfigModel.java index c355686fb..614ecd346 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusProcessingConfigModel.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class DestinationMilvusProcessingConfigModel { +public class DestinationMilvusProcessingConfigModel { /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -29,27 +28,46 @@ public class DestinationMilvusProcessingConfigModel { private Optional chunkOverlap; /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonProperty("chunk_size") private long chunkSize; /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("field_name_mappings") private Optional> fieldNameMappings; /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata_fields") private Optional> metadataFields; /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("text_fields") @@ -86,7 +104,8 @@ public DestinationMilvusProcessingConfigModel( public DestinationMilvusProcessingConfigModel( long chunkSize) { - this(Optional.empty(), chunkSize, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), chunkSize, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -98,7 +117,8 @@ public Optional chunkOverlap() { } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonIgnore public long chunkSize() { @@ -106,7 +126,8 @@ public long chunkSize() { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +136,16 @@ public Optional> fieldNameMap } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -124,7 +154,15 @@ public Optional> metadataFields() { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -141,9 +179,10 @@ public Optional textSplitter() { return (Optional) textSplitter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context @@ -154,6 +193,7 @@ public DestinationMilvusProcessingConfigModel withChunkOverlap(long chunkOverlap return this; } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -164,7 +204,8 @@ public DestinationMilvusProcessingConfigModel withChunkOverlap(Optional ch } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public DestinationMilvusProcessingConfigModel withChunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -173,7 +214,8 @@ public DestinationMilvusProcessingConfigModel withChunkSize(long chunkSize) { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public DestinationMilvusProcessingConfigModel withFieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -181,8 +223,10 @@ public DestinationMilvusProcessingConfigModel withFieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -191,7 +235,16 @@ public DestinationMilvusProcessingConfigModel withFieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationMilvusProcessingConfigModel withMetadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -199,8 +252,18 @@ public DestinationMilvusProcessingConfigModel withMetadataFields(List me return this; } + /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationMilvusProcessingConfigModel withMetadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -209,7 +272,15 @@ public DestinationMilvusProcessingConfigModel withMetadataFields(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationMilvusProcessingConfigModel withTextFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -217,8 +288,17 @@ public DestinationMilvusProcessingConfigModel withTextFields(List textFi return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationMilvusProcessingConfigModel withTextFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -235,6 +315,7 @@ public DestinationMilvusProcessingConfigModel withTextSplitter(DestinationMilvus return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -244,7 +325,6 @@ public DestinationMilvusProcessingConfigModel withTextSplitter(Optional chunkOverlap; - + private Long chunkSize; - + private Optional> fieldNameMappings = Optional.empty(); - + private Optional> metadataFields = Optional.empty(); - + private Optional> textFields = Optional.empty(); - + private Optional textSplitter = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -321,8 +399,10 @@ public Builder chunkOverlap(Optional chunkOverlap) { return this; } + /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public Builder chunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -330,8 +410,10 @@ public Builder chunkSize(long chunkSize) { return this; } + /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public Builder fieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -340,7 +422,8 @@ public Builder fieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -348,8 +431,18 @@ public Builder fieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -358,7 +451,16 @@ public Builder metadataFields(List metadataFields) { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -366,8 +468,17 @@ public Builder metadataFields(Optional> metadataFields) { return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -376,7 +487,15 @@ public Builder textFields(List textFields) { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -384,6 +503,7 @@ public Builder textFields(Optional> textFields) { return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -401,20 +521,18 @@ public Builder textSplitter(Optional te this.textSplitter = textSplitter; return this; } - + public DestinationMilvusProcessingConfigModel build() { if (chunkOverlap == null) { chunkOverlap = _SINGLETON_VALUE_ChunkOverlap.value(); } + return new DestinationMilvusProcessingConfigModel( - chunkOverlap, - chunkSize, - fieldNameMappings, - metadataFields, - textFields, - textSplitter); + chunkOverlap, chunkSize, fieldNameMappings, + metadataFields, textFields, textSplitter); } + private static final LazySingletonValue> _SINGLETON_VALUE_ChunkOverlap = new LazySingletonValue<>( "chunk_overlap", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java index 66cb58aec..148849be3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbedding5Mode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusSchemasEmbeddingEmbedding5Mode { @JsonValue private final String value; - private DestinationMilvusSchemasEmbeddingEmbedding5Mode(String value) { + DestinationMilvusSchemasEmbeddingEmbedding5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbeddingMode.java index b56374a62..c9b9b4a69 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusSchemasEmbeddingEmbeddingMode { @JsonValue private final String value; - private DestinationMilvusSchemasEmbeddingEmbeddingMode(String value) { + DestinationMilvusSchemasEmbeddingEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingMode.java index 4e0c478b4..0a534e30c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusSchemasEmbeddingMode { @JsonValue private final String value; - private DestinationMilvusSchemasEmbeddingMode(String value) { + DestinationMilvusSchemasEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthAuthenticationMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthAuthenticationMode.java index 4ea65d48d..5cb5cb6ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthAuthenticationMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthAuthenticationMode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusSchemasIndexingAuthAuthenticationMode { @JsonValue private final String value; - private DestinationMilvusSchemasIndexingAuthAuthenticationMode(String value) { + DestinationMilvusSchemasIndexingAuthAuthenticationMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthMode.java index 2c385ca67..3b9482886 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingAuthMode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusSchemasIndexingAuthMode { @JsonValue private final String value; - private DestinationMilvusSchemasIndexingAuthMode(String value) { + DestinationMilvusSchemasIndexingAuthMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingMode.java index 87df1aa81..39f9f7a98 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasIndexingMode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusSchemasIndexingMode { @JsonValue private final String value; - private DestinationMilvusSchemasIndexingMode(String value) { + DestinationMilvusSchemasIndexingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasMode.java index a4a55e3c5..f54440223 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusSchemasMode { @JsonValue private final String value; - private DestinationMilvusSchemasMode(String value) { + DestinationMilvusSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingMode.java index b76817e9c..29f0cea87 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingMode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusSchemasProcessingMode { @JsonValue private final String value; - private DestinationMilvusSchemasProcessingMode(String value) { + DestinationMilvusSchemasProcessingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterMode.java index c72025f7a..c4b90cceb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusSchemasProcessingTextSplitterMode { @JsonValue private final String value; - private DestinationMilvusSchemasProcessingTextSplitterMode(String value) { + DestinationMilvusSchemasProcessingTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.java index 2aee871e5..5ed1e0745 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode { @JsonValue private final String value; - private DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode(String value) { + DestinationMilvusSchemasProcessingTextSplitterTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusTextSplitter.java index 41e3b26c9..d17610201 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusTextSplitter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationMilvusTextSplitter @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationMilvusTextSplitter other = (DestinationMilvusTextSplitter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusUsernamePassword.java b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusUsernamePassword.java index bff161dc8..56b78aecd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMilvusUsernamePassword.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMilvusUsernamePassword.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -73,9 +72,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Password for the Milvus instance @@ -95,7 +95,6 @@ public DestinationMilvusUsernamePassword withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +105,15 @@ public boolean equals(java.lang.Object o) { } DestinationMilvusUsernamePassword other = (DestinationMilvusUsernamePassword) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - mode, - password, - username); + return Utils.enhancedHash( + mode, password, username); } @Override @@ -126,17 +123,19 @@ public String toString() { "password", password, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Password for the Milvus instance */ @@ -146,6 +145,7 @@ public Builder password(String password) { return this; } + /** * Username for the Milvus instance */ @@ -154,13 +154,14 @@ public Builder username(String username) { this.username = username; return this; } - + public DestinationMilvusUsernamePassword build() { + return new DestinationMilvusUsernamePassword( - password, - username); + password, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodb.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodb.java index 95580536c..de4a2c9cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodb.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodb.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationMongodb { +public class DestinationMongodb { /** * Authorization type. */ @@ -31,6 +30,7 @@ public class DestinationMongodb { @JsonProperty("database") private String database; + @JsonProperty("destinationType") private Mongodb destinationType; @@ -42,7 +42,8 @@ public class DestinationMongodb { private Optional instanceType; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -68,7 +69,8 @@ public DestinationMongodb( public DestinationMongodb( AuthorizationType authType, String database) { - this(authType, database, Optional.empty(), Optional.empty()); + this(authType, database, Optional.empty(), + Optional.empty()); } /** @@ -102,7 +104,8 @@ public Optional instanceType() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -110,9 +113,10 @@ public Optional tunnelMethod() { return (Optional) tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Authorization type. @@ -141,6 +145,7 @@ public DestinationMongodb withInstanceType(MongoDbInstanceType instanceType) { return this; } + /** * MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default. */ @@ -151,7 +156,8 @@ public DestinationMongodb withInstanceType(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -168,7 +176,6 @@ public DestinationMongodb withTunnelMethod(Optional instanceType = Optional.empty(); - + private Optional tunnelMethod = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Authorization type. */ @@ -229,6 +235,7 @@ public Builder authType(AuthorizationType authType) { return this; } + /** * Name of the database. */ @@ -238,6 +245,7 @@ public Builder database(String database) { return this; } + /** * MongoDb instance to connect to. For MongoDB Atlas and Replica Set TLS connection is used by default. */ @@ -256,8 +264,10 @@ public Builder instanceType(Optional instanceType return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(DestinationMongodbSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -266,22 +276,23 @@ public Builder tunnelMethod(DestinationMongodbSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; return this; } - + public DestinationMongodb build() { + return new DestinationMongodb( - authType, - database, - instanceType, + authType, database, instanceType, tunnelMethod); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java index 3067c35f3..686695b2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbAuthorization.java @@ -14,7 +14,7 @@ public enum DestinationMongodbAuthorization { @JsonValue private final String value; - private DestinationMongodbAuthorization(String value) { + DestinationMongodbAuthorization(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbInstance.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbInstance.java index 393456278..927d48ffc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbInstance.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbInstance.java @@ -14,7 +14,7 @@ public enum DestinationMongodbInstance { @JsonValue private final String value; - private DestinationMongodbInstance(String value) { + DestinationMongodbInstance(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNoTunnel.java index 0e8c36a05..50079831a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationMongodbNoTunnel { +public class DestinationMongodbNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class DestinationMongodbNoTunnel { @JsonCreator public DestinationMongodbNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public DestinationMongodbTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } DestinationMongodbNoTunnel other = (DestinationMongodbNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(DestinationMongodbNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationMongodbNoTunnel build() { + return new DestinationMongodbNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNone.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNone.java index 0616f3939..4a94df2ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNone.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbNone.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * DestinationMongodbNone @@ -25,7 +24,6 @@ public class DestinationMongodbNone { @JsonCreator public DestinationMongodbNone() { - this.authorization = Builder._SINGLETON_VALUE_Authorization.value(); } @@ -34,11 +32,11 @@ public DestinationMongodbSchemasAuthorization authorization() { return authorization; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +47,12 @@ public boolean equals(java.lang.Object o) { } DestinationMongodbNone other = (DestinationMongodbNone) o; return - Objects.deepEquals(this.authorization, other.authorization); + Utils.enhancedDeepEquals(this.authorization, other.authorization); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( authorization); } @@ -63,18 +61,21 @@ public String toString() { return Utils.toString(DestinationMongodbNone.class, "authorization", authorization); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationMongodbNone build() { + return new DestinationMongodbNone( ); } + private static final LazySingletonValue _SINGLETON_VALUE_Authorization = new LazySingletonValue<>( "authorization", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbPasswordAuthentication.java index 55d75dbe3..4672deb48 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbPasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationMongodbPasswordAuthentication { +public class DestinationMongodbPasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public DestinationMongodbPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public DestinationMongodbPasswordAuthentication withTunnelPort(long tunnelPort) return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public DestinationMongodbPasswordAuthentication withTunnelUserPassword(String tu return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } DestinationMongodbPasswordAuthentication other = (DestinationMongodbPasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public DestinationMongodbPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationMongodbPasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHKeyAuthentication.java index 1ba79f6f5..b6848c22f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationMongodbSSHKeyAuthentication { +public class DestinationMongodbSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public DestinationMongodbSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public DestinationMongodbSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public DestinationMongodbSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public DestinationMongodbSSHKeyAuthentication withTunnelUser(String tunnelUser) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } DestinationMongodbSSHKeyAuthentication other = (DestinationMongodbSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public DestinationMongodbSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationMongodbSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHTunnelMethod.java index af4e55e8b..44ce45d2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationMongodbSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = DestinationMongodbSSHTunnelMethod._Deserializer.class) public class DestinationMongodbSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationMongodbSSHTunnelMethod other = (DestinationMongodbSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java index 685c0a61d..9c6e7ffb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasAuthorization.java @@ -14,7 +14,7 @@ public enum DestinationMongodbSchemasAuthorization { @JsonValue private final String value; - private DestinationMongodbSchemasAuthorization(String value) { + DestinationMongodbSchemasAuthorization(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasInstance.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasInstance.java index 137e0ee55..f6499eabb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasInstance.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasInstance.java @@ -14,7 +14,7 @@ public enum DestinationMongodbSchemasInstance { @JsonValue private final String value; - private DestinationMongodbSchemasInstance(String value) { + DestinationMongodbSchemasInstance(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethod.java index d0c8bae13..c4b697490 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationMongodbSchemasTunnelMethod { @JsonValue private final String value; - private DestinationMongodbSchemasTunnelMethod(String value) { + DestinationMongodbSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethodTunnelMethod.java index cf34477a8..78785bd06 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationMongodbSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private DestinationMongodbSchemasTunnelMethodTunnelMethod(String value) { + DestinationMongodbSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbTunnelMethod.java index 371831ac2..bfd051694 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMongodbTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMongodbTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationMongodbTunnelMethod { @JsonValue private final String value; - private DestinationMongodbTunnelMethod(String value) { + DestinationMongodbTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMotherduck.java b/src/main/java/com/airbyte/api/models/shared/DestinationMotherduck.java index f72b44e8c..2b5a01577 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMotherduck.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMotherduck.java @@ -13,16 +13,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class DestinationMotherduck { @JsonProperty("destinationType") private Motherduck destinationType; /** - * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' is specified without a database name, the default MotherDuck database name ('my_db') will be used. + * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' + * is specified without a database name, the default MotherDuck database name ('my_db') will be used. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("destination_path") @@ -66,7 +67,8 @@ public Motherduck destinationType() { } /** - * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' is specified without a database name, the default MotherDuck database name ('my_db') will be used. + * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' + * is specified without a database name, the default MotherDuck database name ('my_db') will be used. */ @JsonIgnore public Optional destinationPath() { @@ -89,12 +91,14 @@ public Optional schema() { return schema; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' is specified without a database name, the default MotherDuck database name ('my_db') will be used. + * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' + * is specified without a database name, the default MotherDuck database name ('my_db') will be used. */ public DestinationMotherduck withDestinationPath(String destinationPath) { Utils.checkNotNull(destinationPath, "destinationPath"); @@ -102,8 +106,10 @@ public DestinationMotherduck withDestinationPath(String destinationPath) { return this; } + /** - * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' is specified without a database name, the default MotherDuck database name ('my_db') will be used. + * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' + * is specified without a database name, the default MotherDuck database name ('my_db') will be used. */ public DestinationMotherduck withDestinationPath(Optional destinationPath) { Utils.checkNotNull(destinationPath, "destinationPath"); @@ -129,6 +135,7 @@ public DestinationMotherduck withSchema(String schema) { return this; } + /** * Database schema name, defaults to 'main' if not specified. */ @@ -138,7 +145,6 @@ public DestinationMotherduck withSchema(Optional schema) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,18 +155,16 @@ public boolean equals(java.lang.Object o) { } DestinationMotherduck other = (DestinationMotherduck) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.destinationPath, other.destinationPath) && - Objects.deepEquals(this.motherduckApiKey, other.motherduckApiKey) && - Objects.deepEquals(this.schema, other.schema); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.destinationPath, other.destinationPath) && + Utils.enhancedDeepEquals(this.motherduckApiKey, other.motherduckApiKey) && + Utils.enhancedDeepEquals(this.schema, other.schema); } @Override public int hashCode() { - return Objects.hash( - destinationType, - destinationPath, - motherduckApiKey, + return Utils.enhancedHash( + destinationType, destinationPath, motherduckApiKey, schema); } @@ -172,21 +176,24 @@ public String toString() { "motherduckApiKey", motherduckApiKey, "schema", schema); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional destinationPath; - + private String motherduckApiKey; - + private Optional schema = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' is specified without a database name, the default MotherDuck database name ('my_db') will be used. + * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' + * is specified without a database name, the default MotherDuck database name ('my_db') will be used. */ public Builder destinationPath(String destinationPath) { Utils.checkNotNull(destinationPath, "destinationPath"); @@ -195,7 +202,8 @@ public Builder destinationPath(String destinationPath) { } /** - * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' is specified without a database name, the default MotherDuck database name ('my_db') will be used. + * Path to a .duckdb file or 'md:<DATABASE_NAME>' to connect to a MotherDuck database. If 'md:' + * is specified without a database name, the default MotherDuck database name ('my_db') will be used. */ public Builder destinationPath(Optional destinationPath) { Utils.checkNotNull(destinationPath, "destinationPath"); @@ -203,6 +211,7 @@ public Builder destinationPath(Optional destinationPath) { return this; } + /** * API access token to use for authentication to a MotherDuck database. */ @@ -212,6 +221,7 @@ public Builder motherduckApiKey(String motherduckApiKey) { return this; } + /** * Database schema name, defaults to 'main' if not specified. */ @@ -229,17 +239,17 @@ public Builder schema(Optional schema) { this.schema = schema; return this; } - + public DestinationMotherduck build() { if (destinationPath == null) { destinationPath = _SINGLETON_VALUE_DestinationPath.value(); } + return new DestinationMotherduck( - destinationPath, - motherduckApiKey, - schema); + destinationPath, motherduckApiKey, schema); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssql.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssql.java index a3a2ff224..8aef632ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssql.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssql.java @@ -14,17 +14,18 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.lang.SuppressWarnings; import java.util.Optional; -public class DestinationMssql { +public class DestinationMssql { /** * The name of the MSSQL database. */ @JsonProperty("database") private String database; + @JsonProperty("destinationType") private Mssql destinationType; @@ -35,7 +36,9 @@ public class DestinationMssql { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -61,7 +64,8 @@ public class DestinationMssql { private long port; /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("schema") @@ -73,6 +77,14 @@ public class DestinationMssql { @JsonProperty("ssl_method") private SSLMethod sslMethod; + /** + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tunnel_method") + private Optional tunnelMethod; + /** * The username which is used to access the database. */ @@ -89,6 +101,7 @@ public DestinationMssql( @JsonProperty("port") long port, @JsonProperty("schema") Optional schema, @JsonProperty("ssl_method") SSLMethod sslMethod, + @JsonProperty("tunnel_method") Optional tunnelMethod, @JsonProperty("user") String user) { Utils.checkNotNull(database, "database"); Utils.checkNotNull(host, "host"); @@ -98,6 +111,7 @@ public DestinationMssql( Utils.checkNotNull(port, "port"); Utils.checkNotNull(schema, "schema"); Utils.checkNotNull(sslMethod, "sslMethod"); + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); Utils.checkNotNull(user, "user"); this.database = database; this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); @@ -108,6 +122,7 @@ public DestinationMssql( this.port = port; this.schema = schema; this.sslMethod = sslMethod; + this.tunnelMethod = tunnelMethod; this.user = user; } @@ -118,7 +133,10 @@ public DestinationMssql( long port, SSLMethod sslMethod, String user) { - this(database, host, Optional.empty(), loadType, Optional.empty(), port, Optional.empty(), sslMethod, user); + this(database, host, Optional.empty(), + loadType, Optional.empty(), port, + Optional.empty(), sslMethod, Optional.empty(), + user); } /** @@ -143,7 +161,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -175,7 +195,8 @@ public long port() { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ @JsonIgnore public Optional schema() { @@ -190,6 +211,16 @@ public SSLMethod sslMethod() { return sslMethod; } + /** + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional tunnelMethod() { + return (Optional) tunnelMethod; + } + /** * The username which is used to access the database. */ @@ -198,9 +229,10 @@ public String user() { return user; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The name of the MSSQL database. @@ -221,7 +253,9 @@ public DestinationMssql withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationMssql withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -229,8 +263,11 @@ public DestinationMssql withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationMssql withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -256,6 +293,7 @@ public DestinationMssql withPassword(String password) { return this; } + /** * The password associated with this username. */ @@ -275,7 +313,8 @@ public DestinationMssql withPort(long port) { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public DestinationMssql withSchema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -283,8 +322,10 @@ public DestinationMssql withSchema(String schema) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public DestinationMssql withSchema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -301,6 +342,27 @@ public DestinationMssql withSslMethod(SSLMethod sslMethod) { return this; } + /** + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. + */ + public DestinationMssql withTunnelMethod(DestinationMssqlSSHTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + + /** + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. + */ + public DestinationMssql withTunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + /** * The username which is used to access the database. */ @@ -310,7 +372,6 @@ public DestinationMssql withUser(String user) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -321,31 +382,26 @@ public boolean equals(java.lang.Object o) { } DestinationMssql other = (DestinationMssql) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.loadType, other.loadType) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.schema, other.schema) && - Objects.deepEquals(this.sslMethod, other.sslMethod) && - Objects.deepEquals(this.user, other.user); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.loadType, other.loadType) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.schema, other.schema) && + Utils.enhancedDeepEquals(this.sslMethod, other.sslMethod) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.user, other.user); } @Override public int hashCode() { - return Objects.hash( - database, - destinationType, - host, - jdbcUrlParams, - loadType, - password, - port, - schema, - sslMethod, - user); + return Utils.enhancedHash( + database, destinationType, host, + jdbcUrlParams, loadType, password, + port, schema, sslMethod, + tunnelMethod, user); } @Override @@ -360,33 +416,38 @@ public String toString() { "port", port, "schema", schema, "sslMethod", sslMethod, + "tunnelMethod", tunnelMethod, "user", user); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String database; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private LoadType loadType; - + private Optional password = Optional.empty(); - + private Long port; - + private Optional schema; - + private SSLMethod sslMethod; - + + private Optional tunnelMethod = Optional.empty(); + private String user; - + private Builder() { // force use of static builder() method } + /** * The name of the MSSQL database. */ @@ -396,6 +457,7 @@ public Builder database(String database) { return this; } + /** * The host name of the MSSQL database. */ @@ -405,8 +467,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -415,7 +480,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -423,6 +490,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * Specifies the type of load mechanism (e.g., BULK, INSERT) and its associated configuration. */ @@ -432,6 +500,7 @@ public Builder loadType(LoadType loadType) { return this; } + /** * The password associated with this username. */ @@ -450,6 +519,7 @@ public Builder password(Optional password) { return this; } + /** * The port of the MSSQL database. */ @@ -459,8 +529,10 @@ public Builder port(long port) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public Builder schema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -469,7 +541,8 @@ public Builder schema(String schema) { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public Builder schema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -477,6 +550,7 @@ public Builder schema(Optional schema) { return this; } + /** * The encryption method which is used to communicate with the database. */ @@ -486,6 +560,28 @@ public Builder sslMethod(SSLMethod sslMethod) { return this; } + + /** + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. + */ + public Builder tunnelMethod(DestinationMssqlSSHTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + /** + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. + */ + public Builder tunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + + /** * The username which is used to access the database. */ @@ -494,23 +590,20 @@ public Builder user(String user) { this.user = user; return this; } - + public DestinationMssql build() { if (schema == null) { schema = _SINGLETON_VALUE_Schema.value(); } + return new DestinationMssql( - database, - host, - jdbcUrlParams, - loadType, - password, - port, - schema, - sslMethod, + database, host, jdbcUrlParams, + loadType, password, port, + schema, sslMethod, tunnelMethod, user); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlLoadType.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlLoadType.java index 837c7bca9..4cc9f3c46 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlLoadType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlLoadType.java @@ -14,7 +14,7 @@ public enum DestinationMssqlLoadType { @JsonValue private final String value; - private DestinationMssqlLoadType(String value) { + DestinationMssqlLoadType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlName.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlName.java index 8dfbd5ec7..753b1fb46 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlName.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlName.java @@ -14,7 +14,7 @@ public enum DestinationMssqlName { @JsonValue private final String value; - private DestinationMssqlName(String value) { + DestinationMssqlName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlNoTunnel.java new file mode 100644 index 000000000..7ca450a02 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlNoTunnel.java @@ -0,0 +1,177 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + +/** + * DestinationMssqlNoTunnel + * + *

    No ssh tunnel needed to connect to database + */ +public class DestinationMssqlNoTunnel { + + @JsonIgnore + private Map additionalProperties; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tunnel_method") + private Optional tunnelMethod; + + @JsonCreator + public DestinationMssqlNoTunnel( + @JsonProperty("tunnel_method") Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.additionalProperties = new HashMap<>(); + this.tunnelMethod = tunnelMethod; + } + + public DestinationMssqlNoTunnel() { + this(Optional.empty()); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional tunnelMethod() { + return (Optional) tunnelMethod; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public DestinationMssqlNoTunnel withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public DestinationMssqlNoTunnel withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public DestinationMssqlNoTunnel withTunnelMethod(DestinationMssqlTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + + public DestinationMssqlNoTunnel withTunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationMssqlNoTunnel other = (DestinationMssqlNoTunnel) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, tunnelMethod); + } + + @Override + public String toString() { + return Utils.toString(DestinationMssqlNoTunnel.class, + "additionalProperties", additionalProperties, + "tunnelMethod", tunnelMethod); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private Optional tunnelMethod; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder tunnelMethod(DestinationMssqlTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public Builder tunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + + public DestinationMssqlNoTunnel build() { + if (tunnelMethod == null) { + tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); + } + + return new DestinationMssqlNoTunnel( + tunnelMethod) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = + new LazySingletonValue<>( + "tunnel_method", + "\"NO_TUNNEL\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlPasswordAuthentication.java new file mode 100644 index 000000000..657f048f4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlPasswordAuthentication.java @@ -0,0 +1,373 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + +/** + * DestinationMssqlPasswordAuthentication + * + *

    Connect through a jump server tunnel host using username and password authentication + */ +public class DestinationMssqlPasswordAuthentication { + + @JsonIgnore + private Map additionalProperties; + + /** + * Hostname of the jump server host that allows inbound ssh tunnel. + */ + @JsonProperty("tunnel_host") + private String tunnelHost; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tunnel_method") + private Optional tunnelMethod; + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tunnel_port") + private Optional tunnelPort; + + /** + * OS-level username for logging into the jump server host + */ + @JsonProperty("tunnel_user") + private String tunnelUser; + + /** + * OS-level password for logging into the jump server host + */ + @JsonProperty("tunnel_user_password") + private String tunnelUserPassword; + + @JsonCreator + public DestinationMssqlPasswordAuthentication( + @JsonProperty("tunnel_host") String tunnelHost, + @JsonProperty("tunnel_method") Optional tunnelMethod, + @JsonProperty("tunnel_port") Optional tunnelPort, + @JsonProperty("tunnel_user") String tunnelUser, + @JsonProperty("tunnel_user_password") String tunnelUserPassword) { + Utils.checkNotNull(tunnelHost, "tunnelHost"); + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + Utils.checkNotNull(tunnelPort, "tunnelPort"); + Utils.checkNotNull(tunnelUser, "tunnelUser"); + Utils.checkNotNull(tunnelUserPassword, "tunnelUserPassword"); + this.additionalProperties = new HashMap<>(); + this.tunnelHost = tunnelHost; + this.tunnelMethod = tunnelMethod; + this.tunnelPort = tunnelPort; + this.tunnelUser = tunnelUser; + this.tunnelUserPassword = tunnelUserPassword; + } + + public DestinationMssqlPasswordAuthentication( + String tunnelHost, + String tunnelUser, + String tunnelUserPassword) { + this(tunnelHost, Optional.empty(), Optional.empty(), + tunnelUser, tunnelUserPassword); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + /** + * Hostname of the jump server host that allows inbound ssh tunnel. + */ + @JsonIgnore + public String tunnelHost() { + return tunnelHost; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional tunnelMethod() { + return (Optional) tunnelMethod; + } + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + @JsonIgnore + public Optional tunnelPort() { + return tunnelPort; + } + + /** + * OS-level username for logging into the jump server host + */ + @JsonIgnore + public String tunnelUser() { + return tunnelUser; + } + + /** + * OS-level password for logging into the jump server host + */ + @JsonIgnore + public String tunnelUserPassword() { + return tunnelUserPassword; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public DestinationMssqlPasswordAuthentication withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public DestinationMssqlPasswordAuthentication withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Hostname of the jump server host that allows inbound ssh tunnel. + */ + public DestinationMssqlPasswordAuthentication withTunnelHost(String tunnelHost) { + Utils.checkNotNull(tunnelHost, "tunnelHost"); + this.tunnelHost = tunnelHost; + return this; + } + + public DestinationMssqlPasswordAuthentication withTunnelMethod(DestinationMssqlSchemasTunnelMethodTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + + public DestinationMssqlPasswordAuthentication withTunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + public DestinationMssqlPasswordAuthentication withTunnelPort(long tunnelPort) { + Utils.checkNotNull(tunnelPort, "tunnelPort"); + this.tunnelPort = Optional.ofNullable(tunnelPort); + return this; + } + + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + public DestinationMssqlPasswordAuthentication withTunnelPort(Optional tunnelPort) { + Utils.checkNotNull(tunnelPort, "tunnelPort"); + this.tunnelPort = tunnelPort; + return this; + } + + /** + * OS-level username for logging into the jump server host + */ + public DestinationMssqlPasswordAuthentication withTunnelUser(String tunnelUser) { + Utils.checkNotNull(tunnelUser, "tunnelUser"); + this.tunnelUser = tunnelUser; + return this; + } + + /** + * OS-level password for logging into the jump server host + */ + public DestinationMssqlPasswordAuthentication withTunnelUserPassword(String tunnelUserPassword) { + Utils.checkNotNull(tunnelUserPassword, "tunnelUserPassword"); + this.tunnelUserPassword = tunnelUserPassword; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationMssqlPasswordAuthentication other = (DestinationMssqlPasswordAuthentication) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser, tunnelUserPassword); + } + + @Override + public String toString() { + return Utils.toString(DestinationMssqlPasswordAuthentication.class, + "additionalProperties", additionalProperties, + "tunnelHost", tunnelHost, + "tunnelMethod", tunnelMethod, + "tunnelPort", tunnelPort, + "tunnelUser", tunnelUser, + "tunnelUserPassword", tunnelUserPassword); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private String tunnelHost; + + private Optional tunnelMethod; + + private Optional tunnelPort; + + private String tunnelUser; + + private String tunnelUserPassword; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + /** + * Hostname of the jump server host that allows inbound ssh tunnel. + */ + public Builder tunnelHost(String tunnelHost) { + Utils.checkNotNull(tunnelHost, "tunnelHost"); + this.tunnelHost = tunnelHost; + return this; + } + + + public Builder tunnelMethod(DestinationMssqlSchemasTunnelMethodTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public Builder tunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + public Builder tunnelPort(long tunnelPort) { + Utils.checkNotNull(tunnelPort, "tunnelPort"); + this.tunnelPort = Optional.ofNullable(tunnelPort); + return this; + } + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + public Builder tunnelPort(Optional tunnelPort) { + Utils.checkNotNull(tunnelPort, "tunnelPort"); + this.tunnelPort = tunnelPort; + return this; + } + + + /** + * OS-level username for logging into the jump server host + */ + public Builder tunnelUser(String tunnelUser) { + Utils.checkNotNull(tunnelUser, "tunnelUser"); + this.tunnelUser = tunnelUser; + return this; + } + + + /** + * OS-level password for logging into the jump server host + */ + public Builder tunnelUserPassword(String tunnelUserPassword) { + Utils.checkNotNull(tunnelUserPassword, "tunnelUserPassword"); + this.tunnelUserPassword = tunnelUserPassword; + return this; + } + + public DestinationMssqlPasswordAuthentication build() { + if (tunnelMethod == null) { + tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); + } + if (tunnelPort == null) { + tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); + } + + return new DestinationMssqlPasswordAuthentication( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = + new LazySingletonValue<>( + "tunnel_method", + "\"SSH_PASSWORD_AUTH\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelPort = + new LazySingletonValue<>( + "tunnel_port", + "22", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHKeyAuthentication.java new file mode 100644 index 000000000..ad94ccb3c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHKeyAuthentication.java @@ -0,0 +1,377 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + +/** + * DestinationMssqlSSHKeyAuthentication + * + *

    Connect through a jump server tunnel host using username and ssh key + */ +public class DestinationMssqlSSHKeyAuthentication { + + @JsonIgnore + private Map additionalProperties; + + /** + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) + */ + @JsonProperty("ssh_key") + private String sshKey; + + /** + * Hostname of the jump server host that allows inbound ssh tunnel. + */ + @JsonProperty("tunnel_host") + private String tunnelHost; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tunnel_method") + private Optional tunnelMethod; + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("tunnel_port") + private Optional tunnelPort; + + /** + * OS-level username for logging into the jump server host + */ + @JsonProperty("tunnel_user") + private String tunnelUser; + + @JsonCreator + public DestinationMssqlSSHKeyAuthentication( + @JsonProperty("ssh_key") String sshKey, + @JsonProperty("tunnel_host") String tunnelHost, + @JsonProperty("tunnel_method") Optional tunnelMethod, + @JsonProperty("tunnel_port") Optional tunnelPort, + @JsonProperty("tunnel_user") String tunnelUser) { + Utils.checkNotNull(sshKey, "sshKey"); + Utils.checkNotNull(tunnelHost, "tunnelHost"); + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + Utils.checkNotNull(tunnelPort, "tunnelPort"); + Utils.checkNotNull(tunnelUser, "tunnelUser"); + this.additionalProperties = new HashMap<>(); + this.sshKey = sshKey; + this.tunnelHost = tunnelHost; + this.tunnelMethod = tunnelMethod; + this.tunnelPort = tunnelPort; + this.tunnelUser = tunnelUser; + } + + public DestinationMssqlSSHKeyAuthentication( + String sshKey, + String tunnelHost, + String tunnelUser) { + this(sshKey, tunnelHost, Optional.empty(), + Optional.empty(), tunnelUser); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + /** + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) + */ + @JsonIgnore + public String sshKey() { + return sshKey; + } + + /** + * Hostname of the jump server host that allows inbound ssh tunnel. + */ + @JsonIgnore + public String tunnelHost() { + return tunnelHost; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional tunnelMethod() { + return (Optional) tunnelMethod; + } + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + @JsonIgnore + public Optional tunnelPort() { + return tunnelPort; + } + + /** + * OS-level username for logging into the jump server host + */ + @JsonIgnore + public String tunnelUser() { + return tunnelUser; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public DestinationMssqlSSHKeyAuthentication withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public DestinationMssqlSSHKeyAuthentication withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) + */ + public DestinationMssqlSSHKeyAuthentication withSshKey(String sshKey) { + Utils.checkNotNull(sshKey, "sshKey"); + this.sshKey = sshKey; + return this; + } + + /** + * Hostname of the jump server host that allows inbound ssh tunnel. + */ + public DestinationMssqlSSHKeyAuthentication withTunnelHost(String tunnelHost) { + Utils.checkNotNull(tunnelHost, "tunnelHost"); + this.tunnelHost = tunnelHost; + return this; + } + + public DestinationMssqlSSHKeyAuthentication withTunnelMethod(DestinationMssqlSchemasTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + + public DestinationMssqlSSHKeyAuthentication withTunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + public DestinationMssqlSSHKeyAuthentication withTunnelPort(long tunnelPort) { + Utils.checkNotNull(tunnelPort, "tunnelPort"); + this.tunnelPort = Optional.ofNullable(tunnelPort); + return this; + } + + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + public DestinationMssqlSSHKeyAuthentication withTunnelPort(Optional tunnelPort) { + Utils.checkNotNull(tunnelPort, "tunnelPort"); + this.tunnelPort = tunnelPort; + return this; + } + + /** + * OS-level username for logging into the jump server host + */ + public DestinationMssqlSSHKeyAuthentication withTunnelUser(String tunnelUser) { + Utils.checkNotNull(tunnelUser, "tunnelUser"); + this.tunnelUser = tunnelUser; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationMssqlSSHKeyAuthentication other = (DestinationMssqlSSHKeyAuthentication) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, sshKey, tunnelHost, + tunnelMethod, tunnelPort, tunnelUser); + } + + @Override + public String toString() { + return Utils.toString(DestinationMssqlSSHKeyAuthentication.class, + "additionalProperties", additionalProperties, + "sshKey", sshKey, + "tunnelHost", tunnelHost, + "tunnelMethod", tunnelMethod, + "tunnelPort", tunnelPort, + "tunnelUser", tunnelUser); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private String sshKey; + + private String tunnelHost; + + private Optional tunnelMethod; + + private Optional tunnelPort; + + private String tunnelUser; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + /** + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) + */ + public Builder sshKey(String sshKey) { + Utils.checkNotNull(sshKey, "sshKey"); + this.sshKey = sshKey; + return this; + } + + + /** + * Hostname of the jump server host that allows inbound ssh tunnel. + */ + public Builder tunnelHost(String tunnelHost) { + Utils.checkNotNull(tunnelHost, "tunnelHost"); + this.tunnelHost = tunnelHost; + return this; + } + + + public Builder tunnelMethod(DestinationMssqlSchemasTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public Builder tunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + public Builder tunnelPort(long tunnelPort) { + Utils.checkNotNull(tunnelPort, "tunnelPort"); + this.tunnelPort = Optional.ofNullable(tunnelPort); + return this; + } + + /** + * Port on the proxy/jump server that accepts inbound ssh connections. + */ + public Builder tunnelPort(Optional tunnelPort) { + Utils.checkNotNull(tunnelPort, "tunnelPort"); + this.tunnelPort = tunnelPort; + return this; + } + + + /** + * OS-level username for logging into the jump server host + */ + public Builder tunnelUser(String tunnelUser) { + Utils.checkNotNull(tunnelUser, "tunnelUser"); + this.tunnelUser = tunnelUser; + return this; + } + + public DestinationMssqlSSHKeyAuthentication build() { + if (tunnelMethod == null) { + tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); + } + if (tunnelPort == null) { + tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); + } + + return new DestinationMssqlSSHKeyAuthentication( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = + new LazySingletonValue<>( + "tunnel_method", + "\"SSH_KEY_AUTH\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelPort = + new LazySingletonValue<>( + "tunnel_port", + "22", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHTunnelMethod.java new file mode 100644 index 000000000..f60c6f3d6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSSHTunnelMethod.java @@ -0,0 +1,107 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +/** + * DestinationMssqlSSHTunnelMethod + * + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. + */ +@JsonDeserialize(using = DestinationMssqlSSHTunnelMethod._Deserializer.class) +public class DestinationMssqlSSHTunnelMethod { + + @JsonValue + private TypedObject value; + + private DestinationMssqlSSHTunnelMethod(TypedObject value) { + this.value = value; + } + + public static DestinationMssqlSSHTunnelMethod of(DestinationMssqlNoTunnel value) { + Utils.checkNotNull(value, "value"); + return new DestinationMssqlSSHTunnelMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static DestinationMssqlSSHTunnelMethod of(DestinationMssqlSSHKeyAuthentication value) { + Utils.checkNotNull(value, "value"); + return new DestinationMssqlSSHTunnelMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static DestinationMssqlSSHTunnelMethod of(DestinationMssqlPasswordAuthentication value) { + Utils.checkNotNull(value, "value"); + return new DestinationMssqlSSHTunnelMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.DestinationMssqlNoTunnel}
    • + *
    • {@code com.airbyte.api.models.shared.DestinationMssqlSSHKeyAuthentication}
    • + *
    • {@code com.airbyte.api.models.shared.DestinationMssqlPasswordAuthentication}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationMssqlSSHTunnelMethod other = (DestinationMssqlSSHTunnelMethod) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(DestinationMssqlSSHTunnelMethod.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(DestinationMssqlSSHTunnelMethod.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasLoadType.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasLoadType.java index 6b20e1a87..7ef6277af 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasLoadType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasLoadType.java @@ -14,7 +14,7 @@ public enum DestinationMssqlSchemasLoadType { @JsonValue private final String value; - private DestinationMssqlSchemasLoadType(String value) { + DestinationMssqlSchemasLoadType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasName.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasName.java index a8a1d4b10..0400238f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasName.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasName.java @@ -14,7 +14,7 @@ public enum DestinationMssqlSchemasName { @JsonValue private final String value; - private DestinationMssqlSchemasName(String value) { + DestinationMssqlSchemasName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethod.java new file mode 100644 index 000000000..72209277f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethod.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum DestinationMssqlSchemasTunnelMethod { + SSH_KEY_AUTH("SSH_KEY_AUTH"); + + @JsonValue + private final String value; + + DestinationMssqlSchemasTunnelMethod(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationMssqlSchemasTunnelMethod o: DestinationMssqlSchemasTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java new file mode 100644 index 000000000..19c934db7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlSchemasTunnelMethodTunnelMethod.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum DestinationMssqlSchemasTunnelMethodTunnelMethod { + SSH_PASSWORD_AUTH("SSH_PASSWORD_AUTH"); + + @JsonValue + private final String value; + + DestinationMssqlSchemasTunnelMethodTunnelMethod(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationMssqlSchemasTunnelMethodTunnelMethod o: DestinationMssqlSchemasTunnelMethodTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java new file mode 100644 index 000000000..812056588 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlTunnelMethod.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum DestinationMssqlTunnelMethod { + NO_TUNNEL("NO_TUNNEL"); + + @JsonValue + private final String value; + + DestinationMssqlTunnelMethod(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationMssqlTunnelMethod o: DestinationMssqlTunnelMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2.java index 87b0e6fee..5f270c5e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2.java @@ -14,17 +14,17 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationMssqlV2 { +public class DestinationMssqlV2 { /** * The name of the MSSQL database. */ @JsonProperty("database") private String database; + @JsonProperty("destinationType") private MssqlV2 destinationType; @@ -35,7 +35,9 @@ public class DestinationMssqlV2 { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -61,7 +63,8 @@ public class DestinationMssqlV2 { private long port; /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("schema") @@ -118,7 +121,9 @@ public DestinationMssqlV2( long port, DestinationMssqlV2SSLMethod sslMethod, String user) { - this(database, host, Optional.empty(), loadType, Optional.empty(), port, Optional.empty(), sslMethod, user); + this(database, host, Optional.empty(), + loadType, Optional.empty(), port, + Optional.empty(), sslMethod, user); } /** @@ -143,7 +148,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -175,7 +182,8 @@ public long port() { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ @JsonIgnore public Optional schema() { @@ -198,9 +206,10 @@ public String user() { return user; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The name of the MSSQL database. @@ -221,7 +230,9 @@ public DestinationMssqlV2 withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationMssqlV2 withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -229,8 +240,11 @@ public DestinationMssqlV2 withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationMssqlV2 withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -256,6 +270,7 @@ public DestinationMssqlV2 withPassword(String password) { return this; } + /** * The password associated with this username. */ @@ -275,7 +290,8 @@ public DestinationMssqlV2 withPort(long port) { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public DestinationMssqlV2 withSchema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -283,8 +299,10 @@ public DestinationMssqlV2 withSchema(String schema) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public DestinationMssqlV2 withSchema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -310,7 +328,6 @@ public DestinationMssqlV2 withUser(String user) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -321,30 +338,24 @@ public boolean equals(java.lang.Object o) { } DestinationMssqlV2 other = (DestinationMssqlV2) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.loadType, other.loadType) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.schema, other.schema) && - Objects.deepEquals(this.sslMethod, other.sslMethod) && - Objects.deepEquals(this.user, other.user); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.loadType, other.loadType) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.schema, other.schema) && + Utils.enhancedDeepEquals(this.sslMethod, other.sslMethod) && + Utils.enhancedDeepEquals(this.user, other.user); } @Override public int hashCode() { - return Objects.hash( - database, - destinationType, - host, - jdbcUrlParams, - loadType, - password, - port, - schema, - sslMethod, + return Utils.enhancedHash( + database, destinationType, host, + jdbcUrlParams, loadType, password, + port, schema, sslMethod, user); } @@ -362,31 +373,33 @@ public String toString() { "sslMethod", sslMethod, "user", user); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String database; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private DestinationMssqlV2LoadType loadType; - + private Optional password = Optional.empty(); - + private Long port; - + private Optional schema; - + private DestinationMssqlV2SSLMethod sslMethod; - + private String user; - + private Builder() { // force use of static builder() method } + /** * The name of the MSSQL database. */ @@ -396,6 +409,7 @@ public Builder database(String database) { return this; } + /** * The host name of the MSSQL database. */ @@ -405,8 +419,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -415,7 +432,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -423,6 +442,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * Specifies the type of load mechanism (e.g., BULK, INSERT) and its associated configuration. */ @@ -432,6 +452,7 @@ public Builder loadType(DestinationMssqlV2LoadType loadType) { return this; } + /** * The password associated with this username. */ @@ -450,6 +471,7 @@ public Builder password(Optional password) { return this; } + /** * The port of the MSSQL database. */ @@ -459,8 +481,10 @@ public Builder port(long port) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public Builder schema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -469,7 +493,8 @@ public Builder schema(String schema) { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public Builder schema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -477,6 +502,7 @@ public Builder schema(Optional schema) { return this; } + /** * The encryption method which is used to communicate with the database. */ @@ -486,6 +512,7 @@ public Builder sslMethod(DestinationMssqlV2SSLMethod sslMethod) { return this; } + /** * The username which is used to access the database. */ @@ -494,23 +521,19 @@ public Builder user(String user) { this.user = user; return this; } - + public DestinationMssqlV2 build() { if (schema == null) { schema = _SINGLETON_VALUE_Schema.value(); } + return new DestinationMssqlV2( - database, - host, - jdbcUrlParams, - loadType, - password, - port, - schema, - sslMethod, - user); + database, host, jdbcUrlParams, + loadType, password, port, + schema, sslMethod, user); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2BulkLoad.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2BulkLoad.java index ae578505e..ab493fa59 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2BulkLoad.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2BulkLoad.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -34,36 +33,42 @@ public class DestinationMssqlV2BulkLoad { private Map additionalProperties; /** - * The name of the Azure Blob Storage account. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts + * The name of the Azure Blob Storage account. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts */ @JsonProperty("azure_blob_storage_account_name") private String azureBlobStorageAccountName; /** - * The name of the Azure Blob Storage container. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers + * The name of the Azure Blob Storage container. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers */ @JsonProperty("azure_blob_storage_container_name") private String azureBlobStorageContainerName; /** - * Specifies the external data source name configured in MSSQL, which references the Azure Blob container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql + * Specifies the external data source name configured in MSSQL, which references the Azure Blob + * container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql */ @JsonProperty("bulk_load_data_source") private String bulkLoadDataSource; /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("bulk_load_validate_values_pre_load") private Optional bulkLoadValidateValuesPreLoad; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("load_type") private Optional loadType; /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview */ @JsonProperty("shared_access_signature") private String sharedAccessSignature; @@ -96,7 +101,8 @@ public DestinationMssqlV2BulkLoad( String azureBlobStorageContainerName, String bulkLoadDataSource, String sharedAccessSignature) { - this(azureBlobStorageAccountName, azureBlobStorageContainerName, bulkLoadDataSource, Optional.empty(), Optional.empty(), sharedAccessSignature); + this(azureBlobStorageAccountName, azureBlobStorageContainerName, bulkLoadDataSource, + Optional.empty(), Optional.empty(), sharedAccessSignature); } @JsonAnyGetter @@ -105,7 +111,8 @@ public Map additionalProperties() { } /** - * The name of the Azure Blob Storage account. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts + * The name of the Azure Blob Storage account. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts */ @JsonIgnore public String azureBlobStorageAccountName() { @@ -113,7 +120,8 @@ public String azureBlobStorageAccountName() { } /** - * The name of the Azure Blob Storage container. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers + * The name of the Azure Blob Storage container. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers */ @JsonIgnore public String azureBlobStorageContainerName() { @@ -121,7 +129,8 @@ public String azureBlobStorageContainerName() { } /** - * Specifies the external data source name configured in MSSQL, which references the Azure Blob container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql + * Specifies the external data source name configured in MSSQL, which references the Azure Blob + * container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql */ @JsonIgnore public String bulkLoadDataSource() { @@ -129,7 +138,8 @@ public String bulkLoadDataSource() { } /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ @JsonIgnore public Optional bulkLoadValidateValuesPreLoad() { @@ -143,16 +153,18 @@ public Optional loadType() { } /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview */ @JsonIgnore public String sharedAccessSignature() { return sharedAccessSignature; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationMssqlV2BulkLoad withAdditionalProperty(String key, Object value) { @@ -160,8 +172,7 @@ public DestinationMssqlV2BulkLoad withAdditionalProperty(String key, Object valu Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationMssqlV2BulkLoad withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -169,7 +180,8 @@ public DestinationMssqlV2BulkLoad withAdditionalProperties(Map a } /** - * The name of the Azure Blob Storage account. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts + * The name of the Azure Blob Storage account. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts */ public DestinationMssqlV2BulkLoad withAzureBlobStorageAccountName(String azureBlobStorageAccountName) { Utils.checkNotNull(azureBlobStorageAccountName, "azureBlobStorageAccountName"); @@ -178,7 +190,8 @@ public DestinationMssqlV2BulkLoad withAzureBlobStorageAccountName(String azureBl } /** - * The name of the Azure Blob Storage container. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers + * The name of the Azure Blob Storage container. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers */ public DestinationMssqlV2BulkLoad withAzureBlobStorageContainerName(String azureBlobStorageContainerName) { Utils.checkNotNull(azureBlobStorageContainerName, "azureBlobStorageContainerName"); @@ -187,7 +200,8 @@ public DestinationMssqlV2BulkLoad withAzureBlobStorageContainerName(String azure } /** - * Specifies the external data source name configured in MSSQL, which references the Azure Blob container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql + * Specifies the external data source name configured in MSSQL, which references the Azure Blob + * container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql */ public DestinationMssqlV2BulkLoad withBulkLoadDataSource(String bulkLoadDataSource) { Utils.checkNotNull(bulkLoadDataSource, "bulkLoadDataSource"); @@ -196,7 +210,8 @@ public DestinationMssqlV2BulkLoad withBulkLoadDataSource(String bulkLoadDataSour } /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ public DestinationMssqlV2BulkLoad withBulkLoadValidateValuesPreLoad(boolean bulkLoadValidateValuesPreLoad) { Utils.checkNotNull(bulkLoadValidateValuesPreLoad, "bulkLoadValidateValuesPreLoad"); @@ -204,8 +219,10 @@ public DestinationMssqlV2BulkLoad withBulkLoadValidateValuesPreLoad(boolean bulk return this; } + /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ public DestinationMssqlV2BulkLoad withBulkLoadValidateValuesPreLoad(Optional bulkLoadValidateValuesPreLoad) { Utils.checkNotNull(bulkLoadValidateValuesPreLoad, "bulkLoadValidateValuesPreLoad"); @@ -219,6 +236,7 @@ public DestinationMssqlV2BulkLoad withLoadType(DestinationMssqlV2SchemasLoadType return this; } + public DestinationMssqlV2BulkLoad withLoadType(Optional loadType) { Utils.checkNotNull(loadType, "loadType"); this.loadType = loadType; @@ -226,7 +244,8 @@ public DestinationMssqlV2BulkLoad withLoadType(Optional additionalProperties = new HashMap<>(); - + private String azureBlobStorageAccountName; - + private String azureBlobStorageContainerName; - + private String bulkLoadDataSource; - + private Optional bulkLoadValidateValuesPreLoad; - + private Optional loadType; - + private String sharedAccessSignature; - + private Builder() { // force use of static builder() method } @@ -314,8 +329,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * The name of the Azure Blob Storage account. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts + * The name of the Azure Blob Storage account. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#storage-accounts */ public Builder azureBlobStorageAccountName(String azureBlobStorageAccountName) { Utils.checkNotNull(azureBlobStorageAccountName, "azureBlobStorageAccountName"); @@ -323,8 +340,10 @@ public Builder azureBlobStorageAccountName(String azureBlobStorageAccountName) { return this; } + /** - * The name of the Azure Blob Storage container. See: https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers + * The name of the Azure Blob Storage container. See: + * https://learn.microsoft.com/azure/storage/blobs/storage-blobs-introduction#containers */ public Builder azureBlobStorageContainerName(String azureBlobStorageContainerName) { Utils.checkNotNull(azureBlobStorageContainerName, "azureBlobStorageContainerName"); @@ -332,8 +351,10 @@ public Builder azureBlobStorageContainerName(String azureBlobStorageContainerNam return this; } + /** - * Specifies the external data source name configured in MSSQL, which references the Azure Blob container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql + * Specifies the external data source name configured in MSSQL, which references the Azure Blob + * container. See: https://learn.microsoft.com/sql/t-sql/statements/bulk-insert-transact-sql */ public Builder bulkLoadDataSource(String bulkLoadDataSource) { Utils.checkNotNull(bulkLoadDataSource, "bulkLoadDataSource"); @@ -341,8 +362,10 @@ public Builder bulkLoadDataSource(String bulkLoadDataSource) { return this; } + /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ public Builder bulkLoadValidateValuesPreLoad(boolean bulkLoadValidateValuesPreLoad) { Utils.checkNotNull(bulkLoadValidateValuesPreLoad, "bulkLoadValidateValuesPreLoad"); @@ -351,7 +374,8 @@ public Builder bulkLoadValidateValuesPreLoad(boolean bulkLoadValidateValuesPreLo } /** - * When enabled, Airbyte will validate all values before loading them into the destination table. This provides stronger data integrity guarantees but may significantly impact performance. + * When enabled, Airbyte will validate all values before loading them into the destination table. This + * provides stronger data integrity guarantees but may significantly impact performance. */ public Builder bulkLoadValidateValuesPreLoad(Optional bulkLoadValidateValuesPreLoad) { Utils.checkNotNull(bulkLoadValidateValuesPreLoad, "bulkLoadValidateValuesPreLoad"); @@ -359,6 +383,7 @@ public Builder bulkLoadValidateValuesPreLoad(Optional bulkLoadValidateV return this; } + public Builder loadType(DestinationMssqlV2SchemasLoadType loadType) { Utils.checkNotNull(loadType, "loadType"); this.loadType = Optional.ofNullable(loadType); @@ -371,15 +396,17 @@ public Builder loadType(Optional lo return this; } + /** - * A shared access signature (SAS) provides secure delegated access to resources in your storage account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview + * A shared access signature (SAS) provides secure delegated access to resources in your storage + * account. See: https://learn.microsoft.com/azure/storage/common/storage-sas-overview */ public Builder sharedAccessSignature(String sharedAccessSignature) { Utils.checkNotNull(sharedAccessSignature, "sharedAccessSignature"); this.sharedAccessSignature = sharedAccessSignature; return this; } - + public DestinationMssqlV2BulkLoad build() { if (bulkLoadValidateValuesPreLoad == null) { bulkLoadValidateValuesPreLoad = _SINGLETON_VALUE_BulkLoadValidateValuesPreLoad.value(); @@ -387,16 +414,14 @@ public DestinationMssqlV2BulkLoad build() { if (loadType == null) { loadType = _SINGLETON_VALUE_LoadType.value(); } + return new DestinationMssqlV2BulkLoad( - azureBlobStorageAccountName, - azureBlobStorageContainerName, - bulkLoadDataSource, - bulkLoadValidateValuesPreLoad, - loadType, - sharedAccessSignature) + azureBlobStorageAccountName, azureBlobStorageContainerName, bulkLoadDataSource, + bulkLoadValidateValuesPreLoad, loadType, sharedAccessSignature) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_BulkLoadValidateValuesPreLoad = new LazySingletonValue<>( "bulk_load_validate_values_pre_load", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.java index 2906a400d..8d63a1923 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedTrustServerCertificate.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class DestinationMssqlV2EncryptedTrustServerCertificate { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") private Optional name; @@ -59,9 +59,10 @@ public Optional name() { return (Optional) name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationMssqlV2EncryptedTrustServerCertificate withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public DestinationMssqlV2EncryptedTrustServerCertificate withAdditionalProperty( Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationMssqlV2EncryptedTrustServerCertificate withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public DestinationMssqlV2EncryptedTrustServerCertificate withName(DestinationMss return this; } + public DestinationMssqlV2EncryptedTrustServerCertificate withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } DestinationMssqlV2EncryptedTrustServerCertificate other = (DestinationMssqlV2EncryptedTrustServerCertificate) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - name); + return Utils.enhancedHash( + additionalProperties, name); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional name; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder name(DestinationMssqlV2SchemasName name) { Utils.checkNotNull(name, "name"); this.name = Optional.ofNullable(name); @@ -155,16 +156,18 @@ public Builder name(Optional name) { this.name = name; return this; } - + public DestinationMssqlV2EncryptedTrustServerCertificate build() { if (name == null) { name = _SINGLETON_VALUE_Name.value(); } + return new DestinationMssqlV2EncryptedTrustServerCertificate( name) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Name = new LazySingletonValue<>( "name", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.java index 380f9895d..b16f89fe8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2EncryptedVerifyCertificate.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -33,12 +32,14 @@ public class DestinationMssqlV2EncryptedVerifyCertificate { private Map additionalProperties; /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("hostNameInCertificate") private Optional hostNameInCertificate; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") private Optional name; @@ -75,7 +76,8 @@ public DestinationMssqlV2EncryptedVerifyCertificate( } public DestinationMssqlV2EncryptedVerifyCertificate() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonAnyGetter @@ -84,7 +86,8 @@ public Map additionalProperties() { } /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ @JsonIgnore public Optional hostNameInCertificate() { @@ -113,9 +116,10 @@ public Optional trustStorePassword() { return trustStorePassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationMssqlV2EncryptedVerifyCertificate withAdditionalProperty(String key, Object value) { @@ -123,8 +127,7 @@ public DestinationMssqlV2EncryptedVerifyCertificate withAdditionalProperty(Strin Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationMssqlV2EncryptedVerifyCertificate withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -132,7 +135,8 @@ public DestinationMssqlV2EncryptedVerifyCertificate withAdditionalProperties(Map } /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public DestinationMssqlV2EncryptedVerifyCertificate withHostNameInCertificate(String hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -140,8 +144,10 @@ public DestinationMssqlV2EncryptedVerifyCertificate withHostNameInCertificate(St return this; } + /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public DestinationMssqlV2EncryptedVerifyCertificate withHostNameInCertificate(Optional hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -155,6 +161,7 @@ public DestinationMssqlV2EncryptedVerifyCertificate withName(DestinationMssqlV2S return this; } + public DestinationMssqlV2EncryptedVerifyCertificate withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -170,6 +177,7 @@ public DestinationMssqlV2EncryptedVerifyCertificate withTrustStoreName(String tr return this; } + /** * Specifies the name of the trust store. */ @@ -188,6 +196,7 @@ public DestinationMssqlV2EncryptedVerifyCertificate withTrustStorePassword(Strin return this; } + /** * Specifies the password of the trust store. */ @@ -197,7 +206,6 @@ public DestinationMssqlV2EncryptedVerifyCertificate withTrustStorePassword(Optio return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -208,21 +216,18 @@ public boolean equals(java.lang.Object o) { } DestinationMssqlV2EncryptedVerifyCertificate other = (DestinationMssqlV2EncryptedVerifyCertificate) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.hostNameInCertificate, other.hostNameInCertificate) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.trustStoreName, other.trustStoreName) && - Objects.deepEquals(this.trustStorePassword, other.trustStorePassword); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.hostNameInCertificate, other.hostNameInCertificate) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.trustStoreName, other.trustStoreName) && + Utils.enhancedDeepEquals(this.trustStorePassword, other.trustStorePassword); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - hostNameInCertificate, - name, - trustStoreName, - trustStorePassword); + return Utils.enhancedHash( + additionalProperties, hostNameInCertificate, name, + trustStoreName, trustStorePassword); } @Override @@ -234,19 +239,20 @@ public String toString() { "trustStoreName", trustStoreName, "trustStorePassword", trustStorePassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional hostNameInCertificate = Optional.empty(); - + private Optional name; - + private Optional trustStoreName = Optional.empty(); - + private Optional trustStorePassword = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -267,8 +273,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public Builder hostNameInCertificate(String hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -277,7 +285,8 @@ public Builder hostNameInCertificate(String hostNameInCertificate) { } /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public Builder hostNameInCertificate(Optional hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -285,6 +294,7 @@ public Builder hostNameInCertificate(Optional hostNameInCertificate) { return this; } + public Builder name(DestinationMssqlV2SchemasSslMethodName name) { Utils.checkNotNull(name, "name"); this.name = Optional.ofNullable(name); @@ -297,6 +307,7 @@ public Builder name(Optional n return this; } + /** * Specifies the name of the trust store. */ @@ -315,6 +326,7 @@ public Builder trustStoreName(Optional trustStoreName) { return this; } + /** * Specifies the password of the trust store. */ @@ -332,19 +344,19 @@ public Builder trustStorePassword(Optional trustStorePassword) { this.trustStorePassword = trustStorePassword; return this; } - + public DestinationMssqlV2EncryptedVerifyCertificate build() { if (name == null) { name = _SINGLETON_VALUE_Name.value(); } + return new DestinationMssqlV2EncryptedVerifyCertificate( - hostNameInCertificate, - name, - trustStoreName, + hostNameInCertificate, name, trustStoreName, trustStorePassword) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Name = new LazySingletonValue<>( "name", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2InsertLoad.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2InsertLoad.java index 8c4015ad4..71a6e7b06 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2InsertLoad.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2InsertLoad.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class DestinationMssqlV2InsertLoad { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("load_type") private Optional loadType; @@ -59,9 +59,10 @@ public Optional loadType() { return (Optional) loadType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationMssqlV2InsertLoad withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public DestinationMssqlV2InsertLoad withAdditionalProperty(String key, Object va Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationMssqlV2InsertLoad withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public DestinationMssqlV2InsertLoad withLoadType(DestinationMssqlV2SchemasLoadTy return this; } + public DestinationMssqlV2InsertLoad withLoadType(Optional loadType) { Utils.checkNotNull(loadType, "loadType"); this.loadType = loadType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } DestinationMssqlV2InsertLoad other = (DestinationMssqlV2InsertLoad) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.loadType, other.loadType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.loadType, other.loadType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - loadType); + return Utils.enhancedHash( + additionalProperties, loadType); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "loadType", loadType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional loadType; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder loadType(DestinationMssqlV2SchemasLoadTypeLoadType loadType) { Utils.checkNotNull(loadType, "loadType"); this.loadType = Optional.ofNullable(loadType); @@ -155,16 +156,18 @@ public Builder loadType(Optional> _SINGLETON_VALUE_LoadType = new LazySingletonValue<>( "load_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2LoadType.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2LoadType.java index 3517bac49..efbf35935 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2LoadType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2LoadType.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationMssqlV2LoadType @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationMssqlV2LoadType other = (DestinationMssqlV2LoadType) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Name.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Name.java index f939fbfe8..ec4574396 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Name.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Name.java @@ -14,7 +14,7 @@ public enum DestinationMssqlV2Name { @JsonValue private final String value; - private DestinationMssqlV2Name(String value) { + DestinationMssqlV2Name(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SSLMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SSLMethod.java index 7618a4de4..e81696de8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SSLMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SSLMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationMssqlV2SSLMethod @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationMssqlV2SSLMethod other = (DestinationMssqlV2SSLMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasLoadType.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasLoadType.java index 423f74b9d..2cee34913 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasLoadType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasLoadType.java @@ -14,7 +14,7 @@ public enum DestinationMssqlV2SchemasLoadType { @JsonValue private final String value; - private DestinationMssqlV2SchemasLoadType(String value) { + DestinationMssqlV2SchemasLoadType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasLoadTypeLoadType.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasLoadTypeLoadType.java index 8d47551bf..d2265af23 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasLoadTypeLoadType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasLoadTypeLoadType.java @@ -14,7 +14,7 @@ public enum DestinationMssqlV2SchemasLoadTypeLoadType { @JsonValue private final String value; - private DestinationMssqlV2SchemasLoadTypeLoadType(String value) { + DestinationMssqlV2SchemasLoadTypeLoadType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasName.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasName.java index d96bccb1a..1938a64d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasName.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasName.java @@ -14,7 +14,7 @@ public enum DestinationMssqlV2SchemasName { @JsonValue private final String value; - private DestinationMssqlV2SchemasName(String value) { + DestinationMssqlV2SchemasName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasSslMethodName.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasSslMethodName.java index 84ab8770f..ffde584c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasSslMethodName.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2SchemasSslMethodName.java @@ -14,7 +14,7 @@ public enum DestinationMssqlV2SchemasSslMethodName { @JsonValue private final String value; - private DestinationMssqlV2SchemasSslMethodName(String value) { + DestinationMssqlV2SchemasSslMethodName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Unencrypted.java b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Unencrypted.java index 1f5777454..7d72a0df9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Unencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMssqlV2Unencrypted.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class DestinationMssqlV2Unencrypted { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") private Optional name; @@ -59,9 +59,10 @@ public Optional name() { return (Optional) name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationMssqlV2Unencrypted withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public DestinationMssqlV2Unencrypted withAdditionalProperty(String key, Object v Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationMssqlV2Unencrypted withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public DestinationMssqlV2Unencrypted withName(DestinationMssqlV2Name name) { return this; } + public DestinationMssqlV2Unencrypted withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } DestinationMssqlV2Unencrypted other = (DestinationMssqlV2Unencrypted) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - name); + return Utils.enhancedHash( + additionalProperties, name); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional name; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder name(DestinationMssqlV2Name name) { Utils.checkNotNull(name, "name"); this.name = Optional.ofNullable(name); @@ -155,16 +156,18 @@ public Builder name(Optional name) { this.name = name; return this; } - + public DestinationMssqlV2Unencrypted build() { if (name == null) { name = _SINGLETON_VALUE_Name.value(); } + return new DestinationMssqlV2Unencrypted( name) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Name = new LazySingletonValue<>( "name", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysql.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysql.java index 24e839939..7e06ba858 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysql.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysql.java @@ -16,22 +16,23 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationMysql { +public class DestinationMysql { /** * Name of the database. */ @JsonProperty("database") private String database; + @JsonProperty("destinationType") private Mysql destinationType; /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disable_type_dedupe") @@ -44,7 +45,9 @@ public class DestinationMysql { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -79,7 +82,8 @@ public class DestinationMysql { private Optional ssl; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -130,7 +134,10 @@ public DestinationMysql( String database, String host, String username) { - this(database, Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + this(database, Optional.empty(), host, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + username); } /** @@ -147,7 +154,8 @@ public Mysql destinationType() { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ @JsonIgnore public Optional disableTypeDedupe() { @@ -163,7 +171,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -203,7 +213,8 @@ public Optional ssl() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -219,9 +230,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the database. @@ -233,7 +245,8 @@ public DestinationMysql withDatabase(String database) { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public DestinationMysql withDisableTypeDedupe(boolean disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -241,8 +254,10 @@ public DestinationMysql withDisableTypeDedupe(boolean disableTypeDedupe) { return this; } + /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public DestinationMysql withDisableTypeDedupe(Optional disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -260,7 +275,9 @@ public DestinationMysql withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationMysql withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -268,8 +285,11 @@ public DestinationMysql withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationMysql withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -286,6 +306,7 @@ public DestinationMysql withPassword(String password) { return this; } + /** * Password associated with the username. */ @@ -304,6 +325,7 @@ public DestinationMysql withPort(long port) { return this; } + /** * Port of the database. */ @@ -322,6 +344,7 @@ public DestinationMysql withRawDataSchema(String rawDataSchema) { return this; } + /** * The database to write raw tables into */ @@ -340,6 +363,7 @@ public DestinationMysql withSsl(boolean ssl) { return this; } + /** * Encrypt data using SSL. */ @@ -350,7 +374,8 @@ public DestinationMysql withSsl(Optional ssl) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationMysql withTunnelMethod(DestinationMysqlSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -358,8 +383,10 @@ public DestinationMysql withTunnelMethod(DestinationMysqlSSHTunnelMethod tunnelM return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationMysql withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -376,7 +403,6 @@ public DestinationMysql withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -387,33 +413,26 @@ public boolean equals(java.lang.Object o) { } DestinationMysql other = (DestinationMysql) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.disableTypeDedupe, other.disableTypeDedupe) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.rawDataSchema, other.rawDataSchema) && - Objects.deepEquals(this.ssl, other.ssl) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.disableTypeDedupe, other.disableTypeDedupe) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.rawDataSchema, other.rawDataSchema) && + Utils.enhancedDeepEquals(this.ssl, other.ssl) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - database, - destinationType, - disableTypeDedupe, - host, - jdbcUrlParams, - password, - port, - rawDataSchema, - ssl, - tunnelMethod, - username); + return Utils.enhancedHash( + database, destinationType, disableTypeDedupe, + host, jdbcUrlParams, password, + port, rawDataSchema, ssl, + tunnelMethod, username); } @Override @@ -431,33 +450,35 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String database; - + private Optional disableTypeDedupe; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional password = Optional.empty(); - + private Optional port; - + private Optional rawDataSchema = Optional.empty(); - + private Optional ssl; - + private Optional tunnelMethod = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Name of the database. */ @@ -467,8 +488,10 @@ public Builder database(String database) { return this; } + /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public Builder disableTypeDedupe(boolean disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -477,7 +500,8 @@ public Builder disableTypeDedupe(boolean disableTypeDedupe) { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public Builder disableTypeDedupe(Optional disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -485,6 +509,7 @@ public Builder disableTypeDedupe(Optional disableTypeDedupe) { return this; } + /** * Hostname of the database. */ @@ -494,8 +519,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -504,7 +532,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -512,6 +542,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * Password associated with the username. */ @@ -530,6 +561,7 @@ public Builder password(Optional password) { return this; } + /** * Port of the database. */ @@ -548,6 +580,7 @@ public Builder port(Optional port) { return this; } + /** * The database to write raw tables into */ @@ -566,6 +599,7 @@ public Builder rawDataSchema(Optional rawDataSchema) { return this; } + /** * Encrypt data using SSL. */ @@ -584,8 +618,10 @@ public Builder ssl(Optional ssl) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(DestinationMysqlSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -594,7 +630,8 @@ public Builder tunnelMethod(DestinationMysqlSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -602,6 +639,7 @@ public Builder tunnelMethod(Optional return this; } + /** * Username to use to access the database. */ @@ -610,7 +648,7 @@ public Builder username(String username) { this.username = username; return this; } - + public DestinationMysql build() { if (disableTypeDedupe == null) { disableTypeDedupe = _SINGLETON_VALUE_DisableTypeDedupe.value(); @@ -621,19 +659,15 @@ public DestinationMysql build() { if (ssl == null) { ssl = _SINGLETON_VALUE_Ssl.value(); } + return new DestinationMysql( - database, - disableTypeDedupe, - host, - jdbcUrlParams, - password, - port, - rawDataSchema, - ssl, - tunnelMethod, + database, disableTypeDedupe, host, + jdbcUrlParams, password, port, + rawDataSchema, ssl, tunnelMethod, username); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlNoTunnel.java index 011411d9e..f2cb13c69 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationMysqlNoTunnel { +public class DestinationMysqlNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class DestinationMysqlNoTunnel { @JsonCreator public DestinationMysqlNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public DestinationMysqlTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } DestinationMysqlNoTunnel other = (DestinationMysqlNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(DestinationMysqlNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationMysqlNoTunnel build() { + return new DestinationMysqlNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlPasswordAuthentication.java index a4db0e772..30ff9673b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlPasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationMysqlPasswordAuthentication { +public class DestinationMysqlPasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public DestinationMysqlPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public DestinationMysqlPasswordAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public DestinationMysqlPasswordAuthentication withTunnelUserPassword(String tunn return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } DestinationMysqlPasswordAuthentication other = (DestinationMysqlPasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public DestinationMysqlPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationMysqlPasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHKeyAuthentication.java index 3b7a69007..237bdbb9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationMysqlSSHKeyAuthentication { +public class DestinationMysqlSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public DestinationMysqlSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public DestinationMysqlSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public DestinationMysqlSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public DestinationMysqlSSHKeyAuthentication withTunnelUser(String tunnelUser) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } DestinationMysqlSSHKeyAuthentication other = (DestinationMysqlSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public DestinationMysqlSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationMysqlSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHTunnelMethod.java index 32da76100..332ccd6a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationMysqlSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = DestinationMysqlSSHTunnelMethod._Deserializer.class) public class DestinationMysqlSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationMysqlSSHTunnelMethod other = (DestinationMysqlSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java index 6c1d32829..d9d20eefe 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationMysqlSchemasTunnelMethod { @JsonValue private final String value; - private DestinationMysqlSchemasTunnelMethod(String value) { + DestinationMysqlSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java index b3e9b3d28..020db4b45 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationMysqlSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private DestinationMysqlSchemasTunnelMethodTunnelMethod(String value) { + DestinationMysqlSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java index b177d9766..90b14eb2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationMysqlTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationMysqlTunnelMethod { @JsonValue private final String value; - private DestinationMysqlTunnelMethod(String value) { + DestinationMysqlTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracle.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracle.java index 81f9f58b3..00da3d686 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracle.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracle.java @@ -15,9 +15,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class DestinationOracle { @JsonProperty("destinationType") @@ -37,7 +37,9 @@ public class DestinationOracle { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -65,20 +67,25 @@ public class DestinationOracle { private Optional rawDataSchema; /** - * The default schema is used as the target schema for all statements issued from the connection that do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, schemas and users are the same thing, so the "user" parameter is used as the login credentials and this is used for the default Airbyte message schema. + * The default schema is used as the target schema for all statements issued from the connection that + * do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, + * schemas and users are the same thing, so the "user" parameter is used as the login credentials and + * this is used for the default Airbyte message schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("schema") private Optional schema; /** - * The System Identifier uniquely distinguishes the instance from any other instance on the same computer. + * The System Identifier uniquely distinguishes the instance from any other instance on the same + * computer. */ @JsonProperty("sid") private String sid; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -129,7 +136,10 @@ public DestinationOracle( String host, String sid, String username) { - this(Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), sid, Optional.empty(), username); + this(Optional.empty(), host, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), sid, Optional.empty(), + username); } @JsonIgnore @@ -155,7 +165,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -187,7 +199,10 @@ public Optional rawDataSchema() { } /** - * The default schema is used as the target schema for all statements issued from the connection that do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, schemas and users are the same thing, so the "user" parameter is used as the login credentials and this is used for the default Airbyte message schema. + * The default schema is used as the target schema for all statements issued from the connection that + * do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, + * schemas and users are the same thing, so the "user" parameter is used as the login credentials and + * this is used for the default Airbyte message schema. */ @JsonIgnore public Optional schema() { @@ -195,7 +210,8 @@ public Optional schema() { } /** - * The System Identifier uniquely distinguishes the instance from any other instance on the same computer. + * The System Identifier uniquely distinguishes the instance from any other instance on the same + * computer. */ @JsonIgnore public String sid() { @@ -203,7 +219,8 @@ public String sid() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -219,9 +236,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The encryption method which is used when communicating with the database. @@ -232,6 +250,7 @@ public DestinationOracle withEncryption(DestinationOracleEncryption encryption) return this; } + /** * The encryption method which is used when communicating with the database. */ @@ -251,7 +270,9 @@ public DestinationOracle withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationOracle withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -259,8 +280,11 @@ public DestinationOracle withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationOracle withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -277,6 +301,7 @@ public DestinationOracle withPassword(String password) { return this; } + /** * The password associated with the username. */ @@ -295,6 +320,7 @@ public DestinationOracle withPort(long port) { return this; } + /** * The port of the database. */ @@ -313,6 +339,7 @@ public DestinationOracle withRawDataSchema(String rawDataSchema) { return this; } + /** * The schema to write raw tables into (default: airbyte_internal) */ @@ -323,7 +350,10 @@ public DestinationOracle withRawDataSchema(Optional rawDataSchema) { } /** - * The default schema is used as the target schema for all statements issued from the connection that do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, schemas and users are the same thing, so the "user" parameter is used as the login credentials and this is used for the default Airbyte message schema. + * The default schema is used as the target schema for all statements issued from the connection that + * do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, + * schemas and users are the same thing, so the "user" parameter is used as the login credentials and + * this is used for the default Airbyte message schema. */ public DestinationOracle withSchema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -331,8 +361,12 @@ public DestinationOracle withSchema(String schema) { return this; } + /** - * The default schema is used as the target schema for all statements issued from the connection that do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, schemas and users are the same thing, so the "user" parameter is used as the login credentials and this is used for the default Airbyte message schema. + * The default schema is used as the target schema for all statements issued from the connection that + * do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, + * schemas and users are the same thing, so the "user" parameter is used as the login credentials and + * this is used for the default Airbyte message schema. */ public DestinationOracle withSchema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -341,7 +375,8 @@ public DestinationOracle withSchema(Optional schema) { } /** - * The System Identifier uniquely distinguishes the instance from any other instance on the same computer. + * The System Identifier uniquely distinguishes the instance from any other instance on the same + * computer. */ public DestinationOracle withSid(String sid) { Utils.checkNotNull(sid, "sid"); @@ -350,7 +385,8 @@ public DestinationOracle withSid(String sid) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationOracle withTunnelMethod(DestinationOracleSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -358,8 +394,10 @@ public DestinationOracle withTunnelMethod(DestinationOracleSSHTunnelMethod tunne return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationOracle withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -376,7 +414,6 @@ public DestinationOracle withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -387,33 +424,26 @@ public boolean equals(java.lang.Object o) { } DestinationOracle other = (DestinationOracle) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.encryption, other.encryption) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.rawDataSchema, other.rawDataSchema) && - Objects.deepEquals(this.schema, other.schema) && - Objects.deepEquals(this.sid, other.sid) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.encryption, other.encryption) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.rawDataSchema, other.rawDataSchema) && + Utils.enhancedDeepEquals(this.schema, other.schema) && + Utils.enhancedDeepEquals(this.sid, other.sid) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - destinationType, - encryption, - host, - jdbcUrlParams, - password, - port, - rawDataSchema, - schema, - sid, - tunnelMethod, - username); + return Utils.enhancedHash( + destinationType, encryption, host, + jdbcUrlParams, password, port, + rawDataSchema, schema, sid, + tunnelMethod, username); } @Override @@ -431,33 +461,35 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional encryption = Optional.empty(); - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional password = Optional.empty(); - + private Optional port; - + private Optional rawDataSchema = Optional.empty(); - + private Optional schema; - + private String sid; - + private Optional tunnelMethod = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * The encryption method which is used when communicating with the database. */ @@ -476,6 +508,7 @@ public Builder encryption(Optional encryp return this; } + /** * The hostname of the database. */ @@ -485,8 +518,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -495,7 +531,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -503,6 +541,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * The password associated with the username. */ @@ -521,6 +560,7 @@ public Builder password(Optional password) { return this; } + /** * The port of the database. */ @@ -539,6 +579,7 @@ public Builder port(Optional port) { return this; } + /** * The schema to write raw tables into (default: airbyte_internal) */ @@ -557,8 +598,12 @@ public Builder rawDataSchema(Optional rawDataSchema) { return this; } + /** - * The default schema is used as the target schema for all statements issued from the connection that do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, schemas and users are the same thing, so the "user" parameter is used as the login credentials and this is used for the default Airbyte message schema. + * The default schema is used as the target schema for all statements issued from the connection that + * do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, + * schemas and users are the same thing, so the "user" parameter is used as the login credentials and + * this is used for the default Airbyte message schema. */ public Builder schema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -567,7 +612,10 @@ public Builder schema(String schema) { } /** - * The default schema is used as the target schema for all statements issued from the connection that do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, schemas and users are the same thing, so the "user" parameter is used as the login credentials and this is used for the default Airbyte message schema. + * The default schema is used as the target schema for all statements issued from the connection that + * do not explicitly specify a schema name. The usual value for this field is "airbyte". In Oracle, + * schemas and users are the same thing, so the "user" parameter is used as the login credentials and + * this is used for the default Airbyte message schema. */ public Builder schema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -575,8 +623,10 @@ public Builder schema(Optional schema) { return this; } + /** - * The System Identifier uniquely distinguishes the instance from any other instance on the same computer. + * The System Identifier uniquely distinguishes the instance from any other instance on the same + * computer. */ public Builder sid(String sid) { Utils.checkNotNull(sid, "sid"); @@ -584,8 +634,10 @@ public Builder sid(String sid) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(DestinationOracleSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -594,7 +646,8 @@ public Builder tunnelMethod(DestinationOracleSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -602,6 +655,7 @@ public Builder tunnelMethod(Optional return this; } + /** * The username to access the database. This user must have CREATE USER privileges in the database. */ @@ -610,7 +664,7 @@ public Builder username(String username) { this.username = username; return this; } - + public DestinationOracle build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); @@ -618,19 +672,15 @@ public DestinationOracle build() { if (schema == null) { schema = _SINGLETON_VALUE_Schema.value(); } + return new DestinationOracle( - encryption, - host, - jdbcUrlParams, - password, - port, - rawDataSchema, - schema, - sid, - tunnelMethod, + encryption, host, jdbcUrlParams, + password, port, rawDataSchema, + schema, sid, tunnelMethod, username); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryption.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryption.java index dba0175db..103483068 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryption.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryption.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationOracleEncryption @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationOracleEncryption other = (DestinationOracleEncryption) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java index 8f6e52a41..89b3686b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleEncryptionMethod.java @@ -14,7 +14,7 @@ public enum DestinationOracleEncryptionMethod { @JsonValue private final String value; - private DestinationOracleEncryptionMethod(String value) { + DestinationOracleEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleNoTunnel.java index 3f66e1198..227012461 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationOracleNoTunnel { +public class DestinationOracleNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class DestinationOracleNoTunnel { @JsonCreator public DestinationOracleNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public DestinationOracleTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } DestinationOracleNoTunnel other = (DestinationOracleNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(DestinationOracleNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationOracleNoTunnel build() { + return new DestinationOracleNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOraclePasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationOraclePasswordAuthentication.java index 41119a313..a2b68f831 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOraclePasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOraclePasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationOraclePasswordAuthentication { +public class DestinationOraclePasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public DestinationOraclePasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public DestinationOraclePasswordAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public DestinationOraclePasswordAuthentication withTunnelUserPassword(String tun return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } DestinationOraclePasswordAuthentication other = (DestinationOraclePasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public DestinationOraclePasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationOraclePasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHKeyAuthentication.java index cc8484711..71938e50b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationOracleSSHKeyAuthentication { +public class DestinationOracleSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public DestinationOracleSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public DestinationOracleSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public DestinationOracleSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public DestinationOracleSSHKeyAuthentication withTunnelUser(String tunnelUser) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } DestinationOracleSSHKeyAuthentication other = (DestinationOracleSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public DestinationOracleSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationOracleSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHTunnelMethod.java index 310c3daf8..2defc283c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationOracleSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = DestinationOracleSSHTunnelMethod._Deserializer.class) public class DestinationOracleSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationOracleSSHTunnelMethod other = (DestinationOracleSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java index 17b9df933..9321461c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasEncryptionMethod.java @@ -14,7 +14,7 @@ public enum DestinationOracleSchemasEncryptionMethod { @JsonValue private final String value; - private DestinationOracleSchemasEncryptionMethod(String value) { + DestinationOracleSchemasEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethod.java index a58ba0b3d..7a67f47ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationOracleSchemasTunnelMethod { @JsonValue private final String value; - private DestinationOracleSchemasTunnelMethod(String value) { + DestinationOracleSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethodTunnelMethod.java index 5f68790f5..f6aa962da 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationOracleSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private DestinationOracleSchemasTunnelMethodTunnelMethod(String value) { + DestinationOracleSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleTunnelMethod.java index 87e09b0c1..526277c4b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationOracleTunnelMethod { @JsonValue private final String value; - private DestinationOracleTunnelMethod(String value) { + DestinationOracleTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationOracleUnencrypted.java b/src/main/java/com/airbyte/api/models/shared/DestinationOracleUnencrypted.java index a0b56377c..bec024fff 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationOracleUnencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationOracleUnencrypted.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class DestinationOracleUnencrypted { @JsonCreator public DestinationOracleUnencrypted() { - this.encryptionMethod = Builder._SINGLETON_VALUE_EncryptionMethod.value(); } @@ -40,11 +38,11 @@ public Optional encryptionMethod() { return (Optional) encryptionMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } DestinationOracleUnencrypted other = (DestinationOracleUnencrypted) o; return - Objects.deepEquals(this.encryptionMethod, other.encryptionMethod); + Utils.enhancedDeepEquals(this.encryptionMethod, other.encryptionMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( encryptionMethod); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(DestinationOracleUnencrypted.class, "encryptionMethod", encryptionMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationOracleUnencrypted build() { + return new DestinationOracleUnencrypted( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_EncryptionMethod = new LazySingletonValue<>( "encryption_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPatchRequest.java b/src/main/java/com/airbyte/api/models/shared/DestinationPatchRequest.java index 870e42407..a8b7a0ab0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPatchRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPatchRequest.java @@ -12,11 +12,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationPatchRequest { +public class DestinationPatchRequest { /** * The values required to configure the destination. */ @@ -24,12 +23,18 @@ public class DestinationPatchRequest { @JsonProperty("configuration") private Optional configuration; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") private Optional name; /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("resourceAllocation") @@ -67,7 +72,12 @@ public Optional name() { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -75,9 +85,10 @@ public Optional resourceAllocation() { return (Optional) resourceAllocation; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The values required to configure the destination. @@ -88,6 +99,7 @@ public DestinationPatchRequest withConfiguration(DestinationConfiguration config return this; } + /** * The values required to configure the destination. */ @@ -103,6 +115,7 @@ public DestinationPatchRequest withName(String name) { return this; } + public DestinationPatchRequest withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -110,7 +123,12 @@ public DestinationPatchRequest withName(Optional name) { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public DestinationPatchRequest withResourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -118,8 +136,14 @@ public DestinationPatchRequest withResourceAllocation(ScopedResourceRequirements return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public DestinationPatchRequest withResourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -127,7 +151,6 @@ public DestinationPatchRequest withResourceAllocation(Optional configuration = Optional.empty(); - + private Optional name = Optional.empty(); - + private Optional resourceAllocation = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The values required to configure the destination. */ @@ -189,6 +212,7 @@ public Builder configuration(Optional config return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = Optional.ofNullable(name); @@ -201,8 +225,14 @@ public Builder name(Optional name) { return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -211,19 +241,24 @@ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); this.resourceAllocation = resourceAllocation; return this; } - + public DestinationPatchRequest build() { + return new DestinationPatchRequest( - configuration, - name, - resourceAllocation); + configuration, name, resourceAllocation); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvector.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvector.java index 3e14a5add..6573a87f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvector.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvector.java @@ -14,13 +14,13 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** * DestinationPgvector * - *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, + *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI + * for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. * *

    The configuration model is composed of four parts: @@ -29,7 +29,8 @@ * * Indexing configuration * * Advanced configuration * - *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. + *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing + * configuration is provided by the destination connector in the sub class. */ public class DestinationPgvector { @@ -49,12 +50,15 @@ public class DestinationPgvector { private PostgresConnection indexing; /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("omit_raw_text") private Optional omitRawText; + @JsonProperty("processing") private DestinationPgvectorProcessingConfigModel processing; @@ -79,7 +83,8 @@ public DestinationPgvector( DestinationPgvectorEmbedding embedding, PostgresConnection indexing, DestinationPgvectorProcessingConfigModel processing) { - this(embedding, indexing, Optional.empty(), processing); + this(embedding, indexing, Optional.empty(), + processing); } @JsonIgnore @@ -104,7 +109,9 @@ public PostgresConnection indexing() { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonIgnore public Optional omitRawText() { @@ -116,9 +123,10 @@ public DestinationPgvectorProcessingConfigModel processing() { return processing; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Embedding configuration @@ -139,7 +147,9 @@ public DestinationPgvector withIndexing(PostgresConnection indexing) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationPgvector withOmitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -147,8 +157,11 @@ public DestinationPgvector withOmitRawText(boolean omitRawText) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationPgvector withOmitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -162,7 +175,6 @@ public DestinationPgvector withProcessing(DestinationPgvectorProcessingConfigMod return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +185,18 @@ public boolean equals(java.lang.Object o) { } DestinationPgvector other = (DestinationPgvector) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.embedding, other.embedding) && - Objects.deepEquals(this.indexing, other.indexing) && - Objects.deepEquals(this.omitRawText, other.omitRawText) && - Objects.deepEquals(this.processing, other.processing); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.embedding, other.embedding) && + Utils.enhancedDeepEquals(this.indexing, other.indexing) && + Utils.enhancedDeepEquals(this.omitRawText, other.omitRawText) && + Utils.enhancedDeepEquals(this.processing, other.processing); } @Override public int hashCode() { - return Objects.hash( - destinationType, - embedding, - indexing, - omitRawText, - processing); + return Utils.enhancedHash( + destinationType, embedding, indexing, + omitRawText, processing); } @Override @@ -199,21 +208,23 @@ public String toString() { "omitRawText", omitRawText, "processing", processing); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationPgvectorEmbedding embedding; - + private PostgresConnection indexing; - + private Optional omitRawText; - + private DestinationPgvectorProcessingConfigModel processing; - + private Builder() { // force use of static builder() method } + /** * Embedding configuration */ @@ -223,6 +234,7 @@ public Builder embedding(DestinationPgvectorEmbedding embedding) { return this; } + /** * Postgres can be used to store vector data and retrieve embeddings. */ @@ -232,8 +244,11 @@ public Builder indexing(PostgresConnection indexing) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -242,7 +257,9 @@ public Builder omitRawText(boolean omitRawText) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -250,23 +267,24 @@ public Builder omitRawText(Optional omitRawText) { return this; } + public Builder processing(DestinationPgvectorProcessingConfigModel processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; } - + public DestinationPgvector build() { if (omitRawText == null) { omitRawText = _SINGLETON_VALUE_OmitRawText.value(); } + return new DestinationPgvector( - embedding, - indexing, - omitRawText, + embedding, indexing, omitRawText, processing); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorAzureOpenAI.java index c4090fae4..910a3abff 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorAzureOpenAI.java @@ -14,34 +14,37 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationPgvectorAzureOpenAI * - *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model + * with 1536 embedding dimensions. */ public class DestinationPgvectorAzureOpenAI { - /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("api_base") private String apiBase; /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonProperty("deployment") private String deployment; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("openai_key") private String openaiKey; @@ -61,7 +64,8 @@ public DestinationPgvectorAzureOpenAI( } /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String apiBase() { @@ -69,7 +73,8 @@ public String apiBase() { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonIgnore public String deployment() { @@ -83,19 +88,22 @@ public Optional mode() { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationPgvectorAzureOpenAI withApiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -104,7 +112,8 @@ public DestinationPgvectorAzureOpenAI withApiBase(String apiBase) { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public DestinationPgvectorAzureOpenAI withDeployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -113,7 +122,8 @@ public DestinationPgvectorAzureOpenAI withDeployment(String deployment) { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationPgvectorAzureOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -121,7 +131,6 @@ public DestinationPgvectorAzureOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +141,16 @@ public boolean equals(java.lang.Object o) { } DestinationPgvectorAzureOpenAI other = (DestinationPgvectorAzureOpenAI) o; return - Objects.deepEquals(this.apiBase, other.apiBase) && - Objects.deepEquals(this.deployment, other.deployment) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.apiBase, other.apiBase) && + Utils.enhancedDeepEquals(this.deployment, other.deployment) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - apiBase, - deployment, - mode, + return Utils.enhancedHash( + apiBase, deployment, mode, openaiKey); } @@ -155,21 +162,24 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiBase; - + private String deployment; - + private String openaiKey; - + private Builder() { // force use of static builder() method } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder apiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -177,8 +187,10 @@ public Builder apiBase(String apiBase) { return this; } + /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public Builder deployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -186,22 +198,24 @@ public Builder deployment(String deployment) { return this; } + /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationPgvectorAzureOpenAI build() { + return new DestinationPgvectorAzureOpenAI( - apiBase, - deployment, - openaiKey); + apiBase, deployment, openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByMarkdownHeader.java index 677715cac..6dc49bf24 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByMarkdownHeader.java @@ -15,13 +15,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationPgvectorByMarkdownHeader * - *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. + *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits + * multiple sections, they will be combined into a single chunk. */ public class DestinationPgvectorByMarkdownHeader { @@ -30,7 +30,8 @@ public class DestinationPgvectorByMarkdownHeader { private Optional mode; /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("split_level") @@ -55,19 +56,22 @@ public Optional mode() { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonIgnore public Optional splitLevel() { return splitLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationPgvectorByMarkdownHeader withSplitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -75,8 +79,10 @@ public DestinationPgvectorByMarkdownHeader withSplitLevel(long splitLevel) { return this; } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationPgvectorByMarkdownHeader withSplitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -84,7 +90,6 @@ public DestinationPgvectorByMarkdownHeader withSplitLevel(Optional splitLe return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +100,14 @@ public boolean equals(java.lang.Object o) { } DestinationPgvectorByMarkdownHeader other = (DestinationPgvectorByMarkdownHeader) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.splitLevel, other.splitLevel); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.splitLevel, other.splitLevel); } @Override public int hashCode() { - return Objects.hash( - mode, - splitLevel); + return Utils.enhancedHash( + mode, splitLevel); } @Override @@ -112,17 +116,20 @@ public String toString() { "mode", mode, "splitLevel", splitLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional splitLevel; - + private Builder() { // force use of static builder() method } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -131,22 +138,25 @@ public Builder splitLevel(long splitLevel) { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); this.splitLevel = splitLevel; return this; } - + public DestinationPgvectorByMarkdownHeader build() { if (splitLevel == null) { splitLevel = _SINGLETON_VALUE_SplitLevel.value(); } + return new DestinationPgvectorByMarkdownHeader( splitLevel); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByProgrammingLanguage.java index 542e08e9b..6bfac265d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorByProgrammingLanguage.java @@ -14,22 +14,22 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationPgvectorByProgrammingLanguage * - *

    Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. + *

    Split the text by suitable delimiters based on the programming language. This is useful for + * splitting code into chunks. */ public class DestinationPgvectorByProgrammingLanguage { - /** * Split code in suitable places based on the programming language */ @JsonProperty("language") private DestinationPgvectorLanguage language; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -56,9 +56,10 @@ public Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Split code in suitable places based on the programming language @@ -69,7 +70,6 @@ public DestinationPgvectorByProgrammingLanguage withLanguage(DestinationPgvector return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +80,14 @@ public boolean equals(java.lang.Object o) { } DestinationPgvectorByProgrammingLanguage other = (DestinationPgvectorByProgrammingLanguage) o; return - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.language, other.language) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - language, - mode); + return Utils.enhancedHash( + language, mode); } @Override @@ -97,15 +96,17 @@ public String toString() { "language", language, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationPgvectorLanguage language; - + private Builder() { // force use of static builder() method } + /** * Split code in suitable places based on the programming language */ @@ -114,12 +115,14 @@ public Builder language(DestinationPgvectorLanguage language) { this.language = language; return this; } - + public DestinationPgvectorByProgrammingLanguage build() { + return new DestinationPgvectorByProgrammingLanguage( language); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorBySeparator.java index 9e93432d9..24ae41867 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorBySeparator.java @@ -16,16 +16,16 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * DestinationPgvectorBySeparator * - *

    Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. + *

    Split the text by the list of separators until the chunk size is reached, using the earlier + * mentioned separators where possible. This is useful for splitting text fields by paragraphs, + * sentences, words, etc. */ public class DestinationPgvectorBySeparator { - /** * Whether to keep the separator in the resulting chunks */ @@ -33,12 +33,16 @@ public class DestinationPgvectorBySeparator { @JsonProperty("keep_separator") private Optional keepSeparator; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("separators") @@ -74,7 +78,10 @@ public Optional mode() { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @SuppressWarnings("unchecked") @JsonIgnore @@ -82,9 +89,10 @@ public Optional> separators() { return (Optional>) separators; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Whether to keep the separator in the resulting chunks @@ -95,6 +103,7 @@ public DestinationPgvectorBySeparator withKeepSeparator(boolean keepSeparator) { return this; } + /** * Whether to keep the separator in the resulting chunks */ @@ -105,7 +114,10 @@ public DestinationPgvectorBySeparator withKeepSeparator(Optional keepSe } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationPgvectorBySeparator withSeparators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -113,8 +125,12 @@ public DestinationPgvectorBySeparator withSeparators(List separators) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationPgvectorBySeparator withSeparators(Optional> separators) { Utils.checkNotNull(separators, "separators"); @@ -122,7 +138,6 @@ public DestinationPgvectorBySeparator withSeparators(Optional keepSeparator; - + private Optional> separators = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Whether to keep the separator in the resulting chunks */ @@ -182,8 +197,12 @@ public Builder keepSeparator(Optional keepSeparator) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -192,23 +211,27 @@ public Builder separators(List separators) { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(Optional> separators) { Utils.checkNotNull(separators, "separators"); this.separators = separators; return this; } - + public DestinationPgvectorBySeparator build() { if (keepSeparator == null) { keepSeparator = _SINGLETON_VALUE_KeepSeparator.value(); } + return new DestinationPgvectorBySeparator( - keepSeparator, - separators); + keepSeparator, separators); } + private static final LazySingletonValue> _SINGLETON_VALUE_KeepSeparator = new LazySingletonValue<>( "keep_separator", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCohere.java index 135338fbe..08a7a2077 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCohere.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -27,6 +26,7 @@ public class DestinationPgvectorCohere { @JsonProperty("cohere_key") private String cohereKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -50,9 +50,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationPgvectorCohere withCohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); @@ -60,7 +61,6 @@ public DestinationPgvectorCohere withCohereKey(String cohereKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +71,14 @@ public boolean equals(java.lang.Object o) { } DestinationPgvectorCohere other = (DestinationPgvectorCohere) o; return - Objects.deepEquals(this.cohereKey, other.cohereKey) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.cohereKey, other.cohereKey) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - cohereKey, - mode); + return Utils.enhancedHash( + cohereKey, mode); } @Override @@ -88,26 +87,30 @@ public String toString() { "cohereKey", cohereKey, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String cohereKey; - + private Builder() { // force use of static builder() method } + public Builder cohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); this.cohereKey = cohereKey; return this; } - + public DestinationPgvectorCohere build() { + return new DestinationPgvectorCohere( cohereKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCredentials.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCredentials.java index 8d90ed8f7..172258c72 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorCredentials.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationPgvectorCredentials { +public class DestinationPgvectorCredentials { /** * Enter the password you want to use to access the database */ @@ -34,9 +33,10 @@ public String password() { return password; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Enter the password you want to use to access the database @@ -47,7 +47,6 @@ public DestinationPgvectorCredentials withPassword(String password) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -58,12 +57,12 @@ public boolean equals(java.lang.Object o) { } DestinationPgvectorCredentials other = (DestinationPgvectorCredentials) o; return - Objects.deepEquals(this.password, other.password); + Utils.enhancedDeepEquals(this.password, other.password); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( password); } @@ -72,15 +71,17 @@ public String toString() { return Utils.toString(DestinationPgvectorCredentials.class, "password", password); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private Builder() { // force use of static builder() method } + /** * Enter the password you want to use to access the database */ @@ -89,10 +90,12 @@ public Builder password(String password) { this.password = password; return this; } - + public DestinationPgvectorCredentials build() { + return new DestinationPgvectorCredentials( password); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorEmbedding.java index f2a58a953..aa52ee30d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorEmbedding.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationPgvectorEmbedding @@ -90,12 +89,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationPgvectorEmbedding other = (DestinationPgvectorEmbedding) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFake.java index 76b94181e..3411368ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFake.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationPgvectorFake * - *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. + *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for + * testing the data pipeline without incurring any costs. */ public class DestinationPgvectorFake { @@ -30,7 +30,6 @@ public class DestinationPgvectorFake { @JsonCreator public DestinationPgvectorFake() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +39,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } DestinationPgvectorFake other = (DestinationPgvectorFake) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +68,21 @@ public String toString() { return Utils.toString(DestinationPgvectorFake.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationPgvectorFake build() { + return new DestinationPgvectorFake( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFieldNameMappingConfigModel.java index 9fe8cbfe9..5faf5e3a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorFieldNameMappingConfigModel.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationPgvectorFieldNameMappingConfigModel { +public class DestinationPgvectorFieldNameMappingConfigModel { /** * The field name in the source */ @@ -51,9 +50,10 @@ public String toField() { return toField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The field name in the source @@ -73,7 +73,6 @@ public DestinationPgvectorFieldNameMappingConfigModel withToField(String toField return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +83,14 @@ public boolean equals(java.lang.Object o) { } DestinationPgvectorFieldNameMappingConfigModel other = (DestinationPgvectorFieldNameMappingConfigModel) o; return - Objects.deepEquals(this.fromField, other.fromField) && - Objects.deepEquals(this.toField, other.toField); + Utils.enhancedDeepEquals(this.fromField, other.fromField) && + Utils.enhancedDeepEquals(this.toField, other.toField); } @Override public int hashCode() { - return Objects.hash( - fromField, - toField); + return Utils.enhancedHash( + fromField, toField); } @Override @@ -101,17 +99,19 @@ public String toString() { "fromField", fromField, "toField", toField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fromField; - + private String toField; - + private Builder() { // force use of static builder() method } + /** * The field name in the source */ @@ -121,6 +121,7 @@ public Builder fromField(String fromField) { return this; } + /** * The field name to use in the destination */ @@ -129,11 +130,12 @@ public Builder toField(String toField) { this.toField = toField; return this; } - + public DestinationPgvectorFieldNameMappingConfigModel build() { + return new DestinationPgvectorFieldNameMappingConfigModel( - fromField, - toField); + fromField, toField); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java index 0c145b28d..e647b5668 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorLanguage.java @@ -34,7 +34,7 @@ public enum DestinationPgvectorLanguage { @JsonValue private final String value; - private DestinationPgvectorLanguage(String value) { + DestinationPgvectorLanguage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorMode.java index 1d3e08aaa..9656623c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorMode.java @@ -14,7 +14,7 @@ public enum DestinationPgvectorMode { @JsonValue private final String value; - private DestinationPgvectorMode(String value) { + DestinationPgvectorMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAI.java index 827cbe4af..96c00b161 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAI.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationPgvectorOpenAI * - *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 + * embedding dimensions. */ public class DestinationPgvectorOpenAI { @@ -28,6 +28,7 @@ public class DestinationPgvectorOpenAI { @JsonProperty("mode") private Optional mode; + @JsonProperty("openai_key") private String openaiKey; @@ -50,9 +51,10 @@ public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationPgvectorOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -60,7 +62,6 @@ public DestinationPgvectorOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +72,14 @@ public boolean equals(java.lang.Object o) { } DestinationPgvectorOpenAI other = (DestinationPgvectorOpenAI) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - mode, - openaiKey); + return Utils.enhancedHash( + mode, openaiKey); } @Override @@ -88,26 +88,30 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String openaiKey; - + private Builder() { // force use of static builder() method } + public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationPgvectorOpenAI build() { + return new DestinationPgvectorOpenAI( openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAICompatible.java index a62406f80..f58ca86c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorOpenAICompatible.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -41,6 +40,7 @@ public class DestinationPgvectorOpenAICompatible { @JsonProperty("dimensions") private long dimensions; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -72,7 +72,8 @@ public DestinationPgvectorOpenAICompatible( public DestinationPgvectorOpenAICompatible( String baseUrl, long dimensions) { - this(Optional.empty(), baseUrl, dimensions, Optional.empty()); + this(Optional.empty(), baseUrl, dimensions, + Optional.empty()); } @JsonIgnore @@ -110,9 +111,10 @@ public Optional modelName() { return modelName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationPgvectorOpenAICompatible withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -120,6 +122,7 @@ public DestinationPgvectorOpenAICompatible withApiKey(String apiKey) { return this; } + public DestinationPgvectorOpenAICompatible withApiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; @@ -153,6 +156,7 @@ public DestinationPgvectorOpenAICompatible withModelName(String modelName) { return this; } + /** * The name of the model to use for embedding */ @@ -162,7 +166,6 @@ public DestinationPgvectorOpenAICompatible withModelName(Optional modelN return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +176,18 @@ public boolean equals(java.lang.Object o) { } DestinationPgvectorOpenAICompatible other = (DestinationPgvectorOpenAICompatible) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.dimensions, other.dimensions) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.modelName, other.modelName); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.dimensions, other.dimensions) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.modelName, other.modelName); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - dimensions, - mode, - modelName); + return Utils.enhancedHash( + apiKey, baseUrl, dimensions, + mode, modelName); } @Override @@ -199,21 +199,23 @@ public String toString() { "mode", mode, "modelName", modelName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey; - + private String baseUrl; - + private Long dimensions; - + private Optional modelName; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = Optional.ofNullable(apiKey); @@ -226,6 +228,7 @@ public Builder apiKey(Optional apiKey) { return this; } + /** * The base URL for your OpenAI-compatible service */ @@ -235,6 +238,7 @@ public Builder baseUrl(String baseUrl) { return this; } + /** * The number of dimensions the embedding model is generating */ @@ -244,6 +248,7 @@ public Builder dimensions(long dimensions) { return this; } + /** * The name of the model to use for embedding */ @@ -261,7 +266,7 @@ public Builder modelName(Optional modelName) { this.modelName = modelName; return this; } - + public DestinationPgvectorOpenAICompatible build() { if (apiKey == null) { apiKey = _SINGLETON_VALUE_ApiKey.value(); @@ -269,13 +274,13 @@ public DestinationPgvectorOpenAICompatible build() { if (modelName == null) { modelName = _SINGLETON_VALUE_ModelName.value(); } + return new DestinationPgvectorOpenAICompatible( - apiKey, - baseUrl, - dimensions, + apiKey, baseUrl, dimensions, modelName); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiKey = new LazySingletonValue<>( "api_key", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorProcessingConfigModel.java index 3d0813482..4b21ad738 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorProcessingConfigModel.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class DestinationPgvectorProcessingConfigModel { +public class DestinationPgvectorProcessingConfigModel { /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -29,27 +28,46 @@ public class DestinationPgvectorProcessingConfigModel { private Optional chunkOverlap; /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonProperty("chunk_size") private long chunkSize; /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("field_name_mappings") private Optional> fieldNameMappings; /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata_fields") private Optional> metadataFields; /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("text_fields") @@ -86,7 +104,8 @@ public DestinationPgvectorProcessingConfigModel( public DestinationPgvectorProcessingConfigModel( long chunkSize) { - this(Optional.empty(), chunkSize, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), chunkSize, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -98,7 +117,8 @@ public Optional chunkOverlap() { } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonIgnore public long chunkSize() { @@ -106,7 +126,8 @@ public long chunkSize() { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +136,16 @@ public Optional> fieldNameM } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -124,7 +154,15 @@ public Optional> metadataFields() { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -141,9 +179,10 @@ public Optional textSplitter() { return (Optional) textSplitter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context @@ -154,6 +193,7 @@ public DestinationPgvectorProcessingConfigModel withChunkOverlap(long chunkOverl return this; } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -164,7 +204,8 @@ public DestinationPgvectorProcessingConfigModel withChunkOverlap(Optional } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public DestinationPgvectorProcessingConfigModel withChunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -173,7 +214,8 @@ public DestinationPgvectorProcessingConfigModel withChunkSize(long chunkSize) { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public DestinationPgvectorProcessingConfigModel withFieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -181,8 +223,10 @@ public DestinationPgvectorProcessingConfigModel withFieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -191,7 +235,16 @@ public DestinationPgvectorProcessingConfigModel withFieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationPgvectorProcessingConfigModel withMetadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -199,8 +252,18 @@ public DestinationPgvectorProcessingConfigModel withMetadataFields(List return this; } + /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationPgvectorProcessingConfigModel withMetadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -209,7 +272,15 @@ public DestinationPgvectorProcessingConfigModel withMetadataFields(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationPgvectorProcessingConfigModel withTextFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -217,8 +288,17 @@ public DestinationPgvectorProcessingConfigModel withTextFields(List text return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationPgvectorProcessingConfigModel withTextFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -235,6 +315,7 @@ public DestinationPgvectorProcessingConfigModel withTextSplitter(DestinationPgve return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -244,7 +325,6 @@ public DestinationPgvectorProcessingConfigModel withTextSplitter(Optional chunkOverlap; - + private Long chunkSize; - + private Optional> fieldNameMappings = Optional.empty(); - + private Optional> metadataFields = Optional.empty(); - + private Optional> textFields = Optional.empty(); - + private Optional textSplitter = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -321,8 +399,10 @@ public Builder chunkOverlap(Optional chunkOverlap) { return this; } + /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public Builder chunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -330,8 +410,10 @@ public Builder chunkSize(long chunkSize) { return this; } + /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public Builder fieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -340,7 +422,8 @@ public Builder fieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -348,8 +431,18 @@ public Builder fieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -358,7 +451,16 @@ public Builder metadataFields(List metadataFields) { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -366,8 +468,17 @@ public Builder metadataFields(Optional> metadataFields) { return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -376,7 +487,15 @@ public Builder textFields(List textFields) { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -384,6 +503,7 @@ public Builder textFields(Optional> textFields) { return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -401,20 +521,18 @@ public Builder textSplitter(Optional this.textSplitter = textSplitter; return this; } - + public DestinationPgvectorProcessingConfigModel build() { if (chunkOverlap == null) { chunkOverlap = _SINGLETON_VALUE_ChunkOverlap.value(); } + return new DestinationPgvectorProcessingConfigModel( - chunkOverlap, - chunkSize, - fieldNameMappings, - metadataFields, - textFields, - textSplitter); + chunkOverlap, chunkSize, fieldNameMappings, + metadataFields, textFields, textSplitter); } + private static final LazySingletonValue> _SINGLETON_VALUE_ChunkOverlap = new LazySingletonValue<>( "chunk_overlap", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java index 9efe04d82..9c51bc771 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbedding5Mode.java @@ -14,7 +14,7 @@ public enum DestinationPgvectorSchemasEmbeddingEmbedding5Mode { @JsonValue private final String value; - private DestinationPgvectorSchemasEmbeddingEmbedding5Mode(String value) { + DestinationPgvectorSchemasEmbeddingEmbedding5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbeddingMode.java index 9b031483b..5b9c6b532 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationPgvectorSchemasEmbeddingEmbeddingMode { @JsonValue private final String value; - private DestinationPgvectorSchemasEmbeddingEmbeddingMode(String value) { + DestinationPgvectorSchemasEmbeddingEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingMode.java index 9ab7a4905..029f900b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationPgvectorSchemasEmbeddingMode { @JsonValue private final String value; - private DestinationPgvectorSchemasEmbeddingMode(String value) { + DestinationPgvectorSchemasEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasMode.java index 23cca61ac..688bf391b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationPgvectorSchemasMode { @JsonValue private final String value; - private DestinationPgvectorSchemasMode(String value) { + DestinationPgvectorSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingMode.java index 988e9690c..7e5475f5f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingMode.java @@ -14,7 +14,7 @@ public enum DestinationPgvectorSchemasProcessingMode { @JsonValue private final String value; - private DestinationPgvectorSchemasProcessingMode(String value) { + DestinationPgvectorSchemasProcessingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterMode.java index 50cf1f929..4e5f1f1a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationPgvectorSchemasProcessingTextSplitterMode { @JsonValue private final String value; - private DestinationPgvectorSchemasProcessingTextSplitterMode(String value) { + DestinationPgvectorSchemasProcessingTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.java index 69b70ada6..f8bd1b377 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode { @JsonValue private final String value; - private DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode(String value) { + DestinationPgvectorSchemasProcessingTextSplitterTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorTextSplitter.java index 5a6827c96..f3712552f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPgvectorTextSplitter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationPgvectorTextSplitter @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationPgvectorTextSplitter other = (DestinationPgvectorTextSplitter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPinecone.java b/src/main/java/com/airbyte/api/models/shared/DestinationPinecone.java index d781a7d3a..89f6dde12 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPinecone.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPinecone.java @@ -14,13 +14,13 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** * DestinationPinecone * - *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, + *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI + * for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. * *

    The configuration model is composed of four parts: @@ -29,7 +29,8 @@ * * Indexing configuration * * Advanced configuration * - *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. + *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing + * configuration is provided by the destination connector in the sub class. */ public class DestinationPinecone { @@ -49,12 +50,15 @@ public class DestinationPinecone { private DestinationPineconeIndexing indexing; /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("omit_raw_text") private Optional omitRawText; + @JsonProperty("processing") private DestinationPineconeProcessingConfigModel processing; @@ -79,7 +83,8 @@ public DestinationPinecone( DestinationPineconeEmbedding embedding, DestinationPineconeIndexing indexing, DestinationPineconeProcessingConfigModel processing) { - this(embedding, indexing, Optional.empty(), processing); + this(embedding, indexing, Optional.empty(), + processing); } @JsonIgnore @@ -104,7 +109,9 @@ public DestinationPineconeIndexing indexing() { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonIgnore public Optional omitRawText() { @@ -116,9 +123,10 @@ public DestinationPineconeProcessingConfigModel processing() { return processing; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Embedding configuration @@ -139,7 +147,9 @@ public DestinationPinecone withIndexing(DestinationPineconeIndexing indexing) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationPinecone withOmitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -147,8 +157,11 @@ public DestinationPinecone withOmitRawText(boolean omitRawText) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationPinecone withOmitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -162,7 +175,6 @@ public DestinationPinecone withProcessing(DestinationPineconeProcessingConfigMod return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +185,18 @@ public boolean equals(java.lang.Object o) { } DestinationPinecone other = (DestinationPinecone) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.embedding, other.embedding) && - Objects.deepEquals(this.indexing, other.indexing) && - Objects.deepEquals(this.omitRawText, other.omitRawText) && - Objects.deepEquals(this.processing, other.processing); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.embedding, other.embedding) && + Utils.enhancedDeepEquals(this.indexing, other.indexing) && + Utils.enhancedDeepEquals(this.omitRawText, other.omitRawText) && + Utils.enhancedDeepEquals(this.processing, other.processing); } @Override public int hashCode() { - return Objects.hash( - destinationType, - embedding, - indexing, - omitRawText, - processing); + return Utils.enhancedHash( + destinationType, embedding, indexing, + omitRawText, processing); } @Override @@ -199,21 +208,23 @@ public String toString() { "omitRawText", omitRawText, "processing", processing); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationPineconeEmbedding embedding; - + private DestinationPineconeIndexing indexing; - + private Optional omitRawText; - + private DestinationPineconeProcessingConfigModel processing; - + private Builder() { // force use of static builder() method } + /** * Embedding configuration */ @@ -223,6 +234,7 @@ public Builder embedding(DestinationPineconeEmbedding embedding) { return this; } + /** * Pinecone is a popular vector store that can be used to store and retrieve embeddings. */ @@ -232,8 +244,11 @@ public Builder indexing(DestinationPineconeIndexing indexing) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -242,7 +257,9 @@ public Builder omitRawText(boolean omitRawText) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -250,23 +267,24 @@ public Builder omitRawText(Optional omitRawText) { return this; } + public Builder processing(DestinationPineconeProcessingConfigModel processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; } - + public DestinationPinecone build() { if (omitRawText == null) { omitRawText = _SINGLETON_VALUE_OmitRawText.value(); } + return new DestinationPinecone( - embedding, - indexing, - omitRawText, + embedding, indexing, omitRawText, processing); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeAzureOpenAI.java index 5d861b730..ecca5b11e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeAzureOpenAI.java @@ -14,34 +14,37 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationPineconeAzureOpenAI * - *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model + * with 1536 embedding dimensions. */ public class DestinationPineconeAzureOpenAI { - /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("api_base") private String apiBase; /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonProperty("deployment") private String deployment; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("openai_key") private String openaiKey; @@ -61,7 +64,8 @@ public DestinationPineconeAzureOpenAI( } /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String apiBase() { @@ -69,7 +73,8 @@ public String apiBase() { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonIgnore public String deployment() { @@ -83,19 +88,22 @@ public Optional mode() { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationPineconeAzureOpenAI withApiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -104,7 +112,8 @@ public DestinationPineconeAzureOpenAI withApiBase(String apiBase) { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public DestinationPineconeAzureOpenAI withDeployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -113,7 +122,8 @@ public DestinationPineconeAzureOpenAI withDeployment(String deployment) { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationPineconeAzureOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -121,7 +131,6 @@ public DestinationPineconeAzureOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +141,16 @@ public boolean equals(java.lang.Object o) { } DestinationPineconeAzureOpenAI other = (DestinationPineconeAzureOpenAI) o; return - Objects.deepEquals(this.apiBase, other.apiBase) && - Objects.deepEquals(this.deployment, other.deployment) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.apiBase, other.apiBase) && + Utils.enhancedDeepEquals(this.deployment, other.deployment) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - apiBase, - deployment, - mode, + return Utils.enhancedHash( + apiBase, deployment, mode, openaiKey); } @@ -155,21 +162,24 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiBase; - + private String deployment; - + private String openaiKey; - + private Builder() { // force use of static builder() method } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder apiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -177,8 +187,10 @@ public Builder apiBase(String apiBase) { return this; } + /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public Builder deployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -186,22 +198,24 @@ public Builder deployment(String deployment) { return this; } + /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationPineconeAzureOpenAI build() { + return new DestinationPineconeAzureOpenAI( - apiBase, - deployment, - openaiKey); + apiBase, deployment, openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByMarkdownHeader.java index 16e222d73..4402d32e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByMarkdownHeader.java @@ -15,13 +15,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationPineconeByMarkdownHeader * - *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. + *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits + * multiple sections, they will be combined into a single chunk. */ public class DestinationPineconeByMarkdownHeader { @@ -30,7 +30,8 @@ public class DestinationPineconeByMarkdownHeader { private Optional mode; /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("split_level") @@ -55,19 +56,22 @@ public Optional mode() { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonIgnore public Optional splitLevel() { return splitLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationPineconeByMarkdownHeader withSplitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -75,8 +79,10 @@ public DestinationPineconeByMarkdownHeader withSplitLevel(long splitLevel) { return this; } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationPineconeByMarkdownHeader withSplitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -84,7 +90,6 @@ public DestinationPineconeByMarkdownHeader withSplitLevel(Optional splitLe return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +100,14 @@ public boolean equals(java.lang.Object o) { } DestinationPineconeByMarkdownHeader other = (DestinationPineconeByMarkdownHeader) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.splitLevel, other.splitLevel); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.splitLevel, other.splitLevel); } @Override public int hashCode() { - return Objects.hash( - mode, - splitLevel); + return Utils.enhancedHash( + mode, splitLevel); } @Override @@ -112,17 +116,20 @@ public String toString() { "mode", mode, "splitLevel", splitLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional splitLevel; - + private Builder() { // force use of static builder() method } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -131,22 +138,25 @@ public Builder splitLevel(long splitLevel) { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); this.splitLevel = splitLevel; return this; } - + public DestinationPineconeByMarkdownHeader build() { if (splitLevel == null) { splitLevel = _SINGLETON_VALUE_SplitLevel.value(); } + return new DestinationPineconeByMarkdownHeader( splitLevel); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByProgrammingLanguage.java index e091e11c1..e0736970a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeByProgrammingLanguage.java @@ -14,22 +14,22 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationPineconeByProgrammingLanguage * - *

    Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. + *

    Split the text by suitable delimiters based on the programming language. This is useful for + * splitting code into chunks. */ public class DestinationPineconeByProgrammingLanguage { - /** * Split code in suitable places based on the programming language */ @JsonProperty("language") private DestinationPineconeLanguage language; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -56,9 +56,10 @@ public Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Split code in suitable places based on the programming language @@ -69,7 +70,6 @@ public DestinationPineconeByProgrammingLanguage withLanguage(DestinationPinecone return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +80,14 @@ public boolean equals(java.lang.Object o) { } DestinationPineconeByProgrammingLanguage other = (DestinationPineconeByProgrammingLanguage) o; return - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.language, other.language) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - language, - mode); + return Utils.enhancedHash( + language, mode); } @Override @@ -97,15 +96,17 @@ public String toString() { "language", language, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationPineconeLanguage language; - + private Builder() { // force use of static builder() method } + /** * Split code in suitable places based on the programming language */ @@ -114,12 +115,14 @@ public Builder language(DestinationPineconeLanguage language) { this.language = language; return this; } - + public DestinationPineconeByProgrammingLanguage build() { + return new DestinationPineconeByProgrammingLanguage( language); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeBySeparator.java index 9c9a875e8..c94b3df61 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeBySeparator.java @@ -16,16 +16,16 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * DestinationPineconeBySeparator * - *

    Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. + *

    Split the text by the list of separators until the chunk size is reached, using the earlier + * mentioned separators where possible. This is useful for splitting text fields by paragraphs, + * sentences, words, etc. */ public class DestinationPineconeBySeparator { - /** * Whether to keep the separator in the resulting chunks */ @@ -33,12 +33,16 @@ public class DestinationPineconeBySeparator { @JsonProperty("keep_separator") private Optional keepSeparator; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("separators") @@ -74,7 +78,10 @@ public Optional mode() { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @SuppressWarnings("unchecked") @JsonIgnore @@ -82,9 +89,10 @@ public Optional> separators() { return (Optional>) separators; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Whether to keep the separator in the resulting chunks @@ -95,6 +103,7 @@ public DestinationPineconeBySeparator withKeepSeparator(boolean keepSeparator) { return this; } + /** * Whether to keep the separator in the resulting chunks */ @@ -105,7 +114,10 @@ public DestinationPineconeBySeparator withKeepSeparator(Optional keepSe } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationPineconeBySeparator withSeparators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -113,8 +125,12 @@ public DestinationPineconeBySeparator withSeparators(List separators) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationPineconeBySeparator withSeparators(Optional> separators) { Utils.checkNotNull(separators, "separators"); @@ -122,7 +138,6 @@ public DestinationPineconeBySeparator withSeparators(Optional keepSeparator; - + private Optional> separators = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Whether to keep the separator in the resulting chunks */ @@ -182,8 +197,12 @@ public Builder keepSeparator(Optional keepSeparator) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -192,23 +211,27 @@ public Builder separators(List separators) { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(Optional> separators) { Utils.checkNotNull(separators, "separators"); this.separators = separators; return this; } - + public DestinationPineconeBySeparator build() { if (keepSeparator == null) { keepSeparator = _SINGLETON_VALUE_KeepSeparator.value(); } + return new DestinationPineconeBySeparator( - keepSeparator, - separators); + keepSeparator, separators); } + private static final LazySingletonValue> _SINGLETON_VALUE_KeepSeparator = new LazySingletonValue<>( "keep_separator", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeCohere.java index 3254bfe2d..888b6cbac 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeCohere.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -27,6 +26,7 @@ public class DestinationPineconeCohere { @JsonProperty("cohere_key") private String cohereKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -50,9 +50,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationPineconeCohere withCohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); @@ -60,7 +61,6 @@ public DestinationPineconeCohere withCohereKey(String cohereKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +71,14 @@ public boolean equals(java.lang.Object o) { } DestinationPineconeCohere other = (DestinationPineconeCohere) o; return - Objects.deepEquals(this.cohereKey, other.cohereKey) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.cohereKey, other.cohereKey) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - cohereKey, - mode); + return Utils.enhancedHash( + cohereKey, mode); } @Override @@ -88,26 +87,30 @@ public String toString() { "cohereKey", cohereKey, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String cohereKey; - + private Builder() { // force use of static builder() method } + public Builder cohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); this.cohereKey = cohereKey; return this; } - + public DestinationPineconeCohere build() { + return new DestinationPineconeCohere( cohereKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeEmbedding.java index ea85d8c83..be4f3893c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeEmbedding.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationPineconeEmbedding @@ -90,12 +89,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationPineconeEmbedding other = (DestinationPineconeEmbedding) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFake.java index 01c6abb54..321f32e0a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFake.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationPineconeFake * - *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. + *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for + * testing the data pipeline without incurring any costs. */ public class DestinationPineconeFake { @@ -30,7 +30,6 @@ public class DestinationPineconeFake { @JsonCreator public DestinationPineconeFake() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +39,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } DestinationPineconeFake other = (DestinationPineconeFake) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +68,21 @@ public String toString() { return Utils.toString(DestinationPineconeFake.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationPineconeFake build() { + return new DestinationPineconeFake( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFieldNameMappingConfigModel.java index f7f9025dc..7cf76ecc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeFieldNameMappingConfigModel.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationPineconeFieldNameMappingConfigModel { +public class DestinationPineconeFieldNameMappingConfigModel { /** * The field name in the source */ @@ -51,9 +50,10 @@ public String toField() { return toField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The field name in the source @@ -73,7 +73,6 @@ public DestinationPineconeFieldNameMappingConfigModel withToField(String toField return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +83,14 @@ public boolean equals(java.lang.Object o) { } DestinationPineconeFieldNameMappingConfigModel other = (DestinationPineconeFieldNameMappingConfigModel) o; return - Objects.deepEquals(this.fromField, other.fromField) && - Objects.deepEquals(this.toField, other.toField); + Utils.enhancedDeepEquals(this.fromField, other.fromField) && + Utils.enhancedDeepEquals(this.toField, other.toField); } @Override public int hashCode() { - return Objects.hash( - fromField, - toField); + return Utils.enhancedHash( + fromField, toField); } @Override @@ -101,17 +99,19 @@ public String toString() { "fromField", fromField, "toField", toField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fromField; - + private String toField; - + private Builder() { // force use of static builder() method } + /** * The field name in the source */ @@ -121,6 +121,7 @@ public Builder fromField(String fromField) { return this; } + /** * The field name to use in the destination */ @@ -129,11 +130,12 @@ public Builder toField(String toField) { this.toField = toField; return this; } - + public DestinationPineconeFieldNameMappingConfigModel build() { + return new DestinationPineconeFieldNameMappingConfigModel( - fromField, - toField); + fromField, toField); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeIndexing.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeIndexing.java index a1935d2ce..e7b32b574 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeIndexing.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeIndexing.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * DestinationPineconeIndexing @@ -17,7 +16,6 @@ *

    Pinecone is a popular vector store that can be used to store and retrieve embeddings. */ public class DestinationPineconeIndexing { - /** * Pinecone index in your project to load data into */ @@ -73,9 +71,10 @@ public String pineconeKey() { return pineconeKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Pinecone index in your project to load data into @@ -104,7 +103,6 @@ public DestinationPineconeIndexing withPineconeKey(String pineconeKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -115,17 +113,15 @@ public boolean equals(java.lang.Object o) { } DestinationPineconeIndexing other = (DestinationPineconeIndexing) o; return - Objects.deepEquals(this.index, other.index) && - Objects.deepEquals(this.pineconeEnvironment, other.pineconeEnvironment) && - Objects.deepEquals(this.pineconeKey, other.pineconeKey); + Utils.enhancedDeepEquals(this.index, other.index) && + Utils.enhancedDeepEquals(this.pineconeEnvironment, other.pineconeEnvironment) && + Utils.enhancedDeepEquals(this.pineconeKey, other.pineconeKey); } @Override public int hashCode() { - return Objects.hash( - index, - pineconeEnvironment, - pineconeKey); + return Utils.enhancedHash( + index, pineconeEnvironment, pineconeKey); } @Override @@ -135,19 +131,21 @@ public String toString() { "pineconeEnvironment", pineconeEnvironment, "pineconeKey", pineconeKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String index; - + private String pineconeEnvironment; - + private String pineconeKey; - + private Builder() { // force use of static builder() method } + /** * Pinecone index in your project to load data into */ @@ -157,6 +155,7 @@ public Builder index(String index) { return this; } + /** * Pinecone Cloud environment to use */ @@ -166,6 +165,7 @@ public Builder pineconeEnvironment(String pineconeEnvironment) { return this; } + /** * The Pinecone API key to use matching the environment (copy from Pinecone console) */ @@ -174,12 +174,12 @@ public Builder pineconeKey(String pineconeKey) { this.pineconeKey = pineconeKey; return this; } - + public DestinationPineconeIndexing build() { + return new DestinationPineconeIndexing( - index, - pineconeEnvironment, - pineconeKey); + index, pineconeEnvironment, pineconeKey); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java index e6b9b7312..ed304bb25 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeLanguage.java @@ -34,7 +34,7 @@ public enum DestinationPineconeLanguage { @JsonValue private final String value; - private DestinationPineconeLanguage(String value) { + DestinationPineconeLanguage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeMode.java index 61899f19f..b79315517 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeMode.java @@ -14,7 +14,7 @@ public enum DestinationPineconeMode { @JsonValue private final String value; - private DestinationPineconeMode(String value) { + DestinationPineconeMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAI.java index 354c8af93..b55a2d1a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAI.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationPineconeOpenAI * - *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 + * embedding dimensions. */ public class DestinationPineconeOpenAI { @@ -28,6 +28,7 @@ public class DestinationPineconeOpenAI { @JsonProperty("mode") private Optional mode; + @JsonProperty("openai_key") private String openaiKey; @@ -50,9 +51,10 @@ public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationPineconeOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -60,7 +62,6 @@ public DestinationPineconeOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +72,14 @@ public boolean equals(java.lang.Object o) { } DestinationPineconeOpenAI other = (DestinationPineconeOpenAI) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - mode, - openaiKey); + return Utils.enhancedHash( + mode, openaiKey); } @Override @@ -88,26 +88,30 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String openaiKey; - + private Builder() { // force use of static builder() method } + public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationPineconeOpenAI build() { + return new DestinationPineconeOpenAI( openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAICompatible.java index e6becbc61..2fa3bb2b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeOpenAICompatible.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -41,6 +40,7 @@ public class DestinationPineconeOpenAICompatible { @JsonProperty("dimensions") private long dimensions; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -72,7 +72,8 @@ public DestinationPineconeOpenAICompatible( public DestinationPineconeOpenAICompatible( String baseUrl, long dimensions) { - this(Optional.empty(), baseUrl, dimensions, Optional.empty()); + this(Optional.empty(), baseUrl, dimensions, + Optional.empty()); } @JsonIgnore @@ -110,9 +111,10 @@ public Optional modelName() { return modelName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationPineconeOpenAICompatible withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -120,6 +122,7 @@ public DestinationPineconeOpenAICompatible withApiKey(String apiKey) { return this; } + public DestinationPineconeOpenAICompatible withApiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; @@ -153,6 +156,7 @@ public DestinationPineconeOpenAICompatible withModelName(String modelName) { return this; } + /** * The name of the model to use for embedding */ @@ -162,7 +166,6 @@ public DestinationPineconeOpenAICompatible withModelName(Optional modelN return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +176,18 @@ public boolean equals(java.lang.Object o) { } DestinationPineconeOpenAICompatible other = (DestinationPineconeOpenAICompatible) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.dimensions, other.dimensions) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.modelName, other.modelName); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.dimensions, other.dimensions) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.modelName, other.modelName); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - dimensions, - mode, - modelName); + return Utils.enhancedHash( + apiKey, baseUrl, dimensions, + mode, modelName); } @Override @@ -199,21 +199,23 @@ public String toString() { "mode", mode, "modelName", modelName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey; - + private String baseUrl; - + private Long dimensions; - + private Optional modelName; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = Optional.ofNullable(apiKey); @@ -226,6 +228,7 @@ public Builder apiKey(Optional apiKey) { return this; } + /** * The base URL for your OpenAI-compatible service */ @@ -235,6 +238,7 @@ public Builder baseUrl(String baseUrl) { return this; } + /** * The number of dimensions the embedding model is generating */ @@ -244,6 +248,7 @@ public Builder dimensions(long dimensions) { return this; } + /** * The name of the model to use for embedding */ @@ -261,7 +266,7 @@ public Builder modelName(Optional modelName) { this.modelName = modelName; return this; } - + public DestinationPineconeOpenAICompatible build() { if (apiKey == null) { apiKey = _SINGLETON_VALUE_ApiKey.value(); @@ -269,13 +274,13 @@ public DestinationPineconeOpenAICompatible build() { if (modelName == null) { modelName = _SINGLETON_VALUE_ModelName.value(); } + return new DestinationPineconeOpenAICompatible( - apiKey, - baseUrl, - dimensions, + apiKey, baseUrl, dimensions, modelName); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiKey = new LazySingletonValue<>( "api_key", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeProcessingConfigModel.java index 4926619dd..77c4eefcb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeProcessingConfigModel.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class DestinationPineconeProcessingConfigModel { +public class DestinationPineconeProcessingConfigModel { /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -29,27 +28,46 @@ public class DestinationPineconeProcessingConfigModel { private Optional chunkOverlap; /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonProperty("chunk_size") private long chunkSize; /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("field_name_mappings") private Optional> fieldNameMappings; /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata_fields") private Optional> metadataFields; /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("text_fields") @@ -86,7 +104,8 @@ public DestinationPineconeProcessingConfigModel( public DestinationPineconeProcessingConfigModel( long chunkSize) { - this(Optional.empty(), chunkSize, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), chunkSize, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -98,7 +117,8 @@ public Optional chunkOverlap() { } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonIgnore public long chunkSize() { @@ -106,7 +126,8 @@ public long chunkSize() { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +136,16 @@ public Optional> fieldNameM } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -124,7 +154,15 @@ public Optional> metadataFields() { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -141,9 +179,10 @@ public Optional textSplitter() { return (Optional) textSplitter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context @@ -154,6 +193,7 @@ public DestinationPineconeProcessingConfigModel withChunkOverlap(long chunkOverl return this; } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -164,7 +204,8 @@ public DestinationPineconeProcessingConfigModel withChunkOverlap(Optional } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public DestinationPineconeProcessingConfigModel withChunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -173,7 +214,8 @@ public DestinationPineconeProcessingConfigModel withChunkSize(long chunkSize) { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public DestinationPineconeProcessingConfigModel withFieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -181,8 +223,10 @@ public DestinationPineconeProcessingConfigModel withFieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -191,7 +235,16 @@ public DestinationPineconeProcessingConfigModel withFieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationPineconeProcessingConfigModel withMetadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -199,8 +252,18 @@ public DestinationPineconeProcessingConfigModel withMetadataFields(List return this; } + /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationPineconeProcessingConfigModel withMetadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -209,7 +272,15 @@ public DestinationPineconeProcessingConfigModel withMetadataFields(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationPineconeProcessingConfigModel withTextFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -217,8 +288,17 @@ public DestinationPineconeProcessingConfigModel withTextFields(List text return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationPineconeProcessingConfigModel withTextFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -235,6 +315,7 @@ public DestinationPineconeProcessingConfigModel withTextSplitter(DestinationPine return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -244,7 +325,6 @@ public DestinationPineconeProcessingConfigModel withTextSplitter(Optional chunkOverlap; - + private Long chunkSize; - + private Optional> fieldNameMappings = Optional.empty(); - + private Optional> metadataFields = Optional.empty(); - + private Optional> textFields = Optional.empty(); - + private Optional textSplitter = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -321,8 +399,10 @@ public Builder chunkOverlap(Optional chunkOverlap) { return this; } + /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public Builder chunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -330,8 +410,10 @@ public Builder chunkSize(long chunkSize) { return this; } + /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public Builder fieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -340,7 +422,8 @@ public Builder fieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -348,8 +431,18 @@ public Builder fieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -358,7 +451,16 @@ public Builder metadataFields(List metadataFields) { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -366,8 +468,17 @@ public Builder metadataFields(Optional> metadataFields) { return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -376,7 +487,15 @@ public Builder textFields(List textFields) { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -384,6 +503,7 @@ public Builder textFields(Optional> textFields) { return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -401,20 +521,18 @@ public Builder textSplitter(Optional this.textSplitter = textSplitter; return this; } - + public DestinationPineconeProcessingConfigModel build() { if (chunkOverlap == null) { chunkOverlap = _SINGLETON_VALUE_ChunkOverlap.value(); } + return new DestinationPineconeProcessingConfigModel( - chunkOverlap, - chunkSize, - fieldNameMappings, - metadataFields, - textFields, - textSplitter); + chunkOverlap, chunkSize, fieldNameMappings, + metadataFields, textFields, textSplitter); } + private static final LazySingletonValue> _SINGLETON_VALUE_ChunkOverlap = new LazySingletonValue<>( "chunk_overlap", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java index 24d683e59..1df44fee0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbedding5Mode.java @@ -14,7 +14,7 @@ public enum DestinationPineconeSchemasEmbeddingEmbedding5Mode { @JsonValue private final String value; - private DestinationPineconeSchemasEmbeddingEmbedding5Mode(String value) { + DestinationPineconeSchemasEmbeddingEmbedding5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbeddingMode.java index 47b403522..deb492382 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationPineconeSchemasEmbeddingEmbeddingMode { @JsonValue private final String value; - private DestinationPineconeSchemasEmbeddingEmbeddingMode(String value) { + DestinationPineconeSchemasEmbeddingEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingMode.java index b6247c7a8..7252bf4a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationPineconeSchemasEmbeddingMode { @JsonValue private final String value; - private DestinationPineconeSchemasEmbeddingMode(String value) { + DestinationPineconeSchemasEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasMode.java index 2393772ff..2f970fb6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationPineconeSchemasMode { @JsonValue private final String value; - private DestinationPineconeSchemasMode(String value) { + DestinationPineconeSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingMode.java index efb8dd28b..6ce076ee7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingMode.java @@ -14,7 +14,7 @@ public enum DestinationPineconeSchemasProcessingMode { @JsonValue private final String value; - private DestinationPineconeSchemasProcessingMode(String value) { + DestinationPineconeSchemasProcessingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterMode.java index 3026765bf..9db51ea3f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationPineconeSchemasProcessingTextSplitterMode { @JsonValue private final String value; - private DestinationPineconeSchemasProcessingTextSplitterMode(String value) { + DestinationPineconeSchemasProcessingTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.java index c305e5115..923bdebfc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode { @JsonValue private final String value; - private DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode(String value) { + DestinationPineconeSchemasProcessingTextSplitterTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeTextSplitter.java index c22e4b9a4..415b4960b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPineconeTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPineconeTextSplitter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationPineconeTextSplitter @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationPineconeTextSplitter other = (DestinationPineconeTextSplitter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgres.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgres.java index b209a65ba..5eae1a826 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgres.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgres.java @@ -16,29 +16,33 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationPostgres { +public class DestinationPostgres { /** * Name of the database. */ @JsonProperty("database") private String database; + @JsonProperty("destinationType") private Postgres destinationType; /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disable_type_dedupe") private Optional disableTypeDedupe; /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("drop_cascade") @@ -51,7 +55,9 @@ public class DestinationPostgres { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -79,7 +85,8 @@ public class DestinationPostgres { private Optional rawDataSchema; /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("schema") @@ -93,28 +100,37 @@ public class DestinationPostgres { private Optional ssl; /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl_mode") private Optional sslMode; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; /** - * Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased precision in numeric values. (this is disabled by default for backwards compatibility, but is recommended to enable) + * Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased + * precision in numeric values. (this is disabled by default for backwards compatibility, but is + * recommended to enable) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("unconstrained_number") @@ -177,7 +193,11 @@ public DestinationPostgres( String database, String host, String username) { - this(database, Optional.empty(), Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + this(database, Optional.empty(), Optional.empty(), + host, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), username); } /** @@ -194,7 +214,8 @@ public Postgres destinationType() { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ @JsonIgnore public Optional disableTypeDedupe() { @@ -202,7 +223,10 @@ public Optional disableTypeDedupe() { } /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ @JsonIgnore public Optional dropCascade() { @@ -218,7 +242,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -250,7 +276,8 @@ public Optional rawDataSchema() { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ @JsonIgnore public Optional schema() { @@ -266,14 +293,20 @@ public Optional ssl() { } /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -282,7 +315,8 @@ public Optional sslMode() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -291,7 +325,9 @@ public Optional tunnelMethod() { } /** - * Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased precision in numeric values. (this is disabled by default for backwards compatibility, but is recommended to enable) + * Create numeric columns as unconstrained DECIMAL instead of NUMBER(38, 9). This will allow increased + * precision in numeric values. (this is disabled by default for backwards compatibility, but is + * recommended to enable) */ @JsonIgnore public Optional unconstrainedNumber() { @@ -306,9 +342,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the database. @@ -320,7 +357,8 @@ public DestinationPostgres withDatabase(String database) { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public DestinationPostgres withDisableTypeDedupe(boolean disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -328,8 +366,10 @@ public DestinationPostgres withDisableTypeDedupe(boolean disableTypeDedupe) { return this; } + /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public DestinationPostgres withDisableTypeDedupe(Optional disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -338,7 +378,10 @@ public DestinationPostgres withDisableTypeDedupe(Optional disableTypeDe } /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ public DestinationPostgres withDropCascade(boolean dropCascade) { Utils.checkNotNull(dropCascade, "dropCascade"); @@ -346,8 +389,12 @@ public DestinationPostgres withDropCascade(boolean dropCascade) { return this; } + /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ public DestinationPostgres withDropCascade(Optional dropCascade) { Utils.checkNotNull(dropCascade, "dropCascade"); @@ -365,7 +412,9 @@ public DestinationPostgres withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationPostgres withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -373,8 +422,11 @@ public DestinationPostgres withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationPostgres withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -391,6 +443,7 @@ public DestinationPostgres withPassword(String password) { return this; } + /** * Password associated with the username. */ @@ -409,6 +462,7 @@ public DestinationPostgres withPort(long port) { return this; } + /** * Port of the database. */ @@ -427,6 +481,7 @@ public DestinationPostgres withRawDataSchema(String rawDataSchema) { return this; } + /** * The schema to write raw tables into */ @@ -437,7 +492,8 @@ public DestinationPostgres withRawDataSchema(Optional rawDataSchema) { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public DestinationPostgres withSchema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -445,8 +501,10 @@ public DestinationPostgres withSchema(String schema) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public DestinationPostgres withSchema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -463,6 +521,7 @@ public DestinationPostgres withSsl(boolean ssl) { return this; } + /** * Encrypt data using SSL. When activating SSL, please select one of the connection modes. */ @@ -473,14 +532,20 @@ public DestinationPostgres withSsl(Optional ssl) { } /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ public DestinationPostgres withSslMode(SSLModes sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -488,15 +553,22 @@ public DestinationPostgres withSslMode(SSLModes sslMode) { return this; } + /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ public DestinationPostgres withSslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -505,7 +577,8 @@ public DestinationPostgres withSslMode(Optional sslMode) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationPostgres withTunnelMethod(DestinationPostgresSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -513,8 +586,10 @@ public DestinationPostgres withTunnelMethod(DestinationPostgresSSHTunnelMethod t return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationPostgres withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -523,7 +598,9 @@ public DestinationPostgres withTunnelMethod(Optional unconstrainedNumber) { Utils.checkNotNull(unconstrainedNumber, "unconstrainedNumber"); @@ -549,7 +629,6 @@ public DestinationPostgres withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -560,41 +639,31 @@ public boolean equals(java.lang.Object o) { } DestinationPostgres other = (DestinationPostgres) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.disableTypeDedupe, other.disableTypeDedupe) && - Objects.deepEquals(this.dropCascade, other.dropCascade) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.rawDataSchema, other.rawDataSchema) && - Objects.deepEquals(this.schema, other.schema) && - Objects.deepEquals(this.ssl, other.ssl) && - Objects.deepEquals(this.sslMode, other.sslMode) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.unconstrainedNumber, other.unconstrainedNumber) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.disableTypeDedupe, other.disableTypeDedupe) && + Utils.enhancedDeepEquals(this.dropCascade, other.dropCascade) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.rawDataSchema, other.rawDataSchema) && + Utils.enhancedDeepEquals(this.schema, other.schema) && + Utils.enhancedDeepEquals(this.ssl, other.ssl) && + Utils.enhancedDeepEquals(this.sslMode, other.sslMode) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.unconstrainedNumber, other.unconstrainedNumber) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - database, - destinationType, - disableTypeDedupe, - dropCascade, - host, - jdbcUrlParams, - password, - port, - rawDataSchema, - schema, - ssl, - sslMode, - tunnelMethod, - unconstrainedNumber, - username); + return Utils.enhancedHash( + database, destinationType, disableTypeDedupe, + dropCascade, host, jdbcUrlParams, + password, port, rawDataSchema, + schema, ssl, sslMode, + tunnelMethod, unconstrainedNumber, username); } @Override @@ -616,41 +685,43 @@ public String toString() { "unconstrainedNumber", unconstrainedNumber, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String database; - + private Optional disableTypeDedupe; - + private Optional dropCascade; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional password = Optional.empty(); - + private Optional port; - + private Optional rawDataSchema = Optional.empty(); - + private Optional schema; - + private Optional ssl; - + private Optional sslMode = Optional.empty(); - + private Optional tunnelMethod = Optional.empty(); - + private Optional unconstrainedNumber; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Name of the database. */ @@ -660,8 +731,10 @@ public Builder database(String database) { return this; } + /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public Builder disableTypeDedupe(boolean disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -670,7 +743,8 @@ public Builder disableTypeDedupe(boolean disableTypeDedupe) { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public Builder disableTypeDedupe(Optional disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -678,8 +752,12 @@ public Builder disableTypeDedupe(Optional disableTypeDedupe) { return this; } + /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ public Builder dropCascade(boolean dropCascade) { Utils.checkNotNull(dropCascade, "dropCascade"); @@ -688,7 +766,10 @@ public Builder dropCascade(boolean dropCascade) { } /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ public Builder dropCascade(Optional dropCascade) { Utils.checkNotNull(dropCascade, "dropCascade"); @@ -696,6 +777,7 @@ public Builder dropCascade(Optional dropCascade) { return this; } + /** * Hostname of the database. */ @@ -705,8 +787,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -715,7 +800,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -723,6 +810,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * Password associated with the username. */ @@ -741,6 +829,7 @@ public Builder password(Optional password) { return this; } + /** * Port of the database. */ @@ -759,6 +848,7 @@ public Builder port(Optional port) { return this; } + /** * The schema to write raw tables into */ @@ -777,8 +867,10 @@ public Builder rawDataSchema(Optional rawDataSchema) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public Builder schema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -787,7 +879,8 @@ public Builder schema(String schema) { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public Builder schema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -795,6 +888,7 @@ public Builder schema(Optional schema) { return this; } + /** * Encrypt data using SSL. When activating SSL, please select one of the connection modes. */ @@ -813,15 +907,22 @@ public Builder ssl(Optional ssl) { return this; } + /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ public Builder sslMode(SSLModes sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -830,14 +931,20 @@ public Builder sslMode(SSLModes sslMode) { } /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ public Builder sslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -845,8 +952,10 @@ public Builder sslMode(Optional sslMode) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(DestinationPostgresSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -855,7 +964,8 @@ public Builder tunnelMethod(DestinationPostgresSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -863,8 +973,11 @@ public Builder tunnelMethod(Optional unconstrainedNumber) { Utils.checkNotNull(unconstrainedNumber, "unconstrainedNumber"); @@ -881,6 +996,7 @@ public Builder unconstrainedNumber(Optional unconstrainedNumber) { return this; } + /** * Username to use to access the database. */ @@ -889,7 +1005,7 @@ public Builder username(String username) { this.username = username; return this; } - + public DestinationPostgres build() { if (disableTypeDedupe == null) { disableTypeDedupe = _SINGLETON_VALUE_DisableTypeDedupe.value(); @@ -909,23 +1025,16 @@ public DestinationPostgres build() { if (unconstrainedNumber == null) { unconstrainedNumber = _SINGLETON_VALUE_UnconstrainedNumber.value(); } + return new DestinationPostgres( - database, - disableTypeDedupe, - dropCascade, - host, - jdbcUrlParams, - password, - port, - rawDataSchema, - schema, - ssl, - sslMode, - tunnelMethod, - unconstrainedNumber, - username); + database, disableTypeDedupe, dropCascade, + host, jdbcUrlParams, password, + port, rawDataSchema, schema, + ssl, sslMode, tunnelMethod, + unconstrainedNumber, username); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java index 7e7215965..0d7c9b428 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresMode.java @@ -14,7 +14,7 @@ public enum DestinationPostgresMode { @JsonValue private final String value; - private DestinationPostgresMode(String value) { + DestinationPostgresMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresNoTunnel.java index 3380a0fc9..5dd11c81f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationPostgresNoTunnel { +public class DestinationPostgresNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class DestinationPostgresNoTunnel { @JsonCreator public DestinationPostgresNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public DestinationPostgresTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } DestinationPostgresNoTunnel other = (DestinationPostgresNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(DestinationPostgresNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationPostgresNoTunnel build() { + return new DestinationPostgresNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresPasswordAuthentication.java index cdf2b859f..e4df41532 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresPasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationPostgresPasswordAuthentication { +public class DestinationPostgresPasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public DestinationPostgresPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public DestinationPostgresPasswordAuthentication withTunnelPort(long tunnelPort) return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public DestinationPostgresPasswordAuthentication withTunnelUserPassword(String t return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } DestinationPostgresPasswordAuthentication other = (DestinationPostgresPasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public DestinationPostgresPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationPostgresPasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHKeyAuthentication.java index 1232bd952..48d77901b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationPostgresSSHKeyAuthentication { +public class DestinationPostgresSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public DestinationPostgresSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public DestinationPostgresSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public DestinationPostgresSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public DestinationPostgresSSHKeyAuthentication withTunnelUser(String tunnelUser) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } DestinationPostgresSSHKeyAuthentication other = (DestinationPostgresSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public DestinationPostgresSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationPostgresSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHTunnelMethod.java index 81cec0367..16c6fab60 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationPostgresSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = DestinationPostgresSSHTunnelMethod._Deserializer.class) public class DestinationPostgresSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationPostgresSSHTunnelMethod other = (DestinationPostgresSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java index 82e46e35e..57cbdb3fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationPostgresSchemasMode { @JsonValue private final String value; - private DestinationPostgresSchemasMode(String value) { + DestinationPostgresSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.java index 49a7656d5..8e8b8d61a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes5Mode.java @@ -14,7 +14,7 @@ public enum DestinationPostgresSchemasSSLModeSSLModes5Mode { @JsonValue private final String value; - private DestinationPostgresSchemasSSLModeSSLModes5Mode(String value) { + DestinationPostgresSchemasSSLModeSSLModes5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java index 71382854b..d9b0aaaa8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModes6Mode.java @@ -14,7 +14,7 @@ public enum DestinationPostgresSchemasSSLModeSSLModes6Mode { @JsonValue private final String value; - private DestinationPostgresSchemasSSLModeSSLModes6Mode(String value) { + DestinationPostgresSchemasSSLModeSSLModes6Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java index 90011bf71..9b174dfe9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSSLModeSSLModesMode.java @@ -14,7 +14,7 @@ public enum DestinationPostgresSchemasSSLModeSSLModesMode { @JsonValue private final String value; - private DestinationPostgresSchemasSSLModeSSLModesMode(String value) { + DestinationPostgresSchemasSSLModeSSLModesMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java index e492a298e..0981e05c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasSslModeMode.java @@ -14,7 +14,7 @@ public enum DestinationPostgresSchemasSslModeMode { @JsonValue private final String value; - private DestinationPostgresSchemasSslModeMode(String value) { + DestinationPostgresSchemasSslModeMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethod.java index aefe061b8..cda54603d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationPostgresSchemasTunnelMethod { @JsonValue private final String value; - private DestinationPostgresSchemasTunnelMethod(String value) { + DestinationPostgresSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethodTunnelMethod.java index 384a35e2a..bd4282f81 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationPostgresSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private DestinationPostgresSchemasTunnelMethodTunnelMethod(String value) { + DestinationPostgresSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresTunnelMethod.java index 125b78c87..7d489fc73 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPostgresTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPostgresTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationPostgresTunnelMethod { @JsonValue private final String value; - private DestinationPostgresTunnelMethod(String value) { + DestinationPostgresTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPubsub.java b/src/main/java/com/airbyte/api/models/shared/DestinationPubsub.java index 0e4bf9368..32d617ba1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPubsub.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPubsub.java @@ -15,11 +15,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationPubsub { +public class DestinationPubsub { /** * Number of ms before the buffer is flushed */ @@ -49,16 +48,20 @@ public class DestinationPubsub { private Optional batchingRequestBytesThreshold; /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/pubsub">docs</a> if you need help generating this key. + * The contents of the JSON service account key. Check out the docs if you need help + * generating this key. */ @JsonProperty("credentials_json") private String credentialsJson; + @JsonProperty("destinationType") private Pubsub destinationType; /** - * If TRUE PubSub publisher will have <a href="https://cloud.google.com/pubsub/docs/ordering">message ordering</a> enabled. Every message will have an ordering key of stream + * If TRUE PubSub publisher will have message + * ordering enabled. Every message will have an ordering key of stream */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ordering_enabled") @@ -109,7 +112,9 @@ public DestinationPubsub( String credentialsJson, String projectId, String topicId) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), credentialsJson, Optional.empty(), projectId, topicId); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), credentialsJson, Optional.empty(), + projectId, topicId); } /** @@ -145,7 +150,9 @@ public Optional batchingRequestBytesThreshold() { } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/pubsub">docs</a> if you need help generating this key. + * The contents of the JSON service account key. Check out the docs if you need help + * generating this key. */ @JsonIgnore public String credentialsJson() { @@ -158,7 +165,8 @@ public Pubsub destinationType() { } /** - * If TRUE PubSub publisher will have <a href="https://cloud.google.com/pubsub/docs/ordering">message ordering</a> enabled. Every message will have an ordering key of stream + * If TRUE PubSub publisher will have message + * ordering enabled. Every message will have an ordering key of stream */ @JsonIgnore public Optional orderingEnabled() { @@ -181,9 +189,10 @@ public String topicId() { return topicId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Number of ms before the buffer is flushed @@ -194,6 +203,7 @@ public DestinationPubsub withBatchingDelayThreshold(long batchingDelayThreshold) return this; } + /** * Number of ms before the buffer is flushed */ @@ -212,6 +222,7 @@ public DestinationPubsub withBatchingElementCountThreshold(long batchingElementC return this; } + /** * Number of messages before the buffer is flushed */ @@ -230,6 +241,7 @@ public DestinationPubsub withBatchingEnabled(boolean batchingEnabled) { return this; } + /** * If TRUE messages will be buffered instead of sending them one by one */ @@ -248,6 +260,7 @@ public DestinationPubsub withBatchingRequestBytesThreshold(long batchingRequestB return this; } + /** * Number of bytes before the buffer is flushed */ @@ -258,7 +271,9 @@ public DestinationPubsub withBatchingRequestBytesThreshold(Optional batchi } /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/pubsub">docs</a> if you need help generating this key. + * The contents of the JSON service account key. Check out the docs if you need help + * generating this key. */ public DestinationPubsub withCredentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -267,7 +282,8 @@ public DestinationPubsub withCredentialsJson(String credentialsJson) { } /** - * If TRUE PubSub publisher will have <a href="https://cloud.google.com/pubsub/docs/ordering">message ordering</a> enabled. Every message will have an ordering key of stream + * If TRUE PubSub publisher will have message + * ordering enabled. Every message will have an ordering key of stream */ public DestinationPubsub withOrderingEnabled(boolean orderingEnabled) { Utils.checkNotNull(orderingEnabled, "orderingEnabled"); @@ -275,8 +291,10 @@ public DestinationPubsub withOrderingEnabled(boolean orderingEnabled) { return this; } + /** - * If TRUE PubSub publisher will have <a href="https://cloud.google.com/pubsub/docs/ordering">message ordering</a> enabled. Every message will have an ordering key of stream + * If TRUE PubSub publisher will have message + * ordering enabled. Every message will have an ordering key of stream */ public DestinationPubsub withOrderingEnabled(Optional orderingEnabled) { Utils.checkNotNull(orderingEnabled, "orderingEnabled"); @@ -302,7 +320,6 @@ public DestinationPubsub withTopicId(String topicId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -313,29 +330,23 @@ public boolean equals(java.lang.Object o) { } DestinationPubsub other = (DestinationPubsub) o; return - Objects.deepEquals(this.batchingDelayThreshold, other.batchingDelayThreshold) && - Objects.deepEquals(this.batchingElementCountThreshold, other.batchingElementCountThreshold) && - Objects.deepEquals(this.batchingEnabled, other.batchingEnabled) && - Objects.deepEquals(this.batchingRequestBytesThreshold, other.batchingRequestBytesThreshold) && - Objects.deepEquals(this.credentialsJson, other.credentialsJson) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.orderingEnabled, other.orderingEnabled) && - Objects.deepEquals(this.projectId, other.projectId) && - Objects.deepEquals(this.topicId, other.topicId); + Utils.enhancedDeepEquals(this.batchingDelayThreshold, other.batchingDelayThreshold) && + Utils.enhancedDeepEquals(this.batchingElementCountThreshold, other.batchingElementCountThreshold) && + Utils.enhancedDeepEquals(this.batchingEnabled, other.batchingEnabled) && + Utils.enhancedDeepEquals(this.batchingRequestBytesThreshold, other.batchingRequestBytesThreshold) && + Utils.enhancedDeepEquals(this.credentialsJson, other.credentialsJson) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.orderingEnabled, other.orderingEnabled) && + Utils.enhancedDeepEquals(this.projectId, other.projectId) && + Utils.enhancedDeepEquals(this.topicId, other.topicId); } @Override public int hashCode() { - return Objects.hash( - batchingDelayThreshold, - batchingElementCountThreshold, - batchingEnabled, - batchingRequestBytesThreshold, - credentialsJson, - destinationType, - orderingEnabled, - projectId, - topicId); + return Utils.enhancedHash( + batchingDelayThreshold, batchingElementCountThreshold, batchingEnabled, + batchingRequestBytesThreshold, credentialsJson, destinationType, + orderingEnabled, projectId, topicId); } @Override @@ -351,29 +362,31 @@ public String toString() { "projectId", projectId, "topicId", topicId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional batchingDelayThreshold; - + private Optional batchingElementCountThreshold; - + private Optional batchingEnabled; - + private Optional batchingRequestBytesThreshold; - + private String credentialsJson; - + private Optional orderingEnabled; - + private String projectId; - + private String topicId; - + private Builder() { // force use of static builder() method } + /** * Number of ms before the buffer is flushed */ @@ -392,6 +405,7 @@ public Builder batchingDelayThreshold(Optional batchingDelayThreshold) { return this; } + /** * Number of messages before the buffer is flushed */ @@ -410,6 +424,7 @@ public Builder batchingElementCountThreshold(Optional batchingElementCount return this; } + /** * If TRUE messages will be buffered instead of sending them one by one */ @@ -428,6 +443,7 @@ public Builder batchingEnabled(Optional batchingEnabled) { return this; } + /** * Number of bytes before the buffer is flushed */ @@ -446,8 +462,11 @@ public Builder batchingRequestBytesThreshold(Optional batchingRequestBytes return this; } + /** - * The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/pubsub">docs</a> if you need help generating this key. + * The contents of the JSON service account key. Check out the docs if you need help + * generating this key. */ public Builder credentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -455,8 +474,10 @@ public Builder credentialsJson(String credentialsJson) { return this; } + /** - * If TRUE PubSub publisher will have <a href="https://cloud.google.com/pubsub/docs/ordering">message ordering</a> enabled. Every message will have an ordering key of stream + * If TRUE PubSub publisher will have message + * ordering enabled. Every message will have an ordering key of stream */ public Builder orderingEnabled(boolean orderingEnabled) { Utils.checkNotNull(orderingEnabled, "orderingEnabled"); @@ -465,7 +486,8 @@ public Builder orderingEnabled(boolean orderingEnabled) { } /** - * If TRUE PubSub publisher will have <a href="https://cloud.google.com/pubsub/docs/ordering">message ordering</a> enabled. Every message will have an ordering key of stream + * If TRUE PubSub publisher will have message + * ordering enabled. Every message will have an ordering key of stream */ public Builder orderingEnabled(Optional orderingEnabled) { Utils.checkNotNull(orderingEnabled, "orderingEnabled"); @@ -473,6 +495,7 @@ public Builder orderingEnabled(Optional orderingEnabled) { return this; } + /** * The GCP project ID for the project containing the target PubSub. */ @@ -482,6 +505,7 @@ public Builder projectId(String projectId) { return this; } + /** * The PubSub topic ID in the given GCP project ID. */ @@ -490,7 +514,7 @@ public Builder topicId(String topicId) { this.topicId = topicId; return this; } - + public DestinationPubsub build() { if (batchingDelayThreshold == null) { batchingDelayThreshold = _SINGLETON_VALUE_BatchingDelayThreshold.value(); @@ -507,17 +531,14 @@ public DestinationPubsub build() { if (orderingEnabled == null) { orderingEnabled = _SINGLETON_VALUE_OrderingEnabled.value(); } + return new DestinationPubsub( - batchingDelayThreshold, - batchingElementCountThreshold, - batchingEnabled, - batchingRequestBytesThreshold, - credentialsJson, - orderingEnabled, - projectId, - topicId); + batchingDelayThreshold, batchingElementCountThreshold, batchingEnabled, + batchingRequestBytesThreshold, credentialsJson, orderingEnabled, + projectId, topicId); } + private static final LazySingletonValue> _SINGLETON_VALUE_BatchingDelayThreshold = new LazySingletonValue<>( "batching_delay_threshold", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationPutRequest.java b/src/main/java/com/airbyte/api/models/shared/DestinationPutRequest.java index da225146d..1610398c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationPutRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationPutRequest.java @@ -12,22 +12,27 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationPutRequest { +public class DestinationPutRequest { /** * The values required to configure the destination. */ @JsonProperty("configuration") private DestinationConfiguration configuration; + @JsonProperty("name") private String name; /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("resourceAllocation") @@ -66,7 +71,12 @@ public String name() { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -74,9 +84,10 @@ public Optional resourceAllocation() { return (Optional) resourceAllocation; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The values required to configure the destination. @@ -94,7 +105,12 @@ public DestinationPutRequest withName(String name) { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public DestinationPutRequest withResourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -102,8 +118,14 @@ public DestinationPutRequest withResourceAllocation(ScopedResourceRequirements r return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public DestinationPutRequest withResourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -111,7 +133,6 @@ public DestinationPutRequest withResourceAllocation(Optional resourceAllocation = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The values required to configure the destination. */ @@ -164,14 +185,21 @@ public Builder configuration(DestinationConfiguration configuration) { return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -180,19 +208,24 @@ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); this.resourceAllocation = resourceAllocation; return this; } - + public DestinationPutRequest build() { + return new DestinationPutRequest( - configuration, - name, - resourceAllocation); + configuration, name, resourceAllocation); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrant.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrant.java index c927633c0..154281e5b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrant.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrant.java @@ -14,13 +14,13 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** * DestinationQdrant * - *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, + *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI + * for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. * *

    The configuration model is composed of four parts: @@ -29,7 +29,8 @@ * * Indexing configuration * * Advanced configuration * - *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. + *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing + * configuration is provided by the destination connector in the sub class. */ public class DestinationQdrant { @@ -49,12 +50,15 @@ public class DestinationQdrant { private DestinationQdrantIndexing indexing; /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("omit_raw_text") private Optional omitRawText; + @JsonProperty("processing") private DestinationQdrantProcessingConfigModel processing; @@ -79,7 +83,8 @@ public DestinationQdrant( DestinationQdrantEmbedding embedding, DestinationQdrantIndexing indexing, DestinationQdrantProcessingConfigModel processing) { - this(embedding, indexing, Optional.empty(), processing); + this(embedding, indexing, Optional.empty(), + processing); } @JsonIgnore @@ -104,7 +109,9 @@ public DestinationQdrantIndexing indexing() { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonIgnore public Optional omitRawText() { @@ -116,9 +123,10 @@ public DestinationQdrantProcessingConfigModel processing() { return processing; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Embedding configuration @@ -139,7 +147,9 @@ public DestinationQdrant withIndexing(DestinationQdrantIndexing indexing) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationQdrant withOmitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -147,8 +157,11 @@ public DestinationQdrant withOmitRawText(boolean omitRawText) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationQdrant withOmitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -162,7 +175,6 @@ public DestinationQdrant withProcessing(DestinationQdrantProcessingConfigModel p return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +185,18 @@ public boolean equals(java.lang.Object o) { } DestinationQdrant other = (DestinationQdrant) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.embedding, other.embedding) && - Objects.deepEquals(this.indexing, other.indexing) && - Objects.deepEquals(this.omitRawText, other.omitRawText) && - Objects.deepEquals(this.processing, other.processing); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.embedding, other.embedding) && + Utils.enhancedDeepEquals(this.indexing, other.indexing) && + Utils.enhancedDeepEquals(this.omitRawText, other.omitRawText) && + Utils.enhancedDeepEquals(this.processing, other.processing); } @Override public int hashCode() { - return Objects.hash( - destinationType, - embedding, - indexing, - omitRawText, - processing); + return Utils.enhancedHash( + destinationType, embedding, indexing, + omitRawText, processing); } @Override @@ -199,21 +208,23 @@ public String toString() { "omitRawText", omitRawText, "processing", processing); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationQdrantEmbedding embedding; - + private DestinationQdrantIndexing indexing; - + private Optional omitRawText; - + private DestinationQdrantProcessingConfigModel processing; - + private Builder() { // force use of static builder() method } + /** * Embedding configuration */ @@ -223,6 +234,7 @@ public Builder embedding(DestinationQdrantEmbedding embedding) { return this; } + /** * Indexing configuration */ @@ -232,8 +244,11 @@ public Builder indexing(DestinationQdrantIndexing indexing) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -242,7 +257,9 @@ public Builder omitRawText(boolean omitRawText) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -250,23 +267,24 @@ public Builder omitRawText(Optional omitRawText) { return this; } + public Builder processing(DestinationQdrantProcessingConfigModel processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; } - + public DestinationQdrant build() { if (omitRawText == null) { omitRawText = _SINGLETON_VALUE_OmitRawText.value(); } + return new DestinationQdrant( - embedding, - indexing, - omitRawText, + embedding, indexing, omitRawText, processing); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAuthenticationMethod.java index 6a07e588d..8d678946d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAuthenticationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationQdrantAuthenticationMethod @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationQdrantAuthenticationMethod other = (DestinationQdrantAuthenticationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAzureOpenAI.java index c365024a0..10e3ae881 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantAzureOpenAI.java @@ -14,34 +14,37 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationQdrantAzureOpenAI * - *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model + * with 1536 embedding dimensions. */ public class DestinationQdrantAzureOpenAI { - /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("api_base") private String apiBase; /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonProperty("deployment") private String deployment; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("openai_key") private String openaiKey; @@ -61,7 +64,8 @@ public DestinationQdrantAzureOpenAI( } /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String apiBase() { @@ -69,7 +73,8 @@ public String apiBase() { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonIgnore public String deployment() { @@ -83,19 +88,22 @@ public Optional mode() { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationQdrantAzureOpenAI withApiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -104,7 +112,8 @@ public DestinationQdrantAzureOpenAI withApiBase(String apiBase) { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public DestinationQdrantAzureOpenAI withDeployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -113,7 +122,8 @@ public DestinationQdrantAzureOpenAI withDeployment(String deployment) { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationQdrantAzureOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -121,7 +131,6 @@ public DestinationQdrantAzureOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +141,16 @@ public boolean equals(java.lang.Object o) { } DestinationQdrantAzureOpenAI other = (DestinationQdrantAzureOpenAI) o; return - Objects.deepEquals(this.apiBase, other.apiBase) && - Objects.deepEquals(this.deployment, other.deployment) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.apiBase, other.apiBase) && + Utils.enhancedDeepEquals(this.deployment, other.deployment) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - apiBase, - deployment, - mode, + return Utils.enhancedHash( + apiBase, deployment, mode, openaiKey); } @@ -155,21 +162,24 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiBase; - + private String deployment; - + private String openaiKey; - + private Builder() { // force use of static builder() method } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder apiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -177,8 +187,10 @@ public Builder apiBase(String apiBase) { return this; } + /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public Builder deployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -186,22 +198,24 @@ public Builder deployment(String deployment) { return this; } + /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationQdrantAzureOpenAI build() { + return new DestinationQdrantAzureOpenAI( - apiBase, - deployment, - openaiKey); + apiBase, deployment, openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByMarkdownHeader.java index 7d36072fd..226301435 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByMarkdownHeader.java @@ -15,13 +15,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationQdrantByMarkdownHeader * - *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. + *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits + * multiple sections, they will be combined into a single chunk. */ public class DestinationQdrantByMarkdownHeader { @@ -30,7 +30,8 @@ public class DestinationQdrantByMarkdownHeader { private Optional mode; /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("split_level") @@ -55,19 +56,22 @@ public Optional mode() { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonIgnore public Optional splitLevel() { return splitLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationQdrantByMarkdownHeader withSplitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -75,8 +79,10 @@ public DestinationQdrantByMarkdownHeader withSplitLevel(long splitLevel) { return this; } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationQdrantByMarkdownHeader withSplitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -84,7 +90,6 @@ public DestinationQdrantByMarkdownHeader withSplitLevel(Optional splitLeve return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +100,14 @@ public boolean equals(java.lang.Object o) { } DestinationQdrantByMarkdownHeader other = (DestinationQdrantByMarkdownHeader) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.splitLevel, other.splitLevel); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.splitLevel, other.splitLevel); } @Override public int hashCode() { - return Objects.hash( - mode, - splitLevel); + return Utils.enhancedHash( + mode, splitLevel); } @Override @@ -112,17 +116,20 @@ public String toString() { "mode", mode, "splitLevel", splitLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional splitLevel; - + private Builder() { // force use of static builder() method } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -131,22 +138,25 @@ public Builder splitLevel(long splitLevel) { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); this.splitLevel = splitLevel; return this; } - + public DestinationQdrantByMarkdownHeader build() { if (splitLevel == null) { splitLevel = _SINGLETON_VALUE_SplitLevel.value(); } + return new DestinationQdrantByMarkdownHeader( splitLevel); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByProgrammingLanguage.java index e92402af2..931eb1f6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantByProgrammingLanguage.java @@ -14,22 +14,22 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationQdrantByProgrammingLanguage * - *

    Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. + *

    Split the text by suitable delimiters based on the programming language. This is useful for + * splitting code into chunks. */ public class DestinationQdrantByProgrammingLanguage { - /** * Split code in suitable places based on the programming language */ @JsonProperty("language") private DestinationQdrantLanguage language; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -56,9 +56,10 @@ public Optional return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Split code in suitable places based on the programming language @@ -69,7 +70,6 @@ public DestinationQdrantByProgrammingLanguage withLanguage(DestinationQdrantLang return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +80,14 @@ public boolean equals(java.lang.Object o) { } DestinationQdrantByProgrammingLanguage other = (DestinationQdrantByProgrammingLanguage) o; return - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.language, other.language) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - language, - mode); + return Utils.enhancedHash( + language, mode); } @Override @@ -97,15 +96,17 @@ public String toString() { "language", language, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationQdrantLanguage language; - + private Builder() { // force use of static builder() method } + /** * Split code in suitable places based on the programming language */ @@ -114,12 +115,14 @@ public Builder language(DestinationQdrantLanguage language) { this.language = language; return this; } - + public DestinationQdrantByProgrammingLanguage build() { + return new DestinationQdrantByProgrammingLanguage( language); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantBySeparator.java index 31de143ae..c75b153dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantBySeparator.java @@ -16,16 +16,16 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * DestinationQdrantBySeparator * - *

    Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. + *

    Split the text by the list of separators until the chunk size is reached, using the earlier + * mentioned separators where possible. This is useful for splitting text fields by paragraphs, + * sentences, words, etc. */ public class DestinationQdrantBySeparator { - /** * Whether to keep the separator in the resulting chunks */ @@ -33,12 +33,16 @@ public class DestinationQdrantBySeparator { @JsonProperty("keep_separator") private Optional keepSeparator; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("separators") @@ -74,7 +78,10 @@ public Optional mode() { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @SuppressWarnings("unchecked") @JsonIgnore @@ -82,9 +89,10 @@ public Optional> separators() { return (Optional>) separators; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Whether to keep the separator in the resulting chunks @@ -95,6 +103,7 @@ public DestinationQdrantBySeparator withKeepSeparator(boolean keepSeparator) { return this; } + /** * Whether to keep the separator in the resulting chunks */ @@ -105,7 +114,10 @@ public DestinationQdrantBySeparator withKeepSeparator(Optional keepSepa } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationQdrantBySeparator withSeparators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -113,8 +125,12 @@ public DestinationQdrantBySeparator withSeparators(List separators) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationQdrantBySeparator withSeparators(Optional> separators) { Utils.checkNotNull(separators, "separators"); @@ -122,7 +138,6 @@ public DestinationQdrantBySeparator withSeparators(Optional keepSeparator; - + private Optional> separators = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Whether to keep the separator in the resulting chunks */ @@ -182,8 +197,12 @@ public Builder keepSeparator(Optional keepSeparator) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -192,23 +211,27 @@ public Builder separators(List separators) { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(Optional> separators) { Utils.checkNotNull(separators, "separators"); this.separators = separators; return this; } - + public DestinationQdrantBySeparator build() { if (keepSeparator == null) { keepSeparator = _SINGLETON_VALUE_KeepSeparator.value(); } + return new DestinationQdrantBySeparator( - keepSeparator, - separators); + keepSeparator, separators); } + private static final LazySingletonValue> _SINGLETON_VALUE_KeepSeparator = new LazySingletonValue<>( "keep_separator", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantCohere.java index cfa5854c4..f63685667 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantCohere.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -27,6 +26,7 @@ public class DestinationQdrantCohere { @JsonProperty("cohere_key") private String cohereKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -50,9 +50,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationQdrantCohere withCohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); @@ -60,7 +61,6 @@ public DestinationQdrantCohere withCohereKey(String cohereKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +71,14 @@ public boolean equals(java.lang.Object o) { } DestinationQdrantCohere other = (DestinationQdrantCohere) o; return - Objects.deepEquals(this.cohereKey, other.cohereKey) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.cohereKey, other.cohereKey) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - cohereKey, - mode); + return Utils.enhancedHash( + cohereKey, mode); } @Override @@ -88,26 +87,30 @@ public String toString() { "cohereKey", cohereKey, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String cohereKey; - + private Builder() { // force use of static builder() method } + public Builder cohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); this.cohereKey = cohereKey; return this; } - + public DestinationQdrantCohere build() { + return new DestinationQdrantCohere( cohereKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantEmbedding.java index 76441f611..fae71e8f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantEmbedding.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationQdrantEmbedding @@ -90,12 +89,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationQdrantEmbedding other = (DestinationQdrantEmbedding) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFake.java index 09dffdba0..3089ef797 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFake.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationQdrantFake * - *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. + *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for + * testing the data pipeline without incurring any costs. */ public class DestinationQdrantFake { @@ -30,7 +30,6 @@ public class DestinationQdrantFake { @JsonCreator public DestinationQdrantFake() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +39,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } DestinationQdrantFake other = (DestinationQdrantFake) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +68,21 @@ public String toString() { return Utils.toString(DestinationQdrantFake.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationQdrantFake build() { + return new DestinationQdrantFake( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFieldNameMappingConfigModel.java index c3ca7ad48..58a7d1f59 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantFieldNameMappingConfigModel.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationQdrantFieldNameMappingConfigModel { +public class DestinationQdrantFieldNameMappingConfigModel { /** * The field name in the source */ @@ -51,9 +50,10 @@ public String toField() { return toField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The field name in the source @@ -73,7 +73,6 @@ public DestinationQdrantFieldNameMappingConfigModel withToField(String toField) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +83,14 @@ public boolean equals(java.lang.Object o) { } DestinationQdrantFieldNameMappingConfigModel other = (DestinationQdrantFieldNameMappingConfigModel) o; return - Objects.deepEquals(this.fromField, other.fromField) && - Objects.deepEquals(this.toField, other.toField); + Utils.enhancedDeepEquals(this.fromField, other.fromField) && + Utils.enhancedDeepEquals(this.toField, other.toField); } @Override public int hashCode() { - return Objects.hash( - fromField, - toField); + return Utils.enhancedHash( + fromField, toField); } @Override @@ -101,17 +99,19 @@ public String toString() { "fromField", fromField, "toField", toField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fromField; - + private String toField; - + private Builder() { // force use of static builder() method } + /** * The field name in the source */ @@ -121,6 +121,7 @@ public Builder fromField(String fromField) { return this; } + /** * The field name to use in the destination */ @@ -129,11 +130,12 @@ public Builder toField(String toField) { this.toField = toField; return this; } - + public DestinationQdrantFieldNameMappingConfigModel build() { + return new DestinationQdrantFieldNameMappingConfigModel( - fromField, - toField); + fromField, toField); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantIndexing.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantIndexing.java index 7cd996271..c47ba0890 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantIndexing.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantIndexing.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -24,7 +23,6 @@ *

    Indexing configuration */ public class DestinationQdrantIndexing { - /** * Method to authenticate with the Qdrant Instance */ @@ -39,7 +37,8 @@ public class DestinationQdrantIndexing { private String collection; /** - * The Distance metric used to measure similarities among vectors. This field is only used if the collection defined in the does not exist yet and is created automatically by the connector. + * The Distance metric used to measure similarities among vectors. This field is only used if the + * collection defined in the does not exist yet and is created automatically by the connector. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("distance_metric") @@ -90,7 +89,8 @@ public DestinationQdrantIndexing( public DestinationQdrantIndexing( String collection, String url) { - this(Optional.empty(), collection, Optional.empty(), Optional.empty(), Optional.empty(), url); + this(Optional.empty(), collection, Optional.empty(), + Optional.empty(), Optional.empty(), url); } /** @@ -111,7 +111,8 @@ public String collection() { } /** - * The Distance metric used to measure similarities among vectors. This field is only used if the collection defined in the does not exist yet and is created automatically by the connector. + * The Distance metric used to measure similarities among vectors. This field is only used if the + * collection defined in the does not exist yet and is created automatically by the connector. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -143,9 +144,10 @@ public String url() { return url; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Method to authenticate with the Qdrant Instance @@ -156,6 +158,7 @@ public DestinationQdrantIndexing withAuthMethod(DestinationQdrantAuthenticationM return this; } + /** * Method to authenticate with the Qdrant Instance */ @@ -175,7 +178,8 @@ public DestinationQdrantIndexing withCollection(String collection) { } /** - * The Distance metric used to measure similarities among vectors. This field is only used if the collection defined in the does not exist yet and is created automatically by the connector. + * The Distance metric used to measure similarities among vectors. This field is only used if the + * collection defined in the does not exist yet and is created automatically by the connector. */ public DestinationQdrantIndexing withDistanceMetric(DistanceMetric distanceMetric) { Utils.checkNotNull(distanceMetric, "distanceMetric"); @@ -183,8 +187,10 @@ public DestinationQdrantIndexing withDistanceMetric(DistanceMetric distanceMetri return this; } + /** - * The Distance metric used to measure similarities among vectors. This field is only used if the collection defined in the does not exist yet and is created automatically by the connector. + * The Distance metric used to measure similarities among vectors. This field is only used if the + * collection defined in the does not exist yet and is created automatically by the connector. */ public DestinationQdrantIndexing withDistanceMetric(Optional distanceMetric) { Utils.checkNotNull(distanceMetric, "distanceMetric"); @@ -201,6 +207,7 @@ public DestinationQdrantIndexing withPreferGrpc(boolean preferGrpc) { return this; } + /** * Whether to prefer gRPC over HTTP. Set to true for Qdrant cloud clusters */ @@ -219,6 +226,7 @@ public DestinationQdrantIndexing withTextField(String textField) { return this; } + /** * The field in the payload that contains the embedded text */ @@ -237,7 +245,6 @@ public DestinationQdrantIndexing withUrl(String url) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -248,23 +255,19 @@ public boolean equals(java.lang.Object o) { } DestinationQdrantIndexing other = (DestinationQdrantIndexing) o; return - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.collection, other.collection) && - Objects.deepEquals(this.distanceMetric, other.distanceMetric) && - Objects.deepEquals(this.preferGrpc, other.preferGrpc) && - Objects.deepEquals(this.textField, other.textField) && - Objects.deepEquals(this.url, other.url); + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.collection, other.collection) && + Utils.enhancedDeepEquals(this.distanceMetric, other.distanceMetric) && + Utils.enhancedDeepEquals(this.preferGrpc, other.preferGrpc) && + Utils.enhancedDeepEquals(this.textField, other.textField) && + Utils.enhancedDeepEquals(this.url, other.url); } @Override public int hashCode() { - return Objects.hash( - authMethod, - collection, - distanceMetric, - preferGrpc, - textField, - url); + return Utils.enhancedHash( + authMethod, collection, distanceMetric, + preferGrpc, textField, url); } @Override @@ -277,25 +280,27 @@ public String toString() { "textField", textField, "url", url); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional authMethod = Optional.empty(); - + private String collection; - + private Optional distanceMetric; - + private Optional preferGrpc; - + private Optional textField; - + private String url; - + private Builder() { // force use of static builder() method } + /** * Method to authenticate with the Qdrant Instance */ @@ -314,6 +319,7 @@ public Builder authMethod(Optional distanceMetric) { Utils.checkNotNull(distanceMetric, "distanceMetric"); @@ -341,6 +350,7 @@ public Builder distanceMetric(Optional distanceMetric) return this; } + /** * Whether to prefer gRPC over HTTP. Set to true for Qdrant cloud clusters */ @@ -359,6 +369,7 @@ public Builder preferGrpc(Optional preferGrpc) { return this; } + /** * The field in the payload that contains the embedded text */ @@ -377,6 +388,7 @@ public Builder textField(Optional textField) { return this; } + /** * Public Endpoint of the Qdrant cluser */ @@ -385,7 +397,7 @@ public Builder url(String url) { this.url = url; return this; } - + public DestinationQdrantIndexing build() { if (distanceMetric == null) { distanceMetric = _SINGLETON_VALUE_DistanceMetric.value(); @@ -396,15 +408,13 @@ public DestinationQdrantIndexing build() { if (textField == null) { textField = _SINGLETON_VALUE_TextField.value(); } + return new DestinationQdrantIndexing( - authMethod, - collection, - distanceMetric, - preferGrpc, - textField, - url); + authMethod, collection, distanceMetric, + preferGrpc, textField, url); } + private static final LazySingletonValue> _SINGLETON_VALUE_DistanceMetric = new LazySingletonValue<>( "distance_metric", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java index dceeff65c..a253e0b5f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantLanguage.java @@ -34,7 +34,7 @@ public enum DestinationQdrantLanguage { @JsonValue private final String value; - private DestinationQdrantLanguage(String value) { + DestinationQdrantLanguage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantMode.java index 068af89cd..faf676c4e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantMode.java @@ -14,7 +14,7 @@ public enum DestinationQdrantMode { @JsonValue private final String value; - private DestinationQdrantMode(String value) { + DestinationQdrantMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantNoAuth.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantNoAuth.java index 5b7bf7e53..76e48bc79 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantNoAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantNoAuth.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class DestinationQdrantNoAuth { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class DestinationQdrantNoAuth { @JsonCreator public DestinationQdrantNoAuth() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -35,11 +34,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } DestinationQdrantNoAuth other = (DestinationQdrantNoAuth) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(DestinationQdrantNoAuth.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationQdrantNoAuth build() { + return new DestinationQdrantNoAuth( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAI.java index ac3b83b0c..d06660ea3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAI.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationQdrantOpenAI * - *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 + * embedding dimensions. */ public class DestinationQdrantOpenAI { @@ -28,6 +28,7 @@ public class DestinationQdrantOpenAI { @JsonProperty("mode") private Optional mode; + @JsonProperty("openai_key") private String openaiKey; @@ -50,9 +51,10 @@ public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationQdrantOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -60,7 +62,6 @@ public DestinationQdrantOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +72,14 @@ public boolean equals(java.lang.Object o) { } DestinationQdrantOpenAI other = (DestinationQdrantOpenAI) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - mode, - openaiKey); + return Utils.enhancedHash( + mode, openaiKey); } @Override @@ -88,26 +88,30 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String openaiKey; - + private Builder() { // force use of static builder() method } + public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationQdrantOpenAI build() { + return new DestinationQdrantOpenAI( openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAICompatible.java index b0a9bdd8b..01cbf9100 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantOpenAICompatible.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -41,6 +40,7 @@ public class DestinationQdrantOpenAICompatible { @JsonProperty("dimensions") private long dimensions; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -72,7 +72,8 @@ public DestinationQdrantOpenAICompatible( public DestinationQdrantOpenAICompatible( String baseUrl, long dimensions) { - this(Optional.empty(), baseUrl, dimensions, Optional.empty()); + this(Optional.empty(), baseUrl, dimensions, + Optional.empty()); } @JsonIgnore @@ -110,9 +111,10 @@ public Optional modelName() { return modelName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationQdrantOpenAICompatible withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -120,6 +122,7 @@ public DestinationQdrantOpenAICompatible withApiKey(String apiKey) { return this; } + public DestinationQdrantOpenAICompatible withApiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; @@ -153,6 +156,7 @@ public DestinationQdrantOpenAICompatible withModelName(String modelName) { return this; } + /** * The name of the model to use for embedding */ @@ -162,7 +166,6 @@ public DestinationQdrantOpenAICompatible withModelName(Optional modelNam return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +176,18 @@ public boolean equals(java.lang.Object o) { } DestinationQdrantOpenAICompatible other = (DestinationQdrantOpenAICompatible) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.dimensions, other.dimensions) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.modelName, other.modelName); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.dimensions, other.dimensions) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.modelName, other.modelName); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - dimensions, - mode, - modelName); + return Utils.enhancedHash( + apiKey, baseUrl, dimensions, + mode, modelName); } @Override @@ -199,21 +199,23 @@ public String toString() { "mode", mode, "modelName", modelName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey; - + private String baseUrl; - + private Long dimensions; - + private Optional modelName; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = Optional.ofNullable(apiKey); @@ -226,6 +228,7 @@ public Builder apiKey(Optional apiKey) { return this; } + /** * The base URL for your OpenAI-compatible service */ @@ -235,6 +238,7 @@ public Builder baseUrl(String baseUrl) { return this; } + /** * The number of dimensions the embedding model is generating */ @@ -244,6 +248,7 @@ public Builder dimensions(long dimensions) { return this; } + /** * The name of the model to use for embedding */ @@ -261,7 +266,7 @@ public Builder modelName(Optional modelName) { this.modelName = modelName; return this; } - + public DestinationQdrantOpenAICompatible build() { if (apiKey == null) { apiKey = _SINGLETON_VALUE_ApiKey.value(); @@ -269,13 +274,13 @@ public DestinationQdrantOpenAICompatible build() { if (modelName == null) { modelName = _SINGLETON_VALUE_ModelName.value(); } + return new DestinationQdrantOpenAICompatible( - apiKey, - baseUrl, - dimensions, + apiKey, baseUrl, dimensions, modelName); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiKey = new LazySingletonValue<>( "api_key", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantProcessingConfigModel.java index b1892064a..f3709fdf2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantProcessingConfigModel.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class DestinationQdrantProcessingConfigModel { +public class DestinationQdrantProcessingConfigModel { /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -29,27 +28,46 @@ public class DestinationQdrantProcessingConfigModel { private Optional chunkOverlap; /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonProperty("chunk_size") private long chunkSize; /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("field_name_mappings") private Optional> fieldNameMappings; /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata_fields") private Optional> metadataFields; /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("text_fields") @@ -86,7 +104,8 @@ public DestinationQdrantProcessingConfigModel( public DestinationQdrantProcessingConfigModel( long chunkSize) { - this(Optional.empty(), chunkSize, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), chunkSize, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -98,7 +117,8 @@ public Optional chunkOverlap() { } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonIgnore public long chunkSize() { @@ -106,7 +126,8 @@ public long chunkSize() { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +136,16 @@ public Optional> fieldNameMap } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -124,7 +154,15 @@ public Optional> metadataFields() { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -141,9 +179,10 @@ public Optional textSplitter() { return (Optional) textSplitter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context @@ -154,6 +193,7 @@ public DestinationQdrantProcessingConfigModel withChunkOverlap(long chunkOverlap return this; } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -164,7 +204,8 @@ public DestinationQdrantProcessingConfigModel withChunkOverlap(Optional ch } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public DestinationQdrantProcessingConfigModel withChunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -173,7 +214,8 @@ public DestinationQdrantProcessingConfigModel withChunkSize(long chunkSize) { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public DestinationQdrantProcessingConfigModel withFieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -181,8 +223,10 @@ public DestinationQdrantProcessingConfigModel withFieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -191,7 +235,16 @@ public DestinationQdrantProcessingConfigModel withFieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationQdrantProcessingConfigModel withMetadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -199,8 +252,18 @@ public DestinationQdrantProcessingConfigModel withMetadataFields(List me return this; } + /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationQdrantProcessingConfigModel withMetadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -209,7 +272,15 @@ public DestinationQdrantProcessingConfigModel withMetadataFields(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationQdrantProcessingConfigModel withTextFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -217,8 +288,17 @@ public DestinationQdrantProcessingConfigModel withTextFields(List textFi return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationQdrantProcessingConfigModel withTextFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -235,6 +315,7 @@ public DestinationQdrantProcessingConfigModel withTextSplitter(DestinationQdrant return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -244,7 +325,6 @@ public DestinationQdrantProcessingConfigModel withTextSplitter(Optional chunkOverlap; - + private Long chunkSize; - + private Optional> fieldNameMappings = Optional.empty(); - + private Optional> metadataFields = Optional.empty(); - + private Optional> textFields = Optional.empty(); - + private Optional textSplitter = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -321,8 +399,10 @@ public Builder chunkOverlap(Optional chunkOverlap) { return this; } + /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public Builder chunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -330,8 +410,10 @@ public Builder chunkSize(long chunkSize) { return this; } + /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public Builder fieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -340,7 +422,8 @@ public Builder fieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -348,8 +431,18 @@ public Builder fieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -358,7 +451,16 @@ public Builder metadataFields(List metadataFields) { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -366,8 +468,17 @@ public Builder metadataFields(Optional> metadataFields) { return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -376,7 +487,15 @@ public Builder textFields(List textFields) { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -384,6 +503,7 @@ public Builder textFields(Optional> textFields) { return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -401,20 +521,18 @@ public Builder textSplitter(Optional te this.textSplitter = textSplitter; return this; } - + public DestinationQdrantProcessingConfigModel build() { if (chunkOverlap == null) { chunkOverlap = _SINGLETON_VALUE_ChunkOverlap.value(); } + return new DestinationQdrantProcessingConfigModel( - chunkOverlap, - chunkSize, - fieldNameMappings, - metadataFields, - textFields, - textSplitter); + chunkOverlap, chunkSize, fieldNameMappings, + metadataFields, textFields, textSplitter); } + private static final LazySingletonValue> _SINGLETON_VALUE_ChunkOverlap = new LazySingletonValue<>( "chunk_overlap", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java index 5ed59a014..d5e3aa46e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbedding5Mode.java @@ -14,7 +14,7 @@ public enum DestinationQdrantSchemasEmbeddingEmbedding5Mode { @JsonValue private final String value; - private DestinationQdrantSchemasEmbeddingEmbedding5Mode(String value) { + DestinationQdrantSchemasEmbeddingEmbedding5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbeddingMode.java index 6a707a5a6..4c96520f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationQdrantSchemasEmbeddingEmbeddingMode { @JsonValue private final String value; - private DestinationQdrantSchemasEmbeddingEmbeddingMode(String value) { + DestinationQdrantSchemasEmbeddingEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingMode.java index 444655388..cca2b8b09 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationQdrantSchemasEmbeddingMode { @JsonValue private final String value; - private DestinationQdrantSchemasEmbeddingMode(String value) { + DestinationQdrantSchemasEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingAuthMethodMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingAuthMethodMode.java index 7ef65cee8..d47d6a11d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingAuthMethodMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingAuthMethodMode.java @@ -14,7 +14,7 @@ public enum DestinationQdrantSchemasIndexingAuthMethodMode { @JsonValue private final String value; - private DestinationQdrantSchemasIndexingAuthMethodMode(String value) { + DestinationQdrantSchemasIndexingAuthMethodMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingMode.java index cb10b6bba..f2f1c25be 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasIndexingMode.java @@ -14,7 +14,7 @@ public enum DestinationQdrantSchemasIndexingMode { @JsonValue private final String value; - private DestinationQdrantSchemasIndexingMode(String value) { + DestinationQdrantSchemasIndexingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasMode.java index 88685ebe2..f43741db0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationQdrantSchemasMode { @JsonValue private final String value; - private DestinationQdrantSchemasMode(String value) { + DestinationQdrantSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingMode.java index 983c89ad5..a4a841773 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingMode.java @@ -14,7 +14,7 @@ public enum DestinationQdrantSchemasProcessingMode { @JsonValue private final String value; - private DestinationQdrantSchemasProcessingMode(String value) { + DestinationQdrantSchemasProcessingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterMode.java index 9dde4877c..929a9c039 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationQdrantSchemasProcessingTextSplitterMode { @JsonValue private final String value; - private DestinationQdrantSchemasProcessingTextSplitterMode(String value) { + DestinationQdrantSchemasProcessingTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.java index 4e239630f..0fd571d84 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode { @JsonValue private final String value; - private DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode(String value) { + DestinationQdrantSchemasProcessingTextSplitterTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantTextSplitter.java index dfd5cc97d..a81f7ae36 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationQdrantTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationQdrantTextSplitter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationQdrantTextSplitter @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationQdrantTextSplitter other = (DestinationQdrantTextSplitter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedis.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedis.java index 7212744bf..78c877add 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedis.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedis.java @@ -16,11 +16,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationRedis { +public class DestinationRedis { /** * Redis cache type to store data in. */ @@ -28,6 +27,7 @@ public class DestinationRedis { @JsonProperty("cache_type") private Optional cacheType; + @JsonProperty("destinationType") private Redis destinationType; @@ -52,22 +52,25 @@ public class DestinationRedis { private Optional port; /** - * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use SSL connection if possible. + * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use + * SSL connection if possible. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl") private Optional ssl; /** - * SSL connection modes. - * <li><b>verify-full</b> - This is the most secure mode. Always require encryption and verifies the identity of the source database server + * SSL connection modes. + *

  • verify-full - This is the most secure mode. Always require encryption and verifies the + * identity of the source database server */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl_mode") private Optional sslMode; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -111,7 +114,9 @@ public DestinationRedis( public DestinationRedis( String host, String username) { - this(Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + this(Optional.empty(), host, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), username); } /** @@ -153,7 +158,8 @@ public Optional port() { } /** - * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use SSL connection if possible. + * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use + * SSL connection if possible. */ @JsonIgnore public Optional ssl() { @@ -161,8 +167,9 @@ public Optional ssl() { } /** - * SSL connection modes. - * <li><b>verify-full</b> - This is the most secure mode. Always require encryption and verifies the identity of the source database server + * SSL connection modes. + *
  • verify-full - This is the most secure mode. Always require encryption and verifies the + * identity of the source database server */ @SuppressWarnings("unchecked") @JsonIgnore @@ -171,7 +178,8 @@ public Optional sslMode() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -187,9 +195,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Redis cache type to store data in. @@ -200,6 +209,7 @@ public DestinationRedis withCacheType(CacheType cacheType) { return this; } + /** * Redis cache type to store data in. */ @@ -227,6 +237,7 @@ public DestinationRedis withPassword(String password) { return this; } + /** * Password associated with Redis. */ @@ -245,6 +256,7 @@ public DestinationRedis withPort(long port) { return this; } + /** * Port of Redis. */ @@ -255,7 +267,8 @@ public DestinationRedis withPort(Optional port) { } /** - * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use SSL connection if possible. + * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use + * SSL connection if possible. */ public DestinationRedis withSsl(boolean ssl) { Utils.checkNotNull(ssl, "ssl"); @@ -263,8 +276,10 @@ public DestinationRedis withSsl(boolean ssl) { return this; } + /** - * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use SSL connection if possible. + * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use + * SSL connection if possible. */ public DestinationRedis withSsl(Optional ssl) { Utils.checkNotNull(ssl, "ssl"); @@ -273,8 +288,9 @@ public DestinationRedis withSsl(Optional ssl) { } /** - * SSL connection modes. - * <li><b>verify-full</b> - This is the most secure mode. Always require encryption and verifies the identity of the source database server + * SSL connection modes. + *
  • verify-full - This is the most secure mode. Always require encryption and verifies the + * identity of the source database server */ public DestinationRedis withSslMode(DestinationRedisSSLModes sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -282,9 +298,11 @@ public DestinationRedis withSslMode(DestinationRedisSSLModes sslMode) { return this; } + /** - * SSL connection modes. - * <li><b>verify-full</b> - This is the most secure mode. Always require encryption and verifies the identity of the source database server + * SSL connection modes. + *
  • verify-full - This is the most secure mode. Always require encryption and verifies the + * identity of the source database server */ public DestinationRedis withSslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -293,7 +311,8 @@ public DestinationRedis withSslMode(Optional } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationRedis withTunnelMethod(DestinationRedisSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -301,8 +320,10 @@ public DestinationRedis withTunnelMethod(DestinationRedisSSHTunnelMethod tunnelM return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationRedis withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -319,7 +340,6 @@ public DestinationRedis withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -330,29 +350,23 @@ public boolean equals(java.lang.Object o) { } DestinationRedis other = (DestinationRedis) o; return - Objects.deepEquals(this.cacheType, other.cacheType) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.ssl, other.ssl) && - Objects.deepEquals(this.sslMode, other.sslMode) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.cacheType, other.cacheType) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.ssl, other.ssl) && + Utils.enhancedDeepEquals(this.sslMode, other.sslMode) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - cacheType, - destinationType, - host, - password, - port, - ssl, - sslMode, - tunnelMethod, - username); + return Utils.enhancedHash( + cacheType, destinationType, host, + password, port, ssl, + sslMode, tunnelMethod, username); } @Override @@ -368,29 +382,31 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional cacheType; - + private String host; - + private Optional password = Optional.empty(); - + private Optional port; - + private Optional ssl; - + private Optional sslMode = Optional.empty(); - + private Optional tunnelMethod = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Redis cache type to store data in. */ @@ -409,6 +425,7 @@ public Builder cacheType(Optional cacheType) { return this; } + /** * Redis host to connect to. */ @@ -418,6 +435,7 @@ public Builder host(String host) { return this; } + /** * Password associated with Redis. */ @@ -436,6 +454,7 @@ public Builder password(Optional password) { return this; } + /** * Port of Redis. */ @@ -454,8 +473,10 @@ public Builder port(Optional port) { return this; } + /** - * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use SSL connection if possible. + * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use + * SSL connection if possible. */ public Builder ssl(boolean ssl) { Utils.checkNotNull(ssl, "ssl"); @@ -464,7 +485,8 @@ public Builder ssl(boolean ssl) { } /** - * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use SSL connection if possible. + * Indicates whether SSL encryption protocol will be used to connect to Redis. It is recommended to use + * SSL connection if possible. */ public Builder ssl(Optional ssl) { Utils.checkNotNull(ssl, "ssl"); @@ -472,9 +494,11 @@ public Builder ssl(Optional ssl) { return this; } + /** - * SSL connection modes. - * <li><b>verify-full</b> - This is the most secure mode. Always require encryption and verifies the identity of the source database server + * SSL connection modes. + *
  • verify-full - This is the most secure mode. Always require encryption and verifies the + * identity of the source database server */ public Builder sslMode(DestinationRedisSSLModes sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -483,8 +507,9 @@ public Builder sslMode(DestinationRedisSSLModes sslMode) { } /** - * SSL connection modes. - * <li><b>verify-full</b> - This is the most secure mode. Always require encryption and verifies the identity of the source database server + * SSL connection modes. + *
  • verify-full - This is the most secure mode. Always require encryption and verifies the + * identity of the source database server */ public Builder sslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -492,8 +517,10 @@ public Builder sslMode(Optional sslMode) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(DestinationRedisSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -502,7 +529,8 @@ public Builder tunnelMethod(DestinationRedisSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -510,6 +538,7 @@ public Builder tunnelMethod(Optional return this; } + /** * Username associated with Redis. */ @@ -518,7 +547,7 @@ public Builder username(String username) { this.username = username; return this; } - + public DestinationRedis build() { if (cacheType == null) { cacheType = _SINGLETON_VALUE_CacheType.value(); @@ -529,17 +558,14 @@ public DestinationRedis build() { if (ssl == null) { ssl = _SINGLETON_VALUE_Ssl.value(); } + return new DestinationRedis( - cacheType, - host, - password, - port, - ssl, - sslMode, - tunnelMethod, - username); + cacheType, host, password, + port, ssl, sslMode, + tunnelMethod, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_CacheType = new LazySingletonValue<>( "cache_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisDisable.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisDisable.java index 3536272b2..d914307d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisDisable.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisDisable.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class DestinationRedisDisable { @JsonCreator public DestinationRedisDisable() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } DestinationRedisDisable other = (DestinationRedisDisable) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(DestinationRedisDisable.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationRedisDisable build() { + return new DestinationRedisDisable( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java index b0a4b6bd8..226510ea0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisMode.java @@ -14,7 +14,7 @@ public enum DestinationRedisMode { @JsonValue private final String value; - private DestinationRedisMode(String value) { + DestinationRedisMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisNoTunnel.java index d3a7921de..800286863 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationRedisNoTunnel { +public class DestinationRedisNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class DestinationRedisNoTunnel { @JsonCreator public DestinationRedisNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public DestinationRedisTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } DestinationRedisNoTunnel other = (DestinationRedisNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(DestinationRedisNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationRedisNoTunnel build() { + return new DestinationRedisNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisPasswordAuthentication.java index e7da2f0ea..53c84d3b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisPasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationRedisPasswordAuthentication { +public class DestinationRedisPasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public DestinationRedisPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public DestinationRedisPasswordAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public DestinationRedisPasswordAuthentication withTunnelUserPassword(String tunn return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } DestinationRedisPasswordAuthentication other = (DestinationRedisPasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public DestinationRedisPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationRedisPasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHKeyAuthentication.java index 57f359d40..3ee987f22 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationRedisSSHKeyAuthentication { +public class DestinationRedisSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public DestinationRedisSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public DestinationRedisSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public DestinationRedisSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public DestinationRedisSSHKeyAuthentication withTunnelUser(String tunnelUser) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } DestinationRedisSSHKeyAuthentication other = (DestinationRedisSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public DestinationRedisSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationRedisSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHTunnelMethod.java index d47bf9484..0f17dec87 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationRedisSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = DestinationRedisSSHTunnelMethod._Deserializer.class) public class DestinationRedisSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationRedisSSHTunnelMethod other = (DestinationRedisSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSLModes.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSLModes.java index 0d164f2e3..5c9114d18 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSSLModes.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationRedisSSLModes * - *

    SSL connection modes. - * <li><b>verify-full</b> - This is the most secure mode. Always require encryption and verifies the identity of the source database server + *

    SSL connection modes. + *

  • verify-full - This is the most secure mode. Always require encryption and verifies the + * identity of the source database server */ @JsonDeserialize(using = DestinationRedisSSLModes._Deserializer.class) public class DestinationRedisSSLModes { @@ -73,12 +73,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationRedisSSLModes other = (DestinationRedisSSLModes) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java index 01adb55dd..b00a8ab25 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationRedisSchemasMode { @JsonValue private final String value; - private DestinationRedisSchemasMode(String value) { + DestinationRedisSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethod.java index 4b2fa422a..9afc8799c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationRedisSchemasTunnelMethod { @JsonValue private final String value; - private DestinationRedisSchemasTunnelMethod(String value) { + DestinationRedisSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethodTunnelMethod.java index 7bc535451..af91c2c19 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationRedisSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private DestinationRedisSchemasTunnelMethodTunnelMethod(String value) { + DestinationRedisSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisTunnelMethod.java index df1b50064..174a6428e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationRedisTunnelMethod { @JsonValue private final String value; - private DestinationRedisTunnelMethod(String value) { + DestinationRedisTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedisVerifyFull.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedisVerifyFull.java index 3cf1aa89e..7eec362d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedisVerifyFull.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedisVerifyFull.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -23,7 +22,6 @@ *

    Verify-full SSL mode. */ public class DestinationRedisVerifyFull { - /** * CA certificate */ @@ -49,6 +47,7 @@ public class DestinationRedisVerifyFull { @JsonProperty("client_key_password") private Optional clientKeyPassword; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -74,7 +73,8 @@ public DestinationRedisVerifyFull( String caCertificate, String clientCertificate, String clientKey) { - this(caCertificate, clientCertificate, clientKey, Optional.empty()); + this(caCertificate, clientCertificate, clientKey, + Optional.empty()); } /** @@ -115,9 +115,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * CA certificate @@ -155,6 +156,7 @@ public DestinationRedisVerifyFull withClientKeyPassword(String clientKeyPassword return this; } + /** * Password for keystorage. If you do not add it - the password will be generated automatically. */ @@ -164,7 +166,6 @@ public DestinationRedisVerifyFull withClientKeyPassword(Optional clientK return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -175,21 +176,18 @@ public boolean equals(java.lang.Object o) { } DestinationRedisVerifyFull other = (DestinationRedisVerifyFull) o; return - Objects.deepEquals(this.caCertificate, other.caCertificate) && - Objects.deepEquals(this.clientCertificate, other.clientCertificate) && - Objects.deepEquals(this.clientKey, other.clientKey) && - Objects.deepEquals(this.clientKeyPassword, other.clientKeyPassword) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.caCertificate, other.caCertificate) && + Utils.enhancedDeepEquals(this.clientCertificate, other.clientCertificate) && + Utils.enhancedDeepEquals(this.clientKey, other.clientKey) && + Utils.enhancedDeepEquals(this.clientKeyPassword, other.clientKeyPassword) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - caCertificate, - clientCertificate, - clientKey, - clientKeyPassword, - mode); + return Utils.enhancedHash( + caCertificate, clientCertificate, clientKey, + clientKeyPassword, mode); } @Override @@ -201,21 +199,23 @@ public String toString() { "clientKeyPassword", clientKeyPassword, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String caCertificate; - + private String clientCertificate; - + private String clientKey; - + private Optional clientKeyPassword = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * CA certificate */ @@ -225,6 +225,7 @@ public Builder caCertificate(String caCertificate) { return this; } + /** * Client certificate */ @@ -234,6 +235,7 @@ public Builder clientCertificate(String clientCertificate) { return this; } + /** * Client key */ @@ -243,6 +245,7 @@ public Builder clientKey(String clientKey) { return this; } + /** * Password for keystorage. If you do not add it - the password will be generated automatically. */ @@ -260,15 +263,15 @@ public Builder clientKeyPassword(Optional clientKeyPassword) { this.clientKeyPassword = clientKeyPassword; return this; } - + public DestinationRedisVerifyFull build() { + return new DestinationRedisVerifyFull( - caCertificate, - clientCertificate, - clientKey, + caCertificate, clientCertificate, clientKey, clientKeyPassword); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshift.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshift.java index 33bd7d8d6..dbc51e697 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshift.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshift.java @@ -16,42 +16,49 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationRedshift { +public class DestinationRedshift { /** * Name of the database. */ @JsonProperty("database") private String database; + @JsonProperty("destinationType") private Redshift destinationType; /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disable_type_dedupe") private Optional disableTypeDedupe; /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("drop_cascade") private Optional dropCascade; /** - * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com) + * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with + * .redshift.amazonaws.com) */ @JsonProperty("host") private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -78,14 +85,16 @@ public class DestinationRedshift { private Optional rawDataSchema; /** - * The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. Unless + * specifically configured, the usual value for this field is "public". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("schema") private Optional schema; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -150,7 +159,10 @@ public DestinationRedshift( String host, String password, String username) { - this(database, Optional.empty(), Optional.empty(), host, Optional.empty(), password, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + this(database, Optional.empty(), Optional.empty(), + host, Optional.empty(), password, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), username); } /** @@ -167,7 +179,8 @@ public Redshift destinationType() { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ @JsonIgnore public Optional disableTypeDedupe() { @@ -175,7 +188,10 @@ public Optional disableTypeDedupe() { } /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ @JsonIgnore public Optional dropCascade() { @@ -183,7 +199,8 @@ public Optional dropCascade() { } /** - * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com) + * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with + * .redshift.amazonaws.com) */ @JsonIgnore public String host() { @@ -191,7 +208,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -223,7 +242,8 @@ public Optional rawDataSchema() { } /** - * The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. Unless + * specifically configured, the usual value for this field is "public". */ @JsonIgnore public Optional schema() { @@ -231,7 +251,8 @@ public Optional schema() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -256,9 +277,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the database. @@ -270,7 +292,8 @@ public DestinationRedshift withDatabase(String database) { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public DestinationRedshift withDisableTypeDedupe(boolean disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -278,8 +301,10 @@ public DestinationRedshift withDisableTypeDedupe(boolean disableTypeDedupe) { return this; } + /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public DestinationRedshift withDisableTypeDedupe(Optional disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -288,7 +313,10 @@ public DestinationRedshift withDisableTypeDedupe(Optional disableTypeDe } /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ public DestinationRedshift withDropCascade(boolean dropCascade) { Utils.checkNotNull(dropCascade, "dropCascade"); @@ -296,8 +324,12 @@ public DestinationRedshift withDropCascade(boolean dropCascade) { return this; } + /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ public DestinationRedshift withDropCascade(Optional dropCascade) { Utils.checkNotNull(dropCascade, "dropCascade"); @@ -306,7 +338,8 @@ public DestinationRedshift withDropCascade(Optional dropCascade) { } /** - * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com) + * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with + * .redshift.amazonaws.com) */ public DestinationRedshift withHost(String host) { Utils.checkNotNull(host, "host"); @@ -315,7 +348,9 @@ public DestinationRedshift withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationRedshift withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -323,8 +358,11 @@ public DestinationRedshift withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationRedshift withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -350,6 +388,7 @@ public DestinationRedshift withPort(long port) { return this; } + /** * Port of the database. */ @@ -368,6 +407,7 @@ public DestinationRedshift withRawDataSchema(String rawDataSchema) { return this; } + /** * The schema to write raw tables into (default: airbyte_internal). */ @@ -378,7 +418,8 @@ public DestinationRedshift withRawDataSchema(Optional rawDataSchema) { } /** - * The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. Unless + * specifically configured, the usual value for this field is "public". */ public DestinationRedshift withSchema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -386,8 +427,10 @@ public DestinationRedshift withSchema(String schema) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. Unless + * specifically configured, the usual value for this field is "public". */ public DestinationRedshift withSchema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -396,7 +439,8 @@ public DestinationRedshift withSchema(Optional schema) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationRedshift withTunnelMethod(DestinationRedshiftSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -404,8 +448,10 @@ public DestinationRedshift withTunnelMethod(DestinationRedshiftSSHTunnelMethod t return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public DestinationRedshift withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -422,6 +468,7 @@ public DestinationRedshift withUploadingMethod(UploadingMethod uploadingMethod) return this; } + /** * The way data will be uploaded to Redshift. */ @@ -440,7 +487,6 @@ public DestinationRedshift withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -451,36 +497,28 @@ public boolean equals(java.lang.Object o) { } DestinationRedshift other = (DestinationRedshift) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.disableTypeDedupe, other.disableTypeDedupe) && - Objects.deepEquals(this.dropCascade, other.dropCascade) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.rawDataSchema, other.rawDataSchema) && - Objects.deepEquals(this.schema, other.schema) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.uploadingMethod, other.uploadingMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.disableTypeDedupe, other.disableTypeDedupe) && + Utils.enhancedDeepEquals(this.dropCascade, other.dropCascade) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.rawDataSchema, other.rawDataSchema) && + Utils.enhancedDeepEquals(this.schema, other.schema) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.uploadingMethod, other.uploadingMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - database, - destinationType, - disableTypeDedupe, - dropCascade, - host, - jdbcUrlParams, - password, - port, - rawDataSchema, - schema, - tunnelMethod, - uploadingMethod, + return Utils.enhancedHash( + database, destinationType, disableTypeDedupe, + dropCascade, host, jdbcUrlParams, + password, port, rawDataSchema, + schema, tunnelMethod, uploadingMethod, username); } @@ -501,37 +539,39 @@ public String toString() { "uploadingMethod", uploadingMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String database; - + private Optional disableTypeDedupe; - + private Optional dropCascade; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private String password; - + private Optional port; - + private Optional rawDataSchema = Optional.empty(); - + private Optional schema; - + private Optional tunnelMethod = Optional.empty(); - + private Optional uploadingMethod = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Name of the database. */ @@ -541,8 +581,10 @@ public Builder database(String database) { return this; } + /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public Builder disableTypeDedupe(boolean disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -551,7 +593,8 @@ public Builder disableTypeDedupe(boolean disableTypeDedupe) { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public Builder disableTypeDedupe(Optional disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -559,8 +602,12 @@ public Builder disableTypeDedupe(Optional disableTypeDedupe) { return this; } + /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ public Builder dropCascade(boolean dropCascade) { Utils.checkNotNull(dropCascade, "dropCascade"); @@ -569,7 +616,10 @@ public Builder dropCascade(boolean dropCascade) { } /** - * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). Use with caution. This option is intended for usecases which can easily rebuild the dependent objects. + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. */ public Builder dropCascade(Optional dropCascade) { Utils.checkNotNull(dropCascade, "dropCascade"); @@ -577,8 +627,10 @@ public Builder dropCascade(Optional dropCascade) { return this; } + /** - * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com) + * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with + * .redshift.amazonaws.com) */ public Builder host(String host) { Utils.checkNotNull(host, "host"); @@ -586,8 +638,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -596,7 +651,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -604,6 +661,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * Password associated with the username. */ @@ -613,6 +671,7 @@ public Builder password(String password) { return this; } + /** * Port of the database. */ @@ -631,6 +690,7 @@ public Builder port(Optional port) { return this; } + /** * The schema to write raw tables into (default: airbyte_internal). */ @@ -649,8 +709,10 @@ public Builder rawDataSchema(Optional rawDataSchema) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. Unless + * specifically configured, the usual value for this field is "public". */ public Builder schema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -659,7 +721,8 @@ public Builder schema(String schema) { } /** - * The default schema tables are written to if the source does not specify a namespace. Unless specifically configured, the usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. Unless + * specifically configured, the usual value for this field is "public". */ public Builder schema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -667,8 +730,10 @@ public Builder schema(Optional schema) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(DestinationRedshiftSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -677,7 +742,8 @@ public Builder tunnelMethod(DestinationRedshiftSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -685,6 +751,7 @@ public Builder tunnelMethod(Optional uploadingMeth return this; } + /** * Username to use to access the database. */ @@ -711,7 +779,7 @@ public Builder username(String username) { this.username = username; return this; } - + public DestinationRedshift build() { if (disableTypeDedupe == null) { disableTypeDedupe = _SINGLETON_VALUE_DisableTypeDedupe.value(); @@ -725,21 +793,15 @@ public DestinationRedshift build() { if (schema == null) { schema = _SINGLETON_VALUE_Schema.value(); } + return new DestinationRedshift( - database, - disableTypeDedupe, - dropCascade, - host, - jdbcUrlParams, - password, - port, - rawDataSchema, - schema, - tunnelMethod, - uploadingMethod, - username); + database, disableTypeDedupe, dropCascade, + host, jdbcUrlParams, password, + port, rawDataSchema, schema, + tunnelMethod, uploadingMethod, username); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java index 0e047ad22..71dbb4b8e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftMethod.java @@ -14,7 +14,7 @@ public enum DestinationRedshiftMethod { @JsonValue private final String value; - private DestinationRedshiftMethod(String value) { + DestinationRedshiftMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftNoTunnel.java index b4a577b9c..c56a60cb2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationRedshiftNoTunnel { +public class DestinationRedshiftNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class DestinationRedshiftNoTunnel { @JsonCreator public DestinationRedshiftNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public DestinationRedshiftTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } DestinationRedshiftNoTunnel other = (DestinationRedshiftNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(DestinationRedshiftNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationRedshiftNoTunnel build() { + return new DestinationRedshiftNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftPasswordAuthentication.java index 98d4607ee..e60c543af 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftPasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationRedshiftPasswordAuthentication { +public class DestinationRedshiftPasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public DestinationRedshiftPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public DestinationRedshiftPasswordAuthentication withTunnelPort(long tunnelPort) return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public DestinationRedshiftPasswordAuthentication withTunnelUserPassword(String t return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } DestinationRedshiftPasswordAuthentication other = (DestinationRedshiftPasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public DestinationRedshiftPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationRedshiftPasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java index 19863eb4a..17d814245 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftS3BucketRegion.java @@ -52,7 +52,7 @@ public enum DestinationRedshiftS3BucketRegion { @JsonValue private final String value; - private DestinationRedshiftS3BucketRegion(String value) { + DestinationRedshiftS3BucketRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHKeyAuthentication.java index 5768a04b7..8ee061145 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationRedshiftSSHKeyAuthentication { +public class DestinationRedshiftSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public DestinationRedshiftSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public DestinationRedshiftSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public DestinationRedshiftSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public DestinationRedshiftSSHKeyAuthentication withTunnelUser(String tunnelUser) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } DestinationRedshiftSSHKeyAuthentication other = (DestinationRedshiftSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public DestinationRedshiftSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationRedshiftSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHTunnelMethod.java index e952b310d..585feb8ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationRedshiftSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = DestinationRedshiftSSHTunnelMethod._Deserializer.class) public class DestinationRedshiftSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationRedshiftSSHTunnelMethod other = (DestinationRedshiftSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java index a41c1129e..d45d5a2ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationRedshiftSchemasTunnelMethod { @JsonValue private final String value; - private DestinationRedshiftSchemasTunnelMethod(String value) { + DestinationRedshiftSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethodTunnelMethod.java index ef1d12df4..7baa4987a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationRedshiftSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private DestinationRedshiftSchemasTunnelMethodTunnelMethod(String value) { + DestinationRedshiftSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java index 1cb6cd45d..518007e71 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationRedshiftTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationRedshiftTunnelMethod { @JsonValue private final String value; - private DestinationRedshiftTunnelMethod(String value) { + DestinationRedshiftTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationResponse.java b/src/main/java/com/airbyte/api/models/shared/DestinationResponse.java index 478a5e802..e26851462 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationResponse.java @@ -13,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -22,35 +21,45 @@ *

    Provides details of a single destination. */ public class DestinationResponse { - /** * The values required to configure the destination. */ @JsonProperty("configuration") private DestinationConfiguration configuration; + @JsonProperty("createdAt") private long createdAt; + @JsonProperty("definitionId") private String definitionId; + @JsonProperty("destinationId") private String destinationId; + @JsonProperty("destinationType") private String destinationType; + @JsonProperty("name") private String name; /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("resourceAllocation") private Optional resourceAllocation; + @JsonProperty("workspaceId") private String workspaceId; @@ -90,7 +99,9 @@ public DestinationResponse( String destinationType, String name, String workspaceId) { - this(configuration, createdAt, definitionId, destinationId, destinationType, name, Optional.empty(), workspaceId); + this(configuration, createdAt, definitionId, + destinationId, destinationType, name, + Optional.empty(), workspaceId); } /** @@ -127,7 +138,12 @@ public String name() { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -140,9 +156,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The values required to configure the destination. @@ -184,7 +201,12 @@ public DestinationResponse withName(String name) { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public DestinationResponse withResourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -192,8 +214,14 @@ public DestinationResponse withResourceAllocation(ScopedResourceRequirements res return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public DestinationResponse withResourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -207,7 +235,6 @@ public DestinationResponse withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,27 +245,22 @@ public boolean equals(java.lang.Object o) { } DestinationResponse other = (DestinationResponse) o; return - Objects.deepEquals(this.configuration, other.configuration) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.destinationId, other.destinationId) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.resourceAllocation, other.resourceAllocation) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.configuration, other.configuration) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.destinationId, other.destinationId) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.resourceAllocation, other.resourceAllocation) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - configuration, - createdAt, - definitionId, - destinationId, - destinationType, - name, - resourceAllocation, - workspaceId); + return Utils.enhancedHash( + configuration, createdAt, definitionId, + destinationId, destinationType, name, + resourceAllocation, workspaceId); } @Override @@ -253,29 +275,31 @@ public String toString() { "resourceAllocation", resourceAllocation, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationConfiguration configuration; - + private Long createdAt; - + private String definitionId; - + private String destinationId; - + private String destinationType; - + private String name; - + private Optional resourceAllocation = Optional.empty(); - + private String workspaceId; - + private Builder() { // force use of static builder() method } + /** * The values required to configure the destination. */ @@ -285,38 +309,49 @@ public Builder configuration(DestinationConfiguration configuration) { return this; } + public Builder createdAt(long createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder destinationId(String destinationId) { Utils.checkNotNull(destinationId, "destinationId"); this.destinationId = destinationId; return this; } + public Builder destinationType(String destinationType) { Utils.checkNotNull(destinationType, "destinationType"); this.destinationType = destinationType; return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -325,7 +360,12 @@ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -333,22 +373,20 @@ public Builder resourceAllocation(Optional return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public DestinationResponse build() { + return new DestinationResponse( - configuration, - createdAt, - definitionId, - destinationId, - destinationType, - name, - resourceAllocation, - workspaceId); + configuration, createdAt, definitionId, + destinationId, destinationType, name, + resourceAllocation, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3.java index 40d3e67ed..1f4b84a81 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3.java @@ -14,30 +14,35 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationS3 { +public class DestinationS3 { /** - * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("access_key_id") private Optional accessKeyId; + @JsonProperty("destinationType") private S3 destinationType; /** - * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> + * Pattern to match file names in the bucket directory. Read more here */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("file_name_pattern") private Optional fileNamePattern; /** - * Format of the data output. See <a href="https://docs.airbyte.com/integrations/destinations/s3/#supported-output-schema">here</a> for more details + * Format of the data output. See here for + * more details */ @JsonProperty("format") private DestinationS3OutputFormat format; @@ -50,40 +55,47 @@ public class DestinationS3 { private Optional roleArn; /** - * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. + * The name of the S3 bucket. Read more here. */ @JsonProperty("s3_bucket_name") private String s3BucketName; /** - * Directory under the S3 bucket where data will be written. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=to%20format%20the-,bucket%20path,-%3A">here</a> + * Directory under the S3 bucket where data will be written. Read more here */ @JsonProperty("s3_bucket_path") private String s3BucketPath; /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("s3_bucket_region") private Optional s3BucketRegion; /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("s3_endpoint") private Optional s3Endpoint; /** - * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more here */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("s3_path_format") private Optional s3PathFormat; /** - * The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> + * The corresponding secret to the access key ID. Read more here */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("secret_access_key") @@ -128,11 +140,16 @@ public DestinationS3( DestinationS3OutputFormat format, String s3BucketName, String s3BucketPath) { - this(Optional.empty(), Optional.empty(), format, Optional.empty(), s3BucketName, s3BucketPath, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), format, + Optional.empty(), s3BucketName, s3BucketPath, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. */ @JsonIgnore public Optional accessKeyId() { @@ -145,7 +162,8 @@ public S3 destinationType() { } /** - * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> + * Pattern to match file names in the bucket directory. Read more here */ @JsonIgnore public Optional fileNamePattern() { @@ -153,7 +171,9 @@ public Optional fileNamePattern() { } /** - * Format of the data output. See <a href="https://docs.airbyte.com/integrations/destinations/s3/#supported-output-schema">here</a> for more details + * Format of the data output. See here for + * more details */ @JsonIgnore public DestinationS3OutputFormat format() { @@ -169,7 +189,8 @@ public Optional roleArn() { } /** - * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. + * The name of the S3 bucket. Read more here. */ @JsonIgnore public String s3BucketName() { @@ -177,7 +198,8 @@ public String s3BucketName() { } /** - * Directory under the S3 bucket where data will be written. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=to%20format%20the-,bucket%20path,-%3A">here</a> + * Directory under the S3 bucket where data will be written. Read more here */ @JsonIgnore public String s3BucketPath() { @@ -185,7 +207,9 @@ public String s3BucketPath() { } /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -194,7 +218,8 @@ public Optional s3BucketRegion() { } /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ @JsonIgnore public Optional s3Endpoint() { @@ -202,7 +227,8 @@ public Optional s3Endpoint() { } /** - * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more here */ @JsonIgnore public Optional s3PathFormat() { @@ -210,19 +236,23 @@ public Optional s3PathFormat() { } /** - * The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> + * The corresponding secret to the access key ID. Read more here */ @JsonIgnore public Optional secretAccessKey() { return secretAccessKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. */ public DestinationS3 withAccessKeyId(String accessKeyId) { Utils.checkNotNull(accessKeyId, "accessKeyId"); @@ -230,8 +260,11 @@ public DestinationS3 withAccessKeyId(String accessKeyId) { return this; } + /** - * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. */ public DestinationS3 withAccessKeyId(Optional accessKeyId) { Utils.checkNotNull(accessKeyId, "accessKeyId"); @@ -240,7 +273,8 @@ public DestinationS3 withAccessKeyId(Optional accessKeyId) { } /** - * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> + * Pattern to match file names in the bucket directory. Read more here */ public DestinationS3 withFileNamePattern(String fileNamePattern) { Utils.checkNotNull(fileNamePattern, "fileNamePattern"); @@ -248,8 +282,10 @@ public DestinationS3 withFileNamePattern(String fileNamePattern) { return this; } + /** - * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> + * Pattern to match file names in the bucket directory. Read more here */ public DestinationS3 withFileNamePattern(Optional fileNamePattern) { Utils.checkNotNull(fileNamePattern, "fileNamePattern"); @@ -258,7 +294,9 @@ public DestinationS3 withFileNamePattern(Optional fileNamePattern) { } /** - * Format of the data output. See <a href="https://docs.airbyte.com/integrations/destinations/s3/#supported-output-schema">here</a> for more details + * Format of the data output. See here for + * more details */ public DestinationS3 withFormat(DestinationS3OutputFormat format) { Utils.checkNotNull(format, "format"); @@ -275,6 +313,7 @@ public DestinationS3 withRoleArn(String roleArn) { return this; } + /** * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. */ @@ -285,7 +324,8 @@ public DestinationS3 withRoleArn(Optional roleArn) { } /** - * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. + * The name of the S3 bucket. Read more here. */ public DestinationS3 withS3BucketName(String s3BucketName) { Utils.checkNotNull(s3BucketName, "s3BucketName"); @@ -294,7 +334,8 @@ public DestinationS3 withS3BucketName(String s3BucketName) { } /** - * Directory under the S3 bucket where data will be written. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=to%20format%20the-,bucket%20path,-%3A">here</a> + * Directory under the S3 bucket where data will be written. Read more here */ public DestinationS3 withS3BucketPath(String s3BucketPath) { Utils.checkNotNull(s3BucketPath, "s3BucketPath"); @@ -303,7 +344,9 @@ public DestinationS3 withS3BucketPath(String s3BucketPath) { } /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ public DestinationS3 withS3BucketRegion(DestinationS3S3BucketRegion s3BucketRegion) { Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); @@ -311,8 +354,11 @@ public DestinationS3 withS3BucketRegion(DestinationS3S3BucketRegion s3BucketRegi return this; } + /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ public DestinationS3 withS3BucketRegion(Optional s3BucketRegion) { Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); @@ -321,7 +367,8 @@ public DestinationS3 withS3BucketRegion(Optionalhere */ public DestinationS3 withS3Endpoint(String s3Endpoint) { Utils.checkNotNull(s3Endpoint, "s3Endpoint"); @@ -329,8 +376,10 @@ public DestinationS3 withS3Endpoint(String s3Endpoint) { return this; } + /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ public DestinationS3 withS3Endpoint(Optional s3Endpoint) { Utils.checkNotNull(s3Endpoint, "s3Endpoint"); @@ -339,7 +388,8 @@ public DestinationS3 withS3Endpoint(Optional s3Endpoint) { } /** - * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more here */ public DestinationS3 withS3PathFormat(String s3PathFormat) { Utils.checkNotNull(s3PathFormat, "s3PathFormat"); @@ -347,8 +397,10 @@ public DestinationS3 withS3PathFormat(String s3PathFormat) { return this; } + /** - * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more here */ public DestinationS3 withS3PathFormat(Optional s3PathFormat) { Utils.checkNotNull(s3PathFormat, "s3PathFormat"); @@ -357,7 +409,8 @@ public DestinationS3 withS3PathFormat(Optional s3PathFormat) { } /** - * The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> + * The corresponding secret to the access key ID. Read more here */ public DestinationS3 withSecretAccessKey(String secretAccessKey) { Utils.checkNotNull(secretAccessKey, "secretAccessKey"); @@ -365,8 +418,10 @@ public DestinationS3 withSecretAccessKey(String secretAccessKey) { return this; } + /** - * The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> + * The corresponding secret to the access key ID. Read more here */ public DestinationS3 withSecretAccessKey(Optional secretAccessKey) { Utils.checkNotNull(secretAccessKey, "secretAccessKey"); @@ -374,7 +429,6 @@ public DestinationS3 withSecretAccessKey(Optional secretAccessKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -385,33 +439,26 @@ public boolean equals(java.lang.Object o) { } DestinationS3 other = (DestinationS3) o; return - Objects.deepEquals(this.accessKeyId, other.accessKeyId) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.fileNamePattern, other.fileNamePattern) && - Objects.deepEquals(this.format, other.format) && - Objects.deepEquals(this.roleArn, other.roleArn) && - Objects.deepEquals(this.s3BucketName, other.s3BucketName) && - Objects.deepEquals(this.s3BucketPath, other.s3BucketPath) && - Objects.deepEquals(this.s3BucketRegion, other.s3BucketRegion) && - Objects.deepEquals(this.s3Endpoint, other.s3Endpoint) && - Objects.deepEquals(this.s3PathFormat, other.s3PathFormat) && - Objects.deepEquals(this.secretAccessKey, other.secretAccessKey); + Utils.enhancedDeepEquals(this.accessKeyId, other.accessKeyId) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.fileNamePattern, other.fileNamePattern) && + Utils.enhancedDeepEquals(this.format, other.format) && + Utils.enhancedDeepEquals(this.roleArn, other.roleArn) && + Utils.enhancedDeepEquals(this.s3BucketName, other.s3BucketName) && + Utils.enhancedDeepEquals(this.s3BucketPath, other.s3BucketPath) && + Utils.enhancedDeepEquals(this.s3BucketRegion, other.s3BucketRegion) && + Utils.enhancedDeepEquals(this.s3Endpoint, other.s3Endpoint) && + Utils.enhancedDeepEquals(this.s3PathFormat, other.s3PathFormat) && + Utils.enhancedDeepEquals(this.secretAccessKey, other.secretAccessKey); } @Override public int hashCode() { - return Objects.hash( - accessKeyId, - destinationType, - fileNamePattern, - format, - roleArn, - s3BucketName, - s3BucketPath, - s3BucketRegion, - s3Endpoint, - s3PathFormat, - secretAccessKey); + return Utils.enhancedHash( + accessKeyId, destinationType, fileNamePattern, + format, roleArn, s3BucketName, + s3BucketPath, s3BucketRegion, s3Endpoint, + s3PathFormat, secretAccessKey); } @Override @@ -429,35 +476,39 @@ public String toString() { "s3PathFormat", s3PathFormat, "secretAccessKey", secretAccessKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accessKeyId = Optional.empty(); - + private Optional fileNamePattern = Optional.empty(); - + private DestinationS3OutputFormat format; - + private Optional roleArn = Optional.empty(); - + private String s3BucketName; - + private String s3BucketPath; - + private Optional s3BucketRegion; - + private Optional s3Endpoint = Optional.empty(); - + private Optional s3PathFormat = Optional.empty(); - + private Optional secretAccessKey = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. */ public Builder accessKeyId(String accessKeyId) { Utils.checkNotNull(accessKeyId, "accessKeyId"); @@ -466,7 +517,9 @@ public Builder accessKeyId(String accessKeyId) { } /** - * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given bucket. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a>. + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. */ public Builder accessKeyId(Optional accessKeyId) { Utils.checkNotNull(accessKeyId, "accessKeyId"); @@ -474,8 +527,10 @@ public Builder accessKeyId(Optional accessKeyId) { return this; } + /** - * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> + * Pattern to match file names in the bucket directory. Read more here */ public Builder fileNamePattern(String fileNamePattern) { Utils.checkNotNull(fileNamePattern, "fileNamePattern"); @@ -484,7 +539,8 @@ public Builder fileNamePattern(String fileNamePattern) { } /** - * Pattern to match file names in the bucket directory. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/ListingKeysUsingAPIs.html">here</a> + * Pattern to match file names in the bucket directory. Read more here */ public Builder fileNamePattern(Optional fileNamePattern) { Utils.checkNotNull(fileNamePattern, "fileNamePattern"); @@ -492,8 +548,11 @@ public Builder fileNamePattern(Optional fileNamePattern) { return this; } + /** - * Format of the data output. See <a href="https://docs.airbyte.com/integrations/destinations/s3/#supported-output-schema">here</a> for more details + * Format of the data output. See here for + * more details */ public Builder format(DestinationS3OutputFormat format) { Utils.checkNotNull(format, "format"); @@ -501,6 +560,7 @@ public Builder format(DestinationS3OutputFormat format) { return this; } + /** * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. */ @@ -519,8 +579,10 @@ public Builder roleArn(Optional roleArn) { return this; } + /** - * The name of the S3 bucket. Read more <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/create-bucket-overview.html">here</a>. + * The name of the S3 bucket. Read more here. */ public Builder s3BucketName(String s3BucketName) { Utils.checkNotNull(s3BucketName, "s3BucketName"); @@ -528,8 +590,10 @@ public Builder s3BucketName(String s3BucketName) { return this; } + /** - * Directory under the S3 bucket where data will be written. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=to%20format%20the-,bucket%20path,-%3A">here</a> + * Directory under the S3 bucket where data will be written. Read more here */ public Builder s3BucketPath(String s3BucketPath) { Utils.checkNotNull(s3BucketPath, "s3BucketPath"); @@ -537,8 +601,11 @@ public Builder s3BucketPath(String s3BucketPath) { return this; } + /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ public Builder s3BucketRegion(DestinationS3S3BucketRegion s3BucketRegion) { Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); @@ -547,7 +614,9 @@ public Builder s3BucketRegion(DestinationS3S3BucketRegion s3BucketRegion) { } /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ public Builder s3BucketRegion(Optional s3BucketRegion) { Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); @@ -555,8 +624,10 @@ public Builder s3BucketRegion(Optional s3 return this; } + /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ public Builder s3Endpoint(String s3Endpoint) { Utils.checkNotNull(s3Endpoint, "s3Endpoint"); @@ -565,7 +636,8 @@ public Builder s3Endpoint(String s3Endpoint) { } /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ public Builder s3Endpoint(Optional s3Endpoint) { Utils.checkNotNull(s3Endpoint, "s3Endpoint"); @@ -573,8 +645,10 @@ public Builder s3Endpoint(Optional s3Endpoint) { return this; } + /** - * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more here */ public Builder s3PathFormat(String s3PathFormat) { Utils.checkNotNull(s3PathFormat, "s3PathFormat"); @@ -583,7 +657,8 @@ public Builder s3PathFormat(String s3PathFormat) { } /** - * Format string on how data will be organized inside the bucket directory. Read more <a href="https://docs.airbyte.com/integrations/destinations/s3#:~:text=The%20full%20path%20of%20the%20output%20data%20with%20the%20default%20S3%20path%20format">here</a> + * Format string on how data will be organized inside the bucket directory. Read more here */ public Builder s3PathFormat(Optional s3PathFormat) { Utils.checkNotNull(s3PathFormat, "s3PathFormat"); @@ -591,8 +666,10 @@ public Builder s3PathFormat(Optional s3PathFormat) { return this; } + /** - * The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> + * The corresponding secret to the access key ID. Read more here */ public Builder secretAccessKey(String secretAccessKey) { Utils.checkNotNull(secretAccessKey, "secretAccessKey"); @@ -601,31 +678,28 @@ public Builder secretAccessKey(String secretAccessKey) { } /** - * The corresponding secret to the access key ID. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html#access-keys-and-secret-access-keys">here</a> + * The corresponding secret to the access key ID. Read more here */ public Builder secretAccessKey(Optional secretAccessKey) { Utils.checkNotNull(secretAccessKey, "secretAccessKey"); this.secretAccessKey = secretAccessKey; return this; } - + public DestinationS3 build() { if (s3BucketRegion == null) { s3BucketRegion = _SINGLETON_VALUE_S3BucketRegion.value(); } + return new DestinationS3( - accessKeyId, - fileNamePattern, - format, - roleArn, - s3BucketName, - s3BucketPath, - s3BucketRegion, - s3Endpoint, - s3PathFormat, + accessKeyId, fileNamePattern, format, + roleArn, s3BucketName, s3BucketPath, + s3BucketRegion, s3Endpoint, s3PathFormat, secretAccessKey); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3AvroApacheAvro.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3AvroApacheAvro.java index 2687ff655..1c92db8e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3AvroApacheAvro.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3AvroApacheAvro.java @@ -19,9 +19,9 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3AvroApacheAvro { @JsonIgnore @@ -33,6 +33,7 @@ public class DestinationS3AvroApacheAvro { @JsonProperty("compression_codec") private DestinationS3CompressionCodec compressionCodec; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; @@ -72,9 +73,10 @@ public Optional formatType() { return (Optional) formatType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3AvroApacheAvro withAdditionalProperty(String key, Object value) { @@ -82,8 +84,7 @@ public DestinationS3AvroApacheAvro withAdditionalProperty(String key, Object val Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3AvroApacheAvro withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -105,13 +106,13 @@ public DestinationS3AvroApacheAvro withFormatType(DestinationS3SchemasFormatForm return this; } + public DestinationS3AvroApacheAvro withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,17 +123,15 @@ public boolean equals(java.lang.Object o) { } DestinationS3AvroApacheAvro other = (DestinationS3AvroApacheAvro) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.compressionCodec, other.compressionCodec) && - Objects.deepEquals(this.formatType, other.formatType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.compressionCodec, other.compressionCodec) && + Utils.enhancedDeepEquals(this.formatType, other.formatType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - compressionCodec, - formatType); + return Utils.enhancedHash( + additionalProperties, compressionCodec, formatType); } @Override @@ -142,15 +141,16 @@ public String toString() { "compressionCodec", compressionCodec, "formatType", formatType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private DestinationS3CompressionCodec compressionCodec; - + private Optional formatType; - + private Builder() { // force use of static builder() method } @@ -171,6 +171,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * The compression algorithm used to compress data. Default to no compression. */ @@ -180,6 +181,7 @@ public Builder compressionCodec(DestinationS3CompressionCodec compressionCodec) return this; } + public Builder formatType(DestinationS3SchemasFormatFormatType formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = Optional.ofNullable(formatType); @@ -191,17 +193,18 @@ public Builder formatType(Optional> _SINGLETON_VALUE_FormatType = new LazySingletonValue<>( "format_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Bzip2.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Bzip2.java index 86338f06c..ee25f5aad 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Bzip2.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Bzip2.java @@ -19,14 +19,15 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3Bzip2 { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional codec; @@ -54,9 +55,10 @@ public Optional codec() { return (Optional) codec; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3Bzip2 withAdditionalProperty(String key, Object value) { @@ -64,8 +66,7 @@ public DestinationS3Bzip2 withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3Bzip2 withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -78,13 +79,13 @@ public DestinationS3Bzip2 withCodec(DestinationS3SchemasFormatCodec codec) { return this; } + public DestinationS3Bzip2 withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +96,14 @@ public boolean equals(java.lang.Object o) { } DestinationS3Bzip2 other = (DestinationS3Bzip2) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.codec, other.codec); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.codec, other.codec); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - codec); + return Utils.enhancedHash( + additionalProperties, codec); } @Override @@ -112,13 +112,14 @@ public String toString() { "additionalProperties", additionalProperties, "codec", codec); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional codec; - + private Builder() { // force use of static builder() method } @@ -139,6 +140,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder codec(DestinationS3SchemasFormatCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -150,16 +152,18 @@ public Builder codec(Optional codec) this.codec = codec; return this; } - + public DestinationS3Bzip2 build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); } + return new DestinationS3Bzip2( codec) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3CSVCommaSeparatedValues.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3CSVCommaSeparatedValues.java index 4b0c987fa..e8108f967 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3CSVCommaSeparatedValues.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3CSVCommaSeparatedValues.java @@ -19,25 +19,28 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3CSVCommaSeparatedValues { @JsonIgnore private Map additionalProperties; /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression") private Optional compression; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("flattening") private Optional flattening; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; @@ -66,7 +69,8 @@ public Map additionalProperties() { } /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ @SuppressWarnings("unchecked") @JsonIgnore @@ -86,9 +90,10 @@ public Optional formatType() { return (Optional) formatType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3CSVCommaSeparatedValues withAdditionalProperty(String key, Object value) { @@ -96,8 +101,7 @@ public DestinationS3CSVCommaSeparatedValues withAdditionalProperty(String key, O Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3CSVCommaSeparatedValues withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -105,7 +109,8 @@ public DestinationS3CSVCommaSeparatedValues withAdditionalProperties(Map compression) { Utils.checkNotNull(compression, "compression"); @@ -128,6 +135,7 @@ public DestinationS3CSVCommaSeparatedValues withFlattening(DestinationS3Flatteni return this; } + public DestinationS3CSVCommaSeparatedValues withFlattening(Optional flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = flattening; @@ -140,13 +148,13 @@ public DestinationS3CSVCommaSeparatedValues withFormatType(DestinationS3FormatTy return this; } + public DestinationS3CSVCommaSeparatedValues withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -157,18 +165,16 @@ public boolean equals(java.lang.Object o) { } DestinationS3CSVCommaSeparatedValues other = (DestinationS3CSVCommaSeparatedValues) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.compression, other.compression) && - Objects.deepEquals(this.flattening, other.flattening) && - Objects.deepEquals(this.formatType, other.formatType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.compression, other.compression) && + Utils.enhancedDeepEquals(this.flattening, other.flattening) && + Utils.enhancedDeepEquals(this.formatType, other.formatType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - compression, - flattening, + return Utils.enhancedHash( + additionalProperties, compression, flattening, formatType); } @@ -180,17 +186,18 @@ public String toString() { "flattening", flattening, "formatType", formatType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional compression = Optional.empty(); - + private Optional flattening; - + private Optional formatType; - + private Builder() { // force use of static builder() method } @@ -211,8 +218,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ public Builder compression(DestinationS3Compression compression) { Utils.checkNotNull(compression, "compression"); @@ -221,7 +230,8 @@ public Builder compression(DestinationS3Compression compression) { } /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ public Builder compression(Optional compression) { Utils.checkNotNull(compression, "compression"); @@ -229,6 +239,7 @@ public Builder compression(Optional compress return this; } + public Builder flattening(DestinationS3Flattening flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = Optional.ofNullable(flattening); @@ -241,6 +252,7 @@ public Builder flattening(Optional flattening return this; } + public Builder formatType(DestinationS3FormatType formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = Optional.ofNullable(formatType); @@ -252,7 +264,7 @@ public Builder formatType(Optional formatType this.formatType = formatType; return this; } - + public DestinationS3CSVCommaSeparatedValues build() { if (flattening == null) { flattening = _SINGLETON_VALUE_Flattening.value(); @@ -260,13 +272,13 @@ public DestinationS3CSVCommaSeparatedValues build() { if (formatType == null) { formatType = _SINGLETON_VALUE_FormatType.value(); } + return new DestinationS3CSVCommaSeparatedValues( - compression, - flattening, - formatType) + compression, flattening, formatType) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Flattening = new LazySingletonValue<>( "flattening", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java index ec9d33779..488cc38c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Codec.java @@ -14,7 +14,7 @@ public enum DestinationS3Codec { @JsonValue private final String value; - private DestinationS3Codec(String value) { + DestinationS3Codec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Compression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Compression.java index 258ba2d1b..280f09f5f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Compression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Compression.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationS3Compression * - *

    Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + *

    Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ @JsonDeserialize(using = DestinationS3Compression._Deserializer.class) public class DestinationS3Compression { @@ -72,12 +72,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationS3Compression other = (DestinationS3Compression) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionCodec.java index 150bf2fbe..8bc8d9c47 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionCodec.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationS3CompressionCodec @@ -96,12 +95,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationS3CompressionCodec other = (DestinationS3CompressionCodec) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java index 562fbc2ae..52cf2d299 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3CompressionType.java @@ -14,7 +14,7 @@ public enum DestinationS3CompressionType { @JsonValue private final String value; - private DestinationS3CompressionType(String value) { + DestinationS3CompressionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLake.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLake.java index 4be41da9d..69823345e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLake.java @@ -13,16 +13,15 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** * DestinationS3DataLake * - *

    Defines the configurations required to connect to an Iceberg catalog, including warehouse location, main branch name, and catalog type specifics. + *

    Defines the configurations required to connect to an Iceberg catalog, including warehouse location, + * main branch name, and catalog type specifics. */ public class DestinationS3DataLake { - /** * The AWS Access Key ID with permissions for S3 and Glue operations. */ @@ -36,11 +35,14 @@ public class DestinationS3DataLake { @JsonProperty("catalog_type") private CatalogType catalogType; + @JsonProperty("destinationType") private S3DataLake destinationType; /** - * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + * The primary or default branch name in the catalog. Most query engines will use "main" by default. + * See Iceberg documentation for more + * information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("main_branch_name") @@ -53,13 +55,16 @@ public class DestinationS3DataLake { private String s3BucketName; /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ @JsonProperty("s3_bucket_region") private DestinationS3DataLakeS3BucketRegion s3BucketRegion; /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("s3_endpoint") @@ -73,7 +78,9 @@ public class DestinationS3DataLake { private Optional secretAccessKey; /** - * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such as "s3://" for Amazon S3). + * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket + * name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such + * as "s3://" for Amazon S3). */ @JsonProperty("warehouse_location") private String warehouseLocation; @@ -112,7 +119,9 @@ public DestinationS3DataLake( String s3BucketName, DestinationS3DataLakeS3BucketRegion s3BucketRegion, String warehouseLocation) { - this(Optional.empty(), catalogType, Optional.empty(), s3BucketName, s3BucketRegion, Optional.empty(), Optional.empty(), warehouseLocation); + this(Optional.empty(), catalogType, Optional.empty(), + s3BucketName, s3BucketRegion, Optional.empty(), + Optional.empty(), warehouseLocation); } /** @@ -137,7 +146,9 @@ public S3DataLake destinationType() { } /** - * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + * The primary or default branch name in the catalog. Most query engines will use "main" by default. + * See Iceberg documentation for more + * information. */ @JsonIgnore public Optional mainBranchName() { @@ -153,7 +164,9 @@ public String s3BucketName() { } /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ @JsonIgnore public DestinationS3DataLakeS3BucketRegion s3BucketRegion() { @@ -161,7 +174,8 @@ public DestinationS3DataLakeS3BucketRegion s3BucketRegion() { } /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ @JsonIgnore public Optional s3Endpoint() { @@ -177,16 +191,19 @@ public Optional secretAccessKey() { } /** - * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such as "s3://" for Amazon S3). + * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket + * name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such + * as "s3://" for Amazon S3). */ @JsonIgnore public String warehouseLocation() { return warehouseLocation; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The AWS Access Key ID with permissions for S3 and Glue operations. @@ -197,6 +214,7 @@ public DestinationS3DataLake withAccessKeyId(String accessKeyId) { return this; } + /** * The AWS Access Key ID with permissions for S3 and Glue operations. */ @@ -216,7 +234,9 @@ public DestinationS3DataLake withCatalogType(CatalogType catalogType) { } /** - * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + * The primary or default branch name in the catalog. Most query engines will use "main" by default. + * See Iceberg documentation for more + * information. */ public DestinationS3DataLake withMainBranchName(String mainBranchName) { Utils.checkNotNull(mainBranchName, "mainBranchName"); @@ -224,8 +244,11 @@ public DestinationS3DataLake withMainBranchName(String mainBranchName) { return this; } + /** - * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + * The primary or default branch name in the catalog. Most query engines will use "main" by default. + * See Iceberg documentation for more + * information. */ public DestinationS3DataLake withMainBranchName(Optional mainBranchName) { Utils.checkNotNull(mainBranchName, "mainBranchName"); @@ -243,7 +266,9 @@ public DestinationS3DataLake withS3BucketName(String s3BucketName) { } /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ public DestinationS3DataLake withS3BucketRegion(DestinationS3DataLakeS3BucketRegion s3BucketRegion) { Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); @@ -252,7 +277,8 @@ public DestinationS3DataLake withS3BucketRegion(DestinationS3DataLakeS3BucketReg } /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ public DestinationS3DataLake withS3Endpoint(String s3Endpoint) { Utils.checkNotNull(s3Endpoint, "s3Endpoint"); @@ -260,8 +286,10 @@ public DestinationS3DataLake withS3Endpoint(String s3Endpoint) { return this; } + /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ public DestinationS3DataLake withS3Endpoint(Optional s3Endpoint) { Utils.checkNotNull(s3Endpoint, "s3Endpoint"); @@ -278,6 +306,7 @@ public DestinationS3DataLake withSecretAccessKey(String secretAccessKey) { return this; } + /** * The AWS Secret Access Key paired with the Access Key ID for AWS authentication. */ @@ -288,7 +317,9 @@ public DestinationS3DataLake withSecretAccessKey(Optional secretAccessKe } /** - * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such as "s3://" for Amazon S3). + * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket + * name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such + * as "s3://" for Amazon S3). */ public DestinationS3DataLake withWarehouseLocation(String warehouseLocation) { Utils.checkNotNull(warehouseLocation, "warehouseLocation"); @@ -296,7 +327,6 @@ public DestinationS3DataLake withWarehouseLocation(String warehouseLocation) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -307,29 +337,23 @@ public boolean equals(java.lang.Object o) { } DestinationS3DataLake other = (DestinationS3DataLake) o; return - Objects.deepEquals(this.accessKeyId, other.accessKeyId) && - Objects.deepEquals(this.catalogType, other.catalogType) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.mainBranchName, other.mainBranchName) && - Objects.deepEquals(this.s3BucketName, other.s3BucketName) && - Objects.deepEquals(this.s3BucketRegion, other.s3BucketRegion) && - Objects.deepEquals(this.s3Endpoint, other.s3Endpoint) && - Objects.deepEquals(this.secretAccessKey, other.secretAccessKey) && - Objects.deepEquals(this.warehouseLocation, other.warehouseLocation); + Utils.enhancedDeepEquals(this.accessKeyId, other.accessKeyId) && + Utils.enhancedDeepEquals(this.catalogType, other.catalogType) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.mainBranchName, other.mainBranchName) && + Utils.enhancedDeepEquals(this.s3BucketName, other.s3BucketName) && + Utils.enhancedDeepEquals(this.s3BucketRegion, other.s3BucketRegion) && + Utils.enhancedDeepEquals(this.s3Endpoint, other.s3Endpoint) && + Utils.enhancedDeepEquals(this.secretAccessKey, other.secretAccessKey) && + Utils.enhancedDeepEquals(this.warehouseLocation, other.warehouseLocation); } @Override public int hashCode() { - return Objects.hash( - accessKeyId, - catalogType, - destinationType, - mainBranchName, - s3BucketName, - s3BucketRegion, - s3Endpoint, - secretAccessKey, - warehouseLocation); + return Utils.enhancedHash( + accessKeyId, catalogType, destinationType, + mainBranchName, s3BucketName, s3BucketRegion, + s3Endpoint, secretAccessKey, warehouseLocation); } @Override @@ -345,29 +369,31 @@ public String toString() { "secretAccessKey", secretAccessKey, "warehouseLocation", warehouseLocation); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accessKeyId = Optional.empty(); - + private CatalogType catalogType; - + private Optional mainBranchName; - + private String s3BucketName; - + private DestinationS3DataLakeS3BucketRegion s3BucketRegion; - + private Optional s3Endpoint = Optional.empty(); - + private Optional secretAccessKey = Optional.empty(); - + private String warehouseLocation; - + private Builder() { // force use of static builder() method } + /** * The AWS Access Key ID with permissions for S3 and Glue operations. */ @@ -386,6 +412,7 @@ public Builder accessKeyId(Optional accessKeyId) { return this; } + /** * Specifies the type of Iceberg catalog (e.g., NESSIE, GLUE, REST) and its associated configuration. */ @@ -395,8 +422,11 @@ public Builder catalogType(CatalogType catalogType) { return this; } + /** - * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + * The primary or default branch name in the catalog. Most query engines will use "main" by default. + * See Iceberg documentation for more + * information. */ public Builder mainBranchName(String mainBranchName) { Utils.checkNotNull(mainBranchName, "mainBranchName"); @@ -405,7 +435,9 @@ public Builder mainBranchName(String mainBranchName) { } /** - * The primary or default branch name in the catalog. Most query engines will use "main" by default. See <a href="https://iceberg.apache.org/docs/latest/branching/">Iceberg documentation</a> for more information. + * The primary or default branch name in the catalog. Most query engines will use "main" by default. + * See Iceberg documentation for more + * information. */ public Builder mainBranchName(Optional mainBranchName) { Utils.checkNotNull(mainBranchName, "mainBranchName"); @@ -413,6 +445,7 @@ public Builder mainBranchName(Optional mainBranchName) { return this; } + /** * The name of the S3 bucket that will host the Iceberg data. */ @@ -422,8 +455,11 @@ public Builder s3BucketName(String s3BucketName) { return this; } + /** - * The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + * The region of the S3 bucket. See here + * for all region codes. */ public Builder s3BucketRegion(DestinationS3DataLakeS3BucketRegion s3BucketRegion) { Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); @@ -431,8 +467,10 @@ public Builder s3BucketRegion(DestinationS3DataLakeS3BucketRegion s3BucketRegion return this; } + /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ public Builder s3Endpoint(String s3Endpoint) { Utils.checkNotNull(s3Endpoint, "s3Endpoint"); @@ -441,7 +479,8 @@ public Builder s3Endpoint(String s3Endpoint) { } /** - * Your S3 endpoint url. Read more <a href="https://docs.aws.amazon.com/general/latest/gr/s3.html#:~:text=Service%20endpoints-,Amazon%20S3%20endpoints,-When%20you%20use">here</a> + * Your S3 endpoint url. Read more here */ public Builder s3Endpoint(Optional s3Endpoint) { Utils.checkNotNull(s3Endpoint, "s3Endpoint"); @@ -449,6 +488,7 @@ public Builder s3Endpoint(Optional s3Endpoint) { return this; } + /** * The AWS Secret Access Key paired with the Access Key ID for AWS authentication. */ @@ -467,30 +507,30 @@ public Builder secretAccessKey(Optional secretAccessKey) { return this; } + /** - * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such as "s3://" for Amazon S3). + * The root location of the data warehouse used by the Iceberg catalog. Typically includes a bucket + * name and path within that bucket. For AWS Glue and Nessie, must include the storage protocol (such + * as "s3://" for Amazon S3). */ public Builder warehouseLocation(String warehouseLocation) { Utils.checkNotNull(warehouseLocation, "warehouseLocation"); this.warehouseLocation = warehouseLocation; return this; } - + public DestinationS3DataLake build() { if (mainBranchName == null) { mainBranchName = _SINGLETON_VALUE_MainBranchName.value(); } + return new DestinationS3DataLake( - accessKeyId, - catalogType, - mainBranchName, - s3BucketName, - s3BucketRegion, - s3Endpoint, - secretAccessKey, - warehouseLocation); + accessKeyId, catalogType, mainBranchName, + s3BucketName, s3BucketRegion, s3Endpoint, + secretAccessKey, warehouseLocation); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeCatalogType.java index b57cdd955..eeddffb46 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeCatalogType.java @@ -14,7 +14,7 @@ public enum DestinationS3DataLakeCatalogType { @JsonValue private final String value; - private DestinationS3DataLakeCatalogType(String value) { + DestinationS3DataLakeCatalogType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeS3BucketRegion.java index 6f6a764e2..ef15f2d3c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeS3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeS3BucketRegion.java @@ -11,7 +11,9 @@ /** * DestinationS3DataLakeS3BucketRegion * - *

    The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + *

    The region of the S3 bucket. See here + * for all region codes. */ public enum DestinationS3DataLakeS3BucketRegion { UNKNOWN(""), @@ -52,7 +54,7 @@ public enum DestinationS3DataLakeS3BucketRegion { @JsonValue private final String value; - private DestinationS3DataLakeS3BucketRegion(String value) { + DestinationS3DataLakeS3BucketRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogType.java index ec3d62d90..8213b5adc 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogType.java @@ -14,7 +14,7 @@ public enum DestinationS3DataLakeSchemasCatalogType { @JsonValue private final String value; - private DestinationS3DataLakeSchemasCatalogType(String value) { + DestinationS3DataLakeSchemasCatalogType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.java index 445801c84..2caa8b8a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3DataLakeSchemasCatalogTypeCatalogType.java @@ -14,7 +14,7 @@ public enum DestinationS3DataLakeSchemasCatalogTypeCatalogType { @JsonValue private final String value; - private DestinationS3DataLakeSchemasCatalogTypeCatalogType(String value) { + DestinationS3DataLakeSchemasCatalogTypeCatalogType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Deflate.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Deflate.java index b36d2fe8f..d714deaf2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Deflate.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Deflate.java @@ -20,18 +20,20 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3Deflate { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional codec; + @JsonProperty("compression_level") private long compressionLevel; @@ -67,9 +69,10 @@ public long compressionLevel() { return compressionLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3Deflate withAdditionalProperty(String key, Object value) { @@ -77,8 +80,7 @@ public DestinationS3Deflate withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3Deflate withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -91,6 +93,7 @@ public DestinationS3Deflate withCodec(DestinationS3SchemasCodec codec) { return this; } + public DestinationS3Deflate withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; @@ -103,7 +106,6 @@ public DestinationS3Deflate withCompressionLevel(long compressionLevel) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -114,17 +116,15 @@ public boolean equals(java.lang.Object o) { } DestinationS3Deflate other = (DestinationS3Deflate) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.codec, other.codec) && - Objects.deepEquals(this.compressionLevel, other.compressionLevel); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.codec, other.codec) && + Utils.enhancedDeepEquals(this.compressionLevel, other.compressionLevel); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - codec, - compressionLevel); + return Utils.enhancedHash( + additionalProperties, codec, compressionLevel); } @Override @@ -134,15 +134,16 @@ public String toString() { "codec", codec, "compressionLevel", compressionLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional codec; - + private Long compressionLevel; - + private Builder() { // force use of static builder() method } @@ -163,6 +164,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder codec(DestinationS3SchemasCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -175,22 +177,24 @@ public Builder codec(Optional codec) { return this; } + public Builder compressionLevel(long compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); this.compressionLevel = compressionLevel; return this; } - + public DestinationS3Deflate build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); } + return new DestinationS3Deflate( - codec, - compressionLevel) + codec, compressionLevel) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java index cc7ab5557..a7a42f005 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Flattening.java @@ -15,7 +15,7 @@ public enum DestinationS3Flattening { @JsonValue private final String value; - private DestinationS3Flattening(String value) { + DestinationS3Flattening(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java index b962a9070..431256363 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3FormatType.java @@ -14,7 +14,7 @@ public enum DestinationS3FormatType { @JsonValue private final String value; - private DestinationS3FormatType(String value) { + DestinationS3FormatType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3GZIP.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3GZIP.java index 8d7a74418..7b5a6a0ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3GZIP.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3GZIP.java @@ -19,14 +19,15 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3GZIP { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_type") private Optional compressionType; @@ -54,9 +55,10 @@ public Optional compressionType() { return (Optional) compressionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3GZIP withAdditionalProperty(String key, Object value) { @@ -64,8 +66,7 @@ public DestinationS3GZIP withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3GZIP withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -78,13 +79,13 @@ public DestinationS3GZIP withCompressionType(DestinationS3SchemasCompressionType return this; } + public DestinationS3GZIP withCompressionType(Optional compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = compressionType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +96,14 @@ public boolean equals(java.lang.Object o) { } DestinationS3GZIP other = (DestinationS3GZIP) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.compressionType, other.compressionType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - compressionType); + return Utils.enhancedHash( + additionalProperties, compressionType); } @Override @@ -112,13 +112,14 @@ public String toString() { "additionalProperties", additionalProperties, "compressionType", compressionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional compressionType; - + private Builder() { // force use of static builder() method } @@ -139,6 +140,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder compressionType(DestinationS3SchemasCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -150,16 +152,18 @@ public Builder compressionType(Optional> _SINGLETON_VALUE_CompressionType = new LazySingletonValue<>( "compression_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.java index 21b59eb30..f7d4a4032 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3JSONLinesNewlineDelimitedJSON.java @@ -19,25 +19,28 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3JSONLinesNewlineDelimitedJSON { @JsonIgnore private Map additionalProperties; /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression") private Optional compression; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("flattening") private Optional flattening; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; @@ -66,7 +69,8 @@ public Map additionalProperties() { } /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ @SuppressWarnings("unchecked") @JsonIgnore @@ -86,9 +90,10 @@ public Optional formatType() { return (Optional) formatType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3JSONLinesNewlineDelimitedJSON withAdditionalProperty(String key, Object value) { @@ -96,8 +101,7 @@ public DestinationS3JSONLinesNewlineDelimitedJSON withAdditionalProperty(String Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3JSONLinesNewlineDelimitedJSON withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -105,7 +109,8 @@ public DestinationS3JSONLinesNewlineDelimitedJSON withAdditionalProperties(Map compression) { Utils.checkNotNull(compression, "compression"); @@ -128,6 +135,7 @@ public DestinationS3JSONLinesNewlineDelimitedJSON withFlattening(DestinationS3Sc return this; } + public DestinationS3JSONLinesNewlineDelimitedJSON withFlattening(Optional flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = flattening; @@ -140,13 +148,13 @@ public DestinationS3JSONLinesNewlineDelimitedJSON withFormatType(DestinationS3Sc return this; } + public DestinationS3JSONLinesNewlineDelimitedJSON withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -157,18 +165,16 @@ public boolean equals(java.lang.Object o) { } DestinationS3JSONLinesNewlineDelimitedJSON other = (DestinationS3JSONLinesNewlineDelimitedJSON) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.compression, other.compression) && - Objects.deepEquals(this.flattening, other.flattening) && - Objects.deepEquals(this.formatType, other.formatType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.compression, other.compression) && + Utils.enhancedDeepEquals(this.flattening, other.flattening) && + Utils.enhancedDeepEquals(this.formatType, other.formatType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - compression, - flattening, + return Utils.enhancedHash( + additionalProperties, compression, flattening, formatType); } @@ -180,17 +186,18 @@ public String toString() { "flattening", flattening, "formatType", formatType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional compression = Optional.empty(); - + private Optional flattening; - + private Optional formatType; - + private Builder() { // force use of static builder() method } @@ -211,8 +218,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ public Builder compression(DestinationS3SchemasCompression compression) { Utils.checkNotNull(compression, "compression"); @@ -221,7 +230,8 @@ public Builder compression(DestinationS3SchemasCompression compression) { } /** - * Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + * Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ public Builder compression(Optional compression) { Utils.checkNotNull(compression, "compression"); @@ -229,6 +239,7 @@ public Builder compression(Optional c return this; } + public Builder flattening(DestinationS3SchemasFlattening flattening) { Utils.checkNotNull(flattening, "flattening"); this.flattening = Optional.ofNullable(flattening); @@ -241,6 +252,7 @@ public Builder flattening(Optional fla return this; } + public Builder formatType(DestinationS3SchemasFormatType formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = Optional.ofNullable(formatType); @@ -252,7 +264,7 @@ public Builder formatType(Optional for this.formatType = formatType; return this; } - + public DestinationS3JSONLinesNewlineDelimitedJSON build() { if (flattening == null) { flattening = _SINGLETON_VALUE_Flattening.value(); @@ -260,13 +272,13 @@ public DestinationS3JSONLinesNewlineDelimitedJSON build() { if (formatType == null) { formatType = _SINGLETON_VALUE_FormatType.value(); } + return new DestinationS3JSONLinesNewlineDelimitedJSON( - compression, - flattening, - formatType) + compression, flattening, formatType) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Flattening = new LazySingletonValue<>( "flattening", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3NoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3NoCompression.java index 01a1d7c88..d0b1dcb2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3NoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3NoCompression.java @@ -19,14 +19,15 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3NoCompression { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_type") private Optional compressionType; @@ -54,9 +55,10 @@ public Optional compressionType() { return (Optional) compressionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3NoCompression withAdditionalProperty(String key, Object value) { @@ -64,8 +66,7 @@ public DestinationS3NoCompression withAdditionalProperty(String key, Object valu Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3NoCompression withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -78,13 +79,13 @@ public DestinationS3NoCompression withCompressionType(DestinationS3CompressionTy return this; } + public DestinationS3NoCompression withCompressionType(Optional compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = compressionType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +96,14 @@ public boolean equals(java.lang.Object o) { } DestinationS3NoCompression other = (DestinationS3NoCompression) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.compressionType, other.compressionType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - compressionType); + return Utils.enhancedHash( + additionalProperties, compressionType); } @Override @@ -112,13 +112,14 @@ public String toString() { "additionalProperties", additionalProperties, "compressionType", compressionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional compressionType; - + private Builder() { // force use of static builder() method } @@ -139,6 +140,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder compressionType(DestinationS3CompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -150,16 +152,18 @@ public Builder compressionType(Optional this.compressionType = compressionType; return this; } - + public DestinationS3NoCompression build() { if (compressionType == null) { compressionType = _SINGLETON_VALUE_CompressionType.value(); } + return new DestinationS3NoCompression( compressionType) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_CompressionType = new LazySingletonValue<>( "compression_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3OutputFormat.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3OutputFormat.java index e9482122c..85592e1c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3OutputFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3OutputFormat.java @@ -14,12 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationS3OutputFormat * - *

    Format of the data output. See <a href="https://docs.airbyte.com/integrations/destinations/s3/#supported-output-schema">here</a> for more details + *

    Format of the data output. See here for + * more details */ @JsonDeserialize(using = DestinationS3OutputFormat._Deserializer.class) public class DestinationS3OutputFormat { @@ -84,12 +85,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationS3OutputFormat other = (DestinationS3OutputFormat) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3ParquetColumnarStorage.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3ParquetColumnarStorage.java index b14da8b61..58f4a367a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3ParquetColumnarStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3ParquetColumnarStorage.java @@ -21,16 +21,19 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3ParquetColumnarStorage { @JsonIgnore private Map additionalProperties; /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("block_size_mb") @@ -51,25 +54,31 @@ public class DestinationS3ParquetColumnarStorage { private Optional dictionaryEncoding; /** - * There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB. + * There is one dictionary page per column per row group when dictionary encoding is used. The + * dictionary page size works like the page size but for dictionary. Default: 1024 KB. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("dictionary_page_size_kb") private Optional dictionaryPageSizeKb; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; /** - * Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB. + * Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. + * Default: 8 MB. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("max_padding_size_mb") private Optional maxPaddingSizeMb; /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("page_size_kb") @@ -102,7 +111,9 @@ public DestinationS3ParquetColumnarStorage( } public DestinationS3ParquetColumnarStorage() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonAnyGetter @@ -111,7 +122,10 @@ public Map additionalProperties() { } /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ @JsonIgnore public Optional blockSizeMb() { @@ -136,7 +150,8 @@ public Optional dictionaryEncoding() { } /** - * There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB. + * There is one dictionary page per column per row group when dictionary encoding is used. The + * dictionary page size works like the page size but for dictionary. Default: 1024 KB. */ @JsonIgnore public Optional dictionaryPageSizeKb() { @@ -150,7 +165,8 @@ public Optional formatType() { } /** - * Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. Default: 8 MB. + * Maximum size allowed as padding to align row groups. This is also the minimum size of a row group. + * Default: 8 MB. */ @JsonIgnore public Optional maxPaddingSizeMb() { @@ -158,16 +174,20 @@ public Optional maxPaddingSizeMb() { } /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ @JsonIgnore public Optional pageSizeKb() { return pageSizeKb; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3ParquetColumnarStorage withAdditionalProperty(String key, Object value) { @@ -175,8 +195,7 @@ public DestinationS3ParquetColumnarStorage withAdditionalProperty(String key, Ob Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3ParquetColumnarStorage withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -184,7 +203,10 @@ public DestinationS3ParquetColumnarStorage withAdditionalProperties(MapDefault: 128 MB. */ public DestinationS3ParquetColumnarStorage withBlockSizeMb(long blockSizeMb) { Utils.checkNotNull(blockSizeMb, "blockSizeMb"); @@ -192,8 +214,12 @@ public DestinationS3ParquetColumnarStorage withBlockSizeMb(long blockSizeMb) { return this; } + /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ public DestinationS3ParquetColumnarStorage withBlockSizeMb(Optional blockSizeMb) { Utils.checkNotNull(blockSizeMb, "blockSizeMb"); @@ -210,6 +236,7 @@ public DestinationS3ParquetColumnarStorage withCompressionCodec(DestinationS3Sch return this; } + /** * The compression algorithm used to compress data pages. */ @@ -228,6 +255,7 @@ public DestinationS3ParquetColumnarStorage withDictionaryEncoding(boolean dictio return this; } + /** * Default: true. */ @@ -238,7 +266,8 @@ public DestinationS3ParquetColumnarStorage withDictionaryEncoding(Optional dictionaryPageSizeKb) { Utils.checkNotNull(dictionaryPageSizeKb, "dictionaryPageSizeKb"); @@ -261,6 +292,7 @@ public DestinationS3ParquetColumnarStorage withFormatType(DestinationS3SchemasFo return this; } + public DestinationS3ParquetColumnarStorage withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; @@ -268,7 +300,8 @@ public DestinationS3ParquetColumnarStorage withFormatType(Optional maxPaddingSizeMb) { Utils.checkNotNull(maxPaddingSizeMb, "maxPaddingSizeMb"); @@ -286,7 +321,10 @@ public DestinationS3ParquetColumnarStorage withMaxPaddingSizeMb(Optional m } /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ public DestinationS3ParquetColumnarStorage withPageSizeKb(long pageSizeKb) { Utils.checkNotNull(pageSizeKb, "pageSizeKb"); @@ -294,8 +332,12 @@ public DestinationS3ParquetColumnarStorage withPageSizeKb(long pageSizeKb) { return this; } + /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ public DestinationS3ParquetColumnarStorage withPageSizeKb(Optional pageSizeKb) { Utils.checkNotNull(pageSizeKb, "pageSizeKb"); @@ -303,7 +345,6 @@ public DestinationS3ParquetColumnarStorage withPageSizeKb(Optional pageSiz return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -314,27 +355,22 @@ public boolean equals(java.lang.Object o) { } DestinationS3ParquetColumnarStorage other = (DestinationS3ParquetColumnarStorage) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.blockSizeMb, other.blockSizeMb) && - Objects.deepEquals(this.compressionCodec, other.compressionCodec) && - Objects.deepEquals(this.dictionaryEncoding, other.dictionaryEncoding) && - Objects.deepEquals(this.dictionaryPageSizeKb, other.dictionaryPageSizeKb) && - Objects.deepEquals(this.formatType, other.formatType) && - Objects.deepEquals(this.maxPaddingSizeMb, other.maxPaddingSizeMb) && - Objects.deepEquals(this.pageSizeKb, other.pageSizeKb); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.blockSizeMb, other.blockSizeMb) && + Utils.enhancedDeepEquals(this.compressionCodec, other.compressionCodec) && + Utils.enhancedDeepEquals(this.dictionaryEncoding, other.dictionaryEncoding) && + Utils.enhancedDeepEquals(this.dictionaryPageSizeKb, other.dictionaryPageSizeKb) && + Utils.enhancedDeepEquals(this.formatType, other.formatType) && + Utils.enhancedDeepEquals(this.maxPaddingSizeMb, other.maxPaddingSizeMb) && + Utils.enhancedDeepEquals(this.pageSizeKb, other.pageSizeKb); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - blockSizeMb, - compressionCodec, - dictionaryEncoding, - dictionaryPageSizeKb, - formatType, - maxPaddingSizeMb, - pageSizeKb); + return Utils.enhancedHash( + additionalProperties, blockSizeMb, compressionCodec, + dictionaryEncoding, dictionaryPageSizeKb, formatType, + maxPaddingSizeMb, pageSizeKb); } @Override @@ -349,25 +385,26 @@ public String toString() { "maxPaddingSizeMb", maxPaddingSizeMb, "pageSizeKb", pageSizeKb); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional blockSizeMb; - + private Optional compressionCodec; - + private Optional dictionaryEncoding = Optional.empty(); - + private Optional dictionaryPageSizeKb; - + private Optional formatType; - + private Optional maxPaddingSizeMb; - + private Optional pageSizeKb; - + private Builder() { // force use of static builder() method } @@ -388,8 +425,12 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ public Builder blockSizeMb(long blockSizeMb) { Utils.checkNotNull(blockSizeMb, "blockSizeMb"); @@ -398,7 +439,10 @@ public Builder blockSizeMb(long blockSizeMb) { } /** - * This is the size of a row group being buffered in memory. It limits the memory usage when writing. Larger values will improve the IO when reading, but consume more memory when writing. Default: 128 MB. + * This is the size of a row group being buffered in memory. It limits the memory usage when writing. + * Larger values will improve the IO when reading, but consume more memory when writing. + * + *

    Default: 128 MB. */ public Builder blockSizeMb(Optional blockSizeMb) { Utils.checkNotNull(blockSizeMb, "blockSizeMb"); @@ -406,6 +450,7 @@ public Builder blockSizeMb(Optional blockSizeMb) { return this; } + /** * The compression algorithm used to compress data pages. */ @@ -424,6 +469,7 @@ public Builder compressionCodec(Optional dictionaryEncoding) { return this; } + /** - * There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB. + * There is one dictionary page per column per row group when dictionary encoding is used. The + * dictionary page size works like the page size but for dictionary. Default: 1024 KB. */ public Builder dictionaryPageSizeKb(long dictionaryPageSizeKb) { Utils.checkNotNull(dictionaryPageSizeKb, "dictionaryPageSizeKb"); @@ -452,7 +500,8 @@ public Builder dictionaryPageSizeKb(long dictionaryPageSizeKb) { } /** - * There is one dictionary page per column per row group when dictionary encoding is used. The dictionary page size works like the page size but for dictionary. Default: 1024 KB. + * There is one dictionary page per column per row group when dictionary encoding is used. The + * dictionary page size works like the page size but for dictionary. Default: 1024 KB. */ public Builder dictionaryPageSizeKb(Optional dictionaryPageSizeKb) { Utils.checkNotNull(dictionaryPageSizeKb, "dictionaryPageSizeKb"); @@ -460,6 +509,7 @@ public Builder dictionaryPageSizeKb(Optional dictionaryPageSizeKb) { return this; } + public Builder formatType(DestinationS3SchemasFormatOutputFormatFormatType formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = Optional.ofNullable(formatType); @@ -472,8 +522,10 @@ public Builder formatType(Optional maxPaddingSizeMb) { Utils.checkNotNull(maxPaddingSizeMb, "maxPaddingSizeMb"); @@ -490,8 +543,12 @@ public Builder maxPaddingSizeMb(Optional maxPaddingSizeMb) { return this; } + /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ public Builder pageSizeKb(long pageSizeKb) { Utils.checkNotNull(pageSizeKb, "pageSizeKb"); @@ -500,14 +557,17 @@ public Builder pageSizeKb(long pageSizeKb) { } /** - * The page size is for compression. A block is composed of pages. A page is the smallest unit that must be read fully to access a single record. If this value is too small, the compression will deteriorate. Default: 1024 KB. + * The page size is for compression. A block is composed of pages. A page is the smallest unit that + * must be read fully to access a single record. + * + *

    If this value is too small, the compression will deteriorate. Default: 1024 KB. */ public Builder pageSizeKb(Optional pageSizeKb) { Utils.checkNotNull(pageSizeKb, "pageSizeKb"); this.pageSizeKb = pageSizeKb; return this; } - + public DestinationS3ParquetColumnarStorage build() { if (blockSizeMb == null) { blockSizeMb = _SINGLETON_VALUE_BlockSizeMb.value(); @@ -527,17 +587,15 @@ public DestinationS3ParquetColumnarStorage build() { if (pageSizeKb == null) { pageSizeKb = _SINGLETON_VALUE_PageSizeKb.value(); } + return new DestinationS3ParquetColumnarStorage( - blockSizeMb, - compressionCodec, - dictionaryEncoding, - dictionaryPageSizeKb, - formatType, - maxPaddingSizeMb, + blockSizeMb, compressionCodec, dictionaryEncoding, + dictionaryPageSizeKb, formatType, maxPaddingSizeMb, pageSizeKb) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_BlockSizeMb = new LazySingletonValue<>( "block_size_mb", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java index 34829bfb1..a56cf5510 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3S3BucketRegion.java @@ -11,7 +11,9 @@ /** * DestinationS3S3BucketRegion * - *

    The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + *

    The region of the S3 bucket. See here + * for all region codes. */ public enum DestinationS3S3BucketRegion { UNKNOWN(""), @@ -52,7 +54,7 @@ public enum DestinationS3S3BucketRegion { @JsonValue private final String value; - private DestinationS3S3BucketRegion(String value) { + DestinationS3S3BucketRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCodec.java index 3d4d80f4d..365419741 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCodec.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasCodec { @JsonValue private final String value; - private DestinationS3SchemasCodec(String value) { + DestinationS3SchemasCodec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompression.java index 46b57f2fe..aa4a3c32a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompression.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationS3SchemasCompression * - *

    Whether the output files should be compressed. If compression is selected, the output filename will have an extra extension (GZIP: ".jsonl.gz"). + *

    Whether the output files should be compressed. If compression is selected, the output filename will + * have an extra extension (GZIP: ".jsonl.gz"). */ @JsonDeserialize(using = DestinationS3SchemasCompression._Deserializer.class) public class DestinationS3SchemasCompression { @@ -72,12 +72,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationS3SchemasCompression other = (DestinationS3SchemasCompression) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java index 3caef4c27..aeee48938 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionCodec.java @@ -25,7 +25,7 @@ public enum DestinationS3SchemasCompressionCodec { @JsonValue private final String value; - private DestinationS3SchemasCompressionCodec(String value) { + DestinationS3SchemasCompressionCodec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java index a30c3c107..ec7c34b2e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasCompressionType.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasCompressionType { @JsonValue private final String value; - private DestinationS3SchemasCompressionType(String value) { + DestinationS3SchemasCompressionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFlattening.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFlattening.java index ed29243be..4cc177c98 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFlattening.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFlattening.java @@ -15,7 +15,7 @@ public enum DestinationS3SchemasFlattening { @JsonValue private final String value; - private DestinationS3SchemasFlattening(String value) { + DestinationS3SchemasFlattening(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java index 2fbc58ae8..2c8657726 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCodec.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasFormatCodec { @JsonValue private final String value; - private DestinationS3SchemasFormatCodec(String value) { + DestinationS3SchemasFormatCodec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java index 8b29fdff2..9f03674e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatCompressionType.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasFormatCompressionType { @JsonValue private final String value; - private DestinationS3SchemasFormatCompressionType(String value) { + DestinationS3SchemasFormatCompressionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java index 8f2969d01..6ec1f2370 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatFormatType.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasFormatFormatType { @JsonValue private final String value; - private DestinationS3SchemasFormatFormatType(String value) { + DestinationS3SchemasFormatFormatType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatNoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatNoCompression.java index 2b889c5f8..951e120b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatNoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatNoCompression.java @@ -19,14 +19,15 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3SchemasFormatNoCompression { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional codec; @@ -54,9 +55,10 @@ public Optional codec() { return (Optional) codec; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3SchemasFormatNoCompression withAdditionalProperty(String key, Object value) { @@ -64,8 +66,7 @@ public DestinationS3SchemasFormatNoCompression withAdditionalProperty(String key Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3SchemasFormatNoCompression withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -78,13 +79,13 @@ public DestinationS3SchemasFormatNoCompression withCodec(DestinationS3Codec code return this; } + public DestinationS3SchemasFormatNoCompression withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +96,14 @@ public boolean equals(java.lang.Object o) { } DestinationS3SchemasFormatNoCompression other = (DestinationS3SchemasFormatNoCompression) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.codec, other.codec); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.codec, other.codec); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - codec); + return Utils.enhancedHash( + additionalProperties, codec); } @Override @@ -112,13 +112,14 @@ public String toString() { "additionalProperties", additionalProperties, "codec", codec); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional codec; - + private Builder() { // force use of static builder() method } @@ -139,6 +140,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder codec(DestinationS3Codec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -150,16 +152,18 @@ public Builder codec(Optional codec) { this.codec = codec; return this; } - + public DestinationS3SchemasFormatNoCompression build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); } + return new DestinationS3SchemasFormatNoCompression( codec) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java index 49763555e..7eb01468c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3Codec.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasFormatOutputFormat3Codec { @JsonValue private final String value; - private DestinationS3SchemasFormatOutputFormat3Codec(String value) { + DestinationS3SchemasFormatOutputFormat3Codec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.java index 0c6fad58d..8c5ad8220 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec { @JsonValue private final String value; - private DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec(String value) { + DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCodec.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCodec.java index 75bb8b3e2..b9e46c6d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCodec.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCodec.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasFormatOutputFormatCodec { @JsonValue private final String value; - private DestinationS3SchemasFormatOutputFormatCodec(String value) { + DestinationS3SchemasFormatOutputFormatCodec(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.java index 4f7e03706..7ba7de95d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatCompressionType.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasFormatOutputFormatCompressionType { @JsonValue private final String value; - private DestinationS3SchemasFormatOutputFormatCompressionType(String value) { + DestinationS3SchemasFormatOutputFormatCompressionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatFormatType.java index a9eb782d2..e825cbfb7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatOutputFormatFormatType.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasFormatOutputFormatFormatType { @JsonValue private final String value; - private DestinationS3SchemasFormatOutputFormatFormatType(String value) { + DestinationS3SchemasFormatOutputFormatFormatType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatType.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatType.java index 2f1895f8d..1efedcaf8 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasFormatType.java @@ -14,7 +14,7 @@ public enum DestinationS3SchemasFormatType { @JsonValue private final String value; - private DestinationS3SchemasFormatType(String value) { + DestinationS3SchemasFormatType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasGZIP.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasGZIP.java index da281693d..fdb105989 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasGZIP.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasGZIP.java @@ -19,14 +19,15 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3SchemasGZIP { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_type") private Optional compressionType; @@ -54,9 +55,10 @@ public Optional compressi return (Optional) compressionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3SchemasGZIP withAdditionalProperty(String key, Object value) { @@ -64,8 +66,7 @@ public DestinationS3SchemasGZIP withAdditionalProperty(String key, Object value) Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3SchemasGZIP withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -78,13 +79,13 @@ public DestinationS3SchemasGZIP withCompressionType(DestinationS3SchemasFormatOu return this; } + public DestinationS3SchemasGZIP withCompressionType(Optional compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = compressionType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +96,14 @@ public boolean equals(java.lang.Object o) { } DestinationS3SchemasGZIP other = (DestinationS3SchemasGZIP) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.compressionType, other.compressionType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - compressionType); + return Utils.enhancedHash( + additionalProperties, compressionType); } @Override @@ -112,13 +112,14 @@ public String toString() { "additionalProperties", additionalProperties, "compressionType", compressionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional compressionType; - + private Builder() { // force use of static builder() method } @@ -139,6 +140,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder compressionType(DestinationS3SchemasFormatOutputFormatCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -150,16 +152,18 @@ public Builder compressionType(Optional> _SINGLETON_VALUE_CompressionType = new LazySingletonValue<>( "compression_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasNoCompression.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasNoCompression.java index 05fe1c68c..28a318884 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasNoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3SchemasNoCompression.java @@ -19,14 +19,15 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3SchemasNoCompression { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_type") private Optional compressionType; @@ -54,9 +55,10 @@ public Optional compressionType() { return (Optional) compressionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3SchemasNoCompression withAdditionalProperty(String key, Object value) { @@ -64,8 +66,7 @@ public DestinationS3SchemasNoCompression withAdditionalProperty(String key, Obje Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3SchemasNoCompression withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -78,13 +79,13 @@ public DestinationS3SchemasNoCompression withCompressionType(DestinationS3Schema return this; } + public DestinationS3SchemasNoCompression withCompressionType(Optional compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = compressionType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +96,14 @@ public boolean equals(java.lang.Object o) { } DestinationS3SchemasNoCompression other = (DestinationS3SchemasNoCompression) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.compressionType, other.compressionType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - compressionType); + return Utils.enhancedHash( + additionalProperties, compressionType); } @Override @@ -112,13 +112,14 @@ public String toString() { "additionalProperties", additionalProperties, "compressionType", compressionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional compressionType; - + private Builder() { // force use of static builder() method } @@ -139,6 +140,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder compressionType(DestinationS3SchemasFormatCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -150,16 +152,18 @@ public Builder compressionType(Optional> _SINGLETON_VALUE_CompressionType = new LazySingletonValue<>( "compression_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Snappy.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Snappy.java index c18f6e8c1..92635b405 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Snappy.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Snappy.java @@ -19,14 +19,15 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3Snappy { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional codec; @@ -54,9 +55,10 @@ public Optional co return (Optional) codec; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3Snappy withAdditionalProperty(String key, Object value) { @@ -64,8 +66,7 @@ public DestinationS3Snappy withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3Snappy withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -78,13 +79,13 @@ public DestinationS3Snappy withCodec(DestinationS3SchemasFormatOutputFormat3Comp return this; } + public DestinationS3Snappy withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +96,14 @@ public boolean equals(java.lang.Object o) { } DestinationS3Snappy other = (DestinationS3Snappy) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.codec, other.codec); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.codec, other.codec); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - codec); + return Utils.enhancedHash( + additionalProperties, codec); } @Override @@ -112,13 +112,14 @@ public String toString() { "additionalProperties", additionalProperties, "codec", codec); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional codec; - + private Builder() { // force use of static builder() method } @@ -139,6 +140,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder codec(DestinationS3SchemasFormatOutputFormat3CompressionCodecCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -150,16 +152,18 @@ public Builder codec(Optional> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Xz.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Xz.java index 16d5df920..d75e26448 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Xz.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Xz.java @@ -20,18 +20,20 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3Xz { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional codec; + @JsonProperty("compression_level") private long compressionLevel; @@ -67,9 +69,10 @@ public long compressionLevel() { return compressionLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3Xz withAdditionalProperty(String key, Object value) { @@ -77,8 +80,7 @@ public DestinationS3Xz withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3Xz withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -91,6 +93,7 @@ public DestinationS3Xz withCodec(DestinationS3SchemasFormatOutputFormatCodec cod return this; } + public DestinationS3Xz withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; @@ -103,7 +106,6 @@ public DestinationS3Xz withCompressionLevel(long compressionLevel) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -114,17 +116,15 @@ public boolean equals(java.lang.Object o) { } DestinationS3Xz other = (DestinationS3Xz) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.codec, other.codec) && - Objects.deepEquals(this.compressionLevel, other.compressionLevel); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.codec, other.codec) && + Utils.enhancedDeepEquals(this.compressionLevel, other.compressionLevel); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - codec, - compressionLevel); + return Utils.enhancedHash( + additionalProperties, codec, compressionLevel); } @Override @@ -134,15 +134,16 @@ public String toString() { "codec", codec, "compressionLevel", compressionLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional codec; - + private Long compressionLevel; - + private Builder() { // force use of static builder() method } @@ -163,6 +164,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder codec(DestinationS3SchemasFormatOutputFormatCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -175,22 +177,24 @@ public Builder codec(Optional> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationS3Zstandard.java b/src/main/java/com/airbyte/api/models/shared/DestinationS3Zstandard.java index a5534d755..f1f631d47 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationS3Zstandard.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationS3Zstandard.java @@ -21,21 +21,24 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class DestinationS3Zstandard { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("codec") private Optional codec; + @JsonProperty("compression_level") private long compressionLevel; + @JsonProperty("include_checksum") private boolean includeChecksum; @@ -80,9 +83,10 @@ public boolean includeChecksum() { return includeChecksum; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public DestinationS3Zstandard withAdditionalProperty(String key, Object value) { @@ -90,8 +94,7 @@ public DestinationS3Zstandard withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public DestinationS3Zstandard withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -104,6 +107,7 @@ public DestinationS3Zstandard withCodec(DestinationS3SchemasFormatOutputFormat3C return this; } + public DestinationS3Zstandard withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; @@ -122,7 +126,6 @@ public DestinationS3Zstandard withIncludeChecksum(boolean includeChecksum) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -133,18 +136,16 @@ public boolean equals(java.lang.Object o) { } DestinationS3Zstandard other = (DestinationS3Zstandard) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.codec, other.codec) && - Objects.deepEquals(this.compressionLevel, other.compressionLevel) && - Objects.deepEquals(this.includeChecksum, other.includeChecksum); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.codec, other.codec) && + Utils.enhancedDeepEquals(this.compressionLevel, other.compressionLevel) && + Utils.enhancedDeepEquals(this.includeChecksum, other.includeChecksum); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - codec, - compressionLevel, + return Utils.enhancedHash( + additionalProperties, codec, compressionLevel, includeChecksum); } @@ -156,17 +157,18 @@ public String toString() { "compressionLevel", compressionLevel, "includeChecksum", includeChecksum); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional codec; - + private Long compressionLevel; - + private Boolean includeChecksum; - + private Builder() { // force use of static builder() method } @@ -187,6 +189,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder codec(DestinationS3SchemasFormatOutputFormat3Codec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -199,29 +202,31 @@ public Builder codec(Optional> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSalesforce.java b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforce.java new file mode 100644 index 000000000..f770d3f63 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforce.java @@ -0,0 +1,376 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class DestinationSalesforce { + + @JsonProperty("auth_type") + private AuthType authType; + + /** + * Enter your Salesforce developer application's Client ID. + */ + @JsonProperty("client_id") + private String clientId; + + /** + * Enter your Salesforce developer application's Client secret. + */ + @JsonProperty("client_secret") + private String clientSecret; + + + @JsonProperty("destinationType") + private DestinationSalesforceSalesforce destinationType; + + /** + * Toggle if you're using a Salesforce + * Sandbox. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("is_sandbox") + private Optional isSandbox; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("object_storage_config") + private Optional objectStorageConfig; + + /** + * Enter your application's Salesforce + * Refresh Token used for Airbyte to access your Salesforce account. + */ + @JsonProperty("refresh_token") + private String refreshToken; + + @JsonCreator + public DestinationSalesforce( + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("is_sandbox") Optional isSandbox, + @JsonProperty("object_storage_config") Optional objectStorageConfig, + @JsonProperty("refresh_token") String refreshToken) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(isSandbox, "isSandbox"); + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + Utils.checkNotNull(refreshToken, "refreshToken"); + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.clientId = clientId; + this.clientSecret = clientSecret; + this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.isSandbox = isSandbox; + this.objectStorageConfig = objectStorageConfig; + this.refreshToken = refreshToken; + } + + public DestinationSalesforce( + String clientId, + String clientSecret, + String refreshToken) { + this(clientId, clientSecret, Optional.empty(), + Optional.empty(), refreshToken); + } + + @JsonIgnore + public AuthType authType() { + return authType; + } + + /** + * Enter your Salesforce developer application's Client ID. + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * Enter your Salesforce developer application's Client secret. + */ + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + @JsonIgnore + public DestinationSalesforceSalesforce destinationType() { + return destinationType; + } + + /** + * Toggle if you're using a Salesforce + * Sandbox. + */ + @JsonIgnore + public Optional isSandbox() { + return isSandbox; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional objectStorageConfig() { + return (Optional) objectStorageConfig; + } + + /** + * Enter your application's Salesforce + * Refresh Token used for Airbyte to access your Salesforce account. + */ + @JsonIgnore + public String refreshToken() { + return refreshToken; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Enter your Salesforce developer application's Client ID. + */ + public DestinationSalesforce withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * Enter your Salesforce developer application's Client secret. + */ + public DestinationSalesforce withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * Toggle if you're using a Salesforce + * Sandbox. + */ + public DestinationSalesforce withIsSandbox(boolean isSandbox) { + Utils.checkNotNull(isSandbox, "isSandbox"); + this.isSandbox = Optional.ofNullable(isSandbox); + return this; + } + + + /** + * Toggle if you're using a Salesforce + * Sandbox. + */ + public DestinationSalesforce withIsSandbox(Optional isSandbox) { + Utils.checkNotNull(isSandbox, "isSandbox"); + this.isSandbox = isSandbox; + return this; + } + + public DestinationSalesforce withObjectStorageConfig(DestinationSalesforceObjectStorageConfiguration objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = Optional.ofNullable(objectStorageConfig); + return this; + } + + + public DestinationSalesforce withObjectStorageConfig(Optional objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = objectStorageConfig; + return this; + } + + /** + * Enter your application's Salesforce + * Refresh Token used for Airbyte to access your Salesforce account. + */ + public DestinationSalesforce withRefreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationSalesforce other = (DestinationSalesforce) o; + return + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.isSandbox, other.isSandbox) && + Utils.enhancedDeepEquals(this.objectStorageConfig, other.objectStorageConfig) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + authType, clientId, clientSecret, + destinationType, isSandbox, objectStorageConfig, + refreshToken); + } + + @Override + public String toString() { + return Utils.toString(DestinationSalesforce.class, + "authType", authType, + "clientId", clientId, + "clientSecret", clientSecret, + "destinationType", destinationType, + "isSandbox", isSandbox, + "objectStorageConfig", objectStorageConfig, + "refreshToken", refreshToken); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String clientId; + + private String clientSecret; + + private Optional isSandbox; + + private Optional objectStorageConfig = Optional.empty(); + + private String refreshToken; + + private Builder() { + // force use of static builder() method + } + + + /** + * Enter your Salesforce developer application's Client ID. + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + + /** + * Enter your Salesforce developer application's Client secret. + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + + /** + * Toggle if you're using a Salesforce + * Sandbox. + */ + public Builder isSandbox(boolean isSandbox) { + Utils.checkNotNull(isSandbox, "isSandbox"); + this.isSandbox = Optional.ofNullable(isSandbox); + return this; + } + + /** + * Toggle if you're using a Salesforce + * Sandbox. + */ + public Builder isSandbox(Optional isSandbox) { + Utils.checkNotNull(isSandbox, "isSandbox"); + this.isSandbox = isSandbox; + return this; + } + + + public Builder objectStorageConfig(DestinationSalesforceObjectStorageConfiguration objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = Optional.ofNullable(objectStorageConfig); + return this; + } + + public Builder objectStorageConfig(Optional objectStorageConfig) { + Utils.checkNotNull(objectStorageConfig, "objectStorageConfig"); + this.objectStorageConfig = objectStorageConfig; + return this; + } + + + /** + * Enter your application's Salesforce + * Refresh Token used for Airbyte to access your Salesforce account. + */ + public Builder refreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; + return this; + } + + public DestinationSalesforce build() { + if (isSandbox == null) { + isSandbox = _SINGLETON_VALUE_IsSandbox.value(); + } + + return new DestinationSalesforce( + clientId, clientSecret, isSandbox, + objectStorageConfig, refreshToken); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"Client\"", + new TypeReference() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = + new LazySingletonValue<>( + "destinationType", + "\"salesforce\"", + new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_IsSandbox = + new LazySingletonValue<>( + "is_sandbox", + "false", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceNone.java b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceNone.java new file mode 100644 index 000000000..e5e0f509e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceNone.java @@ -0,0 +1,173 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + + +public class DestinationSalesforceNone { + + @JsonIgnore + private Map additionalProperties; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("storage_type") + private Optional storageType; + + @JsonCreator + public DestinationSalesforceNone( + @JsonProperty("storage_type") Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.additionalProperties = new HashMap<>(); + this.storageType = storageType; + } + + public DestinationSalesforceNone() { + this(Optional.empty()); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional storageType() { + return (Optional) storageType; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public DestinationSalesforceNone withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public DestinationSalesforceNone withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public DestinationSalesforceNone withStorageType(DestinationSalesforceStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + + public DestinationSalesforceNone withStorageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationSalesforceNone other = (DestinationSalesforceNone) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.storageType, other.storageType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, storageType); + } + + @Override + public String toString() { + return Utils.toString(DestinationSalesforceNone.class, + "additionalProperties", additionalProperties, + "storageType", storageType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private Optional storageType; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder storageType(DestinationSalesforceStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + public Builder storageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + public DestinationSalesforceNone build() { + if (storageType == null) { + storageType = _SINGLETON_VALUE_StorageType.value(); + } + + return new DestinationSalesforceNone( + storageType) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_StorageType = + new LazySingletonValue<>( + "storage_type", + "\"None\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceObjectStorageConfiguration.java b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceObjectStorageConfiguration.java new file mode 100644 index 000000000..3968ad6af --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceObjectStorageConfiguration.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = DestinationSalesforceObjectStorageConfiguration._Deserializer.class) +public class DestinationSalesforceObjectStorageConfiguration { + + @JsonValue + private TypedObject value; + + private DestinationSalesforceObjectStorageConfiguration(TypedObject value) { + this.value = value; + } + + public static DestinationSalesforceObjectStorageConfiguration of(DestinationSalesforceNone value) { + Utils.checkNotNull(value, "value"); + return new DestinationSalesforceObjectStorageConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static DestinationSalesforceObjectStorageConfiguration of(DestinationSalesforceS3 value) { + Utils.checkNotNull(value, "value"); + return new DestinationSalesforceObjectStorageConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.DestinationSalesforceNone}
    • + *
    • {@code com.airbyte.api.models.shared.DestinationSalesforceS3}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationSalesforceObjectStorageConfiguration other = (DestinationSalesforceObjectStorageConfiguration) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(DestinationSalesforceObjectStorageConfiguration.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(DestinationSalesforceObjectStorageConfiguration.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceS3.java b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceS3.java new file mode 100644 index 000000000..af0daed81 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceS3.java @@ -0,0 +1,611 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + + +public class DestinationSalesforceS3 { + + @JsonIgnore + private Map additionalProperties; + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("access_key_id") + private Optional accessKeyId; + + /** + * All files in the bucket will be prefixed by this. + */ + @JsonProperty("bucket_path") + private String bucketPath; + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("role_arn") + private Optional roleArn; + + /** + * The name of the S3 bucket. Read more here. + */ + @JsonProperty("s3_bucket_name") + private String s3BucketName; + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("s3_bucket_region") + private Optional s3BucketRegion; + + /** + * Your S3 endpoint url. Read more here + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("s3_endpoint") + private Optional s3Endpoint; + + /** + * The corresponding secret to the access key ID. Read more here + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("secret_access_key") + private Optional secretAccessKey; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("storage_type") + private Optional storageType; + + @JsonCreator + public DestinationSalesforceS3( + @JsonProperty("access_key_id") Optional accessKeyId, + @JsonProperty("bucket_path") String bucketPath, + @JsonProperty("role_arn") Optional roleArn, + @JsonProperty("s3_bucket_name") String s3BucketName, + @JsonProperty("s3_bucket_region") Optional s3BucketRegion, + @JsonProperty("s3_endpoint") Optional s3Endpoint, + @JsonProperty("secret_access_key") Optional secretAccessKey, + @JsonProperty("storage_type") Optional storageType) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + Utils.checkNotNull(bucketPath, "bucketPath"); + Utils.checkNotNull(roleArn, "roleArn"); + Utils.checkNotNull(s3BucketName, "s3BucketName"); + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + Utils.checkNotNull(storageType, "storageType"); + this.additionalProperties = new HashMap<>(); + this.accessKeyId = accessKeyId; + this.bucketPath = bucketPath; + this.roleArn = roleArn; + this.s3BucketName = s3BucketName; + this.s3BucketRegion = s3BucketRegion; + this.s3Endpoint = s3Endpoint; + this.secretAccessKey = secretAccessKey; + this.storageType = storageType; + } + + public DestinationSalesforceS3( + String bucketPath, + String s3BucketName) { + this(Optional.empty(), bucketPath, Optional.empty(), + s3BucketName, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + @JsonIgnore + public Optional accessKeyId() { + return accessKeyId; + } + + /** + * All files in the bucket will be prefixed by this. + */ + @JsonIgnore + public String bucketPath() { + return bucketPath; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + @JsonIgnore + public Optional roleArn() { + return roleArn; + } + + /** + * The name of the S3 bucket. Read more here. + */ + @JsonIgnore + public String s3BucketName() { + return s3BucketName; + } + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional s3BucketRegion() { + return (Optional) s3BucketRegion; + } + + /** + * Your S3 endpoint url. Read more here + */ + @JsonIgnore + public Optional s3Endpoint() { + return s3Endpoint; + } + + /** + * The corresponding secret to the access key ID. Read more here + */ + @JsonIgnore + public Optional secretAccessKey() { + return secretAccessKey; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional storageType() { + return (Optional) storageType; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public DestinationSalesforceS3 withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public DestinationSalesforceS3 withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public DestinationSalesforceS3 withAccessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = Optional.ofNullable(accessKeyId); + return this; + } + + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public DestinationSalesforceS3 withAccessKeyId(Optional accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + /** + * All files in the bucket will be prefixed by this. + */ + public DestinationSalesforceS3 withBucketPath(String bucketPath) { + Utils.checkNotNull(bucketPath, "bucketPath"); + this.bucketPath = bucketPath; + return this; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public DestinationSalesforceS3 withRoleArn(String roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = Optional.ofNullable(roleArn); + return this; + } + + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public DestinationSalesforceS3 withRoleArn(Optional roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = roleArn; + return this; + } + + /** + * The name of the S3 bucket. Read more here. + */ + public DestinationSalesforceS3 withS3BucketName(String s3BucketName) { + Utils.checkNotNull(s3BucketName, "s3BucketName"); + this.s3BucketName = s3BucketName; + return this; + } + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public DestinationSalesforceS3 withS3BucketRegion(DestinationSalesforceS3BucketRegion s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = Optional.ofNullable(s3BucketRegion); + return this; + } + + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public DestinationSalesforceS3 withS3BucketRegion(Optional s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = s3BucketRegion; + return this; + } + + /** + * Your S3 endpoint url. Read more here + */ + public DestinationSalesforceS3 withS3Endpoint(String s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = Optional.ofNullable(s3Endpoint); + return this; + } + + + /** + * Your S3 endpoint url. Read more here + */ + public DestinationSalesforceS3 withS3Endpoint(Optional s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = s3Endpoint; + return this; + } + + /** + * The corresponding secret to the access key ID. Read more here + */ + public DestinationSalesforceS3 withSecretAccessKey(String secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = Optional.ofNullable(secretAccessKey); + return this; + } + + + /** + * The corresponding secret to the access key ID. Read more here + */ + public DestinationSalesforceS3 withSecretAccessKey(Optional secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = secretAccessKey; + return this; + } + + public DestinationSalesforceS3 withStorageType(DestinationSalesforceSchemasStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + + public DestinationSalesforceS3 withStorageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationSalesforceS3 other = (DestinationSalesforceS3) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.accessKeyId, other.accessKeyId) && + Utils.enhancedDeepEquals(this.bucketPath, other.bucketPath) && + Utils.enhancedDeepEquals(this.roleArn, other.roleArn) && + Utils.enhancedDeepEquals(this.s3BucketName, other.s3BucketName) && + Utils.enhancedDeepEquals(this.s3BucketRegion, other.s3BucketRegion) && + Utils.enhancedDeepEquals(this.s3Endpoint, other.s3Endpoint) && + Utils.enhancedDeepEquals(this.secretAccessKey, other.secretAccessKey) && + Utils.enhancedDeepEquals(this.storageType, other.storageType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, accessKeyId, bucketPath, + roleArn, s3BucketName, s3BucketRegion, + s3Endpoint, secretAccessKey, storageType); + } + + @Override + public String toString() { + return Utils.toString(DestinationSalesforceS3.class, + "additionalProperties", additionalProperties, + "accessKeyId", accessKeyId, + "bucketPath", bucketPath, + "roleArn", roleArn, + "s3BucketName", s3BucketName, + "s3BucketRegion", s3BucketRegion, + "s3Endpoint", s3Endpoint, + "secretAccessKey", secretAccessKey, + "storageType", storageType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private Optional accessKeyId = Optional.empty(); + + private String bucketPath; + + private Optional roleArn = Optional.empty(); + + private String s3BucketName; + + private Optional s3BucketRegion; + + private Optional s3Endpoint = Optional.empty(); + + private Optional secretAccessKey = Optional.empty(); + + private Optional storageType; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public Builder accessKeyId(String accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = Optional.ofNullable(accessKeyId); + return this; + } + + /** + * The access key ID to access the S3 bucket. Airbyte requires Read and Write permissions to the given + * bucket. Read more here. + */ + public Builder accessKeyId(Optional accessKeyId) { + Utils.checkNotNull(accessKeyId, "accessKeyId"); + this.accessKeyId = accessKeyId; + return this; + } + + + /** + * All files in the bucket will be prefixed by this. + */ + public Builder bucketPath(String bucketPath) { + Utils.checkNotNull(bucketPath, "bucketPath"); + this.bucketPath = bucketPath; + return this; + } + + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public Builder roleArn(String roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = Optional.ofNullable(roleArn); + return this; + } + + /** + * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. + */ + public Builder roleArn(Optional roleArn) { + Utils.checkNotNull(roleArn, "roleArn"); + this.roleArn = roleArn; + return this; + } + + + /** + * The name of the S3 bucket. Read more here. + */ + public Builder s3BucketName(String s3BucketName) { + Utils.checkNotNull(s3BucketName, "s3BucketName"); + this.s3BucketName = s3BucketName; + return this; + } + + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public Builder s3BucketRegion(DestinationSalesforceS3BucketRegion s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = Optional.ofNullable(s3BucketRegion); + return this; + } + + /** + * The region of the S3 bucket. See here + * for all region codes. + */ + public Builder s3BucketRegion(Optional s3BucketRegion) { + Utils.checkNotNull(s3BucketRegion, "s3BucketRegion"); + this.s3BucketRegion = s3BucketRegion; + return this; + } + + + /** + * Your S3 endpoint url. Read more here + */ + public Builder s3Endpoint(String s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = Optional.ofNullable(s3Endpoint); + return this; + } + + /** + * Your S3 endpoint url. Read more here + */ + public Builder s3Endpoint(Optional s3Endpoint) { + Utils.checkNotNull(s3Endpoint, "s3Endpoint"); + this.s3Endpoint = s3Endpoint; + return this; + } + + + /** + * The corresponding secret to the access key ID. Read more here + */ + public Builder secretAccessKey(String secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = Optional.ofNullable(secretAccessKey); + return this; + } + + /** + * The corresponding secret to the access key ID. Read more here + */ + public Builder secretAccessKey(Optional secretAccessKey) { + Utils.checkNotNull(secretAccessKey, "secretAccessKey"); + this.secretAccessKey = secretAccessKey; + return this; + } + + + public Builder storageType(DestinationSalesforceSchemasStorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + public Builder storageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + + public DestinationSalesforceS3 build() { + if (s3BucketRegion == null) { + s3BucketRegion = _SINGLETON_VALUE_S3BucketRegion.value(); + } + if (storageType == null) { + storageType = _SINGLETON_VALUE_StorageType.value(); + } + + return new DestinationSalesforceS3( + accessKeyId, bucketPath, roleArn, + s3BucketName, s3BucketRegion, s3Endpoint, + secretAccessKey, storageType) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_S3BucketRegion = + new LazySingletonValue<>( + "s3_bucket_region", + "\"\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StorageType = + new LazySingletonValue<>( + "storage_type", + "\"S3\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceS3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceS3BucketRegion.java new file mode 100644 index 000000000..3019e1526 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceS3BucketRegion.java @@ -0,0 +1,74 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * DestinationSalesforceS3BucketRegion + * + *

    The region of the S3 bucket. See here + * for all region codes. + */ +public enum DestinationSalesforceS3BucketRegion { + UNKNOWN(""), + AF_SOUTH1("af-south-1"), + AP_EAST1("ap-east-1"), + AP_NORTHEAST1("ap-northeast-1"), + AP_NORTHEAST2("ap-northeast-2"), + AP_NORTHEAST3("ap-northeast-3"), + AP_SOUTH1("ap-south-1"), + AP_SOUTH2("ap-south-2"), + AP_SOUTHEAST1("ap-southeast-1"), + AP_SOUTHEAST2("ap-southeast-2"), + AP_SOUTHEAST3("ap-southeast-3"), + AP_SOUTHEAST4("ap-southeast-4"), + CA_CENTRAL1("ca-central-1"), + CA_WEST1("ca-west-1"), + CN_NORTH1("cn-north-1"), + CN_NORTHWEST1("cn-northwest-1"), + EU_CENTRAL1("eu-central-1"), + EU_CENTRAL2("eu-central-2"), + EU_NORTH1("eu-north-1"), + EU_SOUTH1("eu-south-1"), + EU_SOUTH2("eu-south-2"), + EU_WEST1("eu-west-1"), + EU_WEST2("eu-west-2"), + EU_WEST3("eu-west-3"), + IL_CENTRAL1("il-central-1"), + ME_CENTRAL1("me-central-1"), + ME_SOUTH1("me-south-1"), + SA_EAST1("sa-east-1"), + US_EAST1("us-east-1"), + US_EAST2("us-east-2"), + US_GOV_EAST1("us-gov-east-1"), + US_GOV_WEST1("us-gov-west-1"), + US_WEST1("us-west-1"), + US_WEST2("us-west-2"); + + @JsonValue + private final String value; + + DestinationSalesforceS3BucketRegion(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationSalesforceS3BucketRegion o: DestinationSalesforceS3BucketRegion.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceSalesforce.java b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceSalesforce.java new file mode 100644 index 000000000..19752f3c9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceSalesforce.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum DestinationSalesforceSalesforce { + SALESFORCE("salesforce"); + + @JsonValue + private final String value; + + DestinationSalesforceSalesforce(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationSalesforceSalesforce o: DestinationSalesforceSalesforce.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceSchemasStorageType.java b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceSchemasStorageType.java new file mode 100644 index 000000000..09f7f60bc --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceSchemasStorageType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum DestinationSalesforceSchemasStorageType { + S3("S3"); + + @JsonValue + private final String value; + + DestinationSalesforceSchemasStorageType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationSalesforceSchemasStorageType o: DestinationSalesforceSchemasStorageType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceStorageType.java b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceStorageType.java new file mode 100644 index 000000000..3bddf6479 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSalesforceStorageType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum DestinationSalesforceStorageType { + NONE("None"); + + @JsonValue + private final String value; + + DestinationSalesforceStorageType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (DestinationSalesforceStorageType o: DestinationSalesforceStorageType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSftpJson.java b/src/main/java/com/airbyte/api/models/shared/DestinationSftpJson.java index 65dd62f14..e4d2546c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSftpJson.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSftpJson.java @@ -14,9 +14,9 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class DestinationSftpJson { @JsonProperty("destinationType") @@ -78,7 +78,8 @@ public DestinationSftpJson( String host, String password, String username) { - this(destinationPath, host, password, Optional.empty(), username); + this(destinationPath, host, password, + Optional.empty(), username); } @JsonIgnore @@ -126,9 +127,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Path to the directory where json files will be written. @@ -166,6 +168,7 @@ public DestinationSftpJson withPort(long port) { return this; } + /** * Port of the SFTP server. */ @@ -184,7 +187,6 @@ public DestinationSftpJson withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -195,23 +197,19 @@ public boolean equals(java.lang.Object o) { } DestinationSftpJson other = (DestinationSftpJson) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.destinationPath, other.destinationPath) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.destinationPath, other.destinationPath) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - destinationType, - destinationPath, - host, - password, - port, - username); + return Utils.enhancedHash( + destinationType, destinationPath, host, + password, port, username); } @Override @@ -224,23 +222,25 @@ public String toString() { "port", port, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String destinationPath; - + private String host; - + private String password; - + private Optional port; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Path to the directory where json files will be written. */ @@ -250,6 +250,7 @@ public Builder destinationPath(String destinationPath) { return this; } + /** * Hostname of the SFTP server. */ @@ -259,6 +260,7 @@ public Builder host(String host) { return this; } + /** * Password associated with the username. */ @@ -268,6 +270,7 @@ public Builder password(String password) { return this; } + /** * Port of the SFTP server. */ @@ -286,6 +289,7 @@ public Builder port(Optional port) { return this; } + /** * Username to use to access the SFTP server. */ @@ -294,19 +298,18 @@ public Builder username(String username) { this.username = username; return this; } - + public DestinationSftpJson build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new DestinationSftpJson( - destinationPath, - host, - password, - port, - username); + destinationPath, host, password, + port, username); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java index 2900f99ca..357c58d77 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflake.java @@ -16,9 +16,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class DestinationSnowflake { @JsonInclude(Include.NON_ABSENT) @@ -26,29 +26,37 @@ public class DestinationSnowflake { private Optional credentials; /** - * Enter the name of the <a href="https://docs.snowflake.com/en/sql-reference/ddl-database.html#database-schema-share-ddl">database</a> you want to sync data into + * Enter the name of the database + * you want to sync data into */ @JsonProperty("database") private String database; + @JsonProperty("destinationType") - private DestinationSnowflakeSnowflake destinationType; + private Snowflake destinationType; /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disable_type_dedupe") private Optional disableTypeDedupe; /** - * Enter your Snowflake account's <a href="https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#using-an-account-locator-as-an-identifier">locator</a> (in the format <account_locator>.<region>.<cloud>.snowflakecomputing.com) + * Enter your Snowflake account's locator + * (in the format <account_locator>.<region>.<cloud>.snowflakecomputing.com) */ @JsonProperty("host") private String host; /** - * Enter the additional properties to pass to the JDBC URL string when connecting to the database (formatted as key=value pairs separated by the symbol &). Example: key1=value1&key2=value2&key3=value3 + * Enter the additional properties to pass to the JDBC URL string when connecting to the database + * (formatted as key=value pairs separated by the symbol &). Example: + * key1=value1&key2=value2&key3=value3 */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -62,26 +70,33 @@ public class DestinationSnowflake { private Optional rawDataSchema; /** - * The number of days of Snowflake Time Travel to enable on the tables. See <a href="https://docs.snowflake.com/en/user-guide/data-time-travel#data-retention-period">Snowflake's documentation</a> for more information. Setting a nonzero value will incur increased storage costs in your Snowflake instance. + * The number of days of Snowflake Time Travel to enable on the tables. See Snowflake's + * documentation for more information. Setting a nonzero value will incur increased storage costs + * in your Snowflake instance. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("retention_period_days") private Optional retentionPeriodDays; /** - * Enter the <a href="https://docs.snowflake.com/en/user-guide/security-access-control-overview.html#roles">role</a> that you want to use to access Snowflake + * Enter the role + * that you want to use to access Snowflake */ @JsonProperty("role") private String role; /** - * Enter the name of the default <a href="https://docs.snowflake.com/en/sql-reference/ddl-database.html#database-schema-share-ddl">schema</a> + * Enter the name of the default schema */ @JsonProperty("schema") private String schema; /** - * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE + * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or + * Sync mode is not DEDUPE */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("use_merge_for_upsert") @@ -94,7 +109,9 @@ public class DestinationSnowflake { private String username; /** - * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to use as a compute cluster + * Enter the name of the warehouse + * that you want to use as a compute cluster */ @JsonProperty("warehouse") private String warehouse; @@ -147,7 +164,10 @@ public DestinationSnowflake( String schema, String username, String warehouse) { - this(Optional.empty(), database, Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty(), role, schema, Optional.empty(), username, warehouse); + this(Optional.empty(), database, Optional.empty(), + host, Optional.empty(), Optional.empty(), + Optional.empty(), role, schema, + Optional.empty(), username, warehouse); } @SuppressWarnings("unchecked") @@ -157,7 +177,9 @@ public Optional credentials() { } /** - * Enter the name of the <a href="https://docs.snowflake.com/en/sql-reference/ddl-database.html#database-schema-share-ddl">database</a> you want to sync data into + * Enter the name of the database + * you want to sync data into */ @JsonIgnore public String database() { @@ -165,12 +187,13 @@ public String database() { } @JsonIgnore - public DestinationSnowflakeSnowflake destinationType() { + public Snowflake destinationType() { return destinationType; } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ @JsonIgnore public Optional disableTypeDedupe() { @@ -178,7 +201,9 @@ public Optional disableTypeDedupe() { } /** - * Enter your Snowflake account's <a href="https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#using-an-account-locator-as-an-identifier">locator</a> (in the format <account_locator>.<region>.<cloud>.snowflakecomputing.com) + * Enter your Snowflake account's locator + * (in the format <account_locator>.<region>.<cloud>.snowflakecomputing.com) */ @JsonIgnore public String host() { @@ -186,7 +211,9 @@ public String host() { } /** - * Enter the additional properties to pass to the JDBC URL string when connecting to the database (formatted as key=value pairs separated by the symbol &). Example: key1=value1&key2=value2&key3=value3 + * Enter the additional properties to pass to the JDBC URL string when connecting to the database + * (formatted as key=value pairs separated by the symbol &). Example: + * key1=value1&key2=value2&key3=value3 */ @JsonIgnore public Optional jdbcUrlParams() { @@ -202,7 +229,10 @@ public Optional rawDataSchema() { } /** - * The number of days of Snowflake Time Travel to enable on the tables. See <a href="https://docs.snowflake.com/en/user-guide/data-time-travel#data-retention-period">Snowflake's documentation</a> for more information. Setting a nonzero value will incur increased storage costs in your Snowflake instance. + * The number of days of Snowflake Time Travel to enable on the tables. See Snowflake's + * documentation for more information. Setting a nonzero value will incur increased storage costs + * in your Snowflake instance. */ @JsonIgnore public Optional retentionPeriodDays() { @@ -210,7 +240,9 @@ public Optional retentionPeriodDays() { } /** - * Enter the <a href="https://docs.snowflake.com/en/user-guide/security-access-control-overview.html#roles">role</a> that you want to use to access Snowflake + * Enter the role + * that you want to use to access Snowflake */ @JsonIgnore public String role() { @@ -218,7 +250,8 @@ public String role() { } /** - * Enter the name of the default <a href="https://docs.snowflake.com/en/sql-reference/ddl-database.html#database-schema-share-ddl">schema</a> + * Enter the name of the default schema */ @JsonIgnore public String schema() { @@ -226,7 +259,8 @@ public String schema() { } /** - * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE + * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or + * Sync mode is not DEDUPE */ @JsonIgnore public Optional useMergeForUpsert() { @@ -242,16 +276,19 @@ public String username() { } /** - * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to use as a compute cluster + * Enter the name of the warehouse + * that you want to use as a compute cluster */ @JsonIgnore public String warehouse() { return warehouse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationSnowflake withCredentials(AuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -259,6 +296,7 @@ public DestinationSnowflake withCredentials(AuthorizationMethod credentials) { return this; } + public DestinationSnowflake withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -266,7 +304,9 @@ public DestinationSnowflake withCredentials(Optionaldatabase + * you want to sync data into */ public DestinationSnowflake withDatabase(String database) { Utils.checkNotNull(database, "database"); @@ -275,7 +315,8 @@ public DestinationSnowflake withDatabase(String database) { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public DestinationSnowflake withDisableTypeDedupe(boolean disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -283,8 +324,10 @@ public DestinationSnowflake withDisableTypeDedupe(boolean disableTypeDedupe) { return this; } + /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public DestinationSnowflake withDisableTypeDedupe(Optional disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -293,7 +336,9 @@ public DestinationSnowflake withDisableTypeDedupe(Optional disableTypeD } /** - * Enter your Snowflake account's <a href="https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#using-an-account-locator-as-an-identifier">locator</a> (in the format <account_locator>.<region>.<cloud>.snowflakecomputing.com) + * Enter your Snowflake account's locator + * (in the format <account_locator>.<region>.<cloud>.snowflakecomputing.com) */ public DestinationSnowflake withHost(String host) { Utils.checkNotNull(host, "host"); @@ -302,7 +347,9 @@ public DestinationSnowflake withHost(String host) { } /** - * Enter the additional properties to pass to the JDBC URL string when connecting to the database (formatted as key=value pairs separated by the symbol &). Example: key1=value1&key2=value2&key3=value3 + * Enter the additional properties to pass to the JDBC URL string when connecting to the database + * (formatted as key=value pairs separated by the symbol &). Example: + * key1=value1&key2=value2&key3=value3 */ public DestinationSnowflake withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -310,8 +357,11 @@ public DestinationSnowflake withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Enter the additional properties to pass to the JDBC URL string when connecting to the database (formatted as key=value pairs separated by the symbol &). Example: key1=value1&key2=value2&key3=value3 + * Enter the additional properties to pass to the JDBC URL string when connecting to the database + * (formatted as key=value pairs separated by the symbol &). Example: + * key1=value1&key2=value2&key3=value3 */ public DestinationSnowflake withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -328,6 +378,7 @@ public DestinationSnowflake withRawDataSchema(String rawDataSchema) { return this; } + /** * The schema to write raw tables into (default: airbyte_internal) */ @@ -338,7 +389,10 @@ public DestinationSnowflake withRawDataSchema(Optional rawDataSchema) { } /** - * The number of days of Snowflake Time Travel to enable on the tables. See <a href="https://docs.snowflake.com/en/user-guide/data-time-travel#data-retention-period">Snowflake's documentation</a> for more information. Setting a nonzero value will incur increased storage costs in your Snowflake instance. + * The number of days of Snowflake Time Travel to enable on the tables. See Snowflake's + * documentation for more information. Setting a nonzero value will incur increased storage costs + * in your Snowflake instance. */ public DestinationSnowflake withRetentionPeriodDays(long retentionPeriodDays) { Utils.checkNotNull(retentionPeriodDays, "retentionPeriodDays"); @@ -346,8 +400,12 @@ public DestinationSnowflake withRetentionPeriodDays(long retentionPeriodDays) { return this; } + /** - * The number of days of Snowflake Time Travel to enable on the tables. See <a href="https://docs.snowflake.com/en/user-guide/data-time-travel#data-retention-period">Snowflake's documentation</a> for more information. Setting a nonzero value will incur increased storage costs in your Snowflake instance. + * The number of days of Snowflake Time Travel to enable on the tables. See Snowflake's + * documentation for more information. Setting a nonzero value will incur increased storage costs + * in your Snowflake instance. */ public DestinationSnowflake withRetentionPeriodDays(Optional retentionPeriodDays) { Utils.checkNotNull(retentionPeriodDays, "retentionPeriodDays"); @@ -356,7 +414,9 @@ public DestinationSnowflake withRetentionPeriodDays(Optional retentionPeri } /** - * Enter the <a href="https://docs.snowflake.com/en/user-guide/security-access-control-overview.html#roles">role</a> that you want to use to access Snowflake + * Enter the role + * that you want to use to access Snowflake */ public DestinationSnowflake withRole(String role) { Utils.checkNotNull(role, "role"); @@ -365,7 +425,8 @@ public DestinationSnowflake withRole(String role) { } /** - * Enter the name of the default <a href="https://docs.snowflake.com/en/sql-reference/ddl-database.html#database-schema-share-ddl">schema</a> + * Enter the name of the default schema */ public DestinationSnowflake withSchema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -374,7 +435,8 @@ public DestinationSnowflake withSchema(String schema) { } /** - * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE + * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or + * Sync mode is not DEDUPE */ public DestinationSnowflake withUseMergeForUpsert(boolean useMergeForUpsert) { Utils.checkNotNull(useMergeForUpsert, "useMergeForUpsert"); @@ -382,8 +444,10 @@ public DestinationSnowflake withUseMergeForUpsert(boolean useMergeForUpsert) { return this; } + /** - * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE + * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or + * Sync mode is not DEDUPE */ public DestinationSnowflake withUseMergeForUpsert(Optional useMergeForUpsert) { Utils.checkNotNull(useMergeForUpsert, "useMergeForUpsert"); @@ -401,7 +465,9 @@ public DestinationSnowflake withUsername(String username) { } /** - * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to use as a compute cluster + * Enter the name of the warehouse + * that you want to use as a compute cluster */ public DestinationSnowflake withWarehouse(String warehouse) { Utils.checkNotNull(warehouse, "warehouse"); @@ -409,7 +475,6 @@ public DestinationSnowflake withWarehouse(String warehouse) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -420,36 +485,28 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflake other = (DestinationSnowflake) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.disableTypeDedupe, other.disableTypeDedupe) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.rawDataSchema, other.rawDataSchema) && - Objects.deepEquals(this.retentionPeriodDays, other.retentionPeriodDays) && - Objects.deepEquals(this.role, other.role) && - Objects.deepEquals(this.schema, other.schema) && - Objects.deepEquals(this.useMergeForUpsert, other.useMergeForUpsert) && - Objects.deepEquals(this.username, other.username) && - Objects.deepEquals(this.warehouse, other.warehouse); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.disableTypeDedupe, other.disableTypeDedupe) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.rawDataSchema, other.rawDataSchema) && + Utils.enhancedDeepEquals(this.retentionPeriodDays, other.retentionPeriodDays) && + Utils.enhancedDeepEquals(this.role, other.role) && + Utils.enhancedDeepEquals(this.schema, other.schema) && + Utils.enhancedDeepEquals(this.useMergeForUpsert, other.useMergeForUpsert) && + Utils.enhancedDeepEquals(this.username, other.username) && + Utils.enhancedDeepEquals(this.warehouse, other.warehouse); } @Override public int hashCode() { - return Objects.hash( - credentials, - database, - destinationType, - disableTypeDedupe, - host, - jdbcUrlParams, - rawDataSchema, - retentionPeriodDays, - role, - schema, - useMergeForUpsert, - username, + return Utils.enhancedHash( + credentials, database, destinationType, + disableTypeDedupe, host, jdbcUrlParams, + rawDataSchema, retentionPeriodDays, role, + schema, useMergeForUpsert, username, warehouse); } @@ -470,37 +527,39 @@ public String toString() { "username", username, "warehouse", warehouse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private String database; - + private Optional disableTypeDedupe; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional rawDataSchema = Optional.empty(); - + private Optional retentionPeriodDays; - + private String role; - + private String schema; - + private Optional useMergeForUpsert; - + private String username; - + private String warehouse; - + private Builder() { // force use of static builder() method } + public Builder credentials(AuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -513,8 +572,11 @@ public Builder credentials(Optional credentials) return this; } + /** - * Enter the name of the <a href="https://docs.snowflake.com/en/sql-reference/ddl-database.html#database-schema-share-ddl">database</a> you want to sync data into + * Enter the name of the database + * you want to sync data into */ public Builder database(String database) { Utils.checkNotNull(database, "database"); @@ -522,8 +584,10 @@ public Builder database(String database) { return this; } + /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public Builder disableTypeDedupe(boolean disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -532,7 +596,8 @@ public Builder disableTypeDedupe(boolean disableTypeDedupe) { } /** - * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there are no guarantees that other metadata columns will remain the same in future versions + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions */ public Builder disableTypeDedupe(Optional disableTypeDedupe) { Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); @@ -540,8 +605,11 @@ public Builder disableTypeDedupe(Optional disableTypeDedupe) { return this; } + /** - * Enter your Snowflake account's <a href="https://docs.snowflake.com/en/user-guide/admin-account-identifier.html#using-an-account-locator-as-an-identifier">locator</a> (in the format <account_locator>.<region>.<cloud>.snowflakecomputing.com) + * Enter your Snowflake account's locator + * (in the format <account_locator>.<region>.<cloud>.snowflakecomputing.com) */ public Builder host(String host) { Utils.checkNotNull(host, "host"); @@ -549,8 +617,11 @@ public Builder host(String host) { return this; } + /** - * Enter the additional properties to pass to the JDBC URL string when connecting to the database (formatted as key=value pairs separated by the symbol &). Example: key1=value1&key2=value2&key3=value3 + * Enter the additional properties to pass to the JDBC URL string when connecting to the database + * (formatted as key=value pairs separated by the symbol &). Example: + * key1=value1&key2=value2&key3=value3 */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -559,7 +630,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Enter the additional properties to pass to the JDBC URL string when connecting to the database (formatted as key=value pairs separated by the symbol &). Example: key1=value1&key2=value2&key3=value3 + * Enter the additional properties to pass to the JDBC URL string when connecting to the database + * (formatted as key=value pairs separated by the symbol &). Example: + * key1=value1&key2=value2&key3=value3 */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -567,6 +640,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * The schema to write raw tables into (default: airbyte_internal) */ @@ -585,8 +659,12 @@ public Builder rawDataSchema(Optional rawDataSchema) { return this; } + /** - * The number of days of Snowflake Time Travel to enable on the tables. See <a href="https://docs.snowflake.com/en/user-guide/data-time-travel#data-retention-period">Snowflake's documentation</a> for more information. Setting a nonzero value will incur increased storage costs in your Snowflake instance. + * The number of days of Snowflake Time Travel to enable on the tables. See Snowflake's + * documentation for more information. Setting a nonzero value will incur increased storage costs + * in your Snowflake instance. */ public Builder retentionPeriodDays(long retentionPeriodDays) { Utils.checkNotNull(retentionPeriodDays, "retentionPeriodDays"); @@ -595,7 +673,10 @@ public Builder retentionPeriodDays(long retentionPeriodDays) { } /** - * The number of days of Snowflake Time Travel to enable on the tables. See <a href="https://docs.snowflake.com/en/user-guide/data-time-travel#data-retention-period">Snowflake's documentation</a> for more information. Setting a nonzero value will incur increased storage costs in your Snowflake instance. + * The number of days of Snowflake Time Travel to enable on the tables. See Snowflake's + * documentation for more information. Setting a nonzero value will incur increased storage costs + * in your Snowflake instance. */ public Builder retentionPeriodDays(Optional retentionPeriodDays) { Utils.checkNotNull(retentionPeriodDays, "retentionPeriodDays"); @@ -603,8 +684,11 @@ public Builder retentionPeriodDays(Optional retentionPeriodDays) { return this; } + /** - * Enter the <a href="https://docs.snowflake.com/en/user-guide/security-access-control-overview.html#roles">role</a> that you want to use to access Snowflake + * Enter the role + * that you want to use to access Snowflake */ public Builder role(String role) { Utils.checkNotNull(role, "role"); @@ -612,8 +696,10 @@ public Builder role(String role) { return this; } + /** - * Enter the name of the default <a href="https://docs.snowflake.com/en/sql-reference/ddl-database.html#database-schema-share-ddl">schema</a> + * Enter the name of the default schema */ public Builder schema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -621,8 +707,10 @@ public Builder schema(String schema) { return this; } + /** - * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE + * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or + * Sync mode is not DEDUPE */ public Builder useMergeForUpsert(boolean useMergeForUpsert) { Utils.checkNotNull(useMergeForUpsert, "useMergeForUpsert"); @@ -631,7 +719,8 @@ public Builder useMergeForUpsert(boolean useMergeForUpsert) { } /** - * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or Sync mode is not DEDUPE + * Use MERGE for de-duplication of final tables. This option no effect if Final tables are disabled or + * Sync mode is not DEDUPE */ public Builder useMergeForUpsert(Optional useMergeForUpsert) { Utils.checkNotNull(useMergeForUpsert, "useMergeForUpsert"); @@ -639,6 +728,7 @@ public Builder useMergeForUpsert(Optional useMergeForUpsert) { return this; } + /** * Enter the name of the user you want to use to access the database */ @@ -648,15 +738,18 @@ public Builder username(String username) { return this; } + /** - * Enter the name of the <a href="https://docs.snowflake.com/en/user-guide/warehouses-overview.html#overview-of-warehouses">warehouse</a> that you want to use as a compute cluster + * Enter the name of the warehouse + * that you want to use as a compute cluster */ public Builder warehouse(String warehouse) { Utils.checkNotNull(warehouse, "warehouse"); this.warehouse = warehouse; return this; } - + public DestinationSnowflake build() { if (disableTypeDedupe == null) { disableTypeDedupe = _SINGLETON_VALUE_DisableTypeDedupe.value(); @@ -667,26 +760,20 @@ public DestinationSnowflake build() { if (useMergeForUpsert == null) { useMergeForUpsert = _SINGLETON_VALUE_UseMergeForUpsert.value(); } + return new DestinationSnowflake( - credentials, - database, - disableTypeDedupe, - host, - jdbcUrlParams, - rawDataSchema, - retentionPeriodDays, - role, - schema, - useMergeForUpsert, - username, - warehouse); + credentials, database, disableTypeDedupe, + host, jdbcUrlParams, rawDataSchema, + retentionPeriodDays, role, schema, + useMergeForUpsert, username, warehouse); } - private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = + + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", "\"snowflake\"", - new TypeReference() {}); + new TypeReference() {}); private static final LazySingletonValue> _SINGLETON_VALUE_DisableTypeDedupe = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java index fd108a9a6..3d39b7311 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeAuthType.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeAuthType { @JsonValue private final String value; - private DestinationSnowflakeAuthType(String value) { + DestinationSnowflakeAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java index 3184199bc..382cc77dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortex.java @@ -14,13 +14,13 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** * DestinationSnowflakeCortex * - *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, + *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI + * for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. * *

    The configuration model is composed of four parts: @@ -29,7 +29,8 @@ * * Indexing configuration * * Advanced configuration * - *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. + *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing + * configuration is provided by the destination connector in the sub class. */ public class DestinationSnowflakeCortex { @@ -49,12 +50,15 @@ public class DestinationSnowflakeCortex { private SnowflakeConnection indexing; /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("omit_raw_text") private Optional omitRawText; + @JsonProperty("processing") private DestinationSnowflakeCortexProcessingConfigModel processing; @@ -79,7 +83,8 @@ public DestinationSnowflakeCortex( DestinationSnowflakeCortexEmbedding embedding, SnowflakeConnection indexing, DestinationSnowflakeCortexProcessingConfigModel processing) { - this(embedding, indexing, Optional.empty(), processing); + this(embedding, indexing, Optional.empty(), + processing); } @JsonIgnore @@ -104,7 +109,9 @@ public SnowflakeConnection indexing() { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonIgnore public Optional omitRawText() { @@ -116,9 +123,10 @@ public DestinationSnowflakeCortexProcessingConfigModel processing() { return processing; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Embedding configuration @@ -139,7 +147,9 @@ public DestinationSnowflakeCortex withIndexing(SnowflakeConnection indexing) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationSnowflakeCortex withOmitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -147,8 +157,11 @@ public DestinationSnowflakeCortex withOmitRawText(boolean omitRawText) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationSnowflakeCortex withOmitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -162,7 +175,6 @@ public DestinationSnowflakeCortex withProcessing(DestinationSnowflakeCortexProce return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +185,18 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortex other = (DestinationSnowflakeCortex) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.embedding, other.embedding) && - Objects.deepEquals(this.indexing, other.indexing) && - Objects.deepEquals(this.omitRawText, other.omitRawText) && - Objects.deepEquals(this.processing, other.processing); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.embedding, other.embedding) && + Utils.enhancedDeepEquals(this.indexing, other.indexing) && + Utils.enhancedDeepEquals(this.omitRawText, other.omitRawText) && + Utils.enhancedDeepEquals(this.processing, other.processing); } @Override public int hashCode() { - return Objects.hash( - destinationType, - embedding, - indexing, - omitRawText, - processing); + return Utils.enhancedHash( + destinationType, embedding, indexing, + omitRawText, processing); } @Override @@ -199,21 +208,23 @@ public String toString() { "omitRawText", omitRawText, "processing", processing); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationSnowflakeCortexEmbedding embedding; - + private SnowflakeConnection indexing; - + private Optional omitRawText; - + private DestinationSnowflakeCortexProcessingConfigModel processing; - + private Builder() { // force use of static builder() method } + /** * Embedding configuration */ @@ -223,6 +234,7 @@ public Builder embedding(DestinationSnowflakeCortexEmbedding embedding) { return this; } + /** * Snowflake can be used to store vector data and retrieve embeddings. */ @@ -232,8 +244,11 @@ public Builder indexing(SnowflakeConnection indexing) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -242,7 +257,9 @@ public Builder omitRawText(boolean omitRawText) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -250,23 +267,24 @@ public Builder omitRawText(Optional omitRawText) { return this; } + public Builder processing(DestinationSnowflakeCortexProcessingConfigModel processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; } - + public DestinationSnowflakeCortex build() { if (omitRawText == null) { omitRawText = _SINGLETON_VALUE_OmitRawText.value(); } + return new DestinationSnowflakeCortex( - embedding, - indexing, - omitRawText, + embedding, indexing, omitRawText, processing); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexAzureOpenAI.java index 07bec56cb..9e8e59d7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexAzureOpenAI.java @@ -14,34 +14,37 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationSnowflakeCortexAzureOpenAI * - *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model + * with 1536 embedding dimensions. */ public class DestinationSnowflakeCortexAzureOpenAI { - /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("api_base") private String apiBase; /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonProperty("deployment") private String deployment; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("openai_key") private String openaiKey; @@ -61,7 +64,8 @@ public DestinationSnowflakeCortexAzureOpenAI( } /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String apiBase() { @@ -69,7 +73,8 @@ public String apiBase() { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonIgnore public String deployment() { @@ -83,19 +88,22 @@ public Optional mode() } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationSnowflakeCortexAzureOpenAI withApiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -104,7 +112,8 @@ public DestinationSnowflakeCortexAzureOpenAI withApiBase(String apiBase) { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public DestinationSnowflakeCortexAzureOpenAI withDeployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -113,7 +122,8 @@ public DestinationSnowflakeCortexAzureOpenAI withDeployment(String deployment) { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationSnowflakeCortexAzureOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -121,7 +131,6 @@ public DestinationSnowflakeCortexAzureOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +141,16 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortexAzureOpenAI other = (DestinationSnowflakeCortexAzureOpenAI) o; return - Objects.deepEquals(this.apiBase, other.apiBase) && - Objects.deepEquals(this.deployment, other.deployment) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.apiBase, other.apiBase) && + Utils.enhancedDeepEquals(this.deployment, other.deployment) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - apiBase, - deployment, - mode, + return Utils.enhancedHash( + apiBase, deployment, mode, openaiKey); } @@ -155,21 +162,24 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiBase; - + private String deployment; - + private String openaiKey; - + private Builder() { // force use of static builder() method } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder apiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -177,8 +187,10 @@ public Builder apiBase(String apiBase) { return this; } + /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public Builder deployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -186,22 +198,24 @@ public Builder deployment(String deployment) { return this; } + /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationSnowflakeCortexAzureOpenAI build() { + return new DestinationSnowflakeCortexAzureOpenAI( - apiBase, - deployment, - openaiKey); + apiBase, deployment, openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByMarkdownHeader.java index 1cd552316..8dd281fff 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByMarkdownHeader.java @@ -15,13 +15,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationSnowflakeCortexByMarkdownHeader * - *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. + *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits + * multiple sections, they will be combined into a single chunk. */ public class DestinationSnowflakeCortexByMarkdownHeader { @@ -30,7 +30,8 @@ public class DestinationSnowflakeCortexByMarkdownHeader { private Optional mode; /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("split_level") @@ -55,19 +56,22 @@ public Optional mod } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonIgnore public Optional splitLevel() { return splitLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationSnowflakeCortexByMarkdownHeader withSplitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -75,8 +79,10 @@ public DestinationSnowflakeCortexByMarkdownHeader withSplitLevel(long splitLevel return this; } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationSnowflakeCortexByMarkdownHeader withSplitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -84,7 +90,6 @@ public DestinationSnowflakeCortexByMarkdownHeader withSplitLevel(Optional return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +100,14 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortexByMarkdownHeader other = (DestinationSnowflakeCortexByMarkdownHeader) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.splitLevel, other.splitLevel); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.splitLevel, other.splitLevel); } @Override public int hashCode() { - return Objects.hash( - mode, - splitLevel); + return Utils.enhancedHash( + mode, splitLevel); } @Override @@ -112,17 +116,20 @@ public String toString() { "mode", mode, "splitLevel", splitLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional splitLevel; - + private Builder() { // force use of static builder() method } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -131,22 +138,25 @@ public Builder splitLevel(long splitLevel) { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); this.splitLevel = splitLevel; return this; } - + public DestinationSnowflakeCortexByMarkdownHeader build() { if (splitLevel == null) { splitLevel = _SINGLETON_VALUE_SplitLevel.value(); } + return new DestinationSnowflakeCortexByMarkdownHeader( splitLevel); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByProgrammingLanguage.java index 6642dfc3d..b47f417b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexByProgrammingLanguage.java @@ -14,22 +14,22 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationSnowflakeCortexByProgrammingLanguage * - *

    Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. + *

    Split the text by suitable delimiters based on the programming language. This is useful for + * splitting code into chunks. */ public class DestinationSnowflakeCortexByProgrammingLanguage { - /** * Split code in suitable places based on the programming language */ @JsonProperty("language") private DestinationSnowflakeCortexLanguage language; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -56,9 +56,10 @@ public Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Split code in suitable places based on the programming language @@ -69,7 +70,6 @@ public DestinationSnowflakeCortexByProgrammingLanguage withLanguage(DestinationS return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +80,14 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortexByProgrammingLanguage other = (DestinationSnowflakeCortexByProgrammingLanguage) o; return - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.language, other.language) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - language, - mode); + return Utils.enhancedHash( + language, mode); } @Override @@ -97,15 +96,17 @@ public String toString() { "language", language, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationSnowflakeCortexLanguage language; - + private Builder() { // force use of static builder() method } + /** * Split code in suitable places based on the programming language */ @@ -114,12 +115,14 @@ public Builder language(DestinationSnowflakeCortexLanguage language) { this.language = language; return this; } - + public DestinationSnowflakeCortexByProgrammingLanguage build() { + return new DestinationSnowflakeCortexByProgrammingLanguage( language); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexBySeparator.java index bb46ec6a7..c58f47e01 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexBySeparator.java @@ -16,16 +16,16 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * DestinationSnowflakeCortexBySeparator * - *

    Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. + *

    Split the text by the list of separators until the chunk size is reached, using the earlier + * mentioned separators where possible. This is useful for splitting text fields by paragraphs, + * sentences, words, etc. */ public class DestinationSnowflakeCortexBySeparator { - /** * Whether to keep the separator in the resulting chunks */ @@ -33,12 +33,16 @@ public class DestinationSnowflakeCortexBySeparator { @JsonProperty("keep_separator") private Optional keepSeparator; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("separators") @@ -74,7 +78,10 @@ public Optional mode() { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @SuppressWarnings("unchecked") @JsonIgnore @@ -82,9 +89,10 @@ public Optional> separators() { return (Optional>) separators; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Whether to keep the separator in the resulting chunks @@ -95,6 +103,7 @@ public DestinationSnowflakeCortexBySeparator withKeepSeparator(boolean keepSepar return this; } + /** * Whether to keep the separator in the resulting chunks */ @@ -105,7 +114,10 @@ public DestinationSnowflakeCortexBySeparator withKeepSeparator(Optional } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationSnowflakeCortexBySeparator withSeparators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -113,8 +125,12 @@ public DestinationSnowflakeCortexBySeparator withSeparators(List separat return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationSnowflakeCortexBySeparator withSeparators(Optional> separators) { Utils.checkNotNull(separators, "separators"); @@ -122,7 +138,6 @@ public DestinationSnowflakeCortexBySeparator withSeparators(Optional keepSeparator; - + private Optional> separators = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Whether to keep the separator in the resulting chunks */ @@ -182,8 +197,12 @@ public Builder keepSeparator(Optional keepSeparator) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -192,23 +211,27 @@ public Builder separators(List separators) { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(Optional> separators) { Utils.checkNotNull(separators, "separators"); this.separators = separators; return this; } - + public DestinationSnowflakeCortexBySeparator build() { if (keepSeparator == null) { keepSeparator = _SINGLETON_VALUE_KeepSeparator.value(); } + return new DestinationSnowflakeCortexBySeparator( - keepSeparator, - separators); + keepSeparator, separators); } + private static final LazySingletonValue> _SINGLETON_VALUE_KeepSeparator = new LazySingletonValue<>( "keep_separator", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCohere.java index 8127b6dab..fc54776b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCohere.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -27,6 +26,7 @@ public class DestinationSnowflakeCortexCohere { @JsonProperty("cohere_key") private String cohereKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -50,9 +50,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationSnowflakeCortexCohere withCohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); @@ -60,7 +61,6 @@ public DestinationSnowflakeCortexCohere withCohereKey(String cohereKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +71,14 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortexCohere other = (DestinationSnowflakeCortexCohere) o; return - Objects.deepEquals(this.cohereKey, other.cohereKey) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.cohereKey, other.cohereKey) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - cohereKey, - mode); + return Utils.enhancedHash( + cohereKey, mode); } @Override @@ -88,26 +87,30 @@ public String toString() { "cohereKey", cohereKey, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String cohereKey; - + private Builder() { // force use of static builder() method } + public Builder cohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); this.cohereKey = cohereKey; return this; } - + public DestinationSnowflakeCortexCohere build() { + return new DestinationSnowflakeCortexCohere( cohereKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCredentials.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCredentials.java index 352c22dd0..500f6bb1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexCredentials.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationSnowflakeCortexCredentials { +public class DestinationSnowflakeCortexCredentials { /** * Enter the password you want to use to access the database */ @@ -34,9 +33,10 @@ public String password() { return password; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Enter the password you want to use to access the database @@ -47,7 +47,6 @@ public DestinationSnowflakeCortexCredentials withPassword(String password) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -58,12 +57,12 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortexCredentials other = (DestinationSnowflakeCortexCredentials) o; return - Objects.deepEquals(this.password, other.password); + Utils.enhancedDeepEquals(this.password, other.password); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( password); } @@ -72,15 +71,17 @@ public String toString() { return Utils.toString(DestinationSnowflakeCortexCredentials.class, "password", password); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private Builder() { // force use of static builder() method } + /** * Enter the password you want to use to access the database */ @@ -89,10 +90,12 @@ public Builder password(String password) { this.password = password; return this; } - + public DestinationSnowflakeCortexCredentials build() { + return new DestinationSnowflakeCortexCredentials( password); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexEmbedding.java index cf658c6b8..3be937161 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexEmbedding.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationSnowflakeCortexEmbedding @@ -90,12 +89,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationSnowflakeCortexEmbedding other = (DestinationSnowflakeCortexEmbedding) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFake.java index e2cd1f572..a3338a01c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFake.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationSnowflakeCortexFake * - *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. + *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for + * testing the data pipeline without incurring any costs. */ public class DestinationSnowflakeCortexFake { @@ -30,7 +30,6 @@ public class DestinationSnowflakeCortexFake { @JsonCreator public DestinationSnowflakeCortexFake() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +39,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortexFake other = (DestinationSnowflakeCortexFake) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +68,21 @@ public String toString() { return Utils.toString(DestinationSnowflakeCortexFake.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationSnowflakeCortexFake build() { + return new DestinationSnowflakeCortexFake( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFieldNameMappingConfigModel.java index fe3f8107d..101740d9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexFieldNameMappingConfigModel.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationSnowflakeCortexFieldNameMappingConfigModel { +public class DestinationSnowflakeCortexFieldNameMappingConfigModel { /** * The field name in the source */ @@ -51,9 +50,10 @@ public String toField() { return toField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The field name in the source @@ -73,7 +73,6 @@ public DestinationSnowflakeCortexFieldNameMappingConfigModel withToField(String return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +83,14 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortexFieldNameMappingConfigModel other = (DestinationSnowflakeCortexFieldNameMappingConfigModel) o; return - Objects.deepEquals(this.fromField, other.fromField) && - Objects.deepEquals(this.toField, other.toField); + Utils.enhancedDeepEquals(this.fromField, other.fromField) && + Utils.enhancedDeepEquals(this.toField, other.toField); } @Override public int hashCode() { - return Objects.hash( - fromField, - toField); + return Utils.enhancedHash( + fromField, toField); } @Override @@ -101,17 +99,19 @@ public String toString() { "fromField", fromField, "toField", toField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fromField; - + private String toField; - + private Builder() { // force use of static builder() method } + /** * The field name in the source */ @@ -121,6 +121,7 @@ public Builder fromField(String fromField) { return this; } + /** * The field name to use in the destination */ @@ -129,11 +130,12 @@ public Builder toField(String toField) { this.toField = toField; return this; } - + public DestinationSnowflakeCortexFieldNameMappingConfigModel build() { + return new DestinationSnowflakeCortexFieldNameMappingConfigModel( - fromField, - toField); + fromField, toField); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java index a35969018..c4021b455 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexLanguage.java @@ -34,7 +34,7 @@ public enum DestinationSnowflakeCortexLanguage { @JsonValue private final String value; - private DestinationSnowflakeCortexLanguage(String value) { + DestinationSnowflakeCortexLanguage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexMode.java index ee87a2779..dc2a9df27 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexMode.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeCortexMode { @JsonValue private final String value; - private DestinationSnowflakeCortexMode(String value) { + DestinationSnowflakeCortexMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAI.java index 52f2f9b43..e99a3278a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAI.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationSnowflakeCortexOpenAI * - *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 + * embedding dimensions. */ public class DestinationSnowflakeCortexOpenAI { @@ -28,6 +28,7 @@ public class DestinationSnowflakeCortexOpenAI { @JsonProperty("mode") private Optional mode; + @JsonProperty("openai_key") private String openaiKey; @@ -50,9 +51,10 @@ public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationSnowflakeCortexOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -60,7 +62,6 @@ public DestinationSnowflakeCortexOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +72,14 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortexOpenAI other = (DestinationSnowflakeCortexOpenAI) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - mode, - openaiKey); + return Utils.enhancedHash( + mode, openaiKey); } @Override @@ -88,26 +88,30 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String openaiKey; - + private Builder() { // force use of static builder() method } + public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationSnowflakeCortexOpenAI build() { + return new DestinationSnowflakeCortexOpenAI( openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAICompatible.java index f694cc5ad..22675aa15 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexOpenAICompatible.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -41,6 +40,7 @@ public class DestinationSnowflakeCortexOpenAICompatible { @JsonProperty("dimensions") private long dimensions; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -72,7 +72,8 @@ public DestinationSnowflakeCortexOpenAICompatible( public DestinationSnowflakeCortexOpenAICompatible( String baseUrl, long dimensions) { - this(Optional.empty(), baseUrl, dimensions, Optional.empty()); + this(Optional.empty(), baseUrl, dimensions, + Optional.empty()); } @JsonIgnore @@ -110,9 +111,10 @@ public Optional modelName() { return modelName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationSnowflakeCortexOpenAICompatible withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -120,6 +122,7 @@ public DestinationSnowflakeCortexOpenAICompatible withApiKey(String apiKey) { return this; } + public DestinationSnowflakeCortexOpenAICompatible withApiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; @@ -153,6 +156,7 @@ public DestinationSnowflakeCortexOpenAICompatible withModelName(String modelName return this; } + /** * The name of the model to use for embedding */ @@ -162,7 +166,6 @@ public DestinationSnowflakeCortexOpenAICompatible withModelName(Optional return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +176,18 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortexOpenAICompatible other = (DestinationSnowflakeCortexOpenAICompatible) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.dimensions, other.dimensions) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.modelName, other.modelName); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.dimensions, other.dimensions) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.modelName, other.modelName); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - dimensions, - mode, - modelName); + return Utils.enhancedHash( + apiKey, baseUrl, dimensions, + mode, modelName); } @Override @@ -199,21 +199,23 @@ public String toString() { "mode", mode, "modelName", modelName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey; - + private String baseUrl; - + private Long dimensions; - + private Optional modelName; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = Optional.ofNullable(apiKey); @@ -226,6 +228,7 @@ public Builder apiKey(Optional apiKey) { return this; } + /** * The base URL for your OpenAI-compatible service */ @@ -235,6 +238,7 @@ public Builder baseUrl(String baseUrl) { return this; } + /** * The number of dimensions the embedding model is generating */ @@ -244,6 +248,7 @@ public Builder dimensions(long dimensions) { return this; } + /** * The name of the model to use for embedding */ @@ -261,7 +266,7 @@ public Builder modelName(Optional modelName) { this.modelName = modelName; return this; } - + public DestinationSnowflakeCortexOpenAICompatible build() { if (apiKey == null) { apiKey = _SINGLETON_VALUE_ApiKey.value(); @@ -269,13 +274,13 @@ public DestinationSnowflakeCortexOpenAICompatible build() { if (modelName == null) { modelName = _SINGLETON_VALUE_ModelName.value(); } + return new DestinationSnowflakeCortexOpenAICompatible( - apiKey, - baseUrl, - dimensions, + apiKey, baseUrl, dimensions, modelName); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiKey = new LazySingletonValue<>( "api_key", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexProcessingConfigModel.java index 0eacc3797..acc95fac2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexProcessingConfigModel.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class DestinationSnowflakeCortexProcessingConfigModel { +public class DestinationSnowflakeCortexProcessingConfigModel { /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -29,27 +28,46 @@ public class DestinationSnowflakeCortexProcessingConfigModel { private Optional chunkOverlap; /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonProperty("chunk_size") private long chunkSize; /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("field_name_mappings") private Optional> fieldNameMappings; /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata_fields") private Optional> metadataFields; /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("text_fields") @@ -86,7 +104,8 @@ public DestinationSnowflakeCortexProcessingConfigModel( public DestinationSnowflakeCortexProcessingConfigModel( long chunkSize) { - this(Optional.empty(), chunkSize, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), chunkSize, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -98,7 +117,8 @@ public Optional chunkOverlap() { } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonIgnore public long chunkSize() { @@ -106,7 +126,8 @@ public long chunkSize() { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +136,16 @@ public Optional> fie } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -124,7 +154,15 @@ public Optional> metadataFields() { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -141,9 +179,10 @@ public Optional textSplitter() { return (Optional) textSplitter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context @@ -154,6 +193,7 @@ public DestinationSnowflakeCortexProcessingConfigModel withChunkOverlap(long chu return this; } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -164,7 +204,8 @@ public DestinationSnowflakeCortexProcessingConfigModel withChunkOverlap(Optional } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public DestinationSnowflakeCortexProcessingConfigModel withChunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -173,7 +214,8 @@ public DestinationSnowflakeCortexProcessingConfigModel withChunkSize(long chunkS } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public DestinationSnowflakeCortexProcessingConfigModel withFieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -181,8 +223,10 @@ public DestinationSnowflakeCortexProcessingConfigModel withFieldNameMappings(Lis return this; } + /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public DestinationSnowflakeCortexProcessingConfigModel withFieldNameMappings(Optional> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -191,7 +235,16 @@ public DestinationSnowflakeCortexProcessingConfigModel withFieldNameMappings(Opt } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationSnowflakeCortexProcessingConfigModel withMetadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -199,8 +252,18 @@ public DestinationSnowflakeCortexProcessingConfigModel withMetadataFields(ListWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationSnowflakeCortexProcessingConfigModel withMetadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -209,7 +272,15 @@ public DestinationSnowflakeCortexProcessingConfigModel withMetadataFields(Option } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationSnowflakeCortexProcessingConfigModel withTextFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -217,8 +288,17 @@ public DestinationSnowflakeCortexProcessingConfigModel withTextFields(ListWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationSnowflakeCortexProcessingConfigModel withTextFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -235,6 +315,7 @@ public DestinationSnowflakeCortexProcessingConfigModel withTextSplitter(Destinat return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -244,7 +325,6 @@ public DestinationSnowflakeCortexProcessingConfigModel withTextSplitter(Optional return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -255,23 +335,19 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeCortexProcessingConfigModel other = (DestinationSnowflakeCortexProcessingConfigModel) o; return - Objects.deepEquals(this.chunkOverlap, other.chunkOverlap) && - Objects.deepEquals(this.chunkSize, other.chunkSize) && - Objects.deepEquals(this.fieldNameMappings, other.fieldNameMappings) && - Objects.deepEquals(this.metadataFields, other.metadataFields) && - Objects.deepEquals(this.textFields, other.textFields) && - Objects.deepEquals(this.textSplitter, other.textSplitter); + Utils.enhancedDeepEquals(this.chunkOverlap, other.chunkOverlap) && + Utils.enhancedDeepEquals(this.chunkSize, other.chunkSize) && + Utils.enhancedDeepEquals(this.fieldNameMappings, other.fieldNameMappings) && + Utils.enhancedDeepEquals(this.metadataFields, other.metadataFields) && + Utils.enhancedDeepEquals(this.textFields, other.textFields) && + Utils.enhancedDeepEquals(this.textSplitter, other.textSplitter); } @Override public int hashCode() { - return Objects.hash( - chunkOverlap, - chunkSize, - fieldNameMappings, - metadataFields, - textFields, - textSplitter); + return Utils.enhancedHash( + chunkOverlap, chunkSize, fieldNameMappings, + metadataFields, textFields, textSplitter); } @Override @@ -284,25 +360,27 @@ public String toString() { "textFields", textFields, "textSplitter", textSplitter); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional chunkOverlap; - + private Long chunkSize; - + private Optional> fieldNameMappings = Optional.empty(); - + private Optional> metadataFields = Optional.empty(); - + private Optional> textFields = Optional.empty(); - + private Optional textSplitter = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -321,8 +399,10 @@ public Builder chunkOverlap(Optional chunkOverlap) { return this; } + /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public Builder chunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -330,8 +410,10 @@ public Builder chunkSize(long chunkSize) { return this; } + /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public Builder fieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -340,7 +422,8 @@ public Builder fieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -348,8 +431,18 @@ public Builder fieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -358,7 +451,16 @@ public Builder metadataFields(List metadataFields) { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -366,8 +468,17 @@ public Builder metadataFields(Optional> metadataFields) { return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -376,7 +487,15 @@ public Builder textFields(List textFields) { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -384,6 +503,7 @@ public Builder textFields(Optional> textFields) { return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -401,20 +521,18 @@ public Builder textSplitter(Optional> _SINGLETON_VALUE_ChunkOverlap = new LazySingletonValue<>( "chunk_overlap", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java index 50f8f77ee..5ba454322 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode { @JsonValue private final String value; - private DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode(String value) { + DestinationSnowflakeCortexSchemasEmbeddingEmbedding5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.java index ec7f54a8a..437c8e2e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode { @JsonValue private final String value; - private DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode(String value) { + DestinationSnowflakeCortexSchemasEmbeddingEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingMode.java index 3864d4a4c..9f86bffc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeCortexSchemasEmbeddingMode { @JsonValue private final String value; - private DestinationSnowflakeCortexSchemasEmbeddingMode(String value) { + DestinationSnowflakeCortexSchemasEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasMode.java index 7a999f8c6..911520957 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeCortexSchemasMode { @JsonValue private final String value; - private DestinationSnowflakeCortexSchemasMode(String value) { + DestinationSnowflakeCortexSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingMode.java index affffc643..298265570 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingMode.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeCortexSchemasProcessingMode { @JsonValue private final String value; - private DestinationSnowflakeCortexSchemasProcessingMode(String value) { + DestinationSnowflakeCortexSchemasProcessingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.java index 491da9553..b1aecb2cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeCortexSchemasProcessingTextSplitterMode { @JsonValue private final String value; - private DestinationSnowflakeCortexSchemasProcessingTextSplitterMode(String value) { + DestinationSnowflakeCortexSchemasProcessingTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java index fba9d3a92..1b6fa2328 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterM @JsonValue private final String value; - private DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode(String value) { + DestinationSnowflakeCortexSchemasProcessingTextSplitterTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexTextSplitter.java index 1a120696d..6b3bfd820 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeCortexTextSplitter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationSnowflakeCortexTextSplitter @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationSnowflakeCortexTextSplitter other = (DestinationSnowflakeCortexTextSplitter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java index 87480c9d5..6f1e52e91 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeOAuth20.java @@ -14,17 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationSnowflakeOAuth20 { +public class DestinationSnowflakeOAuth20 { /** * Enter you application's Access Token */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -69,7 +69,8 @@ public DestinationSnowflakeOAuth20( public DestinationSnowflakeOAuth20( String accessToken, String refreshToken) { - this(accessToken, Optional.empty(), Optional.empty(), refreshToken); + this(accessToken, Optional.empty(), Optional.empty(), + refreshToken); } /** @@ -110,9 +111,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Enter you application's Access Token @@ -132,6 +134,7 @@ public DestinationSnowflakeOAuth20 withClientId(String clientId) { return this; } + /** * Enter your application's Client ID */ @@ -150,6 +153,7 @@ public DestinationSnowflakeOAuth20 withClientSecret(String clientSecret) { return this; } + /** * Enter your application's Client secret */ @@ -168,7 +172,6 @@ public DestinationSnowflakeOAuth20 withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -179,21 +182,18 @@ public boolean equals(java.lang.Object o) { } DestinationSnowflakeOAuth20 other = (DestinationSnowflakeOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - refreshToken); + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, refreshToken); } @Override @@ -205,21 +205,23 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * Enter you application's Access Token */ @@ -229,6 +231,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * Enter your application's Client ID */ @@ -247,6 +250,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * Enter your application's Client secret */ @@ -265,6 +269,7 @@ public Builder clientSecret(Optional clientSecret) { return this; } + /** * Enter your application's Refresh Token */ @@ -273,15 +278,15 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public DestinationSnowflakeOAuth20 build() { + return new DestinationSnowflakeOAuth20( - accessToken, - clientId, - clientSecret, + accessToken, clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java index d0a6162e4..87fc7d501 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasAuthType.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeSchemasAuthType { @JsonValue private final String value; - private DestinationSnowflakeSchemasAuthType(String value) { + DestinationSnowflakeSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java index e344a2760..c01943c9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSnowflakeSchemasCredentialsAuthType.java @@ -14,7 +14,7 @@ public enum DestinationSnowflakeSchemasCredentialsAuthType { @JsonValue private final String value; - private DestinationSnowflakeSchemasCredentialsAuthType(String value) { + DestinationSnowflakeSchemasCredentialsAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationSurrealdb.java b/src/main/java/com/airbyte/api/models/shared/DestinationSurrealdb.java new file mode 100644 index 000000000..b979ae149 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/DestinationSurrealdb.java @@ -0,0 +1,352 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class DestinationSurrealdb { + + @JsonProperty("destinationType") + private Surrealdb destinationType; + + /** + * The database to use in SurrealDB. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("surrealdb_database") + private Optional surrealdbDatabase; + + /** + * The namespace to use in SurrealDB. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("surrealdb_namespace") + private Optional surrealdbNamespace; + + /** + * The password to use in SurrealDB. + */ + @JsonProperty("surrealdb_password") + private String surrealdbPassword; + + /** + * The URL of the SurrealDB instance. + */ + @JsonProperty("surrealdb_url") + private String surrealdbUrl; + + /** + * The username to use in SurrealDB. + */ + @JsonProperty("surrealdb_username") + private String surrealdbUsername; + + @JsonCreator + public DestinationSurrealdb( + @JsonProperty("surrealdb_database") Optional surrealdbDatabase, + @JsonProperty("surrealdb_namespace") Optional surrealdbNamespace, + @JsonProperty("surrealdb_password") String surrealdbPassword, + @JsonProperty("surrealdb_url") String surrealdbUrl, + @JsonProperty("surrealdb_username") String surrealdbUsername) { + Utils.checkNotNull(surrealdbDatabase, "surrealdbDatabase"); + Utils.checkNotNull(surrealdbNamespace, "surrealdbNamespace"); + Utils.checkNotNull(surrealdbPassword, "surrealdbPassword"); + Utils.checkNotNull(surrealdbUrl, "surrealdbUrl"); + Utils.checkNotNull(surrealdbUsername, "surrealdbUsername"); + this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.surrealdbDatabase = surrealdbDatabase; + this.surrealdbNamespace = surrealdbNamespace; + this.surrealdbPassword = surrealdbPassword; + this.surrealdbUrl = surrealdbUrl; + this.surrealdbUsername = surrealdbUsername; + } + + public DestinationSurrealdb( + String surrealdbPassword, + String surrealdbUrl, + String surrealdbUsername) { + this(Optional.empty(), Optional.empty(), surrealdbPassword, + surrealdbUrl, surrealdbUsername); + } + + @JsonIgnore + public Surrealdb destinationType() { + return destinationType; + } + + /** + * The database to use in SurrealDB. + */ + @JsonIgnore + public Optional surrealdbDatabase() { + return surrealdbDatabase; + } + + /** + * The namespace to use in SurrealDB. + */ + @JsonIgnore + public Optional surrealdbNamespace() { + return surrealdbNamespace; + } + + /** + * The password to use in SurrealDB. + */ + @JsonIgnore + public String surrealdbPassword() { + return surrealdbPassword; + } + + /** + * The URL of the SurrealDB instance. + */ + @JsonIgnore + public String surrealdbUrl() { + return surrealdbUrl; + } + + /** + * The username to use in SurrealDB. + */ + @JsonIgnore + public String surrealdbUsername() { + return surrealdbUsername; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The database to use in SurrealDB. + */ + public DestinationSurrealdb withSurrealdbDatabase(String surrealdbDatabase) { + Utils.checkNotNull(surrealdbDatabase, "surrealdbDatabase"); + this.surrealdbDatabase = Optional.ofNullable(surrealdbDatabase); + return this; + } + + + /** + * The database to use in SurrealDB. + */ + public DestinationSurrealdb withSurrealdbDatabase(Optional surrealdbDatabase) { + Utils.checkNotNull(surrealdbDatabase, "surrealdbDatabase"); + this.surrealdbDatabase = surrealdbDatabase; + return this; + } + + /** + * The namespace to use in SurrealDB. + */ + public DestinationSurrealdb withSurrealdbNamespace(String surrealdbNamespace) { + Utils.checkNotNull(surrealdbNamespace, "surrealdbNamespace"); + this.surrealdbNamespace = Optional.ofNullable(surrealdbNamespace); + return this; + } + + + /** + * The namespace to use in SurrealDB. + */ + public DestinationSurrealdb withSurrealdbNamespace(Optional surrealdbNamespace) { + Utils.checkNotNull(surrealdbNamespace, "surrealdbNamespace"); + this.surrealdbNamespace = surrealdbNamespace; + return this; + } + + /** + * The password to use in SurrealDB. + */ + public DestinationSurrealdb withSurrealdbPassword(String surrealdbPassword) { + Utils.checkNotNull(surrealdbPassword, "surrealdbPassword"); + this.surrealdbPassword = surrealdbPassword; + return this; + } + + /** + * The URL of the SurrealDB instance. + */ + public DestinationSurrealdb withSurrealdbUrl(String surrealdbUrl) { + Utils.checkNotNull(surrealdbUrl, "surrealdbUrl"); + this.surrealdbUrl = surrealdbUrl; + return this; + } + + /** + * The username to use in SurrealDB. + */ + public DestinationSurrealdb withSurrealdbUsername(String surrealdbUsername) { + Utils.checkNotNull(surrealdbUsername, "surrealdbUsername"); + this.surrealdbUsername = surrealdbUsername; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DestinationSurrealdb other = (DestinationSurrealdb) o; + return + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.surrealdbDatabase, other.surrealdbDatabase) && + Utils.enhancedDeepEquals(this.surrealdbNamespace, other.surrealdbNamespace) && + Utils.enhancedDeepEquals(this.surrealdbPassword, other.surrealdbPassword) && + Utils.enhancedDeepEquals(this.surrealdbUrl, other.surrealdbUrl) && + Utils.enhancedDeepEquals(this.surrealdbUsername, other.surrealdbUsername); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + destinationType, surrealdbDatabase, surrealdbNamespace, + surrealdbPassword, surrealdbUrl, surrealdbUsername); + } + + @Override + public String toString() { + return Utils.toString(DestinationSurrealdb.class, + "destinationType", destinationType, + "surrealdbDatabase", surrealdbDatabase, + "surrealdbNamespace", surrealdbNamespace, + "surrealdbPassword", surrealdbPassword, + "surrealdbUrl", surrealdbUrl, + "surrealdbUsername", surrealdbUsername); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional surrealdbDatabase; + + private Optional surrealdbNamespace; + + private String surrealdbPassword; + + private String surrealdbUrl; + + private String surrealdbUsername; + + private Builder() { + // force use of static builder() method + } + + + /** + * The database to use in SurrealDB. + */ + public Builder surrealdbDatabase(String surrealdbDatabase) { + Utils.checkNotNull(surrealdbDatabase, "surrealdbDatabase"); + this.surrealdbDatabase = Optional.ofNullable(surrealdbDatabase); + return this; + } + + /** + * The database to use in SurrealDB. + */ + public Builder surrealdbDatabase(Optional surrealdbDatabase) { + Utils.checkNotNull(surrealdbDatabase, "surrealdbDatabase"); + this.surrealdbDatabase = surrealdbDatabase; + return this; + } + + + /** + * The namespace to use in SurrealDB. + */ + public Builder surrealdbNamespace(String surrealdbNamespace) { + Utils.checkNotNull(surrealdbNamespace, "surrealdbNamespace"); + this.surrealdbNamespace = Optional.ofNullable(surrealdbNamespace); + return this; + } + + /** + * The namespace to use in SurrealDB. + */ + public Builder surrealdbNamespace(Optional surrealdbNamespace) { + Utils.checkNotNull(surrealdbNamespace, "surrealdbNamespace"); + this.surrealdbNamespace = surrealdbNamespace; + return this; + } + + + /** + * The password to use in SurrealDB. + */ + public Builder surrealdbPassword(String surrealdbPassword) { + Utils.checkNotNull(surrealdbPassword, "surrealdbPassword"); + this.surrealdbPassword = surrealdbPassword; + return this; + } + + + /** + * The URL of the SurrealDB instance. + */ + public Builder surrealdbUrl(String surrealdbUrl) { + Utils.checkNotNull(surrealdbUrl, "surrealdbUrl"); + this.surrealdbUrl = surrealdbUrl; + return this; + } + + + /** + * The username to use in SurrealDB. + */ + public Builder surrealdbUsername(String surrealdbUsername) { + Utils.checkNotNull(surrealdbUsername, "surrealdbUsername"); + this.surrealdbUsername = surrealdbUsername; + return this; + } + + public DestinationSurrealdb build() { + if (surrealdbDatabase == null) { + surrealdbDatabase = _SINGLETON_VALUE_SurrealdbDatabase.value(); + } + if (surrealdbNamespace == null) { + surrealdbNamespace = _SINGLETON_VALUE_SurrealdbNamespace.value(); + } + + return new DestinationSurrealdb( + surrealdbDatabase, surrealdbNamespace, surrealdbPassword, + surrealdbUrl, surrealdbUsername); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = + new LazySingletonValue<>( + "destinationType", + "\"surrealdb\"", + new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_SurrealdbDatabase = + new LazySingletonValue<>( + "surrealdb_database", + "\"airbyte\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_SurrealdbNamespace = + new LazySingletonValue<>( + "surrealdb_namespace", + "\"airbyte\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradata.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradata.java index 2fdf95d76..c015bf39d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradata.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradata.java @@ -15,14 +15,32 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class DestinationTeradata { @JsonProperty("destinationType") private Teradata destinationType; + /** + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("disable_type_dedupe") + private Optional disableTypeDedupe; + + /** + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("drop_cascade") + private Optional dropCascade; + /** * Hostname of the database. */ @@ -30,25 +48,37 @@ public class DestinationTeradata { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") private Optional jdbcUrlParams; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("logmech") private Optional logmech; /** - * Defines the custom session query band using name-value pairs. For example, 'org=Finance;report=Fin123;' + * Defines the custom session query band using name-value pairs. For example, + * 'org=Finance;report=Fin123;' */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("query_band") private Optional queryBand; /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The database to write raw tables into + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("raw_data_schema") + private Optional rawDataSchema; + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("schema") @@ -62,14 +92,21 @@ public class DestinationTeradata { private Optional ssl; /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the destination database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the destination database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the destination database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the destination database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the destination database server - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLMODE"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the destination database + * prefer - Chose this mode to allow unencrypted connection only if the destination database + * does not support encryption + * require - Chose this mode to always require encryption. If the destination database server + * does not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the destination + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the destination database server + * See more information - + * in the docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl_mode") @@ -77,25 +114,34 @@ public class DestinationTeradata { @JsonCreator public DestinationTeradata( + @JsonProperty("disable_type_dedupe") Optional disableTypeDedupe, + @JsonProperty("drop_cascade") Optional dropCascade, @JsonProperty("host") String host, @JsonProperty("jdbc_url_params") Optional jdbcUrlParams, @JsonProperty("logmech") Optional logmech, @JsonProperty("query_band") Optional queryBand, + @JsonProperty("raw_data_schema") Optional rawDataSchema, @JsonProperty("schema") Optional schema, @JsonProperty("ssl") Optional ssl, @JsonProperty("ssl_mode") Optional sslMode) { + Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); + Utils.checkNotNull(dropCascade, "dropCascade"); Utils.checkNotNull(host, "host"); Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); Utils.checkNotNull(logmech, "logmech"); Utils.checkNotNull(queryBand, "queryBand"); + Utils.checkNotNull(rawDataSchema, "rawDataSchema"); Utils.checkNotNull(schema, "schema"); Utils.checkNotNull(ssl, "ssl"); Utils.checkNotNull(sslMode, "sslMode"); this.destinationType = Builder._SINGLETON_VALUE_DestinationType.value(); + this.disableTypeDedupe = disableTypeDedupe; + this.dropCascade = dropCascade; this.host = host; this.jdbcUrlParams = jdbcUrlParams; this.logmech = logmech; this.queryBand = queryBand; + this.rawDataSchema = rawDataSchema; this.schema = schema; this.ssl = ssl; this.sslMode = sslMode; @@ -103,7 +149,10 @@ public DestinationTeradata( public DestinationTeradata( String host) { - this(host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), host, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonIgnore @@ -111,6 +160,26 @@ public Teradata destinationType() { return destinationType; } + /** + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions + */ + @JsonIgnore + public Optional disableTypeDedupe() { + return disableTypeDedupe; + } + + /** + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. + */ + @JsonIgnore + public Optional dropCascade() { + return dropCascade; + } + /** * Hostname of the database. */ @@ -120,7 +189,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -134,7 +205,8 @@ public Optional logmech() { } /** - * Defines the custom session query band using name-value pairs. For example, 'org=Finance;report=Fin123;' + * Defines the custom session query band using name-value pairs. For example, + * 'org=Finance;report=Fin123;' */ @JsonIgnore public Optional queryBand() { @@ -142,7 +214,16 @@ public Optional queryBand() { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The database to write raw tables into + */ + @JsonIgnore + public Optional rawDataSchema() { + return rawDataSchema; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ @JsonIgnore public Optional schema() { @@ -158,14 +239,21 @@ public Optional ssl() { } /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the destination database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the destination database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the destination database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the destination database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the destination database server - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLMODE"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the destination database + * prefer - Chose this mode to allow unencrypted connection only if the destination database + * does not support encryption + * require - Chose this mode to always require encryption. If the destination database server + * does not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the destination + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the destination database server + * See more information - + * in the docs. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -173,9 +261,56 @@ public Optional sslMode() { return (Optional) sslMode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + /** + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions + */ + public DestinationTeradata withDisableTypeDedupe(boolean disableTypeDedupe) { + Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); + this.disableTypeDedupe = Optional.ofNullable(disableTypeDedupe); + return this; + } + + + /** + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions + */ + public DestinationTeradata withDisableTypeDedupe(Optional disableTypeDedupe) { + Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); + this.disableTypeDedupe = disableTypeDedupe; + return this; + } + + /** + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. + */ + public DestinationTeradata withDropCascade(boolean dropCascade) { + Utils.checkNotNull(dropCascade, "dropCascade"); + this.dropCascade = Optional.ofNullable(dropCascade); + return this; + } + + + /** + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. + */ + public DestinationTeradata withDropCascade(Optional dropCascade) { + Utils.checkNotNull(dropCascade, "dropCascade"); + this.dropCascade = dropCascade; + return this; + } /** * Hostname of the database. @@ -187,7 +322,9 @@ public DestinationTeradata withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationTeradata withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -195,8 +332,11 @@ public DestinationTeradata withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationTeradata withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -210,6 +350,7 @@ public DestinationTeradata withLogmech(AuthorizationMechanism logmech) { return this; } + public DestinationTeradata withLogmech(Optional logmech) { Utils.checkNotNull(logmech, "logmech"); this.logmech = logmech; @@ -217,7 +358,8 @@ public DestinationTeradata withLogmech(Optional queryBand) { Utils.checkNotNull(queryBand, "queryBand"); @@ -235,7 +379,27 @@ public DestinationTeradata withQueryBand(Optional queryBand) { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The database to write raw tables into + */ + public DestinationTeradata withRawDataSchema(String rawDataSchema) { + Utils.checkNotNull(rawDataSchema, "rawDataSchema"); + this.rawDataSchema = Optional.ofNullable(rawDataSchema); + return this; + } + + + /** + * The database to write raw tables into + */ + public DestinationTeradata withRawDataSchema(Optional rawDataSchema) { + Utils.checkNotNull(rawDataSchema, "rawDataSchema"); + this.rawDataSchema = rawDataSchema; + return this; + } + + /** + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public DestinationTeradata withSchema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -243,8 +407,10 @@ public DestinationTeradata withSchema(String schema) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public DestinationTeradata withSchema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -261,6 +427,7 @@ public DestinationTeradata withSsl(boolean ssl) { return this; } + /** * Encrypt data using SSL. When activating SSL, please select one of the SSL modes. */ @@ -271,14 +438,21 @@ public DestinationTeradata withSsl(Optional ssl) { } /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the destination database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the destination database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the destination database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the destination database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the destination database server - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLMODE"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the destination database + * prefer - Chose this mode to allow unencrypted connection only if the destination database + * does not support encryption + * require - Chose this mode to always require encryption. If the destination database server + * does not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the destination + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the destination database server + * See more information - + * in the docs. */ public DestinationTeradata withSslMode(DestinationTeradataSSLModes sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -286,15 +460,23 @@ public DestinationTeradata withSslMode(DestinationTeradataSSLModes sslMode) { return this; } + /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the destination database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the destination database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the destination database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the destination database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the destination database server - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLMODE"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the destination database + * prefer - Chose this mode to allow unencrypted connection only if the destination database + * does not support encryption + * require - Chose this mode to always require encryption. If the destination database server + * does not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the destination + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the destination database server + * See more information - + * in the docs. */ public DestinationTeradata withSslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -302,7 +484,6 @@ public DestinationTeradata withSslMode(Optional disableTypeDedupe; + + private Optional dropCascade; + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional logmech = Optional.empty(); - + private Optional queryBand = Optional.empty(); - + + private Optional rawDataSchema = Optional.empty(); + private Optional schema; - + private Optional ssl; - + private Optional sslMode = Optional.empty(); - + private Builder() { // force use of static builder() method } + + /** + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions + */ + public Builder disableTypeDedupe(boolean disableTypeDedupe) { + Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); + this.disableTypeDedupe = Optional.ofNullable(disableTypeDedupe); + return this; + } + + /** + * Disable Writing Final Tables. WARNING! The data format in _airbyte_data is likely stable but there + * are no guarantees that other metadata columns will remain the same in future versions + */ + public Builder disableTypeDedupe(Optional disableTypeDedupe) { + Utils.checkNotNull(disableTypeDedupe, "disableTypeDedupe"); + this.disableTypeDedupe = disableTypeDedupe; + return this; + } + + + /** + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. + */ + public Builder dropCascade(boolean dropCascade) { + Utils.checkNotNull(dropCascade, "dropCascade"); + this.dropCascade = Optional.ofNullable(dropCascade); + return this; + } + + /** + * Drop tables with CASCADE. WARNING! This will delete all data in all dependent objects (views, etc.). + * + *

    Use with caution. This option is intended for usecases which can easily rebuild the dependent + * objects. + */ + public Builder dropCascade(Optional dropCascade) { + Utils.checkNotNull(dropCascade, "dropCascade"); + this.dropCascade = dropCascade; + return this; + } + + /** * Hostname of the database. */ @@ -378,8 +615,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -388,7 +628,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -396,6 +638,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + public Builder logmech(AuthorizationMechanism logmech) { Utils.checkNotNull(logmech, "logmech"); this.logmech = Optional.ofNullable(logmech); @@ -408,8 +651,10 @@ public Builder logmech(Optional logmech) { return this; } + /** - * Defines the custom session query band using name-value pairs. For example, 'org=Finance;report=Fin123;' + * Defines the custom session query band using name-value pairs. For example, + * 'org=Finance;report=Fin123;' */ public Builder queryBand(String queryBand) { Utils.checkNotNull(queryBand, "queryBand"); @@ -418,7 +663,8 @@ public Builder queryBand(String queryBand) { } /** - * Defines the custom session query band using name-value pairs. For example, 'org=Finance;report=Fin123;' + * Defines the custom session query band using name-value pairs. For example, + * 'org=Finance;report=Fin123;' */ public Builder queryBand(Optional queryBand) { Utils.checkNotNull(queryBand, "queryBand"); @@ -426,8 +672,29 @@ public Builder queryBand(Optional queryBand) { return this; } + + /** + * The database to write raw tables into + */ + public Builder rawDataSchema(String rawDataSchema) { + Utils.checkNotNull(rawDataSchema, "rawDataSchema"); + this.rawDataSchema = Optional.ofNullable(rawDataSchema); + return this; + } + + /** + * The database to write raw tables into + */ + public Builder rawDataSchema(Optional rawDataSchema) { + Utils.checkNotNull(rawDataSchema, "rawDataSchema"); + this.rawDataSchema = rawDataSchema; + return this; + } + + /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public Builder schema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -436,7 +703,8 @@ public Builder schema(String schema) { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public Builder schema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -444,6 +712,7 @@ public Builder schema(Optional schema) { return this; } + /** * Encrypt data using SSL. When activating SSL, please select one of the SSL modes. */ @@ -462,15 +731,23 @@ public Builder ssl(Optional ssl) { return this; } + /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the destination database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the destination database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the destination database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the destination database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the destination database server - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLMODE"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the destination database + * prefer - Chose this mode to allow unencrypted connection only if the destination database + * does not support encryption + * require - Chose this mode to always require encryption. If the destination database server + * does not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the destination + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the destination database server + * See more information - + * in the docs. */ public Builder sslMode(DestinationTeradataSSLModes sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -479,44 +756,68 @@ public Builder sslMode(DestinationTeradataSSLModes sslMode) { } /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the destination database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the destination database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the destination database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the destination database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the destination database server - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLMODE"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the destination database + * prefer - Chose this mode to allow unencrypted connection only if the destination database + * does not support encryption + * require - Chose this mode to always require encryption. If the destination database server + * does not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the destination + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the destination database server + * See more information - + * in the docs. */ public Builder sslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); this.sslMode = sslMode; return this; } - + public DestinationTeradata build() { + if (disableTypeDedupe == null) { + disableTypeDedupe = _SINGLETON_VALUE_DisableTypeDedupe.value(); + } + if (dropCascade == null) { + dropCascade = _SINGLETON_VALUE_DropCascade.value(); + } if (schema == null) { schema = _SINGLETON_VALUE_Schema.value(); } if (ssl == null) { ssl = _SINGLETON_VALUE_Ssl.value(); } + return new DestinationTeradata( - host, - jdbcUrlParams, - logmech, - queryBand, - schema, - ssl, + disableTypeDedupe, dropCascade, host, + jdbcUrlParams, logmech, queryBand, + rawDataSchema, schema, ssl, sslMode); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", "\"teradata\"", new TypeReference() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_DisableTypeDedupe = + new LazySingletonValue<>( + "disable_type_dedupe", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_DropCascade = + new LazySingletonValue<>( + "drop_cascade", + "false", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_Schema = new LazySingletonValue<>( "schema", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAllow.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAllow.java index 3a1c8f1c0..f8809e061 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAllow.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAllow.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class DestinationTeradataAllow { @JsonCreator public DestinationTeradataAllow() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } DestinationTeradataAllow other = (DestinationTeradataAllow) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(DestinationTeradataAllow.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationTeradataAllow build() { + return new DestinationTeradataAllow( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAuthType.java index 9fd15b4d4..4f8301000 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataAuthType.java @@ -14,7 +14,7 @@ public enum DestinationTeradataAuthType { @JsonValue private final String value; - private DestinationTeradataAuthType(String value) { + DestinationTeradataAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataDisable.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataDisable.java index f8e6b706d..ac649029e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataDisable.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataDisable.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class DestinationTeradataDisable { @JsonCreator public DestinationTeradataDisable() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } DestinationTeradataDisable other = (DestinationTeradataDisable) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(DestinationTeradataDisable.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationTeradataDisable build() { + return new DestinationTeradataDisable( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java index a1e15c2fb..dd9cbe2ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataMode.java @@ -14,7 +14,7 @@ public enum DestinationTeradataMode { @JsonValue private final String value; - private DestinationTeradataMode(String value) { + DestinationTeradataMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataPrefer.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataPrefer.java index 15696b6c9..e6249ce06 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataPrefer.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataPrefer.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class DestinationTeradataPrefer { @JsonCreator public DestinationTeradataPrefer() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } DestinationTeradataPrefer other = (DestinationTeradataPrefer) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(DestinationTeradataPrefer.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationTeradataPrefer build() { + return new DestinationTeradataPrefer( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataRequire.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataRequire.java index b3913703b..91d3dcabe 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataRequire.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataRequire.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class DestinationTeradataRequire { @JsonCreator public DestinationTeradataRequire() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } DestinationTeradataRequire other = (DestinationTeradataRequire) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(DestinationTeradataRequire.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationTeradataRequire build() { + return new DestinationTeradataRequire( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSSLModes.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSSLModes.java index 358b803d7..1923629f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSSLModes.java @@ -14,19 +14,25 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationTeradataSSLModes * - *

    SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the destination database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the destination database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the destination database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the destination database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the destination database server - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLMODE"> in the docs</a>. + *

    SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the destination database + * prefer - Chose this mode to allow unencrypted connection only if the destination database + * does not support encryption + * require - Chose this mode to always require encryption. If the destination database server + * does not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the destination + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the destination database server + * See more information - + * in the docs. */ @JsonDeserialize(using = DestinationTeradataSSLModes._Deserializer.class) public class DestinationTeradataSSLModes { @@ -103,12 +109,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationTeradataSSLModes other = (DestinationTeradataSSLModes) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasAuthType.java index c46947d54..ea063fa2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasAuthType.java @@ -14,7 +14,7 @@ public enum DestinationTeradataSchemasAuthType { @JsonValue private final String value; - private DestinationTeradataSchemasAuthType(String value) { + DestinationTeradataSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java index 7a7563360..fb4c2a02e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationTeradataSchemasMode { @JsonValue private final String value; - private DestinationTeradataSchemasMode(String value) { + DestinationTeradataSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes5Mode.java index 1b162c171..9231b4332 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes5Mode.java @@ -14,7 +14,7 @@ public enum DestinationTeradataSchemasSSLModeSSLModes5Mode { @JsonValue private final String value; - private DestinationTeradataSchemasSSLModeSSLModes5Mode(String value) { + DestinationTeradataSchemasSSLModeSSLModes5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes6Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes6Mode.java index bd04e48e6..9b35d48ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModes6Mode.java @@ -14,7 +14,7 @@ public enum DestinationTeradataSchemasSSLModeSSLModes6Mode { @JsonValue private final String value; - private DestinationTeradataSchemasSSLModeSSLModes6Mode(String value) { + DestinationTeradataSchemasSSLModeSSLModes6Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModesMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModesMode.java index 8f48f9c5f..ba5d60d86 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSSLModeSSLModesMode.java @@ -14,7 +14,7 @@ public enum DestinationTeradataSchemasSSLModeSSLModesMode { @JsonValue private final String value; - private DestinationTeradataSchemasSSLModeSSLModesMode(String value) { + DestinationTeradataSchemasSSLModeSSLModesMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSslModeMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSslModeMode.java index eab2ad347..1509a80af 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataSchemasSslModeMode.java @@ -14,7 +14,7 @@ public enum DestinationTeradataSchemasSslModeMode { @JsonValue private final String value; - private DestinationTeradataSchemasSslModeMode(String value) { + DestinationTeradataSchemasSslModeMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyCa.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyCa.java index ceb56d6e9..c909d6399 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyCa.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyCa.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -29,8 +28,11 @@ public class DestinationTeradataVerifyCa { private Optional mode; /** - * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-ca. - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLCA"> in the docs</a>. + * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use + * with SSLMODE=verify-ca. + * See more information - + * in the docs. */ @JsonProperty("ssl_ca_certificate") private String sslCaCertificate; @@ -50,21 +52,28 @@ public Optional mode() { } /** - * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-ca. - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLCA"> in the docs</a>. + * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use + * with SSLMODE=verify-ca. + * See more information - + * in the docs. */ @JsonIgnore public String sslCaCertificate() { return sslCaCertificate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-ca. - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLCA"> in the docs</a>. + * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use + * with SSLMODE=verify-ca. + * See more information - + * in the docs. */ public DestinationTeradataVerifyCa withSslCaCertificate(String sslCaCertificate) { Utils.checkNotNull(sslCaCertificate, "sslCaCertificate"); @@ -72,7 +81,6 @@ public DestinationTeradataVerifyCa withSslCaCertificate(String sslCaCertificate) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -83,15 +91,14 @@ public boolean equals(java.lang.Object o) { } DestinationTeradataVerifyCa other = (DestinationTeradataVerifyCa) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.sslCaCertificate, other.sslCaCertificate); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.sslCaCertificate, other.sslCaCertificate); } @Override public int hashCode() { - return Objects.hash( - mode, - sslCaCertificate); + return Utils.enhancedHash( + mode, sslCaCertificate); } @Override @@ -100,30 +107,37 @@ public String toString() { "mode", mode, "sslCaCertificate", sslCaCertificate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sslCaCertificate; - + private Builder() { // force use of static builder() method } + /** - * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-ca. - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLCA"> in the docs</a>. + * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use + * with SSLMODE=verify-ca. + * See more information - + * in the docs. */ public Builder sslCaCertificate(String sslCaCertificate) { Utils.checkNotNull(sslCaCertificate, "sslCaCertificate"); this.sslCaCertificate = sslCaCertificate; return this; } - + public DestinationTeradataVerifyCa build() { + return new DestinationTeradataVerifyCa( sslCaCertificate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyFull.java b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyFull.java index ba1650698..7f646d733 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyFull.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTeradataVerifyFull.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -29,8 +28,11 @@ public class DestinationTeradataVerifyFull { private Optional mode; /** - * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-full. - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLCA"> in the docs</a>. + * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use + * with SSLMODE=verify-full. + * See more information - + * in the docs. */ @JsonProperty("ssl_ca_certificate") private String sslCaCertificate; @@ -50,21 +52,28 @@ public Optional mode() { } /** - * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-full. - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLCA"> in the docs</a>. + * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use + * with SSLMODE=verify-full. + * See more information - + * in the docs. */ @JsonIgnore public String sslCaCertificate() { return sslCaCertificate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-full. - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLCA"> in the docs</a>. + * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use + * with SSLMODE=verify-full. + * See more information - + * in the docs. */ public DestinationTeradataVerifyFull withSslCaCertificate(String sslCaCertificate) { Utils.checkNotNull(sslCaCertificate, "sslCaCertificate"); @@ -72,7 +81,6 @@ public DestinationTeradataVerifyFull withSslCaCertificate(String sslCaCertificat return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -83,15 +91,14 @@ public boolean equals(java.lang.Object o) { } DestinationTeradataVerifyFull other = (DestinationTeradataVerifyFull) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.sslCaCertificate, other.sslCaCertificate); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.sslCaCertificate, other.sslCaCertificate); } @Override public int hashCode() { - return Objects.hash( - mode, - sslCaCertificate); + return Utils.enhancedHash( + mode, sslCaCertificate); } @Override @@ -100,30 +107,37 @@ public String toString() { "mode", mode, "sslCaCertificate", sslCaCertificate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sslCaCertificate; - + private Builder() { // force use of static builder() method } + /** - * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use with SSLMODE=verify-full. - * See more information - <a href="https://teradata-docs.s3.amazonaws.com/doc/connectivity/jdbc/reference/current/jdbcug_chapter_2.html#URL_SSLCA"> in the docs</a>. + * Specifies the file name of a PEM file that contains Certificate Authority (CA) certificates for use + * with SSLMODE=verify-full. + * See more information - + * in the docs. */ public Builder sslCaCertificate(String sslCaCertificate) { Utils.checkNotNull(sslCaCertificate, "sslCaCertificate"); this.sslCaCertificate = sslCaCertificate; return this; } - + public DestinationTeradataVerifyFull build() { + return new DestinationTeradataVerifyFull( sslCaCertificate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java b/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java index 68d3b366b..9e28cefbe 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTimeplus.java @@ -13,17 +13,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationTimeplus { +public class DestinationTimeplus { /** * Personal API key */ @JsonProperty("apikey") private String apikey; + @JsonProperty("destinationType") private Timeplus destinationType; @@ -71,9 +71,10 @@ public Optional endpoint() { return endpoint; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Personal API key @@ -93,6 +94,7 @@ public DestinationTimeplus withEndpoint(String endpoint) { return this; } + /** * Timeplus workspace endpoint */ @@ -102,7 +104,6 @@ public DestinationTimeplus withEndpoint(Optional endpoint) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,17 +114,15 @@ public boolean equals(java.lang.Object o) { } DestinationTimeplus other = (DestinationTimeplus) o; return - Objects.deepEquals(this.apikey, other.apikey) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.endpoint, other.endpoint); + Utils.enhancedDeepEquals(this.apikey, other.apikey) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.endpoint, other.endpoint); } @Override public int hashCode() { - return Objects.hash( - apikey, - destinationType, - endpoint); + return Utils.enhancedHash( + apikey, destinationType, endpoint); } @Override @@ -133,17 +132,19 @@ public String toString() { "destinationType", destinationType, "endpoint", endpoint); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apikey; - + private Optional endpoint; - + private Builder() { // force use of static builder() method } + /** * Personal API key */ @@ -153,6 +154,7 @@ public Builder apikey(String apikey) { return this; } + /** * Timeplus workspace endpoint */ @@ -170,16 +172,17 @@ public Builder endpoint(Optional endpoint) { this.endpoint = endpoint; return this; } - + public DestinationTimeplus build() { if (endpoint == null) { endpoint = _SINGLETON_VALUE_Endpoint.value(); } + return new DestinationTimeplus( - apikey, - endpoint); + apikey, endpoint); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java b/src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java index e4b9a4a6c..334784768 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationTypesense.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationTypesense { +public class DestinationTypesense { /** * Typesense API Key */ @@ -32,6 +31,7 @@ public class DestinationTypesense { @JsonProperty("batch_size") private Optional batchSize; + @JsonProperty("destinationType") private Typesense destinationType; @@ -88,7 +88,8 @@ public DestinationTypesense( public DestinationTypesense( String apiKey, String host) { - this(apiKey, Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, Optional.empty(), host, + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -144,9 +145,10 @@ public Optional protocol() { return protocol; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Typesense API Key @@ -166,6 +168,7 @@ public DestinationTypesense withBatchSize(long batchSize) { return this; } + /** * How many documents should be imported together. Default 1000 */ @@ -193,6 +196,7 @@ public DestinationTypesense withPath(String path) { return this; } + /** * Path of the Typesense instance. Default is none */ @@ -211,6 +215,7 @@ public DestinationTypesense withPort(String port) { return this; } + /** * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 8108 */ @@ -229,6 +234,7 @@ public DestinationTypesense withProtocol(String protocol) { return this; } + /** * Protocol of the Typesense instance. Ex: http or https. Default is https */ @@ -238,7 +244,6 @@ public DestinationTypesense withProtocol(Optional protocol) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -249,24 +254,20 @@ public boolean equals(java.lang.Object o) { } DestinationTypesense other = (DestinationTypesense) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.batchSize, other.batchSize) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.path, other.path) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.protocol, other.protocol); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.batchSize, other.batchSize) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.path, other.path) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.protocol, other.protocol); } @Override public int hashCode() { - return Objects.hash( - apiKey, - batchSize, - destinationType, - host, - path, - port, + return Utils.enhancedHash( + apiKey, batchSize, destinationType, + host, path, port, protocol); } @@ -281,25 +282,27 @@ public String toString() { "port", port, "protocol", protocol); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional batchSize = Optional.empty(); - + private String host; - + private Optional path = Optional.empty(); - + private Optional port = Optional.empty(); - + private Optional protocol = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Typesense API Key */ @@ -309,6 +312,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * How many documents should be imported together. Default 1000 */ @@ -327,6 +331,7 @@ public Builder batchSize(Optional batchSize) { return this; } + /** * Hostname of the Typesense instance without protocol. Accept multiple hosts separated by comma. */ @@ -336,6 +341,7 @@ public Builder host(String host) { return this; } + /** * Path of the Typesense instance. Default is none */ @@ -354,6 +360,7 @@ public Builder path(Optional path) { return this; } + /** * Port of the Typesense instance. Ex: 8108, 80, 443. Default is 8108 */ @@ -372,6 +379,7 @@ public Builder port(Optional port) { return this; } + /** * Protocol of the Typesense instance. Ex: http or https. Default is https */ @@ -389,17 +397,15 @@ public Builder protocol(Optional protocol) { this.protocol = protocol; return this; } - + public DestinationTypesense build() { + return new DestinationTypesense( - apiKey, - batchSize, - host, - path, - port, - protocol); + apiKey, batchSize, host, + path, port, protocol); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationVectara.java b/src/main/java/com/airbyte/api/models/shared/DestinationVectara.java index c316182be..ed626b752 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationVectara.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationVectara.java @@ -16,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -25,7 +24,6 @@ *

    Configuration to connect to the Vectara instance */ public class DestinationVectara { - /** * The Name of Corpus to load data into */ @@ -38,11 +36,21 @@ public class DestinationVectara { @JsonProperty("customer_id") private String customerId; + @JsonProperty("destinationType") private Vectara destinationType; /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata_fields") @@ -62,14 +70,30 @@ public class DestinationVectara { private Optional parallelize; /** - * List of fields in the record that should be in the section of the document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be in the section of the document. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("text_fields") private Optional> textFields; /** - * A field that will be used to populate the `title` of each document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * A field that will be used to populate the `title` of each document. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("title_field") @@ -105,7 +129,9 @@ public DestinationVectara( String corpusName, String customerId, OAuth20Credentials oauth2) { - this(corpusName, customerId, Optional.empty(), oauth2, Optional.empty(), Optional.empty(), Optional.empty()); + this(corpusName, customerId, Optional.empty(), + oauth2, Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -130,7 +156,16 @@ public Vectara destinationType() { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -155,7 +190,15 @@ public Optional parallelize() { } /** - * List of fields in the record that should be in the section of the document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be in the section of the document. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -164,16 +207,25 @@ public Optional> textFields() { } /** - * A field that will be used to populate the `title` of each document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * A field that will be used to populate the `title` of each document. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @JsonIgnore public Optional titleField() { return titleField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Name of Corpus to load data into @@ -194,7 +246,16 @@ public DestinationVectara withCustomerId(String customerId) { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationVectara withMetadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -202,8 +263,18 @@ public DestinationVectara withMetadataFields(List metadataFields) { return this; } + /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationVectara withMetadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -229,6 +300,7 @@ public DestinationVectara withParallelize(boolean parallelize) { return this; } + /** * Parallelize indexing into Vectara with multiple threads */ @@ -239,7 +311,15 @@ public DestinationVectara withParallelize(Optional parallelize) { } /** - * List of fields in the record that should be in the section of the document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be in the section of the document. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationVectara withTextFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -247,8 +327,17 @@ public DestinationVectara withTextFields(List textFields) { return this; } + /** - * List of fields in the record that should be in the section of the document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be in the section of the document. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationVectara withTextFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -257,7 +346,15 @@ public DestinationVectara withTextFields(Optional> textFi } /** - * A field that will be used to populate the `title` of each document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * A field that will be used to populate the `title` of each document. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationVectara withTitleField(String titleField) { Utils.checkNotNull(titleField, "titleField"); @@ -265,8 +362,17 @@ public DestinationVectara withTitleField(String titleField) { return this; } + /** - * A field that will be used to populate the `title` of each document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * A field that will be used to populate the `title` of each document. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationVectara withTitleField(Optional titleField) { Utils.checkNotNull(titleField, "titleField"); @@ -274,7 +380,6 @@ public DestinationVectara withTitleField(Optional titleField) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -285,27 +390,22 @@ public boolean equals(java.lang.Object o) { } DestinationVectara other = (DestinationVectara) o; return - Objects.deepEquals(this.corpusName, other.corpusName) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.metadataFields, other.metadataFields) && - Objects.deepEquals(this.oauth2, other.oauth2) && - Objects.deepEquals(this.parallelize, other.parallelize) && - Objects.deepEquals(this.textFields, other.textFields) && - Objects.deepEquals(this.titleField, other.titleField); + Utils.enhancedDeepEquals(this.corpusName, other.corpusName) && + Utils.enhancedDeepEquals(this.customerId, other.customerId) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.metadataFields, other.metadataFields) && + Utils.enhancedDeepEquals(this.oauth2, other.oauth2) && + Utils.enhancedDeepEquals(this.parallelize, other.parallelize) && + Utils.enhancedDeepEquals(this.textFields, other.textFields) && + Utils.enhancedDeepEquals(this.titleField, other.titleField); } @Override public int hashCode() { - return Objects.hash( - corpusName, - customerId, - destinationType, - metadataFields, - oauth2, - parallelize, - textFields, - titleField); + return Utils.enhancedHash( + corpusName, customerId, destinationType, + metadataFields, oauth2, parallelize, + textFields, titleField); } @Override @@ -320,27 +420,29 @@ public String toString() { "textFields", textFields, "titleField", titleField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String corpusName; - + private String customerId; - + private Optional> metadataFields = Optional.empty(); - + private OAuth20Credentials oauth2; - + private Optional parallelize; - + private Optional> textFields = Optional.empty(); - + private Optional titleField; - + private Builder() { // force use of static builder() method } + /** * The Name of Corpus to load data into */ @@ -350,6 +452,7 @@ public Builder corpusName(String corpusName) { return this; } + /** * Your customer id as it is in the authenticaion url */ @@ -359,8 +462,18 @@ public Builder customerId(String customerId) { return this; } + /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -369,7 +482,16 @@ public Builder metadataFields(List metadataFields) { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -377,6 +499,7 @@ public Builder metadataFields(Optional> metadataFields) { return this; } + /** * OAuth2.0 credentials used to authenticate admin actions (creating/deleting corpora) */ @@ -386,6 +509,7 @@ public Builder oauth2(OAuth20Credentials oauth2) { return this; } + /** * Parallelize indexing into Vectara with multiple threads */ @@ -404,8 +528,17 @@ public Builder parallelize(Optional parallelize) { return this; } + /** - * List of fields in the record that should be in the section of the document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be in the section of the document. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -414,7 +547,15 @@ public Builder textFields(List textFields) { } /** - * List of fields in the record that should be in the section of the document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be in the section of the document. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -422,8 +563,17 @@ public Builder textFields(Optional> textFields) { return this; } + /** - * A field that will be used to populate the `title` of each document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * A field that will be used to populate the `title` of each document. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder titleField(String titleField) { Utils.checkNotNull(titleField, "titleField"); @@ -432,14 +582,22 @@ public Builder titleField(String titleField) { } /** - * A field that will be used to populate the `title` of each document. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * A field that will be used to populate the `title` of each document. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder titleField(Optional titleField) { Utils.checkNotNull(titleField, "titleField"); this.titleField = titleField; return this; } - + public DestinationVectara build() { if (parallelize == null) { parallelize = _SINGLETON_VALUE_Parallelize.value(); @@ -447,16 +605,14 @@ public DestinationVectara build() { if (titleField == null) { titleField = _SINGLETON_VALUE_TitleField.value(); } + return new DestinationVectara( - corpusName, - customerId, - metadataFields, - oauth2, - parallelize, - textFields, + corpusName, customerId, metadataFields, + oauth2, parallelize, textFields, titleField); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviate.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviate.java index 5af7aa641..9ec1f4e3e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviate.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviate.java @@ -14,13 +14,13 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** * DestinationWeaviate * - *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI for the destination configuration, + *

    The configuration model for the Vector DB based destinations. This model is used to generate the UI + * for the destination configuration, * as well as to provide type safety for the configuration passed to the destination. * *

    The configuration model is composed of four parts: @@ -29,7 +29,8 @@ * * Indexing configuration * * Advanced configuration * - *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing configuration is provided by the destination connector in the sub class. + *

    Processing, embedding and advanced configuration are provided by this base class, while the indexing + * configuration is provided by the destination connector in the sub class. */ public class DestinationWeaviate { @@ -49,12 +50,15 @@ public class DestinationWeaviate { private DestinationWeaviateIndexing indexing; /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("omit_raw_text") private Optional omitRawText; + @JsonProperty("processing") private DestinationWeaviateProcessingConfigModel processing; @@ -79,7 +83,8 @@ public DestinationWeaviate( DestinationWeaviateEmbedding embedding, DestinationWeaviateIndexing indexing, DestinationWeaviateProcessingConfigModel processing) { - this(embedding, indexing, Optional.empty(), processing); + this(embedding, indexing, Optional.empty(), + processing); } @JsonIgnore @@ -104,7 +109,9 @@ public DestinationWeaviateIndexing indexing() { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ @JsonIgnore public Optional omitRawText() { @@ -116,9 +123,10 @@ public DestinationWeaviateProcessingConfigModel processing() { return processing; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Embedding configuration @@ -139,7 +147,9 @@ public DestinationWeaviate withIndexing(DestinationWeaviateIndexing indexing) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationWeaviate withOmitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -147,8 +157,11 @@ public DestinationWeaviate withOmitRawText(boolean omitRawText) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public DestinationWeaviate withOmitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -162,7 +175,6 @@ public DestinationWeaviate withProcessing(DestinationWeaviateProcessingConfigMod return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +185,18 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviate other = (DestinationWeaviate) o; return - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.embedding, other.embedding) && - Objects.deepEquals(this.indexing, other.indexing) && - Objects.deepEquals(this.omitRawText, other.omitRawText) && - Objects.deepEquals(this.processing, other.processing); + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.embedding, other.embedding) && + Utils.enhancedDeepEquals(this.indexing, other.indexing) && + Utils.enhancedDeepEquals(this.omitRawText, other.omitRawText) && + Utils.enhancedDeepEquals(this.processing, other.processing); } @Override public int hashCode() { - return Objects.hash( - destinationType, - embedding, - indexing, - omitRawText, - processing); + return Utils.enhancedHash( + destinationType, embedding, indexing, + omitRawText, processing); } @Override @@ -199,21 +208,23 @@ public String toString() { "omitRawText", omitRawText, "processing", processing); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationWeaviateEmbedding embedding; - + private DestinationWeaviateIndexing indexing; - + private Optional omitRawText; - + private DestinationWeaviateProcessingConfigModel processing; - + private Builder() { // force use of static builder() method } + /** * Embedding configuration */ @@ -223,6 +234,7 @@ public Builder embedding(DestinationWeaviateEmbedding embedding) { return this; } + /** * Indexing configuration */ @@ -232,8 +244,11 @@ public Builder indexing(DestinationWeaviateIndexing indexing) { return this; } + /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(boolean omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -242,7 +257,9 @@ public Builder omitRawText(boolean omitRawText) { } /** - * Do not store the text that gets embedded along with the vector and the metadata in the destination. If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use cases needs to be retrieved from another source. + * Do not store the text that gets embedded along with the vector and the metadata in the destination. + * If set to true, only the vector and the metadata will be stored - in this case raw text for LLM use + * cases needs to be retrieved from another source. */ public Builder omitRawText(Optional omitRawText) { Utils.checkNotNull(omitRawText, "omitRawText"); @@ -250,23 +267,24 @@ public Builder omitRawText(Optional omitRawText) { return this; } + public Builder processing(DestinationWeaviateProcessingConfigModel processing) { Utils.checkNotNull(processing, "processing"); this.processing = processing; return this; } - + public DestinationWeaviate build() { if (omitRawText == null) { omitRawText = _SINGLETON_VALUE_OmitRawText.value(); } + return new DestinationWeaviate( - embedding, - indexing, - omitRawText, + embedding, indexing, omitRawText, processing); } + private static final LazySingletonValue _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAPIToken.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAPIToken.java index 8a174467e..3280b1d6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAPIToken.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -56,9 +55,10 @@ public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Token for the Weaviate instance @@ -69,7 +69,6 @@ public DestinationWeaviateAPIToken withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +79,14 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateAPIToken other = (DestinationWeaviateAPIToken) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - mode, - token); + return Utils.enhancedHash( + mode, token); } @Override @@ -97,15 +95,17 @@ public String toString() { "mode", mode, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String token; - + private Builder() { // force use of static builder() method } + /** * API Token for the Weaviate instance */ @@ -114,12 +114,14 @@ public Builder token(String token) { this.token = token; return this; } - + public DestinationWeaviateAPIToken build() { + return new DestinationWeaviateAPIToken( token); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAuthentication.java index b6f00d84c..acbbcf099 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationWeaviateAuthentication @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationWeaviateAuthentication other = (DestinationWeaviateAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAzureOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAzureOpenAI.java index 4106566ce..6f3088da6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAzureOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateAzureOpenAI.java @@ -14,34 +14,37 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationWeaviateAzureOpenAI * - *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the Azure-hosted OpenAI API to embed text. This option is using the text-embedding-ada-002 model + * with 1536 embedding dimensions. */ public class DestinationWeaviateAzureOpenAI { - /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("api_base") private String apiBase; /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonProperty("deployment") private String deployment; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonProperty("openai_key") private String openaiKey; @@ -61,7 +64,8 @@ public DestinationWeaviateAzureOpenAI( } /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String apiBase() { @@ -69,7 +73,8 @@ public String apiBase() { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ @JsonIgnore public String deployment() { @@ -83,19 +88,22 @@ public Optional mode() { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ @JsonIgnore public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationWeaviateAzureOpenAI withApiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -104,7 +112,8 @@ public DestinationWeaviateAzureOpenAI withApiBase(String apiBase) { } /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public DestinationWeaviateAzureOpenAI withDeployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -113,7 +122,8 @@ public DestinationWeaviateAzureOpenAI withDeployment(String deployment) { } /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public DestinationWeaviateAzureOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -121,7 +131,6 @@ public DestinationWeaviateAzureOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +141,16 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateAzureOpenAI other = (DestinationWeaviateAzureOpenAI) o; return - Objects.deepEquals(this.apiBase, other.apiBase) && - Objects.deepEquals(this.deployment, other.deployment) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.apiBase, other.apiBase) && + Utils.enhancedDeepEquals(this.deployment, other.deployment) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - apiBase, - deployment, - mode, + return Utils.enhancedHash( + apiBase, deployment, mode, openaiKey); } @@ -155,21 +162,24 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiBase; - + private String deployment; - + private String openaiKey; - + private Builder() { // force use of static builder() method } + /** - * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The base URL for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder apiBase(String apiBase) { Utils.checkNotNull(apiBase, "apiBase"); @@ -177,8 +187,10 @@ public Builder apiBase(String apiBase) { return this; } + /** - * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The deployment for your Azure OpenAI resource. You can find this in the Azure portal under your + * Azure OpenAI resource */ public Builder deployment(String deployment) { Utils.checkNotNull(deployment, "deployment"); @@ -186,22 +198,24 @@ public Builder deployment(String deployment) { return this; } + /** - * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure OpenAI resource + * The API key for your Azure OpenAI resource. You can find this in the Azure portal under your Azure + * OpenAI resource */ public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationWeaviateAzureOpenAI build() { + return new DestinationWeaviateAzureOpenAI( - apiBase, - deployment, - openaiKey); + apiBase, deployment, openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByMarkdownHeader.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByMarkdownHeader.java index eac7dd145..37fcddef1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByMarkdownHeader.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByMarkdownHeader.java @@ -15,13 +15,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationWeaviateByMarkdownHeader * - *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits multiple sections, they will be combined into a single chunk. + *

    Split the text by Markdown headers down to the specified header level. If the chunk size fits + * multiple sections, they will be combined into a single chunk. */ public class DestinationWeaviateByMarkdownHeader { @@ -30,7 +30,8 @@ public class DestinationWeaviateByMarkdownHeader { private Optional mode; /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("split_level") @@ -55,19 +56,22 @@ public Optional mode() { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ @JsonIgnore public Optional splitLevel() { return splitLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationWeaviateByMarkdownHeader withSplitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -75,8 +79,10 @@ public DestinationWeaviateByMarkdownHeader withSplitLevel(long splitLevel) { return this; } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public DestinationWeaviateByMarkdownHeader withSplitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -84,7 +90,6 @@ public DestinationWeaviateByMarkdownHeader withSplitLevel(Optional splitLe return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +100,14 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateByMarkdownHeader other = (DestinationWeaviateByMarkdownHeader) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.splitLevel, other.splitLevel); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.splitLevel, other.splitLevel); } @Override public int hashCode() { - return Objects.hash( - mode, - splitLevel); + return Utils.enhancedHash( + mode, splitLevel); } @Override @@ -112,17 +116,20 @@ public String toString() { "mode", mode, "splitLevel", splitLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional splitLevel; - + private Builder() { // force use of static builder() method } + /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(long splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); @@ -131,22 +138,25 @@ public Builder splitLevel(long splitLevel) { } /** - * Level of markdown headers to split text fields by. Headings down to the specified level will be used as split points + * Level of markdown headers to split text fields by. Headings down to the specified level will be used + * as split points */ public Builder splitLevel(Optional splitLevel) { Utils.checkNotNull(splitLevel, "splitLevel"); this.splitLevel = splitLevel; return this; } - + public DestinationWeaviateByMarkdownHeader build() { if (splitLevel == null) { splitLevel = _SINGLETON_VALUE_SplitLevel.value(); } + return new DestinationWeaviateByMarkdownHeader( splitLevel); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByProgrammingLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByProgrammingLanguage.java index 3feb2a8ac..5cf81114b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByProgrammingLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateByProgrammingLanguage.java @@ -14,22 +14,22 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationWeaviateByProgrammingLanguage * - *

    Split the text by suitable delimiters based on the programming language. This is useful for splitting code into chunks. + *

    Split the text by suitable delimiters based on the programming language. This is useful for + * splitting code into chunks. */ public class DestinationWeaviateByProgrammingLanguage { - /** * Split code in suitable places based on the programming language */ @JsonProperty("language") private DestinationWeaviateLanguage language; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -56,9 +56,10 @@ public Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Split code in suitable places based on the programming language @@ -69,7 +70,6 @@ public DestinationWeaviateByProgrammingLanguage withLanguage(DestinationWeaviate return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +80,14 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateByProgrammingLanguage other = (DestinationWeaviateByProgrammingLanguage) o; return - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.language, other.language) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - language, - mode); + return Utils.enhancedHash( + language, mode); } @Override @@ -97,15 +96,17 @@ public String toString() { "language", language, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationWeaviateLanguage language; - + private Builder() { // force use of static builder() method } + /** * Split code in suitable places based on the programming language */ @@ -114,12 +115,14 @@ public Builder language(DestinationWeaviateLanguage language) { this.language = language; return this; } - + public DestinationWeaviateByProgrammingLanguage build() { + return new DestinationWeaviateByProgrammingLanguage( language); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateBySeparator.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateBySeparator.java index 6f9dc8ebc..a45088852 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateBySeparator.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateBySeparator.java @@ -16,16 +16,16 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * DestinationWeaviateBySeparator * - *

    Split the text by the list of separators until the chunk size is reached, using the earlier mentioned separators where possible. This is useful for splitting text fields by paragraphs, sentences, words, etc. + *

    Split the text by the list of separators until the chunk size is reached, using the earlier + * mentioned separators where possible. This is useful for splitting text fields by paragraphs, + * sentences, words, etc. */ public class DestinationWeaviateBySeparator { - /** * Whether to keep the separator in the resulting chunks */ @@ -33,12 +33,16 @@ public class DestinationWeaviateBySeparator { @JsonProperty("keep_separator") private Optional keepSeparator; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("separators") @@ -74,7 +78,10 @@ public Optional mode() { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ @SuppressWarnings("unchecked") @JsonIgnore @@ -82,9 +89,10 @@ public Optional> separators() { return (Optional>) separators; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Whether to keep the separator in the resulting chunks @@ -95,6 +103,7 @@ public DestinationWeaviateBySeparator withKeepSeparator(boolean keepSeparator) { return this; } + /** * Whether to keep the separator in the resulting chunks */ @@ -105,7 +114,10 @@ public DestinationWeaviateBySeparator withKeepSeparator(Optional keepSe } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationWeaviateBySeparator withSeparators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -113,8 +125,12 @@ public DestinationWeaviateBySeparator withSeparators(List separators) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public DestinationWeaviateBySeparator withSeparators(Optional> separators) { Utils.checkNotNull(separators, "separators"); @@ -122,7 +138,6 @@ public DestinationWeaviateBySeparator withSeparators(Optional keepSeparator; - + private Optional> separators = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Whether to keep the separator in the resulting chunks */ @@ -182,8 +197,12 @@ public Builder keepSeparator(Optional keepSeparator) { return this; } + /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(List separators) { Utils.checkNotNull(separators, "separators"); @@ -192,23 +211,27 @@ public Builder separators(List separators) { } /** - * List of separator strings to split text fields by. The separator itself needs to be wrapped in double quotes, e.g. to split by the dot character, use ".". To split by a newline, use "\n". + * List of separator strings to split text fields by. The separator itself needs to be wrapped in + * double quotes, e.g. to split by the dot character, use ".". + * + *

    To split by a newline, use "\n". */ public Builder separators(Optional> separators) { Utils.checkNotNull(separators, "separators"); this.separators = separators; return this; } - + public DestinationWeaviateBySeparator build() { if (keepSeparator == null) { keepSeparator = _SINGLETON_VALUE_KeepSeparator.value(); } + return new DestinationWeaviateBySeparator( - keepSeparator, - separators); + keepSeparator, separators); } + private static final LazySingletonValue> _SINGLETON_VALUE_KeepSeparator = new LazySingletonValue<>( "keep_separator", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateCohere.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateCohere.java index 06b3a2d2c..b017ca168 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateCohere.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateCohere.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -27,6 +26,7 @@ public class DestinationWeaviateCohere { @JsonProperty("cohere_key") private String cohereKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -50,9 +50,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationWeaviateCohere withCohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); @@ -60,7 +61,6 @@ public DestinationWeaviateCohere withCohereKey(String cohereKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +71,14 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateCohere other = (DestinationWeaviateCohere) o; return - Objects.deepEquals(this.cohereKey, other.cohereKey) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.cohereKey, other.cohereKey) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - cohereKey, - mode); + return Utils.enhancedHash( + cohereKey, mode); } @Override @@ -88,26 +87,30 @@ public String toString() { "cohereKey", cohereKey, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String cohereKey; - + private Builder() { // force use of static builder() method } + public Builder cohereKey(String cohereKey) { Utils.checkNotNull(cohereKey, "cohereKey"); this.cohereKey = cohereKey; return this; } - + public DestinationWeaviateCohere build() { + return new DestinationWeaviateCohere( cohereKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateEmbedding.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateEmbedding.java index 8b423e716..0029f20fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateEmbedding.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationWeaviateEmbedding @@ -102,12 +101,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationWeaviateEmbedding other = (DestinationWeaviateEmbedding) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFake.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFake.java index e0f3ac194..957085b31 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFake.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFake.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationWeaviateFake * - *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. + *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for + * testing the data pipeline without incurring any costs. */ public class DestinationWeaviateFake { @@ -30,7 +30,6 @@ public class DestinationWeaviateFake { @JsonCreator public DestinationWeaviateFake() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +39,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateFake other = (DestinationWeaviateFake) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +68,21 @@ public String toString() { return Utils.toString(DestinationWeaviateFake.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationWeaviateFake build() { + return new DestinationWeaviateFake( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFieldNameMappingConfigModel.java index c23ff5db4..229d42478 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateFieldNameMappingConfigModel.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationWeaviateFieldNameMappingConfigModel { +public class DestinationWeaviateFieldNameMappingConfigModel { /** * The field name in the source */ @@ -51,9 +50,10 @@ public String toField() { return toField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The field name in the source @@ -73,7 +73,6 @@ public DestinationWeaviateFieldNameMappingConfigModel withToField(String toField return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +83,14 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateFieldNameMappingConfigModel other = (DestinationWeaviateFieldNameMappingConfigModel) o; return - Objects.deepEquals(this.fromField, other.fromField) && - Objects.deepEquals(this.toField, other.toField); + Utils.enhancedDeepEquals(this.fromField, other.fromField) && + Utils.enhancedDeepEquals(this.toField, other.toField); } @Override public int hashCode() { - return Objects.hash( - fromField, - toField); + return Utils.enhancedHash( + fromField, toField); } @Override @@ -101,17 +99,19 @@ public String toString() { "fromField", fromField, "toField", toField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fromField; - + private String toField; - + private Builder() { // force use of static builder() method } + /** * The field name in the source */ @@ -121,6 +121,7 @@ public Builder fromField(String fromField) { return this; } + /** * The field name to use in the destination */ @@ -129,11 +130,12 @@ public Builder toField(String toField) { this.toField = toField; return this; } - + public DestinationWeaviateFieldNameMappingConfigModel build() { + return new DestinationWeaviateFieldNameMappingConfigModel( - fromField, - toField); + fromField, toField); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateIndexing.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateIndexing.java index 884f8a704..94d97ea3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateIndexing.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateIndexing.java @@ -16,7 +16,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -25,7 +24,6 @@ *

    Indexing configuration */ public class DestinationWeaviateIndexing { - /** * Additional HTTP headers to send with every request. */ @@ -101,7 +99,9 @@ public DestinationWeaviateIndexing( public DestinationWeaviateIndexing( DestinationWeaviateAuthentication auth, String host) { - this(Optional.empty(), auth, Optional.empty(), Optional.empty(), host, Optional.empty(), Optional.empty()); + this(Optional.empty(), auth, Optional.empty(), + Optional.empty(), host, Optional.empty(), + Optional.empty()); } /** @@ -162,9 +162,10 @@ public Optional textField() { return textField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Additional HTTP headers to send with every request. @@ -175,6 +176,7 @@ public DestinationWeaviateIndexing withAdditionalHeaders(List

    additional return this; } + /** * Additional HTTP headers to send with every request. */ @@ -202,6 +204,7 @@ public DestinationWeaviateIndexing withBatchSize(long batchSize) { return this; } + /** * The number of records to send to Weaviate in each batch */ @@ -220,6 +223,7 @@ public DestinationWeaviateIndexing withDefaultVectorizer(DefaultVectorizer defau return this; } + /** * The vectorizer to use if new classes need to be created */ @@ -247,6 +251,7 @@ public DestinationWeaviateIndexing withTenantId(String tenantId) { return this; } + /** * The tenant ID to use for multi tenancy */ @@ -265,6 +270,7 @@ public DestinationWeaviateIndexing withTextField(String textField) { return this; } + /** * The field in the object that contains the embedded text */ @@ -274,7 +280,6 @@ public DestinationWeaviateIndexing withTextField(Optional textField) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -285,24 +290,20 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateIndexing other = (DestinationWeaviateIndexing) o; return - Objects.deepEquals(this.additionalHeaders, other.additionalHeaders) && - Objects.deepEquals(this.auth, other.auth) && - Objects.deepEquals(this.batchSize, other.batchSize) && - Objects.deepEquals(this.defaultVectorizer, other.defaultVectorizer) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.tenantId, other.tenantId) && - Objects.deepEquals(this.textField, other.textField); + Utils.enhancedDeepEquals(this.additionalHeaders, other.additionalHeaders) && + Utils.enhancedDeepEquals(this.auth, other.auth) && + Utils.enhancedDeepEquals(this.batchSize, other.batchSize) && + Utils.enhancedDeepEquals(this.defaultVectorizer, other.defaultVectorizer) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId) && + Utils.enhancedDeepEquals(this.textField, other.textField); } @Override public int hashCode() { - return Objects.hash( - additionalHeaders, - auth, - batchSize, - defaultVectorizer, - host, - tenantId, + return Utils.enhancedHash( + additionalHeaders, auth, batchSize, + defaultVectorizer, host, tenantId, textField); } @@ -317,27 +318,29 @@ public String toString() { "tenantId", tenantId, "textField", textField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> additionalHeaders = Optional.empty(); - + private DestinationWeaviateAuthentication auth; - + private Optional batchSize; - + private Optional defaultVectorizer; - + private String host; - + private Optional tenantId; - + private Optional textField; - + private Builder() { // force use of static builder() method } + /** * Additional HTTP headers to send with every request. */ @@ -356,6 +359,7 @@ public Builder additionalHeaders(Optional> additionalHead return this; } + /** * Authentication method */ @@ -365,6 +369,7 @@ public Builder auth(DestinationWeaviateAuthentication auth) { return this; } + /** * The number of records to send to Weaviate in each batch */ @@ -383,6 +388,7 @@ public Builder batchSize(Optional batchSize) { return this; } + /** * The vectorizer to use if new classes need to be created */ @@ -401,6 +407,7 @@ public Builder defaultVectorizer(Optional defaultVe return this; } + /** * The public endpoint of the Weaviate cluster. */ @@ -410,6 +417,7 @@ public Builder host(String host) { return this; } + /** * The tenant ID to use for multi tenancy */ @@ -428,6 +436,7 @@ public Builder tenantId(Optional tenantId) { return this; } + /** * The field in the object that contains the embedded text */ @@ -445,7 +454,7 @@ public Builder textField(Optional textField) { this.textField = textField; return this; } - + public DestinationWeaviateIndexing build() { if (batchSize == null) { batchSize = _SINGLETON_VALUE_BatchSize.value(); @@ -459,16 +468,14 @@ public DestinationWeaviateIndexing build() { if (textField == null) { textField = _SINGLETON_VALUE_TextField.value(); } + return new DestinationWeaviateIndexing( - additionalHeaders, - auth, - batchSize, - defaultVectorizer, - host, - tenantId, + additionalHeaders, auth, batchSize, + defaultVectorizer, host, tenantId, textField); } + private static final LazySingletonValue> _SINGLETON_VALUE_BatchSize = new LazySingletonValue<>( "batch_size", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java index 001e173aa..a3b6e2e54 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateLanguage.java @@ -34,7 +34,7 @@ public enum DestinationWeaviateLanguage { @JsonValue private final String value; - private DestinationWeaviateLanguage(String value) { + DestinationWeaviateLanguage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateMode.java index af563fb87..42250729a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateMode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateMode { @JsonValue private final String value; - private DestinationWeaviateMode(String value) { + DestinationWeaviateMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAI.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAI.java index a9fac6a83..13b986945 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAI.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * DestinationWeaviateOpenAI * - *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 + * embedding dimensions. */ public class DestinationWeaviateOpenAI { @@ -28,6 +28,7 @@ public class DestinationWeaviateOpenAI { @JsonProperty("mode") private Optional mode; + @JsonProperty("openai_key") private String openaiKey; @@ -50,9 +51,10 @@ public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationWeaviateOpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -60,7 +62,6 @@ public DestinationWeaviateOpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +72,14 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateOpenAI other = (DestinationWeaviateOpenAI) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - mode, - openaiKey); + return Utils.enhancedHash( + mode, openaiKey); } @Override @@ -88,26 +88,30 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String openaiKey; - + private Builder() { // force use of static builder() method } + public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public DestinationWeaviateOpenAI build() { + return new DestinationWeaviateOpenAI( openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAICompatible.java index 644d64459..3cf8a36b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateOpenAICompatible.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -41,6 +40,7 @@ public class DestinationWeaviateOpenAICompatible { @JsonProperty("dimensions") private long dimensions; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -72,7 +72,8 @@ public DestinationWeaviateOpenAICompatible( public DestinationWeaviateOpenAICompatible( String baseUrl, long dimensions) { - this(Optional.empty(), baseUrl, dimensions, Optional.empty()); + this(Optional.empty(), baseUrl, dimensions, + Optional.empty()); } @JsonIgnore @@ -110,9 +111,10 @@ public Optional modelName() { return modelName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationWeaviateOpenAICompatible withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -120,6 +122,7 @@ public DestinationWeaviateOpenAICompatible withApiKey(String apiKey) { return this; } + public DestinationWeaviateOpenAICompatible withApiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; @@ -153,6 +156,7 @@ public DestinationWeaviateOpenAICompatible withModelName(String modelName) { return this; } + /** * The name of the model to use for embedding */ @@ -162,7 +166,6 @@ public DestinationWeaviateOpenAICompatible withModelName(Optional modelN return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +176,18 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateOpenAICompatible other = (DestinationWeaviateOpenAICompatible) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.dimensions, other.dimensions) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.modelName, other.modelName); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.dimensions, other.dimensions) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.modelName, other.modelName); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - dimensions, - mode, - modelName); + return Utils.enhancedHash( + apiKey, baseUrl, dimensions, + mode, modelName); } @Override @@ -199,21 +199,23 @@ public String toString() { "mode", mode, "modelName", modelName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey; - + private String baseUrl; - + private Long dimensions; - + private Optional modelName; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = Optional.ofNullable(apiKey); @@ -226,6 +228,7 @@ public Builder apiKey(Optional apiKey) { return this; } + /** * The base URL for your OpenAI-compatible service */ @@ -235,6 +238,7 @@ public Builder baseUrl(String baseUrl) { return this; } + /** * The number of dimensions the embedding model is generating */ @@ -244,6 +248,7 @@ public Builder dimensions(long dimensions) { return this; } + /** * The name of the model to use for embedding */ @@ -261,7 +266,7 @@ public Builder modelName(Optional modelName) { this.modelName = modelName; return this; } - + public DestinationWeaviateOpenAICompatible build() { if (apiKey == null) { apiKey = _SINGLETON_VALUE_ApiKey.value(); @@ -269,13 +274,13 @@ public DestinationWeaviateOpenAICompatible build() { if (modelName == null) { modelName = _SINGLETON_VALUE_ModelName.value(); } + return new DestinationWeaviateOpenAICompatible( - apiKey, - baseUrl, - dimensions, + apiKey, baseUrl, dimensions, modelName); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiKey = new LazySingletonValue<>( "api_key", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateProcessingConfigModel.java index 4435a0395..b44d00601 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateProcessingConfigModel.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class DestinationWeaviateProcessingConfigModel { +public class DestinationWeaviateProcessingConfigModel { /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -29,27 +28,46 @@ public class DestinationWeaviateProcessingConfigModel { private Optional chunkOverlap; /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonProperty("chunk_size") private long chunkSize; /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("field_name_mappings") private Optional> fieldNameMappings; /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata_fields") private Optional> metadataFields; /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("text_fields") @@ -86,7 +104,8 @@ public DestinationWeaviateProcessingConfigModel( public DestinationWeaviateProcessingConfigModel( long chunkSize) { - this(Optional.empty(), chunkSize, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), chunkSize, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -98,7 +117,8 @@ public Optional chunkOverlap() { } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonIgnore public long chunkSize() { @@ -106,7 +126,8 @@ public long chunkSize() { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +136,16 @@ public Optional> fieldNameM } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -124,7 +154,15 @@ public Optional> metadataFields() { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -141,9 +179,10 @@ public Optional textSplitter() { return (Optional) textSplitter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context @@ -154,6 +193,7 @@ public DestinationWeaviateProcessingConfigModel withChunkOverlap(long chunkOverl return this; } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -164,7 +204,8 @@ public DestinationWeaviateProcessingConfigModel withChunkOverlap(Optional } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public DestinationWeaviateProcessingConfigModel withChunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -173,7 +214,8 @@ public DestinationWeaviateProcessingConfigModel withChunkSize(long chunkSize) { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public DestinationWeaviateProcessingConfigModel withFieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -181,8 +223,10 @@ public DestinationWeaviateProcessingConfigModel withFieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -191,7 +235,16 @@ public DestinationWeaviateProcessingConfigModel withFieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationWeaviateProcessingConfigModel withMetadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -199,8 +252,18 @@ public DestinationWeaviateProcessingConfigModel withMetadataFields(List return this; } + /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public DestinationWeaviateProcessingConfigModel withMetadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -209,7 +272,15 @@ public DestinationWeaviateProcessingConfigModel withMetadataFields(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationWeaviateProcessingConfigModel withTextFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -217,8 +288,17 @@ public DestinationWeaviateProcessingConfigModel withTextFields(List text return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public DestinationWeaviateProcessingConfigModel withTextFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -235,6 +315,7 @@ public DestinationWeaviateProcessingConfigModel withTextSplitter(DestinationWeav return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -244,7 +325,6 @@ public DestinationWeaviateProcessingConfigModel withTextSplitter(Optional chunkOverlap; - + private Long chunkSize; - + private Optional> fieldNameMappings = Optional.empty(); - + private Optional> metadataFields = Optional.empty(); - + private Optional> textFields = Optional.empty(); - + private Optional textSplitter = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -321,8 +399,10 @@ public Builder chunkOverlap(Optional chunkOverlap) { return this; } + /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public Builder chunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -330,8 +410,10 @@ public Builder chunkSize(long chunkSize) { return this; } + /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public Builder fieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -340,7 +422,8 @@ public Builder fieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -348,8 +431,18 @@ public Builder fieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -358,7 +451,16 @@ public Builder metadataFields(List metadataFields) { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -366,8 +468,17 @@ public Builder metadataFields(Optional> metadataFields) { return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -376,7 +487,15 @@ public Builder textFields(List textFields) { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -384,6 +503,7 @@ public Builder textFields(Optional> textFields) { return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -401,20 +521,18 @@ public Builder textSplitter(Optional this.textSplitter = textSplitter; return this; } - + public DestinationWeaviateProcessingConfigModel build() { if (chunkOverlap == null) { chunkOverlap = _SINGLETON_VALUE_ChunkOverlap.value(); } + return new DestinationWeaviateProcessingConfigModel( - chunkOverlap, - chunkSize, - fieldNameMappings, - metadataFields, - textFields, - textSplitter); + chunkOverlap, chunkSize, fieldNameMappings, + metadataFields, textFields, textSplitter); } + private static final LazySingletonValue> _SINGLETON_VALUE_ChunkOverlap = new LazySingletonValue<>( "chunk_overlap", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java index 48166bdab..616ee23cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding5Mode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasEmbeddingEmbedding5Mode { @JsonValue private final String value; - private DestinationWeaviateSchemasEmbeddingEmbedding5Mode(String value) { + DestinationWeaviateSchemasEmbeddingEmbedding5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding6Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding6Mode.java index 9451afb2e..e8e579a53 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding6Mode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasEmbeddingEmbedding6Mode { @JsonValue private final String value; - private DestinationWeaviateSchemasEmbeddingEmbedding6Mode(String value) { + DestinationWeaviateSchemasEmbeddingEmbedding6Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding7Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding7Mode.java index 487e8146c..c48b6a75a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding7Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbedding7Mode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasEmbeddingEmbedding7Mode { @JsonValue private final String value; - private DestinationWeaviateSchemasEmbeddingEmbedding7Mode(String value) { + DestinationWeaviateSchemasEmbeddingEmbedding7Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbeddingMode.java index 0bfe194e2..7fee4b47b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasEmbeddingEmbeddingMode { @JsonValue private final String value; - private DestinationWeaviateSchemasEmbeddingEmbeddingMode(String value) { + DestinationWeaviateSchemasEmbeddingEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingMode.java index e4ffa4ed9..5f9e693e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasEmbeddingMode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasEmbeddingMode { @JsonValue private final String value; - private DestinationWeaviateSchemasEmbeddingMode(String value) { + DestinationWeaviateSchemasEmbeddingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthAuthenticationMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthAuthenticationMode.java index d4f4445b7..68c86b929 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthAuthenticationMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthAuthenticationMode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasIndexingAuthAuthenticationMode { @JsonValue private final String value; - private DestinationWeaviateSchemasIndexingAuthAuthenticationMode(String value) { + DestinationWeaviateSchemasIndexingAuthAuthenticationMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthMode.java index b75179056..5128c921b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingAuthMode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasIndexingAuthMode { @JsonValue private final String value; - private DestinationWeaviateSchemasIndexingAuthMode(String value) { + DestinationWeaviateSchemasIndexingAuthMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingMode.java index 8a9376842..87f2d4c52 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasIndexingMode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasIndexingMode { @JsonValue private final String value; - private DestinationWeaviateSchemasIndexingMode(String value) { + DestinationWeaviateSchemasIndexingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasMode.java index fc14b3662..05e65dcca 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasMode { @JsonValue private final String value; - private DestinationWeaviateSchemasMode(String value) { + DestinationWeaviateSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingMode.java index 181a7e72e..f7fa4d94a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingMode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasProcessingMode { @JsonValue private final String value; - private DestinationWeaviateSchemasProcessingMode(String value) { + DestinationWeaviateSchemasProcessingMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterMode.java index 8a4ab4eee..9e9264db7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasProcessingTextSplitterMode { @JsonValue private final String value; - private DestinationWeaviateSchemasProcessingTextSplitterMode(String value) { + DestinationWeaviateSchemasProcessingTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.java index 5a4dfd5ad..b72cdd8ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode.java @@ -14,7 +14,7 @@ public enum DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode { @JsonValue private final String value; - private DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode(String value) { + DestinationWeaviateSchemasProcessingTextSplitterTextSplitterMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateTextSplitter.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateTextSplitter.java index fce0aa57a..7f1c2cbe6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateTextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateTextSplitter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationWeaviateTextSplitter @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationWeaviateTextSplitter other = (DestinationWeaviateTextSplitter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateUsernamePassword.java b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateUsernamePassword.java index dd2a034cb..6e6b15ad2 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateUsernamePassword.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationWeaviateUsernamePassword.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -73,9 +72,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Password for the Weaviate cluster @@ -95,7 +95,6 @@ public DestinationWeaviateUsernamePassword withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +105,15 @@ public boolean equals(java.lang.Object o) { } DestinationWeaviateUsernamePassword other = (DestinationWeaviateUsernamePassword) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - mode, - password, - username); + return Utils.enhancedHash( + mode, password, username); } @Override @@ -126,17 +123,19 @@ public String toString() { "password", password, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Password for the Weaviate cluster */ @@ -146,6 +145,7 @@ public Builder password(String password) { return this; } + /** * Username for the Weaviate cluster */ @@ -154,13 +154,14 @@ public Builder username(String username) { this.username = username; return this; } - + public DestinationWeaviateUsernamePassword build() { + return new DestinationWeaviateUsernamePassword( - password, - username); + password, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrick.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrick.java index 344328ccd..2a7dbd934 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrick.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrick.java @@ -16,17 +16,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class DestinationYellowbrick { +public class DestinationYellowbrick { /** * Name of the database. */ @JsonProperty("database") private String database; + @JsonProperty("destinationType") private Yellowbrick destinationType; @@ -37,7 +37,9 @@ public class DestinationYellowbrick { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -58,7 +60,8 @@ public class DestinationYellowbrick { private Optional port; /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("schema") @@ -72,21 +75,28 @@ public class DestinationYellowbrick { private Optional ssl; /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl_mode") private Optional sslMode; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -137,7 +147,10 @@ public DestinationYellowbrick( String database, String host, String username) { - this(database, host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + this(database, host, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + username); } /** @@ -162,7 +175,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -186,7 +201,8 @@ public Optional port() { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ @JsonIgnore public Optional schema() { @@ -202,14 +218,20 @@ public Optional ssl() { } /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -218,7 +240,8 @@ public Optional sslMode() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -234,9 +257,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the database. @@ -257,7 +281,9 @@ public DestinationYellowbrick withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationYellowbrick withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -265,8 +291,11 @@ public DestinationYellowbrick withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public DestinationYellowbrick withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -283,6 +312,7 @@ public DestinationYellowbrick withPassword(String password) { return this; } + /** * Password associated with the username. */ @@ -301,6 +331,7 @@ public DestinationYellowbrick withPort(long port) { return this; } + /** * Port of the database. */ @@ -311,7 +342,8 @@ public DestinationYellowbrick withPort(Optional port) { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public DestinationYellowbrick withSchema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -319,8 +351,10 @@ public DestinationYellowbrick withSchema(String schema) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public DestinationYellowbrick withSchema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -337,6 +371,7 @@ public DestinationYellowbrick withSsl(boolean ssl) { return this; } + /** * Encrypt data using SSL. When activating SSL, please select one of the connection modes. */ @@ -347,14 +382,20 @@ public DestinationYellowbrick withSsl(Optional ssl) { } /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ public DestinationYellowbrick withSslMode(DestinationYellowbrickSSLModes sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -362,15 +403,22 @@ public DestinationYellowbrick withSslMode(DestinationYellowbrickSSLModes sslMode return this; } + /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ public DestinationYellowbrick withSslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -379,7 +427,8 @@ public DestinationYellowbrick withSslMode(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -405,7 +456,6 @@ public DestinationYellowbrick withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -416,33 +466,26 @@ public boolean equals(java.lang.Object o) { } DestinationYellowbrick other = (DestinationYellowbrick) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.destinationType, other.destinationType) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.schema, other.schema) && - Objects.deepEquals(this.ssl, other.ssl) && - Objects.deepEquals(this.sslMode, other.sslMode) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.destinationType, other.destinationType) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.schema, other.schema) && + Utils.enhancedDeepEquals(this.ssl, other.ssl) && + Utils.enhancedDeepEquals(this.sslMode, other.sslMode) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - database, - destinationType, - host, - jdbcUrlParams, - password, - port, - schema, - ssl, - sslMode, - tunnelMethod, - username); + return Utils.enhancedHash( + database, destinationType, host, + jdbcUrlParams, password, port, + schema, ssl, sslMode, + tunnelMethod, username); } @Override @@ -460,33 +503,35 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String database; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional password = Optional.empty(); - + private Optional port; - + private Optional schema; - + private Optional ssl; - + private Optional sslMode = Optional.empty(); - + private Optional tunnelMethod = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Name of the database. */ @@ -496,6 +541,7 @@ public Builder database(String database) { return this; } + /** * Hostname of the database. */ @@ -505,8 +551,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -515,7 +564,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -523,6 +574,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * Password associated with the username. */ @@ -541,6 +593,7 @@ public Builder password(Optional password) { return this; } + /** * Port of the database. */ @@ -559,8 +612,10 @@ public Builder port(Optional port) { return this; } + /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public Builder schema(String schema) { Utils.checkNotNull(schema, "schema"); @@ -569,7 +624,8 @@ public Builder schema(String schema) { } /** - * The default schema tables are written to if the source does not specify a namespace. The usual value for this field is "public". + * The default schema tables are written to if the source does not specify a namespace. The usual value + * for this field is "public". */ public Builder schema(Optional schema) { Utils.checkNotNull(schema, "schema"); @@ -577,6 +633,7 @@ public Builder schema(Optional schema) { return this; } + /** * Encrypt data using SSL. When activating SSL, please select one of the connection modes. */ @@ -595,15 +652,22 @@ public Builder ssl(Optional ssl) { return this; } + /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ public Builder sslMode(DestinationYellowbrickSSLModes sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -612,14 +676,20 @@ public Builder sslMode(DestinationYellowbrickSSLModes sslMode) { } /** - * SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ public Builder sslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -627,8 +697,10 @@ public Builder sslMode(Optional sslMod return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(DestinationYellowbrickSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -637,7 +709,8 @@ public Builder tunnelMethod(DestinationYellowbrickSSHTunnelMethod tunnelMethod) } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -645,6 +718,7 @@ public Builder tunnelMethod(Optional _SINGLETON_VALUE_DestinationType = new LazySingletonValue<>( "destinationType", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickAllow.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickAllow.java index 27398bc58..2370fb1e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickAllow.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickAllow.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class DestinationYellowbrickAllow { @JsonCreator public DestinationYellowbrickAllow() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } DestinationYellowbrickAllow other = (DestinationYellowbrickAllow) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(DestinationYellowbrickAllow.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationYellowbrickAllow build() { + return new DestinationYellowbrickAllow( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickDisable.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickDisable.java index a3dac9007..dcbeb967e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickDisable.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickDisable.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class DestinationYellowbrickDisable { @JsonCreator public DestinationYellowbrickDisable() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } DestinationYellowbrickDisable other = (DestinationYellowbrickDisable) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(DestinationYellowbrickDisable.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationYellowbrickDisable build() { + return new DestinationYellowbrickDisable( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java index bea3d2b6f..cd548462c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickMode.java @@ -14,7 +14,7 @@ public enum DestinationYellowbrickMode { @JsonValue private final String value; - private DestinationYellowbrickMode(String value) { + DestinationYellowbrickMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickNoTunnel.java index 377d527da..9833e76d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class DestinationYellowbrickNoTunnel { +public class DestinationYellowbrickNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class DestinationYellowbrickNoTunnel { @JsonCreator public DestinationYellowbrickNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public DestinationYellowbrickTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } DestinationYellowbrickNoTunnel other = (DestinationYellowbrickNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(DestinationYellowbrickNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationYellowbrickNoTunnel build() { + return new DestinationYellowbrickNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPasswordAuthentication.java index 4bfd87e9b..e59992315 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationYellowbrickPasswordAuthentication { +public class DestinationYellowbrickPasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public DestinationYellowbrickPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public DestinationYellowbrickPasswordAuthentication withTunnelPort(long tunnelPo return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public DestinationYellowbrickPasswordAuthentication withTunnelUserPassword(Strin return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } DestinationYellowbrickPasswordAuthentication other = (DestinationYellowbrickPasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public DestinationYellowbrickPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationYellowbrickPasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPrefer.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPrefer.java index 1f171dae2..79cbb3d0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPrefer.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickPrefer.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class DestinationYellowbrickPrefer { @JsonCreator public DestinationYellowbrickPrefer() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } DestinationYellowbrickPrefer other = (DestinationYellowbrickPrefer) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(DestinationYellowbrickPrefer.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationYellowbrickPrefer build() { + return new DestinationYellowbrickPrefer( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickRequire.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickRequire.java index e962d6e54..58c154e72 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickRequire.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickRequire.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class DestinationYellowbrickRequire { @JsonCreator public DestinationYellowbrickRequire() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } DestinationYellowbrickRequire other = (DestinationYellowbrickRequire) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(DestinationYellowbrickRequire.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DestinationYellowbrickRequire build() { + return new DestinationYellowbrickRequire( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHKeyAuthentication.java index 40494cec2..972d77732 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DestinationYellowbrickSSHKeyAuthentication { +public class DestinationYellowbrickSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public DestinationYellowbrickSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public DestinationYellowbrickSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public DestinationYellowbrickSSHKeyAuthentication withTunnelPort(long tunnelPort return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public DestinationYellowbrickSSHKeyAuthentication withTunnelUser(String tunnelUs return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } DestinationYellowbrickSSHKeyAuthentication other = (DestinationYellowbrickSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public DestinationYellowbrickSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new DestinationYellowbrickSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHTunnelMethod.java index f8e3161c7..725ce9541 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationYellowbrickSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = DestinationYellowbrickSSHTunnelMethod._Deserializer.class) public class DestinationYellowbrickSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationYellowbrickSSHTunnelMethod other = (DestinationYellowbrickSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSLModes.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSLModes.java index 6045f0dfa..823e9b7bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSSLModes.java @@ -14,19 +14,24 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DestinationYellowbrickSSLModes * - *

    SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + *

    SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ @JsonDeserialize(using = DestinationYellowbrickSSLModes._Deserializer.class) public class DestinationYellowbrickSSLModes { @@ -103,12 +108,12 @@ public boolean equals(java.lang.Object o) { return false; } DestinationYellowbrickSSLModes other = (DestinationYellowbrickSSLModes) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java index 1984bea1c..0821113cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasMode.java @@ -14,7 +14,7 @@ public enum DestinationYellowbrickSchemasMode { @JsonValue private final String value; - private DestinationYellowbrickSchemasMode(String value) { + DestinationYellowbrickSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes5Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes5Mode.java index 05993bdd8..87f5c7a27 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes5Mode.java @@ -14,7 +14,7 @@ public enum DestinationYellowbrickSchemasSSLModeSSLModes5Mode { @JsonValue private final String value; - private DestinationYellowbrickSchemasSSLModeSSLModes5Mode(String value) { + DestinationYellowbrickSchemasSSLModeSSLModes5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes6Mode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes6Mode.java index 604bd4d6c..9ac93a570 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModes6Mode.java @@ -14,7 +14,7 @@ public enum DestinationYellowbrickSchemasSSLModeSSLModes6Mode { @JsonValue private final String value; - private DestinationYellowbrickSchemasSSLModeSSLModes6Mode(String value) { + DestinationYellowbrickSchemasSSLModeSSLModes6Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModesMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModesMode.java index a4e2e1e93..e5a52205d 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSSLModeSSLModesMode.java @@ -14,7 +14,7 @@ public enum DestinationYellowbrickSchemasSSLModeSSLModesMode { @JsonValue private final String value; - private DestinationYellowbrickSchemasSSLModeSSLModesMode(String value) { + DestinationYellowbrickSchemasSSLModeSSLModesMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSslModeMode.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSslModeMode.java index cdaeb235f..6105e9fce 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasSslModeMode.java @@ -14,7 +14,7 @@ public enum DestinationYellowbrickSchemasSslModeMode { @JsonValue private final String value; - private DestinationYellowbrickSchemasSslModeMode(String value) { + DestinationYellowbrickSchemasSslModeMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethod.java index 21fdce3b2..e091ebd7e 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationYellowbrickSchemasTunnelMethod { @JsonValue private final String value; - private DestinationYellowbrickSchemasTunnelMethod(String value) { + DestinationYellowbrickSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethodTunnelMethod.java index ea281543d..bd359b81b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationYellowbrickSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private DestinationYellowbrickSchemasTunnelMethodTunnelMethod(String value) { + DestinationYellowbrickSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickTunnelMethod.java index afe5c49c6..571d4d1b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickTunnelMethod.java @@ -19,7 +19,7 @@ public enum DestinationYellowbrickTunnelMethod { @JsonValue private final String value; - private DestinationYellowbrickTunnelMethod(String value) { + DestinationYellowbrickTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyCa.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyCa.java index 2e0b597a2..4034caadf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyCa.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyCa.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -23,7 +22,6 @@ *

    Verify-ca SSL mode. */ public class DestinationYellowbrickVerifyCa { - /** * CA certificate */ @@ -31,12 +29,14 @@ public class DestinationYellowbrickVerifyCa { private String caCertificate; /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_key_password") private Optional clientKeyPassword; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -66,7 +66,8 @@ public String caCertificate() { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonIgnore public Optional clientKeyPassword() { @@ -79,9 +80,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * CA certificate @@ -93,7 +95,8 @@ public DestinationYellowbrickVerifyCa withCaCertificate(String caCertificate) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public DestinationYellowbrickVerifyCa withClientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -101,8 +104,10 @@ public DestinationYellowbrickVerifyCa withClientKeyPassword(String clientKeyPass return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public DestinationYellowbrickVerifyCa withClientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -110,7 +115,6 @@ public DestinationYellowbrickVerifyCa withClientKeyPassword(Optional cli return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,17 +125,15 @@ public boolean equals(java.lang.Object o) { } DestinationYellowbrickVerifyCa other = (DestinationYellowbrickVerifyCa) o; return - Objects.deepEquals(this.caCertificate, other.caCertificate) && - Objects.deepEquals(this.clientKeyPassword, other.clientKeyPassword) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.caCertificate, other.caCertificate) && + Utils.enhancedDeepEquals(this.clientKeyPassword, other.clientKeyPassword) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - caCertificate, - clientKeyPassword, - mode); + return Utils.enhancedHash( + caCertificate, clientKeyPassword, mode); } @Override @@ -141,17 +143,19 @@ public String toString() { "clientKeyPassword", clientKeyPassword, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String caCertificate; - + private Optional clientKeyPassword = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * CA certificate */ @@ -161,8 +165,10 @@ public Builder caCertificate(String caCertificate) { return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -171,20 +177,22 @@ public Builder clientKeyPassword(String clientKeyPassword) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); this.clientKeyPassword = clientKeyPassword; return this; } - + public DestinationYellowbrickVerifyCa build() { + return new DestinationYellowbrickVerifyCa( - caCertificate, - clientKeyPassword); + caCertificate, clientKeyPassword); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyFull.java b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyFull.java index bee153053..ded3a796c 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyFull.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationYellowbrickVerifyFull.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -23,7 +22,6 @@ *

    Verify-full SSL mode. */ public class DestinationYellowbrickVerifyFull { - /** * CA certificate */ @@ -43,12 +41,14 @@ public class DestinationYellowbrickVerifyFull { private String clientKey; /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_key_password") private Optional clientKeyPassword; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -74,7 +74,8 @@ public DestinationYellowbrickVerifyFull( String caCertificate, String clientCertificate, String clientKey) { - this(caCertificate, clientCertificate, clientKey, Optional.empty()); + this(caCertificate, clientCertificate, clientKey, + Optional.empty()); } /** @@ -102,7 +103,8 @@ public String clientKey() { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonIgnore public Optional clientKeyPassword() { @@ -115,9 +117,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * CA certificate @@ -147,7 +150,8 @@ public DestinationYellowbrickVerifyFull withClientKey(String clientKey) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public DestinationYellowbrickVerifyFull withClientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -155,8 +159,10 @@ public DestinationYellowbrickVerifyFull withClientKeyPassword(String clientKeyPa return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public DestinationYellowbrickVerifyFull withClientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -164,7 +170,6 @@ public DestinationYellowbrickVerifyFull withClientKeyPassword(Optional c return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -175,21 +180,18 @@ public boolean equals(java.lang.Object o) { } DestinationYellowbrickVerifyFull other = (DestinationYellowbrickVerifyFull) o; return - Objects.deepEquals(this.caCertificate, other.caCertificate) && - Objects.deepEquals(this.clientCertificate, other.clientCertificate) && - Objects.deepEquals(this.clientKey, other.clientKey) && - Objects.deepEquals(this.clientKeyPassword, other.clientKeyPassword) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.caCertificate, other.caCertificate) && + Utils.enhancedDeepEquals(this.clientCertificate, other.clientCertificate) && + Utils.enhancedDeepEquals(this.clientKey, other.clientKey) && + Utils.enhancedDeepEquals(this.clientKeyPassword, other.clientKeyPassword) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - caCertificate, - clientCertificate, - clientKey, - clientKeyPassword, - mode); + return Utils.enhancedHash( + caCertificate, clientCertificate, clientKey, + clientKeyPassword, mode); } @Override @@ -201,21 +203,23 @@ public String toString() { "clientKeyPassword", clientKeyPassword, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String caCertificate; - + private String clientCertificate; - + private String clientKey; - + private Optional clientKeyPassword = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * CA certificate */ @@ -225,6 +229,7 @@ public Builder caCertificate(String caCertificate) { return this; } + /** * Client certificate */ @@ -234,6 +239,7 @@ public Builder clientCertificate(String clientCertificate) { return this; } + /** * Client key */ @@ -243,8 +249,10 @@ public Builder clientKey(String clientKey) { return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -253,22 +261,23 @@ public Builder clientKeyPassword(String clientKeyPassword) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); this.clientKeyPassword = clientKeyPassword; return this; } - + public DestinationYellowbrickVerifyFull build() { + return new DestinationYellowbrickVerifyFull( - caCertificate, - clientCertificate, - clientKey, + caCertificate, clientCertificate, clientKey, clientKeyPassword); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DestinationsResponse.java b/src/main/java/com/airbyte/api/models/shared/DestinationsResponse.java index 42e53eeef..20ec3bdce 100644 --- a/src/main/java/com/airbyte/api/models/shared/DestinationsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/DestinationsResponse.java @@ -12,18 +12,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class DestinationsResponse { @JsonProperty("data") private List data; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("next") private Optional next; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("previous") private Optional previous; @@ -61,9 +63,10 @@ public Optional previous() { return previous; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DestinationsResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -77,6 +80,7 @@ public DestinationsResponse withNext(String next) { return this; } + public DestinationsResponse withNext(Optional next) { Utils.checkNotNull(next, "next"); this.next = next; @@ -89,13 +93,13 @@ public DestinationsResponse withPrevious(String previous) { return this; } + public DestinationsResponse withPrevious(Optional previous) { Utils.checkNotNull(previous, "previous"); this.previous = previous; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +110,15 @@ public boolean equals(java.lang.Object o) { } DestinationsResponse other = (DestinationsResponse) o; return - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.next, other.next) && - Objects.deepEquals(this.previous, other.previous); + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.previous, other.previous); } @Override public int hashCode() { - return Objects.hash( - data, - next, - previous); + return Utils.enhancedHash( + data, next, previous); } @Override @@ -126,25 +128,28 @@ public String toString() { "next", next, "previous", previous); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Optional next = Optional.empty(); - + private Optional previous = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } + public Builder next(String next) { Utils.checkNotNull(next, "next"); this.next = Optional.ofNullable(next); @@ -157,6 +162,7 @@ public Builder next(Optional next) { return this; } + public Builder previous(String previous) { Utils.checkNotNull(previous, "previous"); this.previous = Optional.ofNullable(previous); @@ -168,12 +174,12 @@ public Builder previous(Optional previous) { this.previous = previous; return this; } - + public DestinationsResponse build() { + return new DestinationsResponse( - data, - next, - previous); + data, next, previous); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DetailType.java b/src/main/java/com/airbyte/api/models/shared/DetailType.java index a70eac62e..7513ccd35 100644 --- a/src/main/java/com/airbyte/api/models/shared/DetailType.java +++ b/src/main/java/com/airbyte/api/models/shared/DetailType.java @@ -20,7 +20,7 @@ public enum DetailType { @JsonValue private final String value; - private DetailType(String value) { + DetailType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java b/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java index 6da150198..e122fa1bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java +++ b/src/main/java/com/airbyte/api/models/shared/DetectChangesWithXminSystemColumn.java @@ -11,12 +11,13 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * DetectChangesWithXminSystemColumn * - *

    <i>Recommended</i> - Incrementally reads new inserts and updates via Postgres <a href="https://docs.airbyte.com/integrations/sources/postgres/#xmin">Xmin system column</a>. Suitable for databases that have low transaction pressure. + *

    Recommended - Incrementally reads new inserts and updates via Postgres Xmin system column. Suitable + * for databases that have low transaction pressure. */ public class DetectChangesWithXminSystemColumn { @@ -25,7 +26,6 @@ public class DetectChangesWithXminSystemColumn { @JsonCreator public DetectChangesWithXminSystemColumn() { - this.method = Builder._SINGLETON_VALUE_Method.value(); } @@ -34,11 +34,11 @@ public SourcePostgresSchemasMethod method() { return method; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } DetectChangesWithXminSystemColumn other = (DetectChangesWithXminSystemColumn) o; return - Objects.deepEquals(this.method, other.method); + Utils.enhancedDeepEquals(this.method, other.method); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( method); } @@ -63,18 +63,21 @@ public String toString() { return Utils.toString(DetectChangesWithXminSystemColumn.class, "method", method); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public DetectChangesWithXminSystemColumn build() { + return new DetectChangesWithXminSystemColumn( ); } + private static final LazySingletonValue _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", diff --git a/src/main/java/com/airbyte/api/models/shared/DevNull.java b/src/main/java/com/airbyte/api/models/shared/DevNull.java index 715dba8cc..579843756 100644 --- a/src/main/java/com/airbyte/api/models/shared/DevNull.java +++ b/src/main/java/com/airbyte/api/models/shared/DevNull.java @@ -14,7 +14,7 @@ public enum DevNull { @JsonValue private final String value; - private DevNull(String value) { + DevNull(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Dimension.java b/src/main/java/com/airbyte/api/models/shared/Dimension.java index b37337c0f..d454c76db 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dimension.java +++ b/src/main/java/com/airbyte/api/models/shared/Dimension.java @@ -19,7 +19,7 @@ public enum Dimension { @JsonValue private final String value; - private Dimension(String value) { + Dimension(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DimensionsFilter.java b/src/main/java/com/airbyte/api/models/shared/DimensionsFilter.java index 0d0e1aecb..7722eea29 100644 --- a/src/main/java/com/airbyte/api/models/shared/DimensionsFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/DimensionsFilter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * DimensionsFilter @@ -84,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } DimensionsFilter other = (DimensionsFilter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/DingConnect.java b/src/main/java/com/airbyte/api/models/shared/DingConnect.java index 76c11949c..74fb3aaab 100644 --- a/src/main/java/com/airbyte/api/models/shared/DingConnect.java +++ b/src/main/java/com/airbyte/api/models/shared/DingConnect.java @@ -14,7 +14,7 @@ public enum DingConnect { @JsonValue private final String value; - private DingConnect(String value) { + DingConnect(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Disable.java b/src/main/java/com/airbyte/api/models/shared/Disable.java index a76918523..b0fe8e53f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Disable.java +++ b/src/main/java/com/airbyte/api/models/shared/Disable.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class Disable { @JsonCreator public Disable() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } Disable other = (Disable) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(Disable.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public Disable build() { + return new Disable( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/Disabled.java b/src/main/java/com/airbyte/api/models/shared/Disabled.java index b5f53a2b8..e76cc14d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Disabled.java +++ b/src/main/java/com/airbyte/api/models/shared/Disabled.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class Disabled { @@ -20,7 +20,6 @@ public class Disabled { @JsonCreator public Disabled() { - this.deletionMode = Builder._SINGLETON_VALUE_DeletionMode.value(); } @@ -29,11 +28,11 @@ public SourceFaunaSchemasDeletionMode deletionMode() { return deletionMode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -44,12 +43,12 @@ public boolean equals(java.lang.Object o) { } Disabled other = (Disabled) o; return - Objects.deepEquals(this.deletionMode, other.deletionMode); + Utils.enhancedDeepEquals(this.deletionMode, other.deletionMode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( deletionMode); } @@ -58,18 +57,21 @@ public String toString() { return Utils.toString(Disabled.class, "deletionMode", deletionMode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public Disabled build() { + return new Disabled( ); } + private static final LazySingletonValue _SINGLETON_VALUE_DeletionMode = new LazySingletonValue<>( "deletion_mode", diff --git a/src/main/java/com/airbyte/api/models/shared/DistanceMetric.java b/src/main/java/com/airbyte/api/models/shared/DistanceMetric.java index 43e10668a..1a07e7a83 100644 --- a/src/main/java/com/airbyte/api/models/shared/DistanceMetric.java +++ b/src/main/java/com/airbyte/api/models/shared/DistanceMetric.java @@ -11,7 +11,8 @@ /** * DistanceMetric * - *

    The Distance metric used to measure similarities among vectors. This field is only used if the collection defined in the does not exist yet and is created automatically by the connector. + *

    The Distance metric used to measure similarities among vectors. This field is only used if the + * collection defined in the does not exist yet and is created automatically by the connector. */ public enum DistanceMetric { DOT("dot"), @@ -21,7 +22,7 @@ public enum DistanceMetric { @JsonValue private final String value; - private DistanceMetric(String value) { + DistanceMetric(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Dixa.java b/src/main/java/com/airbyte/api/models/shared/Dixa.java index c72e39778..ccbf0c8a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dixa.java +++ b/src/main/java/com/airbyte/api/models/shared/Dixa.java @@ -14,7 +14,7 @@ public enum Dixa { @JsonValue private final String value; - private Dixa(String value) { + Dixa(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Dockerhub.java b/src/main/java/com/airbyte/api/models/shared/Dockerhub.java index d0c6be7d3..a9e163b59 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dockerhub.java +++ b/src/main/java/com/airbyte/api/models/shared/Dockerhub.java @@ -14,7 +14,7 @@ public enum Dockerhub { @JsonValue private final String value; - private Dockerhub(String value) { + Dockerhub(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Docuseal.java b/src/main/java/com/airbyte/api/models/shared/Docuseal.java index 6ce99ac3d..de0d9878a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Docuseal.java +++ b/src/main/java/com/airbyte/api/models/shared/Docuseal.java @@ -14,7 +14,7 @@ public enum Docuseal { @JsonValue private final String value; - private Docuseal(String value) { + Docuseal(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Dolibarr.java b/src/main/java/com/airbyte/api/models/shared/Dolibarr.java new file mode 100644 index 000000000..1eaa2a7bc --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Dolibarr.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Dolibarr { + DOLIBARR("dolibarr"); + + @JsonValue + private final String value; + + Dolibarr(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Dolibarr o: Dolibarr.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Domain.java b/src/main/java/com/airbyte/api/models/shared/Domain.java index 335da1255..6d887b71b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Domain.java +++ b/src/main/java/com/airbyte/api/models/shared/Domain.java @@ -11,7 +11,8 @@ /** * Domain * - *

    The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + *

    The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ public enum Domain { COM("com"), @@ -26,7 +27,7 @@ public enum Domain { @JsonValue private final String value; - private Domain(String value) { + Domain(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java b/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java index 915c44a9a..dd0c5c887 100644 --- a/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java +++ b/src/main/java/com/airbyte/api/models/shared/DomainRegionCode.java @@ -20,7 +20,7 @@ public enum DomainRegionCode { @JsonValue private final String value; - private DomainRegionCode(String value) { + DomainRegionCode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/DoubleValue.java index 5ce96e49e..293d6496b 100644 --- a/src/main/java/com/airbyte/api/models/shared/DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/DoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class DoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiValueType valueType() { return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public DoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public DoubleValue withValue(double value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } DoubleValue other = (DoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public DoubleValue build() { + return new DoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Dremio.java b/src/main/java/com/airbyte/api/models/shared/Dremio.java index d3ad3822b..a6af1c9e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dremio.java +++ b/src/main/java/com/airbyte/api/models/shared/Dremio.java @@ -14,7 +14,7 @@ public enum Dremio { @JsonValue private final String value; - private Dremio(String value) { + Dremio(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Drift.java b/src/main/java/com/airbyte/api/models/shared/Drift.java index 0a32df0af..9483807d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Drift.java +++ b/src/main/java/com/airbyte/api/models/shared/Drift.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Drift { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Drift withCredentials(DriftCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Drift withCredentials(DriftCredentials credentials) { return this; } + public Drift withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Drift other = (Drift) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Drift.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(DriftCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Drift build() { + return new Drift( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/DriftCredentials.java b/src/main/java/com/airbyte/api/models/shared/DriftCredentials.java index cfadd34fd..84dd2bff5 100644 --- a/src/main/java/com/airbyte/api/models/shared/DriftCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/DriftCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class DriftCredentials { +public class DriftCredentials { /** * The Client ID of your Drift developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Drift developer application. @@ -73,6 +73,7 @@ public DriftCredentials withClientId(String clientId) { return this; } + /** * The Client ID of your Drift developer application. */ @@ -91,6 +92,7 @@ public DriftCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your Drift developer application. */ @@ -100,7 +102,6 @@ public DriftCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } DriftCredentials other = (DriftCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Drift developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your Drift developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public DriftCredentials build() { + return new DriftCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Drip.java b/src/main/java/com/airbyte/api/models/shared/Drip.java index 7b0a33438..9a694abfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/Drip.java +++ b/src/main/java/com/airbyte/api/models/shared/Drip.java @@ -14,7 +14,7 @@ public enum Drip { @JsonValue private final String value; - private Drip(String value) { + Drip(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DropboxSign.java b/src/main/java/com/airbyte/api/models/shared/DropboxSign.java index 9e5affc22..16dd5886a 100644 --- a/src/main/java/com/airbyte/api/models/shared/DropboxSign.java +++ b/src/main/java/com/airbyte/api/models/shared/DropboxSign.java @@ -14,7 +14,7 @@ public enum DropboxSign { @JsonValue private final String value; - private DropboxSign(String value) { + DropboxSign(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Duckdb.java b/src/main/java/com/airbyte/api/models/shared/Duckdb.java index 67b2e9dff..c8377f2a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Duckdb.java +++ b/src/main/java/com/airbyte/api/models/shared/Duckdb.java @@ -14,7 +14,7 @@ public enum Duckdb { @JsonValue private final String value; - private Duckdb(String value) { + Duckdb(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Dwolla.java b/src/main/java/com/airbyte/api/models/shared/Dwolla.java index 0075c3d6d..712e590e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dwolla.java +++ b/src/main/java/com/airbyte/api/models/shared/Dwolla.java @@ -14,7 +14,7 @@ public enum Dwolla { @JsonValue private final String value; - private Dwolla(String value) { + Dwolla(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/DynamoDBRegion.java b/src/main/java/com/airbyte/api/models/shared/DynamoDBRegion.java index 99abb6c74..884720499 100644 --- a/src/main/java/com/airbyte/api/models/shared/DynamoDBRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/DynamoDBRegion.java @@ -52,7 +52,7 @@ public enum DynamoDBRegion { @JsonValue private final String value; - private DynamoDBRegion(String value) { + DynamoDBRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Dynamodb.java b/src/main/java/com/airbyte/api/models/shared/Dynamodb.java index 30bcf30db..7a032bd28 100644 --- a/src/main/java/com/airbyte/api/models/shared/Dynamodb.java +++ b/src/main/java/com/airbyte/api/models/shared/Dynamodb.java @@ -14,7 +14,7 @@ public enum Dynamodb { @JsonValue private final String value; - private Dynamodb(String value) { + Dynamodb(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EConomic.java b/src/main/java/com/airbyte/api/models/shared/EConomic.java index a38b831fa..9561905b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/EConomic.java +++ b/src/main/java/com/airbyte/api/models/shared/EConomic.java @@ -14,7 +14,7 @@ public enum EConomic { @JsonValue private final String value; - private EConomic(String value) { + EConomic(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EUBasedAccount.java b/src/main/java/com/airbyte/api/models/shared/EUBasedAccount.java index e515263ae..a714d3e2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/EUBasedAccount.java +++ b/src/main/java/com/airbyte/api/models/shared/EUBasedAccount.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class EUBasedAccount { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class EUBasedAccount { @JsonCreator public EUBasedAccount() { - this.urlBase = Builder._SINGLETON_VALUE_UrlBase.value(); } @@ -35,11 +34,11 @@ public Optional urlBase() { return (Optional) urlBase; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } EUBasedAccount other = (EUBasedAccount) o; return - Objects.deepEquals(this.urlBase, other.urlBase); + Utils.enhancedDeepEquals(this.urlBase, other.urlBase); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( urlBase); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(EUBasedAccount.class, "urlBase", urlBase); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public EUBasedAccount build() { + return new EUBasedAccount( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_UrlBase = new LazySingletonValue<>( "url_base", diff --git a/src/main/java/com/airbyte/api/models/shared/Easypost.java b/src/main/java/com/airbyte/api/models/shared/Easypost.java index 4bb966fbb..470d3fed8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Easypost.java +++ b/src/main/java/com/airbyte/api/models/shared/Easypost.java @@ -14,7 +14,7 @@ public enum Easypost { @JsonValue private final String value; - private Easypost(String value) { + Easypost(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Easypromos.java b/src/main/java/com/airbyte/api/models/shared/Easypromos.java index 027c125c2..1bdf7e149 100644 --- a/src/main/java/com/airbyte/api/models/shared/Easypromos.java +++ b/src/main/java/com/airbyte/api/models/shared/Easypromos.java @@ -14,7 +14,7 @@ public enum Easypromos { @JsonValue private final String value; - private Easypromos(String value) { + Easypromos(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EbayFinance.java b/src/main/java/com/airbyte/api/models/shared/EbayFinance.java index 080c4d037..2242aa80c 100644 --- a/src/main/java/com/airbyte/api/models/shared/EbayFinance.java +++ b/src/main/java/com/airbyte/api/models/shared/EbayFinance.java @@ -14,7 +14,7 @@ public enum EbayFinance { @JsonValue private final String value; - private EbayFinance(String value) { + EbayFinance(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EbayFulfillment.java b/src/main/java/com/airbyte/api/models/shared/EbayFulfillment.java new file mode 100644 index 000000000..a4e733765 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/EbayFulfillment.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum EbayFulfillment { + EBAY_FULFILLMENT("ebay-fulfillment"); + + @JsonValue + private final String value; + + EbayFulfillment(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (EbayFulfillment o: EbayFulfillment.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Elasticemail.java b/src/main/java/com/airbyte/api/models/shared/Elasticemail.java index fcb6f1b2a..ea042fddb 100644 --- a/src/main/java/com/airbyte/api/models/shared/Elasticemail.java +++ b/src/main/java/com/airbyte/api/models/shared/Elasticemail.java @@ -14,7 +14,7 @@ public enum Elasticemail { @JsonValue private final String value; - private Elasticemail(String value) { + Elasticemail(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Elasticsearch.java b/src/main/java/com/airbyte/api/models/shared/Elasticsearch.java index f532e27b1..4a5f7e217 100644 --- a/src/main/java/com/airbyte/api/models/shared/Elasticsearch.java +++ b/src/main/java/com/airbyte/api/models/shared/Elasticsearch.java @@ -14,7 +14,7 @@ public enum Elasticsearch { @JsonValue private final String value; - private Elasticsearch(String value) { + Elasticsearch(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EmailNotificationConfig.java b/src/main/java/com/airbyte/api/models/shared/EmailNotificationConfig.java index 2a1407169..4710e0ca6 100644 --- a/src/main/java/com/airbyte/api/models/shared/EmailNotificationConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/EmailNotificationConfig.java @@ -12,7 +12,6 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -42,9 +41,10 @@ public Optional enabled() { return enabled; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public EmailNotificationConfig withEnabled(boolean enabled) { Utils.checkNotNull(enabled, "enabled"); @@ -52,13 +52,13 @@ public EmailNotificationConfig withEnabled(boolean enabled) { return this; } + public EmailNotificationConfig withEnabled(Optional enabled) { Utils.checkNotNull(enabled, "enabled"); this.enabled = enabled; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,12 +69,12 @@ public boolean equals(java.lang.Object o) { } EmailNotificationConfig other = (EmailNotificationConfig) o; return - Objects.deepEquals(this.enabled, other.enabled); + Utils.enhancedDeepEquals(this.enabled, other.enabled); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( enabled); } @@ -83,15 +83,17 @@ public String toString() { return Utils.toString(EmailNotificationConfig.class, "enabled", enabled); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional enabled = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder enabled(boolean enabled) { Utils.checkNotNull(enabled, "enabled"); this.enabled = Optional.ofNullable(enabled); @@ -103,10 +105,12 @@ public Builder enabled(Optional enabled) { this.enabled = enabled; return this; } - + public EmailNotificationConfig build() { + return new EmailNotificationConfig( enabled); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java b/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java index a3d06ee7a..a07d0e8d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java +++ b/src/main/java/com/airbyte/api/models/shared/Emailoctopus.java @@ -14,7 +14,7 @@ public enum Emailoctopus { @JsonValue private final String value; - private Emailoctopus(String value) { + Emailoctopus(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Embedding.java b/src/main/java/com/airbyte/api/models/shared/Embedding.java index 35094a4f3..89bdbbef0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Embedding.java +++ b/src/main/java/com/airbyte/api/models/shared/Embedding.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * Embedding @@ -90,12 +89,12 @@ public boolean equals(java.lang.Object o) { return false; } Embedding other = (Embedding) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java b/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java index 6077e519e..b8470d90a 100644 --- a/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java +++ b/src/main/java/com/airbyte/api/models/shared/EmploymentHero.java @@ -14,7 +14,7 @@ public enum EmploymentHero { @JsonValue private final String value; - private EmploymentHero(String value) { + EmploymentHero(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Enabled.java b/src/main/java/com/airbyte/api/models/shared/Enabled.java index d25f07bc9..ee4fd3fe4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Enabled.java +++ b/src/main/java/com/airbyte/api/models/shared/Enabled.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class Enabled { +public class Enabled { /** * Name of the "deleted at" column. */ @@ -25,6 +24,7 @@ public class Enabled { @JsonProperty("column") private Optional column; + @JsonProperty("deletion_mode") private SourceFaunaDeletionMode deletionMode; @@ -53,9 +53,10 @@ public SourceFaunaDeletionMode deletionMode() { return deletionMode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the "deleted at" column. @@ -66,6 +67,7 @@ public Enabled withColumn(String column) { return this; } + /** * Name of the "deleted at" column. */ @@ -75,7 +77,6 @@ public Enabled withColumn(Optional column) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,15 +87,14 @@ public boolean equals(java.lang.Object o) { } Enabled other = (Enabled) o; return - Objects.deepEquals(this.column, other.column) && - Objects.deepEquals(this.deletionMode, other.deletionMode); + Utils.enhancedDeepEquals(this.column, other.column) && + Utils.enhancedDeepEquals(this.deletionMode, other.deletionMode); } @Override public int hashCode() { - return Objects.hash( - column, - deletionMode); + return Utils.enhancedHash( + column, deletionMode); } @Override @@ -103,15 +103,17 @@ public String toString() { "column", column, "deletionMode", deletionMode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional column; - + private Builder() { // force use of static builder() method } + /** * Name of the "deleted at" column. */ @@ -129,15 +131,17 @@ public Builder column(Optional column) { this.column = column; return this; } - + public Enabled build() { if (column == null) { column = _SINGLETON_VALUE_Column.value(); } + return new Enabled( column); } + private static final LazySingletonValue> _SINGLETON_VALUE_Column = new LazySingletonValue<>( "column", diff --git a/src/main/java/com/airbyte/api/models/shared/Encharge.java b/src/main/java/com/airbyte/api/models/shared/Encharge.java index dc8851db0..cac24d871 100644 --- a/src/main/java/com/airbyte/api/models/shared/Encharge.java +++ b/src/main/java/com/airbyte/api/models/shared/Encharge.java @@ -14,7 +14,7 @@ public enum Encharge { @JsonValue private final String value; - private Encharge(String value) { + Encharge(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptedTrustServerCertificate.java b/src/main/java/com/airbyte/api/models/shared/EncryptedTrustServerCertificate.java index 1bfa9fc5c..b27875444 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptedTrustServerCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptedTrustServerCertificate.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class EncryptedTrustServerCertificate { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") private Optional name; @@ -59,9 +59,10 @@ public Optional name() { return (Optional) name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public EncryptedTrustServerCertificate withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public EncryptedTrustServerCertificate withAdditionalProperty(String key, Object Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public EncryptedTrustServerCertificate withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public EncryptedTrustServerCertificate withName(DestinationMssqlName name) { return this; } + public EncryptedTrustServerCertificate withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } EncryptedTrustServerCertificate other = (EncryptedTrustServerCertificate) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - name); + return Utils.enhancedHash( + additionalProperties, name); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional name; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder name(DestinationMssqlName name) { Utils.checkNotNull(name, "name"); this.name = Optional.ofNullable(name); @@ -155,16 +156,18 @@ public Builder name(Optional name) { this.name = name; return this; } - + public EncryptedTrustServerCertificate build() { if (name == null) { name = _SINGLETON_VALUE_Name.value(); } + return new EncryptedTrustServerCertificate( name) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Name = new LazySingletonValue<>( "name", diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/EncryptedVerifyCertificate.java index 5c89f1415..7bc579e96 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptedVerifyCertificate.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -33,12 +32,14 @@ public class EncryptedVerifyCertificate { private Map additionalProperties; /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("hostNameInCertificate") private Optional hostNameInCertificate; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") private Optional name; @@ -75,7 +76,8 @@ public EncryptedVerifyCertificate( } public EncryptedVerifyCertificate() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonAnyGetter @@ -84,7 +86,8 @@ public Map additionalProperties() { } /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ @JsonIgnore public Optional hostNameInCertificate() { @@ -113,9 +116,10 @@ public Optional trustStorePassword() { return trustStorePassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public EncryptedVerifyCertificate withAdditionalProperty(String key, Object value) { @@ -123,8 +127,7 @@ public EncryptedVerifyCertificate withAdditionalProperty(String key, Object valu Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public EncryptedVerifyCertificate withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -132,7 +135,8 @@ public EncryptedVerifyCertificate withAdditionalProperties(Map a } /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public EncryptedVerifyCertificate withHostNameInCertificate(String hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -140,8 +144,10 @@ public EncryptedVerifyCertificate withHostNameInCertificate(String hostNameInCer return this; } + /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public EncryptedVerifyCertificate withHostNameInCertificate(Optional hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -155,6 +161,7 @@ public EncryptedVerifyCertificate withName(DestinationMssqlSchemasName name) { return this; } + public EncryptedVerifyCertificate withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -170,6 +177,7 @@ public EncryptedVerifyCertificate withTrustStoreName(String trustStoreName) { return this; } + /** * Specifies the name of the trust store. */ @@ -188,6 +196,7 @@ public EncryptedVerifyCertificate withTrustStorePassword(String trustStorePasswo return this; } + /** * Specifies the password of the trust store. */ @@ -197,7 +206,6 @@ public EncryptedVerifyCertificate withTrustStorePassword(Optional trustS return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -208,21 +216,18 @@ public boolean equals(java.lang.Object o) { } EncryptedVerifyCertificate other = (EncryptedVerifyCertificate) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.hostNameInCertificate, other.hostNameInCertificate) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.trustStoreName, other.trustStoreName) && - Objects.deepEquals(this.trustStorePassword, other.trustStorePassword); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.hostNameInCertificate, other.hostNameInCertificate) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.trustStoreName, other.trustStoreName) && + Utils.enhancedDeepEquals(this.trustStorePassword, other.trustStorePassword); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - hostNameInCertificate, - name, - trustStoreName, - trustStorePassword); + return Utils.enhancedHash( + additionalProperties, hostNameInCertificate, name, + trustStoreName, trustStorePassword); } @Override @@ -234,19 +239,20 @@ public String toString() { "trustStoreName", trustStoreName, "trustStorePassword", trustStorePassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional hostNameInCertificate = Optional.empty(); - + private Optional name; - + private Optional trustStoreName = Optional.empty(); - + private Optional trustStorePassword = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -267,8 +273,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public Builder hostNameInCertificate(String hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -277,7 +285,8 @@ public Builder hostNameInCertificate(String hostNameInCertificate) { } /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public Builder hostNameInCertificate(Optional hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -285,6 +294,7 @@ public Builder hostNameInCertificate(Optional hostNameInCertificate) { return this; } + public Builder name(DestinationMssqlSchemasName name) { Utils.checkNotNull(name, "name"); this.name = Optional.ofNullable(name); @@ -297,6 +307,7 @@ public Builder name(Optional name) { return this; } + /** * Specifies the name of the trust store. */ @@ -315,6 +326,7 @@ public Builder trustStoreName(Optional trustStoreName) { return this; } + /** * Specifies the password of the trust store. */ @@ -332,19 +344,19 @@ public Builder trustStorePassword(Optional trustStorePassword) { this.trustStorePassword = trustStorePassword; return this; } - + public EncryptedVerifyCertificate build() { if (name == null) { name = _SINGLETON_VALUE_Name.value(); } + return new EncryptedVerifyCertificate( - hostNameInCertificate, - name, - trustStoreName, + hostNameInCertificate, name, trustStoreName, trustStorePassword) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Name = new LazySingletonValue<>( "name", diff --git a/src/main/java/com/airbyte/api/models/shared/Encryption.java b/src/main/java/com/airbyte/api/models/shared/Encryption.java index 75f201681..e98b46c7d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Encryption.java +++ b/src/main/java/com/airbyte/api/models/shared/Encryption.java @@ -12,8 +12,8 @@ @JsonTypeInfo(use = Id.NAME, property = "algorithm", include = As.EXISTING_PROPERTY, visible = true) @JsonSubTypes({ - @Type(value = EncryptionRSA.class, name="RSA"), - @Type(value = EncryptionAES.class, name="AES")}) + @Type(value = EncryptionAES.class, name="AES"), + @Type(value = EncryptionRSA.class, name="RSA")}) public interface Encryption { String algorithm(); diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionAES.java b/src/main/java/com/airbyte/api/models/shared/EncryptionAES.java index 5b2a5e244..07fdc4464 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptionAES.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionAES.java @@ -9,25 +9,30 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class EncryptionAES implements Encryption { @JsonProperty("algorithm") private EncryptionMapperAlgorithm algorithm; + @JsonProperty("fieldNameSuffix") private String fieldNameSuffix; + @JsonProperty("key") private String key; + @JsonProperty("mode") private Mode mode; + @JsonProperty("padding") private Padding padding; + @JsonProperty("targetField") private String targetField; @@ -84,9 +89,10 @@ public String targetField() { return targetField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public EncryptionAES withAlgorithm(EncryptionMapperAlgorithm algorithm) { Utils.checkNotNull(algorithm, "algorithm"); @@ -124,7 +130,6 @@ public EncryptionAES withTargetField(String targetField) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -135,23 +140,19 @@ public boolean equals(java.lang.Object o) { } EncryptionAES other = (EncryptionAES) o; return - Objects.deepEquals(this.algorithm, other.algorithm) && - Objects.deepEquals(this.fieldNameSuffix, other.fieldNameSuffix) && - Objects.deepEquals(this.key, other.key) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.padding, other.padding) && - Objects.deepEquals(this.targetField, other.targetField); + Utils.enhancedDeepEquals(this.algorithm, other.algorithm) && + Utils.enhancedDeepEquals(this.fieldNameSuffix, other.fieldNameSuffix) && + Utils.enhancedDeepEquals(this.key, other.key) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.padding, other.padding) && + Utils.enhancedDeepEquals(this.targetField, other.targetField); } @Override public int hashCode() { - return Objects.hash( - algorithm, - fieldNameSuffix, - key, - mode, - padding, - targetField); + return Utils.enhancedHash( + algorithm, fieldNameSuffix, key, + mode, padding, targetField); } @Override @@ -164,69 +165,74 @@ public String toString() { "padding", padding, "targetField", targetField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private EncryptionMapperAlgorithm algorithm; - + private String fieldNameSuffix; - + private String key; - + private Mode mode; - + private Padding padding; - + private String targetField; - + private Builder() { // force use of static builder() method } + public Builder algorithm(EncryptionMapperAlgorithm algorithm) { Utils.checkNotNull(algorithm, "algorithm"); this.algorithm = algorithm; return this; } + public Builder fieldNameSuffix(String fieldNameSuffix) { Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); this.fieldNameSuffix = fieldNameSuffix; return this; } + public Builder key(String key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } + public Builder mode(Mode mode) { Utils.checkNotNull(mode, "mode"); this.mode = mode; return this; } + public Builder padding(Padding padding) { Utils.checkNotNull(padding, "padding"); this.padding = padding; return this; } + public Builder targetField(String targetField) { Utils.checkNotNull(targetField, "targetField"); this.targetField = targetField; return this; } - + public EncryptionAES build() { + return new EncryptionAES( - algorithm, - fieldNameSuffix, - key, - mode, - padding, - targetField); + algorithm, fieldNameSuffix, key, + mode, padding, targetField); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java b/src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java index e8b1a3a09..b7b61b45d 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionAlgorithm.java @@ -21,7 +21,7 @@ public enum EncryptionAlgorithm { @JsonValue private final String value; - private EncryptionAlgorithm(String value) { + EncryptionAlgorithm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionMapperAlgorithm.java b/src/main/java/com/airbyte/api/models/shared/EncryptionMapperAlgorithm.java index e2c7e0cff..9afe2c2f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptionMapperAlgorithm.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionMapperAlgorithm.java @@ -15,7 +15,7 @@ public enum EncryptionMapperAlgorithm { @JsonValue private final String value; - private EncryptionMapperAlgorithm(String value) { + EncryptionMapperAlgorithm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java index d40753e86..20a70b8c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionMethod.java @@ -14,7 +14,7 @@ public enum EncryptionMethod { @JsonValue private final String value; - private EncryptionMethod(String value) { + EncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EncryptionRSA.java b/src/main/java/com/airbyte/api/models/shared/EncryptionRSA.java index 335ffee31..c93c395e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/EncryptionRSA.java +++ b/src/main/java/com/airbyte/api/models/shared/EncryptionRSA.java @@ -9,19 +9,22 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class EncryptionRSA implements Encryption { @JsonProperty("algorithm") private EncryptionMapperAlgorithm algorithm; + @JsonProperty("fieldNameSuffix") private String fieldNameSuffix; + @JsonProperty("publicKey") private String publicKey; + @JsonProperty("targetField") private String targetField; @@ -62,9 +65,10 @@ public String targetField() { return targetField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public EncryptionRSA withAlgorithm(EncryptionMapperAlgorithm algorithm) { Utils.checkNotNull(algorithm, "algorithm"); @@ -90,7 +94,6 @@ public EncryptionRSA withTargetField(String targetField) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,18 +104,16 @@ public boolean equals(java.lang.Object o) { } EncryptionRSA other = (EncryptionRSA) o; return - Objects.deepEquals(this.algorithm, other.algorithm) && - Objects.deepEquals(this.fieldNameSuffix, other.fieldNameSuffix) && - Objects.deepEquals(this.publicKey, other.publicKey) && - Objects.deepEquals(this.targetField, other.targetField); + Utils.enhancedDeepEquals(this.algorithm, other.algorithm) && + Utils.enhancedDeepEquals(this.fieldNameSuffix, other.fieldNameSuffix) && + Utils.enhancedDeepEquals(this.publicKey, other.publicKey) && + Utils.enhancedDeepEquals(this.targetField, other.targetField); } @Override public int hashCode() { - return Objects.hash( - algorithm, - fieldNameSuffix, - publicKey, + return Utils.enhancedHash( + algorithm, fieldNameSuffix, publicKey, targetField); } @@ -124,51 +125,56 @@ public String toString() { "publicKey", publicKey, "targetField", targetField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private EncryptionMapperAlgorithm algorithm; - + private String fieldNameSuffix; - + private String publicKey; - + private String targetField; - + private Builder() { // force use of static builder() method } + public Builder algorithm(EncryptionMapperAlgorithm algorithm) { Utils.checkNotNull(algorithm, "algorithm"); this.algorithm = algorithm; return this; } + public Builder fieldNameSuffix(String fieldNameSuffix) { Utils.checkNotNull(fieldNameSuffix, "fieldNameSuffix"); this.fieldNameSuffix = fieldNameSuffix; return this; } + public Builder publicKey(String publicKey) { Utils.checkNotNull(publicKey, "publicKey"); this.publicKey = publicKey; return this; } + public Builder targetField(String targetField) { Utils.checkNotNull(targetField, "targetField"); this.targetField = targetField; return this; } - + public EncryptionRSA build() { + return new EncryptionRSA( - algorithm, - fieldNameSuffix, - publicKey, + algorithm, fieldNameSuffix, publicKey, targetField); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java b/src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java index a336443f6..ec1f387a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java +++ b/src/main/java/com/airbyte/api/models/shared/EngagementWindowDays.java @@ -23,7 +23,7 @@ public enum EngagementWindowDays { @JsonValue private final long value; - private EngagementWindowDays(long value) { + EngagementWindowDays(long value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Enterprise.java b/src/main/java/com/airbyte/api/models/shared/Enterprise.java index 6e5ec210e..2495d7120 100644 --- a/src/main/java/com/airbyte/api/models/shared/Enterprise.java +++ b/src/main/java/com/airbyte/api/models/shared/Enterprise.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Enterprise { @JsonInclude(Include.NON_ABSENT) @@ -24,7 +24,8 @@ public class Enterprise { private Optional apiEndpoint; /** - * Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead of api.jotform.com + * Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead + * of api.jotform.com */ @JsonProperty("enterprise_url") private String enterpriseUrl; @@ -44,19 +45,22 @@ public Optional apiEndpoint() { } /** - * Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead of api.jotform.com + * Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead + * of api.jotform.com */ @JsonIgnore public String enterpriseUrl() { return enterpriseUrl; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead of api.jotform.com + * Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead + * of api.jotform.com */ public Enterprise withEnterpriseUrl(String enterpriseUrl) { Utils.checkNotNull(enterpriseUrl, "enterpriseUrl"); @@ -64,7 +68,6 @@ public Enterprise withEnterpriseUrl(String enterpriseUrl) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +78,14 @@ public boolean equals(java.lang.Object o) { } Enterprise other = (Enterprise) o; return - Objects.deepEquals(this.apiEndpoint, other.apiEndpoint) && - Objects.deepEquals(this.enterpriseUrl, other.enterpriseUrl); + Utils.enhancedDeepEquals(this.apiEndpoint, other.apiEndpoint) && + Utils.enhancedDeepEquals(this.enterpriseUrl, other.enterpriseUrl); } @Override public int hashCode() { - return Objects.hash( - apiEndpoint, - enterpriseUrl); + return Utils.enhancedHash( + apiEndpoint, enterpriseUrl); } @Override @@ -92,29 +94,34 @@ public String toString() { "apiEndpoint", apiEndpoint, "enterpriseUrl", enterpriseUrl); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String enterpriseUrl; - + private Builder() { // force use of static builder() method } + /** - * Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead of api.jotform.com + * Upgrade to Enterprise to make your API url your-domain.com/API or subdomain.jotform.com/API instead + * of api.jotform.com */ public Builder enterpriseUrl(String enterpriseUrl) { Utils.checkNotNull(enterpriseUrl, "enterpriseUrl"); this.enterpriseUrl = enterpriseUrl; return this; } - + public Enterprise build() { + return new Enterprise( enterpriseUrl); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiEndpoint = new LazySingletonValue<>( "api_endpoint", diff --git a/src/main/java/com/airbyte/api/models/shared/Entity.java b/src/main/java/com/airbyte/api/models/shared/Entity.java index ae2b91052..ae4f4c0ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/Entity.java +++ b/src/main/java/com/airbyte/api/models/shared/Entity.java @@ -16,7 +16,7 @@ public enum Entity { @JsonValue private final String value; - private Entity(String value) { + Entity(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Environment.java b/src/main/java/com/airbyte/api/models/shared/Environment.java index 1c689b7e3..438510151 100644 --- a/src/main/java/com/airbyte/api/models/shared/Environment.java +++ b/src/main/java/com/airbyte/api/models/shared/Environment.java @@ -20,7 +20,7 @@ public enum Environment { @JsonValue private final String value; - private Environment(String value) { + Environment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Equal.java b/src/main/java/com/airbyte/api/models/shared/Equal.java index 8e1e5ca83..c39c22b80 100644 --- a/src/main/java/com/airbyte/api/models/shared/Equal.java +++ b/src/main/java/com/airbyte/api/models/shared/Equal.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class Equal implements RowFilteringOperation { +public class Equal implements RowFilteringOperation { /** * The value to compare the field against. */ @@ -25,6 +24,7 @@ public class Equal implements RowFilteringOperation { @JsonProperty("fieldName") private String fieldName; + @JsonProperty("type") private RowFilteringOperationType type; @@ -63,9 +63,10 @@ public String type() { return Utils.discriminatorToString(type); } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The value to compare the field against. @@ -91,7 +92,6 @@ public Equal withType(RowFilteringOperationType type) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -102,17 +102,15 @@ public boolean equals(java.lang.Object o) { } Equal other = (Equal) o; return - Objects.deepEquals(this.comparisonValue, other.comparisonValue) && - Objects.deepEquals(this.fieldName, other.fieldName) && - Objects.deepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.comparisonValue, other.comparisonValue) && + Utils.enhancedDeepEquals(this.fieldName, other.fieldName) && + Utils.enhancedDeepEquals(this.type, other.type); } @Override public int hashCode() { - return Objects.hash( - comparisonValue, - fieldName, - type); + return Utils.enhancedHash( + comparisonValue, fieldName, type); } @Override @@ -122,19 +120,21 @@ public String toString() { "fieldName", fieldName, "type", type); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String comparisonValue; - + private String fieldName; - + private RowFilteringOperationType type; - + private Builder() { // force use of static builder() method } + /** * The value to compare the field against. */ @@ -144,6 +144,7 @@ public Builder comparisonValue(String comparisonValue) { return this; } + /** * The name of the field to apply the operation on. */ @@ -153,17 +154,18 @@ public Builder fieldName(String fieldName) { return this; } + public Builder type(RowFilteringOperationType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - + public Equal build() { + return new Equal( - comparisonValue, - fieldName, - type); + comparisonValue, fieldName, type); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Eventbrite.java b/src/main/java/com/airbyte/api/models/shared/Eventbrite.java index ba2524a94..d9580746e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Eventbrite.java +++ b/src/main/java/com/airbyte/api/models/shared/Eventbrite.java @@ -14,7 +14,7 @@ public enum Eventbrite { @JsonValue private final String value; - private Eventbrite(String value) { + Eventbrite(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Eventee.java b/src/main/java/com/airbyte/api/models/shared/Eventee.java index f644d1f20..2e48b1419 100644 --- a/src/main/java/com/airbyte/api/models/shared/Eventee.java +++ b/src/main/java/com/airbyte/api/models/shared/Eventee.java @@ -14,7 +14,7 @@ public enum Eventee { @JsonValue private final String value; - private Eventee(String value) { + Eventee(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Eventzilla.java b/src/main/java/com/airbyte/api/models/shared/Eventzilla.java index ea6cc4921..9044d00a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Eventzilla.java +++ b/src/main/java/com/airbyte/api/models/shared/Eventzilla.java @@ -14,7 +14,7 @@ public enum Eventzilla { @JsonValue private final String value; - private Eventzilla(String value) { + Eventzilla(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Everhour.java b/src/main/java/com/airbyte/api/models/shared/Everhour.java index 000153d74..1fa806150 100644 --- a/src/main/java/com/airbyte/api/models/shared/Everhour.java +++ b/src/main/java/com/airbyte/api/models/shared/Everhour.java @@ -14,7 +14,7 @@ public enum Everhour { @JsonValue private final String value; - private Everhour(String value) { + Everhour(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java b/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java index 3dc70123a..12f237e3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java +++ b/src/main/java/com/airbyte/api/models/shared/EveryNThEntry.java @@ -21,7 +21,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -34,19 +33,24 @@ public class EveryNThEntry { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("logging_type") private Optional loggingType; /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("max_entry_count") private Optional maxEntryCount; /** - * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. + * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is + * logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. */ @JsonProperty("nth_entry_to_log") private long nthEntryToLog; @@ -82,7 +86,10 @@ public Optional loggingType() { } /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ @JsonIgnore public Optional maxEntryCount() { @@ -90,16 +97,18 @@ public Optional maxEntryCount() { } /** - * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. + * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is + * logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. */ @JsonIgnore public long nthEntryToLog() { return nthEntryToLog; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public EveryNThEntry withAdditionalProperty(String key, Object value) { @@ -107,8 +116,7 @@ public EveryNThEntry withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public EveryNThEntry withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -121,6 +129,7 @@ public EveryNThEntry withLoggingType(DestinationDevNullLoggingType loggingType) return this; } + public EveryNThEntry withLoggingType(Optional loggingType) { Utils.checkNotNull(loggingType, "loggingType"); this.loggingType = loggingType; @@ -128,7 +137,10 @@ public EveryNThEntry withLoggingType(OptionalThe maximum is 1,000 entries. */ public EveryNThEntry withMaxEntryCount(double maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -136,8 +148,12 @@ public EveryNThEntry withMaxEntryCount(double maxEntryCount) { return this; } + /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ public EveryNThEntry withMaxEntryCount(Optional maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -146,7 +162,8 @@ public EveryNThEntry withMaxEntryCount(Optional maxEntryCount) { } /** - * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. + * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is + * logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. */ public EveryNThEntry withNthEntryToLog(long nthEntryToLog) { Utils.checkNotNull(nthEntryToLog, "nthEntryToLog"); @@ -154,7 +171,6 @@ public EveryNThEntry withNthEntryToLog(long nthEntryToLog) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -165,18 +181,16 @@ public boolean equals(java.lang.Object o) { } EveryNThEntry other = (EveryNThEntry) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.loggingType, other.loggingType) && - Objects.deepEquals(this.maxEntryCount, other.maxEntryCount) && - Objects.deepEquals(this.nthEntryToLog, other.nthEntryToLog); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.loggingType, other.loggingType) && + Utils.enhancedDeepEquals(this.maxEntryCount, other.maxEntryCount) && + Utils.enhancedDeepEquals(this.nthEntryToLog, other.nthEntryToLog); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - loggingType, - maxEntryCount, + return Utils.enhancedHash( + additionalProperties, loggingType, maxEntryCount, nthEntryToLog); } @@ -188,17 +202,18 @@ public String toString() { "maxEntryCount", maxEntryCount, "nthEntryToLog", nthEntryToLog); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional loggingType; - + private Optional maxEntryCount; - + private Long nthEntryToLog; - + private Builder() { // force use of static builder() method } @@ -219,6 +234,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder loggingType(DestinationDevNullLoggingType loggingType) { Utils.checkNotNull(loggingType, "loggingType"); this.loggingType = Optional.ofNullable(loggingType); @@ -231,8 +247,12 @@ public Builder loggingType(Optional log return this; } + /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ public Builder maxEntryCount(double maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -241,7 +261,10 @@ public Builder maxEntryCount(double maxEntryCount) { } /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ public Builder maxEntryCount(Optional maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -249,15 +272,17 @@ public Builder maxEntryCount(Optional maxEntryCount) { return this; } + /** - * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. + * The N-th entry to log for each stream. N starts from 1. For example, when N = 1, every entry is + * logged; when N = 2, every other entry is logged; when N = 3, one out of three entries is logged. */ public Builder nthEntryToLog(long nthEntryToLog) { Utils.checkNotNull(nthEntryToLog, "nthEntryToLog"); this.nthEntryToLog = nthEntryToLog; return this; } - + public EveryNThEntry build() { if (loggingType == null) { loggingType = _SINGLETON_VALUE_LoggingType.value(); @@ -265,13 +290,13 @@ public EveryNThEntry build() { if (maxEntryCount == null) { maxEntryCount = _SINGLETON_VALUE_MaxEntryCount.value(); } + return new EveryNThEntry( - loggingType, - maxEntryCount, - nthEntryToLog) + loggingType, maxEntryCount, nthEntryToLog) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_LoggingType = new LazySingletonValue<>( "logging_type", diff --git a/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java index 11b7fd1fa..dca7872ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/ExcelFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class ExcelFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class ExcelFormat { @JsonCreator public ExcelFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } ExcelFormat other = (ExcelFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(ExcelFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public ExcelFormat build() { + return new ExcelFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java b/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java index d13f45800..0d9752c27 100644 --- a/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java +++ b/src/main/java/com/airbyte/api/models/shared/ExchangeRates.java @@ -14,7 +14,7 @@ public enum ExchangeRates { @JsonValue private final String value; - private ExchangeRates(String value) { + ExchangeRates(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Expression.java b/src/main/java/com/airbyte/api/models/shared/Expression.java index 7db6d25e3..9ee08c63b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Expression.java +++ b/src/main/java/com/airbyte/api/models/shared/Expression.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class Expression { @JsonProperty("field_name") private String fieldName; + @JsonProperty("filter") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter filter; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilte return filter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Expression withFieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); @@ -55,7 +57,6 @@ public Expression withFilter(SourceGoogleAnalyticsDataApiSchemasCustomReportsArr return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } Expression other = (Expression) o; return - Objects.deepEquals(this.fieldName, other.fieldName) && - Objects.deepEquals(this.filter, other.filter); + Utils.enhancedDeepEquals(this.fieldName, other.fieldName) && + Utils.enhancedDeepEquals(this.filter, other.filter); } @Override public int hashCode() { - return Objects.hash( - fieldName, - filter); + return Utils.enhancedHash( + fieldName, filter); } @Override @@ -83,33 +83,37 @@ public String toString() { "fieldName", fieldName, "filter", filter); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fieldName; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter filter; - + private Builder() { // force use of static builder() method } + public Builder fieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); this.fieldName = fieldName; return this; } + public Builder filter(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - + public Expression build() { + return new Expression( - fieldName, - filter); + fieldName, filter); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java b/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java index 8093bcd36..ee2dbb6c0 100644 --- a/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java +++ b/src/main/java/com/airbyte/api/models/shared/ExternalTableViaS3.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class ExternalTableViaS3 { +public class ExternalTableViaS3 { /** * AWS access key granting read and write access to S3. */ @@ -27,6 +26,7 @@ public class ExternalTableViaS3 { @JsonProperty("aws_key_secret") private String awsKeySecret; + @JsonProperty("method") private DestinationFireboltSchemasMethod method; @@ -96,9 +96,10 @@ public String s3Region() { return s3Region; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * AWS access key granting read and write access to S3. @@ -136,7 +137,6 @@ public ExternalTableViaS3 withS3Region(String s3Region) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -147,21 +147,18 @@ public boolean equals(java.lang.Object o) { } ExternalTableViaS3 other = (ExternalTableViaS3) o; return - Objects.deepEquals(this.awsKeyId, other.awsKeyId) && - Objects.deepEquals(this.awsKeySecret, other.awsKeySecret) && - Objects.deepEquals(this.method, other.method) && - Objects.deepEquals(this.s3Bucket, other.s3Bucket) && - Objects.deepEquals(this.s3Region, other.s3Region); + Utils.enhancedDeepEquals(this.awsKeyId, other.awsKeyId) && + Utils.enhancedDeepEquals(this.awsKeySecret, other.awsKeySecret) && + Utils.enhancedDeepEquals(this.method, other.method) && + Utils.enhancedDeepEquals(this.s3Bucket, other.s3Bucket) && + Utils.enhancedDeepEquals(this.s3Region, other.s3Region); } @Override public int hashCode() { - return Objects.hash( - awsKeyId, - awsKeySecret, - method, - s3Bucket, - s3Region); + return Utils.enhancedHash( + awsKeyId, awsKeySecret, method, + s3Bucket, s3Region); } @Override @@ -173,21 +170,23 @@ public String toString() { "s3Bucket", s3Bucket, "s3Region", s3Region); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String awsKeyId; - + private String awsKeySecret; - + private String s3Bucket; - + private String s3Region; - + private Builder() { // force use of static builder() method } + /** * AWS access key granting read and write access to S3. */ @@ -197,6 +196,7 @@ public Builder awsKeyId(String awsKeyId) { return this; } + /** * Corresponding secret part of the AWS Key */ @@ -206,6 +206,7 @@ public Builder awsKeySecret(String awsKeySecret) { return this; } + /** * The name of the S3 bucket. */ @@ -215,6 +216,7 @@ public Builder s3Bucket(String s3Bucket) { return this; } + /** * Region name of the S3 bucket. */ @@ -223,15 +225,15 @@ public Builder s3Region(String s3Region) { this.s3Region = s3Region; return this; } - + public ExternalTableViaS3 build() { + return new ExternalTableViaS3( - awsKeyId, - awsKeySecret, - s3Bucket, + awsKeyId, awsKeySecret, s3Bucket, s3Region); } + private static final LazySingletonValue _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", diff --git a/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java b/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java index 4a5029d8d..5a99cff98 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java +++ b/src/main/java/com/airbyte/api/models/shared/Ezofficeinventory.java @@ -14,7 +14,7 @@ public enum Ezofficeinventory { @JsonValue private final String value; - private Ezofficeinventory(String value) { + Ezofficeinventory(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java b/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java index 34b1e8936..ea07bc66a 100644 --- a/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/FacebookMarketing.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class FacebookMarketing { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public FacebookMarketing withCredentials(FacebookMarketingCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public FacebookMarketing withCredentials(FacebookMarketingCredentials credential return this; } + public FacebookMarketing withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } FacebookMarketing other = (FacebookMarketing) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(FacebookMarketing.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(FacebookMarketingCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional cred this.credentials = credentials; return this; } - + public FacebookMarketing build() { + return new FacebookMarketing( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java b/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java index 86f48347d..49e8518de 100644 --- a/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/FacebookMarketingCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class FacebookMarketingCredentials { +public class FacebookMarketingCredentials { /** * The Client Id for your OAuth app */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client Id for your OAuth app @@ -73,6 +73,7 @@ public FacebookMarketingCredentials withClientId(String clientId) { return this; } + /** * The Client Id for your OAuth app */ @@ -91,6 +92,7 @@ public FacebookMarketingCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret for your OAuth app */ @@ -100,7 +102,6 @@ public FacebookMarketingCredentials withClientSecret(Optional clientSecr return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } FacebookMarketingCredentials other = (FacebookMarketingCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client Id for your OAuth app */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret for your OAuth app */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public FacebookMarketingCredentials build() { + return new FacebookMarketingCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FacebookPages.java b/src/main/java/com/airbyte/api/models/shared/FacebookPages.java new file mode 100644 index 000000000..bd5ac7130 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/FacebookPages.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum FacebookPages { + FACEBOOK_PAGES("facebook-pages"); + + @JsonValue + private final String value; + + FacebookPages(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (FacebookPages o: FacebookPages.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Factorial.java b/src/main/java/com/airbyte/api/models/shared/Factorial.java index 1e7d9e062..39421131a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Factorial.java +++ b/src/main/java/com/airbyte/api/models/shared/Factorial.java @@ -14,7 +14,7 @@ public enum Factorial { @JsonValue private final String value; - private Factorial(String value) { + Factorial(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Failing.java b/src/main/java/com/airbyte/api/models/shared/Failing.java index 51114efa8..bcf9c7cf2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Failing.java +++ b/src/main/java/com/airbyte/api/models/shared/Failing.java @@ -20,9 +20,9 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class Failing { @JsonIgnore @@ -34,6 +34,7 @@ public class Failing { @JsonProperty("num_messages") private long numMessages; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("test_destination_type") private Optional testDestinationType; @@ -73,9 +74,10 @@ public Optional tes return (Optional) testDestinationType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public Failing withAdditionalProperty(String key, Object value) { @@ -83,8 +85,7 @@ public Failing withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public Failing withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -106,13 +107,13 @@ public Failing withTestDestinationType(DestinationDevNullSchemasTestDestinationT return this; } + public Failing withTestDestinationType(Optional testDestinationType) { Utils.checkNotNull(testDestinationType, "testDestinationType"); this.testDestinationType = testDestinationType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -123,17 +124,15 @@ public boolean equals(java.lang.Object o) { } Failing other = (Failing) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.numMessages, other.numMessages) && - Objects.deepEquals(this.testDestinationType, other.testDestinationType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.numMessages, other.numMessages) && + Utils.enhancedDeepEquals(this.testDestinationType, other.testDestinationType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - numMessages, - testDestinationType); + return Utils.enhancedHash( + additionalProperties, numMessages, testDestinationType); } @Override @@ -143,15 +142,16 @@ public String toString() { "numMessages", numMessages, "testDestinationType", testDestinationType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Long numMessages; - + private Optional testDestinationType; - + private Builder() { // force use of static builder() method } @@ -172,6 +172,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * Number of messages after which to fail. */ @@ -181,6 +182,7 @@ public Builder numMessages(long numMessages) { return this; } + public Builder testDestinationType(DestinationDevNullSchemasTestDestinationTestDestinationType testDestinationType) { Utils.checkNotNull(testDestinationType, "testDestinationType"); this.testDestinationType = Optional.ofNullable(testDestinationType); @@ -192,17 +194,18 @@ public Builder testDestinationType(Optional> _SINGLETON_VALUE_TestDestinationType = new LazySingletonValue<>( "test_destination_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Fake.java b/src/main/java/com/airbyte/api/models/shared/Fake.java index 02951427e..7ffd4abc9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fake.java +++ b/src/main/java/com/airbyte/api/models/shared/Fake.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * Fake * - *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for testing the data pipeline without incurring any costs. + *

    Use a fake embedding made out of random vectors with 1536 embedding dimensions. This is useful for + * testing the data pipeline without incurring any costs. */ public class Fake { @@ -30,7 +30,6 @@ public class Fake { @JsonCreator public Fake() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +39,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } Fake other = (Fake) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +68,21 @@ public String toString() { return Utils.toString(Fake.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public Fake build() { + return new Fake( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/Faker.java b/src/main/java/com/airbyte/api/models/shared/Faker.java index 5f66d2a37..5bbe52d33 100644 --- a/src/main/java/com/airbyte/api/models/shared/Faker.java +++ b/src/main/java/com/airbyte/api/models/shared/Faker.java @@ -14,7 +14,7 @@ public enum Faker { @JsonValue private final String value; - private Faker(String value) { + Faker(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Fastbill.java b/src/main/java/com/airbyte/api/models/shared/Fastbill.java index e9f1778c2..e709818aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fastbill.java +++ b/src/main/java/com/airbyte/api/models/shared/Fastbill.java @@ -14,7 +14,7 @@ public enum Fastbill { @JsonValue private final String value; - private Fastbill(String value) { + Fastbill(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Fastly.java b/src/main/java/com/airbyte/api/models/shared/Fastly.java index 7e6bbadc7..65152ed77 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fastly.java +++ b/src/main/java/com/airbyte/api/models/shared/Fastly.java @@ -14,7 +14,7 @@ public enum Fastly { @JsonValue private final String value; - private Fastly(String value) { + Fastly(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Fauna.java b/src/main/java/com/airbyte/api/models/shared/Fauna.java index e2032c3eb..512ae8ab3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fauna.java +++ b/src/main/java/com/airbyte/api/models/shared/Fauna.java @@ -14,7 +14,7 @@ public enum Fauna { @JsonValue private final String value; - private Fauna(String value) { + Fauna(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FieldNameMappingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/FieldNameMappingConfigModel.java index 7fa42272d..0f3d88152 100644 --- a/src/main/java/com/airbyte/api/models/shared/FieldNameMappingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/FieldNameMappingConfigModel.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class FieldNameMappingConfigModel { +public class FieldNameMappingConfigModel { /** * The field name in the source */ @@ -51,9 +50,10 @@ public String toField() { return toField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The field name in the source @@ -73,7 +73,6 @@ public FieldNameMappingConfigModel withToField(String toField) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +83,14 @@ public boolean equals(java.lang.Object o) { } FieldNameMappingConfigModel other = (FieldNameMappingConfigModel) o; return - Objects.deepEquals(this.fromField, other.fromField) && - Objects.deepEquals(this.toField, other.toField); + Utils.enhancedDeepEquals(this.fromField, other.fromField) && + Utils.enhancedDeepEquals(this.toField, other.toField); } @Override public int hashCode() { - return Objects.hash( - fromField, - toField); + return Utils.enhancedHash( + fromField, toField); } @Override @@ -101,17 +99,19 @@ public String toString() { "fromField", fromField, "toField", toField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fromField; - + private String toField; - + private Builder() { // force use of static builder() method } + /** * The field name in the source */ @@ -121,6 +121,7 @@ public Builder fromField(String fromField) { return this; } + /** * The field name to use in the destination */ @@ -129,11 +130,12 @@ public Builder toField(String toField) { this.toField = toField; return this; } - + public FieldNameMappingConfigModel build() { + return new FieldNameMappingConfigModel( - fromField, - toField); + fromField, toField); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/FieldRenaming.java b/src/main/java/com/airbyte/api/models/shared/FieldRenaming.java index 165b1dea7..c00eaf690 100644 --- a/src/main/java/com/airbyte/api/models/shared/FieldRenaming.java +++ b/src/main/java/com/airbyte/api/models/shared/FieldRenaming.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class FieldRenaming { +public class FieldRenaming { /** * The new name for the field after renaming. */ @@ -51,9 +50,10 @@ public String originalFieldName() { return originalFieldName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The new name for the field after renaming. @@ -73,7 +73,6 @@ public FieldRenaming withOriginalFieldName(String originalFieldName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +83,14 @@ public boolean equals(java.lang.Object o) { } FieldRenaming other = (FieldRenaming) o; return - Objects.deepEquals(this.newFieldName, other.newFieldName) && - Objects.deepEquals(this.originalFieldName, other.originalFieldName); + Utils.enhancedDeepEquals(this.newFieldName, other.newFieldName) && + Utils.enhancedDeepEquals(this.originalFieldName, other.originalFieldName); } @Override public int hashCode() { - return Objects.hash( - newFieldName, - originalFieldName); + return Utils.enhancedHash( + newFieldName, originalFieldName); } @Override @@ -101,17 +99,19 @@ public String toString() { "newFieldName", newFieldName, "originalFieldName", originalFieldName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String newFieldName; - + private String originalFieldName; - + private Builder() { // force use of static builder() method } + /** * The new name for the field after renaming. */ @@ -121,6 +121,7 @@ public Builder newFieldName(String newFieldName) { return this; } + /** * The current name of the field to rename. */ @@ -129,11 +130,12 @@ public Builder originalFieldName(String originalFieldName) { this.originalFieldName = originalFieldName; return this; } - + public FieldRenaming build() { + return new FieldRenaming( - newFieldName, - originalFieldName); + newFieldName, originalFieldName); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Fields.java b/src/main/java/com/airbyte/api/models/shared/Fields.java new file mode 100644 index 000000000..6c971210e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Fields.java @@ -0,0 +1,65 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Fields { + CLICKS("CLICKS"), + COMPLETES("COMPLETES"), + COMPLETION_RATE("COMPLETION_RATE"), + CONVERSION_RATE("CONVERSION_RATE"), + CTR("CTR"), + E_CPM("E_CPM"), + E_CPCL("E_CPCL"), + FIRST_QUARTILES("FIRST_QUARTILES"), + FREQUENCY("FREQUENCY"), + IMPRESSIONS("IMPRESSIONS"), + INTENT_RATE("INTENT_RATE"), + LISTENERS("LISTENERS"), + MIDPOINTS("MIDPOINTS"), + NEW_LISTENERS("NEW_LISTENERS"), + NEW_LISTENER_CONVERSION_RATE("NEW_LISTENER_CONVERSION_RATE"), + NEW_LISTENER_STREAMS("NEW_LISTENER_STREAMS"), + OFF_SPOTIFY_IMPRESSIONS("OFF_SPOTIFY_IMPRESSIONS"), + PAID_LISTENS("PAID_LISTENS"), + PAID_LISTENS_FREQUENCY("PAID_LISTENS_FREQUENCY"), + PAID_LISTENS_REACH("PAID_LISTENS_REACH"), + REACH("REACH"), + SKIPS("SKIPS"), + SPEND("SPEND"), + STARTS("STARTS"), + STREAMS("STREAMS"), + STREAMS_PER_NEW_LISTENER("STREAMS_PER_NEW_LISTENER"), + STREAMS_PER_USER("STREAMS_PER_USER"), + THIRD_QUARTILES("THIRD_QUARTILES"), + VIDEO_VIEWS("VIDEO_VIEWS"), + VIDEO_EXPANDS("VIDEO_EXPANDS"), + VIDEO_EXPAND_RATE("VIDEO_EXPAND_RATE"), + UNMUTES("UNMUTES"); + + @JsonValue + private final String value; + + Fields(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Fields o: Fields.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/File.java b/src/main/java/com/airbyte/api/models/shared/File.java index 6e1116bee..adc7958f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/File.java +++ b/src/main/java/com/airbyte/api/models/shared/File.java @@ -14,7 +14,7 @@ public enum File { @JsonValue private final String value; - private File(String value) { + File(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/FileBasedStreamConfig.java index cf5261ab4..583253920 100644 --- a/src/main/java/com/airbyte/api/models/shared/FileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/FileBasedStreamConfig.java @@ -17,33 +17,37 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class FileBasedStreamConfig { +public class FileBasedStreamConfig { /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("days_to_sync_if_history_is_full") private Optional daysToSyncIfHistoryIsFull; /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonProperty("format") private Format format; /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("globs") private Optional> globs; /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("input_schema") @@ -70,7 +74,8 @@ public class FileBasedStreamConfig { private Optional schemaless; /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("validation_policy") @@ -107,11 +112,14 @@ public FileBasedStreamConfig( public FileBasedStreamConfig( Format format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty(), Optional.empty()); } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonIgnore public Optional daysToSyncIfHistoryIsFull() { @@ -119,7 +127,8 @@ public Optional daysToSyncIfHistoryIsFull() { } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonIgnore public Format format() { @@ -127,7 +136,9 @@ public Format format() { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -136,7 +147,8 @@ public Optional> globs() { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonIgnore public Optional inputSchema() { @@ -168,7 +180,8 @@ public Optional schemaless() { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -176,12 +189,14 @@ public Optional validationPolicy() { return (Optional) validationPolicy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public FileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -189,8 +204,10 @@ public FileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHist return this; } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public FileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -199,7 +216,8 @@ public FileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysTo } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public FileBasedStreamConfig withFormat(Format format) { Utils.checkNotNull(format, "format"); @@ -208,7 +226,9 @@ public FileBasedStreamConfig withFormat(Format format) { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public FileBasedStreamConfig withGlobs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -216,8 +236,11 @@ public FileBasedStreamConfig withGlobs(List globs) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public FileBasedStreamConfig withGlobs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -226,7 +249,8 @@ public FileBasedStreamConfig withGlobs(Optional> globs) { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public FileBasedStreamConfig withInputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -234,8 +258,10 @@ public FileBasedStreamConfig withInputSchema(String inputSchema) { return this; } + /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public FileBasedStreamConfig withInputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -261,6 +287,7 @@ public FileBasedStreamConfig withRecentNFilesToReadForSchemaDiscovery(long recen return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -279,6 +306,7 @@ public FileBasedStreamConfig withSchemaless(boolean schemaless) { return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -289,7 +317,8 @@ public FileBasedStreamConfig withSchemaless(Optional schemaless) { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public FileBasedStreamConfig withValidationPolicy(ValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -297,8 +326,10 @@ public FileBasedStreamConfig withValidationPolicy(ValidationPolicy validationPol return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public FileBasedStreamConfig withValidationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -306,7 +337,6 @@ public FileBasedStreamConfig withValidationPolicy(Optional daysToSyncIfHistoryIsFull; - + private Format format; - + private Optional> globs = Optional.empty(); - + private Optional inputSchema = Optional.empty(); - + private String name; - + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); - + private Optional schemaless; - + private Optional validationPolicy; - + private Builder() { // force use of static builder() method } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -385,7 +413,8 @@ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -393,8 +422,10 @@ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFul return this; } + /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public Builder format(Format format) { Utils.checkNotNull(format, "format"); @@ -402,8 +433,11 @@ public Builder format(Format format) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -412,7 +446,9 @@ public Builder globs(List globs) { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -420,8 +456,10 @@ public Builder globs(Optional> globs) { return this; } + /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -430,7 +468,8 @@ public Builder inputSchema(String inputSchema) { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -438,6 +477,7 @@ public Builder inputSchema(Optional inputSchema) { return this; } + /** * The name of the stream. */ @@ -447,6 +487,7 @@ public Builder name(String name) { return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -465,6 +506,7 @@ public Builder recentNFilesToReadForSchemaDiscovery(Optional recentNFilesT return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -483,8 +525,10 @@ public Builder schemaless(Optional schemaless) { return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(ValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -493,14 +537,15 @@ public Builder validationPolicy(ValidationPolicy validationPolicy) { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); this.validationPolicy = validationPolicy; return this; } - + public FileBasedStreamConfig build() { if (daysToSyncIfHistoryIsFull == null) { daysToSyncIfHistoryIsFull = _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull.value(); @@ -511,17 +556,14 @@ public FileBasedStreamConfig build() { if (validationPolicy == null) { validationPolicy = _SINGLETON_VALUE_ValidationPolicy.value(); } + return new FileBasedStreamConfig( - daysToSyncIfHistoryIsFull, - format, - globs, - inputSchema, - name, - recentNFilesToReadForSchemaDiscovery, - schemaless, - validationPolicy); + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, recentNFilesToReadForSchemaDiscovery, + schemaless, validationPolicy); } + private static final LazySingletonValue> _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull = new LazySingletonValue<>( "days_to_sync_if_history_is_full", diff --git a/src/main/java/com/airbyte/api/models/shared/FileFormat.java b/src/main/java/com/airbyte/api/models/shared/FileFormat.java index e11224170..e3f5c12e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/FileFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/FileFormat.java @@ -11,7 +11,8 @@ /** * FileFormat * - *

    The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). + *

    The Format of the file which should be replicated (Warning: some formats may be experimental, please + * refer to the docs). */ public enum FileFormat { CSV("csv"), @@ -27,7 +28,7 @@ public enum FileFormat { @JsonValue private final String value; - private FileFormat(String value) { + FileFormat(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Filetype.java b/src/main/java/com/airbyte/api/models/shared/Filetype.java index 5e2e376e4..325730dfe 100644 --- a/src/main/java/com/airbyte/api/models/shared/Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/Filetype.java @@ -14,7 +14,7 @@ public enum Filetype { @JsonValue private final String value; - private Filetype(String value) { + Filetype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Fillout.java b/src/main/java/com/airbyte/api/models/shared/Fillout.java index 0879ee908..0893978a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fillout.java +++ b/src/main/java/com/airbyte/api/models/shared/Fillout.java @@ -14,7 +14,7 @@ public enum Fillout { @JsonValue private final String value; - private Fillout(String value) { + Fillout(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Filter.java b/src/main/java/com/airbyte/api/models/shared/Filter.java index 09badc404..0af65b3c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Filter.java +++ b/src/main/java/com/airbyte/api/models/shared/Filter.java @@ -21,7 +21,7 @@ public enum Filter { @JsonValue private final String value; - private Filter(String value) { + Filter(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java b/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java index 6f170928f..6d197e55f 100644 --- a/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java +++ b/src/main/java/com/airbyte/api/models/shared/FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody.java @@ -13,15 +13,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody { @JsonInclude(Include.NON_ABSENT) @JsonProperty("attribute_key") private Optional attributeKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("attribute_value") private Optional attributeValue; @@ -50,9 +51,10 @@ public Optional attributeValue() { return attributeValue; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody withAttributeKey(String attributeKey) { Utils.checkNotNull(attributeKey, "attributeKey"); @@ -60,6 +62,7 @@ public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhic return this; } + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody withAttributeKey(Optional attributeKey) { Utils.checkNotNull(attributeKey, "attributeKey"); this.attributeKey = attributeKey; @@ -72,13 +75,13 @@ public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhic return this; } + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody withAttributeValue(Optional attributeValue) { Utils.checkNotNull(attributeValue, "attributeValue"); this.attributeValue = attributeValue; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -89,15 +92,14 @@ public boolean equals(java.lang.Object o) { } FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody other = (FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody) o; return - Objects.deepEquals(this.attributeKey, other.attributeKey) && - Objects.deepEquals(this.attributeValue, other.attributeValue); + Utils.enhancedDeepEquals(this.attributeKey, other.attributeKey) && + Utils.enhancedDeepEquals(this.attributeValue, other.attributeValue); } @Override public int hashCode() { - return Objects.hash( - attributeKey, - attributeValue); + return Utils.enhancedHash( + attributeKey, attributeValue); } @Override @@ -106,17 +108,19 @@ public String toString() { "attributeKey", attributeKey, "attributeValue", attributeValue); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional attributeKey; - + private Optional attributeValue; - + private Builder() { // force use of static builder() method } + public Builder attributeKey(String attributeKey) { Utils.checkNotNull(attributeKey, "attributeKey"); this.attributeKey = Optional.ofNullable(attributeKey); @@ -129,6 +133,7 @@ public Builder attributeKey(Optional attributeKey) { return this; } + public Builder attributeValue(String attributeValue) { Utils.checkNotNull(attributeValue, "attributeValue"); this.attributeValue = Optional.ofNullable(attributeValue); @@ -140,7 +145,7 @@ public Builder attributeValue(Optional attributeValue) { this.attributeValue = attributeValue; return this; } - + public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody build() { if (attributeKey == null) { attributeKey = _SINGLETON_VALUE_AttributeKey.value(); @@ -148,11 +153,12 @@ public FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhic if (attributeValue == null) { attributeValue = _SINGLETON_VALUE_AttributeValue.value(); } + return new FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody( - attributeKey, - attributeValue); + attributeKey, attributeValue); } + private static final LazySingletonValue> _SINGLETON_VALUE_AttributeKey = new LazySingletonValue<>( "attribute_key", diff --git a/src/main/java/com/airbyte/api/models/shared/FilterName.java b/src/main/java/com/airbyte/api/models/shared/FilterName.java index 0d7b8ed68..17cf34bb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/FilterName.java @@ -14,7 +14,7 @@ public enum FilterName { @JsonValue private final String value; - private FilterName(String value) { + FilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FilterType.java b/src/main/java/com/airbyte/api/models/shared/FilterType.java index 4821bde46..aa8f3423c 100644 --- a/src/main/java/com/airbyte/api/models/shared/FilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/FilterType.java @@ -14,7 +14,7 @@ public enum FilterType { @JsonValue private final String value; - private FilterType(String value) { + FilterType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Finage.java b/src/main/java/com/airbyte/api/models/shared/Finage.java index 28062854a..ef9197e28 100644 --- a/src/main/java/com/airbyte/api/models/shared/Finage.java +++ b/src/main/java/com/airbyte/api/models/shared/Finage.java @@ -14,7 +14,7 @@ public enum Finage { @JsonValue private final String value; - private Finage(String value) { + Finage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FinancialEventsStepSizeInDays.java b/src/main/java/com/airbyte/api/models/shared/FinancialEventsStepSizeInDays.java index 0698d1d6a..85e7659b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/FinancialEventsStepSizeInDays.java +++ b/src/main/java/com/airbyte/api/models/shared/FinancialEventsStepSizeInDays.java @@ -11,10 +11,15 @@ /** * FinancialEventsStepSizeInDays * - *

    The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. + *

    The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 + * days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. * - *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow syncing and increase the chance of hitting rate limits. - * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data per request, speeding up syncing and reducing the number of API calls, which minimizes strain on rate limits. + *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks + * per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow + * syncing and increase the chance of hitting rate limits. + * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data + * per request, speeding up syncing and reducing the number of API calls, which minimizes strain on + * rate limits. * *

    Select a step size that matches your data volume to optimize syncing speed and API performance. */ @@ -30,7 +35,7 @@ public enum FinancialEventsStepSizeInDays { @JsonValue private final String value; - private FinancialEventsStepSizeInDays(String value) { + FinancialEventsStepSizeInDays(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FinancialModelling.java b/src/main/java/com/airbyte/api/models/shared/FinancialModelling.java index a3a967ef8..bb3f26457 100644 --- a/src/main/java/com/airbyte/api/models/shared/FinancialModelling.java +++ b/src/main/java/com/airbyte/api/models/shared/FinancialModelling.java @@ -14,7 +14,7 @@ public enum FinancialModelling { @JsonValue private final String value; - private FinancialModelling(String value) { + FinancialModelling(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Finnhub.java b/src/main/java/com/airbyte/api/models/shared/Finnhub.java index c2db70060..e0aeb9329 100644 --- a/src/main/java/com/airbyte/api/models/shared/Finnhub.java +++ b/src/main/java/com/airbyte/api/models/shared/Finnhub.java @@ -14,7 +14,7 @@ public enum Finnhub { @JsonValue private final String value; - private Finnhub(String value) { + Finnhub(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Finnworlds.java b/src/main/java/com/airbyte/api/models/shared/Finnworlds.java index 160be2bb5..ff9e3e5e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Finnworlds.java +++ b/src/main/java/com/airbyte/api/models/shared/Finnworlds.java @@ -14,7 +14,7 @@ public enum Finnworlds { @JsonValue private final String value; - private Finnworlds(String value) { + Finnworlds(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Firebolt.java b/src/main/java/com/airbyte/api/models/shared/Firebolt.java index a849868f9..d4e5ac7d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Firebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/Firebolt.java @@ -14,7 +14,7 @@ public enum Firebolt { @JsonValue private final String value; - private Firebolt(String value) { + Firebolt(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Firehydrant.java b/src/main/java/com/airbyte/api/models/shared/Firehydrant.java index 2a48152cb..913d0747d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Firehydrant.java +++ b/src/main/java/com/airbyte/api/models/shared/Firehydrant.java @@ -14,7 +14,7 @@ public enum Firehydrant { @JsonValue private final String value; - private Firehydrant(String value) { + Firehydrant(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Firestore.java b/src/main/java/com/airbyte/api/models/shared/Firestore.java index ad1a5de76..8532931db 100644 --- a/src/main/java/com/airbyte/api/models/shared/Firestore.java +++ b/src/main/java/com/airbyte/api/models/shared/Firestore.java @@ -14,7 +14,7 @@ public enum Firestore { @JsonValue private final String value; - private Firestore(String value) { + Firestore(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java b/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java index e80547800..474572af9 100644 --- a/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java +++ b/src/main/java/com/airbyte/api/models/shared/FirstNEntries.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -33,12 +32,16 @@ public class FirstNEntries { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("logging_type") private Optional loggingType; /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("max_entry_count") @@ -71,16 +74,20 @@ public Optional loggingType() { } /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ @JsonIgnore public Optional maxEntryCount() { return maxEntryCount; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public FirstNEntries withAdditionalProperty(String key, Object value) { @@ -88,8 +95,7 @@ public FirstNEntries withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public FirstNEntries withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -102,6 +108,7 @@ public FirstNEntries withLoggingType(LoggingType loggingType) { return this; } + public FirstNEntries withLoggingType(Optional loggingType) { Utils.checkNotNull(loggingType, "loggingType"); this.loggingType = loggingType; @@ -109,7 +116,10 @@ public FirstNEntries withLoggingType(Optional loggingType } /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ public FirstNEntries withMaxEntryCount(double maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -117,8 +127,12 @@ public FirstNEntries withMaxEntryCount(double maxEntryCount) { return this; } + /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ public FirstNEntries withMaxEntryCount(Optional maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -126,7 +140,6 @@ public FirstNEntries withMaxEntryCount(Optional maxEntryCount) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,17 +150,15 @@ public boolean equals(java.lang.Object o) { } FirstNEntries other = (FirstNEntries) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.loggingType, other.loggingType) && - Objects.deepEquals(this.maxEntryCount, other.maxEntryCount); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.loggingType, other.loggingType) && + Utils.enhancedDeepEquals(this.maxEntryCount, other.maxEntryCount); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - loggingType, - maxEntryCount); + return Utils.enhancedHash( + additionalProperties, loggingType, maxEntryCount); } @Override @@ -157,15 +168,16 @@ public String toString() { "loggingType", loggingType, "maxEntryCount", maxEntryCount); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional loggingType; - + private Optional maxEntryCount; - + private Builder() { // force use of static builder() method } @@ -186,6 +198,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder loggingType(LoggingType loggingType) { Utils.checkNotNull(loggingType, "loggingType"); this.loggingType = Optional.ofNullable(loggingType); @@ -198,8 +211,12 @@ public Builder loggingType(Optional loggingType) { return this; } + /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ public Builder maxEntryCount(double maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -208,14 +225,17 @@ public Builder maxEntryCount(double maxEntryCount) { } /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ public Builder maxEntryCount(Optional maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); this.maxEntryCount = maxEntryCount; return this; } - + public FirstNEntries build() { if (loggingType == null) { loggingType = _SINGLETON_VALUE_LoggingType.value(); @@ -223,12 +243,13 @@ public FirstNEntries build() { if (maxEntryCount == null) { maxEntryCount = _SINGLETON_VALUE_MaxEntryCount.value(); } + return new FirstNEntries( - loggingType, - maxEntryCount) + loggingType, maxEntryCount) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_LoggingType = new LazySingletonValue<>( "logging_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Flattening.java b/src/main/java/com/airbyte/api/models/shared/Flattening.java index df52d2040..fb568b746 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flattening.java +++ b/src/main/java/com/airbyte/api/models/shared/Flattening.java @@ -15,7 +15,7 @@ public enum Flattening { @JsonValue private final String value; - private Flattening(String value) { + Flattening(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Fleetio.java b/src/main/java/com/airbyte/api/models/shared/Fleetio.java index f87e6e5e1..2417174ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fleetio.java +++ b/src/main/java/com/airbyte/api/models/shared/Fleetio.java @@ -14,7 +14,7 @@ public enum Fleetio { @JsonValue private final String value; - private Fleetio(String value) { + Fleetio(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Flexmail.java b/src/main/java/com/airbyte/api/models/shared/Flexmail.java index aef9bafcd..4d954d991 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flexmail.java +++ b/src/main/java/com/airbyte/api/models/shared/Flexmail.java @@ -14,7 +14,7 @@ public enum Flexmail { @JsonValue private final String value; - private Flexmail(String value) { + Flexmail(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Flexport.java b/src/main/java/com/airbyte/api/models/shared/Flexport.java index f716558c3..d21b8a83b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flexport.java +++ b/src/main/java/com/airbyte/api/models/shared/Flexport.java @@ -14,7 +14,7 @@ public enum Flexport { @JsonValue private final String value; - private Flexport(String value) { + Flexport(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Float.java b/src/main/java/com/airbyte/api/models/shared/Float.java index 86b31e995..1c374ea38 100644 --- a/src/main/java/com/airbyte/api/models/shared/Float.java +++ b/src/main/java/com/airbyte/api/models/shared/Float.java @@ -14,7 +14,7 @@ public enum Float { @JsonValue private final String value; - private Float(String value) { + Float(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Flowlu.java b/src/main/java/com/airbyte/api/models/shared/Flowlu.java index 009bd11e7..96f9e84f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Flowlu.java +++ b/src/main/java/com/airbyte/api/models/shared/Flowlu.java @@ -14,7 +14,7 @@ public enum Flowlu { @JsonValue private final String value; - private Flowlu(String value) { + Flowlu(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Format.java b/src/main/java/com/airbyte/api/models/shared/Format.java index 831a8368f..935c8053c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Format.java +++ b/src/main/java/com/airbyte/api/models/shared/Format.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * Format * - *

    The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + *

    The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonDeserialize(using = Format._Deserializer.class) public class Format { @@ -90,12 +90,12 @@ public boolean equals(java.lang.Object o) { return false; } Format other = (Format) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/FormatType.java b/src/main/java/com/airbyte/api/models/shared/FormatType.java index b26c7938d..3ff318490 100644 --- a/src/main/java/com/airbyte/api/models/shared/FormatType.java +++ b/src/main/java/com/airbyte/api/models/shared/FormatType.java @@ -14,7 +14,7 @@ public enum FormatType { @JsonValue private final String value; - private FormatType(String value) { + FormatType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FormatTypeWildcard.java b/src/main/java/com/airbyte/api/models/shared/FormatTypeWildcard.java index 4f3d5e514..b66cdcb17 100644 --- a/src/main/java/com/airbyte/api/models/shared/FormatTypeWildcard.java +++ b/src/main/java/com/airbyte/api/models/shared/FormatTypeWildcard.java @@ -14,7 +14,7 @@ public enum FormatTypeWildcard { @JsonValue private final String value; - private FormatTypeWildcard(String value) { + FormatTypeWildcard(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Formbricks.java b/src/main/java/com/airbyte/api/models/shared/Formbricks.java index b2d4acb80..4e19a2136 100644 --- a/src/main/java/com/airbyte/api/models/shared/Formbricks.java +++ b/src/main/java/com/airbyte/api/models/shared/Formbricks.java @@ -14,7 +14,7 @@ public enum Formbricks { @JsonValue private final String value; - private Formbricks(String value) { + Formbricks(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FreeAgentConnector.java b/src/main/java/com/airbyte/api/models/shared/FreeAgentConnector.java index 44665a943..acf6837ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/FreeAgentConnector.java +++ b/src/main/java/com/airbyte/api/models/shared/FreeAgentConnector.java @@ -14,7 +14,7 @@ public enum FreeAgentConnector { @JsonValue private final String value; - private FreeAgentConnector(String value) { + FreeAgentConnector(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Freightview.java b/src/main/java/com/airbyte/api/models/shared/Freightview.java index cf6b1e5d2..f593d19e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freightview.java +++ b/src/main/java/com/airbyte/api/models/shared/Freightview.java @@ -14,7 +14,7 @@ public enum Freightview { @JsonValue private final String value; - private Freightview(String value) { + Freightview(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshbooks.java b/src/main/java/com/airbyte/api/models/shared/Freshbooks.java index 3970eaa53..389286cde 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshbooks.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshbooks.java @@ -14,7 +14,7 @@ public enum Freshbooks { @JsonValue private final String value; - private Freshbooks(String value) { + Freshbooks(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshcaller.java b/src/main/java/com/airbyte/api/models/shared/Freshcaller.java index 90b2b86af..001e0cbaa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshcaller.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshcaller.java @@ -14,7 +14,7 @@ public enum Freshcaller { @JsonValue private final String value; - private Freshcaller(String value) { + Freshcaller(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshchat.java b/src/main/java/com/airbyte/api/models/shared/Freshchat.java index 625d2d0fe..421eda699 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshchat.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshchat.java @@ -14,7 +14,7 @@ public enum Freshchat { @JsonValue private final String value; - private Freshchat(String value) { + Freshchat(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshdesk.java b/src/main/java/com/airbyte/api/models/shared/Freshdesk.java index bd5d86dcd..79f4df1dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshdesk.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshdesk.java @@ -14,7 +14,7 @@ public enum Freshdesk { @JsonValue private final String value; - private Freshdesk(String value) { + Freshdesk(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshsales.java b/src/main/java/com/airbyte/api/models/shared/Freshsales.java index 9e129217a..076a56a42 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshsales.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshsales.java @@ -14,7 +14,7 @@ public enum Freshsales { @JsonValue private final String value; - private Freshsales(String value) { + Freshsales(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Freshservice.java b/src/main/java/com/airbyte/api/models/shared/Freshservice.java index 6060420d2..0602e7ed3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Freshservice.java +++ b/src/main/java/com/airbyte/api/models/shared/Freshservice.java @@ -14,7 +14,7 @@ public enum Freshservice { @JsonValue private final String value; - private Freshservice(String value) { + Freshservice(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/FromCSV.java b/src/main/java/com/airbyte/api/models/shared/FromCSV.java index 847ff0368..5921ee26c 100644 --- a/src/main/java/com/airbyte/api/models/shared/FromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/FromCSV.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class FromCSV { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class FromCSV { @JsonCreator public FromCSV() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionType() { return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } FromCSV other = (FromCSV) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(FromCSV.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public FromCSV build() { + return new FromCSV( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/FromField.java b/src/main/java/com/airbyte/api/models/shared/FromField.java index bb67be24f..02ed3b831 100644 --- a/src/main/java/com/airbyte/api/models/shared/FromField.java +++ b/src/main/java/com/airbyte/api/models/shared/FromField.java @@ -15,16 +15,15 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * FromField * - *

    Use a field in the record as the embedding. This is useful if you already have an embedding for your data and want to store it in the vector store. + *

    Use a field in the record as the embedding. This is useful if you already have an embedding for your + * data and want to store it in the vector store. */ public class FromField { - /** * The number of dimensions the embedding model is generating */ @@ -37,6 +36,7 @@ public class FromField { @JsonProperty("field_name") private String fieldName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -74,9 +74,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The number of dimensions the embedding model is generating @@ -96,7 +97,6 @@ public FromField withFieldName(String fieldName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -107,17 +107,15 @@ public boolean equals(java.lang.Object o) { } FromField other = (FromField) o; return - Objects.deepEquals(this.dimensions, other.dimensions) && - Objects.deepEquals(this.fieldName, other.fieldName) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.dimensions, other.dimensions) && + Utils.enhancedDeepEquals(this.fieldName, other.fieldName) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - dimensions, - fieldName, - mode); + return Utils.enhancedHash( + dimensions, fieldName, mode); } @Override @@ -127,17 +125,19 @@ public String toString() { "fieldName", fieldName, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Long dimensions; - + private String fieldName; - + private Builder() { // force use of static builder() method } + /** * The number of dimensions the embedding model is generating */ @@ -147,6 +147,7 @@ public Builder dimensions(long dimensions) { return this; } + /** * Name of the field in the record that contains the embedding */ @@ -155,13 +156,14 @@ public Builder fieldName(String fieldName) { this.fieldName = fieldName; return this; } - + public FromField build() { + return new FromField( - dimensions, - fieldName); + dimensions, fieldName); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/FromValue.java b/src/main/java/com/airbyte/api/models/shared/FromValue.java index e7b7f307e..47b34c486 100644 --- a/src/main/java/com/airbyte/api/models/shared/FromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/FromValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = FromValue._Deserializer.class) public class FromValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } FromValue other = (FromValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Front.java b/src/main/java/com/airbyte/api/models/shared/Front.java index 91b4396f0..237241187 100644 --- a/src/main/java/com/airbyte/api/models/shared/Front.java +++ b/src/main/java/com/airbyte/api/models/shared/Front.java @@ -14,7 +14,7 @@ public enum Front { @JsonValue private final String value; - private Front(String value) { + Front(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Fulcrum.java b/src/main/java/com/airbyte/api/models/shared/Fulcrum.java index 2644e741c..65846f8d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fulcrum.java +++ b/src/main/java/com/airbyte/api/models/shared/Fulcrum.java @@ -14,7 +14,7 @@ public enum Fulcrum { @JsonValue private final String value; - private Fulcrum(String value) { + Fulcrum(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Fullstory.java b/src/main/java/com/airbyte/api/models/shared/Fullstory.java index b689dae7f..d2ea800a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Fullstory.java +++ b/src/main/java/com/airbyte/api/models/shared/Fullstory.java @@ -14,7 +14,7 @@ public enum Fullstory { @JsonValue private final String value; - private Fullstory(String value) { + Fullstory(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java b/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java index 1e2188078..2d30a3384 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSBucketRegion.java @@ -11,7 +11,8 @@ /** * GCSBucketRegion * - *

    Select a Region of the GCS Bucket. Read more <a href="https://cloud.google.com/storage/docs/locations">here</a>. + *

    Select a Region of the GCS Bucket. Read more here. */ public enum GCSBucketRegion { NORTHAMERICA_NORTHEAST1("northamerica-northeast1"), @@ -53,7 +54,7 @@ public enum GCSBucketRegion { @JsonValue private final String value; - private GCSBucketRegion(String value) { + GCSBucketRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GCSGoogleCloudStorage.java b/src/main/java/com/airbyte/api/models/shared/GCSGoogleCloudStorage.java index a7a60f5ee..baed345d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSGoogleCloudStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSGoogleCloudStorage.java @@ -13,18 +13,22 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GCSGoogleCloudStorage { +public class GCSGoogleCloudStorage { /** - * In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described <a href="https://cloud.google.com/iam/docs/service-accounts" target="_blank">here</a>. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on Google Cloud, this connector would need a service + * account json credentials with the proper permissions as described here. Please generate the + * credentials.json file and copy/paste its content to this field (expecting JSON formats). If + * accessing publicly available data, this field is not necessary. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("service_account_json") private Optional serviceAccountJson; + @JsonProperty("storage") private SourceFileStorage storage; @@ -41,7 +45,11 @@ public GCSGoogleCloudStorage() { } /** - * In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described <a href="https://cloud.google.com/iam/docs/service-accounts" target="_blank">here</a>. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on Google Cloud, this connector would need a service + * account json credentials with the proper permissions as described here. Please generate the + * credentials.json file and copy/paste its content to this field (expecting JSON formats). If + * accessing publicly available data, this field is not necessary. */ @JsonIgnore public Optional serviceAccountJson() { @@ -53,12 +61,17 @@ public SourceFileStorage storage() { return storage; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described <a href="https://cloud.google.com/iam/docs/service-accounts" target="_blank">here</a>. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on Google Cloud, this connector would need a service + * account json credentials with the proper permissions as described here. Please generate the + * credentials.json file and copy/paste its content to this field (expecting JSON formats). If + * accessing publicly available data, this field is not necessary. */ public GCSGoogleCloudStorage withServiceAccountJson(String serviceAccountJson) { Utils.checkNotNull(serviceAccountJson, "serviceAccountJson"); @@ -66,8 +79,13 @@ public GCSGoogleCloudStorage withServiceAccountJson(String serviceAccountJson) { return this; } + /** - * In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described <a href="https://cloud.google.com/iam/docs/service-accounts" target="_blank">here</a>. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on Google Cloud, this connector would need a service + * account json credentials with the proper permissions as described here. Please generate the + * credentials.json file and copy/paste its content to this field (expecting JSON formats). If + * accessing publicly available data, this field is not necessary. */ public GCSGoogleCloudStorage withServiceAccountJson(Optional serviceAccountJson) { Utils.checkNotNull(serviceAccountJson, "serviceAccountJson"); @@ -75,7 +93,6 @@ public GCSGoogleCloudStorage withServiceAccountJson(Optional serviceAcco return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,15 +103,14 @@ public boolean equals(java.lang.Object o) { } GCSGoogleCloudStorage other = (GCSGoogleCloudStorage) o; return - Objects.deepEquals(this.serviceAccountJson, other.serviceAccountJson) && - Objects.deepEquals(this.storage, other.storage); + Utils.enhancedDeepEquals(this.serviceAccountJson, other.serviceAccountJson) && + Utils.enhancedDeepEquals(this.storage, other.storage); } @Override public int hashCode() { - return Objects.hash( - serviceAccountJson, - storage); + return Utils.enhancedHash( + serviceAccountJson, storage); } @Override @@ -103,17 +119,23 @@ public String toString() { "serviceAccountJson", serviceAccountJson, "storage", storage); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional serviceAccountJson = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described <a href="https://cloud.google.com/iam/docs/service-accounts" target="_blank">here</a>. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on Google Cloud, this connector would need a service + * account json credentials with the proper permissions as described here. Please generate the + * credentials.json file and copy/paste its content to this field (expecting JSON formats). If + * accessing publicly available data, this field is not necessary. */ public Builder serviceAccountJson(String serviceAccountJson) { Utils.checkNotNull(serviceAccountJson, "serviceAccountJson"); @@ -122,19 +144,25 @@ public Builder serviceAccountJson(String serviceAccountJson) { } /** - * In order to access private Buckets stored on Google Cloud, this connector would need a service account json credentials with the proper permissions as described <a href="https://cloud.google.com/iam/docs/service-accounts" target="_blank">here</a>. Please generate the credentials.json file and copy/paste its content to this field (expecting JSON formats). If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on Google Cloud, this connector would need a service + * account json credentials with the proper permissions as described here. Please generate the + * credentials.json file and copy/paste its content to this field (expecting JSON formats). If + * accessing publicly available data, this field is not necessary. */ public Builder serviceAccountJson(Optional serviceAccountJson) { Utils.checkNotNull(serviceAccountJson, "serviceAccountJson"); this.serviceAccountJson = serviceAccountJson; return this; } - + public GCSGoogleCloudStorage build() { + return new GCSGoogleCloudStorage( serviceAccountJson); } + private static final LazySingletonValue _SINGLETON_VALUE_Storage = new LazySingletonValue<>( "storage", diff --git a/src/main/java/com/airbyte/api/models/shared/GCSStaging.java b/src/main/java/com/airbyte/api/models/shared/GCSStaging.java index 916e22aa7..e938e83ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSStaging.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSStaging.java @@ -5,33 +5,44 @@ import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; +import java.util.HashMap; +import java.util.Map; import java.util.Optional; /** * GCSStaging * - *

    Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your data into BigQuery. + *

    Writes large batches of records to a file, uploads the file to GCS, then uses COPY INTO to load your + * data into BigQuery. */ public class GCSStaging { + @JsonIgnore + private Map additionalProperties; + /** - * An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. + * An HMAC key is a type of credential and can be associated with a service account or a user account + * in Cloud Storage. Read more here. */ @JsonProperty("credential") private Credential credential; /** - * The name of the GCS bucket. Read more <a href="https://cloud.google.com/storage/docs/naming-buckets">here</a>. + * The name of the GCS bucket. Read more here. */ @JsonProperty("gcs_bucket_name") private String gcsBucketName; @@ -43,41 +54,56 @@ public class GCSStaging { private String gcsBucketPath; /** - * This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. + * This upload method is supposed to temporary store records in GCS bucket. By this select you can + * chose if these records should be removed from GCS when migration has finished. The default "Delete + * all tmp files from GCS" value is used if not set explicitly. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("keep_files_in_gcs-bucket") - private Optional keepFilesInGcsBucket; + private Optional keepFilesInGcsBucket; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("method") - private DestinationBigqueryMethod method; + private Optional method; @JsonCreator public GCSStaging( @JsonProperty("credential") Credential credential, @JsonProperty("gcs_bucket_name") String gcsBucketName, @JsonProperty("gcs_bucket_path") String gcsBucketPath, - @JsonProperty("keep_files_in_gcs-bucket") Optional keepFilesInGcsBucket) { + @JsonProperty("keep_files_in_gcs-bucket") Optional keepFilesInGcsBucket, + @JsonProperty("method") Optional method) { Utils.checkNotNull(credential, "credential"); Utils.checkNotNull(gcsBucketName, "gcsBucketName"); Utils.checkNotNull(gcsBucketPath, "gcsBucketPath"); Utils.checkNotNull(keepFilesInGcsBucket, "keepFilesInGcsBucket"); + Utils.checkNotNull(method, "method"); + this.additionalProperties = new HashMap<>(); this.credential = credential; this.gcsBucketName = gcsBucketName; this.gcsBucketPath = gcsBucketPath; this.keepFilesInGcsBucket = keepFilesInGcsBucket; - this.method = Builder._SINGLETON_VALUE_Method.value(); + this.method = method; } public GCSStaging( Credential credential, String gcsBucketName, String gcsBucketPath) { - this(credential, gcsBucketName, gcsBucketPath, Optional.empty()); + this(credential, gcsBucketName, gcsBucketPath, + Optional.empty(), Optional.empty()); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; } /** - * An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. + * An HMAC key is a type of credential and can be associated with a service account or a user account + * in Cloud Storage. Read more here. */ @JsonIgnore public Credential credential() { @@ -85,7 +111,8 @@ public Credential credential() { } /** - * The name of the GCS bucket. Read more <a href="https://cloud.google.com/storage/docs/naming-buckets">here</a>. + * The name of the GCS bucket. Read more here. */ @JsonIgnore public String gcsBucketName() { @@ -101,25 +128,44 @@ public String gcsBucketPath() { } /** - * This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. + * This upload method is supposed to temporary store records in GCS bucket. By this select you can + * chose if these records should be removed from GCS when migration has finished. The default "Delete + * all tmp files from GCS" value is used if not set explicitly. */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional keepFilesInGcsBucket() { - return (Optional) keepFilesInGcsBucket; + public Optional keepFilesInGcsBucket() { + return (Optional) keepFilesInGcsBucket; } + @SuppressWarnings("unchecked") @JsonIgnore - public DestinationBigqueryMethod method() { - return method; + public Optional method() { + return (Optional) method; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + @JsonAnySetter + public GCSStaging withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public GCSStaging withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } /** - * An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. + * An HMAC key is a type of credential and can be associated with a service account or a user account + * in Cloud Storage. Read more here. */ public GCSStaging withCredential(Credential credential) { Utils.checkNotNull(credential, "credential"); @@ -128,7 +174,8 @@ public GCSStaging withCredential(Credential credential) { } /** - * The name of the GCS bucket. Read more <a href="https://cloud.google.com/storage/docs/naming-buckets">here</a>. + * The name of the GCS bucket. Read more here. */ public GCSStaging withGcsBucketName(String gcsBucketName) { Utils.checkNotNull(gcsBucketName, "gcsBucketName"); @@ -146,24 +193,41 @@ public GCSStaging withGcsBucketPath(String gcsBucketPath) { } /** - * This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. + * This upload method is supposed to temporary store records in GCS bucket. By this select you can + * chose if these records should be removed from GCS when migration has finished. The default "Delete + * all tmp files from GCS" value is used if not set explicitly. */ - public GCSStaging withKeepFilesInGcsBucket(GCSTmpFilesAfterwardProcessing keepFilesInGcsBucket) { + public GCSStaging withKeepFilesInGcsBucket(GCSTmpFilesPostProcessing keepFilesInGcsBucket) { Utils.checkNotNull(keepFilesInGcsBucket, "keepFilesInGcsBucket"); this.keepFilesInGcsBucket = Optional.ofNullable(keepFilesInGcsBucket); return this; } + /** - * This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. + * This upload method is supposed to temporary store records in GCS bucket. By this select you can + * chose if these records should be removed from GCS when migration has finished. The default "Delete + * all tmp files from GCS" value is used if not set explicitly. */ - public GCSStaging withKeepFilesInGcsBucket(Optional keepFilesInGcsBucket) { + public GCSStaging withKeepFilesInGcsBucket(Optional keepFilesInGcsBucket) { Utils.checkNotNull(keepFilesInGcsBucket, "keepFilesInGcsBucket"); this.keepFilesInGcsBucket = keepFilesInGcsBucket; return this; } - + public GCSStaging withMethod(DestinationBigqueryMethod method) { + Utils.checkNotNull(method, "method"); + this.method = Optional.ofNullable(method); + return this; + } + + + public GCSStaging withMethod(Optional method) { + Utils.checkNotNull(method, "method"); + this.method = method; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,49 +238,72 @@ public boolean equals(java.lang.Object o) { } GCSStaging other = (GCSStaging) o; return - Objects.deepEquals(this.credential, other.credential) && - Objects.deepEquals(this.gcsBucketName, other.gcsBucketName) && - Objects.deepEquals(this.gcsBucketPath, other.gcsBucketPath) && - Objects.deepEquals(this.keepFilesInGcsBucket, other.keepFilesInGcsBucket) && - Objects.deepEquals(this.method, other.method); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.credential, other.credential) && + Utils.enhancedDeepEquals(this.gcsBucketName, other.gcsBucketName) && + Utils.enhancedDeepEquals(this.gcsBucketPath, other.gcsBucketPath) && + Utils.enhancedDeepEquals(this.keepFilesInGcsBucket, other.keepFilesInGcsBucket) && + Utils.enhancedDeepEquals(this.method, other.method); } @Override public int hashCode() { - return Objects.hash( - credential, - gcsBucketName, - gcsBucketPath, - keepFilesInGcsBucket, - method); + return Utils.enhancedHash( + additionalProperties, credential, gcsBucketName, + gcsBucketPath, keepFilesInGcsBucket, method); } @Override public String toString() { return Utils.toString(GCSStaging.class, + "additionalProperties", additionalProperties, "credential", credential, "gcsBucketName", gcsBucketName, "gcsBucketPath", gcsBucketPath, "keepFilesInGcsBucket", keepFilesInGcsBucket, "method", method); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Map additionalProperties = new HashMap<>(); + private Credential credential; - + private String gcsBucketName; - + private String gcsBucketPath; - - private Optional keepFilesInGcsBucket; - + + private Optional keepFilesInGcsBucket; + + private Optional method; + private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** - * An HMAC key is a type of credential and can be associated with a service account or a user account in Cloud Storage. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys">here</a>. + * An HMAC key is a type of credential and can be associated with a service account or a user account + * in Cloud Storage. Read more here. */ public Builder credential(Credential credential) { Utils.checkNotNull(credential, "credential"); @@ -224,8 +311,10 @@ public Builder credential(Credential credential) { return this; } + /** - * The name of the GCS bucket. Read more <a href="https://cloud.google.com/storage/docs/naming-buckets">here</a>. + * The name of the GCS bucket. Read more here. */ public Builder gcsBucketName(String gcsBucketName) { Utils.checkNotNull(gcsBucketName, "gcsBucketName"); @@ -233,6 +322,7 @@ public Builder gcsBucketName(String gcsBucketName) { return this; } + /** * Directory under the GCS bucket where data will be written. */ @@ -242,45 +332,67 @@ public Builder gcsBucketPath(String gcsBucketPath) { return this; } + /** - * This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. + * This upload method is supposed to temporary store records in GCS bucket. By this select you can + * chose if these records should be removed from GCS when migration has finished. The default "Delete + * all tmp files from GCS" value is used if not set explicitly. */ - public Builder keepFilesInGcsBucket(GCSTmpFilesAfterwardProcessing keepFilesInGcsBucket) { + public Builder keepFilesInGcsBucket(GCSTmpFilesPostProcessing keepFilesInGcsBucket) { Utils.checkNotNull(keepFilesInGcsBucket, "keepFilesInGcsBucket"); this.keepFilesInGcsBucket = Optional.ofNullable(keepFilesInGcsBucket); return this; } /** - * This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. + * This upload method is supposed to temporary store records in GCS bucket. By this select you can + * chose if these records should be removed from GCS when migration has finished. The default "Delete + * all tmp files from GCS" value is used if not set explicitly. */ - public Builder keepFilesInGcsBucket(Optional keepFilesInGcsBucket) { + public Builder keepFilesInGcsBucket(Optional keepFilesInGcsBucket) { Utils.checkNotNull(keepFilesInGcsBucket, "keepFilesInGcsBucket"); this.keepFilesInGcsBucket = keepFilesInGcsBucket; return this; } - + + + public Builder method(DestinationBigqueryMethod method) { + Utils.checkNotNull(method, "method"); + this.method = Optional.ofNullable(method); + return this; + } + + public Builder method(Optional method) { + Utils.checkNotNull(method, "method"); + this.method = method; + return this; + } + public GCSStaging build() { if (keepFilesInGcsBucket == null) { keepFilesInGcsBucket = _SINGLETON_VALUE_KeepFilesInGcsBucket.value(); } + if (method == null) { + method = _SINGLETON_VALUE_Method.value(); + } + return new GCSStaging( - credential, - gcsBucketName, - gcsBucketPath, - keepFilesInGcsBucket); + credential, gcsBucketName, gcsBucketPath, + keepFilesInGcsBucket, method) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue> _SINGLETON_VALUE_KeepFilesInGcsBucket = + + private static final LazySingletonValue> _SINGLETON_VALUE_KeepFilesInGcsBucket = new LazySingletonValue<>( "keep_files_in_gcs-bucket", "\"Delete all tmp files from GCS\"", - new TypeReference>() {}); + new TypeReference>() {}); - private static final LazySingletonValue _SINGLETON_VALUE_Method = + private static final LazySingletonValue> _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", "\"GCS Staging\"", - new TypeReference() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java b/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesPostProcessing.java similarity index 59% rename from src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java rename to src/main/java/com/airbyte/api/models/shared/GCSTmpFilesPostProcessing.java index ed3abfb71..791b4db8f 100644 --- a/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesAfterwardProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/GCSTmpFilesPostProcessing.java @@ -9,18 +9,20 @@ import java.util.Optional; /** - * GCSTmpFilesAfterwardProcessing + * GCSTmpFilesPostProcessing * - *

    This upload method is supposed to temporary store records in GCS bucket. By this select you can chose if these records should be removed from GCS when migration has finished. The default "Delete all tmp files from GCS" value is used if not set explicitly. + *

    This upload method is supposed to temporary store records in GCS bucket. By this select you can + * chose if these records should be removed from GCS when migration has finished. The default "Delete + * all tmp files from GCS" value is used if not set explicitly. */ -public enum GCSTmpFilesAfterwardProcessing { +public enum GCSTmpFilesPostProcessing { DELETE_ALL_TMP_FILES_FROM_GCS("Delete all tmp files from GCS"), KEEP_ALL_TMP_FILES_IN_GCS("Keep all tmp files in GCS"); @JsonValue private final String value; - private GCSTmpFilesAfterwardProcessing(String value) { + GCSTmpFilesPostProcessing(String value) { this.value = value; } @@ -28,8 +30,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (GCSTmpFilesAfterwardProcessing o: GCSTmpFilesAfterwardProcessing.values()) { + public static Optional fromValue(String value) { + for (GCSTmpFilesPostProcessing o: GCSTmpFilesPostProcessing.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/airbyte/api/models/shared/GainsightPx.java b/src/main/java/com/airbyte/api/models/shared/GainsightPx.java index 0e7c109d3..c044de135 100644 --- a/src/main/java/com/airbyte/api/models/shared/GainsightPx.java +++ b/src/main/java/com/airbyte/api/models/shared/GainsightPx.java @@ -14,7 +14,7 @@ public enum GainsightPx { @JsonValue private final String value; - private GainsightPx(String value) { + GainsightPx(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Gcs.java b/src/main/java/com/airbyte/api/models/shared/Gcs.java index 429c2b754..12b88bc34 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gcs.java +++ b/src/main/java/com/airbyte/api/models/shared/Gcs.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Gcs { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Gcs withCredentials(GcsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Gcs withCredentials(GcsCredentials credentials) { return this; } + public Gcs withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Gcs other = (Gcs) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Gcs.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(GcsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Gcs build() { + return new Gcs( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GcsCredentials.java b/src/main/java/com/airbyte/api/models/shared/GcsCredentials.java index 72f2902fc..5da2eb3b2 100644 --- a/src/main/java/com/airbyte/api/models/shared/GcsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GcsCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GcsCredentials { +public class GcsCredentials { /** * Client ID */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID @@ -73,6 +73,7 @@ public GcsCredentials withClientId(String clientId) { return this; } + /** * Client ID */ @@ -91,6 +92,7 @@ public GcsCredentials withClientSecret(String clientSecret) { return this; } + /** * Client Secret */ @@ -100,7 +102,6 @@ public GcsCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } GcsCredentials other = (GcsCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Client ID */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * Client Secret */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public GcsCredentials build() { + return new GcsCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Getgist.java b/src/main/java/com/airbyte/api/models/shared/Getgist.java index 321ac7a23..ed087ca6e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Getgist.java +++ b/src/main/java/com/airbyte/api/models/shared/Getgist.java @@ -14,7 +14,7 @@ public enum Getgist { @JsonValue private final String value; - private Getgist(String value) { + Getgist(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Getlago.java b/src/main/java/com/airbyte/api/models/shared/Getlago.java index d8e1c66cb..17f090b6e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Getlago.java +++ b/src/main/java/com/airbyte/api/models/shared/Getlago.java @@ -14,7 +14,7 @@ public enum Getlago { @JsonValue private final String value; - private Getlago(String value) { + Getlago(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Giphy.java b/src/main/java/com/airbyte/api/models/shared/Giphy.java index cabd4212a..84f4c111b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Giphy.java +++ b/src/main/java/com/airbyte/api/models/shared/Giphy.java @@ -14,7 +14,7 @@ public enum Giphy { @JsonValue private final String value; - private Giphy(String value) { + Giphy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Gitbook.java b/src/main/java/com/airbyte/api/models/shared/Gitbook.java index 15c562d81..e0f3fa3a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gitbook.java +++ b/src/main/java/com/airbyte/api/models/shared/Gitbook.java @@ -14,7 +14,7 @@ public enum Gitbook { @JsonValue private final String value; - private Gitbook(String value) { + Gitbook(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Github.java b/src/main/java/com/airbyte/api/models/shared/Github.java index 87684036b..00a9a5752 100644 --- a/src/main/java/com/airbyte/api/models/shared/Github.java +++ b/src/main/java/com/airbyte/api/models/shared/Github.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Github { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Github withCredentials(GithubCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Github withCredentials(GithubCredentials credentials) { return this; } + public Github withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Github other = (Github) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Github.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(GithubCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Github build() { + return new Github( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GithubCredentials.java b/src/main/java/com/airbyte/api/models/shared/GithubCredentials.java index f5717a86b..5f5c62687 100644 --- a/src/main/java/com/airbyte/api/models/shared/GithubCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GithubCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GithubCredentials { +public class GithubCredentials { /** * OAuth Client Id */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * OAuth Client Id @@ -73,6 +73,7 @@ public GithubCredentials withClientId(String clientId) { return this; } + /** * OAuth Client Id */ @@ -91,6 +92,7 @@ public GithubCredentials withClientSecret(String clientSecret) { return this; } + /** * OAuth Client secret */ @@ -100,7 +102,6 @@ public GithubCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } GithubCredentials other = (GithubCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * OAuth Client Id */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * OAuth Client secret */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public GithubCredentials build() { + return new GithubCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Gitlab.java b/src/main/java/com/airbyte/api/models/shared/Gitlab.java index 1f9a4c170..bedc28136 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gitlab.java +++ b/src/main/java/com/airbyte/api/models/shared/Gitlab.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Gitlab { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Gitlab withCredentials(GitlabCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Gitlab withCredentials(GitlabCredentials credentials) { return this; } + public Gitlab withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Gitlab other = (Gitlab) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Gitlab.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(GitlabCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Gitlab build() { + return new Gitlab( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GitlabCredentials.java b/src/main/java/com/airbyte/api/models/shared/GitlabCredentials.java index e2964ed0e..d4904d746 100644 --- a/src/main/java/com/airbyte/api/models/shared/GitlabCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GitlabCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GitlabCredentials { +public class GitlabCredentials { /** * The API ID of the Gitlab developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API ID of the Gitlab developer application. @@ -73,6 +73,7 @@ public GitlabCredentials withClientId(String clientId) { return this; } + /** * The API ID of the Gitlab developer application. */ @@ -91,6 +92,7 @@ public GitlabCredentials withClientSecret(String clientSecret) { return this; } + /** * The API Secret the Gitlab developer application. */ @@ -100,7 +102,6 @@ public GitlabCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } GitlabCredentials other = (GitlabCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The API ID of the Gitlab developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The API Secret the Gitlab developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public GitlabCredentials build() { + return new GitlabCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Glassfrog.java b/src/main/java/com/airbyte/api/models/shared/Glassfrog.java index c76a56ec0..1e440e000 100644 --- a/src/main/java/com/airbyte/api/models/shared/Glassfrog.java +++ b/src/main/java/com/airbyte/api/models/shared/Glassfrog.java @@ -14,7 +14,7 @@ public enum Glassfrog { @JsonValue private final String value; - private Glassfrog(String value) { + Glassfrog(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GlobalAccount.java b/src/main/java/com/airbyte/api/models/shared/GlobalAccount.java index bab426ab4..fc1579470 100644 --- a/src/main/java/com/airbyte/api/models/shared/GlobalAccount.java +++ b/src/main/java/com/airbyte/api/models/shared/GlobalAccount.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class GlobalAccount { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class GlobalAccount { @JsonCreator public GlobalAccount() { - this.urlBase = Builder._SINGLETON_VALUE_UrlBase.value(); } @@ -35,11 +34,11 @@ public Optional urlBase() { return (Optional) urlBase; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } GlobalAccount other = (GlobalAccount) o; return - Objects.deepEquals(this.urlBase, other.urlBase); + Utils.enhancedDeepEquals(this.urlBase, other.urlBase); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( urlBase); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(GlobalAccount.class, "urlBase", urlBase); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public GlobalAccount build() { + return new GlobalAccount( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_UrlBase = new LazySingletonValue<>( "url_base", diff --git a/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java b/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java index 0b020f3dc..78c4337d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java +++ b/src/main/java/com/airbyte/api/models/shared/GlueCatalog.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,12 +31,14 @@ public class GlueCatalog { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("catalog_type") private Optional catalogType; /** - * The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the connection is set to `Destination-defined` or `Source-defined` + * The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the + * connection is set to `Destination-defined` or `Source-defined` */ @JsonProperty("database_name") private String databaseName; @@ -75,7 +76,8 @@ public GlueCatalog( public GlueCatalog( String databaseName, String glueId) { - this(Optional.empty(), databaseName, glueId, Optional.empty()); + this(Optional.empty(), databaseName, glueId, + Optional.empty()); } @JsonAnyGetter @@ -90,7 +92,8 @@ public Optional catalogType() { } /** - * The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the connection is set to `Destination-defined` or `Source-defined` + * The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the + * connection is set to `Destination-defined` or `Source-defined` */ @JsonIgnore public String databaseName() { @@ -113,9 +116,10 @@ public Optional roleArn() { return roleArn; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public GlueCatalog withAdditionalProperty(String key, Object value) { @@ -123,8 +127,7 @@ public GlueCatalog withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public GlueCatalog withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -137,6 +140,7 @@ public GlueCatalog withCatalogType(DestinationS3DataLakeCatalogType catalogType) return this; } + public GlueCatalog withCatalogType(Optional catalogType) { Utils.checkNotNull(catalogType, "catalogType"); this.catalogType = catalogType; @@ -144,7 +148,8 @@ public GlueCatalog withCatalogType(Optional roleArn) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -190,21 +195,18 @@ public boolean equals(java.lang.Object o) { } GlueCatalog other = (GlueCatalog) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.catalogType, other.catalogType) && - Objects.deepEquals(this.databaseName, other.databaseName) && - Objects.deepEquals(this.glueId, other.glueId) && - Objects.deepEquals(this.roleArn, other.roleArn); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.catalogType, other.catalogType) && + Utils.enhancedDeepEquals(this.databaseName, other.databaseName) && + Utils.enhancedDeepEquals(this.glueId, other.glueId) && + Utils.enhancedDeepEquals(this.roleArn, other.roleArn); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - catalogType, - databaseName, - glueId, - roleArn); + return Utils.enhancedHash( + additionalProperties, catalogType, databaseName, + glueId, roleArn); } @Override @@ -216,19 +218,20 @@ public String toString() { "glueId", glueId, "roleArn", roleArn); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional catalogType; - + private String databaseName; - + private String glueId; - + private Optional roleArn = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -249,6 +252,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder catalogType(DestinationS3DataLakeCatalogType catalogType) { Utils.checkNotNull(catalogType, "catalogType"); this.catalogType = Optional.ofNullable(catalogType); @@ -261,8 +265,10 @@ public Builder catalogType(Optional return this; } + /** - * The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the connection is set to `Destination-defined` or `Source-defined` + * The Glue database name. This will ONLY be used if the `Destination Namespace` setting for the + * connection is set to `Destination-defined` or `Source-defined` */ public Builder databaseName(String databaseName) { Utils.checkNotNull(databaseName, "databaseName"); @@ -270,6 +276,7 @@ public Builder databaseName(String databaseName) { return this; } + /** * The AWS Account ID associated with the Glue service used by the Iceberg catalog. */ @@ -279,6 +286,7 @@ public Builder glueId(String glueId) { return this; } + /** * The ARN of the AWS role to assume. Only usable in Airbyte Cloud. */ @@ -296,19 +304,19 @@ public Builder roleArn(Optional roleArn) { this.roleArn = roleArn; return this; } - + public GlueCatalog build() { if (catalogType == null) { catalogType = _SINGLETON_VALUE_CatalogType.value(); } + return new GlueCatalog( - catalogType, - databaseName, - glueId, + catalogType, databaseName, glueId, roleArn) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_CatalogType = new LazySingletonValue<>( "catalog_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Gmail.java b/src/main/java/com/airbyte/api/models/shared/Gmail.java index 7e742bd52..e12b62e00 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gmail.java +++ b/src/main/java/com/airbyte/api/models/shared/Gmail.java @@ -14,7 +14,7 @@ public enum Gmail { @JsonValue private final String value; - private Gmail(String value) { + Gmail(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Gnews.java b/src/main/java/com/airbyte/api/models/shared/Gnews.java index e48b8739a..5d0e912b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gnews.java +++ b/src/main/java/com/airbyte/api/models/shared/Gnews.java @@ -14,7 +14,7 @@ public enum Gnews { @JsonValue private final String value; - private Gnews(String value) { + Gnews(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GoCardlessAPIEnvironment.java b/src/main/java/com/airbyte/api/models/shared/GoCardlessAPIEnvironment.java index 938a393b0..7b4208b24 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoCardlessAPIEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/GoCardlessAPIEnvironment.java @@ -20,7 +20,7 @@ public enum GoCardlessAPIEnvironment { @JsonValue private final String value; - private GoCardlessAPIEnvironment(String value) { + GoCardlessAPIEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Gocardless.java b/src/main/java/com/airbyte/api/models/shared/Gocardless.java index 5a3b8ec12..8381cee20 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gocardless.java +++ b/src/main/java/com/airbyte/api/models/shared/Gocardless.java @@ -14,7 +14,7 @@ public enum Gocardless { @JsonValue private final String value; - private Gocardless(String value) { + Gocardless(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Goldcast.java b/src/main/java/com/airbyte/api/models/shared/Goldcast.java index 3ba909f17..bb5b902dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Goldcast.java +++ b/src/main/java/com/airbyte/api/models/shared/Goldcast.java @@ -14,7 +14,7 @@ public enum Goldcast { @JsonValue private final String value; - private Goldcast(String value) { + Goldcast(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Gologin.java b/src/main/java/com/airbyte/api/models/shared/Gologin.java index 081d4bc2a..75948d95f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gologin.java +++ b/src/main/java/com/airbyte/api/models/shared/Gologin.java @@ -14,7 +14,7 @@ public enum Gologin { @JsonValue private final String value; - private Gologin(String value) { + Gologin(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Gong.java b/src/main/java/com/airbyte/api/models/shared/Gong.java index decff561e..79d6435a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gong.java +++ b/src/main/java/com/airbyte/api/models/shared/Gong.java @@ -14,7 +14,7 @@ public enum Gong { @JsonValue private final String value; - private Gong(String value) { + Gong(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleAds.java b/src/main/java/com/airbyte/api/models/shared/GoogleAds.java index 542031e53..bb92908c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleAds.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleAds.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class GoogleAds { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GoogleAds withCredentials(GoogleAdsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public GoogleAds withCredentials(GoogleAdsCredentials credentials) { return this; } + public GoogleAds withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } GoogleAds other = (GoogleAds) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(GoogleAds.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(GoogleAdsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) this.credentials = credentials; return this; } - + public GoogleAds build() { + return new GoogleAds( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleAdsCredentials.java b/src/main/java/com/airbyte/api/models/shared/GoogleAdsCredentials.java index c3ff083dc..d49228e05 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleAdsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleAdsCredentials.java @@ -11,27 +11,32 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GoogleAdsCredentials { +public class GoogleAdsCredentials { /** - * The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client ID of your Google Ads developer application. For detailed instructions on finding this + * value, refer to our documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client Secret of your Google Ads developer application. For detailed instructions on finding + * this value, refer to our documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") private Optional clientSecret; /** - * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this + * value, refer to our documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("developer_token") @@ -55,7 +60,9 @@ public GoogleAdsCredentials() { } /** - * The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client ID of your Google Ads developer application. For detailed instructions on finding this + * value, refer to our documentation. */ @JsonIgnore public Optional clientId() { @@ -63,7 +70,9 @@ public Optional clientId() { } /** - * The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client Secret of your Google Ads developer application. For detailed instructions on finding + * this value, refer to our documentation. */ @JsonIgnore public Optional clientSecret() { @@ -71,19 +80,24 @@ public Optional clientSecret() { } /** - * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this + * value, refer to our documentation. */ @JsonIgnore public Optional developerToken() { return developerToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client ID of your Google Ads developer application. For detailed instructions on finding this + * value, refer to our documentation. */ public GoogleAdsCredentials withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -91,8 +105,11 @@ public GoogleAdsCredentials withClientId(String clientId) { return this; } + /** - * The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client ID of your Google Ads developer application. For detailed instructions on finding this + * value, refer to our documentation. */ public GoogleAdsCredentials withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -101,7 +118,9 @@ public GoogleAdsCredentials withClientId(Optional clientId) { } /** - * The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client Secret of your Google Ads developer application. For detailed instructions on finding + * this value, refer to our documentation. */ public GoogleAdsCredentials withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -109,8 +128,11 @@ public GoogleAdsCredentials withClientSecret(String clientSecret) { return this; } + /** - * The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client Secret of your Google Ads developer application. For detailed instructions on finding + * this value, refer to our documentation. */ public GoogleAdsCredentials withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -119,7 +141,9 @@ public GoogleAdsCredentials withClientSecret(Optional clientSecret) { } /** - * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this + * value, refer to our documentation. */ public GoogleAdsCredentials withDeveloperToken(String developerToken) { Utils.checkNotNull(developerToken, "developerToken"); @@ -127,8 +151,11 @@ public GoogleAdsCredentials withDeveloperToken(String developerToken) { return this; } + /** - * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this + * value, refer to our documentation. */ public GoogleAdsCredentials withDeveloperToken(Optional developerToken) { Utils.checkNotNull(developerToken, "developerToken"); @@ -136,7 +163,6 @@ public GoogleAdsCredentials withDeveloperToken(Optional developerToken) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -147,17 +173,15 @@ public boolean equals(java.lang.Object o) { } GoogleAdsCredentials other = (GoogleAdsCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.developerToken, other.developerToken); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.developerToken, other.developerToken); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - developerToken); + return Utils.enhancedHash( + clientId, clientSecret, developerToken); } @Override @@ -167,21 +191,25 @@ public String toString() { "clientSecret", clientSecret, "developerToken", developerToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Optional developerToken = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client ID of your Google Ads developer application. For detailed instructions on finding this + * value, refer to our documentation. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -190,7 +218,9 @@ public Builder clientId(String clientId) { } /** - * The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client ID of your Google Ads developer application. For detailed instructions on finding this + * value, refer to our documentation. */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -198,8 +228,11 @@ public Builder clientId(Optional clientId) { return this; } + /** - * The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client Secret of your Google Ads developer application. For detailed instructions on finding + * this value, refer to our documentation. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -208,7 +241,9 @@ public Builder clientSecret(String clientSecret) { } /** - * The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client Secret of your Google Ads developer application. For detailed instructions on finding + * this value, refer to our documentation. */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -216,8 +251,11 @@ public Builder clientSecret(Optional clientSecret) { return this; } + /** - * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this + * value, refer to our documentation. */ public Builder developerToken(String developerToken) { Utils.checkNotNull(developerToken, "developerToken"); @@ -226,19 +264,21 @@ public Builder developerToken(String developerToken) { } /** - * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this + * value, refer to our documentation. */ public Builder developerToken(Optional developerToken) { Utils.checkNotNull(developerToken, "developerToken"); this.developerToken = developerToken; return this; } - + public GoogleAdsCredentials build() { + return new GoogleAdsCredentials( - clientId, - clientSecret, - developerToken); + clientId, clientSecret, developerToken); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApi.java b/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApi.java index 7985e4371..a57ee607c 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApi.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class GoogleAnalyticsDataApi { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GoogleAnalyticsDataApi withCredentials(GoogleAnalyticsDataApiCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public GoogleAnalyticsDataApi withCredentials(GoogleAnalyticsDataApiCredentials return this; } + public GoogleAnalyticsDataApi withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } GoogleAnalyticsDataApi other = (GoogleAnalyticsDataApi) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(GoogleAnalyticsDataApi.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(GoogleAnalyticsDataApiCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional this.credentials = credentials; return this; } - + public GoogleAnalyticsDataApi build() { + return new GoogleAnalyticsDataApi( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApiCredentials.java b/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApiCredentials.java index 5cf443c44..a3d5b520f 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApiCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleAnalyticsDataApiCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GoogleAnalyticsDataApiCredentials { +public class GoogleAnalyticsDataApiCredentials { /** * The Client ID of your Google Analytics developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Google Analytics developer application. @@ -73,6 +73,7 @@ public GoogleAnalyticsDataApiCredentials withClientId(String clientId) { return this; } + /** * The Client ID of your Google Analytics developer application. */ @@ -91,6 +92,7 @@ public GoogleAnalyticsDataApiCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your Google Analytics developer application. */ @@ -100,7 +102,6 @@ public GoogleAnalyticsDataApiCredentials withClientSecret(Optional clien return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } GoogleAnalyticsDataApiCredentials other = (GoogleAnalyticsDataApiCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Google Analytics developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your Google Analytics developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public GoogleAnalyticsDataApiCredentials build() { + return new GoogleAnalyticsDataApiCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java b/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java index 430a9b7a9..6230c9fcb 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleCalendar.java @@ -14,7 +14,7 @@ public enum GoogleCalendar { @JsonValue private final String value; - private GoogleCalendar(String value) { + GoogleCalendar(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleClassroom.java b/src/main/java/com/airbyte/api/models/shared/GoogleClassroom.java index 939b10b8d..45adbb706 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleClassroom.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleClassroom.java @@ -14,7 +14,7 @@ public enum GoogleClassroom { @JsonValue private final String value; - private GoogleClassroom(String value) { + GoogleClassroom(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleCredentials.java b/src/main/java/com/airbyte/api/models/shared/GoogleCredentials.java index cacc8377a..266693ca0 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleCredentials.java @@ -11,38 +11,47 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GoogleCredentials { +public class GoogleCredentials { /** - * The Access Token for making authenticated requests. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Access Token for making authenticated requests. For detailed instructions on finding this value, + * refer to our documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("access_token") private Optional accessToken; /** - * The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client ID of your Google Ads developer application. For detailed instructions on finding this + * value, refer to our documentation. */ @JsonProperty("client_id") private String clientId; /** - * The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client Secret of your Google Ads developer application. For detailed instructions on finding + * this value, refer to our documentation. */ @JsonProperty("client_secret") private String clientSecret; /** - * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this + * value, refer to our documentation. */ @JsonProperty("developer_token") private String developerToken; /** - * The token used to obtain a new Access Token. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The token used to obtain a new Access Token. For detailed instructions on finding this value, refer + * to our documentation. */ @JsonProperty("refresh_token") private String refreshToken; @@ -71,11 +80,14 @@ public GoogleCredentials( String clientSecret, String developerToken, String refreshToken) { - this(Optional.empty(), clientId, clientSecret, developerToken, refreshToken); + this(Optional.empty(), clientId, clientSecret, + developerToken, refreshToken); } /** - * The Access Token for making authenticated requests. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Access Token for making authenticated requests. For detailed instructions on finding this value, + * refer to our documentation. */ @JsonIgnore public Optional accessToken() { @@ -83,7 +95,9 @@ public Optional accessToken() { } /** - * The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client ID of your Google Ads developer application. For detailed instructions on finding this + * value, refer to our documentation. */ @JsonIgnore public String clientId() { @@ -91,7 +105,9 @@ public String clientId() { } /** - * The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client Secret of your Google Ads developer application. For detailed instructions on finding + * this value, refer to our documentation. */ @JsonIgnore public String clientSecret() { @@ -99,7 +115,9 @@ public String clientSecret() { } /** - * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this + * value, refer to our documentation. */ @JsonIgnore public String developerToken() { @@ -107,19 +125,24 @@ public String developerToken() { } /** - * The token used to obtain a new Access Token. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The token used to obtain a new Access Token. For detailed instructions on finding this value, refer + * to our documentation. */ @JsonIgnore public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Access Token for making authenticated requests. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Access Token for making authenticated requests. For detailed instructions on finding this value, + * refer to our documentation. */ public GoogleCredentials withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -127,8 +150,11 @@ public GoogleCredentials withAccessToken(String accessToken) { return this; } + /** - * The Access Token for making authenticated requests. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Access Token for making authenticated requests. For detailed instructions on finding this value, + * refer to our documentation. */ public GoogleCredentials withAccessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -137,7 +163,9 @@ public GoogleCredentials withAccessToken(Optional accessToken) { } /** - * The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client ID of your Google Ads developer application. For detailed instructions on finding this + * value, refer to our documentation. */ public GoogleCredentials withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -146,7 +174,9 @@ public GoogleCredentials withClientId(String clientId) { } /** - * The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client Secret of your Google Ads developer application. For detailed instructions on finding + * this value, refer to our documentation. */ public GoogleCredentials withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -155,7 +185,9 @@ public GoogleCredentials withClientSecret(String clientSecret) { } /** - * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this + * value, refer to our documentation. */ public GoogleCredentials withDeveloperToken(String developerToken) { Utils.checkNotNull(developerToken, "developerToken"); @@ -164,7 +196,9 @@ public GoogleCredentials withDeveloperToken(String developerToken) { } /** - * The token used to obtain a new Access Token. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The token used to obtain a new Access Token. For detailed instructions on finding this value, refer + * to our documentation. */ public GoogleCredentials withRefreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -172,7 +206,6 @@ public GoogleCredentials withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -183,21 +216,18 @@ public boolean equals(java.lang.Object o) { } GoogleCredentials other = (GoogleCredentials) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.developerToken, other.developerToken) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.developerToken, other.developerToken) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - accessToken, - clientId, - clientSecret, - developerToken, - refreshToken); + return Utils.enhancedHash( + accessToken, clientId, clientSecret, + developerToken, refreshToken); } @Override @@ -209,25 +239,29 @@ public String toString() { "developerToken", developerToken, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accessToken = Optional.empty(); - + private String clientId; - + private String clientSecret; - + private String developerToken; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** - * The Access Token for making authenticated requests. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Access Token for making authenticated requests. For detailed instructions on finding this value, + * refer to our documentation. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -236,7 +270,9 @@ public Builder accessToken(String accessToken) { } /** - * The Access Token for making authenticated requests. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Access Token for making authenticated requests. For detailed instructions on finding this value, + * refer to our documentation. */ public Builder accessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -244,8 +280,11 @@ public Builder accessToken(Optional accessToken) { return this; } + /** - * The Client ID of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client ID of your Google Ads developer application. For detailed instructions on finding this + * value, refer to our documentation. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -253,8 +292,11 @@ public Builder clientId(String clientId) { return this; } + /** - * The Client Secret of your Google Ads developer application. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Client Secret of your Google Ads developer application. For detailed instructions on finding + * this value, refer to our documentation. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -262,8 +304,11 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The Developer Token granted by Google to use their APIs. For detailed instructions on finding this + * value, refer to our documentation. */ public Builder developerToken(String developerToken) { Utils.checkNotNull(developerToken, "developerToken"); @@ -271,22 +316,24 @@ public Builder developerToken(String developerToken) { return this; } + /** - * The token used to obtain a new Access Token. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * The token used to obtain a new Access Token. For detailed instructions on finding this value, refer + * to our documentation. */ public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } - + public GoogleCredentials build() { + return new GoogleCredentials( - accessToken, - clientId, - clientSecret, - developerToken, - refreshToken); + accessToken, clientId, clientSecret, + developerToken, refreshToken); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java b/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java index f3b9c3fbd..c4b576d14 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleDirectory.java @@ -14,7 +14,7 @@ public enum GoogleDirectory { @JsonValue private final String value; - private GoogleDirectory(String value) { + GoogleDirectory(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleDrive.java b/src/main/java/com/airbyte/api/models/shared/GoogleDrive.java index 556a1458c..538e38739 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleDrive.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleDrive.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class GoogleDrive { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GoogleDrive withCredentials(GoogleDriveCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public GoogleDrive withCredentials(GoogleDriveCredentials credentials) { return this; } + public GoogleDrive withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } GoogleDrive other = (GoogleDrive) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(GoogleDrive.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(GoogleDriveCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credential this.credentials = credentials; return this; } - + public GoogleDrive build() { + return new GoogleDrive( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleDriveCredentials.java b/src/main/java/com/airbyte/api/models/shared/GoogleDriveCredentials.java index 0e260c783..7eba12583 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleDriveCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleDriveCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GoogleDriveCredentials { +public class GoogleDriveCredentials { /** * Client ID for the Google Drive API */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID for the Google Drive API @@ -73,6 +73,7 @@ public GoogleDriveCredentials withClientId(String clientId) { return this; } + /** * Client ID for the Google Drive API */ @@ -91,6 +92,7 @@ public GoogleDriveCredentials withClientSecret(String clientSecret) { return this; } + /** * Client Secret for the Google Drive API */ @@ -100,7 +102,6 @@ public GoogleDriveCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } GoogleDriveCredentials other = (GoogleDriveCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Client ID for the Google Drive API */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * Client Secret for the Google Drive API */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public GoogleDriveCredentials build() { + return new GoogleDriveCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleForms.java b/src/main/java/com/airbyte/api/models/shared/GoogleForms.java index 2c6661150..8b96320fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleForms.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleForms.java @@ -14,7 +14,7 @@ public enum GoogleForms { @JsonValue private final String value; - private GoogleForms(String value) { + GoogleForms(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GooglePagespeedInsights.java b/src/main/java/com/airbyte/api/models/shared/GooglePagespeedInsights.java index c198bba85..0775f1fda 100644 --- a/src/main/java/com/airbyte/api/models/shared/GooglePagespeedInsights.java +++ b/src/main/java/com/airbyte/api/models/shared/GooglePagespeedInsights.java @@ -14,7 +14,7 @@ public enum GooglePagespeedInsights { @JsonValue private final String value; - private GooglePagespeedInsights(String value) { + GooglePagespeedInsights(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleSearchConsole.java b/src/main/java/com/airbyte/api/models/shared/GoogleSearchConsole.java index 4b77cd3ab..a1da7538a 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleSearchConsole.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleSearchConsole.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class GoogleSearchConsole { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional authorization() { return (Optional) authorization; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GoogleSearchConsole withAuthorization(Authorization authorization) { Utils.checkNotNull(authorization, "authorization"); @@ -48,13 +49,13 @@ public GoogleSearchConsole withAuthorization(Authorization authorization) { return this; } + public GoogleSearchConsole withAuthorization(Optional authorization) { Utils.checkNotNull(authorization, "authorization"); this.authorization = authorization; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } GoogleSearchConsole other = (GoogleSearchConsole) o; return - Objects.deepEquals(this.authorization, other.authorization); + Utils.enhancedDeepEquals(this.authorization, other.authorization); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( authorization); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(GoogleSearchConsole.class, "authorization", authorization); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional authorization = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder authorization(Authorization authorization) { Utils.checkNotNull(authorization, "authorization"); this.authorization = Optional.ofNullable(authorization); @@ -99,10 +102,12 @@ public Builder authorization(Optional authorization) { this.authorization = authorization; return this; } - + public GoogleSearchConsole build() { + return new GoogleSearchConsole( authorization); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/GoogleSheets.java index b89810da1..e6ad7e28a 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleSheets.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class GoogleSheets { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public GoogleSheets withCredentials(GoogleSheetsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public GoogleSheets withCredentials(GoogleSheetsCredentials credentials) { return this; } + public GoogleSheets withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } GoogleSheets other = (GoogleSheets) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(GoogleSheets.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(GoogleSheetsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentia this.credentials = credentials; return this; } - + public GoogleSheets build() { + return new GoogleSheets( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleSheetsCredentials.java b/src/main/java/com/airbyte/api/models/shared/GoogleSheetsCredentials.java index 7ea59421b..aad69e9e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleSheetsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleSheetsCredentials.java @@ -11,20 +11,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class GoogleSheetsCredentials { +public class GoogleSheetsCredentials { /** - * Enter your Google application's Client ID. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client ID. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * Enter your Google application's Client Secret. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client Secret. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") @@ -45,7 +48,9 @@ public GoogleSheetsCredentials() { } /** - * Enter your Google application's Client ID. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client ID. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ @JsonIgnore public Optional clientId() { @@ -53,19 +58,24 @@ public Optional clientId() { } /** - * Enter your Google application's Client Secret. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client Secret. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ @JsonIgnore public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Enter your Google application's Client ID. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client ID. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public GoogleSheetsCredentials withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -73,8 +83,11 @@ public GoogleSheetsCredentials withClientId(String clientId) { return this; } + /** - * Enter your Google application's Client ID. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client ID. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public GoogleSheetsCredentials withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +96,9 @@ public GoogleSheetsCredentials withClientId(Optional clientId) { } /** - * Enter your Google application's Client Secret. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client Secret. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public GoogleSheetsCredentials withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -91,8 +106,11 @@ public GoogleSheetsCredentials withClientSecret(String clientSecret) { return this; } + /** - * Enter your Google application's Client Secret. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client Secret. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public GoogleSheetsCredentials withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -100,7 +118,6 @@ public GoogleSheetsCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +128,14 @@ public boolean equals(java.lang.Object o) { } GoogleSheetsCredentials other = (GoogleSheetsCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,19 +144,23 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Enter your Google application's Client ID. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client ID. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -149,7 +169,9 @@ public Builder clientId(String clientId) { } /** - * Enter your Google application's Client ID. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client ID. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -157,8 +179,11 @@ public Builder clientId(Optional clientId) { return this; } + /** - * Enter your Google application's Client Secret. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client Secret. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -167,18 +192,21 @@ public Builder clientSecret(String clientSecret) { } /** - * Enter your Google application's Client Secret. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client Secret. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public GoogleSheetsCredentials build() { + return new GoogleSheetsCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java b/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java index fe9dfb6ac..4ec4b6645 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleTasks.java @@ -14,7 +14,7 @@ public enum GoogleTasks { @JsonValue private final String value; - private GoogleTasks(String value) { + GoogleTasks(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GoogleWebfonts.java b/src/main/java/com/airbyte/api/models/shared/GoogleWebfonts.java index ec2e0a45d..53d5ca475 100644 --- a/src/main/java/com/airbyte/api/models/shared/GoogleWebfonts.java +++ b/src/main/java/com/airbyte/api/models/shared/GoogleWebfonts.java @@ -14,7 +14,7 @@ public enum GoogleWebfonts { @JsonValue private final String value; - private GoogleWebfonts(String value) { + GoogleWebfonts(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Gorgias.java b/src/main/java/com/airbyte/api/models/shared/Gorgias.java index 8ef05a113..56da9a8ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gorgias.java +++ b/src/main/java/com/airbyte/api/models/shared/Gorgias.java @@ -14,7 +14,7 @@ public enum Gorgias { @JsonValue private final String value; - private Gorgias(String value) { + Gorgias(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Granularity.java b/src/main/java/com/airbyte/api/models/shared/Granularity.java index 6f2e45520..e128fcf20 100644 --- a/src/main/java/com/airbyte/api/models/shared/Granularity.java +++ b/src/main/java/com/airbyte/api/models/shared/Granularity.java @@ -23,7 +23,7 @@ public enum Granularity { @JsonValue private final String value; - private Granularity(String value) { + Granularity(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java b/src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java index d150da532..230bcd08c 100644 --- a/src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/GranularityForGeoLocationRegion.java @@ -21,7 +21,7 @@ public enum GranularityForGeoLocationRegion { @JsonValue private final String value; - private GranularityForGeoLocationRegion(String value) { + GranularityForGeoLocationRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java b/src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java index b7e261bf0..43f4ddbbd 100644 --- a/src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java +++ b/src/main/java/com/airbyte/api/models/shared/GranularityForPeriodicReports.java @@ -11,7 +11,9 @@ /** * GranularityForPeriodicReports * - *

    The granularity used for periodic data in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + *

    The granularity used for periodic data in reports. See the + * docs. */ public enum GranularityForPeriodicReports { DAILY("daily"), @@ -21,7 +23,7 @@ public enum GranularityForPeriodicReports { @JsonValue private final String value; - private GranularityForPeriodicReports(String value) { + GranularityForPeriodicReports(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Greenhouse.java b/src/main/java/com/airbyte/api/models/shared/Greenhouse.java index 8c2bc560c..b8000b481 100644 --- a/src/main/java/com/airbyte/api/models/shared/Greenhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/Greenhouse.java @@ -14,7 +14,7 @@ public enum Greenhouse { @JsonValue private final String value; - private Greenhouse(String value) { + Greenhouse(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Greythr.java b/src/main/java/com/airbyte/api/models/shared/Greythr.java index 4fd612cfa..197edc60d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Greythr.java +++ b/src/main/java/com/airbyte/api/models/shared/Greythr.java @@ -14,7 +14,7 @@ public enum Greythr { @JsonValue private final String value; - private Greythr(String value) { + Greythr(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Gridly.java b/src/main/java/com/airbyte/api/models/shared/Gridly.java index cc8f87bcb..e3d4e742b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gridly.java +++ b/src/main/java/com/airbyte/api/models/shared/Gridly.java @@ -14,7 +14,7 @@ public enum Gridly { @JsonValue private final String value; - private Gridly(String value) { + Gridly(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/GroupBy.java b/src/main/java/com/airbyte/api/models/shared/GroupBy.java index 5893bc420..d5dd62f70 100644 --- a/src/main/java/com/airbyte/api/models/shared/GroupBy.java +++ b/src/main/java/com/airbyte/api/models/shared/GroupBy.java @@ -22,7 +22,7 @@ public enum GroupBy { @JsonValue private final String value; - private GroupBy(String value) { + GroupBy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Guru.java b/src/main/java/com/airbyte/api/models/shared/Guru.java index eb7c50952..188fb8dde 100644 --- a/src/main/java/com/airbyte/api/models/shared/Guru.java +++ b/src/main/java/com/airbyte/api/models/shared/Guru.java @@ -14,7 +14,7 @@ public enum Guru { @JsonValue private final String value; - private Guru(String value) { + Guru(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Gutendex.java b/src/main/java/com/airbyte/api/models/shared/Gutendex.java index 8b252ae05..870ceee81 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gutendex.java +++ b/src/main/java/com/airbyte/api/models/shared/Gutendex.java @@ -14,7 +14,7 @@ public enum Gutendex { @JsonValue private final String value; - private Gutendex(String value) { + Gutendex(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Gzip.java b/src/main/java/com/airbyte/api/models/shared/Gzip.java index 90d34597f..4b85c80db 100644 --- a/src/main/java/com/airbyte/api/models/shared/Gzip.java +++ b/src/main/java/com/airbyte/api/models/shared/Gzip.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Gzip { @JsonInclude(Include.NON_ABSENT) @@ -40,9 +40,10 @@ public Optional compressionType() { return (Optional) compressionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Gzip withCompressionType(DestinationGcsCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); @@ -50,13 +51,13 @@ public Gzip withCompressionType(DestinationGcsCompressionType compressionType) { return this; } + public Gzip withCompressionType(Optional compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = compressionType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,12 +68,12 @@ public boolean equals(java.lang.Object o) { } Gzip other = (Gzip) o; return - Objects.deepEquals(this.compressionType, other.compressionType); + Utils.enhancedDeepEquals(this.compressionType, other.compressionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( compressionType); } @@ -81,15 +82,17 @@ public String toString() { return Utils.toString(Gzip.class, "compressionType", compressionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional compressionType; - + private Builder() { // force use of static builder() method } + public Builder compressionType(DestinationGcsCompressionType compressionType) { Utils.checkNotNull(compressionType, "compressionType"); this.compressionType = Optional.ofNullable(compressionType); @@ -101,15 +104,17 @@ public Builder compressionType(Optional this.compressionType = compressionType; return this; } - + public Gzip build() { if (compressionType == null) { compressionType = _SINGLETON_VALUE_CompressionType.value(); } + return new Gzip( compressionType); } + private static final LazySingletonValue> _SINGLETON_VALUE_CompressionType = new LazySingletonValue<>( "compression_type", diff --git a/src/main/java/com/airbyte/api/models/shared/HMACKey.java b/src/main/java/com/airbyte/api/models/shared/HMACKey.java index 2017712e1..bb993037e 100644 --- a/src/main/java/com/airbyte/api/models/shared/HMACKey.java +++ b/src/main/java/com/airbyte/api/models/shared/HMACKey.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class HMACKey { @JsonInclude(Include.NON_ABSENT) @@ -24,13 +24,16 @@ public class HMACKey { private Optional credentialType; /** - * When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys#overview">here</a>. + * When linked to a service account, this ID is 61 characters long; when linked to a user account, it + * is 24 characters long. Read more here. */ @JsonProperty("hmac_key_access_id") private String hmacKeyAccessId; /** - * The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys#secrets">here</a>. + * The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more + * here. */ @JsonProperty("hmac_key_secret") private String hmacKeySecret; @@ -61,7 +64,9 @@ public Optional credentialType() { } /** - * When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys#overview">here</a>. + * When linked to a service account, this ID is 61 characters long; when linked to a user account, it + * is 24 characters long. Read more here. */ @JsonIgnore public String hmacKeyAccessId() { @@ -69,16 +74,18 @@ public String hmacKeyAccessId() { } /** - * The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys#secrets">here</a>. + * The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more + * here. */ @JsonIgnore public String hmacKeySecret() { return hmacKeySecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public HMACKey withCredentialType(CredentialType credentialType) { Utils.checkNotNull(credentialType, "credentialType"); @@ -86,6 +93,7 @@ public HMACKey withCredentialType(CredentialType credentialType) { return this; } + public HMACKey withCredentialType(Optional credentialType) { Utils.checkNotNull(credentialType, "credentialType"); this.credentialType = credentialType; @@ -93,7 +101,9 @@ public HMACKey withCredentialType(Optional credentialT } /** - * When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys#overview">here</a>. + * When linked to a service account, this ID is 61 characters long; when linked to a user account, it + * is 24 characters long. Read more here. */ public HMACKey withHmacKeyAccessId(String hmacKeyAccessId) { Utils.checkNotNull(hmacKeyAccessId, "hmacKeyAccessId"); @@ -102,7 +112,8 @@ public HMACKey withHmacKeyAccessId(String hmacKeyAccessId) { } /** - * The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys#secrets">here</a>. + * The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more + * here. */ public HMACKey withHmacKeySecret(String hmacKeySecret) { Utils.checkNotNull(hmacKeySecret, "hmacKeySecret"); @@ -110,7 +121,6 @@ public HMACKey withHmacKeySecret(String hmacKeySecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,17 +131,15 @@ public boolean equals(java.lang.Object o) { } HMACKey other = (HMACKey) o; return - Objects.deepEquals(this.credentialType, other.credentialType) && - Objects.deepEquals(this.hmacKeyAccessId, other.hmacKeyAccessId) && - Objects.deepEquals(this.hmacKeySecret, other.hmacKeySecret); + Utils.enhancedDeepEquals(this.credentialType, other.credentialType) && + Utils.enhancedDeepEquals(this.hmacKeyAccessId, other.hmacKeyAccessId) && + Utils.enhancedDeepEquals(this.hmacKeySecret, other.hmacKeySecret); } @Override public int hashCode() { - return Objects.hash( - credentialType, - hmacKeyAccessId, - hmacKeySecret); + return Utils.enhancedHash( + credentialType, hmacKeyAccessId, hmacKeySecret); } @Override @@ -141,19 +149,21 @@ public String toString() { "hmacKeyAccessId", hmacKeyAccessId, "hmacKeySecret", hmacKeySecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentialType; - + private String hmacKeyAccessId; - + private String hmacKeySecret; - + private Builder() { // force use of static builder() method } + public Builder credentialType(CredentialType credentialType) { Utils.checkNotNull(credentialType, "credentialType"); this.credentialType = Optional.ofNullable(credentialType); @@ -166,8 +176,11 @@ public Builder credentialType(Optional credentialType) return this; } + /** - * When linked to a service account, this ID is 61 characters long; when linked to a user account, it is 24 characters long. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys#overview">here</a>. + * When linked to a service account, this ID is 61 characters long; when linked to a user account, it + * is 24 characters long. Read more here. */ public Builder hmacKeyAccessId(String hmacKeyAccessId) { Utils.checkNotNull(hmacKeyAccessId, "hmacKeyAccessId"); @@ -175,25 +188,27 @@ public Builder hmacKeyAccessId(String hmacKeyAccessId) { return this; } + /** - * The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more <a href="https://cloud.google.com/storage/docs/authentication/hmackeys#secrets">here</a>. + * The corresponding secret for the access ID. It is a 40-character base-64 encoded string. Read more + * here. */ public Builder hmacKeySecret(String hmacKeySecret) { Utils.checkNotNull(hmacKeySecret, "hmacKeySecret"); this.hmacKeySecret = hmacKeySecret; return this; } - + public HMACKey build() { if (credentialType == null) { credentialType = _SINGLETON_VALUE_CredentialType.value(); } + return new HMACKey( - credentialType, - hmacKeyAccessId, - hmacKeySecret); + credentialType, hmacKeyAccessId, hmacKeySecret); } + private static final LazySingletonValue> _SINGLETON_VALUE_CredentialType = new LazySingletonValue<>( "credential_type", diff --git a/src/main/java/com/airbyte/api/models/shared/HTTPSPublicWeb.java b/src/main/java/com/airbyte/api/models/shared/HTTPSPublicWeb.java index a3d8c43d9..99148ac4b 100644 --- a/src/main/java/com/airbyte/api/models/shared/HTTPSPublicWeb.java +++ b/src/main/java/com/airbyte/api/models/shared/HTTPSPublicWeb.java @@ -14,9 +14,9 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class HTTPSPublicWeb { @JsonProperty("storage") @@ -54,9 +54,10 @@ public Optional userAgent() { return userAgent; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Add User-Agent to request @@ -67,6 +68,7 @@ public HTTPSPublicWeb withUserAgent(boolean userAgent) { return this; } + /** * Add User-Agent to request */ @@ -76,7 +78,6 @@ public HTTPSPublicWeb withUserAgent(Optional userAgent) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,15 +88,14 @@ public boolean equals(java.lang.Object o) { } HTTPSPublicWeb other = (HTTPSPublicWeb) o; return - Objects.deepEquals(this.storage, other.storage) && - Objects.deepEquals(this.userAgent, other.userAgent); + Utils.enhancedDeepEquals(this.storage, other.storage) && + Utils.enhancedDeepEquals(this.userAgent, other.userAgent); } @Override public int hashCode() { - return Objects.hash( - storage, - userAgent); + return Utils.enhancedHash( + storage, userAgent); } @Override @@ -104,15 +104,17 @@ public String toString() { "storage", storage, "userAgent", userAgent); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional userAgent; - + private Builder() { // force use of static builder() method } + /** * Add User-Agent to request */ @@ -130,15 +132,17 @@ public Builder userAgent(Optional userAgent) { this.userAgent = userAgent; return this; } - + public HTTPSPublicWeb build() { if (userAgent == null) { userAgent = _SINGLETON_VALUE_UserAgent.value(); } + return new HTTPSPublicWeb( userAgent); } + private static final LazySingletonValue _SINGLETON_VALUE_Storage = new LazySingletonValue<>( "storage", diff --git a/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java b/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java index 3f81b9de2..99bb15255 100644 --- a/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/HardcodedRecords.java @@ -14,7 +14,7 @@ public enum HardcodedRecords { @JsonValue private final String value; - private HardcodedRecords(String value) { + HardcodedRecords(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Harness.java b/src/main/java/com/airbyte/api/models/shared/Harness.java index 889125b3f..64090b972 100644 --- a/src/main/java/com/airbyte/api/models/shared/Harness.java +++ b/src/main/java/com/airbyte/api/models/shared/Harness.java @@ -14,7 +14,7 @@ public enum Harness { @JsonValue private final String value; - private Harness(String value) { + Harness(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Harvest.java b/src/main/java/com/airbyte/api/models/shared/Harvest.java index 22946b6b5..0224f9b48 100644 --- a/src/main/java/com/airbyte/api/models/shared/Harvest.java +++ b/src/main/java/com/airbyte/api/models/shared/Harvest.java @@ -14,7 +14,7 @@ public enum Harvest { @JsonValue private final String value; - private Harvest(String value) { + Harvest(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Hashing.java b/src/main/java/com/airbyte/api/models/shared/Hashing.java index ee674c71b..344396b74 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hashing.java +++ b/src/main/java/com/airbyte/api/models/shared/Hashing.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class Hashing { +public class Hashing { /** * The suffix to append to the field name after hashing. */ @@ -68,9 +67,10 @@ public String targetField() { return targetField; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The suffix to append to the field name after hashing. @@ -99,7 +99,6 @@ public Hashing withTargetField(String targetField) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } Hashing other = (Hashing) o; return - Objects.deepEquals(this.fieldNameSuffix, other.fieldNameSuffix) && - Objects.deepEquals(this.method, other.method) && - Objects.deepEquals(this.targetField, other.targetField); + Utils.enhancedDeepEquals(this.fieldNameSuffix, other.fieldNameSuffix) && + Utils.enhancedDeepEquals(this.method, other.method) && + Utils.enhancedDeepEquals(this.targetField, other.targetField); } @Override public int hashCode() { - return Objects.hash( - fieldNameSuffix, - method, - targetField); + return Utils.enhancedHash( + fieldNameSuffix, method, targetField); } @Override @@ -130,19 +127,21 @@ public String toString() { "method", method, "targetField", targetField); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fieldNameSuffix; - + private HashingMethod method; - + private String targetField; - + private Builder() { // force use of static builder() method } + /** * The suffix to append to the field name after hashing. */ @@ -152,6 +151,7 @@ public Builder fieldNameSuffix(String fieldNameSuffix) { return this; } + /** * The hashing algorithm to use. */ @@ -161,6 +161,7 @@ public Builder method(HashingMethod method) { return this; } + /** * The name of the field to be hashed. */ @@ -169,12 +170,12 @@ public Builder targetField(String targetField) { this.targetField = targetField; return this; } - + public Hashing build() { + return new Hashing( - fieldNameSuffix, - method, - targetField); + fieldNameSuffix, method, targetField); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/HashingMethod.java b/src/main/java/com/airbyte/api/models/shared/HashingMethod.java index 6756462eb..cfdb2d94e 100644 --- a/src/main/java/com/airbyte/api/models/shared/HashingMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/HashingMethod.java @@ -25,7 +25,7 @@ public enum HashingMethod { @JsonValue private final String value; - private HashingMethod(String value) { + HashingMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Header.java b/src/main/java/com/airbyte/api/models/shared/Header.java index eec9658a5..64d8bd22e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Header.java +++ b/src/main/java/com/airbyte/api/models/shared/Header.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class Header { @JsonProperty("header_key") private String headerKey; + @JsonProperty("value") private String value; @@ -39,9 +40,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Header withHeaderKey(String headerKey) { Utils.checkNotNull(headerKey, "headerKey"); @@ -55,7 +57,6 @@ public Header withValue(String value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } Header other = (Header) o; return - Objects.deepEquals(this.headerKey, other.headerKey) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.headerKey, other.headerKey) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - headerKey, - value); + return Utils.enhancedHash( + headerKey, value); } @Override @@ -83,33 +83,37 @@ public String toString() { "headerKey", headerKey, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String headerKey; - + private String value; - + private Builder() { // force use of static builder() method } + public Builder headerKey(String headerKey) { Utils.checkNotNull(headerKey, "headerKey"); this.headerKey = headerKey; return this; } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public Header build() { + return new Header( - headerKey, - value); + headerKey, value); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java index eeedf0ea8..d62793e0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/HeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum HeaderDefinitionType { @JsonValue private final String value; - private HeaderDefinitionType(String value) { + HeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Height.java b/src/main/java/com/airbyte/api/models/shared/Height.java index 39af7078b..52b90c5a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Height.java +++ b/src/main/java/com/airbyte/api/models/shared/Height.java @@ -14,7 +14,7 @@ public enum Height { @JsonValue private final String value; - private Height(String value) { + Height(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Hellobaton.java b/src/main/java/com/airbyte/api/models/shared/Hellobaton.java index fdc475127..eb911cbe9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hellobaton.java +++ b/src/main/java/com/airbyte/api/models/shared/Hellobaton.java @@ -14,7 +14,7 @@ public enum Hellobaton { @JsonValue private final String value; - private Hellobaton(String value) { + Hellobaton(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/HelpScout.java b/src/main/java/com/airbyte/api/models/shared/HelpScout.java index 2cf19df64..cd1ed40aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/HelpScout.java +++ b/src/main/java/com/airbyte/api/models/shared/HelpScout.java @@ -14,7 +14,7 @@ public enum HelpScout { @JsonValue private final String value; - private HelpScout(String value) { + HelpScout(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Hibob.java b/src/main/java/com/airbyte/api/models/shared/Hibob.java index 43cacffd6..c30140da2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hibob.java +++ b/src/main/java/com/airbyte/api/models/shared/Hibob.java @@ -14,7 +14,7 @@ public enum Hibob { @JsonValue private final String value; - private Hibob(String value) { + Hibob(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/HighLevel.java b/src/main/java/com/airbyte/api/models/shared/HighLevel.java index 12916831c..cc0aec777 100644 --- a/src/main/java/com/airbyte/api/models/shared/HighLevel.java +++ b/src/main/java/com/airbyte/api/models/shared/HighLevel.java @@ -14,7 +14,7 @@ public enum HighLevel { @JsonValue private final String value; - private HighLevel(String value) { + HighLevel(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Hoorayhr.java b/src/main/java/com/airbyte/api/models/shared/Hoorayhr.java index 45a6cd1a8..c79a5444e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hoorayhr.java +++ b/src/main/java/com/airbyte/api/models/shared/Hoorayhr.java @@ -14,7 +14,7 @@ public enum Hoorayhr { @JsonValue private final String value; - private Hoorayhr(String value) { + Hoorayhr(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Hubplanner.java b/src/main/java/com/airbyte/api/models/shared/Hubplanner.java index 5c478e154..1bc6cd141 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hubplanner.java +++ b/src/main/java/com/airbyte/api/models/shared/Hubplanner.java @@ -14,7 +14,7 @@ public enum Hubplanner { @JsonValue private final String value; - private Hubplanner(String value) { + Hubplanner(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Hubspot.java b/src/main/java/com/airbyte/api/models/shared/Hubspot.java index 2b177accb..b1d87e654 100644 --- a/src/main/java/com/airbyte/api/models/shared/Hubspot.java +++ b/src/main/java/com/airbyte/api/models/shared/Hubspot.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Hubspot { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Hubspot withCredentials(HubspotCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Hubspot withCredentials(HubspotCredentials credentials) { return this; } + public Hubspot withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Hubspot other = (Hubspot) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Hubspot.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(HubspotCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Hubspot build() { + return new Hubspot( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/HubspotCredentials.java b/src/main/java/com/airbyte/api/models/shared/HubspotCredentials.java index 3396dc490..2a858fbce 100644 --- a/src/main/java/com/airbyte/api/models/shared/HubspotCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/HubspotCredentials.java @@ -11,20 +11,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class HubspotCredentials { +public class HubspotCredentials { /** - * The Client ID of your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this ID. + * The Client ID of your HubSpot developer application. See the Hubspot docs if you + * need help finding this ID. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * The client secret for your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this secret. + * The client secret for your HubSpot developer application. See the Hubspot docs if you + * need help finding this secret. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") @@ -45,7 +48,9 @@ public HubspotCredentials() { } /** - * The Client ID of your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this ID. + * The Client ID of your HubSpot developer application. See the Hubspot docs if you + * need help finding this ID. */ @JsonIgnore public Optional clientId() { @@ -53,19 +58,24 @@ public Optional clientId() { } /** - * The client secret for your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this secret. + * The client secret for your HubSpot developer application. See the Hubspot docs if you + * need help finding this secret. */ @JsonIgnore public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Client ID of your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this ID. + * The Client ID of your HubSpot developer application. See the Hubspot docs if you + * need help finding this ID. */ public HubspotCredentials withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -73,8 +83,11 @@ public HubspotCredentials withClientId(String clientId) { return this; } + /** - * The Client ID of your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this ID. + * The Client ID of your HubSpot developer application. See the Hubspot docs if you + * need help finding this ID. */ public HubspotCredentials withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +96,9 @@ public HubspotCredentials withClientId(Optional clientId) { } /** - * The client secret for your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this secret. + * The client secret for your HubSpot developer application. See the Hubspot docs if you + * need help finding this secret. */ public HubspotCredentials withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -91,8 +106,11 @@ public HubspotCredentials withClientSecret(String clientSecret) { return this; } + /** - * The client secret for your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this secret. + * The client secret for your HubSpot developer application. See the Hubspot docs if you + * need help finding this secret. */ public HubspotCredentials withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -100,7 +118,6 @@ public HubspotCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +128,14 @@ public boolean equals(java.lang.Object o) { } HubspotCredentials other = (HubspotCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,19 +144,23 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The Client ID of your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this ID. + * The Client ID of your HubSpot developer application. See the Hubspot docs if you + * need help finding this ID. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -149,7 +169,9 @@ public Builder clientId(String clientId) { } /** - * The Client ID of your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this ID. + * The Client ID of your HubSpot developer application. See the Hubspot docs if you + * need help finding this ID. */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -157,8 +179,11 @@ public Builder clientId(Optional clientId) { return this; } + /** - * The client secret for your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this secret. + * The client secret for your HubSpot developer application. See the Hubspot docs if you + * need help finding this secret. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -167,18 +192,21 @@ public Builder clientSecret(String clientSecret) { } /** - * The client secret for your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this secret. + * The client secret for your HubSpot developer application. See the Hubspot docs if you + * need help finding this secret. */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public HubspotCredentials build() { + return new HubspotCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.java b/src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.java index 960e1aca6..1faac0be0 100644 --- a/src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.java +++ b/src/main/java/com/airbyte/api/models/shared/HuggingFaceDatasets.java @@ -14,7 +14,7 @@ public enum HuggingFaceDatasets { @JsonValue private final String value; - private HuggingFaceDatasets(String value) { + HuggingFaceDatasets(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Humanitix.java b/src/main/java/com/airbyte/api/models/shared/Humanitix.java index 12b8d72b0..e9f33298c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Humanitix.java +++ b/src/main/java/com/airbyte/api/models/shared/Humanitix.java @@ -14,7 +14,7 @@ public enum Humanitix { @JsonValue private final String value; - private Humanitix(String value) { + Humanitix(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Huntr.java b/src/main/java/com/airbyte/api/models/shared/Huntr.java index 3be9a6a98..3ec471a10 100644 --- a/src/main/java/com/airbyte/api/models/shared/Huntr.java +++ b/src/main/java/com/airbyte/api/models/shared/Huntr.java @@ -14,7 +14,7 @@ public enum Huntr { @JsonValue private final String value; - private Huntr(String value) { + Huntr(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/IAMRole.java b/src/main/java/com/airbyte/api/models/shared/IAMRole.java index 078fa4129..e73bc3d72 100644 --- a/src/main/java/com/airbyte/api/models/shared/IAMRole.java +++ b/src/main/java/com/airbyte/api/models/shared/IAMRole.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class IAMRole { +public class IAMRole { /** * Name of the credentials */ @@ -57,9 +56,10 @@ public String roleArn() { return roleArn; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Will assume this role to write data to s3 @@ -70,7 +70,6 @@ public IAMRole withRoleArn(String roleArn) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,15 +80,14 @@ public boolean equals(java.lang.Object o) { } IAMRole other = (IAMRole) o; return - Objects.deepEquals(this.credentialsTitle, other.credentialsTitle) && - Objects.deepEquals(this.roleArn, other.roleArn); + Utils.enhancedDeepEquals(this.credentialsTitle, other.credentialsTitle) && + Utils.enhancedDeepEquals(this.roleArn, other.roleArn); } @Override public int hashCode() { - return Objects.hash( - credentialsTitle, - roleArn); + return Utils.enhancedHash( + credentialsTitle, roleArn); } @Override @@ -98,15 +96,17 @@ public String toString() { "credentialsTitle", credentialsTitle, "roleArn", roleArn); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String roleArn; - + private Builder() { // force use of static builder() method } + /** * Will assume this role to write data to s3 */ @@ -115,12 +115,14 @@ public Builder roleArn(String roleArn) { this.roleArn = roleArn; return this; } - + public IAMRole build() { + return new IAMRole( roleArn); } + private static final LazySingletonValue> _SINGLETON_VALUE_CredentialsTitle = new LazySingletonValue<>( "credentials_title", diff --git a/src/main/java/com/airbyte/api/models/shared/IAMUser.java b/src/main/java/com/airbyte/api/models/shared/IAMUser.java index a3568a6a8..5b521f250 100644 --- a/src/main/java/com/airbyte/api/models/shared/IAMUser.java +++ b/src/main/java/com/airbyte/api/models/shared/IAMUser.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class IAMUser { +public class IAMUser { /** * AWS User Access Key Id */ @@ -74,9 +73,10 @@ public Optional credentialsTitle() { return (Optional) credentialsTitle; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * AWS User Access Key Id @@ -96,7 +96,6 @@ public IAMUser withAwsSecretAccessKey(String awsSecretAccessKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -107,17 +106,15 @@ public boolean equals(java.lang.Object o) { } IAMUser other = (IAMUser) o; return - Objects.deepEquals(this.awsAccessKeyId, other.awsAccessKeyId) && - Objects.deepEquals(this.awsSecretAccessKey, other.awsSecretAccessKey) && - Objects.deepEquals(this.credentialsTitle, other.credentialsTitle); + Utils.enhancedDeepEquals(this.awsAccessKeyId, other.awsAccessKeyId) && + Utils.enhancedDeepEquals(this.awsSecretAccessKey, other.awsSecretAccessKey) && + Utils.enhancedDeepEquals(this.credentialsTitle, other.credentialsTitle); } @Override public int hashCode() { - return Objects.hash( - awsAccessKeyId, - awsSecretAccessKey, - credentialsTitle); + return Utils.enhancedHash( + awsAccessKeyId, awsSecretAccessKey, credentialsTitle); } @Override @@ -127,17 +124,19 @@ public String toString() { "awsSecretAccessKey", awsSecretAccessKey, "credentialsTitle", credentialsTitle); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String awsAccessKeyId; - + private String awsSecretAccessKey; - + private Builder() { // force use of static builder() method } + /** * AWS User Access Key Id */ @@ -147,6 +146,7 @@ public Builder awsAccessKeyId(String awsAccessKeyId) { return this; } + /** * Secret Access Key */ @@ -155,13 +155,14 @@ public Builder awsSecretAccessKey(String awsSecretAccessKey) { this.awsSecretAccessKey = awsSecretAccessKey; return this; } - + public IAMUser build() { + return new IAMUser( - awsAccessKeyId, - awsSecretAccessKey); + awsAccessKeyId, awsSecretAccessKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_CredentialsTitle = new LazySingletonValue<>( "credentials_title", diff --git a/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java b/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java index 04a3a33fe..218ac2540 100644 --- a/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java +++ b/src/main/java/com/airbyte/api/models/shared/IlluminaBasespace.java @@ -14,7 +14,7 @@ public enum IlluminaBasespace { @JsonValue private final String value; - private IlluminaBasespace(String value) { + IlluminaBasespace(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Imagga.java b/src/main/java/com/airbyte/api/models/shared/Imagga.java index e459585ac..da0b5f341 100644 --- a/src/main/java/com/airbyte/api/models/shared/Imagga.java +++ b/src/main/java/com/airbyte/api/models/shared/Imagga.java @@ -14,7 +14,7 @@ public enum Imagga { @JsonValue private final String value; - private Imagga(String value) { + Imagga(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/In.java b/src/main/java/com/airbyte/api/models/shared/In.java index 43ea7054d..f00512be2 100644 --- a/src/main/java/com/airbyte/api/models/shared/In.java +++ b/src/main/java/com/airbyte/api/models/shared/In.java @@ -16,7 +16,7 @@ public enum In { @JsonValue private final String value; - private In(String value) { + In(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/InListFilter.java b/src/main/java/com/airbyte/api/models/shared/InListFilter.java index 7f10bbea9..6de3f6440 100644 --- a/src/main/java/com/airbyte/api/models/shared/InListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/InListFilter.java @@ -15,18 +15,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class InListFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiFilterName filterName; + @JsonProperty("values") private List values; @@ -61,9 +63,10 @@ public List values() { return values; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public InListFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -71,6 +74,7 @@ public InListFilter withCaseSensitive(boolean caseSensitive) { return this; } + public InListFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -83,7 +87,6 @@ public InListFilter withValues(List values) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,17 +97,15 @@ public boolean equals(java.lang.Object o) { } InListFilter other = (InListFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.values, other.values); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.values, other.values); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - values); + return Utils.enhancedHash( + caseSensitive, filterName, values); } @Override @@ -114,17 +115,19 @@ public String toString() { "filterName", filterName, "values", values); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private List values; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -137,18 +140,20 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder values(List values) { Utils.checkNotNull(values, "values"); this.values = values; return this; } - + public InListFilter build() { + return new InListFilter( - caseSensitive, - values); + caseSensitive, values); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/IncidentIo.java b/src/main/java/com/airbyte/api/models/shared/IncidentIo.java index 43197d070..d5df9d4c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/IncidentIo.java +++ b/src/main/java/com/airbyte/api/models/shared/IncidentIo.java @@ -14,7 +14,7 @@ public enum IncidentIo { @JsonValue private final String value; - private IncidentIo(String value) { + IncidentIo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Indexing.java b/src/main/java/com/airbyte/api/models/shared/Indexing.java index 0de81b2cf..2f48f0eda 100644 --- a/src/main/java/com/airbyte/api/models/shared/Indexing.java +++ b/src/main/java/com/airbyte/api/models/shared/Indexing.java @@ -9,35 +9,42 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * Indexing * - *

    Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG and Gen AI apps with fewer hallucinations in production. + *

    Astra DB gives developers the APIs, real-time data and ecosystem integrations to put accurate RAG + * and Gen AI apps with fewer hallucinations in production. */ public class Indexing { - /** - * The application token authorizes a user to connect to a specific Astra DB database. It is created when the user clicks the Generate Token button on the Overview tab of the Database page in the Astra UI. + * The application token authorizes a user to connect to a specific Astra DB database. It is created + * when the user clicks the Generate Token button on the Overview tab of the Database page in the Astra + * UI. */ @JsonProperty("astra_db_app_token") private String astraDbAppToken; /** - * The endpoint specifies which Astra DB database queries are sent to. It can be copied from the Database Details section of the Overview tab of the Database page in the Astra UI. + * The endpoint specifies which Astra DB database queries are sent to. It can be copied from the + * Database Details section of the Overview tab of the Database page in the Astra UI. */ @JsonProperty("astra_db_endpoint") private String astraDbEndpoint; /** - * Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created for you when you create a Vector Database in Astra DB. + * Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create + * a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created + * for you when you create a Vector Database in Astra DB. */ @JsonProperty("astra_db_keyspace") private String astraDbKeyspace; /** - * Collections hold data. They are analagous to tables in traditional Cassandra terminology. This tool will create the collection with the provided name automatically if it does not already exist. Alternatively, you can create one thorugh the Data Explorer tab in the Astra UI. + * Collections hold data. They are analagous to tables in traditional Cassandra terminology. This tool + * will create the collection with the provided name automatically if it does not already exist. + * + *

    Alternatively, you can create one thorugh the Data Explorer tab in the Astra UI. */ @JsonProperty("collection") private String collection; @@ -59,7 +66,9 @@ public Indexing( } /** - * The application token authorizes a user to connect to a specific Astra DB database. It is created when the user clicks the Generate Token button on the Overview tab of the Database page in the Astra UI. + * The application token authorizes a user to connect to a specific Astra DB database. It is created + * when the user clicks the Generate Token button on the Overview tab of the Database page in the Astra + * UI. */ @JsonIgnore public String astraDbAppToken() { @@ -67,7 +76,8 @@ public String astraDbAppToken() { } /** - * The endpoint specifies which Astra DB database queries are sent to. It can be copied from the Database Details section of the Overview tab of the Database page in the Astra UI. + * The endpoint specifies which Astra DB database queries are sent to. It can be copied from the + * Database Details section of the Overview tab of the Database page in the Astra UI. */ @JsonIgnore public String astraDbEndpoint() { @@ -75,7 +85,9 @@ public String astraDbEndpoint() { } /** - * Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created for you when you create a Vector Database in Astra DB. + * Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create + * a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created + * for you when you create a Vector Database in Astra DB. */ @JsonIgnore public String astraDbKeyspace() { @@ -83,19 +95,25 @@ public String astraDbKeyspace() { } /** - * Collections hold data. They are analagous to tables in traditional Cassandra terminology. This tool will create the collection with the provided name automatically if it does not already exist. Alternatively, you can create one thorugh the Data Explorer tab in the Astra UI. + * Collections hold data. They are analagous to tables in traditional Cassandra terminology. This tool + * will create the collection with the provided name automatically if it does not already exist. + * + *

    Alternatively, you can create one thorugh the Data Explorer tab in the Astra UI. */ @JsonIgnore public String collection() { return collection; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The application token authorizes a user to connect to a specific Astra DB database. It is created when the user clicks the Generate Token button on the Overview tab of the Database page in the Astra UI. + * The application token authorizes a user to connect to a specific Astra DB database. It is created + * when the user clicks the Generate Token button on the Overview tab of the Database page in the Astra + * UI. */ public Indexing withAstraDbAppToken(String astraDbAppToken) { Utils.checkNotNull(astraDbAppToken, "astraDbAppToken"); @@ -104,7 +122,8 @@ public Indexing withAstraDbAppToken(String astraDbAppToken) { } /** - * The endpoint specifies which Astra DB database queries are sent to. It can be copied from the Database Details section of the Overview tab of the Database page in the Astra UI. + * The endpoint specifies which Astra DB database queries are sent to. It can be copied from the + * Database Details section of the Overview tab of the Database page in the Astra UI. */ public Indexing withAstraDbEndpoint(String astraDbEndpoint) { Utils.checkNotNull(astraDbEndpoint, "astraDbEndpoint"); @@ -113,7 +132,9 @@ public Indexing withAstraDbEndpoint(String astraDbEndpoint) { } /** - * Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created for you when you create a Vector Database in Astra DB. + * Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create + * a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created + * for you when you create a Vector Database in Astra DB. */ public Indexing withAstraDbKeyspace(String astraDbKeyspace) { Utils.checkNotNull(astraDbKeyspace, "astraDbKeyspace"); @@ -122,7 +143,10 @@ public Indexing withAstraDbKeyspace(String astraDbKeyspace) { } /** - * Collections hold data. They are analagous to tables in traditional Cassandra terminology. This tool will create the collection with the provided name automatically if it does not already exist. Alternatively, you can create one thorugh the Data Explorer tab in the Astra UI. + * Collections hold data. They are analagous to tables in traditional Cassandra terminology. This tool + * will create the collection with the provided name automatically if it does not already exist. + * + *

    Alternatively, you can create one thorugh the Data Explorer tab in the Astra UI. */ public Indexing withCollection(String collection) { Utils.checkNotNull(collection, "collection"); @@ -130,7 +154,6 @@ public Indexing withCollection(String collection) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -141,18 +164,16 @@ public boolean equals(java.lang.Object o) { } Indexing other = (Indexing) o; return - Objects.deepEquals(this.astraDbAppToken, other.astraDbAppToken) && - Objects.deepEquals(this.astraDbEndpoint, other.astraDbEndpoint) && - Objects.deepEquals(this.astraDbKeyspace, other.astraDbKeyspace) && - Objects.deepEquals(this.collection, other.collection); + Utils.enhancedDeepEquals(this.astraDbAppToken, other.astraDbAppToken) && + Utils.enhancedDeepEquals(this.astraDbEndpoint, other.astraDbEndpoint) && + Utils.enhancedDeepEquals(this.astraDbKeyspace, other.astraDbKeyspace) && + Utils.enhancedDeepEquals(this.collection, other.collection); } @Override public int hashCode() { - return Objects.hash( - astraDbAppToken, - astraDbEndpoint, - astraDbKeyspace, + return Utils.enhancedHash( + astraDbAppToken, astraDbEndpoint, astraDbKeyspace, collection); } @@ -164,23 +185,27 @@ public String toString() { "astraDbKeyspace", astraDbKeyspace, "collection", collection); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String astraDbAppToken; - + private String astraDbEndpoint; - + private String astraDbKeyspace; - + private String collection; - + private Builder() { // force use of static builder() method } + /** - * The application token authorizes a user to connect to a specific Astra DB database. It is created when the user clicks the Generate Token button on the Overview tab of the Database page in the Astra UI. + * The application token authorizes a user to connect to a specific Astra DB database. It is created + * when the user clicks the Generate Token button on the Overview tab of the Database page in the Astra + * UI. */ public Builder astraDbAppToken(String astraDbAppToken) { Utils.checkNotNull(astraDbAppToken, "astraDbAppToken"); @@ -188,8 +213,10 @@ public Builder astraDbAppToken(String astraDbAppToken) { return this; } + /** - * The endpoint specifies which Astra DB database queries are sent to. It can be copied from the Database Details section of the Overview tab of the Database page in the Astra UI. + * The endpoint specifies which Astra DB database queries are sent to. It can be copied from the + * Database Details section of the Overview tab of the Database page in the Astra UI. */ public Builder astraDbEndpoint(String astraDbEndpoint) { Utils.checkNotNull(astraDbEndpoint, "astraDbEndpoint"); @@ -197,8 +224,11 @@ public Builder astraDbEndpoint(String astraDbEndpoint) { return this; } + /** - * Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created for you when you create a Vector Database in Astra DB. + * Keyspaces (or Namespaces) serve as containers for organizing data within a database. You can create + * a new keyspace uisng the Data Explorer tab in the Astra UI. The keyspace default_keyspace is created + * for you when you create a Vector Database in Astra DB. */ public Builder astraDbKeyspace(String astraDbKeyspace) { Utils.checkNotNull(astraDbKeyspace, "astraDbKeyspace"); @@ -206,21 +236,25 @@ public Builder astraDbKeyspace(String astraDbKeyspace) { return this; } + /** - * Collections hold data. They are analagous to tables in traditional Cassandra terminology. This tool will create the collection with the provided name automatically if it does not already exist. Alternatively, you can create one thorugh the Data Explorer tab in the Astra UI. + * Collections hold data. They are analagous to tables in traditional Cassandra terminology. This tool + * will create the collection with the provided name automatically if it does not already exist. + * + *

    Alternatively, you can create one thorugh the Data Explorer tab in the Astra UI. */ public Builder collection(String collection) { Utils.checkNotNull(collection, "collection"); this.collection = collection; return this; } - + public Indexing build() { + return new Indexing( - astraDbAppToken, - astraDbEndpoint, - astraDbKeyspace, + astraDbAppToken, astraDbEndpoint, astraDbKeyspace, collection); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java b/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java index 91b82fb86..1385b2061 100644 --- a/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java +++ b/src/main/java/com/airbyte/api/models/shared/Inflowinventory.java @@ -14,7 +14,7 @@ public enum Inflowinventory { @JsonValue private final String value; - private Inflowinventory(String value) { + Inflowinventory(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/InitiateOauthRequest.java b/src/main/java/com/airbyte/api/models/shared/InitiateOauthRequest.java index 4b2afdb0e..be423e272 100644 --- a/src/main/java/com/airbyte/api/models/shared/InitiateOauthRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/InitiateOauthRequest.java @@ -13,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -22,20 +21,22 @@ *

    POST body for initiating OAuth via the public API */ public class InitiateOauthRequest { - /** - * The values required to configure OAuth flows. The schema for this must match the `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. + * The values required to configure OAuth flows. The schema for this must match the + * `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("oAuthInputConfiguration") private Optional oAuthInputConfiguration; /** - * The URL to redirect the user to with the OAuth secret stored in the secret_id query string parameter after authentication is complete. + * The URL to redirect the user to with the OAuth secret stored in the secret_id query string parameter + * after authentication is complete. */ @JsonProperty("redirectUrl") private String redirectUrl; + @JsonProperty("sourceType") private OAuthActorNames sourceType; @@ -65,11 +66,13 @@ public InitiateOauthRequest( String redirectUrl, OAuthActorNames sourceType, String workspaceId) { - this(Optional.empty(), redirectUrl, sourceType, workspaceId); + this(Optional.empty(), redirectUrl, sourceType, + workspaceId); } /** - * The values required to configure OAuth flows. The schema for this must match the `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. + * The values required to configure OAuth flows. The schema for this must match the + * `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -78,7 +81,8 @@ public Optional oAuthInputConfiguration() { } /** - * The URL to redirect the user to with the OAuth secret stored in the secret_id query string parameter after authentication is complete. + * The URL to redirect the user to with the OAuth secret stored in the secret_id query string parameter + * after authentication is complete. */ @JsonIgnore public String redirectUrl() { @@ -98,12 +102,14 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The values required to configure OAuth flows. The schema for this must match the `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. + * The values required to configure OAuth flows. The schema for this must match the + * `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. */ public InitiateOauthRequest withOAuthInputConfiguration(Object oAuthInputConfiguration) { Utils.checkNotNull(oAuthInputConfiguration, "oAuthInputConfiguration"); @@ -111,8 +117,10 @@ public InitiateOauthRequest withOAuthInputConfiguration(Object oAuthInputConfigu return this; } + /** - * The values required to configure OAuth flows. The schema for this must match the `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. + * The values required to configure OAuth flows. The schema for this must match the + * `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. */ public InitiateOauthRequest withOAuthInputConfiguration(Optional oAuthInputConfiguration) { Utils.checkNotNull(oAuthInputConfiguration, "oAuthInputConfiguration"); @@ -121,7 +129,8 @@ public InitiateOauthRequest withOAuthInputConfiguration(Optional oAuthInputConfiguration = Optional.empty(); - + private String redirectUrl; - + private OAuthActorNames sourceType; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + /** - * The values required to configure OAuth flows. The schema for this must match the `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. + * The values required to configure OAuth flows. The schema for this must match the + * `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. */ public Builder oAuthInputConfiguration(Object oAuthInputConfiguration) { Utils.checkNotNull(oAuthInputConfiguration, "oAuthInputConfiguration"); @@ -203,7 +212,8 @@ public Builder oAuthInputConfiguration(Object oAuthInputConfiguration) { } /** - * The values required to configure OAuth flows. The schema for this must match the `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. + * The values required to configure OAuth flows. The schema for this must match the + * `OAuthConfigSpecification.oauthUserInputFromConnectorConfigSpecification` schema. */ public Builder oAuthInputConfiguration(Optional oAuthInputConfiguration) { Utils.checkNotNull(oAuthInputConfiguration, "oAuthInputConfiguration"); @@ -211,8 +221,10 @@ public Builder oAuthInputConfiguration(Optional oAuthInputConf return this; } + /** - * The URL to redirect the user to with the OAuth secret stored in the secret_id query string parameter after authentication is complete. + * The URL to redirect the user to with the OAuth secret stored in the secret_id query string parameter + * after authentication is complete. */ public Builder redirectUrl(String redirectUrl) { Utils.checkNotNull(redirectUrl, "redirectUrl"); @@ -220,12 +232,14 @@ public Builder redirectUrl(String redirectUrl) { return this; } + public Builder sourceType(OAuthActorNames sourceType) { Utils.checkNotNull(sourceType, "sourceType"); this.sourceType = sourceType; return this; } + /** * The workspace to create the secret and eventually the full source. */ @@ -234,13 +248,13 @@ public Builder workspaceId(String workspaceId) { this.workspaceId = workspaceId; return this; } - + public InitiateOauthRequest build() { + return new InitiateOauthRequest( - oAuthInputConfiguration, - redirectUrl, - sourceType, + oAuthInputConfiguration, redirectUrl, sourceType, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/InsertLoad.java b/src/main/java/com/airbyte/api/models/shared/InsertLoad.java index ec13f7503..20e8c700b 100644 --- a/src/main/java/com/airbyte/api/models/shared/InsertLoad.java +++ b/src/main/java/com/airbyte/api/models/shared/InsertLoad.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class InsertLoad { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("load_type") private Optional loadType; @@ -59,9 +59,10 @@ public Optional loadType() { return (Optional) loadType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public InsertLoad withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public InsertLoad withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public InsertLoad withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public InsertLoad withLoadType(DestinationMssqlSchemasLoadType loadType) { return this; } + public InsertLoad withLoadType(Optional loadType) { Utils.checkNotNull(loadType, "loadType"); this.loadType = loadType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } InsertLoad other = (InsertLoad) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.loadType, other.loadType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.loadType, other.loadType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - loadType); + return Utils.enhancedHash( + additionalProperties, loadType); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "loadType", loadType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional loadType; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder loadType(DestinationMssqlSchemasLoadType loadType) { Utils.checkNotNull(loadType, "loadType"); this.loadType = Optional.ofNullable(loadType); @@ -155,16 +156,18 @@ public Builder loadType(Optional load this.loadType = loadType; return this; } - + public InsertLoad build() { if (loadType == null) { loadType = _SINGLETON_VALUE_LoadType.value(); } + return new InsertLoad( loadType) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_LoadType = new LazySingletonValue<>( "load_type", diff --git a/src/main/java/com/airbyte/api/models/shared/InsightConfig.java b/src/main/java/com/airbyte/api/models/shared/InsightConfig.java index a0a76614f..deda15755 100644 --- a/src/main/java/com/airbyte/api/models/shared/InsightConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/InsightConfig.java @@ -17,7 +17,6 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -26,7 +25,6 @@ *

    Config for custom insights */ public class InsightConfig { - /** * A list of chosen action_breakdowns for action_breakdowns */ @@ -34,13 +32,6 @@ public class InsightConfig { @JsonProperty("action_breakdowns") private Optional> actionBreakdowns; - /** - * Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("action_report_time") - private Optional actionReportTime; - /** * A list of chosen breakdowns for breakdowns */ @@ -49,7 +40,9 @@ public class InsightConfig { private Optional> breakdowns; /** - * The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. + * The date until which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be + * replicated. Not setting this option will result in always syncing the latest data. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") @@ -90,14 +83,21 @@ public class InsightConfig { private String name; /** - * The date from which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. + * The date from which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, + * where N is the number of days you specified. For example, if you set this value to 7, then all + * statistics will be reported as 7-day aggregates by starting from the start_date. + * + *

    If the start and end dates are October 1st and October 30th, then the connector will output 5 + * records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value + * for this field is 1, and the maximum is 89. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("time_increment") @@ -106,7 +106,6 @@ public class InsightConfig { @JsonCreator public InsightConfig( @JsonProperty("action_breakdowns") Optional> actionBreakdowns, - @JsonProperty("action_report_time") Optional actionReportTime, @JsonProperty("breakdowns") Optional> breakdowns, @JsonProperty("end_date") Optional endDate, @JsonProperty("fields") Optional> fields, @@ -117,7 +116,6 @@ public InsightConfig( @JsonProperty("start_date") Optional startDate, @JsonProperty("time_increment") Optional timeIncrement) { Utils.checkNotNull(actionBreakdowns, "actionBreakdowns"); - Utils.checkNotNull(actionReportTime, "actionReportTime"); Utils.checkNotNull(breakdowns, "breakdowns"); Utils.checkNotNull(endDate, "endDate"); Utils.checkNotNull(fields, "fields"); @@ -128,7 +126,6 @@ public InsightConfig( Utils.checkNotNull(startDate, "startDate"); Utils.checkNotNull(timeIncrement, "timeIncrement"); this.actionBreakdowns = actionBreakdowns; - this.actionReportTime = actionReportTime; this.breakdowns = breakdowns; this.endDate = endDate; this.fields = fields; @@ -142,7 +139,10 @@ public InsightConfig( public InsightConfig( String name) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty()); } /** @@ -154,15 +154,6 @@ public Optional> actionBreakdowns() { return (Optional>) actionBreakdowns; } - /** - * Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional actionReportTime() { - return (Optional) actionReportTime; - } - /** * A list of chosen breakdowns for breakdowns */ @@ -173,7 +164,9 @@ public Optional> breakdowns() { } /** - * The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. + * The date until which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be + * replicated. Not setting this option will result in always syncing the latest data. */ @JsonIgnore public Optional endDate() { @@ -223,7 +216,8 @@ public String name() { } /** - * The date from which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. + * The date from which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. */ @JsonIgnore public Optional startDate() { @@ -231,16 +225,23 @@ public Optional startDate() { } /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, + * where N is the number of days you specified. For example, if you set this value to 7, then all + * statistics will be reported as 7-day aggregates by starting from the start_date. + * + *

    If the start and end dates are October 1st and October 30th, then the connector will output 5 + * records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value + * for this field is 1, and the maximum is 89. */ @JsonIgnore public Optional timeIncrement() { return timeIncrement; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * A list of chosen action_breakdowns for action_breakdowns @@ -251,6 +252,7 @@ public InsightConfig withActionBreakdowns(List actionBrea return this; } + /** * A list of chosen action_breakdowns for action_breakdowns */ @@ -260,24 +262,6 @@ public InsightConfig withActionBreakdowns(Optional actionReportTime) { - Utils.checkNotNull(actionReportTime, "actionReportTime"); - this.actionReportTime = actionReportTime; - return this; - } - /** * A list of chosen breakdowns for breakdowns */ @@ -287,6 +271,7 @@ public InsightConfig withBreakdowns(List breakdowns) { return this; } + /** * A list of chosen breakdowns for breakdowns */ @@ -297,7 +282,9 @@ public InsightConfig withBreakdowns(Optional> br } /** - * The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. + * The date until which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be + * replicated. Not setting this option will result in always syncing the latest data. */ public InsightConfig withEndDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -305,8 +292,11 @@ public InsightConfig withEndDate(OffsetDateTime endDate) { return this; } + /** - * The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. + * The date until which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be + * replicated. Not setting this option will result in always syncing the latest data. */ public InsightConfig withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -323,6 +313,7 @@ public InsightConfig withFields(List fields) return this; } + /** * A list of chosen fields for fields parameter */ @@ -341,6 +332,7 @@ public InsightConfig withInsightsJobTimeout(long insightsJobTimeout) { return this; } + /** * The insights job timeout */ @@ -359,6 +351,7 @@ public InsightConfig withInsightsLookbackWindow(long insightsLookbackWindow) { return this; } + /** * The attribution window */ @@ -377,6 +370,7 @@ public InsightConfig withLevel(Level level) { return this; } + /** * Chosen level for API */ @@ -396,7 +390,8 @@ public InsightConfig withName(String name) { } /** - * The date from which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. + * The date from which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. */ public InsightConfig withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -404,8 +399,10 @@ public InsightConfig withStartDate(OffsetDateTime startDate) { return this; } + /** - * The date from which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. + * The date from which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. */ public InsightConfig withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -414,7 +411,13 @@ public InsightConfig withStartDate(Optional startDate) { } /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, + * where N is the number of days you specified. For example, if you set this value to 7, then all + * statistics will be reported as 7-day aggregates by starting from the start_date. + * + *

    If the start and end dates are October 1st and October 30th, then the connector will output 5 + * records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value + * for this field is 1, and the maximum is 89. */ public InsightConfig withTimeIncrement(long timeIncrement) { Utils.checkNotNull(timeIncrement, "timeIncrement"); @@ -422,8 +425,15 @@ public InsightConfig withTimeIncrement(long timeIncrement) { return this; } + /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, + * where N is the number of days you specified. For example, if you set this value to 7, then all + * statistics will be reported as 7-day aggregates by starting from the start_date. + * + *

    If the start and end dates are October 1st and October 30th, then the connector will output 5 + * records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value + * for this field is 1, and the maximum is 89. */ public InsightConfig withTimeIncrement(Optional timeIncrement) { Utils.checkNotNull(timeIncrement, "timeIncrement"); @@ -431,7 +441,6 @@ public InsightConfig withTimeIncrement(Optional timeIncrement) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -442,32 +451,24 @@ public boolean equals(java.lang.Object o) { } InsightConfig other = (InsightConfig) o; return - Objects.deepEquals(this.actionBreakdowns, other.actionBreakdowns) && - Objects.deepEquals(this.actionReportTime, other.actionReportTime) && - Objects.deepEquals(this.breakdowns, other.breakdowns) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.fields, other.fields) && - Objects.deepEquals(this.insightsJobTimeout, other.insightsJobTimeout) && - Objects.deepEquals(this.insightsLookbackWindow, other.insightsLookbackWindow) && - Objects.deepEquals(this.level, other.level) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.timeIncrement, other.timeIncrement); + Utils.enhancedDeepEquals(this.actionBreakdowns, other.actionBreakdowns) && + Utils.enhancedDeepEquals(this.breakdowns, other.breakdowns) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.fields, other.fields) && + Utils.enhancedDeepEquals(this.insightsJobTimeout, other.insightsJobTimeout) && + Utils.enhancedDeepEquals(this.insightsLookbackWindow, other.insightsLookbackWindow) && + Utils.enhancedDeepEquals(this.level, other.level) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.timeIncrement, other.timeIncrement); } @Override public int hashCode() { - return Objects.hash( - actionBreakdowns, - actionReportTime, - breakdowns, - endDate, - fields, - insightsJobTimeout, - insightsLookbackWindow, - level, - name, - startDate, + return Utils.enhancedHash( + actionBreakdowns, breakdowns, endDate, + fields, insightsJobTimeout, insightsLookbackWindow, + level, name, startDate, timeIncrement); } @@ -475,7 +476,6 @@ public int hashCode() { public String toString() { return Utils.toString(InsightConfig.class, "actionBreakdowns", actionBreakdowns, - "actionReportTime", actionReportTime, "breakdowns", breakdowns, "endDate", endDate, "fields", fields, @@ -486,35 +486,35 @@ public String toString() { "startDate", startDate, "timeIncrement", timeIncrement); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> actionBreakdowns = Optional.empty(); - - private Optional actionReportTime; - + private Optional> breakdowns = Optional.empty(); - + private Optional endDate = Optional.empty(); - + private Optional> fields = Optional.empty(); - + private Optional insightsJobTimeout; - + private Optional insightsLookbackWindow; - + private Optional level; - + private String name; - + private Optional startDate = Optional.empty(); - + private Optional timeIncrement; - + private Builder() { // force use of static builder() method } + /** * A list of chosen action_breakdowns for action_breakdowns */ @@ -533,23 +533,6 @@ public Builder actionBreakdowns(Optional> return this; } - /** - * Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd. - */ - public Builder actionReportTime(SourceFacebookMarketingActionReportTime actionReportTime) { - Utils.checkNotNull(actionReportTime, "actionReportTime"); - this.actionReportTime = Optional.ofNullable(actionReportTime); - return this; - } - - /** - * Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd. - */ - public Builder actionReportTime(Optional actionReportTime) { - Utils.checkNotNull(actionReportTime, "actionReportTime"); - this.actionReportTime = actionReportTime; - return this; - } /** * A list of chosen breakdowns for breakdowns @@ -569,8 +552,11 @@ public Builder breakdowns(Optional> breakdowns) return this; } + /** - * The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. + * The date until which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be + * replicated. Not setting this option will result in always syncing the latest data. */ public Builder endDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -579,7 +565,9 @@ public Builder endDate(OffsetDateTime endDate) { } /** - * The date until which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. + * The date until which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be + * replicated. Not setting this option will result in always syncing the latest data. */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -587,6 +575,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * A list of chosen fields for fields parameter */ @@ -605,6 +594,7 @@ public Builder fields(Optional return this; } + /** * The insights job timeout */ @@ -623,6 +613,7 @@ public Builder insightsJobTimeout(Optional insightsJobTimeout) { return this; } + /** * The attribution window */ @@ -641,6 +632,7 @@ public Builder insightsLookbackWindow(Optional insightsLookbackWindow) { return this; } + /** * Chosen level for API */ @@ -659,6 +651,7 @@ public Builder level(Optional level) { return this; } + /** * The name value of insight */ @@ -668,8 +661,10 @@ public Builder name(String name) { return this; } + /** - * The date from which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. + * The date from which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -678,7 +673,8 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date from which you'd like to replicate data for this stream, in the format YYYY-MM-DDT00:00:00Z. + * The date from which you'd like to replicate data for this stream, in the format + * YYYY-MM-DDT00:00:00Z. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -686,8 +682,15 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, + * where N is the number of days you specified. For example, if you set this value to 7, then all + * statistics will be reported as 7-day aggregates by starting from the start_date. + * + *

    If the start and end dates are October 1st and October 30th, then the connector will output 5 + * records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value + * for this field is 1, and the maximum is 89. */ public Builder timeIncrement(long timeIncrement) { Utils.checkNotNull(timeIncrement, "timeIncrement"); @@ -696,18 +699,21 @@ public Builder timeIncrement(long timeIncrement) { } /** - * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, where N is the number of days you specified. For example, if you set this value to 7, then all statistics will be reported as 7-day aggregates by starting from the start_date. If the start and end dates are October 1st and October 30th, then the connector will output 5 records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value for this field is 1, and the maximum is 89. + * Time window in days by which to aggregate statistics. The sync will be chunked into N day intervals, + * where N is the number of days you specified. For example, if you set this value to 7, then all + * statistics will be reported as 7-day aggregates by starting from the start_date. + * + *

    If the start and end dates are October 1st and October 30th, then the connector will output 5 + * records: 01 - 06, 07 - 13, 14 - 20, 21 - 27, and 28 - 30 (3 days only). The minimum allowed value + * for this field is 1, and the maximum is 89. */ public Builder timeIncrement(Optional timeIncrement) { Utils.checkNotNull(timeIncrement, "timeIncrement"); this.timeIncrement = timeIncrement; return this; } - + public InsightConfig build() { - if (actionReportTime == null) { - actionReportTime = _SINGLETON_VALUE_ActionReportTime.value(); - } if (insightsJobTimeout == null) { insightsJobTimeout = _SINGLETON_VALUE_InsightsJobTimeout.value(); } @@ -720,25 +726,14 @@ public InsightConfig build() { if (timeIncrement == null) { timeIncrement = _SINGLETON_VALUE_TimeIncrement.value(); } + return new InsightConfig( - actionBreakdowns, - actionReportTime, - breakdowns, - endDate, - fields, - insightsJobTimeout, - insightsLookbackWindow, - level, - name, - startDate, + actionBreakdowns, breakdowns, endDate, + fields, insightsJobTimeout, insightsLookbackWindow, + level, name, startDate, timeIncrement); } - private static final LazySingletonValue> _SINGLETON_VALUE_ActionReportTime = - new LazySingletonValue<>( - "action_report_time", - "\"mixed\"", - new TypeReference>() {}); private static final LazySingletonValue> _SINGLETON_VALUE_InsightsJobTimeout = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/Insightful.java b/src/main/java/com/airbyte/api/models/shared/Insightful.java index 03b599b99..e10ff75a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Insightful.java +++ b/src/main/java/com/airbyte/api/models/shared/Insightful.java @@ -14,7 +14,7 @@ public enum Insightful { @JsonValue private final String value; - private Insightful(String value) { + Insightful(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Insightly.java b/src/main/java/com/airbyte/api/models/shared/Insightly.java index 5b3402487..93b92300f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Insightly.java +++ b/src/main/java/com/airbyte/api/models/shared/Insightly.java @@ -14,7 +14,7 @@ public enum Insightly { @JsonValue private final String value; - private Insightly(String value) { + Insightly(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Instagram.java b/src/main/java/com/airbyte/api/models/shared/Instagram.java index 312571ed7..e1d2927b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Instagram.java +++ b/src/main/java/com/airbyte/api/models/shared/Instagram.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class Instagram { +public class Instagram { /** * The Client ID for your Oauth application */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID for your Oauth application @@ -73,6 +73,7 @@ public Instagram withClientId(String clientId) { return this; } + /** * The Client ID for your Oauth application */ @@ -91,6 +92,7 @@ public Instagram withClientSecret(String clientSecret) { return this; } + /** * The Client Secret for your Oauth application */ @@ -100,7 +102,6 @@ public Instagram withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } Instagram other = (Instagram) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID for your Oauth application */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret for your Oauth application */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public Instagram build() { + return new Instagram( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Instance.java b/src/main/java/com/airbyte/api/models/shared/Instance.java index 349449d38..49d4dec7f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Instance.java +++ b/src/main/java/com/airbyte/api/models/shared/Instance.java @@ -14,7 +14,7 @@ public enum Instance { @JsonValue private final String value; - private Instance(String value) { + Instance(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Instatus.java b/src/main/java/com/airbyte/api/models/shared/Instatus.java index 00c121fdc..3af3a58f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Instatus.java +++ b/src/main/java/com/airbyte/api/models/shared/Instatus.java @@ -14,7 +14,7 @@ public enum Instatus { @JsonValue private final String value; - private Instatus(String value) { + Instatus(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Int64Value.java b/src/main/java/com/airbyte/api/models/shared/Int64Value.java index 2be3b1bf4..d81e5f572 100644 --- a/src/main/java/com/airbyte/api/models/shared/Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/Int64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class Int64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private ValueType valueType; @@ -39,9 +40,10 @@ public ValueType valueType() { return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Int64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public Int64Value withValue(String value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } Int64Value other = (Int64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public Int64Value build() { + return new Int64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Intercom.java b/src/main/java/com/airbyte/api/models/shared/Intercom.java index 72236b6ff..ff20e1bb7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Intercom.java +++ b/src/main/java/com/airbyte/api/models/shared/Intercom.java @@ -14,7 +14,7 @@ public enum Intercom { @JsonValue private final String value; - private Intercom(String value) { + Intercom(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Interval.java b/src/main/java/com/airbyte/api/models/shared/Interval.java index 7272d36e1..47bab8b37 100644 --- a/src/main/java/com/airbyte/api/models/shared/Interval.java +++ b/src/main/java/com/airbyte/api/models/shared/Interval.java @@ -23,7 +23,7 @@ public enum Interval { @JsonValue private final String value; - private Interval(String value) { + Interval(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Intruder.java b/src/main/java/com/airbyte/api/models/shared/Intruder.java index b97025d82..55fe9d5fc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Intruder.java +++ b/src/main/java/com/airbyte/api/models/shared/Intruder.java @@ -14,7 +14,7 @@ public enum Intruder { @JsonValue private final String value; - private Intruder(String value) { + Intruder(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java index 53a949ea5..63e54c88a 100644 --- a/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/InvalidCDCPositionBehaviorAdvanced.java @@ -11,7 +11,10 @@ /** * InvalidCDCPositionBehaviorAdvanced * - *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public enum InvalidCDCPositionBehaviorAdvanced { FAIL_SYNC("Fail sync"), @@ -20,7 +23,7 @@ public enum InvalidCDCPositionBehaviorAdvanced { @JsonValue private final String value; - private InvalidCDCPositionBehaviorAdvanced(String value) { + InvalidCDCPositionBehaviorAdvanced(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Invoiced.java b/src/main/java/com/airbyte/api/models/shared/Invoiced.java index 087609082..45f5b0580 100644 --- a/src/main/java/com/airbyte/api/models/shared/Invoiced.java +++ b/src/main/java/com/airbyte/api/models/shared/Invoiced.java @@ -14,7 +14,7 @@ public enum Invoiced { @JsonValue private final String value; - private Invoiced(String value) { + Invoiced(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Invoiceninja.java b/src/main/java/com/airbyte/api/models/shared/Invoiceninja.java index 60ad74fb9..1f9db31be 100644 --- a/src/main/java/com/airbyte/api/models/shared/Invoiceninja.java +++ b/src/main/java/com/airbyte/api/models/shared/Invoiceninja.java @@ -14,7 +14,7 @@ public enum Invoiceninja { @JsonValue private final String value; - private Invoiceninja(String value) { + Invoiceninja(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Ip2whois.java b/src/main/java/com/airbyte/api/models/shared/Ip2whois.java index d0f9c44b8..3acbb6f0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ip2whois.java +++ b/src/main/java/com/airbyte/api/models/shared/Ip2whois.java @@ -14,7 +14,7 @@ public enum Ip2whois { @JsonValue private final String value; - private Ip2whois(String value) { + Ip2whois(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Iterable.java b/src/main/java/com/airbyte/api/models/shared/Iterable.java index 78a1ac3df..d50d06bce 100644 --- a/src/main/java/com/airbyte/api/models/shared/Iterable.java +++ b/src/main/java/com/airbyte/api/models/shared/Iterable.java @@ -14,7 +14,7 @@ public enum Iterable { @JsonValue private final String value; - private Iterable(String value) { + Iterable(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/JSONLinesNewlineDelimitedJSON.java b/src/main/java/com/airbyte/api/models/shared/JSONLinesNewlineDelimitedJSON.java index 9ea280617..823ae9754 100644 --- a/src/main/java/com/airbyte/api/models/shared/JSONLinesNewlineDelimitedJSON.java +++ b/src/main/java/com/airbyte/api/models/shared/JSONLinesNewlineDelimitedJSON.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class JSONLinesNewlineDelimitedJSON { +public class JSONLinesNewlineDelimitedJSON { /** * The compression algorithm used to compress data. */ @@ -26,6 +25,7 @@ public class JSONLinesNewlineDelimitedJSON { @JsonProperty("compression_codec") private Optional compressionCodec; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; @@ -59,9 +59,10 @@ public Optional formatType() { return (Optional) formatType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The compression algorithm used to compress data. @@ -72,6 +73,7 @@ public JSONLinesNewlineDelimitedJSON withCompressionCodec(CompressionCodecOption return this; } + /** * The compression algorithm used to compress data. */ @@ -87,13 +89,13 @@ public JSONLinesNewlineDelimitedJSON withFormatType(FormatTypeWildcard formatTyp return this; } + public JSONLinesNewlineDelimitedJSON withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,15 +106,14 @@ public boolean equals(java.lang.Object o) { } JSONLinesNewlineDelimitedJSON other = (JSONLinesNewlineDelimitedJSON) o; return - Objects.deepEquals(this.compressionCodec, other.compressionCodec) && - Objects.deepEquals(this.formatType, other.formatType); + Utils.enhancedDeepEquals(this.compressionCodec, other.compressionCodec) && + Utils.enhancedDeepEquals(this.formatType, other.formatType); } @Override public int hashCode() { - return Objects.hash( - compressionCodec, - formatType); + return Utils.enhancedHash( + compressionCodec, formatType); } @Override @@ -121,17 +122,19 @@ public String toString() { "compressionCodec", compressionCodec, "formatType", formatType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional compressionCodec; - + private Optional formatType; - + private Builder() { // force use of static builder() method } + /** * The compression algorithm used to compress data. */ @@ -150,6 +153,7 @@ public Builder compressionCodec(Optional com return this; } + public Builder formatType(FormatTypeWildcard formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = Optional.ofNullable(formatType); @@ -161,7 +165,7 @@ public Builder formatType(Optional formatType) { this.formatType = formatType; return this; } - + public JSONLinesNewlineDelimitedJSON build() { if (compressionCodec == null) { compressionCodec = _SINGLETON_VALUE_CompressionCodec.value(); @@ -169,11 +173,12 @@ public JSONLinesNewlineDelimitedJSON build() { if (formatType == null) { formatType = _SINGLETON_VALUE_FormatType.value(); } + return new JSONLinesNewlineDelimitedJSON( - compressionCodec, - formatType); + compressionCodec, formatType); } + private static final LazySingletonValue> _SINGLETON_VALUE_CompressionCodec = new LazySingletonValue<>( "compression_codec", diff --git a/src/main/java/com/airbyte/api/models/shared/JamfPro.java b/src/main/java/com/airbyte/api/models/shared/JamfPro.java index 5ffb118df..6853029ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/JamfPro.java +++ b/src/main/java/com/airbyte/api/models/shared/JamfPro.java @@ -14,7 +14,7 @@ public enum JamfPro { @JsonValue private final String value; - private JamfPro(String value) { + JamfPro(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Jira.java b/src/main/java/com/airbyte/api/models/shared/Jira.java index ebccf7467..8165f397e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Jira.java +++ b/src/main/java/com/airbyte/api/models/shared/Jira.java @@ -14,7 +14,7 @@ public enum Jira { @JsonValue private final String value; - private Jira(String value) { + Jira(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/JobCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/JobCreateRequest.java index 60ed61caa..6a82cefd3 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/JobCreateRequest.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * JobCreateRequest @@ -50,9 +49,10 @@ public JobTypeEnum jobType() { return jobType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public JobCreateRequest withConnectionId(String connectionId) { Utils.checkNotNull(connectionId, "connectionId"); @@ -69,7 +69,6 @@ public JobCreateRequest withJobType(JobTypeEnum jobType) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +79,14 @@ public boolean equals(java.lang.Object o) { } JobCreateRequest other = (JobCreateRequest) o; return - Objects.deepEquals(this.connectionId, other.connectionId) && - Objects.deepEquals(this.jobType, other.jobType); + Utils.enhancedDeepEquals(this.connectionId, other.connectionId) && + Utils.enhancedDeepEquals(this.jobType, other.jobType); } @Override public int hashCode() { - return Objects.hash( - connectionId, - jobType); + return Utils.enhancedHash( + connectionId, jobType); } @Override @@ -97,23 +95,26 @@ public String toString() { "connectionId", connectionId, "jobType", jobType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String connectionId; - + private JobTypeEnum jobType; - + private Builder() { // force use of static builder() method } + public Builder connectionId(String connectionId) { Utils.checkNotNull(connectionId, "connectionId"); this.connectionId = connectionId; return this; } + /** * Enum that describes the different types of jobs that the platform runs. */ @@ -122,11 +123,12 @@ public Builder jobType(JobTypeEnum jobType) { this.jobType = jobType; return this; } - + public JobCreateRequest build() { + return new JobCreateRequest( - connectionId, - jobType); + connectionId, jobType); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/JobResponse.java b/src/main/java/com/airbyte/api/models/shared/JobResponse.java index 03cee8eb0..3ad396285 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/JobResponse.java @@ -12,7 +12,6 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -26,6 +25,7 @@ public class JobResponse { @JsonProperty("bytesSynced") private Optional bytesSynced; + @JsonProperty("connectionId") private String connectionId; @@ -36,6 +36,7 @@ public class JobResponse { @JsonProperty("duration") private Optional duration; + @JsonProperty("jobId") private long jobId; @@ -45,17 +46,21 @@ public class JobResponse { @JsonProperty("jobType") private JobTypeEnum jobType; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("lastUpdatedAt") private Optional lastUpdatedAt; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("rowsSynced") private Optional rowsSynced; + @JsonProperty("startTime") private String startTime; + @JsonProperty("status") private JobStatusEnum status; @@ -96,7 +101,9 @@ public JobResponse( JobTypeEnum jobType, String startTime, JobStatusEnum status) { - this(Optional.empty(), connectionId, Optional.empty(), jobId, jobType, Optional.empty(), Optional.empty(), startTime, status); + this(Optional.empty(), connectionId, Optional.empty(), + jobId, jobType, Optional.empty(), + Optional.empty(), startTime, status); } @JsonIgnore @@ -150,9 +157,10 @@ public JobStatusEnum status() { return status; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public JobResponse withBytesSynced(long bytesSynced) { Utils.checkNotNull(bytesSynced, "bytesSynced"); @@ -160,6 +168,7 @@ public JobResponse withBytesSynced(long bytesSynced) { return this; } + public JobResponse withBytesSynced(Optional bytesSynced) { Utils.checkNotNull(bytesSynced, "bytesSynced"); this.bytesSynced = bytesSynced; @@ -181,6 +190,7 @@ public JobResponse withDuration(String duration) { return this; } + /** * Duration of a sync in ISO_8601 format */ @@ -211,6 +221,7 @@ public JobResponse withLastUpdatedAt(String lastUpdatedAt) { return this; } + public JobResponse withLastUpdatedAt(Optional lastUpdatedAt) { Utils.checkNotNull(lastUpdatedAt, "lastUpdatedAt"); this.lastUpdatedAt = lastUpdatedAt; @@ -223,6 +234,7 @@ public JobResponse withRowsSynced(long rowsSynced) { return this; } + public JobResponse withRowsSynced(Optional rowsSynced) { Utils.checkNotNull(rowsSynced, "rowsSynced"); this.rowsSynced = rowsSynced; @@ -241,7 +253,6 @@ public JobResponse withStatus(JobStatusEnum status) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -252,29 +263,23 @@ public boolean equals(java.lang.Object o) { } JobResponse other = (JobResponse) o; return - Objects.deepEquals(this.bytesSynced, other.bytesSynced) && - Objects.deepEquals(this.connectionId, other.connectionId) && - Objects.deepEquals(this.duration, other.duration) && - Objects.deepEquals(this.jobId, other.jobId) && - Objects.deepEquals(this.jobType, other.jobType) && - Objects.deepEquals(this.lastUpdatedAt, other.lastUpdatedAt) && - Objects.deepEquals(this.rowsSynced, other.rowsSynced) && - Objects.deepEquals(this.startTime, other.startTime) && - Objects.deepEquals(this.status, other.status); + Utils.enhancedDeepEquals(this.bytesSynced, other.bytesSynced) && + Utils.enhancedDeepEquals(this.connectionId, other.connectionId) && + Utils.enhancedDeepEquals(this.duration, other.duration) && + Utils.enhancedDeepEquals(this.jobId, other.jobId) && + Utils.enhancedDeepEquals(this.jobType, other.jobType) && + Utils.enhancedDeepEquals(this.lastUpdatedAt, other.lastUpdatedAt) && + Utils.enhancedDeepEquals(this.rowsSynced, other.rowsSynced) && + Utils.enhancedDeepEquals(this.startTime, other.startTime) && + Utils.enhancedDeepEquals(this.status, other.status); } @Override public int hashCode() { - return Objects.hash( - bytesSynced, - connectionId, - duration, - jobId, - jobType, - lastUpdatedAt, - rowsSynced, - startTime, - status); + return Utils.enhancedHash( + bytesSynced, connectionId, duration, + jobId, jobType, lastUpdatedAt, + rowsSynced, startTime, status); } @Override @@ -290,31 +295,33 @@ public String toString() { "startTime", startTime, "status", status); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional bytesSynced = Optional.empty(); - + private String connectionId; - + private Optional duration = Optional.empty(); - + private Long jobId; - + private JobTypeEnum jobType; - + private Optional lastUpdatedAt = Optional.empty(); - + private Optional rowsSynced = Optional.empty(); - + private String startTime; - + private JobStatusEnum status; - + private Builder() { // force use of static builder() method } + public Builder bytesSynced(long bytesSynced) { Utils.checkNotNull(bytesSynced, "bytesSynced"); this.bytesSynced = Optional.ofNullable(bytesSynced); @@ -327,12 +334,14 @@ public Builder bytesSynced(Optional bytesSynced) { return this; } + public Builder connectionId(String connectionId) { Utils.checkNotNull(connectionId, "connectionId"); this.connectionId = connectionId; return this; } + /** * Duration of a sync in ISO_8601 format */ @@ -351,12 +360,14 @@ public Builder duration(Optional duration) { return this; } + public Builder jobId(long jobId) { Utils.checkNotNull(jobId, "jobId"); this.jobId = jobId; return this; } + /** * Enum that describes the different types of jobs that the platform runs. */ @@ -366,6 +377,7 @@ public Builder jobType(JobTypeEnum jobType) { return this; } + public Builder lastUpdatedAt(String lastUpdatedAt) { Utils.checkNotNull(lastUpdatedAt, "lastUpdatedAt"); this.lastUpdatedAt = Optional.ofNullable(lastUpdatedAt); @@ -378,6 +390,7 @@ public Builder lastUpdatedAt(Optional lastUpdatedAt) { return this; } + public Builder rowsSynced(long rowsSynced) { Utils.checkNotNull(rowsSynced, "rowsSynced"); this.rowsSynced = Optional.ofNullable(rowsSynced); @@ -390,29 +403,27 @@ public Builder rowsSynced(Optional rowsSynced) { return this; } + public Builder startTime(String startTime) { Utils.checkNotNull(startTime, "startTime"); this.startTime = startTime; return this; } + public Builder status(JobStatusEnum status) { Utils.checkNotNull(status, "status"); this.status = status; return this; } - + public JobResponse build() { + return new JobResponse( - bytesSynced, - connectionId, - duration, - jobId, - jobType, - lastUpdatedAt, - rowsSynced, - startTime, - status); + bytesSynced, connectionId, duration, + jobId, jobType, lastUpdatedAt, + rowsSynced, startTime, status); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java b/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java index fc330d623..bd453d57d 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/JobStatusEnum.java @@ -19,7 +19,7 @@ public enum JobStatusEnum { @JsonValue private final String value; - private JobStatusEnum(String value) { + JobStatusEnum(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/JobType.java b/src/main/java/com/airbyte/api/models/shared/JobType.java index 10e19e338..4652e4fa6 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobType.java +++ b/src/main/java/com/airbyte/api/models/shared/JobType.java @@ -25,7 +25,7 @@ public enum JobType { @JsonValue private final String value; - private JobType(String value) { + JobType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java b/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java index 2ab7b7d3c..e9c01340a 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/JobTypeEnum.java @@ -22,7 +22,7 @@ public enum JobTypeEnum { @JsonValue private final String value; - private JobTypeEnum(String value) { + JobTypeEnum(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/JobTypeResourceLimit.java b/src/main/java/com/airbyte/api/models/shared/JobTypeResourceLimit.java index e936c5f22..c88d9b627 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobTypeResourceLimit.java +++ b/src/main/java/com/airbyte/api/models/shared/JobTypeResourceLimit.java @@ -9,15 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * JobTypeResourceLimit * - *

    sets resource requirements for a specific job type for an actor or actor definition. these values override the default, if both are set. + *

    sets resource requirements for a specific job type for an actor or actor definition. these values + * override the default, if both are set. */ public class JobTypeResourceLimit { - /** * enum that describes the different types of jobs that the platform runs. */ @@ -56,9 +55,10 @@ public ResourceRequirements resourceRequirements() { return resourceRequirements; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * enum that describes the different types of jobs that the platform runs. @@ -78,7 +78,6 @@ public JobTypeResourceLimit withResourceRequirements(ResourceRequirements resour return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -89,15 +88,14 @@ public boolean equals(java.lang.Object o) { } JobTypeResourceLimit other = (JobTypeResourceLimit) o; return - Objects.deepEquals(this.jobType, other.jobType) && - Objects.deepEquals(this.resourceRequirements, other.resourceRequirements); + Utils.enhancedDeepEquals(this.jobType, other.jobType) && + Utils.enhancedDeepEquals(this.resourceRequirements, other.resourceRequirements); } @Override public int hashCode() { - return Objects.hash( - jobType, - resourceRequirements); + return Utils.enhancedHash( + jobType, resourceRequirements); } @Override @@ -106,17 +104,19 @@ public String toString() { "jobType", jobType, "resourceRequirements", resourceRequirements); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private JobType jobType; - + private ResourceRequirements resourceRequirements; - + private Builder() { // force use of static builder() method } + /** * enum that describes the different types of jobs that the platform runs. */ @@ -126,6 +126,7 @@ public Builder jobType(JobType jobType) { return this; } + /** * optional resource requirements to run workers (blank for unbounded allocations) */ @@ -134,11 +135,12 @@ public Builder resourceRequirements(ResourceRequirements resourceRequirements) { this.resourceRequirements = resourceRequirements; return this; } - + public JobTypeResourceLimit build() { + return new JobTypeResourceLimit( - jobType, - resourceRequirements); + jobType, resourceRequirements); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Jobnimbus.java b/src/main/java/com/airbyte/api/models/shared/Jobnimbus.java index af14dcaf7..b92854050 100644 --- a/src/main/java/com/airbyte/api/models/shared/Jobnimbus.java +++ b/src/main/java/com/airbyte/api/models/shared/Jobnimbus.java @@ -14,7 +14,7 @@ public enum Jobnimbus { @JsonValue private final String value; - private Jobnimbus(String value) { + Jobnimbus(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/JobsResponse.java b/src/main/java/com/airbyte/api/models/shared/JobsResponse.java index 0e924eddb..2ca67bded 100644 --- a/src/main/java/com/airbyte/api/models/shared/JobsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/JobsResponse.java @@ -12,18 +12,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class JobsResponse { @JsonProperty("data") private List data; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("next") private Optional next; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("previous") private Optional previous; @@ -61,9 +63,10 @@ public Optional previous() { return previous; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public JobsResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -77,6 +80,7 @@ public JobsResponse withNext(String next) { return this; } + public JobsResponse withNext(Optional next) { Utils.checkNotNull(next, "next"); this.next = next; @@ -89,13 +93,13 @@ public JobsResponse withPrevious(String previous) { return this; } + public JobsResponse withPrevious(Optional previous) { Utils.checkNotNull(previous, "previous"); this.previous = previous; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +110,15 @@ public boolean equals(java.lang.Object o) { } JobsResponse other = (JobsResponse) o; return - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.next, other.next) && - Objects.deepEquals(this.previous, other.previous); + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.previous, other.previous); } @Override public int hashCode() { - return Objects.hash( - data, - next, - previous); + return Utils.enhancedHash( + data, next, previous); } @Override @@ -126,25 +128,28 @@ public String toString() { "next", next, "previous", previous); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Optional next = Optional.empty(); - + private Optional previous = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } + public Builder next(String next) { Utils.checkNotNull(next, "next"); this.next = Optional.ofNullable(next); @@ -157,6 +162,7 @@ public Builder next(Optional next) { return this; } + public Builder previous(String previous) { Utils.checkNotNull(previous, "previous"); this.previous = Optional.ofNullable(previous); @@ -168,12 +174,12 @@ public Builder previous(Optional previous) { this.previous = previous; return this; } - + public JobsResponse build() { + return new JobsResponse( - data, - next, - previous); + data, next, previous); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Jotform.java b/src/main/java/com/airbyte/api/models/shared/Jotform.java index e52381fbc..168823dde 100644 --- a/src/main/java/com/airbyte/api/models/shared/Jotform.java +++ b/src/main/java/com/airbyte/api/models/shared/Jotform.java @@ -14,7 +14,7 @@ public enum Jotform { @JsonValue private final String value; - private Jotform(String value) { + Jotform(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/JsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/JsonlFormat.java index 51df6e2e0..8aecfb18d 100644 --- a/src/main/java/com/airbyte/api/models/shared/JsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/JsonlFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class JsonlFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class JsonlFormat { @JsonCreator public JsonlFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } JsonlFormat other = (JsonlFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(JsonlFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public JsonlFormat build() { + return new JsonlFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/JudgeMeReviews.java b/src/main/java/com/airbyte/api/models/shared/JudgeMeReviews.java new file mode 100644 index 000000000..7cd4ff54c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/JudgeMeReviews.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum JudgeMeReviews { + JUDGE_ME_REVIEWS("judge-me-reviews"); + + @JsonValue + private final String value; + + JudgeMeReviews(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (JudgeMeReviews o: JudgeMeReviews.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/JustSift.java b/src/main/java/com/airbyte/api/models/shared/JustSift.java index ecaf63722..c1b2e9db1 100644 --- a/src/main/java/com/airbyte/api/models/shared/JustSift.java +++ b/src/main/java/com/airbyte/api/models/shared/JustSift.java @@ -14,7 +14,7 @@ public enum JustSift { @JsonValue private final String value; - private JustSift(String value) { + JustSift(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Justcall.java b/src/main/java/com/airbyte/api/models/shared/Justcall.java index 4ce884772..1fe41b364 100644 --- a/src/main/java/com/airbyte/api/models/shared/Justcall.java +++ b/src/main/java/com/airbyte/api/models/shared/Justcall.java @@ -14,7 +14,7 @@ public enum Justcall { @JsonValue private final String value; - private Justcall(String value) { + Justcall(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/K6Cloud.java b/src/main/java/com/airbyte/api/models/shared/K6Cloud.java index ae8cba879..c822de512 100644 --- a/src/main/java/com/airbyte/api/models/shared/K6Cloud.java +++ b/src/main/java/com/airbyte/api/models/shared/K6Cloud.java @@ -14,7 +14,7 @@ public enum K6Cloud { @JsonValue private final String value; - private K6Cloud(String value) { + K6Cloud(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Katana.java b/src/main/java/com/airbyte/api/models/shared/Katana.java index 69ceef1ef..45d55e5c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Katana.java +++ b/src/main/java/com/airbyte/api/models/shared/Katana.java @@ -14,7 +14,7 @@ public enum Katana { @JsonValue private final String value; - private Katana(String value) { + Katana(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Keka.java b/src/main/java/com/airbyte/api/models/shared/Keka.java index 613a69e58..c07d9e579 100644 --- a/src/main/java/com/airbyte/api/models/shared/Keka.java +++ b/src/main/java/com/airbyte/api/models/shared/Keka.java @@ -14,7 +14,7 @@ public enum Keka { @JsonValue private final String value; - private Keka(String value) { + Keka(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java b/src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java index d357b4927..0eff93ad1 100644 --- a/src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/KeyPairAuthentication.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class KeyPairAuthentication { @JsonInclude(Include.NON_ABSENT) @@ -24,7 +24,9 @@ public class KeyPairAuthentication { private Optional authType; /** - * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/destinations/snowflake">docs</a> for more information on how to obtain this key. + * RSA Private key to use for Snowflake connection. See the docs for more information on + * how to obtain this key. */ @JsonProperty("private_key") private String privateKey; @@ -59,7 +61,9 @@ public Optional authType() { } /** - * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/destinations/snowflake">docs</a> for more information on how to obtain this key. + * RSA Private key to use for Snowflake connection. See the docs for more information on + * how to obtain this key. */ @JsonIgnore public String privateKey() { @@ -74,12 +78,15 @@ public Optional privateKeyPassword() { return privateKeyPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/destinations/snowflake">docs</a> for more information on how to obtain this key. + * RSA Private key to use for Snowflake connection. See the docs for more information on + * how to obtain this key. */ public KeyPairAuthentication withPrivateKey(String privateKey) { Utils.checkNotNull(privateKey, "privateKey"); @@ -96,6 +103,7 @@ public KeyPairAuthentication withPrivateKeyPassword(String privateKeyPassword) { return this; } + /** * Passphrase for private key */ @@ -105,7 +113,6 @@ public KeyPairAuthentication withPrivateKeyPassword(Optional privateKeyP return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -116,17 +123,15 @@ public boolean equals(java.lang.Object o) { } KeyPairAuthentication other = (KeyPairAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.privateKey, other.privateKey) && - Objects.deepEquals(this.privateKeyPassword, other.privateKeyPassword); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.privateKey, other.privateKey) && + Utils.enhancedDeepEquals(this.privateKeyPassword, other.privateKeyPassword); } @Override public int hashCode() { - return Objects.hash( - authType, - privateKey, - privateKeyPassword); + return Utils.enhancedHash( + authType, privateKey, privateKeyPassword); } @Override @@ -136,19 +141,23 @@ public String toString() { "privateKey", privateKey, "privateKeyPassword", privateKeyPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String privateKey; - + private Optional privateKeyPassword = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/destinations/snowflake">docs</a> for more information on how to obtain this key. + * RSA Private key to use for Snowflake connection. See the docs for more information on + * how to obtain this key. */ public Builder privateKey(String privateKey) { Utils.checkNotNull(privateKey, "privateKey"); @@ -156,6 +165,7 @@ public Builder privateKey(String privateKey) { return this; } + /** * Passphrase for private key */ @@ -173,13 +183,14 @@ public Builder privateKeyPassword(Optional privateKeyPassword) { this.privateKeyPassword = privateKeyPassword; return this; } - + public KeyPairAuthentication build() { + return new KeyPairAuthentication( - privateKey, - privateKeyPassword); + privateKey, privateKeyPassword); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Kind.java b/src/main/java/com/airbyte/api/models/shared/Kind.java index 58dcbe74a..66528610f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kind.java +++ b/src/main/java/com/airbyte/api/models/shared/Kind.java @@ -20,7 +20,7 @@ public enum Kind { @JsonValue private final String value; - private Kind(String value) { + Kind(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Kisi.java b/src/main/java/com/airbyte/api/models/shared/Kisi.java index 4ba152fdd..65e23f311 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kisi.java +++ b/src/main/java/com/airbyte/api/models/shared/Kisi.java @@ -14,7 +14,7 @@ public enum Kisi { @JsonValue private final String value; - private Kisi(String value) { + Kisi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java b/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java index 76861beb4..f1bd160de 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java +++ b/src/main/java/com/airbyte/api/models/shared/Kissmetrics.java @@ -14,7 +14,7 @@ public enum Kissmetrics { @JsonValue private final String value; - private Kissmetrics(String value) { + Kissmetrics(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Klarna.java b/src/main/java/com/airbyte/api/models/shared/Klarna.java index 02d2dc7bf..942bf5c0a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Klarna.java +++ b/src/main/java/com/airbyte/api/models/shared/Klarna.java @@ -14,7 +14,7 @@ public enum Klarna { @JsonValue private final String value; - private Klarna(String value) { + Klarna(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/KlausApi.java b/src/main/java/com/airbyte/api/models/shared/KlausApi.java index c72eb93b7..79abbe479 100644 --- a/src/main/java/com/airbyte/api/models/shared/KlausApi.java +++ b/src/main/java/com/airbyte/api/models/shared/KlausApi.java @@ -14,7 +14,7 @@ public enum KlausApi { @JsonValue private final String value; - private KlausApi(String value) { + KlausApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Klaviyo.java b/src/main/java/com/airbyte/api/models/shared/Klaviyo.java index ad9d5bd26..4a748c9c0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Klaviyo.java +++ b/src/main/java/com/airbyte/api/models/shared/Klaviyo.java @@ -14,7 +14,7 @@ public enum Klaviyo { @JsonValue private final String value; - private Klaviyo(String value) { + Klaviyo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Kyve.java b/src/main/java/com/airbyte/api/models/shared/Kyve.java index 0d7b86124..a9a388a5b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Kyve.java +++ b/src/main/java/com/airbyte/api/models/shared/Kyve.java @@ -14,7 +14,7 @@ public enum Kyve { @JsonValue private final String value; - private Kyve(String value) { + Kyve(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/LSNCommitBehaviour.java b/src/main/java/com/airbyte/api/models/shared/LSNCommitBehaviour.java index d9c35e0c1..f464f2e63 100644 --- a/src/main/java/com/airbyte/api/models/shared/LSNCommitBehaviour.java +++ b/src/main/java/com/airbyte/api/models/shared/LSNCommitBehaviour.java @@ -11,7 +11,9 @@ /** * LSNCommitBehaviour * - *

    Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync. + *

    Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After + * loading Data in the destination` is default. If `While reading Data` is selected, in case of a + * downstream failure (while loading data into the destination), next sync would result in a full sync. */ public enum LSNCommitBehaviour { WHILE_READING_DATA("While reading Data"), @@ -20,7 +22,7 @@ public enum LSNCommitBehaviour { @JsonValue private final String value; - private LSNCommitBehaviour(String value) { + LSNCommitBehaviour(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Lang.java b/src/main/java/com/airbyte/api/models/shared/Lang.java index 543bea749..ccf994dc0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lang.java +++ b/src/main/java/com/airbyte/api/models/shared/Lang.java @@ -11,7 +11,9 @@ /** * Lang * - *

    You can use lang parameter to get the output in your language. The contents of the description field will be translated. See <a href="https://openweathermap.org/api/one-call-api#multi">here</a> for the list of supported languages. + *

    You can use lang parameter to get the output in your language. The contents of the description field + * will be translated. See here for the + * list of supported languages. */ public enum Lang { AF("af"), @@ -67,7 +69,7 @@ public enum Lang { @JsonValue private final String value; - private Lang(String value) { + Lang(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Language.java b/src/main/java/com/airbyte/api/models/shared/Language.java index 955a2eaa8..3e38b7fe8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Language.java +++ b/src/main/java/com/airbyte/api/models/shared/Language.java @@ -33,7 +33,7 @@ public enum Language { @JsonValue private final String value; - private Language(String value) { + Language(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Launchdarkly.java b/src/main/java/com/airbyte/api/models/shared/Launchdarkly.java index 5d5318977..9cf958d6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Launchdarkly.java +++ b/src/main/java/com/airbyte/api/models/shared/Launchdarkly.java @@ -14,7 +14,7 @@ public enum Launchdarkly { @JsonValue private final String value; - private Launchdarkly(String value) { + Launchdarkly(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Ldap.java b/src/main/java/com/airbyte/api/models/shared/Ldap.java index 53fc72ee7..92063a425 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ldap.java +++ b/src/main/java/com/airbyte/api/models/shared/Ldap.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Ldap { @JsonInclude(Include.NON_ABSENT) @@ -68,9 +68,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Enter the password associated with the username. @@ -90,7 +91,6 @@ public Ldap withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,17 +101,15 @@ public boolean equals(java.lang.Object o) { } Ldap other = (Ldap) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - authType, - password, - username); + return Utils.enhancedHash( + authType, password, username); } @Override @@ -121,17 +119,19 @@ public String toString() { "password", password, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Enter the password associated with the username. */ @@ -141,6 +141,7 @@ public Builder password(String password) { return this; } + /** * Username to use to access the database. */ @@ -149,13 +150,14 @@ public Builder username(String username) { this.username = username; return this; } - + public Ldap build() { + return new Ldap( - password, - username); + password, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java b/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java index 1ccb5ce54..322d360f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java +++ b/src/main/java/com/airbyte/api/models/shared/Leadfeeder.java @@ -14,7 +14,7 @@ public enum Leadfeeder { @JsonValue private final String value; - private Leadfeeder(String value) { + Leadfeeder(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Lemlist.java b/src/main/java/com/airbyte/api/models/shared/Lemlist.java index 57cfc638c..d2c380790 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lemlist.java +++ b/src/main/java/com/airbyte/api/models/shared/Lemlist.java @@ -14,7 +14,7 @@ public enum Lemlist { @JsonValue private final String value; - private Lemlist(String value) { + Lemlist(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/LessAnnoyingCrm.java b/src/main/java/com/airbyte/api/models/shared/LessAnnoyingCrm.java index fecf437e8..3f732bd5e 100644 --- a/src/main/java/com/airbyte/api/models/shared/LessAnnoyingCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/LessAnnoyingCrm.java @@ -14,7 +14,7 @@ public enum LessAnnoyingCrm { @JsonValue private final String value; - private LessAnnoyingCrm(String value) { + LessAnnoyingCrm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Level.java b/src/main/java/com/airbyte/api/models/shared/Level.java index 049061660..fb3bd5932 100644 --- a/src/main/java/com/airbyte/api/models/shared/Level.java +++ b/src/main/java/com/airbyte/api/models/shared/Level.java @@ -22,7 +22,7 @@ public enum Level { @JsonValue private final String value; - private Level(String value) { + Level(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/LeverHiring.java b/src/main/java/com/airbyte/api/models/shared/LeverHiring.java index 6942cd6fa..e40c1e0a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/LeverHiring.java +++ b/src/main/java/com/airbyte/api/models/shared/LeverHiring.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class LeverHiring { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public LeverHiring withCredentials(LeverHiringCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public LeverHiring withCredentials(LeverHiringCredentials credentials) { return this; } + public LeverHiring withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } LeverHiring other = (LeverHiring) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(LeverHiring.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(LeverHiringCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credential this.credentials = credentials; return this; } - + public LeverHiring build() { + return new LeverHiring( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/LeverHiringCredentials.java b/src/main/java/com/airbyte/api/models/shared/LeverHiringCredentials.java index ff05a7a42..e72cdbc9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/LeverHiringCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/LeverHiringCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class LeverHiringCredentials { +public class LeverHiringCredentials { /** * The Client ID of your Lever Hiring developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Lever Hiring developer application. @@ -73,6 +73,7 @@ public LeverHiringCredentials withClientId(String clientId) { return this; } + /** * The Client ID of your Lever Hiring developer application. */ @@ -91,6 +92,7 @@ public LeverHiringCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your Lever Hiring developer application. */ @@ -100,7 +102,6 @@ public LeverHiringCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } LeverHiringCredentials other = (LeverHiringCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Lever Hiring developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your Lever Hiring developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public LeverHiringCredentials build() { + return new LeverHiringCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java b/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java index 7e842ad34..fcabbe5e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java +++ b/src/main/java/com/airbyte/api/models/shared/LightspeedRetail.java @@ -14,7 +14,7 @@ public enum LightspeedRetail { @JsonValue private final String value; - private LightspeedRetail(String value) { + LightspeedRetail(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Cobra.java b/src/main/java/com/airbyte/api/models/shared/Linear.java similarity index 76% rename from src/main/java/com/airbyte/api/models/shared/Cobra.java rename to src/main/java/com/airbyte/api/models/shared/Linear.java index 89aa293ef..1b30fc17e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Cobra.java +++ b/src/main/java/com/airbyte/api/models/shared/Linear.java @@ -8,13 +8,13 @@ import java.util.Objects; import java.util.Optional; -public enum Cobra { - COBRA("cobra"); +public enum Linear { + LINEAR("linear"); @JsonValue private final String value; - private Cobra(String value) { + Linear(String value) { this.value = value; } @@ -22,8 +22,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (Cobra o: Cobra.values()) { + public static Optional fromValue(String value) { + for (Linear o: Linear.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/airbyte/api/models/shared/LinkedinAds.java b/src/main/java/com/airbyte/api/models/shared/LinkedinAds.java index 952f43e49..c1e3e2abb 100644 --- a/src/main/java/com/airbyte/api/models/shared/LinkedinAds.java +++ b/src/main/java/com/airbyte/api/models/shared/LinkedinAds.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class LinkedinAds { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public LinkedinAds withCredentials(LinkedinAdsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public LinkedinAds withCredentials(LinkedinAdsCredentials credentials) { return this; } + public LinkedinAds withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } LinkedinAds other = (LinkedinAds) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(LinkedinAds.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(LinkedinAdsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credential this.credentials = credentials; return this; } - + public LinkedinAds build() { + return new LinkedinAds( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/LinkedinAdsCredentials.java b/src/main/java/com/airbyte/api/models/shared/LinkedinAdsCredentials.java index 56a3e8cc8..edce6aabf 100644 --- a/src/main/java/com/airbyte/api/models/shared/LinkedinAdsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/LinkedinAdsCredentials.java @@ -11,20 +11,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class LinkedinAdsCredentials { +public class LinkedinAdsCredentials { /** - * The client ID of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client ID of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * The client secret of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client secret of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") @@ -45,7 +48,9 @@ public LinkedinAdsCredentials() { } /** - * The client ID of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client ID of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonIgnore public Optional clientId() { @@ -53,19 +58,24 @@ public Optional clientId() { } /** - * The client secret of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client secret of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonIgnore public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The client ID of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client ID of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public LinkedinAdsCredentials withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -73,8 +83,11 @@ public LinkedinAdsCredentials withClientId(String clientId) { return this; } + /** - * The client ID of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client ID of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public LinkedinAdsCredentials withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +96,9 @@ public LinkedinAdsCredentials withClientId(Optional clientId) { } /** - * The client secret of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client secret of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public LinkedinAdsCredentials withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -91,8 +106,11 @@ public LinkedinAdsCredentials withClientSecret(String clientSecret) { return this; } + /** - * The client secret of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client secret of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public LinkedinAdsCredentials withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -100,7 +118,6 @@ public LinkedinAdsCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +128,14 @@ public boolean equals(java.lang.Object o) { } LinkedinAdsCredentials other = (LinkedinAdsCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,19 +144,23 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The client ID of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client ID of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -149,7 +169,9 @@ public Builder clientId(String clientId) { } /** - * The client ID of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client ID of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -157,8 +179,11 @@ public Builder clientId(Optional clientId) { return this; } + /** - * The client secret of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client secret of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -167,18 +192,21 @@ public Builder clientSecret(String clientSecret) { } /** - * The client secret of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client secret of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public LinkedinAdsCredentials build() { + return new LinkedinAdsCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java b/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java index 8715886b6..3c7bde396 100644 --- a/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java +++ b/src/main/java/com/airbyte/api/models/shared/LinkedinPages.java @@ -14,7 +14,7 @@ public enum LinkedinPages { @JsonValue private final String value; - private LinkedinPages(String value) { + LinkedinPages(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Linnworks.java b/src/main/java/com/airbyte/api/models/shared/Linnworks.java index b5d32f89e..0aa74cc54 100644 --- a/src/main/java/com/airbyte/api/models/shared/Linnworks.java +++ b/src/main/java/com/airbyte/api/models/shared/Linnworks.java @@ -14,7 +14,7 @@ public enum Linnworks { @JsonValue private final String value; - private Linnworks(String value) { + Linnworks(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/LoadType.java b/src/main/java/com/airbyte/api/models/shared/LoadType.java index 5c6249f1a..797cf6719 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoadType.java +++ b/src/main/java/com/airbyte/api/models/shared/LoadType.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * LoadType @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } LoadType other = (LoadType) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/LoadingMethod.java b/src/main/java/com/airbyte/api/models/shared/LoadingMethod.java index a88f1d9a0..f9ac06fbc 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoadingMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/LoadingMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * LoadingMethod @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } LoadingMethod other = (LoadingMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Lob.java b/src/main/java/com/airbyte/api/models/shared/Lob.java index f0ba432c0..11a5864cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lob.java +++ b/src/main/java/com/airbyte/api/models/shared/Lob.java @@ -14,7 +14,7 @@ public enum Lob { @JsonValue private final String value; - private Lob(String value) { + Lob(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Local.java b/src/main/java/com/airbyte/api/models/shared/Local.java index f6ed96459..c3c3c6bfc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Local.java +++ b/src/main/java/com/airbyte/api/models/shared/Local.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class Local { @JsonCreator public Local() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } Local other = (Local) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(Local.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public Local build() { + return new Local( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/LocalFilesystemLimited.java b/src/main/java/com/airbyte/api/models/shared/LocalFilesystemLimited.java index 26fe277e7..aaba706a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/LocalFilesystemLimited.java +++ b/src/main/java/com/airbyte/api/models/shared/LocalFilesystemLimited.java @@ -11,35 +11,35 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class LocalFilesystemLimited { +public class LocalFilesystemLimited { /** - * WARNING: Note that the local storage URL available for reading must start with the local mount "/local/" at the moment until we implement more advanced docker mounting options. + * WARNING: Note that the local storage URL available for reading must start with the local mount + * "/local/" at the moment until we implement more advanced docker mounting options. */ @JsonProperty("storage") private SourceFileSchemasProviderStorageProvider8Storage storage; @JsonCreator public LocalFilesystemLimited() { - this.storage = Builder._SINGLETON_VALUE_Storage.value(); } /** - * WARNING: Note that the local storage URL available for reading must start with the local mount "/local/" at the moment until we implement more advanced docker mounting options. + * WARNING: Note that the local storage URL available for reading must start with the local mount + * "/local/" at the moment until we implement more advanced docker mounting options. */ @JsonIgnore public SourceFileSchemasProviderStorageProvider8Storage storage() { return storage; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +50,12 @@ public boolean equals(java.lang.Object o) { } LocalFilesystemLimited other = (LocalFilesystemLimited) o; return - Objects.deepEquals(this.storage, other.storage); + Utils.enhancedDeepEquals(this.storage, other.storage); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( storage); } @@ -64,18 +64,21 @@ public String toString() { return Utils.toString(LocalFilesystemLimited.class, "storage", storage); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public LocalFilesystemLimited build() { + return new LocalFilesystemLimited( ); } + private static final LazySingletonValue _SINGLETON_VALUE_Storage = new LazySingletonValue<>( "storage", diff --git a/src/main/java/com/airbyte/api/models/shared/Logging.java b/src/main/java/com/airbyte/api/models/shared/Logging.java index 7370882e4..998aa699d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Logging.java +++ b/src/main/java/com/airbyte/api/models/shared/Logging.java @@ -19,9 +19,9 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class Logging { @JsonIgnore @@ -33,6 +33,7 @@ public class Logging { @JsonProperty("logging_config") private LoggingConfiguration loggingConfig; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("test_destination_type") private Optional testDestinationType; @@ -72,9 +73,10 @@ public Optional testDestinationType() { return (Optional) testDestinationType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public Logging withAdditionalProperty(String key, Object value) { @@ -82,8 +84,7 @@ public Logging withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public Logging withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -105,13 +106,13 @@ public Logging withTestDestinationType(TestDestinationType testDestinationType) return this; } + public Logging withTestDestinationType(Optional testDestinationType) { Utils.checkNotNull(testDestinationType, "testDestinationType"); this.testDestinationType = testDestinationType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,17 +123,15 @@ public boolean equals(java.lang.Object o) { } Logging other = (Logging) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.loggingConfig, other.loggingConfig) && - Objects.deepEquals(this.testDestinationType, other.testDestinationType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.loggingConfig, other.loggingConfig) && + Utils.enhancedDeepEquals(this.testDestinationType, other.testDestinationType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - loggingConfig, - testDestinationType); + return Utils.enhancedHash( + additionalProperties, loggingConfig, testDestinationType); } @Override @@ -142,15 +141,16 @@ public String toString() { "loggingConfig", loggingConfig, "testDestinationType", testDestinationType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private LoggingConfiguration loggingConfig; - + private Optional testDestinationType; - + private Builder() { // force use of static builder() method } @@ -171,6 +171,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * Configurate how the messages are logged. */ @@ -180,6 +181,7 @@ public Builder loggingConfig(LoggingConfiguration loggingConfig) { return this; } + public Builder testDestinationType(TestDestinationType testDestinationType) { Utils.checkNotNull(testDestinationType, "testDestinationType"); this.testDestinationType = Optional.ofNullable(testDestinationType); @@ -191,17 +193,18 @@ public Builder testDestinationType(Optional testD this.testDestinationType = testDestinationType; return this; } - + public Logging build() { if (testDestinationType == null) { testDestinationType = _SINGLETON_VALUE_TestDestinationType.value(); } + return new Logging( - loggingConfig, - testDestinationType) + loggingConfig, testDestinationType) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_TestDestinationType = new LazySingletonValue<>( "test_destination_type", diff --git a/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java b/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java index b2bcdd337..5a24b2614 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/LoggingConfiguration.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * LoggingConfiguration @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } LoggingConfiguration other = (LoggingConfiguration) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/LoggingType.java b/src/main/java/com/airbyte/api/models/shared/LoggingType.java index a7809c613..82c8b7ab0 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoggingType.java +++ b/src/main/java/com/airbyte/api/models/shared/LoggingType.java @@ -14,7 +14,7 @@ public enum LoggingType { @JsonValue private final String value; - private LoggingType(String value) { + LoggingType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/LoginPassword.java b/src/main/java/com/airbyte/api/models/shared/LoginPassword.java index ca41da873..7d011bd85 100644 --- a/src/main/java/com/airbyte/api/models/shared/LoginPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/LoginPassword.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * LoginPassword @@ -67,9 +66,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Password associated with the username. @@ -89,7 +89,6 @@ public LoginPassword withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,17 +99,15 @@ public boolean equals(java.lang.Object o) { } LoginPassword other = (LoginPassword) o; return - Objects.deepEquals(this.authorization, other.authorization) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.authorization, other.authorization) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - authorization, - password, - username); + return Utils.enhancedHash( + authorization, password, username); } @Override @@ -120,17 +117,19 @@ public String toString() { "password", password, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Password associated with the username. */ @@ -140,6 +139,7 @@ public Builder password(String password) { return this; } + /** * Username to use to access the database. */ @@ -148,13 +148,14 @@ public Builder username(String username) { this.username = username; return this; } - + public LoginPassword build() { + return new LoginPassword( - password, - username); + password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_Authorization = new LazySingletonValue<>( "authorization", diff --git a/src/main/java/com/airbyte/api/models/shared/Lokalise.java b/src/main/java/com/airbyte/api/models/shared/Lokalise.java index ca87252d4..32f52eecc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Lokalise.java +++ b/src/main/java/com/airbyte/api/models/shared/Lokalise.java @@ -14,7 +14,7 @@ public enum Lokalise { @JsonValue private final String value; - private Lokalise(String value) { + Lokalise(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Looker.java b/src/main/java/com/airbyte/api/models/shared/Looker.java index ccdc602ec..b54085f71 100644 --- a/src/main/java/com/airbyte/api/models/shared/Looker.java +++ b/src/main/java/com/airbyte/api/models/shared/Looker.java @@ -14,7 +14,7 @@ public enum Looker { @JsonValue private final String value; - private Looker(String value) { + Looker(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Luma.java b/src/main/java/com/airbyte/api/models/shared/Luma.java index ad848627d..39ad14fee 100644 --- a/src/main/java/com/airbyte/api/models/shared/Luma.java +++ b/src/main/java/com/airbyte/api/models/shared/Luma.java @@ -14,7 +14,7 @@ public enum Luma { @JsonValue private final String value; - private Luma(String value) { + Luma(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mailchimp.java b/src/main/java/com/airbyte/api/models/shared/Mailchimp.java index d6911d43e..99ab89250 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailchimp.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailchimp.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Mailchimp { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Mailchimp withCredentials(MailchimpCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Mailchimp withCredentials(MailchimpCredentials credentials) { return this; } + public Mailchimp withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Mailchimp other = (Mailchimp) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Mailchimp.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(MailchimpCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) this.credentials = credentials; return this; } - + public Mailchimp build() { + return new Mailchimp( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MailchimpCredentials.java b/src/main/java/com/airbyte/api/models/shared/MailchimpCredentials.java index f7dcf2ffa..dba2487f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/MailchimpCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/MailchimpCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class MailchimpCredentials { +public class MailchimpCredentials { /** * The Client ID of your OAuth application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your OAuth application. @@ -73,6 +73,7 @@ public MailchimpCredentials withClientId(String clientId) { return this; } + /** * The Client ID of your OAuth application. */ @@ -91,6 +92,7 @@ public MailchimpCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -100,7 +102,6 @@ public MailchimpCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } MailchimpCredentials other = (MailchimpCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your OAuth application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public MailchimpCredentials build() { + return new MailchimpCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Mailerlite.java b/src/main/java/com/airbyte/api/models/shared/Mailerlite.java index cf95000e9..f0d7b0b69 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailerlite.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailerlite.java @@ -14,7 +14,7 @@ public enum Mailerlite { @JsonValue private final String value; - private Mailerlite(String value) { + Mailerlite(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mailersend.java b/src/main/java/com/airbyte/api/models/shared/Mailersend.java index ce073b15d..0ad0fbda4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailersend.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailersend.java @@ -14,7 +14,7 @@ public enum Mailersend { @JsonValue private final String value; - private Mailersend(String value) { + Mailersend(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mailgun.java b/src/main/java/com/airbyte/api/models/shared/Mailgun.java index 01b7ce6c6..423129864 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailgun.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailgun.java @@ -14,7 +14,7 @@ public enum Mailgun { @JsonValue private final String value; - private Mailgun(String value) { + Mailgun(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MailjetMail.java b/src/main/java/com/airbyte/api/models/shared/MailjetMail.java index 73aa8347a..1cfa7e595 100644 --- a/src/main/java/com/airbyte/api/models/shared/MailjetMail.java +++ b/src/main/java/com/airbyte/api/models/shared/MailjetMail.java @@ -14,7 +14,7 @@ public enum MailjetMail { @JsonValue private final String value; - private MailjetMail(String value) { + MailjetMail(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MailjetSms.java b/src/main/java/com/airbyte/api/models/shared/MailjetSms.java index b9e1781ed..2679a67e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/MailjetSms.java +++ b/src/main/java/com/airbyte/api/models/shared/MailjetSms.java @@ -14,7 +14,7 @@ public enum MailjetSms { @JsonValue private final String value; - private MailjetSms(String value) { + MailjetSms(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mailosaur.java b/src/main/java/com/airbyte/api/models/shared/Mailosaur.java index d4ff82049..7865f1156 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailosaur.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailosaur.java @@ -14,7 +14,7 @@ public enum Mailosaur { @JsonValue private final String value; - private Mailosaur(String value) { + Mailosaur(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mailtrap.java b/src/main/java/com/airbyte/api/models/shared/Mailtrap.java index b88090dc7..f668817ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mailtrap.java +++ b/src/main/java/com/airbyte/api/models/shared/Mailtrap.java @@ -14,7 +14,7 @@ public enum Mailtrap { @JsonValue private final String value; - private Mailtrap(String value) { + Mailtrap(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MapperConfiguration.java b/src/main/java/com/airbyte/api/models/shared/MapperConfiguration.java index c6228539e..fecf41b85 100644 --- a/src/main/java/com/airbyte/api/models/shared/MapperConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/MapperConfiguration.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * MapperConfiguration @@ -84,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } MapperConfiguration other = (MapperConfiguration) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/MarketNewsCategory.java b/src/main/java/com/airbyte/api/models/shared/MarketNewsCategory.java index b3524cdea..8517e73d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/MarketNewsCategory.java +++ b/src/main/java/com/airbyte/api/models/shared/MarketNewsCategory.java @@ -22,7 +22,7 @@ public enum MarketNewsCategory { @JsonValue private final String value; - private MarketNewsCategory(String value) { + MarketNewsCategory(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Marketo.java b/src/main/java/com/airbyte/api/models/shared/Marketo.java index f37e52c05..1e39b642b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Marketo.java +++ b/src/main/java/com/airbyte/api/models/shared/Marketo.java @@ -14,7 +14,7 @@ public enum Marketo { @JsonValue private final String value; - private Marketo(String value) { + Marketo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Marketstack.java b/src/main/java/com/airbyte/api/models/shared/Marketstack.java index c4fbf1830..c1adffbf5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Marketstack.java +++ b/src/main/java/com/airbyte/api/models/shared/Marketstack.java @@ -14,7 +14,7 @@ public enum Marketstack { @JsonValue private final String value; - private Marketstack(String value) { + Marketstack(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mendeley.java b/src/main/java/com/airbyte/api/models/shared/Mendeley.java index 2bd16fe33..b27c1708d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mendeley.java +++ b/src/main/java/com/airbyte/api/models/shared/Mendeley.java @@ -14,7 +14,7 @@ public enum Mendeley { @JsonValue private final String value; - private Mendeley(String value) { + Mendeley(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mention.java b/src/main/java/com/airbyte/api/models/shared/Mention.java index 1200120d9..9faa48fdb 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mention.java +++ b/src/main/java/com/airbyte/api/models/shared/Mention.java @@ -14,7 +14,7 @@ public enum Mention { @JsonValue private final String value; - private Mention(String value) { + Mention(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MercadoAds.java b/src/main/java/com/airbyte/api/models/shared/MercadoAds.java new file mode 100644 index 000000000..eff4b8cd1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/MercadoAds.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum MercadoAds { + MERCADO_ADS("mercado-ads"); + + @JsonValue + private final String value; + + MercadoAds(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (MercadoAds o: MercadoAds.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Merge.java b/src/main/java/com/airbyte/api/models/shared/Merge.java index 632ec7a7d..e95568164 100644 --- a/src/main/java/com/airbyte/api/models/shared/Merge.java +++ b/src/main/java/com/airbyte/api/models/shared/Merge.java @@ -14,7 +14,7 @@ public enum Merge { @JsonValue private final String value; - private Merge(String value) { + Merge(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Metabase.java b/src/main/java/com/airbyte/api/models/shared/Metabase.java index 9822c0777..fdb8c4698 100644 --- a/src/main/java/com/airbyte/api/models/shared/Metabase.java +++ b/src/main/java/com/airbyte/api/models/shared/Metabase.java @@ -14,7 +14,7 @@ public enum Metabase { @JsonValue private final String value; - private Metabase(String value) { + Metabase(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Method.java b/src/main/java/com/airbyte/api/models/shared/Method.java index 5c846b885..f3097143b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Method.java +++ b/src/main/java/com/airbyte/api/models/shared/Method.java @@ -14,7 +14,7 @@ public enum Method { @JsonValue private final String value; - private Method(String value) { + Method(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MetricsFilter.java b/src/main/java/com/airbyte/api/models/shared/MetricsFilter.java index aea8fb725..5da75134e 100644 --- a/src/main/java/com/airbyte/api/models/shared/MetricsFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/MetricsFilter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * MetricsFilter @@ -84,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } MetricsFilter other = (MetricsFilter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java index 6c08b8d0c..aa04f72d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftDataverse.java @@ -14,7 +14,7 @@ public enum MicrosoftDataverse { @JsonValue private final String value; - private MicrosoftDataverse(String value) { + MicrosoftDataverse(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftEntraId.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftEntraId.java index bfd53ca0f..6b663df87 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftEntraId.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftEntraId.java @@ -14,7 +14,7 @@ public enum MicrosoftEntraId { @JsonValue private final String value; - private MicrosoftEntraId(String value) { + MicrosoftEntraId(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftLists.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftLists.java index 28a8fc596..eb3ef8723 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftLists.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftLists.java @@ -14,7 +14,7 @@ public enum MicrosoftLists { @JsonValue private final String value; - private MicrosoftLists(String value) { + MicrosoftLists(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedrive.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedrive.java index 0044cbbfa..1ae8c5c34 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedrive.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class MicrosoftOnedrive { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public MicrosoftOnedrive withCredentials(MicrosoftOnedriveCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public MicrosoftOnedrive withCredentials(MicrosoftOnedriveCredentials credential return this; } + public MicrosoftOnedrive withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } MicrosoftOnedrive other = (MicrosoftOnedrive) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(MicrosoftOnedrive.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(MicrosoftOnedriveCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional cred this.credentials = credentials; return this; } - + public MicrosoftOnedrive build() { + return new MicrosoftOnedrive( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedriveCredentials.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedriveCredentials.java index 49f21ba0f..d262e5a84 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedriveCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftOnedriveCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class MicrosoftOnedriveCredentials { +public class MicrosoftOnedriveCredentials { /** * Client ID of your Microsoft developer application */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID of your Microsoft developer application @@ -73,6 +73,7 @@ public MicrosoftOnedriveCredentials withClientId(String clientId) { return this; } + /** * Client ID of your Microsoft developer application */ @@ -91,6 +92,7 @@ public MicrosoftOnedriveCredentials withClientSecret(String clientSecret) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -100,7 +102,6 @@ public MicrosoftOnedriveCredentials withClientSecret(Optional clientSecr return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } MicrosoftOnedriveCredentials other = (MicrosoftOnedriveCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Client ID of your Microsoft developer application */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public MicrosoftOnedriveCredentials build() { + return new MicrosoftOnedriveCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepoint.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepoint.java index 4b4cea688..e075a79d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepoint.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepoint.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class MicrosoftSharepoint { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public MicrosoftSharepoint withCredentials(MicrosoftSharepointCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public MicrosoftSharepoint withCredentials(MicrosoftSharepointCredentials creden return this; } + public MicrosoftSharepoint withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } MicrosoftSharepoint other = (MicrosoftSharepoint) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(MicrosoftSharepoint.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(MicrosoftSharepointCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional cr this.credentials = credentials; return this; } - + public MicrosoftSharepoint build() { + return new MicrosoftSharepoint( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepointCredentials.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepointCredentials.java index 715c0dc7d..8218282b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepointCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftSharepointCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class MicrosoftSharepointCredentials { +public class MicrosoftSharepointCredentials { /** * Client ID of your Microsoft developer application */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID of your Microsoft developer application @@ -73,6 +73,7 @@ public MicrosoftSharepointCredentials withClientId(String clientId) { return this; } + /** * Client ID of your Microsoft developer application */ @@ -91,6 +92,7 @@ public MicrosoftSharepointCredentials withClientSecret(String clientSecret) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -100,7 +102,6 @@ public MicrosoftSharepointCredentials withClientSecret(Optional clientSe return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } MicrosoftSharepointCredentials other = (MicrosoftSharepointCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Client ID of your Microsoft developer application */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public MicrosoftSharepointCredentials build() { + return new MicrosoftSharepointCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftTeams.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftTeams.java index 0fe0e3b18..ba0532347 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftTeams.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftTeams.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class MicrosoftTeams { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public MicrosoftTeams withCredentials(MicrosoftTeamsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public MicrosoftTeams withCredentials(MicrosoftTeamsCredentials credentials) { return this; } + public MicrosoftTeams withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } MicrosoftTeams other = (MicrosoftTeams) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(MicrosoftTeams.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(MicrosoftTeamsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credent this.credentials = credentials; return this; } - + public MicrosoftTeams build() { + return new MicrosoftTeams( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MicrosoftTeamsCredentials.java b/src/main/java/com/airbyte/api/models/shared/MicrosoftTeamsCredentials.java index 9d49cbbd1..52349e6d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/MicrosoftTeamsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/MicrosoftTeamsCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class MicrosoftTeamsCredentials { +public class MicrosoftTeamsCredentials { /** * The Client ID of your Microsoft Teams developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Microsoft Teams developer application. @@ -73,6 +73,7 @@ public MicrosoftTeamsCredentials withClientId(String clientId) { return this; } + /** * The Client ID of your Microsoft Teams developer application. */ @@ -91,6 +92,7 @@ public MicrosoftTeamsCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your Microsoft Teams developer application. */ @@ -100,7 +102,6 @@ public MicrosoftTeamsCredentials withClientSecret(Optional clientSecret) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } MicrosoftTeamsCredentials other = (MicrosoftTeamsCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Microsoft Teams developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your Microsoft Teams developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public MicrosoftTeamsCredentials build() { + return new MicrosoftTeamsCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Milvus.java b/src/main/java/com/airbyte/api/models/shared/Milvus.java index 9ef7c1896..cf654fd3f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Milvus.java +++ b/src/main/java/com/airbyte/api/models/shared/Milvus.java @@ -14,7 +14,7 @@ public enum Milvus { @JsonValue private final String value; - private Milvus(String value) { + Milvus(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Miro.java b/src/main/java/com/airbyte/api/models/shared/Miro.java index d257d0858..36769ef95 100644 --- a/src/main/java/com/airbyte/api/models/shared/Miro.java +++ b/src/main/java/com/airbyte/api/models/shared/Miro.java @@ -14,7 +14,7 @@ public enum Miro { @JsonValue private final String value; - private Miro(String value) { + Miro(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Missive.java b/src/main/java/com/airbyte/api/models/shared/Missive.java index 6c27e7737..cc356f301 100644 --- a/src/main/java/com/airbyte/api/models/shared/Missive.java +++ b/src/main/java/com/airbyte/api/models/shared/Missive.java @@ -14,7 +14,7 @@ public enum Missive { @JsonValue private final String value; - private Missive(String value) { + Missive(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mixmax.java b/src/main/java/com/airbyte/api/models/shared/Mixmax.java index 148023d73..f8bcf9287 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mixmax.java +++ b/src/main/java/com/airbyte/api/models/shared/Mixmax.java @@ -14,7 +14,7 @@ public enum Mixmax { @JsonValue private final String value; - private Mixmax(String value) { + Mixmax(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mixpanel.java b/src/main/java/com/airbyte/api/models/shared/Mixpanel.java index a47bba73d..5bceec93e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mixpanel.java +++ b/src/main/java/com/airbyte/api/models/shared/Mixpanel.java @@ -14,7 +14,7 @@ public enum Mixpanel { @JsonValue private final String value; - private Mixpanel(String value) { + Mixpanel(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mode.java b/src/main/java/com/airbyte/api/models/shared/Mode.java index db71ec890..6aae373b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/Mode.java @@ -19,7 +19,7 @@ public enum Mode { @JsonValue private final String value; - private Mode(String value) { + Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Monday.java b/src/main/java/com/airbyte/api/models/shared/Monday.java index ed2bf4616..8f269baf8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Monday.java +++ b/src/main/java/com/airbyte/api/models/shared/Monday.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Monday { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Monday withCredentials(MondayCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Monday withCredentials(MondayCredentials credentials) { return this; } + public Monday withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Monday other = (Monday) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Monday.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(MondayCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Monday build() { + return new Monday( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MondayCredentials.java b/src/main/java/com/airbyte/api/models/shared/MondayCredentials.java index 8e0776b14..e251fc0e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/MondayCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/MondayCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class MondayCredentials { +public class MondayCredentials { /** * The Client ID of your OAuth application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your OAuth application. @@ -73,6 +73,7 @@ public MondayCredentials withClientId(String clientId) { return this; } + /** * The Client ID of your OAuth application. */ @@ -91,6 +92,7 @@ public MondayCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -100,7 +102,6 @@ public MondayCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } MondayCredentials other = (MondayCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your OAuth application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public MondayCredentials build() { + return new MondayCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/MongoDBAtlas.java b/src/main/java/com/airbyte/api/models/shared/MongoDBAtlas.java index 355f10674..75cba69d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/MongoDBAtlas.java +++ b/src/main/java/com/airbyte/api/models/shared/MongoDBAtlas.java @@ -14,17 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class MongoDBAtlas { +public class MongoDBAtlas { /** * URL of a cluster to connect to. */ @JsonProperty("cluster_url") private String clusterUrl; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("instance") private Optional instance; @@ -58,9 +58,10 @@ public Optional instance() { return (Optional) instance; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * URL of a cluster to connect to. @@ -77,13 +78,13 @@ public MongoDBAtlas withInstance(DestinationMongodbSchemasInstance instance) { return this; } + public MongoDBAtlas withInstance(Optional instance) { Utils.checkNotNull(instance, "instance"); this.instance = instance; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,15 +95,14 @@ public boolean equals(java.lang.Object o) { } MongoDBAtlas other = (MongoDBAtlas) o; return - Objects.deepEquals(this.clusterUrl, other.clusterUrl) && - Objects.deepEquals(this.instance, other.instance); + Utils.enhancedDeepEquals(this.clusterUrl, other.clusterUrl) && + Utils.enhancedDeepEquals(this.instance, other.instance); } @Override public int hashCode() { - return Objects.hash( - clusterUrl, - instance); + return Utils.enhancedHash( + clusterUrl, instance); } @Override @@ -111,17 +111,19 @@ public String toString() { "clusterUrl", clusterUrl, "instance", instance); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clusterUrl; - + private Optional instance; - + private Builder() { // force use of static builder() method } + /** * URL of a cluster to connect to. */ @@ -131,6 +133,7 @@ public Builder clusterUrl(String clusterUrl) { return this; } + public Builder instance(DestinationMongodbSchemasInstance instance) { Utils.checkNotNull(instance, "instance"); this.instance = Optional.ofNullable(instance); @@ -142,16 +145,17 @@ public Builder instance(Optional in this.instance = instance; return this; } - + public MongoDBAtlas build() { if (instance == null) { instance = _SINGLETON_VALUE_Instance.value(); } + return new MongoDBAtlas( - clusterUrl, - instance); + clusterUrl, instance); } + private static final LazySingletonValue> _SINGLETON_VALUE_Instance = new LazySingletonValue<>( "instance", diff --git a/src/main/java/com/airbyte/api/models/shared/MongoDBAtlasReplicaSet.java b/src/main/java/com/airbyte/api/models/shared/MongoDBAtlasReplicaSet.java index f0bafe843..34c259f00 100644 --- a/src/main/java/com/airbyte/api/models/shared/MongoDBAtlasReplicaSet.java +++ b/src/main/java/com/airbyte/api/models/shared/MongoDBAtlasReplicaSet.java @@ -18,8 +18,8 @@ import java.lang.Override; import java.lang.String; import java.util.HashMap; +import java.util.List; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -33,12 +33,15 @@ public class MongoDBAtlasReplicaSet { private Map additionalProperties; /** - * The authentication source where the user information is stored. See https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource for more details. + * The authentication source where the user information is stored. See + * https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource + * for more details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_source") private Optional authSource; + @JsonProperty("cluster_type") private SourceMongodbV2SchemasClusterType clusterType; @@ -49,10 +52,10 @@ public class MongoDBAtlasReplicaSet { private String connectionString; /** - * The name of the MongoDB database that contains the collection(s) to replicate. + * The names of the MongoDB databases that contain the collection(s) to replicate. */ - @JsonProperty("database") - private String database; + @JsonProperty("databases") + private List databases; /** * The password associated with this username. @@ -77,13 +80,13 @@ public class MongoDBAtlasReplicaSet { public MongoDBAtlasReplicaSet( @JsonProperty("auth_source") Optional authSource, @JsonProperty("connection_string") String connectionString, - @JsonProperty("database") String database, + @JsonProperty("databases") List databases, @JsonProperty("password") String password, @JsonProperty("schema_enforced") Optional schemaEnforced, @JsonProperty("username") String username) { Utils.checkNotNull(authSource, "authSource"); Utils.checkNotNull(connectionString, "connectionString"); - Utils.checkNotNull(database, "database"); + Utils.checkNotNull(databases, "databases"); Utils.checkNotNull(password, "password"); Utils.checkNotNull(schemaEnforced, "schemaEnforced"); Utils.checkNotNull(username, "username"); @@ -91,7 +94,7 @@ public MongoDBAtlasReplicaSet( this.authSource = authSource; this.clusterType = Builder._SINGLETON_VALUE_ClusterType.value(); this.connectionString = connectionString; - this.database = database; + this.databases = databases; this.password = password; this.schemaEnforced = schemaEnforced; this.username = username; @@ -99,10 +102,11 @@ public MongoDBAtlasReplicaSet( public MongoDBAtlasReplicaSet( String connectionString, - String database, + List databases, String password, String username) { - this(Optional.empty(), connectionString, database, password, Optional.empty(), username); + this(Optional.empty(), connectionString, databases, + password, Optional.empty(), username); } @JsonAnyGetter @@ -111,7 +115,9 @@ public Map additionalProperties() { } /** - * The authentication source where the user information is stored. See https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource for more details. + * The authentication source where the user information is stored. See + * https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource + * for more details. */ @JsonIgnore public Optional authSource() { @@ -132,11 +138,11 @@ public String connectionString() { } /** - * The name of the MongoDB database that contains the collection(s) to replicate. + * The names of the MongoDB databases that contain the collection(s) to replicate. */ @JsonIgnore - public String database() { - return database; + public List databases() { + return databases; } /** @@ -163,9 +169,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public MongoDBAtlasReplicaSet withAdditionalProperty(String key, Object value) { @@ -173,8 +180,7 @@ public MongoDBAtlasReplicaSet withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public MongoDBAtlasReplicaSet withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -182,7 +188,9 @@ public MongoDBAtlasReplicaSet withAdditionalProperties(Map addit } /** - * The authentication source where the user information is stored. See https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource for more details. + * The authentication source where the user information is stored. See + * https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource + * for more details. */ public MongoDBAtlasReplicaSet withAuthSource(String authSource) { Utils.checkNotNull(authSource, "authSource"); @@ -190,8 +198,11 @@ public MongoDBAtlasReplicaSet withAuthSource(String authSource) { return this; } + /** - * The authentication source where the user information is stored. See https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource for more details. + * The authentication source where the user information is stored. See + * https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource + * for more details. */ public MongoDBAtlasReplicaSet withAuthSource(Optional authSource) { Utils.checkNotNull(authSource, "authSource"); @@ -209,11 +220,11 @@ public MongoDBAtlasReplicaSet withConnectionString(String connectionString) { } /** - * The name of the MongoDB database that contains the collection(s) to replicate. + * The names of the MongoDB databases that contain the collection(s) to replicate. */ - public MongoDBAtlasReplicaSet withDatabase(String database) { - Utils.checkNotNull(database, "database"); - this.database = database; + public MongoDBAtlasReplicaSet withDatabases(List databases) { + Utils.checkNotNull(databases, "databases"); + this.databases = databases; return this; } @@ -235,6 +246,7 @@ public MongoDBAtlasReplicaSet withSchemaEnforced(boolean schemaEnforced) { return this; } + /** * When enabled, syncs will validate and structure records against the stream's schema. */ @@ -253,7 +265,6 @@ public MongoDBAtlasReplicaSet withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -264,27 +275,22 @@ public boolean equals(java.lang.Object o) { } MongoDBAtlasReplicaSet other = (MongoDBAtlasReplicaSet) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.authSource, other.authSource) && - Objects.deepEquals(this.clusterType, other.clusterType) && - Objects.deepEquals(this.connectionString, other.connectionString) && - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.schemaEnforced, other.schemaEnforced) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.authSource, other.authSource) && + Utils.enhancedDeepEquals(this.clusterType, other.clusterType) && + Utils.enhancedDeepEquals(this.connectionString, other.connectionString) && + Utils.enhancedDeepEquals(this.databases, other.databases) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.schemaEnforced, other.schemaEnforced) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - authSource, - clusterType, - connectionString, - database, - password, - schemaEnforced, - username); + return Utils.enhancedHash( + additionalProperties, authSource, clusterType, + connectionString, databases, password, + schemaEnforced, username); } @Override @@ -294,28 +300,29 @@ public String toString() { "authSource", authSource, "clusterType", clusterType, "connectionString", connectionString, - "database", database, + "databases", databases, "password", password, "schemaEnforced", schemaEnforced, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional authSource; - + private String connectionString; - - private String database; - + + private List databases; + private String password; - + private Optional schemaEnforced; - + private String username; - + private Builder() { // force use of static builder() method } @@ -336,8 +343,11 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * The authentication source where the user information is stored. See https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource for more details. + * The authentication source where the user information is stored. See + * https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource + * for more details. */ public Builder authSource(String authSource) { Utils.checkNotNull(authSource, "authSource"); @@ -346,7 +356,9 @@ public Builder authSource(String authSource) { } /** - * The authentication source where the user information is stored. See https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource for more details. + * The authentication source where the user information is stored. See + * https://www.mongodb.com/docs/manual/reference/connection-string/#mongodb-urioption-urioption.authSource + * for more details. */ public Builder authSource(Optional authSource) { Utils.checkNotNull(authSource, "authSource"); @@ -354,6 +366,7 @@ public Builder authSource(Optional authSource) { return this; } + /** * The connection string of the cluster that you want to replicate. */ @@ -363,15 +376,17 @@ public Builder connectionString(String connectionString) { return this; } + /** - * The name of the MongoDB database that contains the collection(s) to replicate. + * The names of the MongoDB databases that contain the collection(s) to replicate. */ - public Builder database(String database) { - Utils.checkNotNull(database, "database"); - this.database = database; + public Builder databases(List databases) { + Utils.checkNotNull(databases, "databases"); + this.databases = databases; return this; } + /** * The password associated with this username. */ @@ -381,6 +396,7 @@ public Builder password(String password) { return this; } + /** * When enabled, syncs will validate and structure records against the stream's schema. */ @@ -399,6 +415,7 @@ public Builder schemaEnforced(Optional schemaEnforced) { return this; } + /** * The username which is used to access the database. */ @@ -407,7 +424,7 @@ public Builder username(String username) { this.username = username; return this; } - + public MongoDBAtlasReplicaSet build() { if (authSource == null) { authSource = _SINGLETON_VALUE_AuthSource.value(); @@ -415,16 +432,14 @@ public MongoDBAtlasReplicaSet build() { if (schemaEnforced == null) { schemaEnforced = _SINGLETON_VALUE_SchemaEnforced.value(); } + return new MongoDBAtlasReplicaSet( - authSource, - connectionString, - database, - password, - schemaEnforced, - username) + authSource, connectionString, databases, + password, schemaEnforced, username) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthSource = new LazySingletonValue<>( "auth_source", diff --git a/src/main/java/com/airbyte/api/models/shared/MongoDbInstanceType.java b/src/main/java/com/airbyte/api/models/shared/MongoDbInstanceType.java index e92b577dd..8a17160c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/MongoDbInstanceType.java +++ b/src/main/java/com/airbyte/api/models/shared/MongoDbInstanceType.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * MongoDbInstanceType @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } MongoDbInstanceType other = (MongoDbInstanceType) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Mongodb.java b/src/main/java/com/airbyte/api/models/shared/Mongodb.java index c636a6e0a..930b1019d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mongodb.java +++ b/src/main/java/com/airbyte/api/models/shared/Mongodb.java @@ -14,7 +14,7 @@ public enum Mongodb { @JsonValue private final String value; - private Mongodb(String value) { + Mongodb(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MongodbV2.java b/src/main/java/com/airbyte/api/models/shared/MongodbV2.java index d323f63ea..7de0d6df9 100644 --- a/src/main/java/com/airbyte/api/models/shared/MongodbV2.java +++ b/src/main/java/com/airbyte/api/models/shared/MongodbV2.java @@ -14,7 +14,7 @@ public enum MongodbV2 { @JsonValue private final String value; - private MongodbV2(String value) { + MongodbV2(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Motherduck.java b/src/main/java/com/airbyte/api/models/shared/Motherduck.java index ca904ae59..1a6ff18d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Motherduck.java +++ b/src/main/java/com/airbyte/api/models/shared/Motherduck.java @@ -14,7 +14,7 @@ public enum Motherduck { @JsonValue private final String value; - private Motherduck(String value) { + Motherduck(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mssql.java b/src/main/java/com/airbyte/api/models/shared/Mssql.java index 60aad0b90..70cc0347f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mssql.java +++ b/src/main/java/com/airbyte/api/models/shared/Mssql.java @@ -14,7 +14,7 @@ public enum Mssql { @JsonValue private final String value; - private Mssql(String value) { + Mssql(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MssqlV2.java b/src/main/java/com/airbyte/api/models/shared/MssqlV2.java index 79797d09a..96b4384f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/MssqlV2.java +++ b/src/main/java/com/airbyte/api/models/shared/MssqlV2.java @@ -14,7 +14,7 @@ public enum MssqlV2 { @JsonValue private final String value; - private MssqlV2(String value) { + MssqlV2(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mux.java b/src/main/java/com/airbyte/api/models/shared/Mux.java index 2db6025c1..e0d45beb8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mux.java +++ b/src/main/java/com/airbyte/api/models/shared/Mux.java @@ -14,7 +14,7 @@ public enum Mux { @JsonValue private final String value; - private Mux(String value) { + Mux(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/MyHours.java b/src/main/java/com/airbyte/api/models/shared/MyHours.java index ed1288701..75b632cbd 100644 --- a/src/main/java/com/airbyte/api/models/shared/MyHours.java +++ b/src/main/java/com/airbyte/api/models/shared/MyHours.java @@ -14,7 +14,7 @@ public enum MyHours { @JsonValue private final String value; - private MyHours(String value) { + MyHours(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Mysql.java b/src/main/java/com/airbyte/api/models/shared/Mysql.java index fe7ac6589..6354753ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/Mysql.java +++ b/src/main/java/com/airbyte/api/models/shared/Mysql.java @@ -14,7 +14,7 @@ public enum Mysql { @JsonValue private final String value; - private Mysql(String value) { + Mysql(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/N8n.java b/src/main/java/com/airbyte/api/models/shared/N8n.java index fe290b37f..9ab6ad127 100644 --- a/src/main/java/com/airbyte/api/models/shared/N8n.java +++ b/src/main/java/com/airbyte/api/models/shared/N8n.java @@ -14,7 +14,7 @@ public enum N8n { @JsonValue private final String value; - private N8n(String value) { + N8n(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Name.java b/src/main/java/com/airbyte/api/models/shared/Name.java index f2a392a2d..6a5670eec 100644 --- a/src/main/java/com/airbyte/api/models/shared/Name.java +++ b/src/main/java/com/airbyte/api/models/shared/Name.java @@ -14,7 +14,7 @@ public enum Name { @JsonValue private final String value; - private Name(String value) { + Name(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java index e9e19d709..ef0e9965f 100644 --- a/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnum.java @@ -21,7 +21,7 @@ public enum NamespaceDefinitionEnum { @JsonValue private final String value; - private NamespaceDefinitionEnum(String value) { + NamespaceDefinitionEnum(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java index 1f4cb929e..94fb9470b 100644 --- a/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java +++ b/src/main/java/com/airbyte/api/models/shared/NamespaceDefinitionEnumNoDefault.java @@ -21,7 +21,7 @@ public enum NamespaceDefinitionEnumNoDefault { @JsonValue private final String value; - private NamespaceDefinitionEnumNoDefault(String value) { + NamespaceDefinitionEnumNoDefault(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Nasa.java b/src/main/java/com/airbyte/api/models/shared/Nasa.java index 3f9c6432c..35f13a97d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nasa.java +++ b/src/main/java/com/airbyte/api/models/shared/Nasa.java @@ -14,7 +14,7 @@ public enum Nasa { @JsonValue private final String value; - private Nasa(String value) { + Nasa(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NativeNetworkEncryptionNNE.java b/src/main/java/com/airbyte/api/models/shared/NativeNetworkEncryptionNNE.java index 00d9eaf4b..320ed3370 100644 --- a/src/main/java/com/airbyte/api/models/shared/NativeNetworkEncryptionNNE.java +++ b/src/main/java/com/airbyte/api/models/shared/NativeNetworkEncryptionNNE.java @@ -14,16 +14,16 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * NativeNetworkEncryptionNNE * - *

    The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. + *

    The native network encryption gives you the ability to encrypt database connections, without the + * configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different + * ports. */ public class NativeNetworkEncryptionNNE { - /** * This parameter defines the database encryption algorithm. */ @@ -31,6 +31,7 @@ public class NativeNetworkEncryptionNNE { @JsonProperty("encryption_algorithm") private Optional encryptionAlgorithm; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption_method") private Optional encryptionMethod; @@ -62,9 +63,10 @@ public Optional encryptionMethod() { return (Optional) encryptionMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * This parameter defines the database encryption algorithm. @@ -75,6 +77,7 @@ public NativeNetworkEncryptionNNE withEncryptionAlgorithm(EncryptionAlgorithm en return this; } + /** * This parameter defines the database encryption algorithm. */ @@ -84,7 +87,6 @@ public NativeNetworkEncryptionNNE withEncryptionAlgorithm(Optional encryptionAlgorithm; - + private Builder() { // force use of static builder() method } + /** * This parameter defines the database encryption algorithm. */ @@ -138,15 +141,17 @@ public Builder encryptionAlgorithm(Optional encry this.encryptionAlgorithm = encryptionAlgorithm; return this; } - + public NativeNetworkEncryptionNNE build() { if (encryptionAlgorithm == null) { encryptionAlgorithm = _SINGLETON_VALUE_EncryptionAlgorithm.value(); } + return new NativeNetworkEncryptionNNE( encryptionAlgorithm); } + private static final LazySingletonValue> _SINGLETON_VALUE_EncryptionAlgorithm = new LazySingletonValue<>( "encryption_algorithm", diff --git a/src/main/java/com/airbyte/api/models/shared/Navan.java b/src/main/java/com/airbyte/api/models/shared/Navan.java index 987210253..8e1a8fd69 100644 --- a/src/main/java/com/airbyte/api/models/shared/Navan.java +++ b/src/main/java/com/airbyte/api/models/shared/Navan.java @@ -14,7 +14,7 @@ public enum Navan { @JsonValue private final String value; - private Navan(String value) { + Navan(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NebiusAi.java b/src/main/java/com/airbyte/api/models/shared/NebiusAi.java index d3f44c39f..2b5669871 100644 --- a/src/main/java/com/airbyte/api/models/shared/NebiusAi.java +++ b/src/main/java/com/airbyte/api/models/shared/NebiusAi.java @@ -14,7 +14,7 @@ public enum NebiusAi { @JsonValue private final String value; - private NebiusAi(String value) { + NebiusAi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NessieCatalog.java b/src/main/java/com/airbyte/api/models/shared/NessieCatalog.java index 4ec021933..256751223 100644 --- a/src/main/java/com/airbyte/api/models/shared/NessieCatalog.java +++ b/src/main/java/com/airbyte/api/models/shared/NessieCatalog.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -39,14 +38,15 @@ public class NessieCatalog { @JsonProperty("access_token") private Optional accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("catalog_type") private Optional catalogType; /** - * The Nessie namespace to be used in the Table identifier. - * This will ONLY be used if the `Destination Namespace` setting for the connection is set to - * `Destination-defined` or `Source-defined` + * The Nessie namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` */ @JsonProperty("namespace") private String namespace; @@ -77,7 +77,8 @@ public NessieCatalog( public NessieCatalog( String namespace, String serverUri) { - this(Optional.empty(), Optional.empty(), namespace, serverUri); + this(Optional.empty(), Optional.empty(), namespace, + serverUri); } @JsonAnyGetter @@ -100,9 +101,9 @@ public Optional catalogType( } /** - * The Nessie namespace to be used in the Table identifier. - * This will ONLY be used if the `Destination Namespace` setting for the connection is set to - * `Destination-defined` or `Source-defined` + * The Nessie namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` */ @JsonIgnore public String namespace() { @@ -117,9 +118,10 @@ public String serverUri() { return serverUri; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public NessieCatalog withAdditionalProperty(String key, Object value) { @@ -127,8 +129,7 @@ public NessieCatalog withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public NessieCatalog withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -144,6 +145,7 @@ public NessieCatalog withAccessToken(String accessToken) { return this; } + /** * Optional token for authentication with the Nessie server. */ @@ -159,6 +161,7 @@ public NessieCatalog withCatalogType(DestinationS3DataLakeSchemasCatalogTypeCata return this; } + public NessieCatalog withCatalogType(Optional catalogType) { Utils.checkNotNull(catalogType, "catalogType"); this.catalogType = catalogType; @@ -166,9 +169,9 @@ public NessieCatalog withCatalogType(Optional additionalProperties = new HashMap<>(); - + private Optional accessToken = Optional.empty(); - + private Optional catalogType; - + private String namespace; - + private String serverUri; - + private Builder() { // force use of static builder() method } @@ -255,6 +255,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * Optional token for authentication with the Nessie server. */ @@ -273,6 +274,7 @@ public Builder accessToken(Optional accessToken) { return this; } + public Builder catalogType(DestinationS3DataLakeSchemasCatalogTypeCatalogType catalogType) { Utils.checkNotNull(catalogType, "catalogType"); this.catalogType = Optional.ofNullable(catalogType); @@ -285,10 +287,11 @@ public Builder catalogType(Optional> _SINGLETON_VALUE_CatalogType = new LazySingletonValue<>( "catalog_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Netsuite.java b/src/main/java/com/airbyte/api/models/shared/Netsuite.java index 8be54e642..2b0f18b02 100644 --- a/src/main/java/com/airbyte/api/models/shared/Netsuite.java +++ b/src/main/java/com/airbyte/api/models/shared/Netsuite.java @@ -14,7 +14,7 @@ public enum Netsuite { @JsonValue private final String value; - private Netsuite(String value) { + Netsuite(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NetsuiteEnterprise.java b/src/main/java/com/airbyte/api/models/shared/NetsuiteEnterprise.java index 5b5d123ce..a00d2c38b 100644 --- a/src/main/java/com/airbyte/api/models/shared/NetsuiteEnterprise.java +++ b/src/main/java/com/airbyte/api/models/shared/NetsuiteEnterprise.java @@ -14,7 +14,7 @@ public enum NetsuiteEnterprise { @JsonValue private final String value; - private NetsuiteEnterprise(String value) { + NetsuiteEnterprise(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NewsApi.java b/src/main/java/com/airbyte/api/models/shared/NewsApi.java index 0543b6729..5df5d3fbb 100644 --- a/src/main/java/com/airbyte/api/models/shared/NewsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/NewsApi.java @@ -14,7 +14,7 @@ public enum NewsApi { @JsonValue private final String value; - private NewsApi(String value) { + NewsApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Newsdata.java b/src/main/java/com/airbyte/api/models/shared/Newsdata.java index 83c3993fc..e829f0654 100644 --- a/src/main/java/com/airbyte/api/models/shared/Newsdata.java +++ b/src/main/java/com/airbyte/api/models/shared/Newsdata.java @@ -14,7 +14,7 @@ public enum Newsdata { @JsonValue private final String value; - private Newsdata(String value) { + Newsdata(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java b/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java index c16aed56c..5d7abb5ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java +++ b/src/main/java/com/airbyte/api/models/shared/NewsdataIo.java @@ -14,7 +14,7 @@ public enum NewsdataIo { @JsonValue private final String value; - private NewsdataIo(String value) { + NewsdataIo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Nexiopay.java b/src/main/java/com/airbyte/api/models/shared/Nexiopay.java index 74343b714..3a8e557b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nexiopay.java +++ b/src/main/java/com/airbyte/api/models/shared/Nexiopay.java @@ -14,7 +14,7 @@ public enum Nexiopay { @JsonValue private final String value; - private Nexiopay(String value) { + Nexiopay(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NinjaoneRmm.java b/src/main/java/com/airbyte/api/models/shared/NinjaoneRmm.java index d30ab5cef..f7929a3e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/NinjaoneRmm.java +++ b/src/main/java/com/airbyte/api/models/shared/NinjaoneRmm.java @@ -14,7 +14,7 @@ public enum NinjaoneRmm { @JsonValue private final String value; - private NinjaoneRmm(String value) { + NinjaoneRmm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NoAuth.java b/src/main/java/com/airbyte/api/models/shared/NoAuth.java index d60284f19..2b6e13495 100644 --- a/src/main/java/com/airbyte/api/models/shared/NoAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/NoAuth.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * NoAuth * - *

    Do not authenticate (suitable for locally running test clusters, do not use for clusters with public IP addresses) + *

    Do not authenticate (suitable for locally running test clusters, do not use for clusters with public + * IP addresses) */ public class NoAuth { @@ -30,7 +30,6 @@ public class NoAuth { @JsonCreator public NoAuth() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +39,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } NoAuth other = (NoAuth) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +68,21 @@ public String toString() { return Utils.toString(NoAuth.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public NoAuth build() { + return new NoAuth( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/NoAuthentication.java b/src/main/java/com/airbyte/api/models/shared/NoAuthentication.java index 49f667f4c..f75555f9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/NoAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/NoAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * NoAuthentication * - *

    Do not authenticate (suitable for locally running test clusters, do not use for clusters with public IP addresses) + *

    Do not authenticate (suitable for locally running test clusters, do not use for clusters with public + * IP addresses) */ public class NoAuthentication { @@ -30,7 +30,6 @@ public class NoAuthentication { @JsonCreator public NoAuthentication() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +39,11 @@ public Optional mode() return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } NoAuthentication other = (NoAuthentication) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +68,21 @@ public String toString() { return Utils.toString(NoAuthentication.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public NoAuthentication build() { + return new NoAuthentication( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/NoCompression.java b/src/main/java/com/airbyte/api/models/shared/NoCompression.java index ea566ae60..5f9e338df 100644 --- a/src/main/java/com/airbyte/api/models/shared/NoCompression.java +++ b/src/main/java/com/airbyte/api/models/shared/NoCompression.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class NoCompression { @JsonInclude(Include.NON_ABSENT) @@ -40,9 +40,10 @@ public Optional codec() { return (Optional) codec; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public NoCompression withCodec(Codec codec) { Utils.checkNotNull(codec, "codec"); @@ -50,13 +51,13 @@ public NoCompression withCodec(Codec codec) { return this; } + public NoCompression withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,12 +68,12 @@ public boolean equals(java.lang.Object o) { } NoCompression other = (NoCompression) o; return - Objects.deepEquals(this.codec, other.codec); + Utils.enhancedDeepEquals(this.codec, other.codec); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( codec); } @@ -81,15 +82,17 @@ public String toString() { return Utils.toString(NoCompression.class, "codec", codec); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional codec; - + private Builder() { // force use of static builder() method } + public Builder codec(Codec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -101,15 +104,17 @@ public Builder codec(Optional codec) { this.codec = codec; return this; } - + public NoCompression build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); } + return new NoCompression( codec); } + private static final LazySingletonValue> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/NoExternalEmbedding.java b/src/main/java/com/airbyte/api/models/shared/NoExternalEmbedding.java index 322131d64..cbee2b904 100644 --- a/src/main/java/com/airbyte/api/models/shared/NoExternalEmbedding.java +++ b/src/main/java/com/airbyte/api/models/shared/NoExternalEmbedding.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * NoExternalEmbedding * - *

    Do not calculate and pass embeddings to Weaviate. Suitable for clusters with configured vectorizers to calculate embeddings within Weaviate or for classes that should only support regular text search. + *

    Do not calculate and pass embeddings to Weaviate. Suitable for clusters with configured vectorizers + * to calculate embeddings within Weaviate or for classes that should only support regular text search. */ public class NoExternalEmbedding { @@ -30,7 +30,6 @@ public class NoExternalEmbedding { @JsonCreator public NoExternalEmbedding() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +39,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } NoExternalEmbedding other = (NoExternalEmbedding) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +68,21 @@ public String toString() { return Utils.toString(NoExternalEmbedding.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public NoExternalEmbedding build() { + return new NoExternalEmbedding( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/NoTunnel.java b/src/main/java/com/airbyte/api/models/shared/NoTunnel.java index bfec3fe40..b79608673 100644 --- a/src/main/java/com/airbyte/api/models/shared/NoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/NoTunnel.java @@ -5,41 +5,91 @@ import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; +/** + * NoTunnel + * + *

    No ssh tunnel needed to connect to database + */ public class NoTunnel { - /** - * No ssh tunnel needed to connect to database - */ + @JsonIgnore + private Map additionalProperties; + + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") - private TunnelMethod tunnelMethod; + private Optional tunnelMethod; @JsonCreator + public NoTunnel( + @JsonProperty("tunnel_method") Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.additionalProperties = new HashMap<>(); + this.tunnelMethod = tunnelMethod; + } + public NoTunnel() { - - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); + this(Optional.empty()); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; } - /** - * No ssh tunnel needed to connect to database - */ + @SuppressWarnings("unchecked") @JsonIgnore - public TunnelMethod tunnelMethod() { - return tunnelMethod; + public Optional tunnelMethod() { + return (Optional) tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + @JsonAnySetter + public NoTunnel withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public NoTunnel withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public NoTunnel withTunnelMethod(TunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + + public NoTunnel withTunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,36 +100,78 @@ public boolean equals(java.lang.Object o) { } NoTunnel other = (NoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( - tunnelMethod); + return Utils.enhancedHash( + additionalProperties, tunnelMethod); } @Override public String toString() { return Utils.toString(NoTunnel.class, + "additionalProperties", additionalProperties, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Map additionalProperties = new HashMap<>(); + + private Optional tunnelMethod; + private Builder() { // force use of static builder() method } - + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder tunnelMethod(TunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public Builder tunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + public NoTunnel build() { + if (tunnelMethod == null) { + tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); + } + return new NoTunnel( - ); + tunnelMethod) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = + + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", "\"NO_TUNNEL\"", - new TypeReference() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Nocrm.java b/src/main/java/com/airbyte/api/models/shared/Nocrm.java index e6d8cc315..54ab9ec68 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nocrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Nocrm.java @@ -14,7 +14,7 @@ public enum Nocrm { @JsonValue private final String value; - private Nocrm(String value) { + Nocrm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnum.java b/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnum.java index 6dc5ca078..88efc1021 100644 --- a/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnum.java @@ -22,7 +22,7 @@ public enum NonBreakingSchemaUpdatesBehaviorEnum { @JsonValue private final String value; - private NonBreakingSchemaUpdatesBehaviorEnum(String value) { + NonBreakingSchemaUpdatesBehaviorEnum(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.java b/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.java index 9c3b74d36..7f8f63307 100644 --- a/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.java +++ b/src/main/java/com/airbyte/api/models/shared/NonBreakingSchemaUpdatesBehaviorEnumNoDefault.java @@ -22,7 +22,7 @@ public enum NonBreakingSchemaUpdatesBehaviorEnumNoDefault { @JsonValue private final String value; - private NonBreakingSchemaUpdatesBehaviorEnumNoDefault(String value) { + NonBreakingSchemaUpdatesBehaviorEnumNoDefault(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/None.java b/src/main/java/com/airbyte/api/models/shared/None.java index 9445c0a33..e5bed6564 100644 --- a/src/main/java/com/airbyte/api/models/shared/None.java +++ b/src/main/java/com/airbyte/api/models/shared/None.java @@ -5,40 +5,87 @@ import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + -/** - * None - * - *

    No authentication will be used - */ public class None { - @JsonProperty("method") - private DestinationElasticsearchMethod method; + @JsonIgnore + private Map additionalProperties; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("storage_type") + private Optional storageType; @JsonCreator + public None( + @JsonProperty("storage_type") Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.additionalProperties = new HashMap<>(); + this.storageType = storageType; + } + public None() { - - this.method = Builder._SINGLETON_VALUE_Method.value(); + this(Optional.empty()); } + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") @JsonIgnore - public DestinationElasticsearchMethod method() { - return method; + public Optional storageType() { + return (Optional) storageType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + @JsonAnySetter + public None withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public None withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public None withStorageType(StorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + + public None withStorageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,36 +96,78 @@ public boolean equals(java.lang.Object o) { } None other = (None) o; return - Objects.deepEquals(this.method, other.method); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.storageType, other.storageType); } @Override public int hashCode() { - return Objects.hash( - method); + return Utils.enhancedHash( + additionalProperties, storageType); } @Override public String toString() { return Utils.toString(None.class, - "method", method); + "additionalProperties", additionalProperties, + "storageType", storageType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Map additionalProperties = new HashMap<>(); + + private Optional storageType; + private Builder() { // force use of static builder() method } - + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder storageType(StorageType storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = Optional.ofNullable(storageType); + return this; + } + + public Builder storageType(Optional storageType) { + Utils.checkNotNull(storageType, "storageType"); + this.storageType = storageType; + return this; + } + public None build() { + if (storageType == null) { + storageType = _SINGLETON_VALUE_StorageType.value(); + } + return new None( - ); + storageType) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue _SINGLETON_VALUE_Method = + + private static final LazySingletonValue> _SINGLETON_VALUE_StorageType = new LazySingletonValue<>( - "method", - "\"none\"", - new TypeReference() {}); + "storage_type", + "\"None\"", + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/Normalization.java b/src/main/java/com/airbyte/api/models/shared/Normalization.java index 471bae0ad..830c6ccc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Normalization.java +++ b/src/main/java/com/airbyte/api/models/shared/Normalization.java @@ -11,7 +11,8 @@ /** * Normalization * - *

    Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs for details. + *

    Whether the input JSON data should be normalized (flattened) in the output CSV. Please refer to docs + * for details. */ public enum Normalization { NO_FLATTENING("No flattening"), @@ -20,7 +21,7 @@ public enum Normalization { @JsonValue private final String value; - private Normalization(String value) { + Normalization(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java b/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java index b541d9ec0..f8649dada 100644 --- a/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java +++ b/src/main/java/com/airbyte/api/models/shared/NorthpassLms.java @@ -14,7 +14,7 @@ public enum NorthpassLms { @JsonValue private final String value; - private NorthpassLms(String value) { + NorthpassLms(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Not.java b/src/main/java/com/airbyte/api/models/shared/Not.java index 6ec218f63..b41de027a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Not.java +++ b/src/main/java/com/airbyte/api/models/shared/Not.java @@ -10,16 +10,16 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; -public class Not implements RowFilteringOperation { +public class Not implements RowFilteringOperation { /** * Conditions to evaluate with the NOT operator. */ @JsonProperty("conditions") private List conditions; + @JsonProperty("type") private RowFilteringOperationType type; @@ -47,9 +47,10 @@ public String type() { return Utils.discriminatorToString(type); } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Conditions to evaluate with the NOT operator. @@ -66,7 +67,6 @@ public Not withType(RowFilteringOperationType type) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,15 +77,14 @@ public boolean equals(java.lang.Object o) { } Not other = (Not) o; return - Objects.deepEquals(this.conditions, other.conditions) && - Objects.deepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.conditions, other.conditions) && + Utils.enhancedDeepEquals(this.type, other.type); } @Override public int hashCode() { - return Objects.hash( - conditions, - type); + return Utils.enhancedHash( + conditions, type); } @Override @@ -94,17 +93,19 @@ public String toString() { "conditions", conditions, "type", type); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List conditions; - + private RowFilteringOperationType type; - + private Builder() { // force use of static builder() method } + /** * Conditions to evaluate with the NOT operator. */ @@ -114,16 +115,18 @@ public Builder conditions(List conditions) { return this; } + public Builder type(RowFilteringOperationType type) { Utils.checkNotNull(type, "type"); this.type = type; return this; } - + public Not build() { + return new Not( - conditions, - type); + conditions, type); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NotExpression.java b/src/main/java/com/airbyte/api/models/shared/NotExpression.java index b112007f8..862908730 100644 --- a/src/main/java/com/airbyte/api/models/shared/NotExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/NotExpression.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -28,6 +27,7 @@ public class NotExpression { @JsonProperty("expression") private Optional expression; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter_type") private Optional filterType; @@ -56,9 +56,10 @@ public Optional filterType() { return (Optional) filterType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public NotExpression withExpression(SourceGoogleAnalyticsDataApiSchemasExpression expression) { Utils.checkNotNull(expression, "expression"); @@ -66,13 +67,13 @@ public NotExpression withExpression(SourceGoogleAnalyticsDataApiSchemasExpressio return this; } + public NotExpression withExpression(Optional expression) { Utils.checkNotNull(expression, "expression"); this.expression = expression; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -83,15 +84,14 @@ public boolean equals(java.lang.Object o) { } NotExpression other = (NotExpression) o; return - Objects.deepEquals(this.expression, other.expression) && - Objects.deepEquals(this.filterType, other.filterType); + Utils.enhancedDeepEquals(this.expression, other.expression) && + Utils.enhancedDeepEquals(this.filterType, other.filterType); } @Override public int hashCode() { - return Objects.hash( - expression, - filterType); + return Utils.enhancedHash( + expression, filterType); } @Override @@ -100,15 +100,17 @@ public String toString() { "expression", expression, "filterType", filterType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional expression = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder expression(SourceGoogleAnalyticsDataApiSchemasExpression expression) { Utils.checkNotNull(expression, "expression"); this.expression = Optional.ofNullable(expression); @@ -120,12 +122,14 @@ public Builder expression(Optional> _SINGLETON_VALUE_FilterType = new LazySingletonValue<>( "filter_type", diff --git a/src/main/java/com/airbyte/api/models/shared/NotificationConfig.java b/src/main/java/com/airbyte/api/models/shared/NotificationConfig.java index ced22bea7..39e045908 100644 --- a/src/main/java/com/airbyte/api/models/shared/NotificationConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/NotificationConfig.java @@ -12,7 +12,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -21,7 +20,6 @@ *

    Configures a notification. */ public class NotificationConfig { - /** * Configures an email notification. */ @@ -68,9 +66,10 @@ public Optional webhook() { return (Optional) webhook; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Configures an email notification. @@ -81,6 +80,7 @@ public NotificationConfig withEmail(EmailNotificationConfig email) { return this; } + /** * Configures an email notification. */ @@ -99,6 +99,7 @@ public NotificationConfig withWebhook(WebhookNotificationConfig webhook) { return this; } + /** * Configures a webhook notification. */ @@ -108,7 +109,6 @@ public NotificationConfig withWebhook(Optional email = Optional.empty(); - + private Optional webhook = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Configures an email notification. */ @@ -165,6 +166,7 @@ public Builder email(Optional email) { return this; } + /** * Configures a webhook notification. */ @@ -182,11 +184,12 @@ public Builder webhook(Optional webhook) { this.webhook = webhook; return this; } - + public NotificationConfig build() { + return new NotificationConfig( - email, - webhook); + email, webhook); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NotificationsConfig.java b/src/main/java/com/airbyte/api/models/shared/NotificationsConfig.java index 323e0bab4..362d6f69e 100644 --- a/src/main/java/com/airbyte/api/models/shared/NotificationsConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/NotificationsConfig.java @@ -12,7 +12,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -21,7 +20,6 @@ *

    Configures workspace notifications. */ public class NotificationsConfig { - /** * Configures a notification. */ @@ -87,7 +85,8 @@ public NotificationsConfig( } public NotificationsConfig() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -144,9 +143,10 @@ public Optional syncDisabledWarning() { return (Optional) syncDisabledWarning; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Configures a notification. @@ -157,6 +157,7 @@ public NotificationsConfig withConnectionUpdate(NotificationConfig connectionUpd return this; } + /** * Configures a notification. */ @@ -175,6 +176,7 @@ public NotificationsConfig withConnectionUpdateActionRequired(NotificationConfig return this; } + /** * Configures a notification. */ @@ -193,6 +195,7 @@ public NotificationsConfig withFailure(NotificationConfig failure) { return this; } + /** * Configures a notification. */ @@ -211,6 +214,7 @@ public NotificationsConfig withSuccess(NotificationConfig success) { return this; } + /** * Configures a notification. */ @@ -229,6 +233,7 @@ public NotificationsConfig withSyncDisabled(NotificationConfig syncDisabled) { return this; } + /** * Configures a notification. */ @@ -247,6 +252,7 @@ public NotificationsConfig withSyncDisabledWarning(NotificationConfig syncDisabl return this; } + /** * Configures a notification. */ @@ -256,7 +262,6 @@ public NotificationsConfig withSyncDisabledWarning(Optional connectionUpdate = Optional.empty(); - + private Optional connectionUpdateActionRequired = Optional.empty(); - + private Optional failure = Optional.empty(); - + private Optional success = Optional.empty(); - + private Optional syncDisabled = Optional.empty(); - + private Optional syncDisabledWarning = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Configures a notification. */ @@ -333,6 +336,7 @@ public Builder connectionUpdate(Optional connectio return this; } + /** * Configures a notification. */ @@ -351,6 +355,7 @@ public Builder connectionUpdateActionRequired(Optional failure) { return this; } + /** * Configures a notification. */ @@ -387,6 +393,7 @@ public Builder success(Optional success) { return this; } + /** * Configures a notification. */ @@ -405,6 +412,7 @@ public Builder syncDisabled(Optional syncDisabled) return this; } + /** * Configures a notification. */ @@ -422,15 +430,13 @@ public Builder syncDisabledWarning(Optional syncDi this.syncDisabledWarning = syncDisabledWarning; return this; } - + public NotificationsConfig build() { + return new NotificationsConfig( - connectionUpdate, - connectionUpdateActionRequired, - failure, - success, - syncDisabled, - syncDisabledWarning); + connectionUpdate, connectionUpdateActionRequired, failure, + success, syncDisabled, syncDisabledWarning); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Notion.java b/src/main/java/com/airbyte/api/models/shared/Notion.java index 0c491b8a9..ab4d2cec8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Notion.java +++ b/src/main/java/com/airbyte/api/models/shared/Notion.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Notion { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Notion withCredentials(NotionCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Notion withCredentials(NotionCredentials credentials) { return this; } + public Notion withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Notion other = (Notion) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Notion.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(NotionCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Notion build() { + return new Notion( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/NotionCredentials.java b/src/main/java/com/airbyte/api/models/shared/NotionCredentials.java index efefc24b8..835678f94 100644 --- a/src/main/java/com/airbyte/api/models/shared/NotionCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/NotionCredentials.java @@ -11,20 +11,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class NotionCredentials { +public class NotionCredentials { /** - * The Client ID of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client ID of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * The Client Secret of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client Secret of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") @@ -45,7 +48,9 @@ public NotionCredentials() { } /** - * The Client ID of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client ID of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ @JsonIgnore public Optional clientId() { @@ -53,19 +58,24 @@ public Optional clientId() { } /** - * The Client Secret of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client Secret of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ @JsonIgnore public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Client ID of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client ID of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public NotionCredentials withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -73,8 +83,11 @@ public NotionCredentials withClientId(String clientId) { return this; } + /** - * The Client ID of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client ID of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public NotionCredentials withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +96,9 @@ public NotionCredentials withClientId(Optional clientId) { } /** - * The Client Secret of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client Secret of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public NotionCredentials withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -91,8 +106,11 @@ public NotionCredentials withClientSecret(String clientSecret) { return this; } + /** - * The Client Secret of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client Secret of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public NotionCredentials withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -100,7 +118,6 @@ public NotionCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +128,14 @@ public boolean equals(java.lang.Object o) { } NotionCredentials other = (NotionCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,19 +144,23 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The Client ID of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client ID of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -149,7 +169,9 @@ public Builder clientId(String clientId) { } /** - * The Client ID of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client ID of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -157,8 +179,11 @@ public Builder clientId(Optional clientId) { return this; } + /** - * The Client Secret of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client Secret of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -167,18 +192,21 @@ public Builder clientSecret(String clientSecret) { } /** - * The Client Secret of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client Secret of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public NotionCredentials build() { + return new NotionCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Nullable.java b/src/main/java/com/airbyte/api/models/shared/Nullable.java index 40cc21bea..c2d828720 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nullable.java +++ b/src/main/java/com/airbyte/api/models/shared/Nullable.java @@ -16,7 +16,7 @@ public enum Nullable { @JsonValue private final String value; - private Nullable(String value) { + Nullable(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/NumericFilter.java b/src/main/java/com/airbyte/api/models/shared/NumericFilter.java index 7ea279da7..5a1ef775b 100644 --- a/src/main/java/com/airbyte/api/models/shared/NumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/NumericFilter.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class NumericFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasFilterName filterName; + @JsonProperty("operation") private List operation; + @JsonProperty("value") private Value value; @@ -51,9 +53,10 @@ public Value value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public NumericFilter withOperation(List operation) { Utils.checkNotNull(operation, "operation"); @@ -67,7 +70,6 @@ public NumericFilter withValue(Value value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } NumericFilter other = (NumericFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.operation, other.operation) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - filterName, - operation, - value); + return Utils.enhancedHash( + filterName, operation, value); } @Override @@ -98,35 +98,39 @@ public String toString() { "operation", operation, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List operation; - + private Value value; - + private Builder() { // force use of static builder() method } + public Builder operation(List operation) { Utils.checkNotNull(operation, "operation"); this.operation = operation; return this; } + public Builder value(Value value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public NumericFilter build() { + return new NumericFilter( - operation, - value); + operation, value); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/Nutshell.java b/src/main/java/com/airbyte/api/models/shared/Nutshell.java index ab835e5ab..2ad9ec06e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nutshell.java +++ b/src/main/java/com/airbyte/api/models/shared/Nutshell.java @@ -14,7 +14,7 @@ public enum Nutshell { @JsonValue private final String value; - private Nutshell(String value) { + Nutshell(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Nylas.java b/src/main/java/com/airbyte/api/models/shared/Nylas.java index c7345764a..f45c50090 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nylas.java +++ b/src/main/java/com/airbyte/api/models/shared/Nylas.java @@ -14,7 +14,7 @@ public enum Nylas { @JsonValue private final String value; - private Nylas(String value) { + Nylas(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Nytimes.java b/src/main/java/com/airbyte/api/models/shared/Nytimes.java index 1b0106d62..8b5a72346 100644 --- a/src/main/java/com/airbyte/api/models/shared/Nytimes.java +++ b/src/main/java/com/airbyte/api/models/shared/Nytimes.java @@ -14,7 +14,7 @@ public enum Nytimes { @JsonValue private final String value; - private Nytimes(String value) { + Nytimes(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth.java b/src/main/java/com/airbyte/api/models/shared/OAuth.java index bf7ce0149..434772df3 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth.java @@ -5,143 +5,187 @@ import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; +import java.util.HashMap; +import java.util.Map; import java.util.Optional; + public class OAuth { - /** - * OAuth access token - */ - @JsonProperty("access_token") - private String accessToken; + @JsonIgnore + private Map additionalProperties; /** - * OAuth Client Id + * The Client ID of your HubSpot developer application. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this ID. */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") - private Optional clientId; + private String clientId; /** - * OAuth Client secret + * The client secret for your HubSpot developer application. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this secret. */ - @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") - private Optional clientSecret; + private String clientSecret; + + /** + * Refresh token to renew an expired access token. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this token. + */ + @JsonProperty("refresh_token") + private String refreshToken; + @JsonInclude(Include.NON_ABSENT) - @JsonProperty("option_title") - private Optional optionTitle; + @JsonProperty("type") + private Optional type; @JsonCreator public OAuth( - @JsonProperty("access_token") String accessToken, - @JsonProperty("client_id") Optional clientId, - @JsonProperty("client_secret") Optional clientSecret) { - Utils.checkNotNull(accessToken, "accessToken"); + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("refresh_token") String refreshToken, + @JsonProperty("type") Optional type) { Utils.checkNotNull(clientId, "clientId"); Utils.checkNotNull(clientSecret, "clientSecret"); - this.accessToken = accessToken; + Utils.checkNotNull(refreshToken, "refreshToken"); + Utils.checkNotNull(type, "type"); + this.additionalProperties = new HashMap<>(); this.clientId = clientId; this.clientSecret = clientSecret; - this.optionTitle = Builder._SINGLETON_VALUE_OptionTitle.value(); + this.refreshToken = refreshToken; + this.type = type; } public OAuth( - String accessToken) { - this(accessToken, Optional.empty(), Optional.empty()); + String clientId, + String clientSecret, + String refreshToken) { + this(clientId, clientSecret, refreshToken, + Optional.empty()); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; } /** - * OAuth access token + * The Client ID of your HubSpot developer application. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this ID. */ @JsonIgnore - public String accessToken() { - return accessToken; + public String clientId() { + return clientId; } /** - * OAuth Client Id + * The client secret for your HubSpot developer application. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this secret. */ @JsonIgnore - public Optional clientId() { - return clientId; + public String clientSecret() { + return clientSecret; } /** - * OAuth Client secret + * Refresh token to renew an expired access token. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this token. */ @JsonIgnore - public Optional clientSecret() { - return clientSecret; + public String refreshToken() { + return refreshToken; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional optionTitle() { - return (Optional) optionTitle; + public Optional type() { + return (Optional) type; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } - /** - * OAuth access token - */ - public OAuth withAccessToken(String accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = accessToken; + + @JsonAnySetter + public OAuth withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); return this; } - - /** - * OAuth Client Id - */ - public OAuth withClientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = Optional.ofNullable(clientId); + public OAuth withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; return this; } /** - * OAuth Client Id + * The Client ID of your HubSpot developer application. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this ID. */ - public OAuth withClientId(Optional clientId) { + public OAuth withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } /** - * OAuth Client secret + * The client secret for your HubSpot developer application. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this secret. */ public OAuth withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = Optional.ofNullable(clientSecret); + this.clientSecret = clientSecret; return this; } /** - * OAuth Client secret + * Refresh token to renew an expired access token. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this token. */ - public OAuth withClientSecret(Optional clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = clientSecret; + public OAuth withRefreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; + return this; + } + + public OAuth withType(Type type) { + Utils.checkNotNull(type, "type"); + this.type = Optional.ofNullable(type); + return this; + } + + + public OAuth withType(Optional type) { + Utils.checkNotNull(type, "type"); + this.type = type; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -152,98 +196,128 @@ public boolean equals(java.lang.Object o) { } OAuth other = (OAuth) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.optionTitle, other.optionTitle); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.type, other.type); } @Override public int hashCode() { - return Objects.hash( - accessToken, - clientId, - clientSecret, - optionTitle); + return Utils.enhancedHash( + additionalProperties, clientId, clientSecret, + refreshToken, type); } @Override public String toString() { return Utils.toString(OAuth.class, - "accessToken", accessToken, + "additionalProperties", additionalProperties, "clientId", clientId, "clientSecret", clientSecret, - "optionTitle", optionTitle); + "refreshToken", refreshToken, + "type", type); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - - private String accessToken; - - private Optional clientId = Optional.empty(); - - private Optional clientSecret = Optional.empty(); - + + private Map additionalProperties = new HashMap<>(); + + private String clientId; + + private String clientSecret; + + private String refreshToken; + + private Optional type; + private Builder() { // force use of static builder() method } - /** - * OAuth access token - */ - public Builder accessToken(String accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = accessToken; + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); return this; } - /** - * OAuth Client Id - */ - public Builder clientId(String clientId) { - Utils.checkNotNull(clientId, "clientId"); - this.clientId = Optional.ofNullable(clientId); + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; return this; } + /** - * OAuth Client Id + * The Client ID of your HubSpot developer application. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this ID. */ - public Builder clientId(Optional clientId) { + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + /** - * OAuth Client secret + * The client secret for your HubSpot developer application. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this secret. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = Optional.ofNullable(clientSecret); + this.clientSecret = clientSecret; return this; } + /** - * OAuth Client secret + * Refresh token to renew an expired access token. See the <a + * href=\"https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart\">Hubspot + * docs</a> if you need help finding this token. */ - public Builder clientSecret(Optional clientSecret) { - Utils.checkNotNull(clientSecret, "clientSecret"); - this.clientSecret = clientSecret; + public Builder refreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; return this; } - + + + public Builder type(Type type) { + Utils.checkNotNull(type, "type"); + this.type = Optional.ofNullable(type); + return this; + } + + public Builder type(Optional type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + public OAuth build() { + if (type == null) { + type = _SINGLETON_VALUE_Type.value(); + } + return new OAuth( - accessToken, - clientId, - clientSecret); + clientId, clientSecret, refreshToken, + type) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue> _SINGLETON_VALUE_OptionTitle = + + private static final LazySingletonValue> _SINGLETON_VALUE_Type = new LazySingletonValue<>( - "option_title", - "\"OAuth Credentials\"", - new TypeReference>() {}); + "type", + "\"OAuth\"", + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth20.java b/src/main/java/com/airbyte/api/models/shared/OAuth20.java index 44d1936f7..60b9fec70 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth20.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class OAuth20 { @@ -79,9 +79,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your OAuth application @@ -110,7 +111,6 @@ public OAuth20 withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +121,16 @@ public boolean equals(java.lang.Object o) { } OAuth20 other = (OAuth20) o; return - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - authMethod, - clientId, - clientSecret, + return Utils.enhancedHash( + authMethod, clientId, clientSecret, refreshToken); } @@ -144,19 +142,21 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * The Client ID of your OAuth application */ @@ -166,6 +166,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -175,6 +176,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Refresh Token to obtain new Access Token, when it's expired. */ @@ -183,14 +185,14 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public OAuth20 build() { + return new OAuth20( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth20Credentials.java b/src/main/java/com/airbyte/api/models/shared/OAuth20Credentials.java index 7033c1f81..1a4ac819d 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth20Credentials.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth20Credentials.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * OAuth20Credentials @@ -17,7 +16,6 @@ *

    OAuth2.0 credentials used to authenticate admin actions (creating/deleting corpora) */ public class OAuth20Credentials { - /** * OAuth2.0 client id */ @@ -56,9 +54,10 @@ public String clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * OAuth2.0 client id @@ -78,7 +77,6 @@ public OAuth20Credentials withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -89,15 +87,14 @@ public boolean equals(java.lang.Object o) { } OAuth20Credentials other = (OAuth20Credentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -106,17 +103,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + /** * OAuth2.0 client id */ @@ -126,6 +125,7 @@ public Builder clientId(String clientId) { return this; } + /** * OAuth2.0 client secret */ @@ -134,11 +134,12 @@ public Builder clientSecret(String clientSecret) { this.clientSecret = clientSecret; return this; } - + public OAuth20Credentials build() { + return new OAuth20Credentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java b/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java index 0ff334031..f8c6d24a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth20WithPrivateKey.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class OAuth20WithPrivateKey { @@ -96,9 +96,10 @@ public String scope() { return scope; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your OAuth application. @@ -136,7 +137,6 @@ public OAuth20WithPrivateKey withScope(String scope) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -147,21 +147,18 @@ public boolean equals(java.lang.Object o) { } OAuth20WithPrivateKey other = (OAuth20WithPrivateKey) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.keyId, other.keyId) && - Objects.deepEquals(this.privateKey, other.privateKey) && - Objects.deepEquals(this.scope, other.scope); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.keyId, other.keyId) && + Utils.enhancedDeepEquals(this.privateKey, other.privateKey) && + Utils.enhancedDeepEquals(this.scope, other.scope); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - keyId, - privateKey, - scope); + return Utils.enhancedHash( + authType, clientId, keyId, + privateKey, scope); } @Override @@ -173,21 +170,23 @@ public String toString() { "privateKey", privateKey, "scope", scope); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String keyId; - + private String privateKey; - + private String scope; - + private Builder() { // force use of static builder() method } + /** * The Client ID of your OAuth application. */ @@ -197,6 +196,7 @@ public Builder clientId(String clientId) { return this; } + /** * The key ID (kid). */ @@ -206,6 +206,7 @@ public Builder keyId(String keyId) { return this; } + /** * The private key in PEM format */ @@ -215,6 +216,7 @@ public Builder privateKey(String privateKey) { return this; } + /** * The OAuth scope. */ @@ -223,15 +225,15 @@ public Builder scope(String scope) { this.scope = scope; return this; } - + public OAuth20WithPrivateKey build() { + return new OAuth20WithPrivateKey( - clientId, - keyId, - privateKey, + clientId, keyId, privateKey, scope); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth2AccessToken.java b/src/main/java/com/airbyte/api/models/shared/OAuth2AccessToken.java index 68e159a22..6ad63dd7e 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth2AccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth2AccessToken.java @@ -11,16 +11,19 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class OAuth2AccessToken { +public class OAuth2AccessToken { /** - * Also called <a href="https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-testing">API Access Token </a> The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes. + * Also called API + * Access Token The access token used to call the Auth0 Management API Token. It's a JWT that + * contains specific grant permissions knowns as scopes. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("auth_type") private SourceAuth0SchemasAuthenticationMethod authType; @@ -33,7 +36,10 @@ public OAuth2AccessToken( } /** - * Also called <a href="https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-testing">API Access Token </a> The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes. + * Also called API + * Access Token The access token used to call the Auth0 Management API Token. It's a JWT that + * contains specific grant permissions knowns as scopes. */ @JsonIgnore public String accessToken() { @@ -45,12 +51,16 @@ public SourceAuth0SchemasAuthenticationMethod authType() { return authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Also called <a href="https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-testing">API Access Token </a> The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes. + * Also called API + * Access Token The access token used to call the Auth0 Management API Token. It's a JWT that + * contains specific grant permissions knowns as scopes. */ public OAuth2AccessToken withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -58,7 +68,6 @@ public OAuth2AccessToken withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +78,14 @@ public boolean equals(java.lang.Object o) { } OAuth2AccessToken other = (OAuth2AccessToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType); + return Utils.enhancedHash( + accessToken, authType); } @Override @@ -86,29 +94,36 @@ public String toString() { "accessToken", accessToken, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * Also called <a href="https://auth0.com/docs/secure/tokens/access-tokens/get-management-api-access-tokens-for-testing">API Access Token </a> The access token used to call the Auth0 Management API Token. It's a JWT that contains specific grant permissions knowns as scopes. + * Also called API + * Access Token The access token used to call the Auth0 Management API Token. It's a JWT that + * contains specific grant permissions knowns as scopes. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public OAuth2AccessToken build() { + return new OAuth2AccessToken( accessToken); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth2Authentication.java b/src/main/java/com/airbyte/api/models/shared/OAuth2Authentication.java new file mode 100644 index 000000000..6ece06391 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/OAuth2Authentication.java @@ -0,0 +1,317 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + +/** + * OAuth2Authentication + * + *

    Authenticate using OAuth2. This requires a consumer key, the private part of the certificate with + * which netsuite OAuth2 Client Credentials was setup and the certificate ID for the OAuth2 setup + * entry. + */ +public class OAuth2Authentication { + + @JsonIgnore + private Map additionalProperties; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("authentication_method") + private Optional authenticationMethod; + + /** + * The consumer key used for OAuth2 authentication. This is generated in NetSuite when creating an + * integration record. + */ + @JsonProperty("client_id") + private String clientId; + + /** + * The certificate ID for the OAuth 2.0 Client Credentials Setup entry. + */ + @JsonProperty("key_id") + private String keyId; + + /** + * The private portion of the certificate with which OAuth2 was setup. ( created with openssl req -new + * -x509 -newkey rsa:4096 -keyout private.pem -sigopt rsa_padding_mode:pss -sha256 -sigopt + * rsa_pss_saltlen:64 -out public.pem -nodes -days 365 ) + */ + @JsonProperty("oauth2_private_key") + private String oauth2PrivateKey; + + @JsonCreator + public OAuth2Authentication( + @JsonProperty("authentication_method") Optional authenticationMethod, + @JsonProperty("client_id") String clientId, + @JsonProperty("key_id") String keyId, + @JsonProperty("oauth2_private_key") String oauth2PrivateKey) { + Utils.checkNotNull(authenticationMethod, "authenticationMethod"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(keyId, "keyId"); + Utils.checkNotNull(oauth2PrivateKey, "oauth2PrivateKey"); + this.additionalProperties = new HashMap<>(); + this.authenticationMethod = authenticationMethod; + this.clientId = clientId; + this.keyId = keyId; + this.oauth2PrivateKey = oauth2PrivateKey; + } + + public OAuth2Authentication( + String clientId, + String keyId, + String oauth2PrivateKey) { + this(Optional.empty(), clientId, keyId, + oauth2PrivateKey); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional authenticationMethod() { + return (Optional) authenticationMethod; + } + + /** + * The consumer key used for OAuth2 authentication. This is generated in NetSuite when creating an + * integration record. + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * The certificate ID for the OAuth 2.0 Client Credentials Setup entry. + */ + @JsonIgnore + public String keyId() { + return keyId; + } + + /** + * The private portion of the certificate with which OAuth2 was setup. ( created with openssl req -new + * -x509 -newkey rsa:4096 -keyout private.pem -sigopt rsa_padding_mode:pss -sha256 -sigopt + * rsa_pss_saltlen:64 -out public.pem -nodes -days 365 ) + */ + @JsonIgnore + public String oauth2PrivateKey() { + return oauth2PrivateKey; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public OAuth2Authentication withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public OAuth2Authentication withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public OAuth2Authentication withAuthenticationMethod(SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod authenticationMethod) { + Utils.checkNotNull(authenticationMethod, "authenticationMethod"); + this.authenticationMethod = Optional.ofNullable(authenticationMethod); + return this; + } + + + public OAuth2Authentication withAuthenticationMethod(Optional authenticationMethod) { + Utils.checkNotNull(authenticationMethod, "authenticationMethod"); + this.authenticationMethod = authenticationMethod; + return this; + } + + /** + * The consumer key used for OAuth2 authentication. This is generated in NetSuite when creating an + * integration record. + */ + public OAuth2Authentication withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The certificate ID for the OAuth 2.0 Client Credentials Setup entry. + */ + public OAuth2Authentication withKeyId(String keyId) { + Utils.checkNotNull(keyId, "keyId"); + this.keyId = keyId; + return this; + } + + /** + * The private portion of the certificate with which OAuth2 was setup. ( created with openssl req -new + * -x509 -newkey rsa:4096 -keyout private.pem -sigopt rsa_padding_mode:pss -sha256 -sigopt + * rsa_pss_saltlen:64 -out public.pem -nodes -days 365 ) + */ + public OAuth2Authentication withOauth2PrivateKey(String oauth2PrivateKey) { + Utils.checkNotNull(oauth2PrivateKey, "oauth2PrivateKey"); + this.oauth2PrivateKey = oauth2PrivateKey; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OAuth2Authentication other = (OAuth2Authentication) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.authenticationMethod, other.authenticationMethod) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.keyId, other.keyId) && + Utils.enhancedDeepEquals(this.oauth2PrivateKey, other.oauth2PrivateKey); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, authenticationMethod, clientId, + keyId, oauth2PrivateKey); + } + + @Override + public String toString() { + return Utils.toString(OAuth2Authentication.class, + "additionalProperties", additionalProperties, + "authenticationMethod", authenticationMethod, + "clientId", clientId, + "keyId", keyId, + "oauth2PrivateKey", oauth2PrivateKey); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private Optional authenticationMethod; + + private String clientId; + + private String keyId; + + private String oauth2PrivateKey; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder authenticationMethod(SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod authenticationMethod) { + Utils.checkNotNull(authenticationMethod, "authenticationMethod"); + this.authenticationMethod = Optional.ofNullable(authenticationMethod); + return this; + } + + public Builder authenticationMethod(Optional authenticationMethod) { + Utils.checkNotNull(authenticationMethod, "authenticationMethod"); + this.authenticationMethod = authenticationMethod; + return this; + } + + + /** + * The consumer key used for OAuth2 authentication. This is generated in NetSuite when creating an + * integration record. + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + + /** + * The certificate ID for the OAuth 2.0 Client Credentials Setup entry. + */ + public Builder keyId(String keyId) { + Utils.checkNotNull(keyId, "keyId"); + this.keyId = keyId; + return this; + } + + + /** + * The private portion of the certificate with which OAuth2 was setup. ( created with openssl req -new + * -x509 -newkey rsa:4096 -keyout private.pem -sigopt rsa_padding_mode:pss -sha256 -sigopt + * rsa_pss_saltlen:64 -out public.pem -nodes -days 365 ) + */ + public Builder oauth2PrivateKey(String oauth2PrivateKey) { + Utils.checkNotNull(oauth2PrivateKey, "oauth2PrivateKey"); + this.oauth2PrivateKey = oauth2PrivateKey; + return this; + } + + public OAuth2Authentication build() { + if (authenticationMethod == null) { + authenticationMethod = _SINGLETON_VALUE_AuthenticationMethod.value(); + } + + return new OAuth2Authentication( + authenticationMethod, clientId, keyId, + oauth2PrivateKey) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_AuthenticationMethod = + new LazySingletonValue<>( + "authentication_method", + "\"oauth2_authentication\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth2ConfidentialApplication.java b/src/main/java/com/airbyte/api/models/shared/OAuth2ConfidentialApplication.java index 1abd2cccb..9a3f9b6f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth2ConfidentialApplication.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth2ConfidentialApplication.java @@ -11,27 +11,32 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class OAuth2ConfidentialApplication { +public class OAuth2ConfidentialApplication { /** - * The audience for the token, which is your API. You can find this in the Identifier field on your <a href="https://manage.auth0.com/#/apis">API's settings tab</a> + * The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab */ @JsonProperty("audience") private String audience; + @JsonProperty("auth_type") private SourceAuth0SchemasCredentialsAuthenticationMethod authType; /** - * Your application's Client ID. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. + * Your application's Client ID. You can find this value on the application's settings tab after you login the + * admin portal. */ @JsonProperty("client_id") private String clientId; /** - * Your application's Client Secret. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. + * Your application's Client Secret. You can find this value on the application's settings tab after you login the + * admin portal. */ @JsonProperty("client_secret") private String clientSecret; @@ -51,7 +56,8 @@ public OAuth2ConfidentialApplication( } /** - * The audience for the token, which is your API. You can find this in the Identifier field on your <a href="https://manage.auth0.com/#/apis">API's settings tab</a> + * The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab */ @JsonIgnore public String audience() { @@ -64,7 +70,9 @@ public SourceAuth0SchemasCredentialsAuthenticationMethod authType() { } /** - * Your application's Client ID. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. + * Your application's Client ID. You can find this value on the application's settings tab after you login the + * admin portal. */ @JsonIgnore public String clientId() { @@ -72,19 +80,23 @@ public String clientId() { } /** - * Your application's Client Secret. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. + * Your application's Client Secret. You can find this value on the application's settings tab after you login the + * admin portal. */ @JsonIgnore public String clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The audience for the token, which is your API. You can find this in the Identifier field on your <a href="https://manage.auth0.com/#/apis">API's settings tab</a> + * The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab */ public OAuth2ConfidentialApplication withAudience(String audience) { Utils.checkNotNull(audience, "audience"); @@ -93,7 +105,9 @@ public OAuth2ConfidentialApplication withAudience(String audience) { } /** - * Your application's Client ID. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. + * Your application's Client ID. You can find this value on the application's settings tab after you login the + * admin portal. */ public OAuth2ConfidentialApplication withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -102,7 +116,9 @@ public OAuth2ConfidentialApplication withClientId(String clientId) { } /** - * Your application's Client Secret. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. + * Your application's Client Secret. You can find this value on the application's settings tab after you login the + * admin portal. */ public OAuth2ConfidentialApplication withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -110,7 +126,6 @@ public OAuth2ConfidentialApplication withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +136,16 @@ public boolean equals(java.lang.Object o) { } OAuth2ConfidentialApplication other = (OAuth2ConfidentialApplication) o; return - Objects.deepEquals(this.audience, other.audience) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.audience, other.audience) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - audience, - authType, - clientId, + return Utils.enhancedHash( + audience, authType, clientId, clientSecret); } @@ -144,21 +157,24 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String audience; - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + /** - * The audience for the token, which is your API. You can find this in the Identifier field on your <a href="https://manage.auth0.com/#/apis">API's settings tab</a> + * The audience for the token, which is your API. You can find this in the Identifier field on your API's settings tab */ public Builder audience(String audience) { Utils.checkNotNull(audience, "audience"); @@ -166,8 +182,11 @@ public Builder audience(String audience) { return this; } + /** - * Your application's Client ID. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. + * Your application's Client ID. You can find this value on the application's settings tab after you login the + * admin portal. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -175,22 +194,25 @@ public Builder clientId(String clientId) { return this; } + /** - * Your application's Client Secret. You can find this value on the <a href="https://manage.auth0.com/#/applications">application's settings tab</a> after you login the admin portal. + * Your application's Client Secret. You can find this value on the application's settings tab after you login the + * admin portal. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public OAuth2ConfidentialApplication build() { + return new OAuth2ConfidentialApplication( - audience, - clientId, - clientSecret); + audience, clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java b/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java index 09386f089..f91adbd9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuth2Recommended.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class OAuth2Recommended { @JsonProperty("auth_type") - private DestinationDatabricksAuthType authType; + private DestinationDatabricksSchemasAuthType authType; + @JsonProperty("client_id") private String clientId; + @JsonProperty("secret") private String secret; @@ -36,7 +38,7 @@ public OAuth2Recommended( } @JsonIgnore - public DestinationDatabricksAuthType authType() { + public DestinationDatabricksSchemasAuthType authType() { return authType; } @@ -50,9 +52,10 @@ public String secret() { return secret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public OAuth2Recommended withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -66,7 +69,6 @@ public OAuth2Recommended withSecret(String secret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } OAuth2Recommended other = (OAuth2Recommended) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.secret, other.secret); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.secret, other.secret); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - secret); + return Utils.enhancedHash( + authType, clientId, secret); } @Override @@ -97,39 +97,43 @@ public String toString() { "clientId", clientId, "secret", secret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String secret; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder secret(String secret) { Utils.checkNotNull(secret, "secret"); this.secret = secret; return this; } - + public OAuth2Recommended build() { + return new OAuth2Recommended( - clientId, - secret); + clientId, secret); } - private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"OAUTH\"", - new TypeReference() {}); + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java b/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java index 3b4df4cea..5515b87bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java +++ b/src/main/java/com/airbyte/api/models/shared/OAuthActorNames.java @@ -17,6 +17,7 @@ public enum OAuthActorNames { BING_ADS("bing-ads"), DRIFT("drift"), FACEBOOK_MARKETING("facebook-marketing"), + FACEBOOK_PAGES("facebook-pages"), GCS("gcs"), GITHUB("github"), GITLAB("gitlab"), @@ -27,6 +28,7 @@ public enum OAuthActorNames { GOOGLE_SHEETS("google-sheets"), HUBSPOT("hubspot"), INSTAGRAM("instagram"), + INTERCOM("intercom"), LEVER_HIRING("lever-hiring"), LINKEDIN_ADS("linkedin-ads"), MAILCHIMP("mailchimp"), @@ -38,10 +40,10 @@ public enum OAuthActorNames { PINTEREST("pinterest"), RD_STATION_MARKETING("rd-station-marketing"), SALESFORCE("salesforce"), + SHAREPOINT_ENTERPRISE("sharepoint-enterprise"), SLACK("slack"), SMARTSHEETS("smartsheets"), SNAPCHAT_MARKETING("snapchat-marketing"), - SNOWFLAKE("snowflake"), SURVEYMONKEY("surveymonkey"), TIKTOK_MARKETING("tiktok-marketing"), TRELLO("trello"), @@ -53,7 +55,7 @@ public enum OAuthActorNames { @JsonValue private final String value; - private OAuthActorNames(String value) { + OAuthActorNames(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java b/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java deleted file mode 100644 index 5c3acdb82..000000000 --- a/src/main/java/com/airbyte/api/models/shared/OAuthCredentialsConfiguration.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.OneOfDeserializer; -import com.airbyte.api.utils.TypedObject; -import com.airbyte.api.utils.Utils.JsonShape; -import com.airbyte.api.utils.Utils.TypeReferenceWithShape; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Objects; - -/** - * OAuthCredentialsConfiguration - * - *

    The values required to configure the source. - */ -@JsonDeserialize(using = OAuthCredentialsConfiguration._Deserializer.class) -public class OAuthCredentialsConfiguration { - - @JsonValue - private TypedObject value; - - private OAuthCredentialsConfiguration(TypedObject value) { - this.value = value; - } - - public static OAuthCredentialsConfiguration of(Airtable value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(AmazonAds value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(AmazonSellerPartner value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Asana value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(AzureBlobStorage value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(BingAds value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Drift value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(FacebookMarketing value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Gcs value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Github value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Gitlab value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(GoogleAds value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(GoogleAnalyticsDataApi value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(GoogleDrive value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(GoogleSearchConsole value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(GoogleSheets value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Hubspot value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Instagram value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(LeverHiring value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(LinkedinAds value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Mailchimp value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(MicrosoftOnedrive value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(MicrosoftSharepoint value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(MicrosoftTeams value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Monday value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Notion value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Pinterest value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(RdStationMarketing value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Salesforce value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Shopify value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Slack value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Smartsheets value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(SnapchatMarketing value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Snowflake value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Surveymonkey value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(TiktokMarketing value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Object value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(Typeform value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(YoutubeAnalytics value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(ZendeskSupport value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - public static OAuthCredentialsConfiguration of(ZendeskTalk value) { - Utils.checkNotNull(value, "value"); - return new OAuthCredentialsConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - - /** - * Returns an instance of one of these types: - *
      - *
    • {@code com.airbyte.api.models.shared.Airtable}
    • - *
    • {@code com.airbyte.api.models.shared.AmazonAds}
    • - *
    • {@code com.airbyte.api.models.shared.AmazonSellerPartner}
    • - *
    • {@code com.airbyte.api.models.shared.Asana}
    • - *
    • {@code com.airbyte.api.models.shared.AzureBlobStorage}
    • - *
    • {@code com.airbyte.api.models.shared.BingAds}
    • - *
    • {@code com.airbyte.api.models.shared.Drift}
    • - *
    • {@code com.airbyte.api.models.shared.FacebookMarketing}
    • - *
    • {@code com.airbyte.api.models.shared.Gcs}
    • - *
    • {@code com.airbyte.api.models.shared.Github}
    • - *
    • {@code com.airbyte.api.models.shared.Gitlab}
    • - *
    • {@code com.airbyte.api.models.shared.GoogleAds}
    • - *
    • {@code com.airbyte.api.models.shared.GoogleAnalyticsDataApi}
    • - *
    • {@code com.airbyte.api.models.shared.GoogleDrive}
    • - *
    • {@code com.airbyte.api.models.shared.GoogleSearchConsole}
    • - *
    • {@code com.airbyte.api.models.shared.GoogleSheets}
    • - *
    • {@code com.airbyte.api.models.shared.Hubspot}
    • - *
    • {@code com.airbyte.api.models.shared.Instagram}
    • - *
    • {@code com.airbyte.api.models.shared.LeverHiring}
    • - *
    • {@code com.airbyte.api.models.shared.LinkedinAds}
    • - *
    • {@code com.airbyte.api.models.shared.Mailchimp}
    • - *
    • {@code com.airbyte.api.models.shared.MicrosoftOnedrive}
    • - *
    • {@code com.airbyte.api.models.shared.MicrosoftSharepoint}
    • - *
    • {@code com.airbyte.api.models.shared.MicrosoftTeams}
    • - *
    • {@code com.airbyte.api.models.shared.Monday}
    • - *
    • {@code com.airbyte.api.models.shared.Notion}
    • - *
    • {@code com.airbyte.api.models.shared.Pinterest}
    • - *
    • {@code com.airbyte.api.models.shared.RdStationMarketing}
    • - *
    • {@code com.airbyte.api.models.shared.Salesforce}
    • - *
    • {@code com.airbyte.api.models.shared.Shopify}
    • - *
    • {@code com.airbyte.api.models.shared.Slack}
    • - *
    • {@code com.airbyte.api.models.shared.Smartsheets}
    • - *
    • {@code com.airbyte.api.models.shared.SnapchatMarketing}
    • - *
    • {@code com.airbyte.api.models.shared.Snowflake}
    • - *
    • {@code com.airbyte.api.models.shared.Surveymonkey}
    • - *
    • {@code com.airbyte.api.models.shared.TiktokMarketing}
    • - *
    • {@code java.lang.Object}
    • - *
    • {@code com.airbyte.api.models.shared.Typeform}
    • - *
    • {@code com.airbyte.api.models.shared.YoutubeAnalytics}
    • - *
    • {@code com.airbyte.api.models.shared.ZendeskSupport}
    • - *
    • {@code com.airbyte.api.models.shared.ZendeskTalk}
    • - *
    - * - *

    Use {@code instanceof} to determine what type is returned. For example: - * - *

    -     * if (obj.value() instanceof String) {
    -     *     String answer = (String) obj.value();
    -     *     System.out.println("answer=" + answer);
    -     * }
    -     * 
    - * - * @return value of oneOf type - **/ - public java.lang.Object value() { - return value.value(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OAuthCredentialsConfiguration other = (OAuthCredentialsConfiguration) o; - return Objects.deepEquals(this.value.value(), other.value.value()); - } - - @Override - public int hashCode() { - return Objects.hash(value.value()); - } - - @SuppressWarnings("serial") - public static final class _Deserializer extends OneOfDeserializer { - - public _Deserializer() { - super(OAuthCredentialsConfiguration.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); - } - } - - @Override - public String toString() { - return Utils.toString(OAuthCredentialsConfiguration.class, - "value", value); - } - -} - diff --git a/src/main/java/com/airbyte/api/models/shared/OauthAuthentication.java b/src/main/java/com/airbyte/api/models/shared/OauthAuthentication.java index e3be1b46d..1cd4eeedb 100644 --- a/src/main/java/com/airbyte/api/models/shared/OauthAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/OauthAuthentication.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class OauthAuthentication { @@ -79,9 +79,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Square-issued ID of your application @@ -110,7 +111,6 @@ public OauthAuthentication withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +121,16 @@ public boolean equals(java.lang.Object o) { } OauthAuthentication other = (OauthAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, + return Utils.enhancedHash( + authType, clientId, clientSecret, refreshToken); } @@ -144,19 +142,21 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * The Square-issued ID of your application */ @@ -166,6 +166,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Square-issued application secret for your application */ @@ -175,6 +176,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * A refresh token generated using the above client ID and secret */ @@ -183,14 +185,14 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public OauthAuthentication build() { + return new OauthAuthentication( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/ObjectStorageConfiguration.java b/src/main/java/com/airbyte/api/models/shared/ObjectStorageConfiguration.java new file mode 100644 index 000000000..bd69c8b38 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/ObjectStorageConfiguration.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = ObjectStorageConfiguration._Deserializer.class) +public class ObjectStorageConfiguration { + + @JsonValue + private TypedObject value; + + private ObjectStorageConfiguration(TypedObject value) { + this.value = value; + } + + public static ObjectStorageConfiguration of(None value) { + Utils.checkNotNull(value, "value"); + return new ObjectStorageConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static ObjectStorageConfiguration of(DestinationCustomerIoS3 value) { + Utils.checkNotNull(value, "value"); + return new ObjectStorageConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *
      + *
    • {@code com.airbyte.api.models.shared.None}
    • + *
    • {@code com.airbyte.api.models.shared.DestinationCustomerIoS3}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ObjectStorageConfiguration other = (ObjectStorageConfiguration) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(ObjectStorageConfiguration.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(ObjectStorageConfiguration.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Okta.java b/src/main/java/com/airbyte/api/models/shared/Okta.java index ab328d856..b0e8c70a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Okta.java +++ b/src/main/java/com/airbyte/api/models/shared/Okta.java @@ -14,7 +14,7 @@ public enum Okta { @JsonValue private final String value; - private Okta(String value) { + Okta(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Omnisend.java b/src/main/java/com/airbyte/api/models/shared/Omnisend.java index a4781f737..63ff3f435 100644 --- a/src/main/java/com/airbyte/api/models/shared/Omnisend.java +++ b/src/main/java/com/airbyte/api/models/shared/Omnisend.java @@ -14,7 +14,7 @@ public enum Omnisend { @JsonValue private final String value; - private Omnisend(String value) { + Omnisend(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Oncehub.java b/src/main/java/com/airbyte/api/models/shared/Oncehub.java index 3da555e59..6fc3c6add 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oncehub.java +++ b/src/main/java/com/airbyte/api/models/shared/Oncehub.java @@ -14,7 +14,7 @@ public enum Oncehub { @JsonValue private final String value; - private Oncehub(String value) { + Oncehub(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OneHundredms.java b/src/main/java/com/airbyte/api/models/shared/OneHundredms.java index 86974f997..8c57ed848 100644 --- a/src/main/java/com/airbyte/api/models/shared/OneHundredms.java +++ b/src/main/java/com/airbyte/api/models/shared/OneHundredms.java @@ -14,7 +14,7 @@ public enum OneHundredms { @JsonValue private final String value; - private OneHundredms(String value) { + OneHundredms(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Onepagecrm.java b/src/main/java/com/airbyte/api/models/shared/Onepagecrm.java index 6795b4422..25067d147 100644 --- a/src/main/java/com/airbyte/api/models/shared/Onepagecrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Onepagecrm.java @@ -14,7 +14,7 @@ public enum Onepagecrm { @JsonValue private final String value; - private Onepagecrm(String value) { + Onepagecrm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Onesignal.java b/src/main/java/com/airbyte/api/models/shared/Onesignal.java index 518fdc4b9..884eed505 100644 --- a/src/main/java/com/airbyte/api/models/shared/Onesignal.java +++ b/src/main/java/com/airbyte/api/models/shared/Onesignal.java @@ -14,7 +14,7 @@ public enum Onesignal { @JsonValue private final String value; - private Onesignal(String value) { + Onesignal(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Onfleet.java b/src/main/java/com/airbyte/api/models/shared/Onfleet.java index db2d129c8..9bd4958e9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Onfleet.java +++ b/src/main/java/com/airbyte/api/models/shared/Onfleet.java @@ -14,7 +14,7 @@ public enum Onfleet { @JsonValue private final String value; - private Onfleet(String value) { + Onfleet(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OpenAI.java b/src/main/java/com/airbyte/api/models/shared/OpenAI.java index cecddd896..ef391e1d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpenAI.java +++ b/src/main/java/com/airbyte/api/models/shared/OpenAI.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * OpenAI * - *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 embedding dimensions. + *

    Use the OpenAI API to embed text. This option is using the text-embedding-ada-002 model with 1536 + * embedding dimensions. */ public class OpenAI { @@ -28,6 +28,7 @@ public class OpenAI { @JsonProperty("mode") private Optional mode; + @JsonProperty("openai_key") private String openaiKey; @@ -50,9 +51,10 @@ public String openaiKey() { return openaiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public OpenAI withOpenaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); @@ -60,7 +62,6 @@ public OpenAI withOpenaiKey(String openaiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +72,14 @@ public boolean equals(java.lang.Object o) { } OpenAI other = (OpenAI) o; return - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.openaiKey, other.openaiKey); + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.openaiKey, other.openaiKey); } @Override public int hashCode() { - return Objects.hash( - mode, - openaiKey); + return Utils.enhancedHash( + mode, openaiKey); } @Override @@ -88,26 +88,30 @@ public String toString() { "mode", mode, "openaiKey", openaiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String openaiKey; - + private Builder() { // force use of static builder() method } + public Builder openaiKey(String openaiKey) { Utils.checkNotNull(openaiKey, "openaiKey"); this.openaiKey = openaiKey; return this; } - + public OpenAI build() { + return new OpenAI( openaiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java b/src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java index 48d16051a..8c56c113c 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java +++ b/src/main/java/com/airbyte/api/models/shared/OpenAICompatible.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -41,6 +40,7 @@ public class OpenAICompatible { @JsonProperty("dimensions") private long dimensions; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -72,7 +72,8 @@ public OpenAICompatible( public OpenAICompatible( String baseUrl, long dimensions) { - this(Optional.empty(), baseUrl, dimensions, Optional.empty()); + this(Optional.empty(), baseUrl, dimensions, + Optional.empty()); } @JsonIgnore @@ -110,9 +111,10 @@ public Optional modelName() { return modelName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public OpenAICompatible withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -120,6 +122,7 @@ public OpenAICompatible withApiKey(String apiKey) { return this; } + public OpenAICompatible withApiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; @@ -153,6 +156,7 @@ public OpenAICompatible withModelName(String modelName) { return this; } + /** * The name of the model to use for embedding */ @@ -162,7 +166,6 @@ public OpenAICompatible withModelName(Optional modelName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -173,21 +176,18 @@ public boolean equals(java.lang.Object o) { } OpenAICompatible other = (OpenAICompatible) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.dimensions, other.dimensions) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.modelName, other.modelName); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.dimensions, other.dimensions) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.modelName, other.modelName); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - dimensions, - mode, - modelName); + return Utils.enhancedHash( + apiKey, baseUrl, dimensions, + mode, modelName); } @Override @@ -199,21 +199,23 @@ public String toString() { "mode", mode, "modelName", modelName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey; - + private String baseUrl; - + private Long dimensions; - + private Optional modelName; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = Optional.ofNullable(apiKey); @@ -226,6 +228,7 @@ public Builder apiKey(Optional apiKey) { return this; } + /** * The base URL for your OpenAI-compatible service */ @@ -235,6 +238,7 @@ public Builder baseUrl(String baseUrl) { return this; } + /** * The number of dimensions the embedding model is generating */ @@ -244,6 +248,7 @@ public Builder dimensions(long dimensions) { return this; } + /** * The name of the model to use for embedding */ @@ -261,7 +266,7 @@ public Builder modelName(Optional modelName) { this.modelName = modelName; return this; } - + public OpenAICompatible build() { if (apiKey == null) { apiKey = _SINGLETON_VALUE_ApiKey.value(); @@ -269,13 +274,13 @@ public OpenAICompatible build() { if (modelName == null) { modelName = _SINGLETON_VALUE_ModelName.value(); } + return new OpenAICompatible( - apiKey, - baseUrl, - dimensions, + apiKey, baseUrl, dimensions, modelName); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiKey = new LazySingletonValue<>( "api_key", diff --git a/src/main/java/com/airbyte/api/models/shared/OpenDataDc.java b/src/main/java/com/airbyte/api/models/shared/OpenDataDc.java index dca6083f0..1ac5494b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpenDataDc.java +++ b/src/main/java/com/airbyte/api/models/shared/OpenDataDc.java @@ -14,7 +14,7 @@ public enum OpenDataDc { @JsonValue private final String value; - private OpenDataDc(String value) { + OpenDataDc(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OpenExchangeRates.java b/src/main/java/com/airbyte/api/models/shared/OpenExchangeRates.java new file mode 100644 index 000000000..2c4f1def1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/OpenExchangeRates.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum OpenExchangeRates { + OPEN_EXCHANGE_RATES("open-exchange-rates"); + + @JsonValue + private final String value; + + OpenExchangeRates(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (OpenExchangeRates o: OpenExchangeRates.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Openaq.java b/src/main/java/com/airbyte/api/models/shared/Openaq.java index d67c2d108..33b9a504d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Openaq.java +++ b/src/main/java/com/airbyte/api/models/shared/Openaq.java @@ -14,7 +14,7 @@ public enum Openaq { @JsonValue private final String value; - private Openaq(String value) { + Openaq(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Openfda.java b/src/main/java/com/airbyte/api/models/shared/Openfda.java index e8cb5e4fd..82bbc55a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Openfda.java +++ b/src/main/java/com/airbyte/api/models/shared/Openfda.java @@ -14,7 +14,7 @@ public enum Openfda { @JsonValue private final String value; - private Openfda(String value) { + Openfda(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Openweather.java b/src/main/java/com/airbyte/api/models/shared/Openweather.java index b102dca58..c6f3d97e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Openweather.java +++ b/src/main/java/com/airbyte/api/models/shared/Openweather.java @@ -14,7 +14,7 @@ public enum Openweather { @JsonValue private final String value; - private Openweather(String value) { + Openweather(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Operator.java b/src/main/java/com/airbyte/api/models/shared/Operator.java index 1f1e500e0..227308300 100644 --- a/src/main/java/com/airbyte/api/models/shared/Operator.java +++ b/src/main/java/com/airbyte/api/models/shared/Operator.java @@ -11,7 +11,10 @@ /** * Operator * - *

    An Operator that will be used to filter accounts. The Contains predicate has features for matching words, matching inflectional forms of words, searching using wildcard characters, and searching using proximity. The Equals is used to return all rows where account name is equal(=) to the string that you provided + *

    An Operator that will be used to filter accounts. The Contains predicate has features for matching + * words, matching inflectional forms of words, searching using wildcard characters, and searching + * using proximity. The Equals is used to return all rows where account name is equal(=) to the string + * that you provided */ public enum Operator { CONTAINS("Contains"), @@ -20,7 +23,7 @@ public enum Operator { @JsonValue private final String value; - private Operator(String value) { + Operator(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OpinionStage.java b/src/main/java/com/airbyte/api/models/shared/OpinionStage.java index 58c222b50..b17151ca8 100644 --- a/src/main/java/com/airbyte/api/models/shared/OpinionStage.java +++ b/src/main/java/com/airbyte/api/models/shared/OpinionStage.java @@ -14,7 +14,7 @@ public enum OpinionStage { @JsonValue private final String value; - private OpinionStage(String value) { + OpinionStage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Opsgenie.java b/src/main/java/com/airbyte/api/models/shared/Opsgenie.java index c111f273b..365b82e07 100644 --- a/src/main/java/com/airbyte/api/models/shared/Opsgenie.java +++ b/src/main/java/com/airbyte/api/models/shared/Opsgenie.java @@ -14,7 +14,7 @@ public enum Opsgenie { @JsonValue private final String value; - private Opsgenie(String value) { + Opsgenie(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OptionTitle.java b/src/main/java/com/airbyte/api/models/shared/OptionTitle.java index 4155c5a14..f75d181b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/OptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/OptionTitle.java @@ -14,7 +14,7 @@ public enum OptionTitle { @JsonValue private final String value; - private OptionTitle(String value) { + OptionTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OptionsList.java b/src/main/java/com/airbyte/api/models/shared/OptionsList.java index 278f0df66..50574ed20 100644 --- a/src/main/java/com/airbyte/api/models/shared/OptionsList.java +++ b/src/main/java/com/airbyte/api/models/shared/OptionsList.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class OptionsList { @JsonProperty("option_name") private String optionName; + @JsonProperty("option_value") private String optionValue; @@ -39,9 +40,10 @@ public String optionValue() { return optionValue; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public OptionsList withOptionName(String optionName) { Utils.checkNotNull(optionName, "optionName"); @@ -55,7 +57,6 @@ public OptionsList withOptionValue(String optionValue) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } OptionsList other = (OptionsList) o; return - Objects.deepEquals(this.optionName, other.optionName) && - Objects.deepEquals(this.optionValue, other.optionValue); + Utils.enhancedDeepEquals(this.optionName, other.optionName) && + Utils.enhancedDeepEquals(this.optionValue, other.optionValue); } @Override public int hashCode() { - return Objects.hash( - optionName, - optionValue); + return Utils.enhancedHash( + optionName, optionValue); } @Override @@ -83,33 +83,37 @@ public String toString() { "optionName", optionName, "optionValue", optionValue); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String optionName; - + private String optionValue; - + private Builder() { // force use of static builder() method } + public Builder optionName(String optionName) { Utils.checkNotNull(optionName, "optionName"); this.optionName = optionName; return this; } + public Builder optionValue(String optionValue) { Utils.checkNotNull(optionValue, "optionValue"); this.optionValue = optionValue; return this; } - + public OptionsList build() { + return new OptionsList( - optionName, - optionValue); + optionName, optionValue); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Opuswatch.java b/src/main/java/com/airbyte/api/models/shared/Opuswatch.java new file mode 100644 index 000000000..4e2397e75 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Opuswatch.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Opuswatch { + OPUSWATCH("opuswatch"); + + @JsonValue + private final String value; + + Opuswatch(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Opuswatch o: Opuswatch.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/OrGroup.java b/src/main/java/com/airbyte/api/models/shared/OrGroup.java index 23932a504..5ba1a0ad6 100644 --- a/src/main/java/com/airbyte/api/models/shared/OrGroup.java +++ b/src/main/java/com/airbyte/api/models/shared/OrGroup.java @@ -12,7 +12,6 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; /** * OrGroup @@ -24,6 +23,7 @@ public class OrGroup { @JsonProperty("expressions") private List expressions; + @JsonProperty("filter_type") private SourceGoogleAnalyticsDataApiFilterType filterType; @@ -45,9 +45,10 @@ public SourceGoogleAnalyticsDataApiFilterType filterType() { return filterType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public OrGroup withExpressions(List expressions) { Utils.checkNotNull(expressions, "expressions"); @@ -55,7 +56,6 @@ public OrGroup withExpressions(List expr return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +66,14 @@ public boolean equals(java.lang.Object o) { } OrGroup other = (OrGroup) o; return - Objects.deepEquals(this.expressions, other.expressions) && - Objects.deepEquals(this.filterType, other.filterType); + Utils.enhancedDeepEquals(this.expressions, other.expressions) && + Utils.enhancedDeepEquals(this.filterType, other.filterType); } @Override public int hashCode() { - return Objects.hash( - expressions, - filterType); + return Utils.enhancedHash( + expressions, filterType); } @Override @@ -83,26 +82,30 @@ public String toString() { "expressions", expressions, "filterType", filterType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List expressions; - + private Builder() { // force use of static builder() method } + public Builder expressions(List expressions) { Utils.checkNotNull(expressions, "expressions"); this.expressions = expressions; return this; } - + public OrGroup build() { + return new OrGroup( expressions); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterType = new LazySingletonValue<>( "filter_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Oracle.java b/src/main/java/com/airbyte/api/models/shared/Oracle.java index 917b1e356..9ab297971 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oracle.java +++ b/src/main/java/com/airbyte/api/models/shared/Oracle.java @@ -14,7 +14,7 @@ public enum Oracle { @JsonValue private final String value; - private Oracle(String value) { + Oracle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OracleEnterprise.java b/src/main/java/com/airbyte/api/models/shared/OracleEnterprise.java index ebd32fdc2..ba3529149 100644 --- a/src/main/java/com/airbyte/api/models/shared/OracleEnterprise.java +++ b/src/main/java/com/airbyte/api/models/shared/OracleEnterprise.java @@ -14,7 +14,7 @@ public enum OracleEnterprise { @JsonValue private final String value; - private OracleEnterprise(String value) { + OracleEnterprise(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Orb.java b/src/main/java/com/airbyte/api/models/shared/Orb.java index e6a34402c..abc8e2b51 100644 --- a/src/main/java/com/airbyte/api/models/shared/Orb.java +++ b/src/main/java/com/airbyte/api/models/shared/Orb.java @@ -14,7 +14,7 @@ public enum Orb { @JsonValue private final String value; - private Orb(String value) { + Orb(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OrganizationOAuthCredentialsRequest.java b/src/main/java/com/airbyte/api/models/shared/OrganizationOAuthCredentialsRequest.java new file mode 100644 index 000000000..5ff128fe9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/OrganizationOAuthCredentialsRequest.java @@ -0,0 +1,186 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; + +/** + * OrganizationOAuthCredentialsRequest + * + *

    POST body for creating/updating organization level OAuth credentials + */ +public class OrganizationOAuthCredentialsRequest { + /** + * Whether you're setting this override for a source or destination + */ + @JsonProperty("actorType") + private ActorTypeEnum actorType; + + /** + * The values required to configure the source. + */ + @JsonProperty("configuration") + private Object configuration; + + /** + * The name of the source i.e. google-ads + */ + @JsonProperty("name") + private String name; + + @JsonCreator + public OrganizationOAuthCredentialsRequest( + @JsonProperty("actorType") ActorTypeEnum actorType, + @JsonProperty("configuration") Object configuration, + @JsonProperty("name") String name) { + Utils.checkNotNull(actorType, "actorType"); + Utils.checkNotNull(configuration, "configuration"); + Utils.checkNotNull(name, "name"); + this.actorType = actorType; + this.configuration = configuration; + this.name = name; + } + + /** + * Whether you're setting this override for a source or destination + */ + @JsonIgnore + public ActorTypeEnum actorType() { + return actorType; + } + + /** + * The values required to configure the source. + */ + @JsonIgnore + public Object configuration() { + return configuration; + } + + /** + * The name of the source i.e. google-ads + */ + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Whether you're setting this override for a source or destination + */ + public OrganizationOAuthCredentialsRequest withActorType(ActorTypeEnum actorType) { + Utils.checkNotNull(actorType, "actorType"); + this.actorType = actorType; + return this; + } + + /** + * The values required to configure the source. + */ + public OrganizationOAuthCredentialsRequest withConfiguration(Object configuration) { + Utils.checkNotNull(configuration, "configuration"); + this.configuration = configuration; + return this; + } + + /** + * The name of the source i.e. google-ads + */ + public OrganizationOAuthCredentialsRequest withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OrganizationOAuthCredentialsRequest other = (OrganizationOAuthCredentialsRequest) o; + return + Utils.enhancedDeepEquals(this.actorType, other.actorType) && + Utils.enhancedDeepEquals(this.configuration, other.configuration) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + actorType, configuration, name); + } + + @Override + public String toString() { + return Utils.toString(OrganizationOAuthCredentialsRequest.class, + "actorType", actorType, + "configuration", configuration, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private ActorTypeEnum actorType; + + private Object configuration; + + private String name; + + private Builder() { + // force use of static builder() method + } + + + /** + * Whether you're setting this override for a source or destination + */ + public Builder actorType(ActorTypeEnum actorType) { + Utils.checkNotNull(actorType, "actorType"); + this.actorType = actorType; + return this; + } + + + /** + * The values required to configure the source. + */ + public Builder configuration(Object configuration) { + Utils.checkNotNull(configuration, "configuration"); + this.configuration = configuration; + return this; + } + + + /** + * The name of the source i.e. google-ads + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public OrganizationOAuthCredentialsRequest build() { + + return new OrganizationOAuthCredentialsRequest( + actorType, configuration, name); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java b/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java index eb6ca7882..16a7d229e 100644 --- a/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/OrganizationResponse.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * OrganizationResponse @@ -21,9 +20,11 @@ public class OrganizationResponse { @JsonProperty("email") private String email; + @JsonProperty("organizationId") private String organizationId; + @JsonProperty("organizationName") private String organizationName; @@ -55,9 +56,10 @@ public String organizationName() { return organizationName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public OrganizationResponse withEmail(String email) { Utils.checkNotNull(email, "email"); @@ -77,7 +79,6 @@ public OrganizationResponse withOrganizationName(String organizationName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -88,17 +89,15 @@ public boolean equals(java.lang.Object o) { } OrganizationResponse other = (OrganizationResponse) o; return - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.organizationId, other.organizationId) && - Objects.deepEquals(this.organizationName, other.organizationName); + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && + Utils.enhancedDeepEquals(this.organizationName, other.organizationName); } @Override public int hashCode() { - return Objects.hash( - email, - organizationId, - organizationName); + return Utils.enhancedHash( + email, organizationId, organizationName); } @Override @@ -108,42 +107,46 @@ public String toString() { "organizationId", organizationId, "organizationName", organizationName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String email; - + private String organizationId; - + private String organizationName; - + private Builder() { // force use of static builder() method } + public Builder email(String email) { Utils.checkNotNull(email, "email"); this.email = email; return this; } + public Builder organizationId(String organizationId) { Utils.checkNotNull(organizationId, "organizationId"); this.organizationId = organizationId; return this; } + public Builder organizationName(String organizationName) { Utils.checkNotNull(organizationName, "organizationName"); this.organizationName = organizationName; return this; } - + public OrganizationResponse build() { + return new OrganizationResponse( - email, - organizationId, - organizationName); + email, organizationId, organizationName); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java b/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java index da8350011..a2fe3776a 100644 --- a/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/OrganizationsResponse.java @@ -10,7 +10,6 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; /** * OrganizationsResponse @@ -34,9 +33,10 @@ public List data() { return data; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public OrganizationsResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -44,7 +44,6 @@ public OrganizationsResponse withData(List data) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } OrganizationsResponse other = (OrganizationsResponse) o; return - Objects.deepEquals(this.data, other.data); + Utils.enhancedDeepEquals(this.data, other.data); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( data); } @@ -69,24 +68,28 @@ public String toString() { return Utils.toString(OrganizationsResponse.class, "data", data); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } - + public OrganizationsResponse build() { + return new OrganizationsResponse( data); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java b/src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java index 7baf2e373..f1555ed42 100644 --- a/src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java +++ b/src/main/java/com/airbyte/api/models/shared/OriginDatacenterOfTheSurveyMonkeyAccount.java @@ -11,7 +11,8 @@ /** * OriginDatacenterOfTheSurveyMonkeyAccount * - *

    Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different. + *

    Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be + * different. */ public enum OriginDatacenterOfTheSurveyMonkeyAccount { USA("USA"), @@ -21,7 +22,7 @@ public enum OriginDatacenterOfTheSurveyMonkeyAccount { @JsonValue private final String value; - private OriginDatacenterOfTheSurveyMonkeyAccount(String value) { + OriginDatacenterOfTheSurveyMonkeyAccount(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Oura.java b/src/main/java/com/airbyte/api/models/shared/Oura.java index ad76cb23c..8f1b7bd08 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oura.java +++ b/src/main/java/com/airbyte/api/models/shared/Oura.java @@ -14,7 +14,7 @@ public enum Oura { @JsonValue private final String value; - private Oura(String value) { + Oura(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java b/src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java index b9782f047..0ec3c5f15 100644 --- a/src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java +++ b/src/main/java/com/airbyte/api/models/shared/OutbrainAmplify.java @@ -14,7 +14,7 @@ public enum OutbrainAmplify { @JsonValue private final String value; - private OutbrainAmplify(String value) { + OutbrainAmplify(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/OutputFormat.java b/src/main/java/com/airbyte/api/models/shared/OutputFormat.java index 8eecf580a..9bd70169f 100644 --- a/src/main/java/com/airbyte/api/models/shared/OutputFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/OutputFormat.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * OutputFormat @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } OutputFormat other = (OutputFormat) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/OutputFormatWildcard.java b/src/main/java/com/airbyte/api/models/shared/OutputFormatWildcard.java index 807a29268..7d0e11a59 100644 --- a/src/main/java/com/airbyte/api/models/shared/OutputFormatWildcard.java +++ b/src/main/java/com/airbyte/api/models/shared/OutputFormatWildcard.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * OutputFormatWildcard @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } OutputFormatWildcard other = (OutputFormatWildcard) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/OutputSize.java b/src/main/java/com/airbyte/api/models/shared/OutputSize.java index fdcc535c9..4ce14dd95 100644 --- a/src/main/java/com/airbyte/api/models/shared/OutputSize.java +++ b/src/main/java/com/airbyte/api/models/shared/OutputSize.java @@ -20,7 +20,7 @@ public enum OutputSize { @JsonValue private final String value; - private OutputSize(String value) { + OutputSize(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Outreach.java b/src/main/java/com/airbyte/api/models/shared/Outreach.java index 73a7a15ef..f1b848fe3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Outreach.java +++ b/src/main/java/com/airbyte/api/models/shared/Outreach.java @@ -14,7 +14,7 @@ public enum Outreach { @JsonValue private final String value; - private Outreach(String value) { + Outreach(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Oveit.java b/src/main/java/com/airbyte/api/models/shared/Oveit.java index 118bbbbfc..749374a8f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Oveit.java +++ b/src/main/java/com/airbyte/api/models/shared/Oveit.java @@ -14,7 +14,7 @@ public enum Oveit { @JsonValue private final String value; - private Oveit(String value) { + Oveit(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java b/src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java index 7deaa2236..2cb0f8a08 100644 --- a/src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java +++ b/src/main/java/com/airbyte/api/models/shared/PabblySubscriptionsBilling.java @@ -14,7 +14,7 @@ public enum PabblySubscriptionsBilling { @JsonValue private final String value; - private PabblySubscriptionsBilling(String value) { + PabblySubscriptionsBilling(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Padding.java b/src/main/java/com/airbyte/api/models/shared/Padding.java index b3acfaffe..164f064ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/Padding.java +++ b/src/main/java/com/airbyte/api/models/shared/Padding.java @@ -15,7 +15,7 @@ public enum Padding { @JsonValue private final String value; - private Padding(String value) { + Padding(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Paddle.java b/src/main/java/com/airbyte/api/models/shared/Paddle.java index 16ce8e803..e5f47ed8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Paddle.java +++ b/src/main/java/com/airbyte/api/models/shared/Paddle.java @@ -14,7 +14,7 @@ public enum Paddle { @JsonValue private final String value; - private Paddle(String value) { + Paddle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pagerduty.java b/src/main/java/com/airbyte/api/models/shared/Pagerduty.java index 799a48735..4845e8077 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pagerduty.java +++ b/src/main/java/com/airbyte/api/models/shared/Pagerduty.java @@ -14,7 +14,7 @@ public enum Pagerduty { @JsonValue private final String value; - private Pagerduty(String value) { + Pagerduty(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pandadoc.java b/src/main/java/com/airbyte/api/models/shared/Pandadoc.java index 2a47df1a0..cb36233fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pandadoc.java +++ b/src/main/java/com/airbyte/api/models/shared/Pandadoc.java @@ -14,7 +14,7 @@ public enum Pandadoc { @JsonValue private final String value; - private Pandadoc(String value) { + Pandadoc(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Paperform.java b/src/main/java/com/airbyte/api/models/shared/Paperform.java index efbddaf9f..a45e9a1da 100644 --- a/src/main/java/com/airbyte/api/models/shared/Paperform.java +++ b/src/main/java/com/airbyte/api/models/shared/Paperform.java @@ -14,7 +14,7 @@ public enum Paperform { @JsonValue private final String value; - private Paperform(String value) { + Paperform(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Papersign.java b/src/main/java/com/airbyte/api/models/shared/Papersign.java index 5a16dd6ad..55b781d33 100644 --- a/src/main/java/com/airbyte/api/models/shared/Papersign.java +++ b/src/main/java/com/airbyte/api/models/shared/Papersign.java @@ -14,7 +14,7 @@ public enum Papersign { @JsonValue private final String value; - private Papersign(String value) { + Papersign(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pardot.java b/src/main/java/com/airbyte/api/models/shared/Pardot.java index 293d9e074..9eb4f1216 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pardot.java +++ b/src/main/java/com/airbyte/api/models/shared/Pardot.java @@ -14,7 +14,7 @@ public enum Pardot { @JsonValue private final String value; - private Pardot(String value) { + Pardot(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ParquetColumnarStorage.java b/src/main/java/com/airbyte/api/models/shared/ParquetColumnarStorage.java index 58469cb09..3a8f79abe 100644 --- a/src/main/java/com/airbyte/api/models/shared/ParquetColumnarStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/ParquetColumnarStorage.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class ParquetColumnarStorage { +public class ParquetColumnarStorage { /** * The compression algorithm used to compress data. */ @@ -26,6 +25,7 @@ public class ParquetColumnarStorage { @JsonProperty("compression_codec") private Optional compressionCodec; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("format_type") private Optional formatType; @@ -59,9 +59,10 @@ public Optional formatType() { return (Optional) formatType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The compression algorithm used to compress data. @@ -72,6 +73,7 @@ public ParquetColumnarStorage withCompressionCodec(DestinationAwsDatalakeCompres return this; } + /** * The compression algorithm used to compress data. */ @@ -87,13 +89,13 @@ public ParquetColumnarStorage withFormatType(DestinationAwsDatalakeFormatTypeWil return this; } + public ParquetColumnarStorage withFormatType(Optional formatType) { Utils.checkNotNull(formatType, "formatType"); this.formatType = formatType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,15 +106,14 @@ public boolean equals(java.lang.Object o) { } ParquetColumnarStorage other = (ParquetColumnarStorage) o; return - Objects.deepEquals(this.compressionCodec, other.compressionCodec) && - Objects.deepEquals(this.formatType, other.formatType); + Utils.enhancedDeepEquals(this.compressionCodec, other.compressionCodec) && + Utils.enhancedDeepEquals(this.formatType, other.formatType); } @Override public int hashCode() { - return Objects.hash( - compressionCodec, - formatType); + return Utils.enhancedHash( + compressionCodec, formatType); } @Override @@ -121,17 +122,19 @@ public String toString() { "compressionCodec", compressionCodec, "formatType", formatType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional compressionCodec; - + private Optional formatType; - + private Builder() { // force use of static builder() method } + /** * The compression algorithm used to compress data. */ @@ -150,6 +153,7 @@ public Builder compressionCodec(Optional> _SINGLETON_VALUE_CompressionCodec = new LazySingletonValue<>( "compression_codec", diff --git a/src/main/java/com/airbyte/api/models/shared/ParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/ParquetFormat.java index a2398b759..fda2e4650 100644 --- a/src/main/java/com/airbyte/api/models/shared/ParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/ParquetFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class ParquetFormat { +public class ParquetFormat { /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("decimal_as_float") private Optional decimalAsFloat; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public ParquetFormat() { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonIgnore public Optional decimalAsFloat() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public ParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -70,8 +74,10 @@ public ParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { return this; } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public ParquetFormat withDecimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -79,7 +85,6 @@ public ParquetFormat withDecimalAsFloat(Optional decimalAsFloat) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } ParquetFormat other = (ParquetFormat) o; return - Objects.deepEquals(this.decimalAsFloat, other.decimalAsFloat) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.decimalAsFloat, other.decimalAsFloat) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - decimalAsFloat, - filetype); + return Utils.enhancedHash( + decimalAsFloat, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "decimalAsFloat", decimalAsFloat, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional decimalAsFloat; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -126,22 +133,25 @@ public Builder decimalAsFloat(boolean decimalAsFloat) { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); this.decimalAsFloat = decimalAsFloat; return this; } - + public ParquetFormat build() { if (decimalAsFloat == null) { decimalAsFloat = _SINGLETON_VALUE_DecimalAsFloat.value(); } + return new ParquetFormat( decimalAsFloat); } + private static final LazySingletonValue> _SINGLETON_VALUE_DecimalAsFloat = new LazySingletonValue<>( "decimal_as_float", diff --git a/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java index a6b22e9d4..65be2a3c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/ParsingStrategy.java @@ -11,7 +11,12 @@ /** * ParsingStrategy * - *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public enum ParsingStrategy { AUTO("auto"), @@ -22,7 +27,7 @@ public enum ParsingStrategy { @JsonValue private final String value; - private ParsingStrategy(String value) { + ParsingStrategy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Partnerize.java b/src/main/java/com/airbyte/api/models/shared/Partnerize.java index 0735e0eb6..c0922a07e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Partnerize.java +++ b/src/main/java/com/airbyte/api/models/shared/Partnerize.java @@ -14,7 +14,7 @@ public enum Partnerize { @JsonValue private final String value; - private Partnerize(String value) { + Partnerize(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Partnerstack.java b/src/main/java/com/airbyte/api/models/shared/Partnerstack.java index f52886956..ffe19f2a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Partnerstack.java +++ b/src/main/java/com/airbyte/api/models/shared/Partnerstack.java @@ -14,7 +14,7 @@ public enum Partnerstack { @JsonValue private final String value; - private Partnerstack(String value) { + Partnerstack(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/PasswordAuthentication.java index 1da1b4ae3..ebc99c2b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/PasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/PasswordAuthentication.java @@ -5,6 +5,8 @@ import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; @@ -12,24 +14,34 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Optional; +/** + * PasswordAuthentication + * + *

    Connect through a jump server tunnel host using username and password authentication + */ public class PasswordAuthentication { + @JsonIgnore + private Map additionalProperties; + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @JsonProperty("tunnel_host") private String tunnelHost; - /** - * Connect through a jump server tunnel host using username and password authentication - */ + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") - private DestinationClickhouseSchemasTunnelMethod tunnelMethod; + private Optional tunnelMethod; /** * Port on the proxy/jump server that accepts inbound ssh connections. @@ -53,15 +65,18 @@ public class PasswordAuthentication { @JsonCreator public PasswordAuthentication( @JsonProperty("tunnel_host") String tunnelHost, + @JsonProperty("tunnel_method") Optional tunnelMethod, @JsonProperty("tunnel_port") Optional tunnelPort, @JsonProperty("tunnel_user") String tunnelUser, @JsonProperty("tunnel_user_password") String tunnelUserPassword) { Utils.checkNotNull(tunnelHost, "tunnelHost"); + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); Utils.checkNotNull(tunnelPort, "tunnelPort"); Utils.checkNotNull(tunnelUser, "tunnelUser"); Utils.checkNotNull(tunnelUserPassword, "tunnelUserPassword"); + this.additionalProperties = new HashMap<>(); this.tunnelHost = tunnelHost; - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); + this.tunnelMethod = tunnelMethod; this.tunnelPort = tunnelPort; this.tunnelUser = tunnelUser; this.tunnelUserPassword = tunnelUserPassword; @@ -71,7 +86,13 @@ public PasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), Optional.empty(), + tunnelUser, tunnelUserPassword); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; } /** @@ -82,12 +103,10 @@ public String tunnelHost() { return tunnelHost; } - /** - * Connect through a jump server tunnel host using username and password authentication - */ + @SuppressWarnings("unchecked") @JsonIgnore - public DestinationClickhouseSchemasTunnelMethod tunnelMethod() { - return tunnelMethod; + public Optional tunnelMethod() { + return (Optional) tunnelMethod; } /** @@ -114,9 +133,23 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + @JsonAnySetter + public PasswordAuthentication withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public PasswordAuthentication withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -127,6 +160,19 @@ public PasswordAuthentication withTunnelHost(String tunnelHost) { return this; } + public PasswordAuthentication withTunnelMethod(DestinationClickhouseSchemasTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + + public PasswordAuthentication withTunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -136,6 +182,7 @@ public PasswordAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +210,6 @@ public PasswordAuthentication withTunnelUserPassword(String tunnelUserPassword) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,47 +220,68 @@ public boolean equals(java.lang.Object o) { } PasswordAuthentication other = (PasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + additionalProperties, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser, tunnelUserPassword); } @Override public String toString() { return Utils.toString(PasswordAuthentication.class, + "additionalProperties", additionalProperties, "tunnelHost", tunnelHost, "tunnelMethod", tunnelMethod, "tunnelPort", tunnelPort, "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Map additionalProperties = new HashMap<>(); + private String tunnelHost; - + + private Optional tunnelMethod; + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +291,20 @@ public Builder tunnelHost(String tunnelHost) { return this; } + + public Builder tunnelMethod(DestinationClickhouseSchemasTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public Builder tunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +323,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +333,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,23 +342,27 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public PasswordAuthentication build() { + if (tunnelMethod == null) { + tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); + } if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new PasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, - tunnelUserPassword); + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = + + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", "\"SSH_PASSWORD_AUTH\"", - new TypeReference() {}); + new TypeReference>() {}); private static final LazySingletonValue> _SINGLETON_VALUE_TunnelPort = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/Payfit.java b/src/main/java/com/airbyte/api/models/shared/Payfit.java index 88ac2b11c..025b4d023 100644 --- a/src/main/java/com/airbyte/api/models/shared/Payfit.java +++ b/src/main/java/com/airbyte/api/models/shared/Payfit.java @@ -14,7 +14,7 @@ public enum Payfit { @JsonValue private final String value; - private Payfit(String value) { + Payfit(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java b/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java index 9f86bb2bb..525f4184e 100644 --- a/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java +++ b/src/main/java/com/airbyte/api/models/shared/PaypalTransaction.java @@ -14,7 +14,7 @@ public enum PaypalTransaction { @JsonValue private final String value; - private PaypalTransaction(String value) { + PaypalTransaction(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Paystack.java b/src/main/java/com/airbyte/api/models/shared/Paystack.java index 45d91c5fc..38f8f5e97 100644 --- a/src/main/java/com/airbyte/api/models/shared/Paystack.java +++ b/src/main/java/com/airbyte/api/models/shared/Paystack.java @@ -14,7 +14,7 @@ public enum Paystack { @JsonValue private final String value; - private Paystack(String value) { + Paystack(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pendo.java b/src/main/java/com/airbyte/api/models/shared/Pendo.java index 6e92abb49..78d88dc18 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pendo.java +++ b/src/main/java/com/airbyte/api/models/shared/Pendo.java @@ -14,7 +14,7 @@ public enum Pendo { @JsonValue private final String value; - private Pendo(String value) { + Pendo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pennylane.java b/src/main/java/com/airbyte/api/models/shared/Pennylane.java index a04b9f9f5..2e0bfa04c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pennylane.java +++ b/src/main/java/com/airbyte/api/models/shared/Pennylane.java @@ -14,7 +14,7 @@ public enum Pennylane { @JsonValue private final String value; - private Pennylane(String value) { + Pennylane(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Perigon.java b/src/main/java/com/airbyte/api/models/shared/Perigon.java index 541e8f743..59115868b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Perigon.java +++ b/src/main/java/com/airbyte/api/models/shared/Perigon.java @@ -14,7 +14,7 @@ public enum Perigon { @JsonValue private final String value; - private Perigon(String value) { + Perigon(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PeriodUsedForMostPopularStreams.java b/src/main/java/com/airbyte/api/models/shared/PeriodUsedForMostPopularStreams.java index 723469b91..dc9c53896 100644 --- a/src/main/java/com/airbyte/api/models/shared/PeriodUsedForMostPopularStreams.java +++ b/src/main/java/com/airbyte/api/models/shared/PeriodUsedForMostPopularStreams.java @@ -20,7 +20,7 @@ public enum PeriodUsedForMostPopularStreams { @JsonValue private final long value; - private PeriodUsedForMostPopularStreams(long value) { + PeriodUsedForMostPopularStreams(long value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java index 3f5439c1e..f3fd7f046 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionCreateRequest.java @@ -11,9 +11,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class PermissionCreateRequest { @JsonInclude(Include.NON_ABSENT) @@ -32,6 +32,7 @@ public class PermissionCreateRequest { @JsonProperty("userId") private String userId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("workspaceId") private Optional workspaceId; @@ -55,7 +56,8 @@ public PermissionCreateRequest( public PermissionCreateRequest( PublicPermissionType permissionType, String userId) { - this(Optional.empty(), permissionType, userId, Optional.empty()); + this(Optional.empty(), permissionType, userId, + Optional.empty()); } @JsonIgnore @@ -84,9 +86,10 @@ public Optional workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PermissionCreateRequest withOrganizationId(String organizationId) { Utils.checkNotNull(organizationId, "organizationId"); @@ -94,6 +97,7 @@ public PermissionCreateRequest withOrganizationId(String organizationId) { return this; } + public PermissionCreateRequest withOrganizationId(Optional organizationId) { Utils.checkNotNull(organizationId, "organizationId"); this.organizationId = organizationId; @@ -124,13 +128,13 @@ public PermissionCreateRequest withWorkspaceId(String workspaceId) { return this; } + public PermissionCreateRequest withWorkspaceId(Optional workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -141,18 +145,16 @@ public boolean equals(java.lang.Object o) { } PermissionCreateRequest other = (PermissionCreateRequest) o; return - Objects.deepEquals(this.organizationId, other.organizationId) && - Objects.deepEquals(this.permissionType, other.permissionType) && - Objects.deepEquals(this.userId, other.userId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && + Utils.enhancedDeepEquals(this.permissionType, other.permissionType) && + Utils.enhancedDeepEquals(this.userId, other.userId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - organizationId, - permissionType, - userId, + return Utils.enhancedHash( + organizationId, permissionType, userId, workspaceId); } @@ -164,21 +166,23 @@ public String toString() { "userId", userId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional organizationId = Optional.empty(); - + private PublicPermissionType permissionType; - + private String userId; - + private Optional workspaceId = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder organizationId(String organizationId) { Utils.checkNotNull(organizationId, "organizationId"); this.organizationId = Optional.ofNullable(organizationId); @@ -191,6 +195,7 @@ public Builder organizationId(Optional organizationId) { return this; } + /** * Subset of `PermissionType` (removing `instance_admin`), could be used in public-api. */ @@ -200,6 +205,7 @@ public Builder permissionType(PublicPermissionType permissionType) { return this; } + /** * Internal Airbyte user ID */ @@ -209,6 +215,7 @@ public Builder userId(String userId) { return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = Optional.ofNullable(workspaceId); @@ -220,13 +227,13 @@ public Builder workspaceId(Optional workspaceId) { this.workspaceId = workspaceId; return this; } - + public PermissionCreateRequest build() { + return new PermissionCreateRequest( - organizationId, - permissionType, - userId, + organizationId, permissionType, userId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionResponse.java b/src/main/java/com/airbyte/api/models/shared/PermissionResponse.java index e9b9d5905..2ff66aa11 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionResponse.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -25,6 +24,7 @@ public class PermissionResponse { @JsonProperty("organizationId") private Optional organizationId; + @JsonProperty("permissionId") private String permissionId; @@ -40,6 +40,7 @@ public class PermissionResponse { @JsonProperty("userId") private String userId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("workspaceId") private Optional workspaceId; @@ -67,7 +68,8 @@ public PermissionResponse( String permissionId, PermissionType permissionType, String userId) { - this(Optional.empty(), permissionId, permissionType, userId, Optional.empty()); + this(Optional.empty(), permissionId, permissionType, + userId, Optional.empty()); } @JsonIgnore @@ -101,9 +103,10 @@ public Optional workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PermissionResponse withOrganizationId(String organizationId) { Utils.checkNotNull(organizationId, "organizationId"); @@ -111,6 +114,7 @@ public PermissionResponse withOrganizationId(String organizationId) { return this; } + public PermissionResponse withOrganizationId(Optional organizationId) { Utils.checkNotNull(organizationId, "organizationId"); this.organizationId = organizationId; @@ -147,13 +151,13 @@ public PermissionResponse withWorkspaceId(String workspaceId) { return this; } + public PermissionResponse withWorkspaceId(Optional workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -164,21 +168,18 @@ public boolean equals(java.lang.Object o) { } PermissionResponse other = (PermissionResponse) o; return - Objects.deepEquals(this.organizationId, other.organizationId) && - Objects.deepEquals(this.permissionId, other.permissionId) && - Objects.deepEquals(this.permissionType, other.permissionType) && - Objects.deepEquals(this.userId, other.userId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && + Utils.enhancedDeepEquals(this.permissionId, other.permissionId) && + Utils.enhancedDeepEquals(this.permissionType, other.permissionType) && + Utils.enhancedDeepEquals(this.userId, other.userId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - organizationId, - permissionId, - permissionType, - userId, - workspaceId); + return Utils.enhancedHash( + organizationId, permissionId, permissionType, + userId, workspaceId); } @Override @@ -190,23 +191,25 @@ public String toString() { "userId", userId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional organizationId = Optional.empty(); - + private String permissionId; - + private PermissionType permissionType; - + private String userId; - + private Optional workspaceId = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder organizationId(String organizationId) { Utils.checkNotNull(organizationId, "organizationId"); this.organizationId = Optional.ofNullable(organizationId); @@ -219,12 +222,14 @@ public Builder organizationId(Optional organizationId) { return this; } + public Builder permissionId(String permissionId) { Utils.checkNotNull(permissionId, "permissionId"); this.permissionId = permissionId; return this; } + /** * Describes what actions/endpoints the permission entitles to */ @@ -234,6 +239,7 @@ public Builder permissionType(PermissionType permissionType) { return this; } + /** * Internal Airbyte user ID */ @@ -243,6 +249,7 @@ public Builder userId(String userId) { return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = Optional.ofNullable(workspaceId); @@ -254,14 +261,13 @@ public Builder workspaceId(Optional workspaceId) { this.workspaceId = workspaceId; return this; } - + public PermissionResponse build() { + return new PermissionResponse( - organizationId, - permissionId, - permissionType, - userId, - workspaceId); + organizationId, permissionId, permissionType, + userId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionResponseRead.java b/src/main/java/com/airbyte/api/models/shared/PermissionResponseRead.java index 5fc994cf5..b94eb1e5d 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionResponseRead.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionResponseRead.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * PermissionResponseRead @@ -33,6 +32,7 @@ public class PermissionResponseRead { @JsonProperty("scope") private PermissionScope scope; + @JsonProperty("scopeId") private String scopeId; @@ -95,9 +95,10 @@ public String userId() { return userId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PermissionResponseRead withPermissionId(String permissionId) { Utils.checkNotNull(permissionId, "permissionId"); @@ -138,7 +139,6 @@ public PermissionResponseRead withUserId(String userId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,21 +149,18 @@ public boolean equals(java.lang.Object o) { } PermissionResponseRead other = (PermissionResponseRead) o; return - Objects.deepEquals(this.permissionId, other.permissionId) && - Objects.deepEquals(this.permissionType, other.permissionType) && - Objects.deepEquals(this.scope, other.scope) && - Objects.deepEquals(this.scopeId, other.scopeId) && - Objects.deepEquals(this.userId, other.userId); + Utils.enhancedDeepEquals(this.permissionId, other.permissionId) && + Utils.enhancedDeepEquals(this.permissionType, other.permissionType) && + Utils.enhancedDeepEquals(this.scope, other.scope) && + Utils.enhancedDeepEquals(this.scopeId, other.scopeId) && + Utils.enhancedDeepEquals(this.userId, other.userId); } @Override public int hashCode() { - return Objects.hash( - permissionId, - permissionType, - scope, - scopeId, - userId); + return Utils.enhancedHash( + permissionId, permissionType, scope, + scopeId, userId); } @Override @@ -175,29 +172,32 @@ public String toString() { "scopeId", scopeId, "userId", userId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String permissionId; - + private PermissionType permissionType; - + private PermissionScope scope; - + private String scopeId; - + private String userId; - + private Builder() { // force use of static builder() method } + public Builder permissionId(String permissionId) { Utils.checkNotNull(permissionId, "permissionId"); this.permissionId = permissionId; return this; } + /** * Describes what actions/endpoints the permission entitles to */ @@ -207,6 +207,7 @@ public Builder permissionType(PermissionType permissionType) { return this; } + /** * Scope of a single permission, e.g. workspace, organization */ @@ -216,12 +217,14 @@ public Builder scope(PermissionScope scope) { return this; } + public Builder scopeId(String scopeId) { Utils.checkNotNull(scopeId, "scopeId"); this.scopeId = scopeId; return this; } + /** * Internal Airbyte user ID */ @@ -230,14 +233,13 @@ public Builder userId(String userId) { this.userId = userId; return this; } - + public PermissionResponseRead build() { + return new PermissionResponseRead( - permissionId, - permissionType, - scope, - scopeId, - userId); + permissionId, permissionType, scope, + scopeId, userId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionScope.java b/src/main/java/com/airbyte/api/models/shared/PermissionScope.java index ce086655a..fa4f5368f 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionScope.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionScope.java @@ -21,7 +21,7 @@ public enum PermissionScope { @JsonValue private final String value; - private PermissionScope(String value) { + PermissionScope(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionType.java b/src/main/java/com/airbyte/api/models/shared/PermissionType.java index c8f9b3185..30b635437 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionType.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionType.java @@ -29,7 +29,7 @@ public enum PermissionType { @JsonValue private final String value; - private PermissionType(String value) { + PermissionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionUpdateRequest.java b/src/main/java/com/airbyte/api/models/shared/PermissionUpdateRequest.java index 8db31cf23..ae312dc32 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionUpdateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionUpdateRequest.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class PermissionUpdateRequest { +public class PermissionUpdateRequest { /** * Describes what actions/endpoints the permission entitles to */ @@ -34,9 +33,10 @@ public PermissionType permissionType() { return permissionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Describes what actions/endpoints the permission entitles to @@ -47,7 +47,6 @@ public PermissionUpdateRequest withPermissionType(PermissionType permissionType) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -58,12 +57,12 @@ public boolean equals(java.lang.Object o) { } PermissionUpdateRequest other = (PermissionUpdateRequest) o; return - Objects.deepEquals(this.permissionType, other.permissionType); + Utils.enhancedDeepEquals(this.permissionType, other.permissionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( permissionType); } @@ -72,15 +71,17 @@ public String toString() { return Utils.toString(PermissionUpdateRequest.class, "permissionType", permissionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private PermissionType permissionType; - + private Builder() { // force use of static builder() method } + /** * Describes what actions/endpoints the permission entitles to */ @@ -89,10 +90,12 @@ public Builder permissionType(PermissionType permissionType) { this.permissionType = permissionType; return this; } - + public PermissionUpdateRequest build() { + return new PermissionUpdateRequest( permissionType); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PermissionsResponse.java b/src/main/java/com/airbyte/api/models/shared/PermissionsResponse.java index c182f8f07..3e0e4a8e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/PermissionsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/PermissionsResponse.java @@ -10,7 +10,6 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; /** * PermissionsResponse @@ -34,9 +33,10 @@ public List data() { return data; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PermissionsResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -44,7 +44,6 @@ public PermissionsResponse withData(List data) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } PermissionsResponse other = (PermissionsResponse) o; return - Objects.deepEquals(this.data, other.data); + Utils.enhancedDeepEquals(this.data, other.data); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( data); } @@ -69,24 +68,28 @@ public String toString() { return Utils.toString(PermissionsResponse.class, "data", data); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } - + public PermissionsResponse build() { + return new PermissionsResponse( data); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Persistiq.java b/src/main/java/com/airbyte/api/models/shared/Persistiq.java index 2c064a95a..ef47e35b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Persistiq.java +++ b/src/main/java/com/airbyte/api/models/shared/Persistiq.java @@ -14,7 +14,7 @@ public enum Persistiq { @JsonValue private final String value; - private Persistiq(String value) { + Persistiq(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Persona.java b/src/main/java/com/airbyte/api/models/shared/Persona.java index d8101bd31..8b18d8125 100644 --- a/src/main/java/com/airbyte/api/models/shared/Persona.java +++ b/src/main/java/com/airbyte/api/models/shared/Persona.java @@ -14,7 +14,7 @@ public enum Persona { @JsonValue private final String value; - private Persona(String value) { + Persona(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java index 59b04d7a0..e726965c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/PersonalAccessToken.java @@ -11,12 +11,13 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class PersonalAccessToken { @JsonProperty("auth_type") - private DestinationDatabricksSchemasAuthType authType; + private DestinationDatabricksAuthType authType; + @JsonProperty("personal_access_token") private String personalAccessToken; @@ -30,7 +31,7 @@ public PersonalAccessToken( } @JsonIgnore - public DestinationDatabricksSchemasAuthType authType() { + public DestinationDatabricksAuthType authType() { return authType; } @@ -39,9 +40,10 @@ public String personalAccessToken() { return personalAccessToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PersonalAccessToken withPersonalAccessToken(String personalAccessToken) { Utils.checkNotNull(personalAccessToken, "personalAccessToken"); @@ -49,7 +51,6 @@ public PersonalAccessToken withPersonalAccessToken(String personalAccessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } PersonalAccessToken other = (PersonalAccessToken) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.personalAccessToken, other.personalAccessToken); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.personalAccessToken, other.personalAccessToken); } @Override public int hashCode() { - return Objects.hash( - authType, - personalAccessToken); + return Utils.enhancedHash( + authType, personalAccessToken); } @Override @@ -77,30 +77,34 @@ public String toString() { "authType", authType, "personalAccessToken", personalAccessToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String personalAccessToken; - + private Builder() { // force use of static builder() method } + public Builder personalAccessToken(String personalAccessToken) { Utils.checkNotNull(personalAccessToken, "personalAccessToken"); this.personalAccessToken = personalAccessToken; return this; } - + public PersonalAccessToken build() { + return new PersonalAccessToken( personalAccessToken); } - private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"BASIC\"", - new TypeReference() {}); + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/PexelsApi.java b/src/main/java/com/airbyte/api/models/shared/PexelsApi.java index 5388d0f30..2576ef000 100644 --- a/src/main/java/com/airbyte/api/models/shared/PexelsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/PexelsApi.java @@ -14,7 +14,7 @@ public enum PexelsApi { @JsonValue private final String value; - private PexelsApi(String value) { + PexelsApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pgvector.java b/src/main/java/com/airbyte/api/models/shared/Pgvector.java index 9beb821f6..c337a9f31 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pgvector.java +++ b/src/main/java/com/airbyte/api/models/shared/Pgvector.java @@ -14,7 +14,7 @@ public enum Pgvector { @JsonValue private final String value; - private Pgvector(String value) { + Pgvector(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Phyllo.java b/src/main/java/com/airbyte/api/models/shared/Phyllo.java index 4fc98d452..ca790fe5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Phyllo.java +++ b/src/main/java/com/airbyte/api/models/shared/Phyllo.java @@ -14,7 +14,7 @@ public enum Phyllo { @JsonValue private final String value; - private Phyllo(String value) { + Phyllo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Picqer.java b/src/main/java/com/airbyte/api/models/shared/Picqer.java index 492d6761e..53c064239 100644 --- a/src/main/java/com/airbyte/api/models/shared/Picqer.java +++ b/src/main/java/com/airbyte/api/models/shared/Picqer.java @@ -14,7 +14,7 @@ public enum Picqer { @JsonValue private final String value; - private Picqer(String value) { + Picqer(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pinecone.java b/src/main/java/com/airbyte/api/models/shared/Pinecone.java index 747a974e9..309b8495a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pinecone.java +++ b/src/main/java/com/airbyte/api/models/shared/Pinecone.java @@ -14,7 +14,7 @@ public enum Pinecone { @JsonValue private final String value; - private Pinecone(String value) { + Pinecone(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pingdom.java b/src/main/java/com/airbyte/api/models/shared/Pingdom.java index b9f15a83d..9e89b214c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pingdom.java +++ b/src/main/java/com/airbyte/api/models/shared/Pingdom.java @@ -14,7 +14,7 @@ public enum Pingdom { @JsonValue private final String value; - private Pingdom(String value) { + Pingdom(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pinterest.java b/src/main/java/com/airbyte/api/models/shared/Pinterest.java index c08ebc1b9..a14cbff48 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pinterest.java +++ b/src/main/java/com/airbyte/api/models/shared/Pinterest.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Pinterest { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Pinterest withCredentials(PinterestCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Pinterest withCredentials(PinterestCredentials credentials) { return this; } + public Pinterest withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Pinterest other = (Pinterest) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Pinterest.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(PinterestCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) this.credentials = credentials; return this; } - + public Pinterest build() { + return new Pinterest( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/PinterestCredentials.java b/src/main/java/com/airbyte/api/models/shared/PinterestCredentials.java index 41cd90760..d6b336be5 100644 --- a/src/main/java/com/airbyte/api/models/shared/PinterestCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/PinterestCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class PinterestCredentials { +public class PinterestCredentials { /** * The Client ID of your OAuth application */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your OAuth application @@ -73,6 +73,7 @@ public PinterestCredentials withClientId(String clientId) { return this; } + /** * The Client ID of your OAuth application */ @@ -91,6 +92,7 @@ public PinterestCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -100,7 +102,6 @@ public PinterestCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } PinterestCredentials other = (PinterestCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your OAuth application */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public PinterestCredentials build() { + return new PinterestCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Pipedrive.java b/src/main/java/com/airbyte/api/models/shared/Pipedrive.java index 167d1243b..8244a0a6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pipedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/Pipedrive.java @@ -14,7 +14,7 @@ public enum Pipedrive { @JsonValue private final String value; - private Pipedrive(String value) { + Pipedrive(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pipeliner.java b/src/main/java/com/airbyte/api/models/shared/Pipeliner.java index 9e5c7e535..469adef43 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pipeliner.java +++ b/src/main/java/com/airbyte/api/models/shared/Pipeliner.java @@ -14,7 +14,7 @@ public enum Pipeliner { @JsonValue private final String value; - private Pipeliner(String value) { + Pipeliner(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PivotCategory.java b/src/main/java/com/airbyte/api/models/shared/PivotCategory.java index e38510efb..642e1f0b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/PivotCategory.java +++ b/src/main/java/com/airbyte/api/models/shared/PivotCategory.java @@ -11,7 +11,9 @@ /** * PivotCategory * - *

    Choose a category to pivot your analytics report around. This selection will organize your data based on the chosen attribute, allowing you to analyze trends and performance from different perspectives. + *

    Choose a category to pivot your analytics report around. This selection will organize your data + * based on the chosen attribute, allowing you to analyze trends and performance from different + * perspectives. */ public enum PivotCategory { COMPANY("COMPANY"), @@ -39,7 +41,7 @@ public enum PivotCategory { @JsonValue private final String value; - private PivotCategory(String value) { + PivotCategory(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PivotalTracker.java b/src/main/java/com/airbyte/api/models/shared/PivotalTracker.java index cf998c709..6c55ea7a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/PivotalTracker.java +++ b/src/main/java/com/airbyte/api/models/shared/PivotalTracker.java @@ -14,7 +14,7 @@ public enum PivotalTracker { @JsonValue private final String value; - private PivotalTracker(String value) { + PivotalTracker(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Piwik.java b/src/main/java/com/airbyte/api/models/shared/Piwik.java index d65c74586..0b5c98b0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Piwik.java +++ b/src/main/java/com/airbyte/api/models/shared/Piwik.java @@ -14,7 +14,7 @@ public enum Piwik { @JsonValue private final String value; - private Piwik(String value) { + Piwik(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Plaid.java b/src/main/java/com/airbyte/api/models/shared/Plaid.java index 2bf05e13f..ca66d9773 100644 --- a/src/main/java/com/airbyte/api/models/shared/Plaid.java +++ b/src/main/java/com/airbyte/api/models/shared/Plaid.java @@ -14,7 +14,7 @@ public enum Plaid { @JsonValue private final String value; - private Plaid(String value) { + Plaid(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PlaidEnvironment.java b/src/main/java/com/airbyte/api/models/shared/PlaidEnvironment.java index 023d402e7..b7834e2df 100644 --- a/src/main/java/com/airbyte/api/models/shared/PlaidEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/PlaidEnvironment.java @@ -21,7 +21,7 @@ public enum PlaidEnvironment { @JsonValue private final String value; - private PlaidEnvironment(String value) { + PlaidEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Planhat.java b/src/main/java/com/airbyte/api/models/shared/Planhat.java index 21aa66a4c..4dcefa248 100644 --- a/src/main/java/com/airbyte/api/models/shared/Planhat.java +++ b/src/main/java/com/airbyte/api/models/shared/Planhat.java @@ -14,7 +14,7 @@ public enum Planhat { @JsonValue private final String value; - private Planhat(String value) { + Planhat(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Plausible.java b/src/main/java/com/airbyte/api/models/shared/Plausible.java index 0fecd4e2e..c64f2fa35 100644 --- a/src/main/java/com/airbyte/api/models/shared/Plausible.java +++ b/src/main/java/com/airbyte/api/models/shared/Plausible.java @@ -14,7 +14,7 @@ public enum Plausible { @JsonValue private final String value; - private Plausible(String value) { + Plausible(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Plugin.java b/src/main/java/com/airbyte/api/models/shared/Plugin.java index 742a26a50..61a417ba4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Plugin.java +++ b/src/main/java/com/airbyte/api/models/shared/Plugin.java @@ -19,7 +19,7 @@ public enum Plugin { @JsonValue private final String value; - private Plugin(String value) { + Plugin(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pocket.java b/src/main/java/com/airbyte/api/models/shared/Pocket.java index d290e8d34..739fe5344 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pocket.java +++ b/src/main/java/com/airbyte/api/models/shared/Pocket.java @@ -14,7 +14,7 @@ public enum Pocket { @JsonValue private final String value; - private Pocket(String value) { + Pocket(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pokeapi.java b/src/main/java/com/airbyte/api/models/shared/Pokeapi.java index 7817fe94f..c35f47275 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pokeapi.java +++ b/src/main/java/com/airbyte/api/models/shared/Pokeapi.java @@ -14,7 +14,7 @@ public enum Pokeapi { @JsonValue private final String value; - private Pokeapi(String value) { + Pokeapi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PokemonName.java b/src/main/java/com/airbyte/api/models/shared/PokemonName.java index 2cfb54186..df68fc131 100644 --- a/src/main/java/com/airbyte/api/models/shared/PokemonName.java +++ b/src/main/java/com/airbyte/api/models/shared/PokemonName.java @@ -42,10 +42,10 @@ public enum PokemonName { RAICHU("raichu"), SANDSHREW("sandshrew"), SANDSLASH("sandslash"), - NIDORANF("nidoranf"), + NIDORAN_F("nidoran-f"), NIDORINA("nidorina"), NIDOQUEEN("nidoqueen"), - NIDORANM("nidoranm"), + NIDORAN_M("nidoran-m"), NIDORINO("nidorino"), NIDOKING("nidoking"), CLEFAIRY("clefairy"), @@ -916,7 +916,7 @@ public enum PokemonName { @JsonValue private final String value; - private PokemonName(String value) { + PokemonName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PolygonStockApi.java b/src/main/java/com/airbyte/api/models/shared/PolygonStockApi.java index 7515ee858..4a4339482 100644 --- a/src/main/java/com/airbyte/api/models/shared/PolygonStockApi.java +++ b/src/main/java/com/airbyte/api/models/shared/PolygonStockApi.java @@ -14,7 +14,7 @@ public enum PolygonStockApi { @JsonValue private final String value; - private PolygonStockApi(String value) { + PolygonStockApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Poplar.java b/src/main/java/com/airbyte/api/models/shared/Poplar.java index cd3de58da..c7f85789d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Poplar.java +++ b/src/main/java/com/airbyte/api/models/shared/Poplar.java @@ -14,7 +14,7 @@ public enum Poplar { @JsonValue private final String value; - private Poplar(String value) { + Poplar(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Postgres.java b/src/main/java/com/airbyte/api/models/shared/Postgres.java index 0550d6beb..b9ad3b07c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Postgres.java +++ b/src/main/java/com/airbyte/api/models/shared/Postgres.java @@ -14,7 +14,7 @@ public enum Postgres { @JsonValue private final String value; - private Postgres(String value) { + Postgres(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java b/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java index a06df4976..c846dca3c 100644 --- a/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java +++ b/src/main/java/com/airbyte/api/models/shared/PostgresConnection.java @@ -14,7 +14,6 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -86,7 +85,8 @@ public PostgresConnection( String database, String host, String username) { - this(credentials, database, Optional.empty(), host, Optional.empty(), username); + this(credentials, database, Optional.empty(), + host, Optional.empty(), username); } @JsonIgnore @@ -134,9 +134,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public PostgresConnection withCredentials(DestinationPgvectorCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -162,6 +163,7 @@ public PostgresConnection withDefaultSchema(String defaultSchema) { return this; } + /** * Enter the name of the default schema */ @@ -189,6 +191,7 @@ public PostgresConnection withPort(long port) { return this; } + /** * Enter the port you want to use to access the database */ @@ -207,7 +210,6 @@ public PostgresConnection withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +220,19 @@ public boolean equals(java.lang.Object o) { } PostgresConnection other = (PostgresConnection) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.defaultSchema, other.defaultSchema) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.defaultSchema, other.defaultSchema) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - credentials, - database, - defaultSchema, - host, - port, - username); + return Utils.enhancedHash( + credentials, database, defaultSchema, + host, port, username); } @Override @@ -247,31 +245,34 @@ public String toString() { "port", port, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationPgvectorCredentials credentials; - + private String database; - + private Optional defaultSchema; - + private String host; - + private Optional port; - + private String username; - + private Builder() { // force use of static builder() method } + public Builder credentials(DestinationPgvectorCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } + /** * Enter the name of the database that you want to sync data into */ @@ -281,6 +282,7 @@ public Builder database(String database) { return this; } + /** * Enter the name of the default schema */ @@ -299,6 +301,7 @@ public Builder defaultSchema(Optional defaultSchema) { return this; } + /** * Enter the account name you want to use to access the database. */ @@ -308,6 +311,7 @@ public Builder host(String host) { return this; } + /** * Enter the port you want to use to access the database */ @@ -326,6 +330,7 @@ public Builder port(Optional port) { return this; } + /** * Enter the name of the user you want to use to access the database */ @@ -334,7 +339,7 @@ public Builder username(String username) { this.username = username; return this; } - + public PostgresConnection build() { if (defaultSchema == null) { defaultSchema = _SINGLETON_VALUE_DefaultSchema.value(); @@ -342,15 +347,13 @@ public PostgresConnection build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new PostgresConnection( - credentials, - database, - defaultSchema, - host, - port, - username); + credentials, database, defaultSchema, + host, port, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_DefaultSchema = new LazySingletonValue<>( "default_schema", diff --git a/src/main/java/com/airbyte/api/models/shared/Posthog.java b/src/main/java/com/airbyte/api/models/shared/Posthog.java index 909dc6271..54b026283 100644 --- a/src/main/java/com/airbyte/api/models/shared/Posthog.java +++ b/src/main/java/com/airbyte/api/models/shared/Posthog.java @@ -14,7 +14,7 @@ public enum Posthog { @JsonValue private final String value; - private Posthog(String value) { + Posthog(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Postmarkapp.java b/src/main/java/com/airbyte/api/models/shared/Postmarkapp.java index 9bc948f15..0e72cc479 100644 --- a/src/main/java/com/airbyte/api/models/shared/Postmarkapp.java +++ b/src/main/java/com/airbyte/api/models/shared/Postmarkapp.java @@ -14,7 +14,7 @@ public enum Postmarkapp { @JsonValue private final String value; - private Postmarkapp(String value) { + Postmarkapp(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Prefer.java b/src/main/java/com/airbyte/api/models/shared/Prefer.java index b9bab5153..84faee363 100644 --- a/src/main/java/com/airbyte/api/models/shared/Prefer.java +++ b/src/main/java/com/airbyte/api/models/shared/Prefer.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class Prefer { @JsonCreator public Prefer() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } Prefer other = (Prefer) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(Prefer.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public Prefer build() { + return new Prefer( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/Preferred.java b/src/main/java/com/airbyte/api/models/shared/Preferred.java index 62f62f48c..fefd93d39 100644 --- a/src/main/java/com/airbyte/api/models/shared/Preferred.java +++ b/src/main/java/com/airbyte/api/models/shared/Preferred.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class Preferred { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -59,9 +59,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public Preferred withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public Preferred withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public Preferred withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public Preferred withMode(SourceMysqlMode mode) { return this; } + public Preferred withMode(Optional mode) { Utils.checkNotNull(mode, "mode"); this.mode = mode; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } Preferred other = (Preferred) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - mode); + return Utils.enhancedHash( + additionalProperties, mode); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional mode; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder mode(SourceMysqlMode mode) { Utils.checkNotNull(mode, "mode"); this.mode = Optional.ofNullable(mode); @@ -155,16 +156,18 @@ public Builder mode(Optional mode) { this.mode = mode; return this; } - + public Preferred build() { if (mode == null) { mode = _SINGLETON_VALUE_Mode.value(); } + return new Preferred( mode) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/Prestashop.java b/src/main/java/com/airbyte/api/models/shared/Prestashop.java index e4e77fb5b..41d576540 100644 --- a/src/main/java/com/airbyte/api/models/shared/Prestashop.java +++ b/src/main/java/com/airbyte/api/models/shared/Prestashop.java @@ -14,7 +14,7 @@ public enum Prestashop { @JsonValue private final String value; - private Prestashop(String value) { + Prestashop(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pretix.java b/src/main/java/com/airbyte/api/models/shared/Pretix.java index 60a8276ee..a1c889d79 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pretix.java +++ b/src/main/java/com/airbyte/api/models/shared/Pretix.java @@ -14,7 +14,7 @@ public enum Pretix { @JsonValue private final String value; - private Pretix(String value) { + Pretix(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Primetric.java b/src/main/java/com/airbyte/api/models/shared/Primetric.java index c3960c06d..33e9501c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Primetric.java +++ b/src/main/java/com/airbyte/api/models/shared/Primetric.java @@ -14,7 +14,7 @@ public enum Primetric { @JsonValue private final String value; - private Primetric(String value) { + Primetric(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Printify.java b/src/main/java/com/airbyte/api/models/shared/Printify.java index 6581d5963..3d1a5a872 100644 --- a/src/main/java/com/airbyte/api/models/shared/Printify.java +++ b/src/main/java/com/airbyte/api/models/shared/Printify.java @@ -14,7 +14,7 @@ public enum Printify { @JsonValue private final String value; - private Printify(String value) { + Printify(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/PrivateApp.java b/src/main/java/com/airbyte/api/models/shared/PrivateApp.java index a9f60bb49..945659834 100644 --- a/src/main/java/com/airbyte/api/models/shared/PrivateApp.java +++ b/src/main/java/com/airbyte/api/models/shared/PrivateApp.java @@ -11,12 +11,12 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class PrivateApp { +public class PrivateApp { /** - * HubSpot Access token. See the <a href="https://developers.hubspot.com/docs/api/private-apps">Hubspot docs</a> if you need help finding this token. + * HubSpot Access token. See the Hubspot + * docs if you need help finding this token. */ @JsonProperty("access_token") private String accessToken; @@ -36,7 +36,8 @@ public PrivateApp( } /** - * HubSpot Access token. See the <a href="https://developers.hubspot.com/docs/api/private-apps">Hubspot docs</a> if you need help finding this token. + * HubSpot Access token. See the Hubspot + * docs if you need help finding this token. */ @JsonIgnore public String accessToken() { @@ -51,12 +52,14 @@ public SourceHubspotSchemasAuthType credentialsTitle() { return credentialsTitle; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * HubSpot Access token. See the <a href="https://developers.hubspot.com/docs/api/private-apps">Hubspot docs</a> if you need help finding this token. + * HubSpot Access token. See the Hubspot + * docs if you need help finding this token. */ public PrivateApp withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -64,7 +67,6 @@ public PrivateApp withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +77,14 @@ public boolean equals(java.lang.Object o) { } PrivateApp other = (PrivateApp) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.credentialsTitle, other.credentialsTitle); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.credentialsTitle, other.credentialsTitle); } @Override public int hashCode() { - return Objects.hash( - accessToken, - credentialsTitle); + return Utils.enhancedHash( + accessToken, credentialsTitle); } @Override @@ -92,29 +93,34 @@ public String toString() { "accessToken", accessToken, "credentialsTitle", credentialsTitle); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * HubSpot Access token. See the <a href="https://developers.hubspot.com/docs/api/private-apps">Hubspot docs</a> if you need help finding this token. + * HubSpot Access token. See the Hubspot + * docs if you need help finding this token. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public PrivateApp build() { + return new PrivateApp( accessToken); } + private static final LazySingletonValue _SINGLETON_VALUE_CredentialsTitle = new LazySingletonValue<>( "credentials_title", diff --git a/src/main/java/com/airbyte/api/models/shared/PrivateToken.java b/src/main/java/com/airbyte/api/models/shared/PrivateToken.java index bba66127f..2f36cd024 100644 --- a/src/main/java/com/airbyte/api/models/shared/PrivateToken.java +++ b/src/main/java/com/airbyte/api/models/shared/PrivateToken.java @@ -14,17 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class PrivateToken { +public class PrivateToken { /** * Log into your Gitlab account and then generate a personal Access Token. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -51,9 +51,10 @@ public Optional authType() { return (Optional) authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Log into your Gitlab account and then generate a personal Access Token. @@ -64,7 +65,6 @@ public PrivateToken withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +75,14 @@ public boolean equals(java.lang.Object o) { } PrivateToken other = (PrivateToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType); + return Utils.enhancedHash( + accessToken, authType); } @Override @@ -92,15 +91,17 @@ public String toString() { "accessToken", accessToken, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** * Log into your Gitlab account and then generate a personal Access Token. */ @@ -109,12 +110,14 @@ public Builder accessToken(String accessToken) { this.accessToken = accessToken; return this; } - + public PrivateToken build() { + return new PrivateToken( accessToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Processing.java b/src/main/java/com/airbyte/api/models/shared/Processing.java index b0ee46693..a790bdb57 100644 --- a/src/main/java/com/airbyte/api/models/shared/Processing.java +++ b/src/main/java/com/airbyte/api/models/shared/Processing.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * Processing @@ -66,12 +65,12 @@ public boolean equals(java.lang.Object o) { return false; } Processing other = (Processing) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/ProcessingConfigModel.java b/src/main/java/com/airbyte/api/models/shared/ProcessingConfigModel.java index e5a5ea0d5..87652339a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ProcessingConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/ProcessingConfigModel.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class ProcessingConfigModel { +public class ProcessingConfigModel { /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -29,27 +28,46 @@ public class ProcessingConfigModel { private Optional chunkOverlap; /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonProperty("chunk_size") private long chunkSize; /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("field_name_mappings") private Optional> fieldNameMappings; /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("metadata_fields") private Optional> metadataFields; /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("text_fields") @@ -86,7 +104,8 @@ public ProcessingConfigModel( public ProcessingConfigModel( long chunkSize) { - this(Optional.empty(), chunkSize, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), chunkSize, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -98,7 +117,8 @@ public Optional chunkOverlap() { } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ @JsonIgnore public long chunkSize() { @@ -106,7 +126,8 @@ public long chunkSize() { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,7 +136,16 @@ public Optional> fieldNameMappings() { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -124,7 +154,15 @@ public Optional> metadataFields() { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -141,9 +179,10 @@ public Optional textSplitter() { return (Optional) textSplitter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context @@ -154,6 +193,7 @@ public ProcessingConfigModel withChunkOverlap(long chunkOverlap) { return this; } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -164,7 +204,8 @@ public ProcessingConfigModel withChunkOverlap(Optional chunkOverlap) { } /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public ProcessingConfigModel withChunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -173,7 +214,8 @@ public ProcessingConfigModel withChunkSize(long chunkSize) { } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public ProcessingConfigModel withFieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -181,8 +223,10 @@ public ProcessingConfigModel withFieldNameMappings(List> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -191,7 +235,16 @@ public ProcessingConfigModel withFieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public ProcessingConfigModel withMetadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -199,8 +252,18 @@ public ProcessingConfigModel withMetadataFields(List metadataFields) { return this; } + /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public ProcessingConfigModel withMetadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -209,7 +272,15 @@ public ProcessingConfigModel withMetadataFields(Optional> } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public ProcessingConfigModel withTextFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -217,8 +288,17 @@ public ProcessingConfigModel withTextFields(List textFields) { return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public ProcessingConfigModel withTextFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -235,6 +315,7 @@ public ProcessingConfigModel withTextSplitter(TextSplitter textSplitter) { return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -244,7 +325,6 @@ public ProcessingConfigModel withTextSplitter(Optional t return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -255,23 +335,19 @@ public boolean equals(java.lang.Object o) { } ProcessingConfigModel other = (ProcessingConfigModel) o; return - Objects.deepEquals(this.chunkOverlap, other.chunkOverlap) && - Objects.deepEquals(this.chunkSize, other.chunkSize) && - Objects.deepEquals(this.fieldNameMappings, other.fieldNameMappings) && - Objects.deepEquals(this.metadataFields, other.metadataFields) && - Objects.deepEquals(this.textFields, other.textFields) && - Objects.deepEquals(this.textSplitter, other.textSplitter); + Utils.enhancedDeepEquals(this.chunkOverlap, other.chunkOverlap) && + Utils.enhancedDeepEquals(this.chunkSize, other.chunkSize) && + Utils.enhancedDeepEquals(this.fieldNameMappings, other.fieldNameMappings) && + Utils.enhancedDeepEquals(this.metadataFields, other.metadataFields) && + Utils.enhancedDeepEquals(this.textFields, other.textFields) && + Utils.enhancedDeepEquals(this.textSplitter, other.textSplitter); } @Override public int hashCode() { - return Objects.hash( - chunkOverlap, - chunkSize, - fieldNameMappings, - metadataFields, - textFields, - textSplitter); + return Utils.enhancedHash( + chunkOverlap, chunkSize, fieldNameMappings, + metadataFields, textFields, textSplitter); } @Override @@ -284,25 +360,27 @@ public String toString() { "textFields", textFields, "textSplitter", textSplitter); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional chunkOverlap; - + private Long chunkSize; - + private Optional> fieldNameMappings = Optional.empty(); - + private Optional> metadataFields = Optional.empty(); - + private Optional> textFields = Optional.empty(); - + private Optional textSplitter = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Size of overlap between chunks in tokens to store in vector store to better capture relevant context */ @@ -321,8 +399,10 @@ public Builder chunkOverlap(Optional chunkOverlap) { return this; } + /** - * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if your LLM) + * Size of chunks in tokens to store in vector store (make sure it is not too big for the context if + * your LLM) */ public Builder chunkSize(long chunkSize) { Utils.checkNotNull(chunkSize, "chunkSize"); @@ -330,8 +410,10 @@ public Builder chunkSize(long chunkSize) { return this; } + /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public Builder fieldNameMappings(List fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -340,7 +422,8 @@ public Builder fieldNameMappings(List fieldNameMapp } /** - * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already flattened via dot notation. + * List of fields to rename. Not applicable for nested fields, but can be used to rename fields already + * flattened via dot notation. */ public Builder fieldNameMappings(Optional> fieldNameMappings) { Utils.checkNotNull(fieldNameMappings, "fieldNameMappings"); @@ -348,8 +431,18 @@ public Builder fieldNameMappings(OptionalWhen specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(List metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -358,7 +451,16 @@ public Builder metadataFields(List metadataFields) { } /** - * List of fields in the record that should be stored as metadata. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered metadata fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying nested paths, all matching values are flattened into an array set to a field named by the path. + * List of fields in the record that should be stored as metadata. The field list is applied to all + * streams in the same way and non-existing fields are ignored. If none are defined, all fields are + * considered metadata fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. When specifying + * nested paths, all matching values are flattened into an array set to a field named by the path. */ public Builder metadataFields(Optional> metadataFields) { Utils.checkNotNull(metadataFields, "metadataFields"); @@ -366,8 +468,17 @@ public Builder metadataFields(Optional> metadataFields) { return this; } + /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(List textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -376,7 +487,15 @@ public Builder textFields(List textFields) { } /** - * List of fields in the record that should be used to calculate the embedding. The field list is applied to all streams in the same way and non-existing fields are ignored. If none are defined, all fields are considered text fields. When specifying text fields, you can access nested fields in the record by using dot notation, e.g. `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards to access all fields in an object, e.g. `users.*.name` will access all `names` fields in all entries of the `users` array. + * List of fields in the record that should be used to calculate the embedding. The field list is + * applied to all streams in the same way and non-existing fields are ignored. If none are defined, all + * fields are considered text fields. + * + *

    When specifying text fields, you can access nested fields in the record by using dot notation, e.g. + * `user.name` will access the `name` field in the `user` object. It's also possible to use wildcards + * to access all fields in an object, e.g. + * + *

    `users.*.name` will access all `names` fields in all entries of the `users` array. */ public Builder textFields(Optional> textFields) { Utils.checkNotNull(textFields, "textFields"); @@ -384,6 +503,7 @@ public Builder textFields(Optional> textFields) { return this; } + /** * Split text fields into chunks based on the specified method. */ @@ -401,20 +521,18 @@ public Builder textSplitter(Optional textSplitter) { this.textSplitter = textSplitter; return this; } - + public ProcessingConfigModel build() { if (chunkOverlap == null) { chunkOverlap = _SINGLETON_VALUE_ChunkOverlap.value(); } + return new ProcessingConfigModel( - chunkOverlap, - chunkSize, - fieldNameMappings, - metadataFields, - textFields, - textSplitter); + chunkOverlap, chunkSize, fieldNameMappings, + metadataFields, textFields, textSplitter); } + private static final LazySingletonValue> _SINGLETON_VALUE_ChunkOverlap = new LazySingletonValue<>( "chunk_overlap", diff --git a/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java b/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java index 4f5eef005..69f79bfc3 100644 --- a/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java +++ b/src/main/java/com/airbyte/api/models/shared/ProductCatalog.java @@ -11,7 +11,9 @@ /** * ProductCatalog * - *

    Product Catalog version of your Chargebee site. Instructions on how to find your version you may find <a href="https://apidocs.chargebee.com/docs/api?prod_cat_ver=2">here</a> under `API Version` section. If left blank, the product catalog version will be set to 2.0. + *

    Product Catalog version of your Chargebee site. Instructions on how to find your version you may + * find here under `API Version` + * section. If left blank, the product catalog version will be set to 2.0. */ public enum ProductCatalog { ONE_DOT0("1.0"), @@ -20,7 +22,7 @@ public enum ProductCatalog { @JsonValue private final String value; - private ProductCatalog(String value) { + ProductCatalog(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Productboard.java b/src/main/java/com/airbyte/api/models/shared/Productboard.java index e70ac85d1..5575dab24 100644 --- a/src/main/java/com/airbyte/api/models/shared/Productboard.java +++ b/src/main/java/com/airbyte/api/models/shared/Productboard.java @@ -14,7 +14,7 @@ public enum Productboard { @JsonValue private final String value; - private Productboard(String value) { + Productboard(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Productive.java b/src/main/java/com/airbyte/api/models/shared/Productive.java index a0781e1a7..9b5726864 100644 --- a/src/main/java/com/airbyte/api/models/shared/Productive.java +++ b/src/main/java/com/airbyte/api/models/shared/Productive.java @@ -14,7 +14,7 @@ public enum Productive { @JsonValue private final String value; - private Productive(String value) { + Productive(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ProjectSecret.java b/src/main/java/com/airbyte/api/models/shared/ProjectSecret.java index fff14f651..6806c75d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/ProjectSecret.java +++ b/src/main/java/com/airbyte/api/models/shared/ProjectSecret.java @@ -14,17 +14,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class ProjectSecret { +public class ProjectSecret { /** - * Mixpanel project secret. See the <a href="https://developer.mixpanel.com/reference/project-secret#managing-a-projects-secret">docs</a> for more information on how to obtain this. + * Mixpanel project secret. See the docs + * for more information on how to obtain this. */ @JsonProperty("api_secret") private String apiSecret; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("option_title") private Optional optionTitle; @@ -38,7 +40,9 @@ public ProjectSecret( } /** - * Mixpanel project secret. See the <a href="https://developer.mixpanel.com/reference/project-secret#managing-a-projects-secret">docs</a> for more information on how to obtain this. + * Mixpanel project secret. See the docs + * for more information on how to obtain this. */ @JsonIgnore public String apiSecret() { @@ -51,12 +55,15 @@ public Optional optionTitle() { return (Optional) optionTitle; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Mixpanel project secret. See the <a href="https://developer.mixpanel.com/reference/project-secret#managing-a-projects-secret">docs</a> for more information on how to obtain this. + * Mixpanel project secret. See the docs + * for more information on how to obtain this. */ public ProjectSecret withApiSecret(String apiSecret) { Utils.checkNotNull(apiSecret, "apiSecret"); @@ -64,7 +71,6 @@ public ProjectSecret withApiSecret(String apiSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +81,14 @@ public boolean equals(java.lang.Object o) { } ProjectSecret other = (ProjectSecret) o; return - Objects.deepEquals(this.apiSecret, other.apiSecret) && - Objects.deepEquals(this.optionTitle, other.optionTitle); + Utils.enhancedDeepEquals(this.apiSecret, other.apiSecret) && + Utils.enhancedDeepEquals(this.optionTitle, other.optionTitle); } @Override public int hashCode() { - return Objects.hash( - apiSecret, - optionTitle); + return Utils.enhancedHash( + apiSecret, optionTitle); } @Override @@ -92,29 +97,35 @@ public String toString() { "apiSecret", apiSecret, "optionTitle", optionTitle); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiSecret; - + private Builder() { // force use of static builder() method } + /** - * Mixpanel project secret. See the <a href="https://developer.mixpanel.com/reference/project-secret#managing-a-projects-secret">docs</a> for more information on how to obtain this. + * Mixpanel project secret. See the docs + * for more information on how to obtain this. */ public Builder apiSecret(String apiSecret) { Utils.checkNotNull(apiSecret, "apiSecret"); this.apiSecret = apiSecret; return this; } - + public ProjectSecret build() { + return new ProjectSecret( apiSecret); } + private static final LazySingletonValue> _SINGLETON_VALUE_OptionTitle = new LazySingletonValue<>( "option_title", diff --git a/src/main/java/com/airbyte/api/models/shared/UpdateMode.java b/src/main/java/com/airbyte/api/models/shared/Protocol.java similarity index 63% rename from src/main/java/com/airbyte/api/models/shared/UpdateMode.java rename to src/main/java/com/airbyte/api/models/shared/Protocol.java index ebbb0b9ee..85a7419cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/UpdateMode.java +++ b/src/main/java/com/airbyte/api/models/shared/Protocol.java @@ -9,20 +9,18 @@ import java.util.Optional; /** - * UpdateMode + * Protocol * - *

    How to update the data in the destination. + *

    Protocol for the database connection string. */ -public enum UpdateMode { - INSERT("INSERT"), - UPDATE("UPDATE"), - UPSERT("UPSERT"), - DELETE("DELETE"); +public enum Protocol { + HTTP("http"), + HTTPS("https"); @JsonValue private final String value; - private UpdateMode(String value) { + Protocol(String value) { this.value = value; } @@ -30,8 +28,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (UpdateMode o: UpdateMode.values()) { + public static Optional fromValue(String value) { + for (Protocol o: Protocol.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java b/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java index e351dbc25..d504fdf70 100644 --- a/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java +++ b/src/main/java/com/airbyte/api/models/shared/PublicPermissionType.java @@ -27,7 +27,7 @@ public enum PublicPermissionType { @JsonValue private final String value; - private PublicPermissionType(String value) { + PublicPermissionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pubsub.java b/src/main/java/com/airbyte/api/models/shared/Pubsub.java index 2e15d45cb..f4ed12dca 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pubsub.java +++ b/src/main/java/com/airbyte/api/models/shared/Pubsub.java @@ -14,7 +14,7 @@ public enum Pubsub { @JsonValue private final String value; - private Pubsub(String value) { + Pubsub(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Pypi.java b/src/main/java/com/airbyte/api/models/shared/Pypi.java index 840610df9..786f6e4b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Pypi.java +++ b/src/main/java/com/airbyte/api/models/shared/Pypi.java @@ -14,7 +14,7 @@ public enum Pypi { @JsonValue private final String value; - private Pypi(String value) { + Pypi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Qdrant.java b/src/main/java/com/airbyte/api/models/shared/Qdrant.java index af9d6d4de..c76daa7d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Qdrant.java +++ b/src/main/java/com/airbyte/api/models/shared/Qdrant.java @@ -14,7 +14,7 @@ public enum Qdrant { @JsonValue private final String value; - private Qdrant(String value) { + Qdrant(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Qualaroo.java b/src/main/java/com/airbyte/api/models/shared/Qualaroo.java index 9f28f7862..95d8f0e6b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Qualaroo.java +++ b/src/main/java/com/airbyte/api/models/shared/Qualaroo.java @@ -14,7 +14,7 @@ public enum Qualaroo { @JsonValue private final String value; - private Qualaroo(String value) { + Qualaroo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Queries.java b/src/main/java/com/airbyte/api/models/shared/Queries.java index 2380983c8..57ae224f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Queries.java +++ b/src/main/java/com/airbyte/api/models/shared/Queries.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class Queries { +public class Queries { /** * A data source that is powered by the platform. */ @@ -68,9 +67,10 @@ public String query() { return query; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * A data source that is powered by the platform. @@ -99,7 +99,6 @@ public Queries withQuery(String query) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +109,15 @@ public boolean equals(java.lang.Object o) { } Queries other = (Queries) o; return - Objects.deepEquals(this.dataSource, other.dataSource) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.query, other.query); + Utils.enhancedDeepEquals(this.dataSource, other.dataSource) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.query, other.query); } @Override public int hashCode() { - return Objects.hash( - dataSource, - name, - query); + return Utils.enhancedHash( + dataSource, name, query); } @Override @@ -130,19 +127,21 @@ public String toString() { "name", name, "query", query); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DataSource dataSource; - + private String name; - + private String query; - + private Builder() { // force use of static builder() method } + /** * A data source that is powered by the platform. */ @@ -152,6 +151,7 @@ public Builder dataSource(DataSource dataSource) { return this; } + /** * The variable name for use in queries. */ @@ -161,6 +161,7 @@ public Builder name(String name) { return this; } + /** * A classic query string. */ @@ -169,12 +170,12 @@ public Builder query(String query) { this.query = query; return this; } - + public Queries build() { + return new Queries( - dataSource, - name, - query); + dataSource, name, query); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Quickbooks.java b/src/main/java/com/airbyte/api/models/shared/Quickbooks.java index 603eee780..fffe6a992 100644 --- a/src/main/java/com/airbyte/api/models/shared/Quickbooks.java +++ b/src/main/java/com/airbyte/api/models/shared/Quickbooks.java @@ -14,7 +14,7 @@ public enum Quickbooks { @JsonValue private final String value; - private Quickbooks(String value) { + Quickbooks(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/RESTAPIStreams.java b/src/main/java/com/airbyte/api/models/shared/RESTAPIStreams.java index 00be7ac51..fabc5b862 100644 --- a/src/main/java/com/airbyte/api/models/shared/RESTAPIStreams.java +++ b/src/main/java/com/airbyte/api/models/shared/RESTAPIStreams.java @@ -14,17 +14,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class RESTAPIStreams { +public class RESTAPIStreams { /** - * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the Workday community docs to obtain access token. + * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the + * Workday community docs to obtain access token. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("auth_type") private Rest authType; @@ -52,7 +53,8 @@ public RESTAPIStreams( } /** - * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the Workday community docs to obtain access token. + * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the + * Workday community docs to obtain access token. */ @JsonIgnore public String accessToken() { @@ -72,12 +74,14 @@ public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the Workday community docs to obtain access token. + * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the + * Workday community docs to obtain access token. */ public RESTAPIStreams withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -94,6 +98,7 @@ public RESTAPIStreams withStartDate(OffsetDateTime startDate) { return this; } + /** * Rows after this date will be synced, default 2 years ago. */ @@ -103,7 +108,6 @@ public RESTAPIStreams withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -114,17 +118,15 @@ public boolean equals(java.lang.Object o) { } RESTAPIStreams other = (RESTAPIStreams) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - startDate); + return Utils.enhancedHash( + accessToken, authType, startDate); } @Override @@ -134,19 +136,22 @@ public String toString() { "authType", authType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the Workday community docs to obtain access token. + * Follow the instructions in the "OAuth 2.0 in Postman - API Client for Integrations" article in the + * Workday community docs to obtain access token. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -154,6 +159,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * Rows after this date will be synced, default 2 years ago. */ @@ -171,13 +177,14 @@ public Builder startDate(Optional startDate) { this.startDate = startDate; return this; } - + public RESTAPIStreams build() { + return new RESTAPIStreams( - accessToken, - startDate); + accessToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Raas.java b/src/main/java/com/airbyte/api/models/shared/Raas.java index acd218ba4..48d6f222b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Raas.java +++ b/src/main/java/com/airbyte/api/models/shared/Raas.java @@ -14,7 +14,7 @@ public enum Raas { @JsonValue private final String value; - private Raas(String value) { + Raas(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Railz.java b/src/main/java/com/airbyte/api/models/shared/Railz.java index 5bf2da4d5..e58dc873a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Railz.java +++ b/src/main/java/com/airbyte/api/models/shared/Railz.java @@ -14,7 +14,7 @@ public enum Railz { @JsonValue private final String value; - private Railz(String value) { + Railz(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/RandomSampling.java b/src/main/java/com/airbyte/api/models/shared/RandomSampling.java index b50c01c06..fb31b47cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/RandomSampling.java +++ b/src/main/java/com/airbyte/api/models/shared/RandomSampling.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -33,12 +32,16 @@ public class RandomSampling { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("logging_type") private Optional loggingType; /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("max_entry_count") @@ -76,7 +79,8 @@ public RandomSampling( } public RandomSampling() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonAnyGetter @@ -91,7 +95,10 @@ public Optional loggingType() { } /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ @JsonIgnore public Optional maxEntryCount() { @@ -114,9 +121,10 @@ public Optional seed() { return seed; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public RandomSampling withAdditionalProperty(String key, Object value) { @@ -124,8 +132,7 @@ public RandomSampling withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public RandomSampling withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -138,6 +145,7 @@ public RandomSampling withLoggingType(DestinationDevNullSchemasLoggingType loggi return this; } + public RandomSampling withLoggingType(Optional loggingType) { Utils.checkNotNull(loggingType, "loggingType"); this.loggingType = loggingType; @@ -145,7 +153,10 @@ public RandomSampling withLoggingType(OptionalThe maximum is 1,000 entries. */ public RandomSampling withMaxEntryCount(double maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -153,8 +164,12 @@ public RandomSampling withMaxEntryCount(double maxEntryCount) { return this; } + /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ public RandomSampling withMaxEntryCount(Optional maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -171,6 +186,7 @@ public RandomSampling withSamplingRatio(double samplingRatio) { return this; } + /** * A positive floating number smaller than 1. */ @@ -189,6 +205,7 @@ public RandomSampling withSeed(double seed) { return this; } + /** * When the seed is unspecified, the current time millis will be used as the seed. */ @@ -198,7 +215,6 @@ public RandomSampling withSeed(Optional seed) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -209,21 +225,18 @@ public boolean equals(java.lang.Object o) { } RandomSampling other = (RandomSampling) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.loggingType, other.loggingType) && - Objects.deepEquals(this.maxEntryCount, other.maxEntryCount) && - Objects.deepEquals(this.samplingRatio, other.samplingRatio) && - Objects.deepEquals(this.seed, other.seed); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.loggingType, other.loggingType) && + Utils.enhancedDeepEquals(this.maxEntryCount, other.maxEntryCount) && + Utils.enhancedDeepEquals(this.samplingRatio, other.samplingRatio) && + Utils.enhancedDeepEquals(this.seed, other.seed); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - loggingType, - maxEntryCount, - samplingRatio, - seed); + return Utils.enhancedHash( + additionalProperties, loggingType, maxEntryCount, + samplingRatio, seed); } @Override @@ -235,19 +248,20 @@ public String toString() { "samplingRatio", samplingRatio, "seed", seed); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional loggingType; - + private Optional maxEntryCount; - + private Optional samplingRatio; - + private Optional seed = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -268,6 +282,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder loggingType(DestinationDevNullSchemasLoggingType loggingType) { Utils.checkNotNull(loggingType, "loggingType"); this.loggingType = Optional.ofNullable(loggingType); @@ -280,8 +295,12 @@ public Builder loggingType(OptionalThe maximum is 1,000 entries. */ public Builder maxEntryCount(double maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -290,7 +309,10 @@ public Builder maxEntryCount(double maxEntryCount) { } /** - * Number of entries to log. This destination is for testing only. So it won't make sense to log infinitely. The maximum is 1,000 entries. + * Number of entries to log. This destination is for testing only. So it won't make sense to log + * infinitely. + * + *

    The maximum is 1,000 entries. */ public Builder maxEntryCount(Optional maxEntryCount) { Utils.checkNotNull(maxEntryCount, "maxEntryCount"); @@ -298,6 +320,7 @@ public Builder maxEntryCount(Optional maxEntryCount) { return this; } + /** * A positive floating number smaller than 1. */ @@ -316,6 +339,7 @@ public Builder samplingRatio(Optional samplingRatio) { return this; } + /** * When the seed is unspecified, the current time millis will be used as the seed. */ @@ -333,7 +357,7 @@ public Builder seed(Optional seed) { this.seed = seed; return this; } - + public RandomSampling build() { if (loggingType == null) { loggingType = _SINGLETON_VALUE_LoggingType.value(); @@ -344,14 +368,14 @@ public RandomSampling build() { if (samplingRatio == null) { samplingRatio = _SINGLETON_VALUE_SamplingRatio.value(); } + return new RandomSampling( - loggingType, - maxEntryCount, - samplingRatio, + loggingType, maxEntryCount, samplingRatio, seed) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_LoggingType = new LazySingletonValue<>( "logging_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Range.java b/src/main/java/com/airbyte/api/models/shared/Range.java index 42a0d956f..94eb879c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Range.java +++ b/src/main/java/com/airbyte/api/models/shared/Range.java @@ -29,7 +29,7 @@ public enum Range { @JsonValue private final String value; - private Range(String value) { + Range(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/RdStationMarketing.java b/src/main/java/com/airbyte/api/models/shared/RdStationMarketing.java index 3c1c612f0..fd70a0e9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/RdStationMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/RdStationMarketing.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class RdStationMarketing { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional authorization() { return (Optional) authorization; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public RdStationMarketing withAuthorization(RdStationMarketingAuthorization authorization) { Utils.checkNotNull(authorization, "authorization"); @@ -48,13 +49,13 @@ public RdStationMarketing withAuthorization(RdStationMarketingAuthorization auth return this; } + public RdStationMarketing withAuthorization(Optional authorization) { Utils.checkNotNull(authorization, "authorization"); this.authorization = authorization; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } RdStationMarketing other = (RdStationMarketing) o; return - Objects.deepEquals(this.authorization, other.authorization); + Utils.enhancedDeepEquals(this.authorization, other.authorization); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( authorization); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(RdStationMarketing.class, "authorization", authorization); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional authorization = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder authorization(RdStationMarketingAuthorization authorization) { Utils.checkNotNull(authorization, "authorization"); this.authorization = Optional.ofNullable(authorization); @@ -99,10 +102,12 @@ public Builder authorization(Optional this.authorization = authorization; return this; } - + public RdStationMarketing build() { + return new RdStationMarketing( authorization); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/RdStationMarketingAuthorization.java b/src/main/java/com/airbyte/api/models/shared/RdStationMarketingAuthorization.java index 279f507a8..2459a384c 100644 --- a/src/main/java/com/airbyte/api/models/shared/RdStationMarketingAuthorization.java +++ b/src/main/java/com/airbyte/api/models/shared/RdStationMarketingAuthorization.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class RdStationMarketingAuthorization { +public class RdStationMarketingAuthorization { /** * The Client ID of your RD Station developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your RD Station developer application. @@ -73,6 +73,7 @@ public RdStationMarketingAuthorization withClientId(String clientId) { return this; } + /** * The Client ID of your RD Station developer application. */ @@ -91,6 +92,7 @@ public RdStationMarketingAuthorization withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your RD Station developer application */ @@ -100,7 +102,6 @@ public RdStationMarketingAuthorization withClientSecret(Optional clientS return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } RdStationMarketingAuthorization other = (RdStationMarketingAuthorization) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your RD Station developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your RD Station developer application */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public RdStationMarketingAuthorization build() { + return new RdStationMarketingAuthorization( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java index 7d2474433..bce2c1132 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java +++ b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingChangeDataCaptureCDC.java @@ -15,16 +15,16 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * ReadChangesUsingChangeDataCaptureCDC * - *

    <i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using the SQL Server's <a href="https://docs.airbyte.com/integrations/sources/mssql/#change-data-capture-cdc">change data capture feature</a>. This must be enabled on your database. + *

    Recommended - Incrementally reads new inserts, updates, and deletes using the SQL Server's change data + * capture feature. This must be enabled on your database. */ public class ReadChangesUsingChangeDataCaptureCDC { - /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -33,24 +33,34 @@ public class ReadChangesUsingChangeDataCaptureCDC { private Optional initialLoadTimeoutHours; /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. + * + *

    Read about initial waiting + * time. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("initial_waiting_seconds") private Optional initialWaitingSeconds; /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("invalid_cdc_cursor_position_behavior") private Optional invalidCdcCursorPositionBehavior; + @JsonProperty("method") private SourceMssqlMethod method; /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("queue_size") @@ -74,7 +84,8 @@ public ReadChangesUsingChangeDataCaptureCDC( } public ReadChangesUsingChangeDataCaptureCDC() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -86,7 +97,12 @@ public Optional initialLoadTimeoutHours() { } /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. + * + *

    Read about initial waiting + * time. */ @JsonIgnore public Optional initialWaitingSeconds() { @@ -94,7 +110,10 @@ public Optional initialWaitingSeconds() { } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -108,16 +127,18 @@ public SourceMssqlMethod method() { } /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ @JsonIgnore public Optional queueSize() { return queueSize; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. @@ -128,6 +149,7 @@ public ReadChangesUsingChangeDataCaptureCDC withInitialLoadTimeoutHours(long ini return this; } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -138,7 +160,12 @@ public ReadChangesUsingChangeDataCaptureCDC withInitialLoadTimeoutHours(Optional } /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. + * + *

    Read about initial waiting + * time. */ public ReadChangesUsingChangeDataCaptureCDC withInitialWaitingSeconds(long initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -146,8 +173,14 @@ public ReadChangesUsingChangeDataCaptureCDC withInitialWaitingSeconds(long initi return this; } + /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. + * + *

    Read about initial waiting + * time. */ public ReadChangesUsingChangeDataCaptureCDC withInitialWaitingSeconds(Optional initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -156,7 +189,10 @@ public ReadChangesUsingChangeDataCaptureCDC withInitialWaitingSeconds(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -174,7 +214,8 @@ public ReadChangesUsingChangeDataCaptureCDC withInvalidCdcCursorPositionBehavior } /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ public ReadChangesUsingChangeDataCaptureCDC withQueueSize(long queueSize) { Utils.checkNotNull(queueSize, "queueSize"); @@ -182,8 +223,10 @@ public ReadChangesUsingChangeDataCaptureCDC withQueueSize(long queueSize) { return this; } + /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ public ReadChangesUsingChangeDataCaptureCDC withQueueSize(Optional queueSize) { Utils.checkNotNull(queueSize, "queueSize"); @@ -191,7 +234,6 @@ public ReadChangesUsingChangeDataCaptureCDC withQueueSize(Optional queueSi return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -202,21 +244,18 @@ public boolean equals(java.lang.Object o) { } ReadChangesUsingChangeDataCaptureCDC other = (ReadChangesUsingChangeDataCaptureCDC) o; return - Objects.deepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && - Objects.deepEquals(this.initialWaitingSeconds, other.initialWaitingSeconds) && - Objects.deepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior) && - Objects.deepEquals(this.method, other.method) && - Objects.deepEquals(this.queueSize, other.queueSize); + Utils.enhancedDeepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && + Utils.enhancedDeepEquals(this.initialWaitingSeconds, other.initialWaitingSeconds) && + Utils.enhancedDeepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior) && + Utils.enhancedDeepEquals(this.method, other.method) && + Utils.enhancedDeepEquals(this.queueSize, other.queueSize); } @Override public int hashCode() { - return Objects.hash( - initialLoadTimeoutHours, - initialWaitingSeconds, - invalidCdcCursorPositionBehavior, - method, - queueSize); + return Utils.enhancedHash( + initialLoadTimeoutHours, initialWaitingSeconds, invalidCdcCursorPositionBehavior, + method, queueSize); } @Override @@ -228,21 +267,23 @@ public String toString() { "method", method, "queueSize", queueSize); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional initialLoadTimeoutHours; - + private Optional initialWaitingSeconds; - + private Optional invalidCdcCursorPositionBehavior; - + private Optional queueSize; - + private Builder() { // force use of static builder() method } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -261,8 +302,14 @@ public Builder initialLoadTimeoutHours(Optional initialLoadTimeoutHours) { return this; } + /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. + * + *

    Read about initial waiting + * time. */ public Builder initialWaitingSeconds(long initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -271,7 +318,12 @@ public Builder initialWaitingSeconds(long initialWaitingSeconds) { } /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/mysql/#change-data-capture-cdc">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 3600 seconds. + * + *

    Read about initial waiting + * time. */ public Builder initialWaitingSeconds(Optional initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -279,8 +331,12 @@ public Builder initialWaitingSeconds(Optional initialWaitingSeconds) { return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(SourceMssqlInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -289,7 +345,10 @@ public Builder invalidCdcCursorPositionBehavior(SourceMssqlInvalidCDCPositionBeh } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -297,8 +356,10 @@ public Builder invalidCdcCursorPositionBehavior(Optional queueSize) { Utils.checkNotNull(queueSize, "queueSize"); this.queueSize = queueSize; return this; } - + public ReadChangesUsingChangeDataCaptureCDC build() { if (initialLoadTimeoutHours == null) { initialLoadTimeoutHours = _SINGLETON_VALUE_InitialLoadTimeoutHours.value(); @@ -328,13 +390,13 @@ public ReadChangesUsingChangeDataCaptureCDC build() { if (queueSize == null) { queueSize = _SINGLETON_VALUE_QueueSize.value(); } + return new ReadChangesUsingChangeDataCaptureCDC( - initialLoadTimeoutHours, - initialWaitingSeconds, - invalidCdcCursorPositionBehavior, + initialLoadTimeoutHours, initialWaitingSeconds, invalidCdcCursorPositionBehavior, queueSize); } + private static final LazySingletonValue> _SINGLETON_VALUE_InitialLoadTimeoutHours = new LazySingletonValue<>( "initial_load_timeout_hours", diff --git a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingWriteAheadLogCDC.java b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingWriteAheadLogCDC.java index e840b5d7c..5221aca29 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingWriteAheadLogCDC.java +++ b/src/main/java/com/airbyte/api/models/shared/ReadChangesUsingWriteAheadLogCDC.java @@ -20,13 +20,14 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * ReadChangesUsingWriteAheadLogCDC * - *

    <i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using the Postgres <a href="https://docs.airbyte.com/integrations/sources/postgres/#cdc">write-ahead log (WAL)</a>. This needs to be configured on the source database itself. Recommended for tables of any size. + *

    Recommended - Incrementally reads new inserts, updates, and deletes using the Postgres write-ahead log (WAL). This + * needs to be configured on the source database itself. Recommended for tables of any size. */ public class ReadChangesUsingWriteAheadLogCDC { @@ -34,7 +35,10 @@ public class ReadChangesUsingWriteAheadLogCDC { private Map additionalProperties; /** - * Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the <a href="https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query">setup guide</a> for how and when to configure this setting. + * Specifies a query that the connector executes on the source database when the connector sends a + * heartbeat message. Please see the setup + * guide for how and when to configure this setting. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("heartbeat_action_query") @@ -48,26 +52,37 @@ public class ReadChangesUsingWriteAheadLogCDC { private Optional initialLoadTimeoutHours; /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-setting-up-initial-cdc-waiting-time">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. + * + *

    Read about initial + * waiting time. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("initial_waiting_seconds") private Optional initialWaitingSeconds; /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("invalid_cdc_cursor_position_behavior") private Optional invalidCdcCursorPositionBehavior; /** - * Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync. + * Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After + * loading Data in the destination` is default. If `While reading Data` is selected, in case of a + * downstream failure (while loading data into the destination), next sync would result in a full sync. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lsn_commit_behaviour") private Optional lsnCommitBehaviour; + @JsonProperty("method") private SourcePostgresMethod method; @@ -79,20 +94,25 @@ public class ReadChangesUsingWriteAheadLogCDC { private Optional plugin; /** - * A Postgres publication used for consuming changes. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres#step-4-create-publications-and-replication-identities-for-tables">publications and replication identities</a>. + * A Postgres publication used for consuming changes. Read about publications + * and replication identities. */ @JsonProperty("publication") private String publication; /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("queue_size") private Optional queueSize; /** - * A plugin logical replication slot. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres#step-3-create-replication-slot">replication slots</a>. + * A plugin logical replication slot. Read about replication + * slots. */ @JsonProperty("replication_slot") private String replicationSlot; @@ -133,7 +153,9 @@ public ReadChangesUsingWriteAheadLogCDC( public ReadChangesUsingWriteAheadLogCDC( String publication, String replicationSlot) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), publication, Optional.empty(), replicationSlot); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + publication, Optional.empty(), replicationSlot); } @JsonAnyGetter @@ -142,7 +164,10 @@ public Map additionalProperties() { } /** - * Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the <a href="https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query">setup guide</a> for how and when to configure this setting. + * Specifies a query that the connector executes on the source database when the connector sends a + * heartbeat message. Please see the setup + * guide for how and when to configure this setting. */ @JsonIgnore public Optional heartbeatActionQuery() { @@ -158,7 +183,12 @@ public Optional initialLoadTimeoutHours() { } /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-setting-up-initial-cdc-waiting-time">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. + * + *

    Read about initial + * waiting time. */ @JsonIgnore public Optional initialWaitingSeconds() { @@ -166,7 +196,10 @@ public Optional initialWaitingSeconds() { } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -175,7 +208,9 @@ public Optional invalidCdcCurs } /** - * Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync. + * Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After + * loading Data in the destination` is default. If `While reading Data` is selected, in case of a + * downstream failure (while loading data into the destination), next sync would result in a full sync. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -198,7 +233,9 @@ public Optional plugin() { } /** - * A Postgres publication used for consuming changes. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres#step-4-create-publications-and-replication-identities-for-tables">publications and replication identities</a>. + * A Postgres publication used for consuming changes. Read about publications + * and replication identities. */ @JsonIgnore public String publication() { @@ -206,7 +243,8 @@ public String publication() { } /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ @JsonIgnore public Optional queueSize() { @@ -214,16 +252,19 @@ public Optional queueSize() { } /** - * A plugin logical replication slot. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres#step-3-create-replication-slot">replication slots</a>. + * A plugin logical replication slot. Read about replication + * slots. */ @JsonIgnore public String replicationSlot() { return replicationSlot; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public ReadChangesUsingWriteAheadLogCDC withAdditionalProperty(String key, Object value) { @@ -231,8 +272,7 @@ public ReadChangesUsingWriteAheadLogCDC withAdditionalProperty(String key, Objec Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public ReadChangesUsingWriteAheadLogCDC withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -240,7 +280,10 @@ public ReadChangesUsingWriteAheadLogCDC withAdditionalProperties(Mapsetup + * guide for how and when to configure this setting. */ public ReadChangesUsingWriteAheadLogCDC withHeartbeatActionQuery(String heartbeatActionQuery) { Utils.checkNotNull(heartbeatActionQuery, "heartbeatActionQuery"); @@ -248,8 +291,12 @@ public ReadChangesUsingWriteAheadLogCDC withHeartbeatActionQuery(String heartbea return this; } + /** - * Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the <a href="https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query">setup guide</a> for how and when to configure this setting. + * Specifies a query that the connector executes on the source database when the connector sends a + * heartbeat message. Please see the setup + * guide for how and when to configure this setting. */ public ReadChangesUsingWriteAheadLogCDC withHeartbeatActionQuery(Optional heartbeatActionQuery) { Utils.checkNotNull(heartbeatActionQuery, "heartbeatActionQuery"); @@ -266,6 +313,7 @@ public ReadChangesUsingWriteAheadLogCDC withInitialLoadTimeoutHours(long initial return this; } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -276,7 +324,12 @@ public ReadChangesUsingWriteAheadLogCDC withInitialLoadTimeoutHours(OptionalRead about initial + * waiting time. */ public ReadChangesUsingWriteAheadLogCDC withInitialWaitingSeconds(long initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -284,8 +337,14 @@ public ReadChangesUsingWriteAheadLogCDC withInitialWaitingSeconds(long initialWa return this; } + /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-setting-up-initial-cdc-waiting-time">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. + * + *

    Read about initial + * waiting time. */ public ReadChangesUsingWriteAheadLogCDC withInitialWaitingSeconds(Optional initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -294,7 +353,10 @@ public ReadChangesUsingWriteAheadLogCDC withInitialWaitingSeconds(Optional } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public ReadChangesUsingWriteAheadLogCDC withInvalidCdcCursorPositionBehavior(SourcePostgresInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -302,8 +364,12 @@ public ReadChangesUsingWriteAheadLogCDC withInvalidCdcCursorPositionBehavior(Sou return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public ReadChangesUsingWriteAheadLogCDC withInvalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -312,7 +378,9 @@ public ReadChangesUsingWriteAheadLogCDC withInvalidCdcCursorPositionBehavior(Opt } /** - * Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync. + * Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After + * loading Data in the destination` is default. If `While reading Data` is selected, in case of a + * downstream failure (while loading data into the destination), next sync would result in a full sync. */ public ReadChangesUsingWriteAheadLogCDC withLsnCommitBehaviour(LSNCommitBehaviour lsnCommitBehaviour) { Utils.checkNotNull(lsnCommitBehaviour, "lsnCommitBehaviour"); @@ -320,8 +388,11 @@ public ReadChangesUsingWriteAheadLogCDC withLsnCommitBehaviour(LSNCommitBehaviou return this; } + /** - * Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After loading Data in the destination` is default. If `While reading Data` is selected, in case of a downstream failure (while loading data into the destination), next sync would result in a full sync. + * Determines when Airbyte should flush the LSN of processed WAL logs in the source database. `After + * loading Data in the destination` is default. If `While reading Data` is selected, in case of a + * downstream failure (while loading data into the destination), next sync would result in a full sync. */ public ReadChangesUsingWriteAheadLogCDC withLsnCommitBehaviour(Optional lsnCommitBehaviour) { Utils.checkNotNull(lsnCommitBehaviour, "lsnCommitBehaviour"); @@ -338,6 +409,7 @@ public ReadChangesUsingWriteAheadLogCDC withPlugin(Plugin plugin) { return this; } + /** * A logical decoding plugin installed on the PostgreSQL server. */ @@ -348,7 +420,9 @@ public ReadChangesUsingWriteAheadLogCDC withPlugin(Optional pl } /** - * A Postgres publication used for consuming changes. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres#step-4-create-publications-and-replication-identities-for-tables">publications and replication identities</a>. + * A Postgres publication used for consuming changes. Read about publications + * and replication identities. */ public ReadChangesUsingWriteAheadLogCDC withPublication(String publication) { Utils.checkNotNull(publication, "publication"); @@ -357,7 +431,8 @@ public ReadChangesUsingWriteAheadLogCDC withPublication(String publication) { } /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ public ReadChangesUsingWriteAheadLogCDC withQueueSize(long queueSize) { Utils.checkNotNull(queueSize, "queueSize"); @@ -365,8 +440,10 @@ public ReadChangesUsingWriteAheadLogCDC withQueueSize(long queueSize) { return this; } + /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ public ReadChangesUsingWriteAheadLogCDC withQueueSize(Optional queueSize) { Utils.checkNotNull(queueSize, "queueSize"); @@ -375,7 +452,9 @@ public ReadChangesUsingWriteAheadLogCDC withQueueSize(Optional queueSize) } /** - * A plugin logical replication slot. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres#step-3-create-replication-slot">replication slots</a>. + * A plugin logical replication slot. Read about replication + * slots. */ public ReadChangesUsingWriteAheadLogCDC withReplicationSlot(String replicationSlot) { Utils.checkNotNull(replicationSlot, "replicationSlot"); @@ -383,7 +462,6 @@ public ReadChangesUsingWriteAheadLogCDC withReplicationSlot(String replicationSl return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -394,33 +472,26 @@ public boolean equals(java.lang.Object o) { } ReadChangesUsingWriteAheadLogCDC other = (ReadChangesUsingWriteAheadLogCDC) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.heartbeatActionQuery, other.heartbeatActionQuery) && - Objects.deepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && - Objects.deepEquals(this.initialWaitingSeconds, other.initialWaitingSeconds) && - Objects.deepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior) && - Objects.deepEquals(this.lsnCommitBehaviour, other.lsnCommitBehaviour) && - Objects.deepEquals(this.method, other.method) && - Objects.deepEquals(this.plugin, other.plugin) && - Objects.deepEquals(this.publication, other.publication) && - Objects.deepEquals(this.queueSize, other.queueSize) && - Objects.deepEquals(this.replicationSlot, other.replicationSlot); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.heartbeatActionQuery, other.heartbeatActionQuery) && + Utils.enhancedDeepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && + Utils.enhancedDeepEquals(this.initialWaitingSeconds, other.initialWaitingSeconds) && + Utils.enhancedDeepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior) && + Utils.enhancedDeepEquals(this.lsnCommitBehaviour, other.lsnCommitBehaviour) && + Utils.enhancedDeepEquals(this.method, other.method) && + Utils.enhancedDeepEquals(this.plugin, other.plugin) && + Utils.enhancedDeepEquals(this.publication, other.publication) && + Utils.enhancedDeepEquals(this.queueSize, other.queueSize) && + Utils.enhancedDeepEquals(this.replicationSlot, other.replicationSlot); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - heartbeatActionQuery, - initialLoadTimeoutHours, - initialWaitingSeconds, - invalidCdcCursorPositionBehavior, - lsnCommitBehaviour, - method, - plugin, - publication, - queueSize, - replicationSlot); + return Utils.enhancedHash( + additionalProperties, heartbeatActionQuery, initialLoadTimeoutHours, + initialWaitingSeconds, invalidCdcCursorPositionBehavior, lsnCommitBehaviour, + method, plugin, publication, + queueSize, replicationSlot); } @Override @@ -438,29 +509,30 @@ public String toString() { "queueSize", queueSize, "replicationSlot", replicationSlot); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional heartbeatActionQuery; - + private Optional initialLoadTimeoutHours; - + private Optional initialWaitingSeconds; - + private Optional invalidCdcCursorPositionBehavior; - + private Optional lsnCommitBehaviour; - + private Optional plugin; - + private String publication; - + private Optional queueSize; - + private String replicationSlot; - + private Builder() { // force use of static builder() method } @@ -481,8 +553,12 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the <a href="https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query">setup guide</a> for how and when to configure this setting. + * Specifies a query that the connector executes on the source database when the connector sends a + * heartbeat message. Please see the setup + * guide for how and when to configure this setting. */ public Builder heartbeatActionQuery(String heartbeatActionQuery) { Utils.checkNotNull(heartbeatActionQuery, "heartbeatActionQuery"); @@ -491,7 +567,10 @@ public Builder heartbeatActionQuery(String heartbeatActionQuery) { } /** - * Specifies a query that the connector executes on the source database when the connector sends a heartbeat message. Please see the <a href="https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-wal-disk-consumption-and-heartbeat-action-query">setup guide</a> for how and when to configure this setting. + * Specifies a query that the connector executes on the source database when the connector sends a + * heartbeat message. Please see the setup + * guide for how and when to configure this setting. */ public Builder heartbeatActionQuery(Optional heartbeatActionQuery) { Utils.checkNotNull(heartbeatActionQuery, "heartbeatActionQuery"); @@ -499,6 +578,7 @@ public Builder heartbeatActionQuery(Optional heartbeatActionQuery) { return this; } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -517,8 +597,14 @@ public Builder initialLoadTimeoutHours(Optional initialLoadTimeoutHours) { return this; } + /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-setting-up-initial-cdc-waiting-time">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. + * + *

    Read about initial + * waiting time. */ public Builder initialWaitingSeconds(long initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -527,7 +613,12 @@ public Builder initialWaitingSeconds(long initialWaitingSeconds) { } /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres/postgres-troubleshooting#advanced-setting-up-initial-cdc-waiting-time">initial waiting time</a>. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 1200 seconds. Valid range: 120 seconds to 2400 seconds. + * + *

    Read about initial + * waiting time. */ public Builder initialWaitingSeconds(Optional initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -535,8 +626,12 @@ public Builder initialWaitingSeconds(Optional initialWaitingSeconds) { return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(SourcePostgresInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -545,7 +640,10 @@ public Builder invalidCdcCursorPositionBehavior(SourcePostgresInvalidCDCPosition } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -553,8 +651,11 @@ public Builder invalidCdcCursorPositionBehavior(Optional lsnCommitBehaviour) { Utils.checkNotNull(lsnCommitBehaviour, "lsnCommitBehaviour"); @@ -571,6 +674,7 @@ public Builder lsnCommitBehaviour(Optional lsnComm return this; } + /** * A logical decoding plugin installed on the PostgreSQL server. */ @@ -589,8 +693,11 @@ public Builder plugin(Optional plugin) { return this; } + /** - * A Postgres publication used for consuming changes. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres#step-4-create-publications-and-replication-identities-for-tables">publications and replication identities</a>. + * A Postgres publication used for consuming changes. Read about publications + * and replication identities. */ public Builder publication(String publication) { Utils.checkNotNull(publication, "publication"); @@ -598,8 +705,10 @@ public Builder publication(String publication) { return this; } + /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ public Builder queueSize(long queueSize) { Utils.checkNotNull(queueSize, "queueSize"); @@ -608,7 +717,8 @@ public Builder queueSize(long queueSize) { } /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ public Builder queueSize(Optional queueSize) { Utils.checkNotNull(queueSize, "queueSize"); @@ -616,15 +726,18 @@ public Builder queueSize(Optional queueSize) { return this; } + /** - * A plugin logical replication slot. Read about <a href="https://docs.airbyte.com/integrations/sources/postgres#step-3-create-replication-slot">replication slots</a>. + * A plugin logical replication slot. Read about replication + * slots. */ public Builder replicationSlot(String replicationSlot) { Utils.checkNotNull(replicationSlot, "replicationSlot"); this.replicationSlot = replicationSlot; return this; } - + public ReadChangesUsingWriteAheadLogCDC build() { if (heartbeatActionQuery == null) { heartbeatActionQuery = _SINGLETON_VALUE_HeartbeatActionQuery.value(); @@ -647,19 +760,15 @@ public ReadChangesUsingWriteAheadLogCDC build() { if (queueSize == null) { queueSize = _SINGLETON_VALUE_QueueSize.value(); } + return new ReadChangesUsingWriteAheadLogCDC( - heartbeatActionQuery, - initialLoadTimeoutHours, - initialWaitingSeconds, - invalidCdcCursorPositionBehavior, - lsnCommitBehaviour, - plugin, - publication, - queueSize, - replicationSlot) + heartbeatActionQuery, initialLoadTimeoutHours, initialWaitingSeconds, + invalidCdcCursorPositionBehavior, lsnCommitBehaviour, plugin, + publication, queueSize, replicationSlot) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeartbeatActionQuery = new LazySingletonValue<>( "heartbeat_action_query", diff --git a/src/main/java/com/airbyte/api/models/shared/Recharge.java b/src/main/java/com/airbyte/api/models/shared/Recharge.java index 07c60176c..38e2b544b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recharge.java +++ b/src/main/java/com/airbyte/api/models/shared/Recharge.java @@ -14,7 +14,7 @@ public enum Recharge { @JsonValue private final String value; - private Recharge(String value) { + Recharge(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Recreation.java b/src/main/java/com/airbyte/api/models/shared/Recreation.java index 15f0f8338..7eae3117a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recreation.java +++ b/src/main/java/com/airbyte/api/models/shared/Recreation.java @@ -14,7 +14,7 @@ public enum Recreation { @JsonValue private final String value; - private Recreation(String value) { + Recreation(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Recruitee.java b/src/main/java/com/airbyte/api/models/shared/Recruitee.java index 0e73b600d..876778e9e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recruitee.java +++ b/src/main/java/com/airbyte/api/models/shared/Recruitee.java @@ -14,7 +14,7 @@ public enum Recruitee { @JsonValue private final String value; - private Recruitee(String value) { + Recruitee(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Recurly.java b/src/main/java/com/airbyte/api/models/shared/Recurly.java index 41d8b207c..e61432e58 100644 --- a/src/main/java/com/airbyte/api/models/shared/Recurly.java +++ b/src/main/java/com/airbyte/api/models/shared/Recurly.java @@ -14,7 +14,7 @@ public enum Recurly { @JsonValue private final String value; - private Recurly(String value) { + Recurly(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Reddit.java b/src/main/java/com/airbyte/api/models/shared/Reddit.java index d324010e4..43537989e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Reddit.java +++ b/src/main/java/com/airbyte/api/models/shared/Reddit.java @@ -14,7 +14,7 @@ public enum Reddit { @JsonValue private final String value; - private Reddit(String value) { + Reddit(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Redis.java b/src/main/java/com/airbyte/api/models/shared/Redis.java index e0d6e8af1..9ac2d7d5e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Redis.java +++ b/src/main/java/com/airbyte/api/models/shared/Redis.java @@ -14,7 +14,7 @@ public enum Redis { @JsonValue private final String value; - private Redis(String value) { + Redis(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Redshift.java b/src/main/java/com/airbyte/api/models/shared/Redshift.java index 826c6e221..01b9f58ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/Redshift.java +++ b/src/main/java/com/airbyte/api/models/shared/Redshift.java @@ -14,7 +14,7 @@ public enum Redshift { @JsonValue private final String value; - private Redshift(String value) { + Redshift(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Referralhero.java b/src/main/java/com/airbyte/api/models/shared/Referralhero.java index d41557851..4a2a58763 100644 --- a/src/main/java/com/airbyte/api/models/shared/Referralhero.java +++ b/src/main/java/com/airbyte/api/models/shared/Referralhero.java @@ -14,7 +14,7 @@ public enum Referralhero { @JsonValue private final String value; - private Referralhero(String value) { + Referralhero(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/RefreshTokenEndpoint.java b/src/main/java/com/airbyte/api/models/shared/RefreshTokenEndpoint.java index d3c75a179..97e3ef422 100644 --- a/src/main/java/com/airbyte/api/models/shared/RefreshTokenEndpoint.java +++ b/src/main/java/com/airbyte/api/models/shared/RefreshTokenEndpoint.java @@ -15,7 +15,7 @@ public enum RefreshTokenEndpoint { @JsonValue private final String value; - private RefreshTokenEndpoint(String value) { + RefreshTokenEndpoint(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Region.java b/src/main/java/com/airbyte/api/models/shared/Region.java index f6b81ef7d..25279c085 100644 --- a/src/main/java/com/airbyte/api/models/shared/Region.java +++ b/src/main/java/com/airbyte/api/models/shared/Region.java @@ -11,7 +11,9 @@ /** * Region * - *

    Region to pull data from (EU/NA/FE). See <a href="https://advertising.amazon.com/API/docs/en-us/info/api-overview#api-endpoints">docs</a> for more details. + *

    Region to pull data from (EU/NA/FE). See docs for + * more details. */ public enum Region { NA("NA"), @@ -21,7 +23,7 @@ public enum Region { @JsonValue private final String value; - private Region(String value) { + Region(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Rentcast.java b/src/main/java/com/airbyte/api/models/shared/Rentcast.java index 177d0feec..5d59a578f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rentcast.java +++ b/src/main/java/com/airbyte/api/models/shared/Rentcast.java @@ -14,7 +14,7 @@ public enum Rentcast { @JsonValue private final String value; - private Rentcast(String value) { + Rentcast(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Repairshopr.java b/src/main/java/com/airbyte/api/models/shared/Repairshopr.java index 1b6ea5d8f..534b075f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Repairshopr.java +++ b/src/main/java/com/airbyte/api/models/shared/Repairshopr.java @@ -14,7 +14,7 @@ public enum Repairshopr { @JsonValue private final String value; - private Repairshopr(String value) { + Repairshopr(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ReplicaSet.java b/src/main/java/com/airbyte/api/models/shared/ReplicaSet.java index ebe0bb565..6e2b3a76c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReplicaSet.java +++ b/src/main/java/com/airbyte/api/models/shared/ReplicaSet.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class ReplicaSet { @JsonInclude(Include.NON_ABSENT) @@ -76,9 +76,10 @@ public String serverAddresses() { return serverAddresses; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ReplicaSet withInstance(DestinationMongodbInstance instance) { Utils.checkNotNull(instance, "instance"); @@ -86,6 +87,7 @@ public ReplicaSet withInstance(DestinationMongodbInstance instance) { return this; } + public ReplicaSet withInstance(Optional instance) { Utils.checkNotNull(instance, "instance"); this.instance = instance; @@ -101,6 +103,7 @@ public ReplicaSet withReplicaSet(String replicaSet) { return this; } + /** * A replica set name. */ @@ -119,7 +122,6 @@ public ReplicaSet withServerAddresses(String serverAddresses) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -130,17 +132,15 @@ public boolean equals(java.lang.Object o) { } ReplicaSet other = (ReplicaSet) o; return - Objects.deepEquals(this.instance, other.instance) && - Objects.deepEquals(this.replicaSet, other.replicaSet) && - Objects.deepEquals(this.serverAddresses, other.serverAddresses); + Utils.enhancedDeepEquals(this.instance, other.instance) && + Utils.enhancedDeepEquals(this.replicaSet, other.replicaSet) && + Utils.enhancedDeepEquals(this.serverAddresses, other.serverAddresses); } @Override public int hashCode() { - return Objects.hash( - instance, - replicaSet, - serverAddresses); + return Utils.enhancedHash( + instance, replicaSet, serverAddresses); } @Override @@ -150,19 +150,21 @@ public String toString() { "replicaSet", replicaSet, "serverAddresses", serverAddresses); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional instance; - + private Optional replicaSet = Optional.empty(); - + private String serverAddresses; - + private Builder() { // force use of static builder() method } + public Builder instance(DestinationMongodbInstance instance) { Utils.checkNotNull(instance, "instance"); this.instance = Optional.ofNullable(instance); @@ -175,6 +177,7 @@ public Builder instance(Optional instance) return this; } + /** * A replica set name. */ @@ -193,6 +196,7 @@ public Builder replicaSet(Optional replicaSet) { return this; } + /** * The members of a replica set. Please specify `host`:`port` of each member seperated by comma. */ @@ -201,17 +205,17 @@ public Builder serverAddresses(String serverAddresses) { this.serverAddresses = serverAddresses; return this; } - + public ReplicaSet build() { if (instance == null) { instance = _SINGLETON_VALUE_Instance.value(); } + return new ReplicaSet( - instance, - replicaSet, - serverAddresses); + instance, replicaSet, serverAddresses); } + private static final LazySingletonValue> _SINGLETON_VALUE_Instance = new LazySingletonValue<>( "instance", diff --git a/src/main/java/com/airbyte/api/models/shared/ReplicatePermissionsACL.java b/src/main/java/com/airbyte/api/models/shared/ReplicatePermissionsACL.java index 5d2cbb22a..bb1916b41 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReplicatePermissionsACL.java +++ b/src/main/java/com/airbyte/api/models/shared/ReplicatePermissionsACL.java @@ -15,13 +15,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * ReplicatePermissionsACL * - *

    Sends one identity stream and one for more permissions (ACL) streams to the destination. This data can be used in downstream systems to recreate permission restrictions mirroring the original source. + *

    Sends one identity stream and one for more permissions (ACL) streams to the destination. This data + * can be used in downstream systems to recreate permission restrictions mirroring the original source. */ public class ReplicatePermissionsACL { @@ -37,7 +37,8 @@ public class ReplicatePermissionsACL { private Optional domain; /** - * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("include_identities_stream") @@ -73,16 +74,18 @@ public Optional domain() { } /** - * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source */ @JsonIgnore public Optional includeIdentitiesStream() { return includeIdentitiesStream; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Google domain of the identities. @@ -93,6 +96,7 @@ public ReplicatePermissionsACL withDomain(String domain) { return this; } + /** * The Google domain of the identities. */ @@ -103,7 +107,8 @@ public ReplicatePermissionsACL withDomain(Optional domain) { } /** - * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source */ public ReplicatePermissionsACL withIncludeIdentitiesStream(boolean includeIdentitiesStream) { Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); @@ -111,8 +116,10 @@ public ReplicatePermissionsACL withIncludeIdentitiesStream(boolean includeIdenti return this; } + /** - * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source */ public ReplicatePermissionsACL withIncludeIdentitiesStream(Optional includeIdentitiesStream) { Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); @@ -120,7 +127,6 @@ public ReplicatePermissionsACL withIncludeIdentitiesStream(Optional inc return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -131,17 +137,15 @@ public boolean equals(java.lang.Object o) { } ReplicatePermissionsACL other = (ReplicatePermissionsACL) o; return - Objects.deepEquals(this.deliveryType, other.deliveryType) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.includeIdentitiesStream, other.includeIdentitiesStream); + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.includeIdentitiesStream, other.includeIdentitiesStream); } @Override public int hashCode() { - return Objects.hash( - deliveryType, - domain, - includeIdentitiesStream); + return Utils.enhancedHash( + deliveryType, domain, includeIdentitiesStream); } @Override @@ -151,17 +155,19 @@ public String toString() { "domain", domain, "includeIdentitiesStream", includeIdentitiesStream); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional domain = Optional.empty(); - + private Optional includeIdentitiesStream; - + private Builder() { // force use of static builder() method } + /** * The Google domain of the identities. */ @@ -180,8 +186,10 @@ public Builder domain(Optional domain) { return this; } + /** - * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source */ public Builder includeIdentitiesStream(boolean includeIdentitiesStream) { Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); @@ -190,23 +198,25 @@ public Builder includeIdentitiesStream(boolean includeIdentitiesStream) { } /** - * This data can be used in downstream systems to recreate permission restrictions mirroring the original source + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source */ public Builder includeIdentitiesStream(Optional includeIdentitiesStream) { Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); this.includeIdentitiesStream = includeIdentitiesStream; return this; } - + public ReplicatePermissionsACL build() { if (includeIdentitiesStream == null) { includeIdentitiesStream = _SINGLETON_VALUE_IncludeIdentitiesStream.value(); } + return new ReplicatePermissionsACL( - domain, - includeIdentitiesStream); + domain, includeIdentitiesStream); } + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = new LazySingletonValue<>( "delivery_type", diff --git a/src/main/java/com/airbyte/api/models/shared/ReplicateRecords.java b/src/main/java/com/airbyte/api/models/shared/ReplicateRecords.java index d392031c4..3866bf4e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReplicateRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/ReplicateRecords.java @@ -14,13 +14,16 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * ReplicateRecords * - *

    Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. + *

    Recommended - Extract and load structured records into your destination of choice. This is the + * classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or + * files from a structured schema. + * + *

    Data can be flattened, typed and deduped depending on the destination. */ public class ReplicateRecords { @@ -30,7 +33,6 @@ public class ReplicateRecords { @JsonCreator public ReplicateRecords() { - this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); } @@ -40,11 +42,11 @@ public Optional deliveryType() { return (Optional) deliveryType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +57,12 @@ public boolean equals(java.lang.Object o) { } ReplicateRecords other = (ReplicateRecords) o; return - Objects.deepEquals(this.deliveryType, other.deliveryType); + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( deliveryType); } @@ -69,18 +71,21 @@ public String toString() { return Utils.toString(ReplicateRecords.class, "deliveryType", deliveryType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public ReplicateRecords build() { + return new ReplicateRecords( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = new LazySingletonValue<>( "delivery_type", diff --git a/src/main/java/com/airbyte/api/models/shared/ReplyIo.java b/src/main/java/com/airbyte/api/models/shared/ReplyIo.java index e1d23a082..63aa4dc48 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReplyIo.java +++ b/src/main/java/com/airbyte/api/models/shared/ReplyIo.java @@ -14,7 +14,7 @@ public enum ReplyIo { @JsonValue private final String value; - private ReplyIo(String value) { + ReplyIo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ReportBasedStreams.java b/src/main/java/com/airbyte/api/models/shared/ReportBasedStreams.java index 3ce526330..c65ef90e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportBasedStreams.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportBasedStreams.java @@ -13,22 +13,25 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class ReportBasedStreams { @JsonProperty("auth_type") private Raas authType; + @JsonProperty("password") private String password; /** - * Report IDs can be found by clicking the three dots on the right side of the report > Web Service > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. + * Report IDs can be found by clicking the three dots on the right side of the report > Web Service + * > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. */ @JsonProperty("report_ids") private List reportIds; + @JsonProperty("username") private String username; @@ -57,7 +60,8 @@ public String password() { } /** - * Report IDs can be found by clicking the three dots on the right side of the report > Web Service > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. + * Report IDs can be found by clicking the three dots on the right side of the report > Web Service + * > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. */ @JsonIgnore public List reportIds() { @@ -69,9 +73,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ReportBasedStreams withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -80,7 +85,8 @@ public ReportBasedStreams withPassword(String password) { } /** - * Report IDs can be found by clicking the three dots on the right side of the report > Web Service > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. + * Report IDs can be found by clicking the three dots on the right side of the report > Web Service + * > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. */ public ReportBasedStreams withReportIds(List reportIds) { Utils.checkNotNull(reportIds, "reportIds"); @@ -94,7 +100,6 @@ public ReportBasedStreams withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -105,18 +110,16 @@ public boolean equals(java.lang.Object o) { } ReportBasedStreams other = (ReportBasedStreams) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.reportIds, other.reportIds) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.reportIds, other.reportIds) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - authType, - password, - reportIds, + return Utils.enhancedHash( + authType, password, reportIds, username); } @@ -128,27 +131,31 @@ public String toString() { "reportIds", reportIds, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private List reportIds; - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = password; return this; } + /** - * Report IDs can be found by clicking the three dots on the right side of the report > Web Service > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. + * Report IDs can be found by clicking the three dots on the right side of the report > Web Service + * > View URLs > in JSON url copy everything between Workday tenant/ and ?format=json. */ public Builder reportIds(List reportIds) { Utils.checkNotNull(reportIds, "reportIds"); @@ -156,19 +163,20 @@ public Builder reportIds(List reportIds) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public ReportBasedStreams build() { + return new ReportBasedStreams( - password, - reportIds, - username); + password, reportIds, username); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/ReportConfig.java b/src/main/java/com/airbyte/api/models/shared/ReportConfig.java index d3c4b58a9..332f84c11 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportConfig.java @@ -16,7 +16,6 @@ import java.lang.SuppressWarnings; import java.time.LocalDate; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -25,7 +24,6 @@ *

    Config for custom report */ public class ReportConfig { - /** * List of types of attribution for the conversion report */ @@ -47,7 +45,9 @@ public class ReportConfig { private List columns; /** - * The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.. + * The date by which the conversion metrics returned from this endpoint will be reported. There are two + * dates associated with a conversion event: the date that the user interacted with the ad, and the + * date that the user completed a conversion event.. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("conversion_report_time") @@ -81,7 +81,8 @@ public class ReportConfig { private String name; /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by report api (913 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by report api (913 days from today). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -131,7 +132,10 @@ public ReportConfig( public ReportConfig( List columns, String name) { - this(Optional.empty(), Optional.empty(), columns, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), columns, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty()); } /** @@ -161,7 +165,9 @@ public List columns() { } /** - * The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.. + * The date by which the conversion metrics returned from this endpoint will be reported. There are two + * dates associated with a conversion event: the date that the user interacted with the ad, and the + * date that the user completed a conversion event.. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -205,7 +211,8 @@ public String name() { } /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by report api (913 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by report api (913 days from today). */ @JsonIgnore public Optional startDate() { @@ -221,9 +228,10 @@ public Optional viewWindowDays() { return (Optional) viewWindowDays; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * List of types of attribution for the conversion report @@ -234,6 +242,7 @@ public ReportConfig withAttributionTypes(List attribu return this; } + /** * List of types of attribution for the conversion report */ @@ -252,6 +261,7 @@ public ReportConfig withClickWindowDays(ClickWindowDays clickWindowDays) { return this; } + /** * Number of days to use as the conversion attribution window for a pin click action. */ @@ -271,7 +281,9 @@ public ReportConfig withColumns(List columns) } /** - * The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.. + * The date by which the conversion metrics returned from this endpoint will be reported. There are two + * dates associated with a conversion event: the date that the user interacted with the ad, and the + * date that the user completed a conversion event.. */ public ReportConfig withConversionReportTime(ConversionReportTime conversionReportTime) { Utils.checkNotNull(conversionReportTime, "conversionReportTime"); @@ -279,8 +291,11 @@ public ReportConfig withConversionReportTime(ConversionReportTime conversionRepo return this; } + /** - * The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.. + * The date by which the conversion metrics returned from this endpoint will be reported. There are two + * dates associated with a conversion event: the date that the user interacted with the ad, and the + * date that the user completed a conversion event.. */ public ReportConfig withConversionReportTime(Optional conversionReportTime) { Utils.checkNotNull(conversionReportTime, "conversionReportTime"); @@ -297,6 +312,7 @@ public ReportConfig withEngagementWindowDays(EngagementWindowDays engagementWind return this; } + /** * Number of days to use as the conversion attribution window for an engagement action. */ @@ -315,6 +331,7 @@ public ReportConfig withGranularity(Granularity granularity) { return this; } + /** * Chosen granularity for API */ @@ -333,6 +350,7 @@ public ReportConfig withLevel(SourcePinterestLevel level) { return this; } + /** * Chosen level for API */ @@ -352,7 +370,8 @@ public ReportConfig withName(String name) { } /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by report api (913 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by report api (913 days from today). */ public ReportConfig withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -360,8 +379,10 @@ public ReportConfig withStartDate(LocalDate startDate) { return this; } + /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by report api (913 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by report api (913 days from today). */ public ReportConfig withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -378,6 +399,7 @@ public ReportConfig withViewWindowDays(ViewWindowDays viewWindowDays) { return this; } + /** * Number of days to use as the conversion attribution window for a view action. */ @@ -387,7 +409,6 @@ public ReportConfig withViewWindowDays(Optional viewWi return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -398,30 +419,24 @@ public boolean equals(java.lang.Object o) { } ReportConfig other = (ReportConfig) o; return - Objects.deepEquals(this.attributionTypes, other.attributionTypes) && - Objects.deepEquals(this.clickWindowDays, other.clickWindowDays) && - Objects.deepEquals(this.columns, other.columns) && - Objects.deepEquals(this.conversionReportTime, other.conversionReportTime) && - Objects.deepEquals(this.engagementWindowDays, other.engagementWindowDays) && - Objects.deepEquals(this.granularity, other.granularity) && - Objects.deepEquals(this.level, other.level) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.viewWindowDays, other.viewWindowDays); + Utils.enhancedDeepEquals(this.attributionTypes, other.attributionTypes) && + Utils.enhancedDeepEquals(this.clickWindowDays, other.clickWindowDays) && + Utils.enhancedDeepEquals(this.columns, other.columns) && + Utils.enhancedDeepEquals(this.conversionReportTime, other.conversionReportTime) && + Utils.enhancedDeepEquals(this.engagementWindowDays, other.engagementWindowDays) && + Utils.enhancedDeepEquals(this.granularity, other.granularity) && + Utils.enhancedDeepEquals(this.level, other.level) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.viewWindowDays, other.viewWindowDays); } @Override public int hashCode() { - return Objects.hash( - attributionTypes, - clickWindowDays, - columns, - conversionReportTime, - engagementWindowDays, - granularity, - level, - name, - startDate, + return Utils.enhancedHash( + attributionTypes, clickWindowDays, columns, + conversionReportTime, engagementWindowDays, granularity, + level, name, startDate, viewWindowDays); } @@ -439,33 +454,35 @@ public String toString() { "startDate", startDate, "viewWindowDays", viewWindowDays); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> attributionTypes = Optional.empty(); - + private Optional clickWindowDays; - + private List columns; - + private Optional conversionReportTime; - + private Optional engagementWindowDays; - + private Optional granularity; - + private Optional level; - + private String name; - + private Optional startDate = Optional.empty(); - + private Optional viewWindowDays; - + private Builder() { // force use of static builder() method } + /** * List of types of attribution for the conversion report */ @@ -484,6 +501,7 @@ public Builder attributionTypes(Optional clickWindowDa return this; } + /** * A list of chosen columns */ @@ -511,8 +530,11 @@ public Builder columns(List columns) { return this; } + /** - * The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.. + * The date by which the conversion metrics returned from this endpoint will be reported. There are two + * dates associated with a conversion event: the date that the user interacted with the ad, and the + * date that the user completed a conversion event.. */ public Builder conversionReportTime(ConversionReportTime conversionReportTime) { Utils.checkNotNull(conversionReportTime, "conversionReportTime"); @@ -521,7 +543,9 @@ public Builder conversionReportTime(ConversionReportTime conversionReportTime) { } /** - * The date by which the conversion metrics returned from this endpoint will be reported. There are two dates associated with a conversion event: the date that the user interacted with the ad, and the date that the user completed a conversion event.. + * The date by which the conversion metrics returned from this endpoint will be reported. There are two + * dates associated with a conversion event: the date that the user interacted with the ad, and the + * date that the user completed a conversion event.. */ public Builder conversionReportTime(Optional conversionReportTime) { Utils.checkNotNull(conversionReportTime, "conversionReportTime"); @@ -529,6 +553,7 @@ public Builder conversionReportTime(Optional con return this; } + /** * Number of days to use as the conversion attribution window for an engagement action. */ @@ -547,6 +572,7 @@ public Builder engagementWindowDays(Optional eng return this; } + /** * Chosen granularity for API */ @@ -565,6 +591,7 @@ public Builder granularity(Optional granularity) { return this; } + /** * Chosen level for API */ @@ -583,6 +610,7 @@ public Builder level(Optional level) { return this; } + /** * The name value of report */ @@ -592,8 +620,10 @@ public Builder name(String name) { return this; } + /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by report api (913 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by report api (913 days from today). */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -602,7 +632,8 @@ public Builder startDate(LocalDate startDate) { } /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by report api (913 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by report api (913 days from today). */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -610,6 +641,7 @@ public Builder startDate(Optional startDate) { return this; } + /** * Number of days to use as the conversion attribution window for a view action. */ @@ -627,7 +659,7 @@ public Builder viewWindowDays(Optional viewWindowDays) this.viewWindowDays = viewWindowDays; return this; } - + public ReportConfig build() { if (clickWindowDays == null) { clickWindowDays = _SINGLETON_VALUE_ClickWindowDays.value(); @@ -647,19 +679,15 @@ public ReportConfig build() { if (viewWindowDays == null) { viewWindowDays = _SINGLETON_VALUE_ViewWindowDays.value(); } + return new ReportConfig( - attributionTypes, - clickWindowDays, - columns, - conversionReportTime, - engagementWindowDays, - granularity, - level, - name, - startDate, + attributionTypes, clickWindowDays, columns, + conversionReportTime, engagementWindowDays, granularity, + level, name, startDate, viewWindowDays); } + private static final LazySingletonValue> _SINGLETON_VALUE_ClickWindowDays = new LazySingletonValue<>( "click_window_days", diff --git a/src/main/java/com/airbyte/api/models/shared/ReportName.java b/src/main/java/com/airbyte/api/models/shared/ReportName.java index fde11d99e..51b3e1229 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportName.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportName.java @@ -50,7 +50,7 @@ public enum ReportName { @JsonValue private final String value; - private ReportName(String value) { + ReportName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ReportOptions.java b/src/main/java/com/airbyte/api/models/shared/ReportOptions.java index 324360a82..3cb770771 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportOptions.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportOptions.java @@ -10,19 +10,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; -public class ReportOptions { +public class ReportOptions { /** * List of options */ @JsonProperty("options_list") private List optionsList; + @JsonProperty("report_name") private ReportName reportName; + @JsonProperty("stream_name") private String streamName; @@ -57,9 +58,10 @@ public String streamName() { return streamName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * List of options @@ -82,7 +84,6 @@ public ReportOptions withStreamName(String streamName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -93,17 +94,15 @@ public boolean equals(java.lang.Object o) { } ReportOptions other = (ReportOptions) o; return - Objects.deepEquals(this.optionsList, other.optionsList) && - Objects.deepEquals(this.reportName, other.reportName) && - Objects.deepEquals(this.streamName, other.streamName); + Utils.enhancedDeepEquals(this.optionsList, other.optionsList) && + Utils.enhancedDeepEquals(this.reportName, other.reportName) && + Utils.enhancedDeepEquals(this.streamName, other.streamName); } @Override public int hashCode() { - return Objects.hash( - optionsList, - reportName, - streamName); + return Utils.enhancedHash( + optionsList, reportName, streamName); } @Override @@ -113,19 +112,21 @@ public String toString() { "reportName", reportName, "streamName", streamName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List optionsList; - + private ReportName reportName; - + private String streamName; - + private Builder() { // force use of static builder() method } + /** * List of options */ @@ -135,23 +136,25 @@ public Builder optionsList(List optionsList) { return this; } + public Builder reportName(ReportName reportName) { Utils.checkNotNull(reportName, "reportName"); this.reportName = reportName; return this; } + public Builder streamName(String streamName) { Utils.checkNotNull(streamName, "streamName"); this.streamName = streamName; return this; } - + public ReportOptions build() { + return new ReportOptions( - optionsList, - reportName, - streamName); + optionsList, reportName, streamName); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java b/src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java index c492c209e..bf88e1dfc 100644 --- a/src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java +++ b/src/main/java/com/airbyte/api/models/shared/ReportingDataObject.java @@ -11,7 +11,8 @@ /** * ReportingDataObject * - *

    The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api docs - Reporting API - Reporting Data Objects. + *

    The name of the the object derives from the ReportRequest object. You can find it in Bing Ads Api + * docs - Reporting API - Reporting Data Objects. */ public enum ReportingDataObject { ACCOUNT_PERFORMANCE_REPORT_REQUEST("AccountPerformanceReportRequest"), @@ -52,7 +53,7 @@ public enum ReportingDataObject { @JsonValue private final String value; - private ReportingDataObject(String value) { + ReportingDataObject(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Require.java b/src/main/java/com/airbyte/api/models/shared/Require.java index 4e6beb7ab..1d708f2cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/Require.java +++ b/src/main/java/com/airbyte/api/models/shared/Require.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class Require { @JsonCreator public Require() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } Require other = (Require) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(Require.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public Require build() { + return new Require( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/Required.java b/src/main/java/com/airbyte/api/models/shared/Required.java index d009710d2..a1fa5d408 100644 --- a/src/main/java/com/airbyte/api/models/shared/Required.java +++ b/src/main/java/com/airbyte/api/models/shared/Required.java @@ -19,19 +19,20 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * Required * - *

    To always require encryption. Note: The connection will fail if the source doesn't support encryption. + *

    To always require encryption. Note: The connection will fail if the source doesn't support + * encryption. */ public class Required { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -59,9 +60,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public Required withAdditionalProperty(String key, Object value) { @@ -69,8 +71,7 @@ public Required withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public Required withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +84,13 @@ public Required withMode(SourceMysqlSchemasMode mode) { return this; } + public Required withMode(Optional mode) { Utils.checkNotNull(mode, "mode"); this.mode = mode; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +101,14 @@ public boolean equals(java.lang.Object o) { } Required other = (Required) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - mode); + return Utils.enhancedHash( + additionalProperties, mode); } @Override @@ -117,13 +117,14 @@ public String toString() { "additionalProperties", additionalProperties, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional mode; - + private Builder() { // force use of static builder() method } @@ -144,6 +145,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder mode(SourceMysqlSchemasMode mode) { Utils.checkNotNull(mode, "mode"); this.mode = Optional.ofNullable(mode); @@ -155,16 +157,18 @@ public Builder mode(Optional mode) { this.mode = mode; return this; } - + public Required build() { if (mode == null) { mode = _SINGLETON_VALUE_Mode.value(); } + return new Required( mode) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/Resolution.java b/src/main/java/com/airbyte/api/models/shared/Resolution.java index 585ba079e..226e19c13 100644 --- a/src/main/java/com/airbyte/api/models/shared/Resolution.java +++ b/src/main/java/com/airbyte/api/models/shared/Resolution.java @@ -16,7 +16,7 @@ public enum Resolution { @JsonValue private final String value; - private Resolution(String value) { + Resolution(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ResourceRequirements.java b/src/main/java/com/airbyte/api/models/shared/ResourceRequirements.java index d0033bbf3..c39a5c955 100644 --- a/src/main/java/com/airbyte/api/models/shared/ResourceRequirements.java +++ b/src/main/java/com/airbyte/api/models/shared/ResourceRequirements.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -25,22 +24,27 @@ public class ResourceRequirements { @JsonProperty("cpu_limit") private Optional cpuLimit; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("cpu_request") private Optional cpuRequest; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("ephemeral_storage_limit") private Optional ephemeralStorageLimit; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("ephemeral_storage_request") private Optional ephemeralStorageRequest; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("memory_limit") private Optional memoryLimit; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("memory_request") private Optional memoryRequest; @@ -68,7 +72,8 @@ public ResourceRequirements( } public ResourceRequirements() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } @JsonIgnore @@ -101,9 +106,10 @@ public Optional memoryRequest() { return memoryRequest; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ResourceRequirements withCpuLimit(String cpuLimit) { Utils.checkNotNull(cpuLimit, "cpuLimit"); @@ -111,6 +117,7 @@ public ResourceRequirements withCpuLimit(String cpuLimit) { return this; } + public ResourceRequirements withCpuLimit(Optional cpuLimit) { Utils.checkNotNull(cpuLimit, "cpuLimit"); this.cpuLimit = cpuLimit; @@ -123,6 +130,7 @@ public ResourceRequirements withCpuRequest(String cpuRequest) { return this; } + public ResourceRequirements withCpuRequest(Optional cpuRequest) { Utils.checkNotNull(cpuRequest, "cpuRequest"); this.cpuRequest = cpuRequest; @@ -135,6 +143,7 @@ public ResourceRequirements withEphemeralStorageLimit(String ephemeralStorageLim return this; } + public ResourceRequirements withEphemeralStorageLimit(Optional ephemeralStorageLimit) { Utils.checkNotNull(ephemeralStorageLimit, "ephemeralStorageLimit"); this.ephemeralStorageLimit = ephemeralStorageLimit; @@ -147,6 +156,7 @@ public ResourceRequirements withEphemeralStorageRequest(String ephemeralStorageR return this; } + public ResourceRequirements withEphemeralStorageRequest(Optional ephemeralStorageRequest) { Utils.checkNotNull(ephemeralStorageRequest, "ephemeralStorageRequest"); this.ephemeralStorageRequest = ephemeralStorageRequest; @@ -159,6 +169,7 @@ public ResourceRequirements withMemoryLimit(String memoryLimit) { return this; } + public ResourceRequirements withMemoryLimit(Optional memoryLimit) { Utils.checkNotNull(memoryLimit, "memoryLimit"); this.memoryLimit = memoryLimit; @@ -171,13 +182,13 @@ public ResourceRequirements withMemoryRequest(String memoryRequest) { return this; } + public ResourceRequirements withMemoryRequest(Optional memoryRequest) { Utils.checkNotNull(memoryRequest, "memoryRequest"); this.memoryRequest = memoryRequest; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -188,23 +199,19 @@ public boolean equals(java.lang.Object o) { } ResourceRequirements other = (ResourceRequirements) o; return - Objects.deepEquals(this.cpuLimit, other.cpuLimit) && - Objects.deepEquals(this.cpuRequest, other.cpuRequest) && - Objects.deepEquals(this.ephemeralStorageLimit, other.ephemeralStorageLimit) && - Objects.deepEquals(this.ephemeralStorageRequest, other.ephemeralStorageRequest) && - Objects.deepEquals(this.memoryLimit, other.memoryLimit) && - Objects.deepEquals(this.memoryRequest, other.memoryRequest); + Utils.enhancedDeepEquals(this.cpuLimit, other.cpuLimit) && + Utils.enhancedDeepEquals(this.cpuRequest, other.cpuRequest) && + Utils.enhancedDeepEquals(this.ephemeralStorageLimit, other.ephemeralStorageLimit) && + Utils.enhancedDeepEquals(this.ephemeralStorageRequest, other.ephemeralStorageRequest) && + Utils.enhancedDeepEquals(this.memoryLimit, other.memoryLimit) && + Utils.enhancedDeepEquals(this.memoryRequest, other.memoryRequest); } @Override public int hashCode() { - return Objects.hash( - cpuLimit, - cpuRequest, - ephemeralStorageLimit, - ephemeralStorageRequest, - memoryLimit, - memoryRequest); + return Utils.enhancedHash( + cpuLimit, cpuRequest, ephemeralStorageLimit, + ephemeralStorageRequest, memoryLimit, memoryRequest); } @Override @@ -217,25 +224,27 @@ public String toString() { "memoryLimit", memoryLimit, "memoryRequest", memoryRequest); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional cpuLimit = Optional.empty(); - + private Optional cpuRequest = Optional.empty(); - + private Optional ephemeralStorageLimit = Optional.empty(); - + private Optional ephemeralStorageRequest = Optional.empty(); - + private Optional memoryLimit = Optional.empty(); - + private Optional memoryRequest = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder cpuLimit(String cpuLimit) { Utils.checkNotNull(cpuLimit, "cpuLimit"); this.cpuLimit = Optional.ofNullable(cpuLimit); @@ -248,6 +257,7 @@ public Builder cpuLimit(Optional cpuLimit) { return this; } + public Builder cpuRequest(String cpuRequest) { Utils.checkNotNull(cpuRequest, "cpuRequest"); this.cpuRequest = Optional.ofNullable(cpuRequest); @@ -260,6 +270,7 @@ public Builder cpuRequest(Optional cpuRequest) { return this; } + public Builder ephemeralStorageLimit(String ephemeralStorageLimit) { Utils.checkNotNull(ephemeralStorageLimit, "ephemeralStorageLimit"); this.ephemeralStorageLimit = Optional.ofNullable(ephemeralStorageLimit); @@ -272,6 +283,7 @@ public Builder ephemeralStorageLimit(Optional ephemeralStorageLimit) { return this; } + public Builder ephemeralStorageRequest(String ephemeralStorageRequest) { Utils.checkNotNull(ephemeralStorageRequest, "ephemeralStorageRequest"); this.ephemeralStorageRequest = Optional.ofNullable(ephemeralStorageRequest); @@ -284,6 +296,7 @@ public Builder ephemeralStorageRequest(Optional ephemeralStorageRequest) return this; } + public Builder memoryLimit(String memoryLimit) { Utils.checkNotNull(memoryLimit, "memoryLimit"); this.memoryLimit = Optional.ofNullable(memoryLimit); @@ -296,6 +309,7 @@ public Builder memoryLimit(Optional memoryLimit) { return this; } + public Builder memoryRequest(String memoryRequest) { Utils.checkNotNull(memoryRequest, "memoryRequest"); this.memoryRequest = Optional.ofNullable(memoryRequest); @@ -307,15 +321,13 @@ public Builder memoryRequest(Optional memoryRequest) { this.memoryRequest = memoryRequest; return this; } - + public ResourceRequirements build() { + return new ResourceRequirements( - cpuLimit, - cpuRequest, - ephemeralStorageLimit, - ephemeralStorageRequest, - memoryLimit, - memoryRequest); + cpuLimit, cpuRequest, ephemeralStorageLimit, + ephemeralStorageRequest, memoryLimit, memoryRequest); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Rest.java b/src/main/java/com/airbyte/api/models/shared/Rest.java index e5e4af396..7ead1eda0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rest.java +++ b/src/main/java/com/airbyte/api/models/shared/Rest.java @@ -14,7 +14,7 @@ public enum Rest { @JsonValue private final String value; - private Rest(String value) { + Rest(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/RestCatalog.java b/src/main/java/com/airbyte/api/models/shared/RestCatalog.java index 0ae09df3d..164649212 100644 --- a/src/main/java/com/airbyte/api/models/shared/RestCatalog.java +++ b/src/main/java/com/airbyte/api/models/shared/RestCatalog.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,14 +31,15 @@ public class RestCatalog { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("catalog_type") private Optional catalogType; /** - * The namespace to be used in the Table identifier. - * This will ONLY be used if the `Destination Namespace` setting for the connection is set to - * `Destination-defined` or `Source-defined` + * The namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` */ @JsonProperty("namespace") private String namespace; @@ -82,9 +82,9 @@ public Optional catalogType() { } /** - * The namespace to be used in the Table identifier. - * This will ONLY be used if the `Destination Namespace` setting for the connection is set to - * `Destination-defined` or `Source-defined` + * The namespace to be used in the Table identifier. + * This will ONLY be used if the `Destination Namespace` setting for the connection is set to + * `Destination-defined` or `Source-defined` */ @JsonIgnore public String namespace() { @@ -99,9 +99,10 @@ public String serverUri() { return serverUri; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public RestCatalog withAdditionalProperty(String key, Object value) { @@ -109,8 +110,7 @@ public RestCatalog withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public RestCatalog withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -123,6 +123,7 @@ public RestCatalog withCatalogType(DestinationS3DataLakeSchemasCatalogType catal return this; } + public RestCatalog withCatalogType(Optional catalogType) { Utils.checkNotNull(catalogType, "catalogType"); this.catalogType = catalogType; @@ -130,9 +131,9 @@ public RestCatalog withCatalogType(Optional additionalProperties = new HashMap<>(); - + private Optional catalogType; - + private String namespace; - + private String serverUri; - + private Builder() { // force use of static builder() method } @@ -214,6 +213,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder catalogType(DestinationS3DataLakeSchemasCatalogType catalogType) { Utils.checkNotNull(catalogType, "catalogType"); this.catalogType = Optional.ofNullable(catalogType); @@ -226,10 +226,11 @@ public Builder catalogType(Optional> _SINGLETON_VALUE_CatalogType = new LazySingletonValue<>( "catalog_type", diff --git a/src/main/java/com/airbyte/api/models/shared/RetailexpressByMaropost.java b/src/main/java/com/airbyte/api/models/shared/RetailexpressByMaropost.java index c8b7c79eb..379c9c623 100644 --- a/src/main/java/com/airbyte/api/models/shared/RetailexpressByMaropost.java +++ b/src/main/java/com/airbyte/api/models/shared/RetailexpressByMaropost.java @@ -14,7 +14,7 @@ public enum RetailexpressByMaropost { @JsonValue private final String value; - private RetailexpressByMaropost(String value) { + RetailexpressByMaropost(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Retently.java b/src/main/java/com/airbyte/api/models/shared/Retently.java index 20d4df290..99eba2309 100644 --- a/src/main/java/com/airbyte/api/models/shared/Retently.java +++ b/src/main/java/com/airbyte/api/models/shared/Retently.java @@ -14,7 +14,7 @@ public enum Retently { @JsonValue private final String value; - private Retently(String value) { + Retently(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Revenuecat.java b/src/main/java/com/airbyte/api/models/shared/Revenuecat.java index d0487627e..8d8931973 100644 --- a/src/main/java/com/airbyte/api/models/shared/Revenuecat.java +++ b/src/main/java/com/airbyte/api/models/shared/Revenuecat.java @@ -14,7 +14,7 @@ public enum Revenuecat { @JsonValue private final String value; - private Revenuecat(String value) { + Revenuecat(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java b/src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java index 6ad442c25..6feb1630d 100644 --- a/src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java +++ b/src/main/java/com/airbyte/api/models/shared/RevolutMerchant.java @@ -14,7 +14,7 @@ public enum RevolutMerchant { @JsonValue private final String value; - private RevolutMerchant(String value) { + RevolutMerchant(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Ringcentral.java b/src/main/java/com/airbyte/api/models/shared/Ringcentral.java index 9dd8161c2..2c21703f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ringcentral.java +++ b/src/main/java/com/airbyte/api/models/shared/Ringcentral.java @@ -14,7 +14,7 @@ public enum Ringcentral { @JsonValue private final String value; - private Ringcentral(String value) { + Ringcentral(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/RkiCovid.java b/src/main/java/com/airbyte/api/models/shared/RkiCovid.java index bb2fb20bb..0dac26a45 100644 --- a/src/main/java/com/airbyte/api/models/shared/RkiCovid.java +++ b/src/main/java/com/airbyte/api/models/shared/RkiCovid.java @@ -14,7 +14,7 @@ public enum RkiCovid { @JsonValue private final String value; - private RkiCovid(String value) { + RkiCovid(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/RocketChat.java b/src/main/java/com/airbyte/api/models/shared/RocketChat.java index 605ee85aa..31e02775a 100644 --- a/src/main/java/com/airbyte/api/models/shared/RocketChat.java +++ b/src/main/java/com/airbyte/api/models/shared/RocketChat.java @@ -14,7 +14,7 @@ public enum RocketChat { @JsonValue private final String value; - private RocketChat(String value) { + RocketChat(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Rocketlane.java b/src/main/java/com/airbyte/api/models/shared/Rocketlane.java index c355c139e..d0b84e735 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rocketlane.java +++ b/src/main/java/com/airbyte/api/models/shared/Rocketlane.java @@ -14,7 +14,7 @@ public enum Rocketlane { @JsonValue private final String value; - private Rocketlane(String value) { + Rocketlane(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/RoleBasedAuthentication.java b/src/main/java/com/airbyte/api/models/shared/RoleBasedAuthentication.java index c2c34710b..345134e03 100644 --- a/src/main/java/com/airbyte/api/models/shared/RoleBasedAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/RoleBasedAuthentication.java @@ -19,21 +19,21 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class RoleBasedAuthentication { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @JsonCreator public RoleBasedAuthentication() { - this.additionalProperties = new HashMap<>(); this.authType = Builder._SINGLETON_VALUE_AuthType.value(); } @@ -49,9 +49,10 @@ public Optional authType() { return (Optional) authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public RoleBasedAuthentication withAdditionalProperty(String key, Object value) { @@ -59,15 +60,13 @@ public RoleBasedAuthentication withAdditionalProperty(String key, Object value) Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public RoleBasedAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,15 +77,14 @@ public boolean equals(java.lang.Object o) { } RoleBasedAuthentication other = (RoleBasedAuthentication) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - authType); + return Utils.enhancedHash( + additionalProperties, authType); } @Override @@ -95,11 +93,12 @@ public String toString() { "additionalProperties", additionalProperties, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Builder() { // force use of static builder() method } @@ -119,13 +118,15 @@ public Builder additionalProperties(Map additionalProperties) { this.additionalProperties = additionalProperties; return this; } - + public RoleBasedAuthentication build() { + return new RoleBasedAuthentication( ) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Rollbar.java b/src/main/java/com/airbyte/api/models/shared/Rollbar.java index d740bff7a..40f4ebe1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rollbar.java +++ b/src/main/java/com/airbyte/api/models/shared/Rollbar.java @@ -14,7 +14,7 @@ public enum Rollbar { @JsonValue private final String value; - private Rollbar(String value) { + Rollbar(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Rootly.java b/src/main/java/com/airbyte/api/models/shared/Rootly.java index a8d1fc131..664115ec1 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rootly.java +++ b/src/main/java/com/airbyte/api/models/shared/Rootly.java @@ -14,7 +14,7 @@ public enum Rootly { @JsonValue private final String value; - private Rootly(String value) { + Rootly(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/RowFiltering.java b/src/main/java/com/airbyte/api/models/shared/RowFiltering.java index a3131a942..5cebaed42 100644 --- a/src/main/java/com/airbyte/api/models/shared/RowFiltering.java +++ b/src/main/java/com/airbyte/api/models/shared/RowFiltering.java @@ -9,7 +9,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class RowFiltering { @@ -28,9 +28,10 @@ public RowFilteringOperation conditions() { return conditions; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public RowFiltering withConditions(RowFilteringOperation conditions) { Utils.checkNotNull(conditions, "conditions"); @@ -38,7 +39,6 @@ public RowFiltering withConditions(RowFilteringOperation conditions) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } RowFiltering other = (RowFiltering) o; return - Objects.deepEquals(this.conditions, other.conditions); + Utils.enhancedDeepEquals(this.conditions, other.conditions); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( conditions); } @@ -63,24 +63,28 @@ public String toString() { return Utils.toString(RowFiltering.class, "conditions", conditions); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private RowFilteringOperation conditions; - + private Builder() { // force use of static builder() method } + public Builder conditions(RowFilteringOperation conditions) { Utils.checkNotNull(conditions, "conditions"); this.conditions = conditions; return this; } - + public RowFiltering build() { + return new RowFiltering( conditions); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/RowFilteringOperationType.java b/src/main/java/com/airbyte/api/models/shared/RowFilteringOperationType.java index 047859785..ce41bc7b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/RowFilteringOperationType.java +++ b/src/main/java/com/airbyte/api/models/shared/RowFilteringOperationType.java @@ -15,7 +15,7 @@ public enum RowFilteringOperationType { @JsonValue private final String value; - private RowFilteringOperationType(String value) { + RowFilteringOperationType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Rss.java b/src/main/java/com/airbyte/api/models/shared/Rss.java index 829380ffd..8c936fa9d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Rss.java +++ b/src/main/java/com/airbyte/api/models/shared/Rss.java @@ -14,7 +14,7 @@ public enum Rss { @JsonValue private final String value; - private Rss(String value) { + Rss(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Ruddr.java b/src/main/java/com/airbyte/api/models/shared/Ruddr.java index 3d0527b87..712498ed4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ruddr.java +++ b/src/main/java/com/airbyte/api/models/shared/Ruddr.java @@ -14,7 +14,7 @@ public enum Ruddr { @JsonValue private final String value; - private Ruddr(String value) { + Ruddr(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/S3.java b/src/main/java/com/airbyte/api/models/shared/S3.java index 7d9c41267..b271da65f 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3.java +++ b/src/main/java/com/airbyte/api/models/shared/S3.java @@ -14,7 +14,7 @@ public enum S3 { @JsonValue private final String value; - private S3(String value) { + S3(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/S3AmazonWebServices.java b/src/main/java/com/airbyte/api/models/shared/S3AmazonWebServices.java index e1ca8570f..8a1cb075f 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3AmazonWebServices.java +++ b/src/main/java/com/airbyte/api/models/shared/S3AmazonWebServices.java @@ -13,25 +13,27 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class S3AmazonWebServices { +public class S3AmazonWebServices { /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("aws_access_key_id") private Optional awsAccessKeyId; /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("aws_secret_access_key") private Optional awsSecretAccessKey; + @JsonProperty("storage") private SourceFileSchemasStorage storage; @@ -51,7 +53,8 @@ public S3AmazonWebServices() { } /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ @JsonIgnore public Optional awsAccessKeyId() { @@ -59,7 +62,8 @@ public Optional awsAccessKeyId() { } /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ @JsonIgnore public Optional awsSecretAccessKey() { @@ -71,12 +75,14 @@ public SourceFileSchemasStorage storage() { return storage; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public S3AmazonWebServices withAwsAccessKeyId(String awsAccessKeyId) { Utils.checkNotNull(awsAccessKeyId, "awsAccessKeyId"); @@ -84,8 +90,10 @@ public S3AmazonWebServices withAwsAccessKeyId(String awsAccessKeyId) { return this; } + /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public S3AmazonWebServices withAwsAccessKeyId(Optional awsAccessKeyId) { Utils.checkNotNull(awsAccessKeyId, "awsAccessKeyId"); @@ -94,7 +102,8 @@ public S3AmazonWebServices withAwsAccessKeyId(Optional awsAccessKeyId) { } /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public S3AmazonWebServices withAwsSecretAccessKey(String awsSecretAccessKey) { Utils.checkNotNull(awsSecretAccessKey, "awsSecretAccessKey"); @@ -102,8 +111,10 @@ public S3AmazonWebServices withAwsSecretAccessKey(String awsSecretAccessKey) { return this; } + /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public S3AmazonWebServices withAwsSecretAccessKey(Optional awsSecretAccessKey) { Utils.checkNotNull(awsSecretAccessKey, "awsSecretAccessKey"); @@ -111,7 +122,6 @@ public S3AmazonWebServices withAwsSecretAccessKey(Optional awsSecretAcce return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,17 +132,15 @@ public boolean equals(java.lang.Object o) { } S3AmazonWebServices other = (S3AmazonWebServices) o; return - Objects.deepEquals(this.awsAccessKeyId, other.awsAccessKeyId) && - Objects.deepEquals(this.awsSecretAccessKey, other.awsSecretAccessKey) && - Objects.deepEquals(this.storage, other.storage); + Utils.enhancedDeepEquals(this.awsAccessKeyId, other.awsAccessKeyId) && + Utils.enhancedDeepEquals(this.awsSecretAccessKey, other.awsSecretAccessKey) && + Utils.enhancedDeepEquals(this.storage, other.storage); } @Override public int hashCode() { - return Objects.hash( - awsAccessKeyId, - awsSecretAccessKey, - storage); + return Utils.enhancedHash( + awsAccessKeyId, awsSecretAccessKey, storage); } @Override @@ -142,19 +150,22 @@ public String toString() { "awsSecretAccessKey", awsSecretAccessKey, "storage", storage); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional awsAccessKeyId = Optional.empty(); - + private Optional awsSecretAccessKey = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public Builder awsAccessKeyId(String awsAccessKeyId) { Utils.checkNotNull(awsAccessKeyId, "awsAccessKeyId"); @@ -163,7 +174,8 @@ public Builder awsAccessKeyId(String awsAccessKeyId) { } /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public Builder awsAccessKeyId(Optional awsAccessKeyId) { Utils.checkNotNull(awsAccessKeyId, "awsAccessKeyId"); @@ -171,8 +183,10 @@ public Builder awsAccessKeyId(Optional awsAccessKeyId) { return this; } + /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public Builder awsSecretAccessKey(String awsSecretAccessKey) { Utils.checkNotNull(awsSecretAccessKey, "awsSecretAccessKey"); @@ -181,20 +195,22 @@ public Builder awsSecretAccessKey(String awsSecretAccessKey) { } /** - * In order to access private Buckets stored on AWS S3, this connector would need credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector would need credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public Builder awsSecretAccessKey(Optional awsSecretAccessKey) { Utils.checkNotNull(awsSecretAccessKey, "awsSecretAccessKey"); this.awsSecretAccessKey = awsSecretAccessKey; return this; } - + public S3AmazonWebServices build() { + return new S3AmazonWebServices( - awsAccessKeyId, - awsSecretAccessKey); + awsAccessKeyId, awsSecretAccessKey); } + private static final LazySingletonValue _SINGLETON_VALUE_Storage = new LazySingletonValue<>( "storage", diff --git a/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java b/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java index 784247de6..ed98cf2ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/S3BucketRegion.java @@ -11,7 +11,9 @@ /** * S3BucketRegion * - *

    The region of the S3 bucket. See <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions">here</a> for all region codes. + *

    The region of the S3 bucket. See here + * for all region codes. */ public enum S3BucketRegion { UNKNOWN(""), @@ -52,7 +54,7 @@ public enum S3BucketRegion { @JsonValue private final String value; - private S3BucketRegion(String value) { + S3BucketRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/S3DataLake.java b/src/main/java/com/airbyte/api/models/shared/S3DataLake.java index e4ee90ca3..5a8bf2864 100644 --- a/src/main/java/com/airbyte/api/models/shared/S3DataLake.java +++ b/src/main/java/com/airbyte/api/models/shared/S3DataLake.java @@ -14,7 +14,7 @@ public enum S3DataLake { @JsonValue private final String value; - private S3DataLake(String value) { + S3DataLake(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SCPSecureCopyProtocol.java b/src/main/java/com/airbyte/api/models/shared/SCPSecureCopyProtocol.java index 482eec188..ddc7f5d1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SCPSecureCopyProtocol.java +++ b/src/main/java/com/airbyte/api/models/shared/SCPSecureCopyProtocol.java @@ -13,25 +13,29 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SCPSecureCopyProtocol { @JsonProperty("host") private String host; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") private Optional port; + @JsonProperty("storage") private SourceFileSchemasProviderStorageProvider6Storage storage; + @JsonProperty("user") private String user; @@ -55,7 +59,8 @@ public SCPSecureCopyProtocol( public SCPSecureCopyProtocol( String host, String user) { - this(host, Optional.empty(), Optional.empty(), user); + this(host, Optional.empty(), Optional.empty(), + user); } @JsonIgnore @@ -83,9 +88,10 @@ public String user() { return user; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SCPSecureCopyProtocol withHost(String host) { Utils.checkNotNull(host, "host"); @@ -99,6 +105,7 @@ public SCPSecureCopyProtocol withPassword(String password) { return this; } + public SCPSecureCopyProtocol withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -111,6 +118,7 @@ public SCPSecureCopyProtocol withPort(String port) { return this; } + public SCPSecureCopyProtocol withPort(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; @@ -123,7 +131,6 @@ public SCPSecureCopyProtocol withUser(String user) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -134,21 +141,18 @@ public boolean equals(java.lang.Object o) { } SCPSecureCopyProtocol other = (SCPSecureCopyProtocol) o; return - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.storage, other.storage) && - Objects.deepEquals(this.user, other.user); + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.storage, other.storage) && + Utils.enhancedDeepEquals(this.user, other.user); } @Override public int hashCode() { - return Objects.hash( - host, - password, - port, - storage, - user); + return Utils.enhancedHash( + host, password, port, + storage, user); } @Override @@ -160,27 +164,30 @@ public String toString() { "storage", storage, "user", user); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String host; - + private Optional password = Optional.empty(); - + private Optional port; - + private String user; - + private Builder() { // force use of static builder() method } + public Builder host(String host) { Utils.checkNotNull(host, "host"); this.host = host; return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -193,6 +200,7 @@ public Builder password(Optional password) { return this; } + public Builder port(String port) { Utils.checkNotNull(port, "port"); this.port = Optional.ofNullable(port); @@ -205,23 +213,24 @@ public Builder port(Optional port) { return this; } + public Builder user(String user) { Utils.checkNotNull(user, "user"); this.user = user; return this; } - + public SCPSecureCopyProtocol build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SCPSecureCopyProtocol( - host, - password, - port, + host, password, port, user); } + private static final LazySingletonValue> _SINGLETON_VALUE_Port = new LazySingletonValue<>( "port", diff --git a/src/main/java/com/airbyte/api/models/shared/SFTPSecureFileTransferProtocol.java b/src/main/java/com/airbyte/api/models/shared/SFTPSecureFileTransferProtocol.java index 98fd7d142..53e3d865a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SFTPSecureFileTransferProtocol.java +++ b/src/main/java/com/airbyte/api/models/shared/SFTPSecureFileTransferProtocol.java @@ -13,25 +13,29 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SFTPSecureFileTransferProtocol { @JsonProperty("host") private String host; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") private Optional port; + @JsonProperty("storage") private SourceFileSchemasProviderStorageProvider7Storage storage; + @JsonProperty("user") private String user; @@ -55,7 +59,8 @@ public SFTPSecureFileTransferProtocol( public SFTPSecureFileTransferProtocol( String host, String user) { - this(host, Optional.empty(), Optional.empty(), user); + this(host, Optional.empty(), Optional.empty(), + user); } @JsonIgnore @@ -83,9 +88,10 @@ public String user() { return user; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SFTPSecureFileTransferProtocol withHost(String host) { Utils.checkNotNull(host, "host"); @@ -99,6 +105,7 @@ public SFTPSecureFileTransferProtocol withPassword(String password) { return this; } + public SFTPSecureFileTransferProtocol withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -111,6 +118,7 @@ public SFTPSecureFileTransferProtocol withPort(String port) { return this; } + public SFTPSecureFileTransferProtocol withPort(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; @@ -123,7 +131,6 @@ public SFTPSecureFileTransferProtocol withUser(String user) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -134,21 +141,18 @@ public boolean equals(java.lang.Object o) { } SFTPSecureFileTransferProtocol other = (SFTPSecureFileTransferProtocol) o; return - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.storage, other.storage) && - Objects.deepEquals(this.user, other.user); + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.storage, other.storage) && + Utils.enhancedDeepEquals(this.user, other.user); } @Override public int hashCode() { - return Objects.hash( - host, - password, - port, - storage, - user); + return Utils.enhancedHash( + host, password, port, + storage, user); } @Override @@ -160,27 +164,30 @@ public String toString() { "storage", storage, "user", user); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String host; - + private Optional password = Optional.empty(); - + private Optional port; - + private String user; - + private Builder() { // force use of static builder() method } + public Builder host(String host) { Utils.checkNotNull(host, "host"); this.host = host; return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -193,6 +200,7 @@ public Builder password(Optional password) { return this; } + public Builder port(String port) { Utils.checkNotNull(port, "port"); this.port = Optional.ofNullable(port); @@ -205,23 +213,24 @@ public Builder port(Optional port) { return this; } + public Builder user(String user) { Utils.checkNotNull(user, "user"); this.user = user; return this; } - + public SFTPSecureFileTransferProtocol build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SFTPSecureFileTransferProtocol( - host, - password, - port, + host, password, port, user); } + private static final LazySingletonValue> _SINGLETON_VALUE_Port = new LazySingletonValue<>( "port", diff --git a/src/main/java/com/airbyte/api/models/shared/SQLInserts.java b/src/main/java/com/airbyte/api/models/shared/SQLInserts.java index 9e5b19d68..9ff609623 100644 --- a/src/main/java/com/airbyte/api/models/shared/SQLInserts.java +++ b/src/main/java/com/airbyte/api/models/shared/SQLInserts.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SQLInserts { @@ -20,7 +20,6 @@ public class SQLInserts { @JsonCreator public SQLInserts() { - this.method = Builder._SINGLETON_VALUE_Method.value(); } @@ -29,11 +28,11 @@ public DestinationFireboltMethod method() { return method; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -44,12 +43,12 @@ public boolean equals(java.lang.Object o) { } SQLInserts other = (SQLInserts) o; return - Objects.deepEquals(this.method, other.method); + Utils.enhancedDeepEquals(this.method, other.method); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( method); } @@ -58,18 +57,21 @@ public String toString() { return Utils.toString(SQLInserts.class, "method", method); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SQLInserts build() { + return new SQLInserts( ); } + private static final LazySingletonValue _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", diff --git a/src/main/java/com/airbyte/api/models/shared/SSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SSHKeyAuthentication.java index 76a0ee0e9..333c08bd3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SSHKeyAuthentication.java @@ -5,6 +5,8 @@ import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; @@ -12,15 +14,27 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; import java.util.Optional; +/** + * SSHKeyAuthentication + * + *

    Connect through a jump server tunnel host using username and ssh key + */ public class SSHKeyAuthentication { + @JsonIgnore + private Map additionalProperties; + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -31,11 +45,10 @@ public class SSHKeyAuthentication { @JsonProperty("tunnel_host") private String tunnelHost; - /** - * Connect through a jump server tunnel host using username and ssh key - */ + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") - private DestinationClickhouseTunnelMethod tunnelMethod; + private Optional tunnelMethod; /** * Port on the proxy/jump server that accepts inbound ssh connections. @@ -45,7 +58,7 @@ public class SSHKeyAuthentication { private Optional tunnelPort; /** - * OS-level username for logging into the jump server host. + * OS-level username for logging into the jump server host */ @JsonProperty("tunnel_user") private String tunnelUser; @@ -54,15 +67,18 @@ public class SSHKeyAuthentication { public SSHKeyAuthentication( @JsonProperty("ssh_key") String sshKey, @JsonProperty("tunnel_host") String tunnelHost, + @JsonProperty("tunnel_method") Optional tunnelMethod, @JsonProperty("tunnel_port") Optional tunnelPort, @JsonProperty("tunnel_user") String tunnelUser) { Utils.checkNotNull(sshKey, "sshKey"); Utils.checkNotNull(tunnelHost, "tunnelHost"); + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); Utils.checkNotNull(tunnelPort, "tunnelPort"); Utils.checkNotNull(tunnelUser, "tunnelUser"); + this.additionalProperties = new HashMap<>(); this.sshKey = sshKey; this.tunnelHost = tunnelHost; - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); + this.tunnelMethod = tunnelMethod; this.tunnelPort = tunnelPort; this.tunnelUser = tunnelUser; } @@ -71,11 +87,18 @@ public SSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + Optional.empty(), tunnelUser); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -90,12 +113,10 @@ public String tunnelHost() { return tunnelHost; } - /** - * Connect through a jump server tunnel host using username and ssh key - */ + @SuppressWarnings("unchecked") @JsonIgnore - public DestinationClickhouseTunnelMethod tunnelMethod() { - return tunnelMethod; + public Optional tunnelMethod() { + return (Optional) tunnelMethod; } /** @@ -107,19 +128,34 @@ public Optional tunnelPort() { } /** - * OS-level username for logging into the jump server host. + * OS-level username for logging into the jump server host */ @JsonIgnore public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + @JsonAnySetter + public SSHKeyAuthentication withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public SSHKeyAuthentication withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public SSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -136,6 +172,19 @@ public SSHKeyAuthentication withTunnelHost(String tunnelHost) { return this; } + public SSHKeyAuthentication withTunnelMethod(DestinationClickhouseTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + + public SSHKeyAuthentication withTunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -145,6 +194,7 @@ public SSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -155,7 +205,7 @@ public SSHKeyAuthentication withTunnelPort(Optional tunnelPort) { } /** - * OS-level username for logging into the jump server host. + * OS-level username for logging into the jump server host */ public SSHKeyAuthentication withTunnelUser(String tunnelUser) { Utils.checkNotNull(tunnelUser, "tunnelUser"); @@ -163,7 +213,6 @@ public SSHKeyAuthentication withTunnelUser(String tunnelUser) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,49 +223,71 @@ public boolean equals(java.lang.Object o) { } SSHKeyAuthentication other = (SSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + additionalProperties, sshKey, tunnelHost, + tunnelMethod, tunnelPort, tunnelUser); } @Override public String toString() { return Utils.toString(SSHKeyAuthentication.class, + "additionalProperties", additionalProperties, "sshKey", sshKey, "tunnelHost", tunnelHost, "tunnelMethod", tunnelMethod, "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Map additionalProperties = new HashMap<>(); + private String sshKey; - + private String tunnelHost; - + + private Optional tunnelMethod; + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +295,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +305,20 @@ public Builder tunnelHost(String tunnelHost) { return this; } + + public Builder tunnelMethod(DestinationClickhouseTunnelMethod tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = Optional.ofNullable(tunnelMethod); + return this; + } + + public Builder tunnelMethod(Optional tunnelMethod) { + Utils.checkNotNull(tunnelMethod, "tunnelMethod"); + this.tunnelMethod = tunnelMethod; + return this; + } + + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,31 +337,36 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** - * OS-level username for logging into the jump server host. + * OS-level username for logging into the jump server host */ public Builder tunnelUser(String tunnelUser) { Utils.checkNotNull(tunnelUser, "tunnelUser"); this.tunnelUser = tunnelUser; return this; } - + public SSHKeyAuthentication build() { + if (tunnelMethod == null) { + tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); + } if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, - tunnelUser); + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = + + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", "\"SSH_KEY_AUTH\"", - new TypeReference() {}); + new TypeReference>() {}); private static final LazySingletonValue> _SINGLETON_VALUE_TunnelPort = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/SSHSecureShell.java b/src/main/java/com/airbyte/api/models/shared/SSHSecureShell.java index aef9402e5..7b2d4bb60 100644 --- a/src/main/java/com/airbyte/api/models/shared/SSHSecureShell.java +++ b/src/main/java/com/airbyte/api/models/shared/SSHSecureShell.java @@ -13,25 +13,29 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SSHSecureShell { @JsonProperty("host") private String host; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") private Optional port; + @JsonProperty("storage") private SourceFileSchemasProviderStorageProviderStorage storage; + @JsonProperty("user") private String user; @@ -55,7 +59,8 @@ public SSHSecureShell( public SSHSecureShell( String host, String user) { - this(host, Optional.empty(), Optional.empty(), user); + this(host, Optional.empty(), Optional.empty(), + user); } @JsonIgnore @@ -83,9 +88,10 @@ public String user() { return user; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SSHSecureShell withHost(String host) { Utils.checkNotNull(host, "host"); @@ -99,6 +105,7 @@ public SSHSecureShell withPassword(String password) { return this; } + public SSHSecureShell withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -111,6 +118,7 @@ public SSHSecureShell withPort(String port) { return this; } + public SSHSecureShell withPort(Optional port) { Utils.checkNotNull(port, "port"); this.port = port; @@ -123,7 +131,6 @@ public SSHSecureShell withUser(String user) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -134,21 +141,18 @@ public boolean equals(java.lang.Object o) { } SSHSecureShell other = (SSHSecureShell) o; return - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.storage, other.storage) && - Objects.deepEquals(this.user, other.user); + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.storage, other.storage) && + Utils.enhancedDeepEquals(this.user, other.user); } @Override public int hashCode() { - return Objects.hash( - host, - password, - port, - storage, - user); + return Utils.enhancedHash( + host, password, port, + storage, user); } @Override @@ -160,27 +164,30 @@ public String toString() { "storage", storage, "user", user); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String host; - + private Optional password = Optional.empty(); - + private Optional port; - + private String user; - + private Builder() { // force use of static builder() method } + public Builder host(String host) { Utils.checkNotNull(host, "host"); this.host = host; return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -193,6 +200,7 @@ public Builder password(Optional password) { return this; } + public Builder port(String port) { Utils.checkNotNull(port, "port"); this.port = Optional.ofNullable(port); @@ -205,23 +213,24 @@ public Builder port(Optional port) { return this; } + public Builder user(String user) { Utils.checkNotNull(user, "user"); this.user = user; return this; } - + public SSHSecureShell build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SSHSecureShell( - host, - password, - port, + host, password, port, user); } + private static final LazySingletonValue> _SINGLETON_VALUE_Port = new LazySingletonValue<>( "port", diff --git a/src/main/java/com/airbyte/api/models/shared/SSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SSHTunnelMethod.java index 82e75c778..1dfbe1683 100644 --- a/src/main/java/com/airbyte/api/models/shared/SSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = SSHTunnelMethod._Deserializer.class) public class SSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SSHTunnelMethod other = (SSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SSLMethod.java b/src/main/java/com/airbyte/api/models/shared/SSLMethod.java index 885be10bb..710a81c57 100644 --- a/src/main/java/com/airbyte/api/models/shared/SSLMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SSLMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SSLMethod @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } SSLMethod other = (SSLMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SSLModes.java b/src/main/java/com/airbyte/api/models/shared/SSLModes.java index 0ba9f58bc..bb95a1b1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/SSLModes.java @@ -14,19 +14,24 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SSLModes * - *

    SSL connection modes. - * <b>disable</b> - Chose this mode to disable encryption of communication between Airbyte and destination database - * <b>allow</b> - Chose this mode to enable encryption only when required by the source database - * <b>prefer</b> - Chose this mode to allow unencrypted connection only if the source database does not support encryption - * <b>require</b> - Chose this mode to always require encryption. If the source database server does not support encryption, connection will fail - * <b>verify-ca</b> - Chose this mode to always require encryption and to verify that the source database server has a valid SSL certificate - * <b>verify-full</b> - This is the most secure mode. Chose this mode to always require encryption and to verify the identity of the source database server - * See more information - <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + *

    SSL connection modes. + * disable - Chose this mode to disable encryption of communication between Airbyte and + * destination database + * allow - Chose this mode to enable encryption only when required by the source database + * prefer - Chose this mode to allow unencrypted connection only if the source database does not + * support encryption + * require - Chose this mode to always require encryption. If the source database server does + * not support encryption, connection will fail + * verify-ca - Chose this mode to always require encryption and to verify that the source + * database server has a valid SSL certificate + * verify-full - This is the most secure mode. Chose this mode to always require encryption and + * to verify the identity of the source database server + * See more information - in + * the docs. */ @JsonDeserialize(using = SSLModes._Deserializer.class) public class SSLModes { @@ -103,12 +108,12 @@ public boolean equals(java.lang.Object o) { return false; } SSLModes other = (SSLModes) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Safetyculture.java b/src/main/java/com/airbyte/api/models/shared/Safetyculture.java index ee5dfe86a..53ca02e29 100644 --- a/src/main/java/com/airbyte/api/models/shared/Safetyculture.java +++ b/src/main/java/com/airbyte/api/models/shared/Safetyculture.java @@ -14,7 +14,7 @@ public enum Safetyculture { @JsonValue private final String value; - private Safetyculture(String value) { + Safetyculture(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SageHr.java b/src/main/java/com/airbyte/api/models/shared/SageHr.java index 4c0c80f43..d81a8aedb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SageHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SageHr.java @@ -14,7 +14,7 @@ public enum SageHr { @JsonValue private final String value; - private SageHr(String value) { + SageHr(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Salesflare.java b/src/main/java/com/airbyte/api/models/shared/Salesflare.java index be9651c71..dea72daee 100644 --- a/src/main/java/com/airbyte/api/models/shared/Salesflare.java +++ b/src/main/java/com/airbyte/api/models/shared/Salesflare.java @@ -14,7 +14,7 @@ public enum Salesflare { @JsonValue private final String value; - private Salesflare(String value) { + Salesflare(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Salesforce.java b/src/main/java/com/airbyte/api/models/shared/Salesforce.java index 17e6380c7..cbcc867ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/Salesforce.java +++ b/src/main/java/com/airbyte/api/models/shared/Salesforce.java @@ -11,20 +11,21 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class Salesforce { +public class Salesforce { /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> + * Enter your Salesforce developer application's Client ID */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> + * Enter your Salesforce developer application's Client secret */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") @@ -45,7 +46,8 @@ public Salesforce() { } /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> + * Enter your Salesforce developer application's Client ID */ @JsonIgnore public Optional clientId() { @@ -53,19 +55,22 @@ public Optional clientId() { } /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> + * Enter your Salesforce developer application's Client secret */ @JsonIgnore public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> + * Enter your Salesforce developer application's Client ID */ public Salesforce withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -73,8 +78,10 @@ public Salesforce withClientId(String clientId) { return this; } + /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> + * Enter your Salesforce developer application's Client ID */ public Salesforce withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +90,8 @@ public Salesforce withClientId(Optional clientId) { } /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> + * Enter your Salesforce developer application's Client secret */ public Salesforce withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -91,8 +99,10 @@ public Salesforce withClientSecret(String clientSecret) { return this; } + /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> + * Enter your Salesforce developer application's Client secret */ public Salesforce withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -100,7 +110,6 @@ public Salesforce withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +120,14 @@ public boolean equals(java.lang.Object o) { } Salesforce other = (Salesforce) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,19 +136,22 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> + * Enter your Salesforce developer application's Client ID */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -149,7 +160,8 @@ public Builder clientId(String clientId) { } /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> + * Enter your Salesforce developer application's Client ID */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -157,8 +169,10 @@ public Builder clientId(Optional clientId) { return this; } + /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> + * Enter your Salesforce developer application's Client secret */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -167,18 +181,20 @@ public Builder clientSecret(String clientSecret) { } /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> + * Enter your Salesforce developer application's Client secret */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public Salesforce build() { + return new Salesforce( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Salesloft.java b/src/main/java/com/airbyte/api/models/shared/Salesloft.java index 807d2debb..80de6cfa4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Salesloft.java +++ b/src/main/java/com/airbyte/api/models/shared/Salesloft.java @@ -14,7 +14,7 @@ public enum Salesloft { @JsonValue private final String value; - private Salesloft(String value) { + Salesloft(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SandboxAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SandboxAccessToken.java index 421d4bae2..99aeca302 100644 --- a/src/main/java/com/airbyte/api/models/shared/SandboxAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SandboxAccessToken.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SandboxAccessToken { +public class SandboxAccessToken { /** * The long-term authorized access token. */ @@ -31,6 +30,7 @@ public class SandboxAccessToken { @JsonProperty("advertiser_id") private String advertiserId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -68,9 +68,10 @@ public Optional authType() { return (Optional) authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The long-term authorized access token. @@ -90,7 +91,6 @@ public SandboxAccessToken withAdvertiserId(String advertiserId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,17 +101,15 @@ public boolean equals(java.lang.Object o) { } SandboxAccessToken other = (SandboxAccessToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.advertiserId, other.advertiserId) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.advertiserId, other.advertiserId) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - accessToken, - advertiserId, - authType); + return Utils.enhancedHash( + accessToken, advertiserId, authType); } @Override @@ -121,17 +119,19 @@ public String toString() { "advertiserId", advertiserId, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String advertiserId; - + private Builder() { // force use of static builder() method } + /** * The long-term authorized access token. */ @@ -141,6 +141,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Advertiser ID which generated for the developer's Sandbox application. */ @@ -149,13 +150,14 @@ public Builder advertiserId(String advertiserId) { this.advertiserId = advertiserId; return this; } - + public SandboxAccessToken build() { + return new SandboxAccessToken( - accessToken, - advertiserId); + accessToken, advertiserId); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java b/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java index 05dd00fab..1e9297ea9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java +++ b/src/main/java/com/airbyte/api/models/shared/SapFieldglass.java @@ -14,7 +14,7 @@ public enum SapFieldglass { @JsonValue private final String value; - private SapFieldglass(String value) { + SapFieldglass(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SapHanaEnterprise.java b/src/main/java/com/airbyte/api/models/shared/SapHanaEnterprise.java index 94baebcba..db7256906 100644 --- a/src/main/java/com/airbyte/api/models/shared/SapHanaEnterprise.java +++ b/src/main/java/com/airbyte/api/models/shared/SapHanaEnterprise.java @@ -14,7 +14,7 @@ public enum SapHanaEnterprise { @JsonValue private final String value; - private SapHanaEnterprise(String value) { + SapHanaEnterprise(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Savvycal.java b/src/main/java/com/airbyte/api/models/shared/Savvycal.java index cff33981b..211203e78 100644 --- a/src/main/java/com/airbyte/api/models/shared/Savvycal.java +++ b/src/main/java/com/airbyte/api/models/shared/Savvycal.java @@ -14,7 +14,7 @@ public enum Savvycal { @JsonValue private final String value; - private Savvycal(String value) { + Savvycal(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ScanChangesWithUserDefinedCursor.java b/src/main/java/com/airbyte/api/models/shared/ScanChangesWithUserDefinedCursor.java index 627172197..0719a7608 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScanChangesWithUserDefinedCursor.java +++ b/src/main/java/com/airbyte/api/models/shared/ScanChangesWithUserDefinedCursor.java @@ -7,38 +7,87 @@ import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.util.Optional; /** * ScanChangesWithUserDefinedCursor * - *

    Incrementally detects new inserts and updates using the <a href="https://docs.airbyte.com/understanding-airbyte/connections/incremental-append/#user-defined-cursor">cursor column</a> chosen when configuring a connection (e.g. created_at, updated_at). + *

    Incrementally detects new inserts and updates using the cursor + * column chosen when configuring a connection (e.g. created_at, updated_at). */ public class ScanChangesWithUserDefinedCursor { + /** + * When enabled incremental syncs using a cursor of a temporal types (date or datetime) will include + * cursor values only up until last midnight (Advanced) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("exclude_todays_data") + private Optional excludeTodaysData; + @JsonProperty("method") private SourceMssqlSchemasMethod method; @JsonCreator - public ScanChangesWithUserDefinedCursor() { - + public ScanChangesWithUserDefinedCursor( + @JsonProperty("exclude_todays_data") Optional excludeTodaysData) { + Utils.checkNotNull(excludeTodaysData, "excludeTodaysData"); + this.excludeTodaysData = excludeTodaysData; this.method = Builder._SINGLETON_VALUE_Method.value(); } + + public ScanChangesWithUserDefinedCursor() { + this(Optional.empty()); + } + + /** + * When enabled incremental syncs using a cursor of a temporal types (date or datetime) will include + * cursor values only up until last midnight (Advanced) + */ + @JsonIgnore + public Optional excludeTodaysData() { + return excludeTodaysData; + } @JsonIgnore public SourceMssqlSchemasMethod method() { return method; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + /** + * When enabled incremental syncs using a cursor of a temporal types (date or datetime) will include + * cursor values only up until last midnight (Advanced) + */ + public ScanChangesWithUserDefinedCursor withExcludeTodaysData(boolean excludeTodaysData) { + Utils.checkNotNull(excludeTodaysData, "excludeTodaysData"); + this.excludeTodaysData = Optional.ofNullable(excludeTodaysData); + return this; + } + + + /** + * When enabled incremental syncs using a cursor of a temporal types (date or datetime) will include + * cursor values only up until last midnight (Advanced) + */ + public ScanChangesWithUserDefinedCursor withExcludeTodaysData(Optional excludeTodaysData) { + Utils.checkNotNull(excludeTodaysData, "excludeTodaysData"); + this.excludeTodaysData = excludeTodaysData; + return this; + } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,32 +98,69 @@ public boolean equals(java.lang.Object o) { } ScanChangesWithUserDefinedCursor other = (ScanChangesWithUserDefinedCursor) o; return - Objects.deepEquals(this.method, other.method); + Utils.enhancedDeepEquals(this.excludeTodaysData, other.excludeTodaysData) && + Utils.enhancedDeepEquals(this.method, other.method); } @Override public int hashCode() { - return Objects.hash( - method); + return Utils.enhancedHash( + excludeTodaysData, method); } @Override public String toString() { return Utils.toString(ScanChangesWithUserDefinedCursor.class, + "excludeTodaysData", excludeTodaysData, "method", method); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Optional excludeTodaysData; + private Builder() { // force use of static builder() method } - + + + /** + * When enabled incremental syncs using a cursor of a temporal types (date or datetime) will include + * cursor values only up until last midnight (Advanced) + */ + public Builder excludeTodaysData(boolean excludeTodaysData) { + Utils.checkNotNull(excludeTodaysData, "excludeTodaysData"); + this.excludeTodaysData = Optional.ofNullable(excludeTodaysData); + return this; + } + + /** + * When enabled incremental syncs using a cursor of a temporal types (date or datetime) will include + * cursor values only up until last midnight (Advanced) + */ + public Builder excludeTodaysData(Optional excludeTodaysData) { + Utils.checkNotNull(excludeTodaysData, "excludeTodaysData"); + this.excludeTodaysData = excludeTodaysData; + return this; + } + public ScanChangesWithUserDefinedCursor build() { + if (excludeTodaysData == null) { + excludeTodaysData = _SINGLETON_VALUE_ExcludeTodaysData.value(); + } + return new ScanChangesWithUserDefinedCursor( - ); + excludeTodaysData); } + + private static final LazySingletonValue> _SINGLETON_VALUE_ExcludeTodaysData = + new LazySingletonValue<>( + "exclude_todays_data", + "false", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", diff --git a/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java index 0c1e480cb..d02921606 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeEnum.java @@ -15,7 +15,7 @@ public enum ScheduleTypeEnum { @JsonValue private final String value; - private ScheduleTypeEnum(String value) { + ScheduleTypeEnum(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ScheduleTypeWithBasicEnum.java b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeWithBasicEnum.java index a1d4441b2..77d32ff31 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScheduleTypeWithBasicEnum.java +++ b/src/main/java/com/airbyte/api/models/shared/ScheduleTypeWithBasicEnum.java @@ -16,7 +16,7 @@ public enum ScheduleTypeWithBasicEnum { @JsonValue private final String value; - private ScheduleTypeWithBasicEnum(String value) { + ScheduleTypeWithBasicEnum(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SchemeBasicAuth.java b/src/main/java/com/airbyte/api/models/shared/SchemeBasicAuth.java index 4b42564bb..d6d10ecdf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SchemeBasicAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SchemeBasicAuth.java @@ -10,13 +10,16 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import java.lang.Override; import java.lang.String; -import java.util.Objects; +/** + * SchemeBasicAuth + */ public class SchemeBasicAuth implements HasSecurity { @SpeakeasyMetadata("security:name=password") private String password; + @SpeakeasyMetadata("security:name=username") private String username; @@ -40,9 +43,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SchemeBasicAuth withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -56,7 +60,6 @@ public SchemeBasicAuth withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,15 +70,14 @@ public boolean equals(java.lang.Object o) { } SchemeBasicAuth other = (SchemeBasicAuth) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - username); + return Utils.enhancedHash( + password, username); } @Override @@ -84,33 +86,37 @@ public String toString() { "password", password, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = password; return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SchemeBasicAuth build() { + return new SchemeBasicAuth( - password, - username); + password, username); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java b/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java index 0e3802ca8..3e840455c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SchemeClientCredentials.java @@ -12,16 +12,20 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; +/** + * SchemeClientCredentials + */ public class SchemeClientCredentials implements HasSecurity { @SpeakeasyMetadata("security:name=clientID") private String clientID; + @SpeakeasyMetadata("security:name=clientSecret") private String clientSecret; + private String tokenURL; @JsonCreator @@ -52,9 +56,10 @@ public String tokenURL() { return tokenURL; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SchemeClientCredentials withClientID(String clientID) { Utils.checkNotNull(clientID, "clientID"); @@ -74,7 +79,6 @@ public SchemeClientCredentials withTokenURL(String tokenURL) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -85,17 +89,15 @@ public boolean equals(java.lang.Object o) { } SchemeClientCredentials other = (SchemeClientCredentials) o; return - Objects.deepEquals(this.clientID, other.clientID) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.tokenURL, other.tokenURL); + Utils.enhancedDeepEquals(this.clientID, other.clientID) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.tokenURL, other.tokenURL); } @Override public int hashCode() { - return Objects.hash( - clientID, - clientSecret, - tokenURL); + return Utils.enhancedHash( + clientID, clientSecret, tokenURL); } @Override @@ -105,47 +107,51 @@ public String toString() { "clientSecret", clientSecret, "tokenURL", tokenURL); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientID; - + private String clientSecret; - + private String tokenURL; - + private Builder() { // force use of static builder() method } + public Builder clientID(String clientID) { Utils.checkNotNull(clientID, "clientID"); this.clientID = clientID; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder tokenURL(String tokenURL) { Utils.checkNotNull(tokenURL, "tokenURL"); this.tokenURL = tokenURL; return this; } - + public SchemeClientCredentials build() { if (tokenURL == null) { tokenURL = _SINGLETON_VALUE_TokenURL.value(); } + return new SchemeClientCredentials( - clientID, - clientSecret, - tokenURL); + clientID, clientSecret, tokenURL); } + private static final LazySingletonValue _SINGLETON_VALUE_TokenURL = new LazySingletonValue<>( "TokenURL", diff --git a/src/main/java/com/airbyte/api/models/shared/ScopeType.java b/src/main/java/com/airbyte/api/models/shared/ScopeType.java index a184be45d..43840184c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScopeType.java +++ b/src/main/java/com/airbyte/api/models/shared/ScopeType.java @@ -15,7 +15,7 @@ public enum ScopeType { @JsonValue private final String value; - private ScopeType(String value) { + ScopeType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ScopedResourceRequirements.java b/src/main/java/com/airbyte/api/models/shared/ScopedResourceRequirements.java index 9f2e107b0..f8e4cf838 100644 --- a/src/main/java/com/airbyte/api/models/shared/ScopedResourceRequirements.java +++ b/src/main/java/com/airbyte/api/models/shared/ScopedResourceRequirements.java @@ -13,16 +13,19 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * ScopedResourceRequirements * - *

    actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + *

    actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public class ScopedResourceRequirements { - /** * optional resource requirements to run workers (blank for unbounded allocations) */ @@ -30,6 +33,7 @@ public class ScopedResourceRequirements { @JsonProperty("default") private Optional default_; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("jobSpecific") private Optional> jobSpecific; @@ -63,9 +67,10 @@ public Optional> jobSpecific() { return (Optional>) jobSpecific; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * optional resource requirements to run workers (blank for unbounded allocations) @@ -76,6 +81,7 @@ public ScopedResourceRequirements withDefault(ResourceRequirements default_) { return this; } + /** * optional resource requirements to run workers (blank for unbounded allocations) */ @@ -91,13 +97,13 @@ public ScopedResourceRequirements withJobSpecific(List job return this; } + public ScopedResourceRequirements withJobSpecific(Optional> jobSpecific) { Utils.checkNotNull(jobSpecific, "jobSpecific"); this.jobSpecific = jobSpecific; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -108,15 +114,14 @@ public boolean equals(java.lang.Object o) { } ScopedResourceRequirements other = (ScopedResourceRequirements) o; return - Objects.deepEquals(this.default_, other.default_) && - Objects.deepEquals(this.jobSpecific, other.jobSpecific); + Utils.enhancedDeepEquals(this.default_, other.default_) && + Utils.enhancedDeepEquals(this.jobSpecific, other.jobSpecific); } @Override public int hashCode() { - return Objects.hash( - default_, - jobSpecific); + return Utils.enhancedHash( + default_, jobSpecific); } @Override @@ -125,17 +130,19 @@ public String toString() { "default_", default_, "jobSpecific", jobSpecific); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional default_ = Optional.empty(); - + private Optional> jobSpecific = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * optional resource requirements to run workers (blank for unbounded allocations) */ @@ -154,6 +161,7 @@ public Builder default_(Optional default_) { return this; } + public Builder jobSpecific(List jobSpecific) { Utils.checkNotNull(jobSpecific, "jobSpecific"); this.jobSpecific = Optional.ofNullable(jobSpecific); @@ -165,11 +173,12 @@ public Builder jobSpecific(Optional> jobSpe this.jobSpecific = jobSpecific; return this; } - + public ScopedResourceRequirements build() { + return new ScopedResourceRequirements( - default_, - jobSpecific); + default_, jobSpecific); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Scryfall.java b/src/main/java/com/airbyte/api/models/shared/Scryfall.java index 409a8d1ea..127beadae 100644 --- a/src/main/java/com/airbyte/api/models/shared/Scryfall.java +++ b/src/main/java/com/airbyte/api/models/shared/Scryfall.java @@ -14,7 +14,7 @@ public enum Scryfall { @JsonValue private final String value; - private Scryfall(String value) { + Scryfall(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SearchCriteria.java b/src/main/java/com/airbyte/api/models/shared/SearchCriteria.java index a7e32b756..ed8fd7a1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SearchCriteria.java +++ b/src/main/java/com/airbyte/api/models/shared/SearchCriteria.java @@ -21,7 +21,7 @@ public enum SearchCriteria { @JsonValue private final String value; - private SearchCriteria(String value) { + SearchCriteria(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SearchIn.java b/src/main/java/com/airbyte/api/models/shared/SearchIn.java index d4075b13f..2f4b97a16 100644 --- a/src/main/java/com/airbyte/api/models/shared/SearchIn.java +++ b/src/main/java/com/airbyte/api/models/shared/SearchIn.java @@ -16,7 +16,7 @@ public enum SearchIn { @JsonValue private final String value; - private SearchIn(String value) { + SearchIn(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SearchScope.java b/src/main/java/com/airbyte/api/models/shared/SearchScope.java index 486a2c578..1d1af19f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SearchScope.java +++ b/src/main/java/com/airbyte/api/models/shared/SearchScope.java @@ -11,7 +11,9 @@ /** * SearchScope * - *

    Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + *

    Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in + * the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to + * search both. */ public enum SearchScope { ACCESSIBLE_DRIVES("ACCESSIBLE_DRIVES"), @@ -21,7 +23,7 @@ public enum SearchScope { @JsonValue private final String value; - private SearchScope(String value) { + SearchScope(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Secoda.java b/src/main/java/com/airbyte/api/models/shared/Secoda.java index 0a75eefe0..e21e490d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Secoda.java +++ b/src/main/java/com/airbyte/api/models/shared/Secoda.java @@ -14,7 +14,7 @@ public enum Secoda { @JsonValue private final String value; - private Secoda(String value) { + Secoda(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Security.java b/src/main/java/com/airbyte/api/models/shared/Security.java index 20ac433a3..0c32f314c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Security.java +++ b/src/main/java/com/airbyte/api/models/shared/Security.java @@ -11,17 +11,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Security implements HasSecurity { @SpeakeasyMetadata("security:scheme=true,type=http,subtype=basic") private Optional basicAuth; + @SpeakeasyMetadata("security:scheme=true,type=http,subtype=bearer,name=Authorization") private Optional bearerAuth; + @SpeakeasyMetadata("security:scheme=true,type=oauth2,subtype=client_credentials") private Optional clientCredentials; @@ -59,9 +61,10 @@ public Optional clientCredentials() { return (Optional) clientCredentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Security withBasicAuth(SchemeBasicAuth basicAuth) { Utils.checkNotNull(basicAuth, "basicAuth"); @@ -69,6 +72,7 @@ public Security withBasicAuth(SchemeBasicAuth basicAuth) { return this; } + public Security withBasicAuth(Optional basicAuth) { Utils.checkNotNull(basicAuth, "basicAuth"); this.basicAuth = basicAuth; @@ -81,6 +85,7 @@ public Security withBearerAuth(String bearerAuth) { return this; } + public Security withBearerAuth(Optional bearerAuth) { Utils.checkNotNull(bearerAuth, "bearerAuth"); this.bearerAuth = bearerAuth; @@ -93,13 +98,13 @@ public Security withClientCredentials(SchemeClientCredentials clientCredentials) return this; } + public Security withClientCredentials(Optional clientCredentials) { Utils.checkNotNull(clientCredentials, "clientCredentials"); this.clientCredentials = clientCredentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,17 +115,15 @@ public boolean equals(java.lang.Object o) { } Security other = (Security) o; return - Objects.deepEquals(this.basicAuth, other.basicAuth) && - Objects.deepEquals(this.bearerAuth, other.bearerAuth) && - Objects.deepEquals(this.clientCredentials, other.clientCredentials); + Utils.enhancedDeepEquals(this.basicAuth, other.basicAuth) && + Utils.enhancedDeepEquals(this.bearerAuth, other.bearerAuth) && + Utils.enhancedDeepEquals(this.clientCredentials, other.clientCredentials); } @Override public int hashCode() { - return Objects.hash( - basicAuth, - bearerAuth, - clientCredentials); + return Utils.enhancedHash( + basicAuth, bearerAuth, clientCredentials); } @Override @@ -130,19 +133,21 @@ public String toString() { "bearerAuth", bearerAuth, "clientCredentials", clientCredentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional basicAuth = Optional.empty(); - + private Optional bearerAuth = Optional.empty(); - + private Optional clientCredentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder basicAuth(SchemeBasicAuth basicAuth) { Utils.checkNotNull(basicAuth, "basicAuth"); this.basicAuth = Optional.ofNullable(basicAuth); @@ -155,6 +160,7 @@ public Builder basicAuth(Optional basicAuth) { return this; } + public Builder bearerAuth(String bearerAuth) { Utils.checkNotNull(bearerAuth, "bearerAuth"); this.bearerAuth = Optional.ofNullable(bearerAuth); @@ -167,6 +173,7 @@ public Builder bearerAuth(Optional bearerAuth) { return this; } + public Builder clientCredentials(SchemeClientCredentials clientCredentials) { Utils.checkNotNull(clientCredentials, "clientCredentials"); this.clientCredentials = Optional.ofNullable(clientCredentials); @@ -178,12 +185,12 @@ public Builder clientCredentials(Optional cli this.clientCredentials = clientCredentials; return this; } - + public Security build() { + return new Security( - basicAuth, - bearerAuth, - clientCredentials); + basicAuth, bearerAuth, clientCredentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Segment.java b/src/main/java/com/airbyte/api/models/shared/Segment.java index afc476c2f..40b5f2ab7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Segment.java +++ b/src/main/java/com/airbyte/api/models/shared/Segment.java @@ -14,7 +14,7 @@ public enum Segment { @JsonValue private final String value; - private Segment(String value) { + Segment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java b/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java index 2416c3172..043a6ee61 100644 --- a/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java +++ b/src/main/java/com/airbyte/api/models/shared/SelectedFieldInfo.java @@ -13,13 +13,14 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * SelectedFieldInfo * - *

    Path to a field/column/property in a stream to be selected. For example, if the field to be selected is a database column called "foo", this will be ["foo"]. Use multiple path elements for nested schemas. + *

    Path to a field/column/property in a stream to be selected. For example, if the field to be selected + * is a database column called "foo", this will be ["foo"]. Use multiple path elements for nested + * schemas. */ public class SelectedFieldInfo { @@ -44,9 +45,10 @@ public Optional> fieldPath() { return (Optional>) fieldPath; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SelectedFieldInfo withFieldPath(List fieldPath) { Utils.checkNotNull(fieldPath, "fieldPath"); @@ -54,13 +56,13 @@ public SelectedFieldInfo withFieldPath(List fieldPath) { return this; } + public SelectedFieldInfo withFieldPath(Optional> fieldPath) { Utils.checkNotNull(fieldPath, "fieldPath"); this.fieldPath = fieldPath; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,12 +73,12 @@ public boolean equals(java.lang.Object o) { } SelectedFieldInfo other = (SelectedFieldInfo) o; return - Objects.deepEquals(this.fieldPath, other.fieldPath); + Utils.enhancedDeepEquals(this.fieldPath, other.fieldPath); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( fieldPath); } @@ -85,15 +87,17 @@ public String toString() { return Utils.toString(SelectedFieldInfo.class, "fieldPath", fieldPath); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> fieldPath = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder fieldPath(List fieldPath) { Utils.checkNotNull(fieldPath, "fieldPath"); this.fieldPath = Optional.ofNullable(fieldPath); @@ -105,10 +109,12 @@ public Builder fieldPath(Optional> fieldPath) { this.fieldPath = fieldPath; return this; } - + public SelectedFieldInfo build() { + return new SelectedFieldInfo( fieldPath); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SelfManagedReplicaSet.java b/src/main/java/com/airbyte/api/models/shared/SelfManagedReplicaSet.java index 5df987e31..be8cc7b6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SelfManagedReplicaSet.java +++ b/src/main/java/com/airbyte/api/models/shared/SelfManagedReplicaSet.java @@ -18,8 +18,8 @@ import java.lang.Override; import java.lang.String; import java.util.HashMap; +import java.util.List; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -39,20 +39,23 @@ public class SelfManagedReplicaSet { @JsonProperty("auth_source") private Optional authSource; + @JsonProperty("cluster_type") private SourceMongodbV2ClusterType clusterType; /** - * The connection string of the cluster that you want to replicate. https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string for more information. + * The connection string of the cluster that you want to replicate. + * https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string + * for more information. */ @JsonProperty("connection_string") private String connectionString; /** - * The name of the MongoDB database that contains the collection(s) to replicate. + * The names of the MongoDB databases that contain the collection(s) to replicate. */ - @JsonProperty("database") - private String database; + @JsonProperty("databases") + private List databases; /** * The password associated with this username. @@ -79,13 +82,13 @@ public class SelfManagedReplicaSet { public SelfManagedReplicaSet( @JsonProperty("auth_source") Optional authSource, @JsonProperty("connection_string") String connectionString, - @JsonProperty("database") String database, + @JsonProperty("databases") List databases, @JsonProperty("password") Optional password, @JsonProperty("schema_enforced") Optional schemaEnforced, @JsonProperty("username") Optional username) { Utils.checkNotNull(authSource, "authSource"); Utils.checkNotNull(connectionString, "connectionString"); - Utils.checkNotNull(database, "database"); + Utils.checkNotNull(databases, "databases"); Utils.checkNotNull(password, "password"); Utils.checkNotNull(schemaEnforced, "schemaEnforced"); Utils.checkNotNull(username, "username"); @@ -93,7 +96,7 @@ public SelfManagedReplicaSet( this.authSource = authSource; this.clusterType = Builder._SINGLETON_VALUE_ClusterType.value(); this.connectionString = connectionString; - this.database = database; + this.databases = databases; this.password = password; this.schemaEnforced = schemaEnforced; this.username = username; @@ -101,8 +104,9 @@ public SelfManagedReplicaSet( public SelfManagedReplicaSet( String connectionString, - String database) { - this(Optional.empty(), connectionString, database, Optional.empty(), Optional.empty(), Optional.empty()); + List databases) { + this(Optional.empty(), connectionString, databases, + Optional.empty(), Optional.empty(), Optional.empty()); } @JsonAnyGetter @@ -124,7 +128,9 @@ public SourceMongodbV2ClusterType clusterType() { } /** - * The connection string of the cluster that you want to replicate. https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string for more information. + * The connection string of the cluster that you want to replicate. + * https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string + * for more information. */ @JsonIgnore public String connectionString() { @@ -132,11 +138,11 @@ public String connectionString() { } /** - * The name of the MongoDB database that contains the collection(s) to replicate. + * The names of the MongoDB databases that contain the collection(s) to replicate. */ @JsonIgnore - public String database() { - return database; + public List databases() { + return databases; } /** @@ -163,9 +169,10 @@ public Optional username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SelfManagedReplicaSet withAdditionalProperty(String key, Object value) { @@ -173,8 +180,7 @@ public SelfManagedReplicaSet withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SelfManagedReplicaSet withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -190,6 +196,7 @@ public SelfManagedReplicaSet withAuthSource(String authSource) { return this; } + /** * The authentication source where the user information is stored. */ @@ -200,7 +207,9 @@ public SelfManagedReplicaSet withAuthSource(Optional authSource) { } /** - * The connection string of the cluster that you want to replicate. https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string for more information. + * The connection string of the cluster that you want to replicate. + * https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string + * for more information. */ public SelfManagedReplicaSet withConnectionString(String connectionString) { Utils.checkNotNull(connectionString, "connectionString"); @@ -209,11 +218,11 @@ public SelfManagedReplicaSet withConnectionString(String connectionString) { } /** - * The name of the MongoDB database that contains the collection(s) to replicate. + * The names of the MongoDB databases that contain the collection(s) to replicate. */ - public SelfManagedReplicaSet withDatabase(String database) { - Utils.checkNotNull(database, "database"); - this.database = database; + public SelfManagedReplicaSet withDatabases(List databases) { + Utils.checkNotNull(databases, "databases"); + this.databases = databases; return this; } @@ -226,6 +235,7 @@ public SelfManagedReplicaSet withPassword(String password) { return this; } + /** * The password associated with this username. */ @@ -244,6 +254,7 @@ public SelfManagedReplicaSet withSchemaEnforced(boolean schemaEnforced) { return this; } + /** * When enabled, syncs will validate and structure records against the stream's schema. */ @@ -262,6 +273,7 @@ public SelfManagedReplicaSet withUsername(String username) { return this; } + /** * The username which is used to access the database. */ @@ -271,7 +283,6 @@ public SelfManagedReplicaSet withUsername(Optional username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -282,27 +293,22 @@ public boolean equals(java.lang.Object o) { } SelfManagedReplicaSet other = (SelfManagedReplicaSet) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.authSource, other.authSource) && - Objects.deepEquals(this.clusterType, other.clusterType) && - Objects.deepEquals(this.connectionString, other.connectionString) && - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.schemaEnforced, other.schemaEnforced) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.authSource, other.authSource) && + Utils.enhancedDeepEquals(this.clusterType, other.clusterType) && + Utils.enhancedDeepEquals(this.connectionString, other.connectionString) && + Utils.enhancedDeepEquals(this.databases, other.databases) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.schemaEnforced, other.schemaEnforced) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - authSource, - clusterType, - connectionString, - database, - password, - schemaEnforced, - username); + return Utils.enhancedHash( + additionalProperties, authSource, clusterType, + connectionString, databases, password, + schemaEnforced, username); } @Override @@ -312,28 +318,29 @@ public String toString() { "authSource", authSource, "clusterType", clusterType, "connectionString", connectionString, - "database", database, + "databases", databases, "password", password, "schemaEnforced", schemaEnforced, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional authSource; - + private String connectionString; - - private String database; - + + private List databases; + private Optional password = Optional.empty(); - + private Optional schemaEnforced; - + private Optional username = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -354,6 +361,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * The authentication source where the user information is stored. */ @@ -372,8 +380,11 @@ public Builder authSource(Optional authSource) { return this; } + /** - * The connection string of the cluster that you want to replicate. https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string for more information. + * The connection string of the cluster that you want to replicate. + * https://www.mongodb.com/docs/manual/reference/connection-string/#find-your-self-hosted-deployment-s-connection-string + * for more information. */ public Builder connectionString(String connectionString) { Utils.checkNotNull(connectionString, "connectionString"); @@ -381,15 +392,17 @@ public Builder connectionString(String connectionString) { return this; } + /** - * The name of the MongoDB database that contains the collection(s) to replicate. + * The names of the MongoDB databases that contain the collection(s) to replicate. */ - public Builder database(String database) { - Utils.checkNotNull(database, "database"); - this.database = database; + public Builder databases(List databases) { + Utils.checkNotNull(databases, "databases"); + this.databases = databases; return this; } + /** * The password associated with this username. */ @@ -408,6 +421,7 @@ public Builder password(Optional password) { return this; } + /** * When enabled, syncs will validate and structure records against the stream's schema. */ @@ -426,6 +440,7 @@ public Builder schemaEnforced(Optional schemaEnforced) { return this; } + /** * The username which is used to access the database. */ @@ -443,7 +458,7 @@ public Builder username(Optional username) { this.username = username; return this; } - + public SelfManagedReplicaSet build() { if (authSource == null) { authSource = _SINGLETON_VALUE_AuthSource.value(); @@ -451,16 +466,14 @@ public SelfManagedReplicaSet build() { if (schemaEnforced == null) { schemaEnforced = _SINGLETON_VALUE_SchemaEnforced.value(); } + return new SelfManagedReplicaSet( - authSource, - connectionString, - database, - password, - schemaEnforced, - username) + authSource, connectionString, databases, + password, schemaEnforced, username) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthSource = new LazySingletonValue<>( "auth_source", diff --git a/src/main/java/com/airbyte/api/models/shared/Sendgrid.java b/src/main/java/com/airbyte/api/models/shared/Sendgrid.java index eb5d7e23d..011868f96 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendgrid.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendgrid.java @@ -14,7 +14,7 @@ public enum Sendgrid { @JsonValue private final String value; - private Sendgrid(String value) { + Sendgrid(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Sendinblue.java b/src/main/java/com/airbyte/api/models/shared/Sendinblue.java index e2d8729c2..c36dc33f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendinblue.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendinblue.java @@ -14,7 +14,7 @@ public enum Sendinblue { @JsonValue private final String value; - private Sendinblue(String value) { + Sendinblue(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Sendowl.java b/src/main/java/com/airbyte/api/models/shared/Sendowl.java index 36587837e..7ad4656db 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendowl.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendowl.java @@ -14,7 +14,7 @@ public enum Sendowl { @JsonValue private final String value; - private Sendowl(String value) { + Sendowl(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Sendpulse.java b/src/main/java/com/airbyte/api/models/shared/Sendpulse.java index 40ab7adf7..bf8077731 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sendpulse.java +++ b/src/main/java/com/airbyte/api/models/shared/Sendpulse.java @@ -14,7 +14,7 @@ public enum Sendpulse { @JsonValue private final String value; - private Sendpulse(String value) { + Sendpulse(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Senseforce.java b/src/main/java/com/airbyte/api/models/shared/Senseforce.java index 9d74ed8d4..29a112d68 100644 --- a/src/main/java/com/airbyte/api/models/shared/Senseforce.java +++ b/src/main/java/com/airbyte/api/models/shared/Senseforce.java @@ -14,7 +14,7 @@ public enum Senseforce { @JsonValue private final String value; - private Senseforce(String value) { + Senseforce(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Sentry.java b/src/main/java/com/airbyte/api/models/shared/Sentry.java index 11e4d6356..652639bfa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sentry.java +++ b/src/main/java/com/airbyte/api/models/shared/Sentry.java @@ -14,7 +14,7 @@ public enum Sentry { @JsonValue private final String value; - private Sentry(String value) { + Sentry(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Serpstat.java b/src/main/java/com/airbyte/api/models/shared/Serpstat.java index d3f803732..1bb60c093 100644 --- a/src/main/java/com/airbyte/api/models/shared/Serpstat.java +++ b/src/main/java/com/airbyte/api/models/shared/Serpstat.java @@ -14,7 +14,7 @@ public enum Serpstat { @JsonValue private final String value; - private Serpstat(String value) { + Serpstat(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceAccount.java b/src/main/java/com/airbyte/api/models/shared/ServiceAccount.java index d8ed8dbc9..ebe7669ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceAccount.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceAccount.java @@ -15,9 +15,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class ServiceAccount { @JsonInclude(Include.NON_ABSENT) @@ -25,19 +25,25 @@ public class ServiceAccount { private Optional optionTitle; /** - * Your project ID number. See the <a href="https://help.mixpanel.com/hc/en-us/articles/115004490503-Project-Settings#project-id">docs</a> for more information on how to obtain this. + * Your project ID number. See the docs + * for more information on how to obtain this. */ @JsonProperty("project_id") private long projectId; /** - * Mixpanel Service Account Secret. See the <a href="https://developer.mixpanel.com/reference/service-accounts">docs</a> for more information on how to obtain this. + * Mixpanel Service Account Secret. See the docs for more information on + * how to obtain this. */ @JsonProperty("secret") private String secret; /** - * Mixpanel Service Account Username. See the <a href="https://developer.mixpanel.com/reference/service-accounts">docs</a> for more information on how to obtain this. + * Mixpanel Service Account Username. See the docs for more information on + * how to obtain this. */ @JsonProperty("username") private String username; @@ -63,7 +69,9 @@ public Optional optionTitle() { } /** - * Your project ID number. See the <a href="https://help.mixpanel.com/hc/en-us/articles/115004490503-Project-Settings#project-id">docs</a> for more information on how to obtain this. + * Your project ID number. See the docs + * for more information on how to obtain this. */ @JsonIgnore public long projectId() { @@ -71,7 +79,9 @@ public long projectId() { } /** - * Mixpanel Service Account Secret. See the <a href="https://developer.mixpanel.com/reference/service-accounts">docs</a> for more information on how to obtain this. + * Mixpanel Service Account Secret. See the docs for more information on + * how to obtain this. */ @JsonIgnore public String secret() { @@ -79,19 +89,24 @@ public String secret() { } /** - * Mixpanel Service Account Username. See the <a href="https://developer.mixpanel.com/reference/service-accounts">docs</a> for more information on how to obtain this. + * Mixpanel Service Account Username. See the docs for more information on + * how to obtain this. */ @JsonIgnore public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your project ID number. See the <a href="https://help.mixpanel.com/hc/en-us/articles/115004490503-Project-Settings#project-id">docs</a> for more information on how to obtain this. + * Your project ID number. See the docs + * for more information on how to obtain this. */ public ServiceAccount withProjectId(long projectId) { Utils.checkNotNull(projectId, "projectId"); @@ -100,7 +115,9 @@ public ServiceAccount withProjectId(long projectId) { } /** - * Mixpanel Service Account Secret. See the <a href="https://developer.mixpanel.com/reference/service-accounts">docs</a> for more information on how to obtain this. + * Mixpanel Service Account Secret. See the docs for more information on + * how to obtain this. */ public ServiceAccount withSecret(String secret) { Utils.checkNotNull(secret, "secret"); @@ -109,7 +126,9 @@ public ServiceAccount withSecret(String secret) { } /** - * Mixpanel Service Account Username. See the <a href="https://developer.mixpanel.com/reference/service-accounts">docs</a> for more information on how to obtain this. + * Mixpanel Service Account Username. See the docs for more information on + * how to obtain this. */ public ServiceAccount withUsername(String username) { Utils.checkNotNull(username, "username"); @@ -117,7 +136,6 @@ public ServiceAccount withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -128,18 +146,16 @@ public boolean equals(java.lang.Object o) { } ServiceAccount other = (ServiceAccount) o; return - Objects.deepEquals(this.optionTitle, other.optionTitle) && - Objects.deepEquals(this.projectId, other.projectId) && - Objects.deepEquals(this.secret, other.secret) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.optionTitle, other.optionTitle) && + Utils.enhancedDeepEquals(this.projectId, other.projectId) && + Utils.enhancedDeepEquals(this.secret, other.secret) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - optionTitle, - projectId, - secret, + return Utils.enhancedHash( + optionTitle, projectId, secret, username); } @@ -151,21 +167,25 @@ public String toString() { "secret", secret, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Long projectId; - + private String secret; - + private String username; - + private Builder() { // force use of static builder() method } + /** - * Your project ID number. See the <a href="https://help.mixpanel.com/hc/en-us/articles/115004490503-Project-Settings#project-id">docs</a> for more information on how to obtain this. + * Your project ID number. See the docs + * for more information on how to obtain this. */ public Builder projectId(long projectId) { Utils.checkNotNull(projectId, "projectId"); @@ -173,8 +193,11 @@ public Builder projectId(long projectId) { return this; } + /** - * Mixpanel Service Account Secret. See the <a href="https://developer.mixpanel.com/reference/service-accounts">docs</a> for more information on how to obtain this. + * Mixpanel Service Account Secret. See the docs for more information on + * how to obtain this. */ public Builder secret(String secret) { Utils.checkNotNull(secret, "secret"); @@ -182,22 +205,25 @@ public Builder secret(String secret) { return this; } + /** - * Mixpanel Service Account Username. See the <a href="https://developer.mixpanel.com/reference/service-accounts">docs</a> for more information on how to obtain this. + * Mixpanel Service Account Username. See the docs for more information on + * how to obtain this. */ public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public ServiceAccount build() { + return new ServiceAccount( - projectId, - secret, - username); + projectId, secret, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_OptionTitle = new LazySingletonValue<>( "option_title", diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceAccountAuthentication.java b/src/main/java/com/airbyte/api/models/shared/ServiceAccountAuthentication.java index 8223d2ea9..290fd3aa6 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceAccountAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceAccountAuthentication.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class ServiceAccountAuthentication { @JsonInclude(Include.NON_ABSENT) @@ -24,7 +24,9 @@ public class ServiceAccountAuthentication { private Optional authType; /** - * Enter your Google Cloud <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">service account key</a> in JSON format + * Enter your Google Cloud service + * account key in JSON format */ @JsonProperty("service_account") private String serviceAccount; @@ -44,19 +46,24 @@ public Optional authType() { } /** - * Enter your Google Cloud <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">service account key</a> in JSON format + * Enter your Google Cloud service + * account key in JSON format */ @JsonIgnore public String serviceAccount() { return serviceAccount; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Enter your Google Cloud <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">service account key</a> in JSON format + * Enter your Google Cloud service + * account key in JSON format */ public ServiceAccountAuthentication withServiceAccount(String serviceAccount) { Utils.checkNotNull(serviceAccount, "serviceAccount"); @@ -64,7 +71,6 @@ public ServiceAccountAuthentication withServiceAccount(String serviceAccount) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +81,14 @@ public boolean equals(java.lang.Object o) { } ServiceAccountAuthentication other = (ServiceAccountAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.serviceAccount, other.serviceAccount); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.serviceAccount, other.serviceAccount); } @Override public int hashCode() { - return Objects.hash( - authType, - serviceAccount); + return Utils.enhancedHash( + authType, serviceAccount); } @Override @@ -92,29 +97,35 @@ public String toString() { "authType", authType, "serviceAccount", serviceAccount); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String serviceAccount; - + private Builder() { // force use of static builder() method } + /** - * Enter your Google Cloud <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">service account key</a> in JSON format + * Enter your Google Cloud service + * account key in JSON format */ public Builder serviceAccount(String serviceAccount) { Utils.checkNotNull(serviceAccount, "serviceAccount"); this.serviceAccount = serviceAccount; return this; } - + public ServiceAccountAuthentication build() { + return new ServiceAccountAuthentication( serviceAccount); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceAccountKey.java b/src/main/java/com/airbyte/api/models/shared/ServiceAccountKey.java index b9ce72703..b88ff81e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceAccountKey.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceAccountKey.java @@ -14,18 +14,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * ServiceAccountKey * - *

    For these scenario user should obtain service account's credentials from the Google API Console and provide delegated email. + *

    For these scenario user should obtain service account's credentials from the Google API Console and + * provide delegated email. */ public class ServiceAccountKey { - /** - * The contents of the JSON service account key. See the <a href="https://developers.google.com/admin-sdk/directory/v1/guides/delegation">docs</a> for more information on how to generate this key. + * The contents of the JSON service account key. See the docs for more + * information on how to generate this key. */ @JsonProperty("credentials_json") private String credentialsJson; @@ -55,7 +56,9 @@ public ServiceAccountKey( } /** - * The contents of the JSON service account key. See the <a href="https://developers.google.com/admin-sdk/directory/v1/guides/delegation">docs</a> for more information on how to generate this key. + * The contents of the JSON service account key. See the docs for more + * information on how to generate this key. */ @JsonIgnore public String credentialsJson() { @@ -79,12 +82,15 @@ public String email() { return email; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The contents of the JSON service account key. See the <a href="https://developers.google.com/admin-sdk/directory/v1/guides/delegation">docs</a> for more information on how to generate this key. + * The contents of the JSON service account key. See the docs for more + * information on how to generate this key. */ public ServiceAccountKey withCredentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -101,7 +107,6 @@ public ServiceAccountKey withEmail(String email) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -112,17 +117,15 @@ public boolean equals(java.lang.Object o) { } ServiceAccountKey other = (ServiceAccountKey) o; return - Objects.deepEquals(this.credentialsJson, other.credentialsJson) && - Objects.deepEquals(this.credentialsTitle, other.credentialsTitle) && - Objects.deepEquals(this.email, other.email); + Utils.enhancedDeepEquals(this.credentialsJson, other.credentialsJson) && + Utils.enhancedDeepEquals(this.credentialsTitle, other.credentialsTitle) && + Utils.enhancedDeepEquals(this.email, other.email); } @Override public int hashCode() { - return Objects.hash( - credentialsJson, - credentialsTitle, - email); + return Utils.enhancedHash( + credentialsJson, credentialsTitle, email); } @Override @@ -132,19 +135,23 @@ public String toString() { "credentialsTitle", credentialsTitle, "email", email); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String credentialsJson; - + private String email; - + private Builder() { // force use of static builder() method } + /** - * The contents of the JSON service account key. See the <a href="https://developers.google.com/admin-sdk/directory/v1/guides/delegation">docs</a> for more information on how to generate this key. + * The contents of the JSON service account key. See the docs for more + * information on how to generate this key. */ public Builder credentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -152,6 +159,7 @@ public Builder credentialsJson(String credentialsJson) { return this; } + /** * The email of the user, which has permissions to access the Google Workspace Admin APIs. */ @@ -160,13 +168,14 @@ public Builder email(String email) { this.email = email; return this; } - + public ServiceAccountKey build() { + return new ServiceAccountKey( - credentialsJson, - email); + credentialsJson, email); } + private static final LazySingletonValue> _SINGLETON_VALUE_CredentialsTitle = new LazySingletonValue<>( "credentials_title", diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java index 19665efd4..7ae4cd308 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceAccountKeyAuthentication.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class ServiceAccountKeyAuthentication { @JsonInclude(Include.NON_ABSENT) @@ -24,7 +24,9 @@ public class ServiceAccountKeyAuthentication { private Optional authType; /** - * Enter your service account key in JSON format. See the <a href='https://docs.airbyte.com/integrations/destinations/google-sheets#service-account'>docs</a> for more information on how to generate this key. + * Enter your service account key in JSON format. See the <a + * href='https://docs.airbyte.com/integrations/destinations/google-sheets#service-account'>docs</a> + * for more information on how to generate this key. */ @JsonProperty("service_account_info") private String serviceAccountInfo; @@ -44,19 +46,24 @@ public Optional authType() { } /** - * Enter your service account key in JSON format. See the <a href='https://docs.airbyte.com/integrations/destinations/google-sheets#service-account'>docs</a> for more information on how to generate this key. + * Enter your service account key in JSON format. See the <a + * href='https://docs.airbyte.com/integrations/destinations/google-sheets#service-account'>docs</a> + * for more information on how to generate this key. */ @JsonIgnore public String serviceAccountInfo() { return serviceAccountInfo; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Enter your service account key in JSON format. See the <a href='https://docs.airbyte.com/integrations/destinations/google-sheets#service-account'>docs</a> for more information on how to generate this key. + * Enter your service account key in JSON format. See the <a + * href='https://docs.airbyte.com/integrations/destinations/google-sheets#service-account'>docs</a> + * for more information on how to generate this key. */ public ServiceAccountKeyAuthentication withServiceAccountInfo(String serviceAccountInfo) { Utils.checkNotNull(serviceAccountInfo, "serviceAccountInfo"); @@ -64,7 +71,6 @@ public ServiceAccountKeyAuthentication withServiceAccountInfo(String serviceAcco return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +81,14 @@ public boolean equals(java.lang.Object o) { } ServiceAccountKeyAuthentication other = (ServiceAccountKeyAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.serviceAccountInfo, other.serviceAccountInfo); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.serviceAccountInfo, other.serviceAccountInfo); } @Override public int hashCode() { - return Objects.hash( - authType, - serviceAccountInfo); + return Utils.enhancedHash( + authType, serviceAccountInfo); } @Override @@ -92,29 +97,35 @@ public String toString() { "authType", authType, "serviceAccountInfo", serviceAccountInfo); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String serviceAccountInfo; - + private Builder() { // force use of static builder() method } + /** - * Enter your service account key in JSON format. See the <a href='https://docs.airbyte.com/integrations/destinations/google-sheets#service-account'>docs</a> for more information on how to generate this key. + * Enter your service account key in JSON format. See the <a + * href='https://docs.airbyte.com/integrations/destinations/google-sheets#service-account'>docs</a> + * for more information on how to generate this key. */ public Builder serviceAccountInfo(String serviceAccountInfo) { Utils.checkNotNull(serviceAccountInfo, "serviceAccountInfo"); this.serviceAccountInfo = serviceAccountInfo; return this; } - + public ServiceAccountKeyAuthentication build() { + return new ServiceAccountKeyAuthentication( serviceAccountInfo); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceDetails.java b/src/main/java/com/airbyte/api/models/shared/ServiceDetails.java index 909da4d2e..ecee63a6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceDetails.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceDetails.java @@ -17,7 +17,7 @@ public enum ServiceDetails { @JsonValue private final String value; - private ServiceDetails(String value) { + ServiceDetails(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/ServiceKeyAuthentication.java index 67985386b..407314976 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceKeyAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -48,7 +47,8 @@ public class ServiceKeyAuthentication { private String tenantId; /** - * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls */ @JsonProperty("user_principal_name") private String userPrincipalName; @@ -101,16 +101,18 @@ public String tenantId() { } /** - * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls */ @JsonIgnore public String userPrincipalName() { return userPrincipalName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID of your Microsoft developer application @@ -140,7 +142,8 @@ public ServiceKeyAuthentication withTenantId(String tenantId) { } /** - * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls */ public ServiceKeyAuthentication withUserPrincipalName(String userPrincipalName) { Utils.checkNotNull(userPrincipalName, "userPrincipalName"); @@ -148,7 +151,6 @@ public ServiceKeyAuthentication withUserPrincipalName(String userPrincipalName) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -159,21 +161,18 @@ public boolean equals(java.lang.Object o) { } ServiceKeyAuthentication other = (ServiceKeyAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.tenantId, other.tenantId) && - Objects.deepEquals(this.userPrincipalName, other.userPrincipalName); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId) && + Utils.enhancedDeepEquals(this.userPrincipalName, other.userPrincipalName); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, - tenantId, - userPrincipalName); + return Utils.enhancedHash( + authType, clientId, clientSecret, + tenantId, userPrincipalName); } @Override @@ -185,21 +184,23 @@ public String toString() { "tenantId", tenantId, "userPrincipalName", userPrincipalName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String tenantId; - + private String userPrincipalName; - + private Builder() { // force use of static builder() method } + /** * Client ID of your Microsoft developer application */ @@ -209,6 +210,7 @@ public Builder clientId(String clientId) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -218,6 +220,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Tenant ID of the Microsoft OneDrive user */ @@ -227,23 +230,25 @@ public Builder tenantId(String tenantId) { return this; } + /** - * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls */ public Builder userPrincipalName(String userPrincipalName) { Utils.checkNotNull(userPrincipalName, "userPrincipalName"); this.userPrincipalName = userPrincipalName; return this; } - + public ServiceKeyAuthentication build() { + return new ServiceKeyAuthentication( - clientId, - clientSecret, - tenantId, + clientId, clientSecret, tenantId, userPrincipalName); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceName.java b/src/main/java/com/airbyte/api/models/shared/ServiceName.java index 3a7ead579..781f6b2d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceName.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceName.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -28,6 +27,7 @@ public class ServiceName { @JsonProperty("connection_type") private Optional connectionType; + @JsonProperty("service_name") private String serviceName; @@ -50,9 +50,10 @@ public String serviceName() { return serviceName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ServiceName withServiceName(String serviceName) { Utils.checkNotNull(serviceName, "serviceName"); @@ -60,7 +61,6 @@ public ServiceName withServiceName(String serviceName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +71,14 @@ public boolean equals(java.lang.Object o) { } ServiceName other = (ServiceName) o; return - Objects.deepEquals(this.connectionType, other.connectionType) && - Objects.deepEquals(this.serviceName, other.serviceName); + Utils.enhancedDeepEquals(this.connectionType, other.connectionType) && + Utils.enhancedDeepEquals(this.serviceName, other.serviceName); } @Override public int hashCode() { - return Objects.hash( - connectionType, - serviceName); + return Utils.enhancedHash( + connectionType, serviceName); } @Override @@ -88,26 +87,30 @@ public String toString() { "connectionType", connectionType, "serviceName", serviceName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String serviceName; - + private Builder() { // force use of static builder() method } + public Builder serviceName(String serviceName) { Utils.checkNotNull(serviceName, "serviceName"); this.serviceName = serviceName; return this; } - + public ServiceName build() { + return new ServiceName( serviceName); } + private static final LazySingletonValue> _SINGLETON_VALUE_ConnectionType = new LazySingletonValue<>( "connection_type", diff --git a/src/main/java/com/airbyte/api/models/shared/ServiceNow.java b/src/main/java/com/airbyte/api/models/shared/ServiceNow.java index f3b593d0d..336baa4dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/ServiceNow.java +++ b/src/main/java/com/airbyte/api/models/shared/ServiceNow.java @@ -14,7 +14,7 @@ public enum ServiceNow { @JsonValue private final String value; - private ServiceNow(String value) { + ServiceNow(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java b/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java index 96e66fd81..93a415756 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java +++ b/src/main/java/com/airbyte/api/models/shared/Sevenshifts.java @@ -14,7 +14,7 @@ public enum Sevenshifts { @JsonValue private final String value; - private Sevenshifts(String value) { + Sevenshifts(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Sftp.java b/src/main/java/com/airbyte/api/models/shared/Sftp.java index 2311231e9..5401f5730 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sftp.java +++ b/src/main/java/com/airbyte/api/models/shared/Sftp.java @@ -14,7 +14,7 @@ public enum Sftp { @JsonValue private final String value; - private Sftp(String value) { + Sftp(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SftpBulk.java b/src/main/java/com/airbyte/api/models/shared/SftpBulk.java index ef735a337..df94e5cb3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SftpBulk.java +++ b/src/main/java/com/airbyte/api/models/shared/SftpBulk.java @@ -14,7 +14,7 @@ public enum SftpBulk { @JsonValue private final String value; - private SftpBulk(String value) { + SftpBulk(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SftpJson.java b/src/main/java/com/airbyte/api/models/shared/SftpJson.java index 4937dcbfa..1062a60a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SftpJson.java +++ b/src/main/java/com/airbyte/api/models/shared/SftpJson.java @@ -14,7 +14,7 @@ public enum SftpJson { @JsonValue private final String value; - private SftpJson(String value) { + SftpJson(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java b/src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java index b9b00ea4c..7614aa743 100644 --- a/src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java +++ b/src/main/java/com/airbyte/api/models/shared/ShareTypeUsedForMostPopularSharedStream.java @@ -19,7 +19,7 @@ public enum ShareTypeUsedForMostPopularSharedStream { @JsonValue private final String value; - private ShareTypeUsedForMostPopularSharedStream(String value) { + ShareTypeUsedForMostPopularSharedStream(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SharepointEnterprise.java b/src/main/java/com/airbyte/api/models/shared/SharepointEnterprise.java new file mode 100644 index 000000000..9ae35bac4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SharepointEnterprise.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class SharepointEnterprise { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("credentials") + private Optional credentials; + + @JsonCreator + public SharepointEnterprise( + @JsonProperty("credentials") Optional credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + } + + public SharepointEnterprise() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional credentials() { + return (Optional) credentials; + } + + public static Builder builder() { + return new Builder(); + } + + + public SharepointEnterprise withCredentials(SharepointEnterpriseCredentials credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = Optional.ofNullable(credentials); + return this; + } + + + public SharepointEnterprise withCredentials(Optional credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SharepointEnterprise other = (SharepointEnterprise) o; + return + Utils.enhancedDeepEquals(this.credentials, other.credentials); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + credentials); + } + + @Override + public String toString() { + return Utils.toString(SharepointEnterprise.class, + "credentials", credentials); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional credentials = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder credentials(SharepointEnterpriseCredentials credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = Optional.ofNullable(credentials); + return this; + } + + public Builder credentials(Optional credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + public SharepointEnterprise build() { + + return new SharepointEnterprise( + credentials); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SnowflakeCredentials.java b/src/main/java/com/airbyte/api/models/shared/SharepointEnterpriseCredentials.java similarity index 66% rename from src/main/java/com/airbyte/api/models/shared/SnowflakeCredentials.java rename to src/main/java/com/airbyte/api/models/shared/SharepointEnterpriseCredentials.java index 9f1f8a477..b13f89bc9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SnowflakeCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SharepointEnterpriseCredentials.java @@ -11,27 +11,26 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SnowflakeCredentials { +public class SharepointEnterpriseCredentials { /** - * The Client ID of your Snowflake developer application. + * Client ID of your Microsoft developer application */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * The Client Secret of your Snowflake developer application. + * Client Secret of your Microsoft developer application */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") private Optional clientSecret; @JsonCreator - public SnowflakeCredentials( + public SharepointEnterpriseCredentials( @JsonProperty("client_id") Optional clientId, @JsonProperty("client_secret") Optional clientSecret) { Utils.checkNotNull(clientId, "clientId"); @@ -40,12 +39,12 @@ public SnowflakeCredentials( this.clientSecret = clientSecret; } - public SnowflakeCredentials() { + public SharepointEnterpriseCredentials() { this(Optional.empty(), Optional.empty()); } /** - * The Client ID of your Snowflake developer application. + * Client ID of your Microsoft developer application */ @JsonIgnore public Optional clientId() { @@ -53,54 +52,56 @@ public Optional clientId() { } /** - * The Client Secret of your Snowflake developer application. + * Client Secret of your Microsoft developer application */ @JsonIgnore public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Client ID of your Snowflake developer application. + * Client ID of your Microsoft developer application */ - public SnowflakeCredentials withClientId(String clientId) { + public SharepointEnterpriseCredentials withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = Optional.ofNullable(clientId); return this; } + /** - * The Client ID of your Snowflake developer application. + * Client ID of your Microsoft developer application */ - public SnowflakeCredentials withClientId(Optional clientId) { + public SharepointEnterpriseCredentials withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } /** - * The Client Secret of your Snowflake developer application. + * Client Secret of your Microsoft developer application */ - public SnowflakeCredentials withClientSecret(String clientSecret) { + public SharepointEnterpriseCredentials withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = Optional.ofNullable(clientSecret); return this; } + /** - * The Client Secret of your Snowflake developer application. + * Client Secret of your Microsoft developer application */ - public SnowflakeCredentials withClientSecret(Optional clientSecret) { + public SharepointEnterpriseCredentials withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -109,38 +110,39 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SnowflakeCredentials other = (SnowflakeCredentials) o; + SharepointEnterpriseCredentials other = (SharepointEnterpriseCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override public String toString() { - return Utils.toString(SnowflakeCredentials.class, + return Utils.toString(SharepointEnterpriseCredentials.class, "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The Client ID of your Snowflake developer application. + * Client ID of your Microsoft developer application */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -149,7 +151,7 @@ public Builder clientId(String clientId) { } /** - * The Client ID of your Snowflake developer application. + * Client ID of your Microsoft developer application */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -157,8 +159,9 @@ public Builder clientId(Optional clientId) { return this; } + /** - * The Client Secret of your Snowflake developer application. + * Client Secret of your Microsoft developer application */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -167,18 +170,19 @@ public Builder clientSecret(String clientSecret) { } /** - * The Client Secret of your Snowflake developer application. + * Client Secret of your Microsoft developer application */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - - public SnowflakeCredentials build() { - return new SnowflakeCredentials( - clientId, - clientSecret); + + public SharepointEnterpriseCredentials build() { + + return new SharepointEnterpriseCredentials( + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Sharetribe.java b/src/main/java/com/airbyte/api/models/shared/Sharetribe.java index f0b05fd2c..64bb50d10 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sharetribe.java +++ b/src/main/java/com/airbyte/api/models/shared/Sharetribe.java @@ -14,7 +14,7 @@ public enum Sharetribe { @JsonValue private final String value; - private Sharetribe(String value) { + Sharetribe(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Shippo.java b/src/main/java/com/airbyte/api/models/shared/Shippo.java index 8ffed2650..99061aaeb 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shippo.java +++ b/src/main/java/com/airbyte/api/models/shared/Shippo.java @@ -14,7 +14,7 @@ public enum Shippo { @JsonValue private final String value; - private Shippo(String value) { + Shippo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Shipstation.java b/src/main/java/com/airbyte/api/models/shared/Shipstation.java index 8d80cede1..7b13e0b1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shipstation.java +++ b/src/main/java/com/airbyte/api/models/shared/Shipstation.java @@ -14,7 +14,7 @@ public enum Shipstation { @JsonValue private final String value; - private Shipstation(String value) { + Shipstation(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Shopify.java b/src/main/java/com/airbyte/api/models/shared/Shopify.java index f71d7c0d8..bad05649b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shopify.java +++ b/src/main/java/com/airbyte/api/models/shared/Shopify.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Shopify { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Shopify withCredentials(ShopifyCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Shopify withCredentials(ShopifyCredentials credentials) { return this; } + public Shopify withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Shopify other = (Shopify) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Shopify.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(ShopifyCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Shopify build() { + return new Shopify( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ShopifyAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/ShopifyAuthorizationMethod.java index f918326d6..df2d43ad3 100644 --- a/src/main/java/com/airbyte/api/models/shared/ShopifyAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/ShopifyAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * ShopifyAuthorizationMethod @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } ShopifyAuthorizationMethod other = (ShopifyAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/ShopifyCredentials.java b/src/main/java/com/airbyte/api/models/shared/ShopifyCredentials.java index 9ab692574..819162cc5 100644 --- a/src/main/java/com/airbyte/api/models/shared/ShopifyCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/ShopifyCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class ShopifyCredentials { +public class ShopifyCredentials { /** * The Client ID of the Shopify developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of the Shopify developer application. @@ -73,6 +73,7 @@ public ShopifyCredentials withClientId(String clientId) { return this; } + /** * The Client ID of the Shopify developer application. */ @@ -91,6 +92,7 @@ public ShopifyCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of the Shopify developer application. */ @@ -100,7 +102,6 @@ public ShopifyCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } ShopifyCredentials other = (ShopifyCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of the Shopify developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of the Shopify developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public ShopifyCredentials build() { + return new ShopifyCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Shopwired.java b/src/main/java/com/airbyte/api/models/shared/Shopwired.java index 2411eb001..e83096f57 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shopwired.java +++ b/src/main/java/com/airbyte/api/models/shared/Shopwired.java @@ -14,7 +14,7 @@ public enum Shopwired { @JsonValue private final String value; - private Shopwired(String value) { + Shopwired(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Shortcut.java b/src/main/java/com/airbyte/api/models/shared/Shortcut.java index 28eaefd1a..b9a3b2a4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shortcut.java +++ b/src/main/java/com/airbyte/api/models/shared/Shortcut.java @@ -14,7 +14,7 @@ public enum Shortcut { @JsonValue private final String value; - private Shortcut(String value) { + Shortcut(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Shortio.java b/src/main/java/com/airbyte/api/models/shared/Shortio.java index 7677dae6d..4abcbc4dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shortio.java +++ b/src/main/java/com/airbyte/api/models/shared/Shortio.java @@ -14,7 +14,7 @@ public enum Shortio { @JsonValue private final String value; - private Shortio(String value) { + Shortio(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Shutterstock.java b/src/main/java/com/airbyte/api/models/shared/Shutterstock.java index 97033c901..47ed63e23 100644 --- a/src/main/java/com/airbyte/api/models/shared/Shutterstock.java +++ b/src/main/java/com/airbyte/api/models/shared/Shutterstock.java @@ -14,7 +14,7 @@ public enum Shutterstock { @JsonValue private final String value; - private Shutterstock(String value) { + Shutterstock(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SigmaComputing.java b/src/main/java/com/airbyte/api/models/shared/SigmaComputing.java index be0d466db..dc62dd826 100644 --- a/src/main/java/com/airbyte/api/models/shared/SigmaComputing.java +++ b/src/main/java/com/airbyte/api/models/shared/SigmaComputing.java @@ -14,7 +14,7 @@ public enum SigmaComputing { @JsonValue private final String value; - private SigmaComputing(String value) { + SigmaComputing(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SignInViaGoogleOAuth.java b/src/main/java/com/airbyte/api/models/shared/SignInViaGoogleOAuth.java index ff28d7e31..c41c43188 100644 --- a/src/main/java/com/airbyte/api/models/shared/SignInViaGoogleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SignInViaGoogleOAuth.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -23,7 +22,6 @@ *

    For these scenario user only needs to give permission to read Google Directory data. */ public class SignInViaGoogleOAuth { - /** * The Client ID of the developer application. */ @@ -96,9 +94,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of the developer application. @@ -127,7 +126,6 @@ public SignInViaGoogleOAuth withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -138,18 +136,16 @@ public boolean equals(java.lang.Object o) { } SignInViaGoogleOAuth other = (SignInViaGoogleOAuth) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.credentialsTitle, other.credentialsTitle) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.credentialsTitle, other.credentialsTitle) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - credentialsTitle, + return Utils.enhancedHash( + clientId, clientSecret, credentialsTitle, refreshToken); } @@ -161,19 +157,21 @@ public String toString() { "credentialsTitle", credentialsTitle, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * The Client ID of the developer application. */ @@ -183,6 +181,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of the developer application. */ @@ -192,6 +191,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The Token for obtaining a new access token. */ @@ -200,14 +200,14 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public SignInViaGoogleOAuth build() { + return new SignInViaGoogleOAuth( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_CredentialsTitle = new LazySingletonValue<>( "credentials_title", diff --git a/src/main/java/com/airbyte/api/models/shared/SignInViaRDStationOAuth.java b/src/main/java/com/airbyte/api/models/shared/SignInViaRDStationOAuth.java index a93d8b2c3..25f07621a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SignInViaRDStationOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SignInViaRDStationOAuth.java @@ -13,9 +13,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SignInViaRDStationOAuth { @JsonProperty("auth_type") @@ -89,9 +89,10 @@ public Optional refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your RD Station developer application. @@ -102,6 +103,7 @@ public SignInViaRDStationOAuth withClientId(String clientId) { return this; } + /** * The Client ID of your RD Station developer application. */ @@ -120,6 +122,7 @@ public SignInViaRDStationOAuth withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your RD Station developer application */ @@ -138,6 +141,7 @@ public SignInViaRDStationOAuth withRefreshToken(String refreshToken) { return this; } + /** * The token for obtaining the new access token. */ @@ -147,7 +151,6 @@ public SignInViaRDStationOAuth withRefreshToken(Optional refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -158,18 +161,16 @@ public boolean equals(java.lang.Object o) { } SignInViaRDStationOAuth other = (SignInViaRDStationOAuth) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, + return Utils.enhancedHash( + authType, clientId, clientSecret, refreshToken); } @@ -181,19 +182,21 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Optional refreshToken = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your RD Station developer application. */ @@ -212,6 +215,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your RD Station developer application */ @@ -230,6 +234,7 @@ public Builder clientSecret(Optional clientSecret) { return this; } + /** * The token for obtaining the new access token. */ @@ -247,14 +252,14 @@ public Builder refreshToken(Optional refreshToken) { this.refreshToken = refreshToken; return this; } - + public SignInViaRDStationOAuth build() { + return new SignInViaRDStationOAuth( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SignInViaSlackOAuth.java b/src/main/java/com/airbyte/api/models/shared/SignInViaSlackOAuth.java index c0e5bc756..b342236cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SignInViaSlackOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SignInViaSlackOAuth.java @@ -11,28 +11,31 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SignInViaSlackOAuth { +public class SignInViaSlackOAuth { /** - * Slack access_token. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help generating the token. + * Slack access_token. See our docs + * if you need help generating the token. */ @JsonProperty("access_token") private String accessToken; /** - * Slack client_id. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this id. + * Slack client_id. See our docs if + * you need help finding this id. */ @JsonProperty("client_id") private String clientId; /** - * Slack client_secret. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this secret. + * Slack client_secret. See our docs + * if you need help finding this secret. */ @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("option_title") private SourceSlackOptionTitle optionTitle; @@ -51,7 +54,8 @@ public SignInViaSlackOAuth( } /** - * Slack access_token. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help generating the token. + * Slack access_token. See our docs + * if you need help generating the token. */ @JsonIgnore public String accessToken() { @@ -59,7 +63,8 @@ public String accessToken() { } /** - * Slack client_id. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this id. + * Slack client_id. See our docs if + * you need help finding this id. */ @JsonIgnore public String clientId() { @@ -67,7 +72,8 @@ public String clientId() { } /** - * Slack client_secret. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this secret. + * Slack client_secret. See our docs + * if you need help finding this secret. */ @JsonIgnore public String clientSecret() { @@ -79,12 +85,14 @@ public SourceSlackOptionTitle optionTitle() { return optionTitle; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Slack access_token. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help generating the token. + * Slack access_token. See our docs + * if you need help generating the token. */ public SignInViaSlackOAuth withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -93,7 +101,8 @@ public SignInViaSlackOAuth withAccessToken(String accessToken) { } /** - * Slack client_id. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this id. + * Slack client_id. See our docs if + * you need help finding this id. */ public SignInViaSlackOAuth withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -102,7 +111,8 @@ public SignInViaSlackOAuth withClientId(String clientId) { } /** - * Slack client_secret. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this secret. + * Slack client_secret. See our docs + * if you need help finding this secret. */ public SignInViaSlackOAuth withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -110,7 +120,6 @@ public SignInViaSlackOAuth withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +130,16 @@ public boolean equals(java.lang.Object o) { } SignInViaSlackOAuth other = (SignInViaSlackOAuth) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.optionTitle, other.optionTitle); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.optionTitle, other.optionTitle); } @Override public int hashCode() { - return Objects.hash( - accessToken, - clientId, - clientSecret, + return Utils.enhancedHash( + accessToken, clientId, clientSecret, optionTitle); } @@ -144,21 +151,24 @@ public String toString() { "clientSecret", clientSecret, "optionTitle", optionTitle); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + /** - * Slack access_token. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help generating the token. + * Slack access_token. See our docs + * if you need help generating the token. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -166,8 +176,10 @@ public Builder accessToken(String accessToken) { return this; } + /** - * Slack client_id. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this id. + * Slack client_id. See our docs if + * you need help finding this id. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -175,22 +187,24 @@ public Builder clientId(String clientId) { return this; } + /** - * Slack client_secret. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this secret. + * Slack client_secret. See our docs + * if you need help finding this secret. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SignInViaSlackOAuth build() { + return new SignInViaSlackOAuth( - accessToken, - clientId, - clientSecret); + accessToken, clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_OptionTitle = new LazySingletonValue<>( "option_title", diff --git a/src/main/java/com/airbyte/api/models/shared/Signnow.java b/src/main/java/com/airbyte/api/models/shared/Signnow.java index d00db5f73..6d1c539c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Signnow.java +++ b/src/main/java/com/airbyte/api/models/shared/Signnow.java @@ -14,7 +14,7 @@ public enum Signnow { @JsonValue private final String value; - private Signnow(String value) { + Signnow(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Silent.java b/src/main/java/com/airbyte/api/models/shared/Silent.java index 247302595..b03df30f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Silent.java +++ b/src/main/java/com/airbyte/api/models/shared/Silent.java @@ -19,14 +19,15 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class Silent { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("test_destination_type") private Optional testDestinationType; @@ -54,9 +55,10 @@ public Optional testDestinationType() { return (Optional) testDestinationType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public Silent withAdditionalProperty(String key, Object value) { @@ -64,8 +66,7 @@ public Silent withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public Silent withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -78,13 +79,13 @@ public Silent withTestDestinationType(DestinationDevNullTestDestinationType test return this; } + public Silent withTestDestinationType(Optional testDestinationType) { Utils.checkNotNull(testDestinationType, "testDestinationType"); this.testDestinationType = testDestinationType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +96,14 @@ public boolean equals(java.lang.Object o) { } Silent other = (Silent) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.testDestinationType, other.testDestinationType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.testDestinationType, other.testDestinationType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - testDestinationType); + return Utils.enhancedHash( + additionalProperties, testDestinationType); } @Override @@ -112,13 +112,14 @@ public String toString() { "additionalProperties", additionalProperties, "testDestinationType", testDestinationType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional testDestinationType; - + private Builder() { // force use of static builder() method } @@ -139,6 +140,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder testDestinationType(DestinationDevNullTestDestinationType testDestinationType) { Utils.checkNotNull(testDestinationType, "testDestinationType"); this.testDestinationType = Optional.ofNullable(testDestinationType); @@ -150,16 +152,18 @@ public Builder testDestinationType(Optional> _SINGLETON_VALUE_TestDestinationType = new LazySingletonValue<>( "test_destination_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Simfin.java b/src/main/java/com/airbyte/api/models/shared/Simfin.java index 74d7590bc..ad78b2b8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Simfin.java +++ b/src/main/java/com/airbyte/api/models/shared/Simfin.java @@ -14,7 +14,7 @@ public enum Simfin { @JsonValue private final String value; - private Simfin(String value) { + Simfin(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Simplecast.java b/src/main/java/com/airbyte/api/models/shared/Simplecast.java index 24e117cae..d990cf4d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Simplecast.java +++ b/src/main/java/com/airbyte/api/models/shared/Simplecast.java @@ -14,7 +14,7 @@ public enum Simplecast { @JsonValue private final String value; - private Simplecast(String value) { + Simplecast(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Simplesat.java b/src/main/java/com/airbyte/api/models/shared/Simplesat.java index 819cd69da..294f4ed6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Simplesat.java +++ b/src/main/java/com/airbyte/api/models/shared/Simplesat.java @@ -14,7 +14,7 @@ public enum Simplesat { @JsonValue private final String value; - private Simplesat(String value) { + Simplesat(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SingleStoreAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SingleStoreAccessToken.java index a330dc14c..18b0b9e12 100644 --- a/src/main/java/com/airbyte/api/models/shared/SingleStoreAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SingleStoreAccessToken.java @@ -11,21 +11,22 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SingleStoreAccessToken { +public class SingleStoreAccessToken { /** * Access Token for making authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("auth_type") private SourceCartSchemasAuthType authType; /** - * The name of Cart.com Online Store. All API URLs start with https://[mystorename.com]/api/v1/, where [mystorename.com] is the domain name of your store. + * The name of Cart.com Online Store. All API URLs start with https://[mystorename.com]/api/v1/, where + * [mystorename.com] is the domain name of your store. */ @JsonProperty("store_name") private String storeName; @@ -55,16 +56,18 @@ public SourceCartSchemasAuthType authType() { } /** - * The name of Cart.com Online Store. All API URLs start with https://[mystorename.com]/api/v1/, where [mystorename.com] is the domain name of your store. + * The name of Cart.com Online Store. All API URLs start with https://[mystorename.com]/api/v1/, where + * [mystorename.com] is the domain name of your store. */ @JsonIgnore public String storeName() { return storeName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -76,7 +79,8 @@ public SingleStoreAccessToken withAccessToken(String accessToken) { } /** - * The name of Cart.com Online Store. All API URLs start with https://[mystorename.com]/api/v1/, where [mystorename.com] is the domain name of your store. + * The name of Cart.com Online Store. All API URLs start with https://[mystorename.com]/api/v1/, where + * [mystorename.com] is the domain name of your store. */ public SingleStoreAccessToken withStoreName(String storeName) { Utils.checkNotNull(storeName, "storeName"); @@ -84,7 +88,6 @@ public SingleStoreAccessToken withStoreName(String storeName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +98,15 @@ public boolean equals(java.lang.Object o) { } SingleStoreAccessToken other = (SingleStoreAccessToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.storeName, other.storeName); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.storeName, other.storeName); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - storeName); + return Utils.enhancedHash( + accessToken, authType, storeName); } @Override @@ -115,17 +116,19 @@ public String toString() { "authType", authType, "storeName", storeName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String storeName; - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -135,21 +138,24 @@ public Builder accessToken(String accessToken) { return this; } + /** - * The name of Cart.com Online Store. All API URLs start with https://[mystorename.com]/api/v1/, where [mystorename.com] is the domain name of your store. + * The name of Cart.com Online Store. All API URLs start with https://[mystorename.com]/api/v1/, where + * [mystorename.com] is the domain name of your store. */ public Builder storeName(String storeName) { Utils.checkNotNull(storeName, "storeName"); this.storeName = storeName; return this; } - + public SingleStoreAccessToken build() { + return new SingleStoreAccessToken( - accessToken, - storeName); + accessToken, storeName); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Site.java b/src/main/java/com/airbyte/api/models/shared/Site.java index 391a38e6f..da32ffa85 100644 --- a/src/main/java/com/airbyte/api/models/shared/Site.java +++ b/src/main/java/com/airbyte/api/models/shared/Site.java @@ -23,7 +23,7 @@ public enum Site { @JsonValue private final String value; - private Site(String value) { + Site(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Slack.java b/src/main/java/com/airbyte/api/models/shared/Slack.java index 992a94348..94d2b2daa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Slack.java +++ b/src/main/java/com/airbyte/api/models/shared/Slack.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Slack { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Slack withCredentials(SlackCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Slack withCredentials(SlackCredentials credentials) { return this; } + public Slack withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Slack other = (Slack) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Slack.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(SlackCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) { this.credentials = credentials; return this; } - + public Slack build() { + return new Slack( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SlackCredentials.java b/src/main/java/com/airbyte/api/models/shared/SlackCredentials.java index fe76685ac..372b9ff73 100644 --- a/src/main/java/com/airbyte/api/models/shared/SlackCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SlackCredentials.java @@ -11,20 +11,21 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SlackCredentials { +public class SlackCredentials { /** - * Slack client_id. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this id. + * Slack client_id. See our docs if + * you need help finding this id. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * Slack client_secret. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this secret. + * Slack client_secret. See our docs + * if you need help finding this secret. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") @@ -45,7 +46,8 @@ public SlackCredentials() { } /** - * Slack client_id. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this id. + * Slack client_id. See our docs if + * you need help finding this id. */ @JsonIgnore public Optional clientId() { @@ -53,19 +55,22 @@ public Optional clientId() { } /** - * Slack client_secret. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this secret. + * Slack client_secret. See our docs + * if you need help finding this secret. */ @JsonIgnore public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Slack client_id. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this id. + * Slack client_id. See our docs if + * you need help finding this id. */ public SlackCredentials withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -73,8 +78,10 @@ public SlackCredentials withClientId(String clientId) { return this; } + /** - * Slack client_id. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this id. + * Slack client_id. See our docs if + * you need help finding this id. */ public SlackCredentials withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +90,8 @@ public SlackCredentials withClientId(Optional clientId) { } /** - * Slack client_secret. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this secret. + * Slack client_secret. See our docs + * if you need help finding this secret. */ public SlackCredentials withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -91,8 +99,10 @@ public SlackCredentials withClientSecret(String clientSecret) { return this; } + /** - * Slack client_secret. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this secret. + * Slack client_secret. See our docs + * if you need help finding this secret. */ public SlackCredentials withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -100,7 +110,6 @@ public SlackCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +120,14 @@ public boolean equals(java.lang.Object o) { } SlackCredentials other = (SlackCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,19 +136,22 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Slack client_id. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this id. + * Slack client_id. See our docs if + * you need help finding this id. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -149,7 +160,8 @@ public Builder clientId(String clientId) { } /** - * Slack client_id. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this id. + * Slack client_id. See our docs if + * you need help finding this id. */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -157,8 +169,10 @@ public Builder clientId(Optional clientId) { return this; } + /** - * Slack client_secret. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this secret. + * Slack client_secret. See our docs + * if you need help finding this secret. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -167,18 +181,20 @@ public Builder clientSecret(String clientSecret) { } /** - * Slack client_secret. See our <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> if you need help finding this secret. + * Slack client_secret. See our docs + * if you need help finding this secret. */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SlackCredentials build() { + return new SlackCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Smaily.java b/src/main/java/com/airbyte/api/models/shared/Smaily.java index 809a681e6..19608b191 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smaily.java +++ b/src/main/java/com/airbyte/api/models/shared/Smaily.java @@ -14,7 +14,7 @@ public enum Smaily { @JsonValue private final String value; - private Smaily(String value) { + Smaily(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Smartengage.java b/src/main/java/com/airbyte/api/models/shared/Smartengage.java index 7c2bea25b..0e46cdaac 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartengage.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartengage.java @@ -14,7 +14,7 @@ public enum Smartengage { @JsonValue private final String value; - private Smartengage(String value) { + Smartengage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Smartreach.java b/src/main/java/com/airbyte/api/models/shared/Smartreach.java index 108ac8046..585e6bdc6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartreach.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartreach.java @@ -14,7 +14,7 @@ public enum Smartreach { @JsonValue private final String value; - private Smartreach(String value) { + Smartreach(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Smartsheets.java b/src/main/java/com/airbyte/api/models/shared/Smartsheets.java index c17ac65ed..68374cf1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartsheets.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartsheets.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Smartsheets { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Smartsheets withCredentials(SmartsheetsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Smartsheets withCredentials(SmartsheetsCredentials credentials) { return this; } + public Smartsheets withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Smartsheets other = (Smartsheets) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Smartsheets.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(SmartsheetsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credential this.credentials = credentials; return this; } - + public Smartsheets build() { + return new Smartsheets( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SmartsheetsCredentials.java b/src/main/java/com/airbyte/api/models/shared/SmartsheetsCredentials.java index 1cc21bc32..adcc4dfb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SmartsheetsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SmartsheetsCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SmartsheetsCredentials { +public class SmartsheetsCredentials { /** * The API ID of the SmartSheets developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API ID of the SmartSheets developer application. @@ -73,6 +73,7 @@ public SmartsheetsCredentials withClientId(String clientId) { return this; } + /** * The API ID of the SmartSheets developer application. */ @@ -91,6 +92,7 @@ public SmartsheetsCredentials withClientSecret(String clientSecret) { return this; } + /** * The API Secret the SmartSheets developer application. */ @@ -100,7 +102,6 @@ public SmartsheetsCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } SmartsheetsCredentials other = (SmartsheetsCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The API ID of the SmartSheets developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The API Secret the SmartSheets developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public SmartsheetsCredentials build() { + return new SmartsheetsCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java b/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java index d639967ca..ad21d5743 100644 --- a/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java +++ b/src/main/java/com/airbyte/api/models/shared/Smartwaiver.java @@ -14,7 +14,7 @@ public enum Smartwaiver { @JsonValue private final String value; - private Smartwaiver(String value) { + Smartwaiver(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SnapchatMarketing.java b/src/main/java/com/airbyte/api/models/shared/SnapchatMarketing.java index 1f906b89f..a89a7903a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SnapchatMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SnapchatMarketing.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SnapchatMarketing { +public class SnapchatMarketing { /** * The Client ID of your Snapchat developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Snapchat developer application. @@ -73,6 +73,7 @@ public SnapchatMarketing withClientId(String clientId) { return this; } + /** * The Client ID of your Snapchat developer application. */ @@ -91,6 +92,7 @@ public SnapchatMarketing withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your Snapchat developer application. */ @@ -100,7 +102,6 @@ public SnapchatMarketing withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } SnapchatMarketing other = (SnapchatMarketing) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Snapchat developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your Snapchat developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public SnapchatMarketing build() { + return new SnapchatMarketing( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Snappy.java b/src/main/java/com/airbyte/api/models/shared/Snappy.java index b342524ad..8dad81344 100644 --- a/src/main/java/com/airbyte/api/models/shared/Snappy.java +++ b/src/main/java/com/airbyte/api/models/shared/Snappy.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Snappy { @JsonInclude(Include.NON_ABSENT) @@ -40,9 +40,10 @@ public Optional codec() { return (Optional) codec; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Snappy withCodec(DestinationGcsSchemasFormatOutputFormat1Codec codec) { Utils.checkNotNull(codec, "codec"); @@ -50,13 +51,13 @@ public Snappy withCodec(DestinationGcsSchemasFormatOutputFormat1Codec codec) { return this; } + public Snappy withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -67,12 +68,12 @@ public boolean equals(java.lang.Object o) { } Snappy other = (Snappy) o; return - Objects.deepEquals(this.codec, other.codec); + Utils.enhancedDeepEquals(this.codec, other.codec); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( codec); } @@ -81,15 +82,17 @@ public String toString() { return Utils.toString(Snappy.class, "codec", codec); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional codec; - + private Builder() { // force use of static builder() method } + public Builder codec(DestinationGcsSchemasFormatOutputFormat1Codec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -101,15 +104,17 @@ public Builder codec(Optional> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/Snowflake.java b/src/main/java/com/airbyte/api/models/shared/Snowflake.java index 95911d4b9..9c49310d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Snowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/Snowflake.java @@ -3,106 +3,32 @@ */ package com.airbyte.api.models.shared; -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; +import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; -import java.lang.SuppressWarnings; import java.util.Objects; import java.util.Optional; -public class Snowflake { +public enum Snowflake { + SNOWFLAKE("snowflake"); - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("credentials") - private Optional credentials; + @JsonValue + private final String value; - @JsonCreator - public Snowflake( - @JsonProperty("credentials") Optional credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = credentials; + Snowflake(String value) { + this.value = value; } - public Snowflake() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional credentials() { - return (Optional) credentials; - } - - public final static Builder builder() { - return new Builder(); - } - - public Snowflake withCredentials(SnowflakeCredentials credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = Optional.ofNullable(credentials); - return this; - } - - public Snowflake withCredentials(Optional credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = credentials; - return this; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Snowflake other = (Snowflake) o; - return - Objects.deepEquals(this.credentials, other.credentials); - } - - @Override - public int hashCode() { - return Objects.hash( - credentials); + public String value() { + return value; } - @Override - public String toString() { - return Utils.toString(Snowflake.class, - "credentials", credentials); - } - - public final static class Builder { - - private Optional credentials = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - public Builder credentials(SnowflakeCredentials credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = Optional.ofNullable(credentials); - return this; - } - - public Builder credentials(Optional credentials) { - Utils.checkNotNull(credentials, "credentials"); - this.credentials = credentials; - return this; - } - - public Snowflake build() { - return new Snowflake( - credentials); + public static Optional fromValue(String value) { + for (Snowflake o: Snowflake.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } } + return Optional.empty(); } } + diff --git a/src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java b/src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java index 07d1ad2f1..0fdda9f7c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java +++ b/src/main/java/com/airbyte/api/models/shared/SnowflakeConnection.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * SnowflakeConnection @@ -34,7 +33,8 @@ public class SnowflakeConnection { private String defaultSchema; /** - * Enter the account name you want to use to access the database. This is usually the identifier before .snowflakecomputing.com + * Enter the account name you want to use to access the database. This is usually the identifier before + * .snowflakecomputing.com */ @JsonProperty("host") private String host; @@ -104,7 +104,8 @@ public String defaultSchema() { } /** - * Enter the account name you want to use to access the database. This is usually the identifier before .snowflakecomputing.com + * Enter the account name you want to use to access the database. This is usually the identifier before + * .snowflakecomputing.com */ @JsonIgnore public String host() { @@ -135,9 +136,10 @@ public String warehouse() { return warehouse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SnowflakeConnection withCredentials(DestinationSnowflakeCortexCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -164,7 +166,8 @@ public SnowflakeConnection withDefaultSchema(String defaultSchema) { } /** - * Enter the account name you want to use to access the database. This is usually the identifier before .snowflakecomputing.com + * Enter the account name you want to use to access the database. This is usually the identifier before + * .snowflakecomputing.com */ public SnowflakeConnection withHost(String host) { Utils.checkNotNull(host, "host"); @@ -199,7 +202,6 @@ public SnowflakeConnection withWarehouse(String warehouse) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -210,24 +212,20 @@ public boolean equals(java.lang.Object o) { } SnowflakeConnection other = (SnowflakeConnection) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.defaultSchema, other.defaultSchema) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.role, other.role) && - Objects.deepEquals(this.username, other.username) && - Objects.deepEquals(this.warehouse, other.warehouse); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.defaultSchema, other.defaultSchema) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.role, other.role) && + Utils.enhancedDeepEquals(this.username, other.username) && + Utils.enhancedDeepEquals(this.warehouse, other.warehouse); } @Override public int hashCode() { - return Objects.hash( - credentials, - database, - defaultSchema, - host, - role, - username, + return Utils.enhancedHash( + credentials, database, defaultSchema, + host, role, username, warehouse); } @@ -242,33 +240,36 @@ public String toString() { "username", username, "warehouse", warehouse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private DestinationSnowflakeCortexCredentials credentials; - + private String database; - + private String defaultSchema; - + private String host; - + private String role; - + private String username; - + private String warehouse; - + private Builder() { // force use of static builder() method } + public Builder credentials(DestinationSnowflakeCortexCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } + /** * Enter the name of the database that you want to sync data into */ @@ -278,6 +279,7 @@ public Builder database(String database) { return this; } + /** * Enter the name of the default schema */ @@ -287,8 +289,10 @@ public Builder defaultSchema(String defaultSchema) { return this; } + /** - * Enter the account name you want to use to access the database. This is usually the identifier before .snowflakecomputing.com + * Enter the account name you want to use to access the database. This is usually the identifier before + * .snowflakecomputing.com */ public Builder host(String host) { Utils.checkNotNull(host, "host"); @@ -296,6 +300,7 @@ public Builder host(String host) { return this; } + /** * Enter the role that you want to use to access Snowflake */ @@ -305,6 +310,7 @@ public Builder role(String role) { return this; } + /** * Enter the name of the user you want to use to access the database */ @@ -314,6 +320,7 @@ public Builder username(String username) { return this; } + /** * Enter the name of the warehouse that you want to use as a compute cluster */ @@ -322,16 +329,14 @@ public Builder warehouse(String warehouse) { this.warehouse = warehouse; return this; } - + public SnowflakeConnection build() { + return new SnowflakeConnection( - credentials, - database, - defaultSchema, - host, - role, - username, + credentials, database, defaultSchema, + host, role, username, warehouse); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java b/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java index 4972f5aff..3421ec4ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java +++ b/src/main/java/com/airbyte/api/models/shared/SnowflakeCortex.java @@ -14,7 +14,7 @@ public enum SnowflakeCortex { @JsonValue private final String value; - private SnowflakeCortex(String value) { + SnowflakeCortex(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java b/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java index f2fcba017..dc1fbb67e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SolarwindsServiceDesk.java @@ -14,7 +14,7 @@ public enum SolarwindsServiceDesk { @JsonValue private final String value; - private SolarwindsServiceDesk(String value) { + SolarwindsServiceDesk(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SonarCloud.java b/src/main/java/com/airbyte/api/models/shared/SonarCloud.java index 7c7dd9e7c..d98be71fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SonarCloud.java +++ b/src/main/java/com/airbyte/api/models/shared/SonarCloud.java @@ -14,7 +14,7 @@ public enum SonarCloud { @JsonValue private final String value; - private SonarCloud(String value) { + SonarCloud(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SortBy.java b/src/main/java/com/airbyte/api/models/shared/SortBy.java index 813191cc7..2c56f62b2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SortBy.java +++ b/src/main/java/com/airbyte/api/models/shared/SortBy.java @@ -22,7 +22,7 @@ public enum SortBy { @JsonValue private final String value; - private SortBy(String value) { + SortBy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Source100ms.java b/src/main/java/com/airbyte/api/models/shared/Source100ms.java index 1e9672ef2..a7d868761 100644 --- a/src/main/java/com/airbyte/api/models/shared/Source100ms.java +++ b/src/main/java/com/airbyte/api/models/shared/Source100ms.java @@ -12,19 +12,23 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class Source100ms { +public class Source100ms { /** - * The management token used for authenticating API requests. You can find or generate this token in your 100ms dashboard under the API section. Refer to the documentation at https://www.100ms.live/docs/concepts/v2/concepts/security-and-tokens#management-token-for-rest-api for more details. + * The management token used for authenticating API requests. You can find or generate this token in + * your 100ms dashboard under the API section. Refer to the documentation at + * https://www.100ms.live/docs/concepts/v2/concepts/security-and-tokens#management-token-for-rest-api + * for more details. */ @JsonProperty("management_token") private String managementToken; + @JsonProperty("sourceType") private OneHundredms sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +44,10 @@ public Source100ms( } /** - * The management token used for authenticating API requests. You can find or generate this token in your 100ms dashboard under the API section. Refer to the documentation at https://www.100ms.live/docs/concepts/v2/concepts/security-and-tokens#management-token-for-rest-api for more details. + * The management token used for authenticating API requests. You can find or generate this token in + * your 100ms dashboard under the API section. Refer to the documentation at + * https://www.100ms.live/docs/concepts/v2/concepts/security-and-tokens#management-token-for-rest-api + * for more details. */ @JsonIgnore public String managementToken() { @@ -57,12 +64,16 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The management token used for authenticating API requests. You can find or generate this token in your 100ms dashboard under the API section. Refer to the documentation at https://www.100ms.live/docs/concepts/v2/concepts/security-and-tokens#management-token-for-rest-api for more details. + * The management token used for authenticating API requests. You can find or generate this token in + * your 100ms dashboard under the API section. Refer to the documentation at + * https://www.100ms.live/docs/concepts/v2/concepts/security-and-tokens#management-token-for-rest-api + * for more details. */ public Source100ms withManagementToken(String managementToken) { Utils.checkNotNull(managementToken, "managementToken"); @@ -76,7 +87,6 @@ public Source100ms withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +97,15 @@ public boolean equals(java.lang.Object o) { } Source100ms other = (Source100ms) o; return - Objects.deepEquals(this.managementToken, other.managementToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.managementToken, other.managementToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - managementToken, - sourceType, - startDate); + return Utils.enhancedHash( + managementToken, sourceType, startDate); } @Override @@ -107,19 +115,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String managementToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * The management token used for authenticating API requests. You can find or generate this token in your 100ms dashboard under the API section. Refer to the documentation at https://www.100ms.live/docs/concepts/v2/concepts/security-and-tokens#management-token-for-rest-api for more details. + * The management token used for authenticating API requests. You can find or generate this token in + * your 100ms dashboard under the API section. Refer to the documentation at + * https://www.100ms.live/docs/concepts/v2/concepts/security-and-tokens#management-token-for-rest-api + * for more details. */ public Builder managementToken(String managementToken) { Utils.checkNotNull(managementToken, "managementToken"); @@ -127,18 +140,20 @@ public Builder managementToken(String managementToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public Source100ms build() { + return new Source100ms( - managementToken, - startDate); + managementToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/Source7shifts.java b/src/main/java/com/airbyte/api/models/shared/Source7shifts.java index c14b74b72..c3a21bc68 100644 --- a/src/main/java/com/airbyte/api/models/shared/Source7shifts.java +++ b/src/main/java/com/airbyte/api/models/shared/Source7shifts.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class Source7shifts { +public class Source7shifts { /** * Access token to use for authentication. Generate it in the 7shifts Developer Tools. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Sevenshifts sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access token to use for authentication. Generate it in the 7shifts Developer Tools. @@ -76,7 +78,6 @@ public Source7shifts withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } Source7shifts other = (Source7shifts) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType, - startDate); + return Utils.enhancedHash( + accessToken, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * Access token to use for authentication. Generate it in the 7shifts Developer Tools. */ @@ -127,18 +128,20 @@ public Builder accessToken(String accessToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public Source7shifts build() { + return new Source7shifts( - accessToken, - startDate); + accessToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceActivecampaign.java b/src/main/java/com/airbyte/api/models/shared/SourceActivecampaign.java index 696ce10c4..0a8df7df7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceActivecampaign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceActivecampaign.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceActivecampaign { +public class SourceActivecampaign { /** * Account Username */ @@ -27,6 +26,7 @@ public class SourceActivecampaign { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Activecampaign sourceType; @@ -62,9 +62,10 @@ public Activecampaign sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Account Username @@ -84,7 +85,6 @@ public SourceActivecampaign withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceActivecampaign other = (SourceActivecampaign) o; return - Objects.deepEquals(this.accountUsername, other.accountUsername) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountUsername, other.accountUsername) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountUsername, - apiKey, - sourceType); + return Utils.enhancedHash( + accountUsername, apiKey, sourceType); } @Override @@ -115,17 +113,19 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountUsername; - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * Account Username */ @@ -135,6 +135,7 @@ public Builder accountUsername(String accountUsername) { return this; } + /** * API Key */ @@ -143,13 +144,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceActivecampaign build() { + return new SourceActivecampaign( - accountUsername, - apiKey); + accountUsername, apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAgilecrm.java b/src/main/java/com/airbyte/api/models/shared/SourceAgilecrm.java index ea0c04995..2f04cf6fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAgilecrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAgilecrm.java @@ -11,12 +11,12 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceAgilecrm { +public class SourceAgilecrm { /** - * API key to use. Find it at Admin Settings -> API & Analytics -> API Key in your Agile CRM account. + * API key to use. Find it at Admin Settings -> API & Analytics -> API Key in your Agile CRM + * account. */ @JsonProperty("api_key") private String apiKey; @@ -33,6 +33,7 @@ public class SourceAgilecrm { @JsonProperty("email") private String email; + @JsonProperty("sourceType") private Agilecrm sourceType; @@ -51,7 +52,8 @@ public SourceAgilecrm( } /** - * API key to use. Find it at Admin Settings -> API & Analytics -> API Key in your Agile CRM account. + * API key to use. Find it at Admin Settings -> API & Analytics -> API Key in your Agile CRM + * account. */ @JsonIgnore public String apiKey() { @@ -79,12 +81,14 @@ public Agilecrm sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key to use. Find it at Admin Settings -> API & Analytics -> API Key in your Agile CRM account. + * API key to use. Find it at Admin Settings -> API & Analytics -> API Key in your Agile CRM + * account. */ public SourceAgilecrm withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -110,7 +114,6 @@ public SourceAgilecrm withEmail(String email) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +124,16 @@ public boolean equals(java.lang.Object o) { } SourceAgilecrm other = (SourceAgilecrm) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - domain, - email, + return Utils.enhancedHash( + apiKey, domain, email, sourceType); } @@ -144,21 +145,24 @@ public String toString() { "email", email, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String domain; - + private String email; - + private Builder() { // force use of static builder() method } + /** - * API key to use. Find it at Admin Settings -> API & Analytics -> API Key in your Agile CRM account. + * API key to use. Find it at Admin Settings -> API & Analytics -> API Key in your Agile CRM + * account. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -166,6 +170,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The specific subdomain for your Agile CRM account */ @@ -175,6 +180,7 @@ public Builder domain(String domain) { return this; } + /** * Your Agile CRM account email address. This is used as the username for authentication. */ @@ -183,14 +189,14 @@ public Builder email(String email) { this.email = email; return this; } - + public SourceAgilecrm build() { + return new SourceAgilecrm( - apiKey, - domain, - email); + apiKey, domain, email); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAha.java b/src/main/java/com/airbyte/api/models/shared/SourceAha.java index 8226fa585..7c2e6459b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAha.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAha.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceAha { +public class SourceAha { /** * API Key */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Aha sourceType; @@ -62,9 +62,10 @@ public String url() { return url; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -84,7 +85,6 @@ public SourceAha withUrl(String url) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceAha other = (SourceAha) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.url, other.url); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.url, other.url); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - url); + return Utils.enhancedHash( + apiKey, sourceType, url); } @Override @@ -115,17 +113,19 @@ public String toString() { "sourceType", sourceType, "url", url); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String url; - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -135,6 +135,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * URL */ @@ -143,13 +144,14 @@ public Builder url(String url) { this.url = url; return this; } - + public SourceAha build() { + return new SourceAha( - apiKey, - url); + apiKey, url); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java b/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java index 162e05b71..db906ef39 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirbyte.java @@ -14,14 +14,15 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceAirbyte { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; @@ -32,9 +33,11 @@ public class SourceAirbyte { @JsonProperty("host") private Optional host; + @JsonProperty("sourceType") private Airbyte sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -59,7 +62,8 @@ public SourceAirbyte( String clientId, String clientSecret, OffsetDateTime startDate) { - this(clientId, clientSecret, Optional.empty(), startDate); + this(clientId, clientSecret, Optional.empty(), + startDate); } @JsonIgnore @@ -90,9 +94,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceAirbyte withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -115,6 +120,7 @@ public SourceAirbyte withHost(String host) { return this; } + /** * The Host URL of your Self-Managed Deployment (e.x. airbtye.mydomain.com) */ @@ -130,7 +136,6 @@ public SourceAirbyte withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -141,21 +146,18 @@ public boolean equals(java.lang.Object o) { } SourceAirbyte other = (SourceAirbyte) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - host, - sourceType, - startDate); + return Utils.enhancedHash( + clientId, clientSecret, host, + sourceType, startDate); } @Override @@ -167,33 +169,37 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional host = Optional.empty(); - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** * The Host URL of your Self-Managed Deployment (e.x. airbtye.mydomain.com) */ @@ -212,20 +218,21 @@ public Builder host(Optional host) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceAirbyte build() { + return new SourceAirbyte( - clientId, - clientSecret, - host, + clientId, clientSecret, host, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAircall.java b/src/main/java/com/airbyte/api/models/shared/SourceAircall.java index ffa11132d..f29a49e05 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAircall.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAircall.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceAircall { +public class SourceAircall { /** * App ID found at settings https://dashboard.aircall.io/integrations/api-keys */ @@ -28,6 +27,7 @@ public class SourceAircall { @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Aircall sourceType; @@ -80,9 +80,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * App ID found at settings https://dashboard.aircall.io/integrations/api-keys @@ -111,7 +112,6 @@ public SourceAircall withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,18 +122,16 @@ public boolean equals(java.lang.Object o) { } SourceAircall other = (SourceAircall) o; return - Objects.deepEquals(this.apiId, other.apiId) && - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiId, other.apiId) && + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiId, - apiToken, - sourceType, + return Utils.enhancedHash( + apiId, apiToken, sourceType, startDate); } @@ -145,19 +143,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiId; - + private String apiToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * App ID found at settings https://dashboard.aircall.io/integrations/api-keys */ @@ -167,6 +167,7 @@ public Builder apiId(String apiId) { return this; } + /** * App token found at settings (Ref- https://dashboard.aircall.io/integrations/api-keys) */ @@ -176,6 +177,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * Date time filter for incremental filter, Specify which date to extract from. */ @@ -184,14 +186,14 @@ public Builder startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } - + public SourceAircall build() { + return new SourceAircall( - apiId, - apiToken, - startDate); + apiId, apiToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtable.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtable.java index 8a56a6f28..1585af915 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtable.java @@ -14,15 +14,16 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceAirtable { @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceType") private Optional sourceType; @@ -51,9 +52,10 @@ public Optional sourceType() { return (Optional) sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceAirtable withCredentials(SourceAirtableAuthentication credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -61,13 +63,13 @@ public SourceAirtable withCredentials(SourceAirtableAuthentication credentials) return this; } + public SourceAirtable withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,15 +80,14 @@ public boolean equals(java.lang.Object o) { } SourceAirtable other = (SourceAirtable) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - credentials, - sourceType); + return Utils.enhancedHash( + credentials, sourceType); } @Override @@ -95,15 +96,17 @@ public String toString() { "credentials", credentials, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceAirtableAuthentication credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -115,12 +118,14 @@ public Builder credentials(Optional cred this.credentials = credentials; return this; } - + public SourceAirtable build() { + return new SourceAirtable( credentials); } + private static final LazySingletonValue> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java index 6f18bf901..b2d31f81d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAirtable.java @@ -14,7 +14,7 @@ public enum SourceAirtableAirtable { @JsonValue private final String value; - private SourceAirtableAirtable(String value) { + SourceAirtableAirtable(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java index bfa1a673a..a3d6975c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceAirtableAuthMethod { @JsonValue private final String value; - private SourceAirtableAuthMethod(String value) { + SourceAirtableAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java index 4703a49bd..402f8b2cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceAirtableAuthentication._Deserializer.class) public class SourceAirtableAuthentication { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceAirtableAuthentication other = (SourceAirtableAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtableOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableOAuth20.java index f830f5a0c..8be3092f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableOAuth20.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceAirtableOAuth20 { +public class SourceAirtableOAuth20 { /** * Access Token for making authenticated requests. */ @@ -27,6 +26,7 @@ public class SourceAirtableOAuth20 { @JsonProperty("access_token") private Optional accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_method") private Optional authMethod; @@ -80,7 +80,8 @@ public SourceAirtableOAuth20( String clientId, String clientSecret, String refreshToken) { - this(Optional.empty(), clientId, clientSecret, refreshToken, Optional.empty()); + this(Optional.empty(), clientId, clientSecret, + refreshToken, Optional.empty()); } /** @@ -129,9 +130,10 @@ public Optional tokenExpiryDate() { return tokenExpiryDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -142,6 +144,7 @@ public SourceAirtableOAuth20 withAccessToken(String accessToken) { return this; } + /** * Access Token for making authenticated requests. */ @@ -187,6 +190,7 @@ public SourceAirtableOAuth20 withTokenExpiryDate(OffsetDateTime tokenExpiryDate) return this; } + /** * The date-time when the access token should be refreshed. */ @@ -196,7 +200,6 @@ public SourceAirtableOAuth20 withTokenExpiryDate(Optional tokenE return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -207,23 +210,19 @@ public boolean equals(java.lang.Object o) { } SourceAirtableOAuth20 other = (SourceAirtableOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tokenExpiryDate, other.tokenExpiryDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tokenExpiryDate, other.tokenExpiryDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authMethod, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + return Utils.enhancedHash( + accessToken, authMethod, clientId, + clientSecret, refreshToken, tokenExpiryDate); } @Override @@ -236,23 +235,25 @@ public String toString() { "refreshToken", refreshToken, "tokenExpiryDate", tokenExpiryDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accessToken = Optional.empty(); - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Optional tokenExpiryDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -271,6 +272,7 @@ public Builder accessToken(Optional accessToken) { return this; } + /** * The client ID of the Airtable developer application. */ @@ -280,6 +282,7 @@ public Builder clientId(String clientId) { return this; } + /** * The client secret of the Airtable developer application. */ @@ -289,6 +292,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The key to refresh the expired access token. */ @@ -298,6 +302,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * The date-time when the access token should be refreshed. */ @@ -315,16 +320,15 @@ public Builder tokenExpiryDate(Optional tokenExpiryDate) { this.tokenExpiryDate = tokenExpiryDate; return this; } - + public SourceAirtableOAuth20 build() { + return new SourceAirtableOAuth20( - accessToken, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + accessToken, clientId, clientSecret, + refreshToken, tokenExpiryDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java index 9f332ce7e..9b646e69a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtablePersonalAccessToken.java @@ -14,17 +14,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceAirtablePersonalAccessToken { +public class SourceAirtablePersonalAccessToken { /** - * The Personal Access Token for the Airtable account. See the <a href="https://airtable.com/developers/web/guides/personal-access-tokens">Support Guide</a> for more information on how to obtain this token. + * The Personal Access Token for the Airtable account. See the Support Guide for more + * information on how to obtain this token. */ @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_method") private Optional authMethod; @@ -38,7 +40,9 @@ public SourceAirtablePersonalAccessToken( } /** - * The Personal Access Token for the Airtable account. See the <a href="https://airtable.com/developers/web/guides/personal-access-tokens">Support Guide</a> for more information on how to obtain this token. + * The Personal Access Token for the Airtable account. See the Support Guide for more + * information on how to obtain this token. */ @JsonIgnore public String apiKey() { @@ -51,12 +55,15 @@ public Optional authMethod() { return (Optional) authMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Personal Access Token for the Airtable account. See the <a href="https://airtable.com/developers/web/guides/personal-access-tokens">Support Guide</a> for more information on how to obtain this token. + * The Personal Access Token for the Airtable account. See the Support Guide for more + * information on how to obtain this token. */ public SourceAirtablePersonalAccessToken withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -64,7 +71,6 @@ public SourceAirtablePersonalAccessToken withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +81,14 @@ public boolean equals(java.lang.Object o) { } SourceAirtablePersonalAccessToken other = (SourceAirtablePersonalAccessToken) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.authMethod, other.authMethod); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.authMethod, other.authMethod); } @Override public int hashCode() { - return Objects.hash( - apiKey, - authMethod); + return Utils.enhancedHash( + apiKey, authMethod); } @Override @@ -92,29 +97,35 @@ public String toString() { "apiKey", apiKey, "authMethod", authMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * The Personal Access Token for the Airtable account. See the <a href="https://airtable.com/developers/web/guides/personal-access-tokens">Support Guide</a> for more information on how to obtain this token. + * The Personal Access Token for the Airtable account. See the Support Guide for more + * information on how to obtain this token. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceAirtablePersonalAccessToken build() { + return new SourceAirtablePersonalAccessToken( apiKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java index 70dfb31da..0d0101a71 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAirtableSchemasAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceAirtableSchemasAuthMethod { @JsonValue private final String value; - private SourceAirtableSchemasAuthMethod(String value) { + SourceAirtableSchemasAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAkeneo.java b/src/main/java/com/airbyte/api/models/shared/SourceAkeneo.java index 9ea9bd319..d61cde25b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAkeneo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAkeneo.java @@ -13,14 +13,15 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceAkeneo { @JsonProperty("api_username") private String apiUsername; + @JsonProperty("client_id") private String clientId; @@ -30,13 +31,16 @@ public class SourceAkeneo { @JsonProperty("host") private String host; + @JsonProperty("password") private String password; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("secret") private Optional secret; + @JsonProperty("sourceType") private Akeneo sourceType; @@ -65,7 +69,8 @@ public SourceAkeneo( String clientId, String host, String password) { - this(apiUsername, clientId, host, password, Optional.empty()); + this(apiUsername, clientId, host, + password, Optional.empty()); } @JsonIgnore @@ -101,9 +106,10 @@ public Akeneo sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceAkeneo withApiUsername(String apiUsername) { Utils.checkNotNull(apiUsername, "apiUsername"); @@ -138,13 +144,13 @@ public SourceAkeneo withSecret(String secret) { return this; } + public SourceAkeneo withSecret(Optional secret) { Utils.checkNotNull(secret, "secret"); this.secret = secret; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,23 +161,19 @@ public boolean equals(java.lang.Object o) { } SourceAkeneo other = (SourceAkeneo) o; return - Objects.deepEquals(this.apiUsername, other.apiUsername) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.secret, other.secret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiUsername, other.apiUsername) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.secret, other.secret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiUsername, - clientId, - host, - password, - secret, - sourceType); + return Utils.enhancedHash( + apiUsername, clientId, host, + password, secret, sourceType); } @Override @@ -184,35 +186,39 @@ public String toString() { "secret", secret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiUsername; - + private String clientId; - + private String host; - + private String password; - + private Optional secret = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder apiUsername(String apiUsername) { Utils.checkNotNull(apiUsername, "apiUsername"); this.apiUsername = apiUsername; return this; } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + /** * https://cb8715249e.trial.akeneo.cloud */ @@ -222,12 +228,14 @@ public Builder host(String host) { return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = password; return this; } + public Builder secret(String secret) { Utils.checkNotNull(secret, "secret"); this.secret = Optional.ofNullable(secret); @@ -239,16 +247,15 @@ public Builder secret(Optional secret) { this.secret = secret; return this; } - + public SourceAkeneo build() { + return new SourceAkeneo( - apiUsername, - clientId, - host, - password, - secret); + apiUsername, clientId, host, + password, secret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java b/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java index 18ef5a070..c68c33eb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAlgolia.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceAlgolia { @JsonProperty("api_key") @@ -36,15 +36,18 @@ public class SourceAlgolia { private Optional objectId; /** - * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + * Search query to be used with indexes_query stream with format defined in + * `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("search_query") private Optional searchQuery; + @JsonProperty("sourceType") private Algolia sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -72,7 +75,8 @@ public SourceAlgolia( String apiKey, String applicationId, OffsetDateTime startDate) { - this(apiKey, applicationId, Optional.empty(), Optional.empty(), startDate); + this(apiKey, applicationId, Optional.empty(), + Optional.empty(), startDate); } @JsonIgnore @@ -97,7 +101,8 @@ public Optional objectId() { } /** - * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + * Search query to be used with indexes_query stream with format defined in + * `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` */ @JsonIgnore public Optional searchQuery() { @@ -114,9 +119,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceAlgolia withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -142,6 +148,7 @@ public SourceAlgolia withObjectId(String objectId) { return this; } + /** * Object ID within index for search queries */ @@ -152,7 +159,8 @@ public SourceAlgolia withObjectId(Optional objectId) { } /** - * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + * Search query to be used with indexes_query stream with format defined in + * `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` */ public SourceAlgolia withSearchQuery(String searchQuery) { Utils.checkNotNull(searchQuery, "searchQuery"); @@ -160,8 +168,10 @@ public SourceAlgolia withSearchQuery(String searchQuery) { return this; } + /** - * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + * Search query to be used with indexes_query stream with format defined in + * `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` */ public SourceAlgolia withSearchQuery(Optional searchQuery) { Utils.checkNotNull(searchQuery, "searchQuery"); @@ -175,7 +185,6 @@ public SourceAlgolia withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -186,23 +195,19 @@ public boolean equals(java.lang.Object o) { } SourceAlgolia other = (SourceAlgolia) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.applicationId, other.applicationId) && - Objects.deepEquals(this.objectId, other.objectId) && - Objects.deepEquals(this.searchQuery, other.searchQuery) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.applicationId, other.applicationId) && + Utils.enhancedDeepEquals(this.objectId, other.objectId) && + Utils.enhancedDeepEquals(this.searchQuery, other.searchQuery) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - applicationId, - objectId, - searchQuery, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, applicationId, objectId, + searchQuery, sourceType, startDate); } @Override @@ -215,29 +220,32 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String applicationId; - + private Optional objectId; - + private Optional searchQuery; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * The application ID for your application found in settings */ @@ -247,6 +255,7 @@ public Builder applicationId(String applicationId) { return this; } + /** * Object ID within index for search queries */ @@ -265,8 +274,10 @@ public Builder objectId(Optional objectId) { return this; } + /** - * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + * Search query to be used with indexes_query stream with format defined in + * `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` */ public Builder searchQuery(String searchQuery) { Utils.checkNotNull(searchQuery, "searchQuery"); @@ -275,7 +286,8 @@ public Builder searchQuery(String searchQuery) { } /** - * Search query to be used with indexes_query stream with format defined in `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` + * Search query to be used with indexes_query stream with format defined in + * `https://www.algolia.com/doc/rest-api/search/#tag/Search/operation/searchSingleIndex` */ public Builder searchQuery(Optional searchQuery) { Utils.checkNotNull(searchQuery, "searchQuery"); @@ -283,12 +295,13 @@ public Builder searchQuery(Optional searchQuery) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceAlgolia build() { if (objectId == null) { objectId = _SINGLETON_VALUE_ObjectId.value(); @@ -296,14 +309,13 @@ public SourceAlgolia build() { if (searchQuery == null) { searchQuery = _SINGLETON_VALUE_SearchQuery.value(); } + return new SourceAlgolia( - apiKey, - applicationId, - objectId, - searchQuery, - startDate); + apiKey, applicationId, objectId, + searchQuery, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_ObjectId = new LazySingletonValue<>( "object_id", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAlpacaBrokerApi.java b/src/main/java/com/airbyte/api/models/shared/SourceAlpacaBrokerApi.java index b91ebfb39..57e031ab8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAlpacaBrokerApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAlpacaBrokerApi.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceAlpacaBrokerApi { +public class SourceAlpacaBrokerApi { /** * The trading environment, either 'live', 'paper' or 'broker-api.sandbox'. */ @@ -35,15 +34,18 @@ public class SourceAlpacaBrokerApi { private Optional limit; /** - * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account settings. + * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account + * settings. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private AlpacaBrokerApi sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -76,7 +78,8 @@ public SourceAlpacaBrokerApi( public SourceAlpacaBrokerApi( OffsetDateTime startDate, String username) { - this(Optional.empty(), Optional.empty(), Optional.empty(), startDate, username); + this(Optional.empty(), Optional.empty(), Optional.empty(), + startDate, username); } /** @@ -97,7 +100,8 @@ public Optional limit() { } /** - * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account settings. + * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account + * settings. */ @JsonIgnore public Optional password() { @@ -122,9 +126,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The trading environment, either 'live', 'paper' or 'broker-api.sandbox'. @@ -135,6 +140,7 @@ public SourceAlpacaBrokerApi withEnvironment(SourceAlpacaBrokerApiEnvironment en return this; } + /** * The trading environment, either 'live', 'paper' or 'broker-api.sandbox'. */ @@ -153,6 +159,7 @@ public SourceAlpacaBrokerApi withLimit(String limit) { return this; } + /** * Limit for each response objects */ @@ -163,7 +170,8 @@ public SourceAlpacaBrokerApi withLimit(Optional limit) { } /** - * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account settings. + * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account + * settings. */ public SourceAlpacaBrokerApi withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -171,8 +179,10 @@ public SourceAlpacaBrokerApi withPassword(String password) { return this; } + /** - * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account settings. + * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account + * settings. */ public SourceAlpacaBrokerApi withPassword(Optional password) { Utils.checkNotNull(password, "password"); @@ -195,7 +205,6 @@ public SourceAlpacaBrokerApi withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -206,23 +215,19 @@ public boolean equals(java.lang.Object o) { } SourceAlpacaBrokerApi other = (SourceAlpacaBrokerApi) o; return - Objects.deepEquals(this.environment, other.environment) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.environment, other.environment) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - environment, - limit, - password, - sourceType, - startDate, - username); + return Utils.enhancedHash( + environment, limit, password, + sourceType, startDate, username); } @Override @@ -235,23 +240,25 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional environment; - + private Optional limit; - + private Optional password = Optional.empty(); - + private OffsetDateTime startDate; - + private String username; - + private Builder() { // force use of static builder() method } + /** * The trading environment, either 'live', 'paper' or 'broker-api.sandbox'. */ @@ -270,6 +277,7 @@ public Builder environment(Optional return this; } + /** * Limit for each response objects */ @@ -288,8 +296,10 @@ public Builder limit(Optional limit) { return this; } + /** - * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account settings. + * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account + * settings. */ public Builder password(String password) { Utils.checkNotNull(password, "password"); @@ -298,7 +308,8 @@ public Builder password(String password) { } /** - * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account settings. + * Your Alpaca API Secret Key. You can find this in the Alpaca developer web console under your account + * settings. */ public Builder password(Optional password) { Utils.checkNotNull(password, "password"); @@ -306,12 +317,14 @@ public Builder password(Optional password) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * API Key ID for the alpaca market */ @@ -320,7 +333,7 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceAlpacaBrokerApi build() { if (environment == null) { environment = _SINGLETON_VALUE_Environment.value(); @@ -328,14 +341,13 @@ public SourceAlpacaBrokerApi build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } + return new SourceAlpacaBrokerApi( - environment, - limit, - password, - startDate, - username); + environment, limit, password, + startDate, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_Environment = new LazySingletonValue<>( "environment", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAlpacaBrokerApiEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceAlpacaBrokerApiEnvironment.java index 12e7724d6..c2cccdf02 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAlpacaBrokerApiEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAlpacaBrokerApiEnvironment.java @@ -21,7 +21,7 @@ public enum SourceAlpacaBrokerApiEnvironment { @JsonValue private final String value; - private SourceAlpacaBrokerApiEnvironment(String value) { + SourceAlpacaBrokerApiEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAlphaVantage.java b/src/main/java/com/airbyte/api/models/shared/SourceAlphaVantage.java index cc15df2d6..9fca2980b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAlphaVantage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAlphaVantage.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceAlphaVantage { +public class SourceAlphaVantage { /** * Whether to return adjusted data. Only applicable to intraday endpoints. */ @@ -47,6 +46,7 @@ public class SourceAlphaVantage { @JsonProperty("outputsize") private Optional outputsize; + @JsonProperty("sourceType") private AlphaVantage sourceType; @@ -79,7 +79,8 @@ public SourceAlphaVantage( public SourceAlphaVantage( String apiKey, String symbol) { - this(Optional.empty(), apiKey, Optional.empty(), Optional.empty(), symbol); + this(Optional.empty(), apiKey, Optional.empty(), + Optional.empty(), symbol); } /** @@ -129,9 +130,10 @@ public String symbol() { return symbol; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Whether to return adjusted data. Only applicable to intraday endpoints. @@ -142,6 +144,7 @@ public SourceAlphaVantage withAdjusted(boolean adjusted) { return this; } + /** * Whether to return adjusted data. Only applicable to intraday endpoints. */ @@ -169,6 +172,7 @@ public SourceAlphaVantage withInterval(Interval interval) { return this; } + /** * Time-series data point interval. Required for intraday endpoints. */ @@ -187,6 +191,7 @@ public SourceAlphaVantage withOutputsize(OutputSize outputsize) { return this; } + /** * Whether to return full or compact data (the last 100 data points). */ @@ -205,7 +210,6 @@ public SourceAlphaVantage withSymbol(String symbol) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -216,23 +220,19 @@ public boolean equals(java.lang.Object o) { } SourceAlphaVantage other = (SourceAlphaVantage) o; return - Objects.deepEquals(this.adjusted, other.adjusted) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.interval, other.interval) && - Objects.deepEquals(this.outputsize, other.outputsize) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.symbol, other.symbol); + Utils.enhancedDeepEquals(this.adjusted, other.adjusted) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.interval, other.interval) && + Utils.enhancedDeepEquals(this.outputsize, other.outputsize) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.symbol, other.symbol); } @Override public int hashCode() { - return Objects.hash( - adjusted, - apiKey, - interval, - outputsize, - sourceType, - symbol); + return Utils.enhancedHash( + adjusted, apiKey, interval, + outputsize, sourceType, symbol); } @Override @@ -245,23 +245,25 @@ public String toString() { "sourceType", sourceType, "symbol", symbol); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional adjusted; - + private String apiKey; - + private Optional interval; - + private Optional outputsize; - + private String symbol; - + private Builder() { // force use of static builder() method } + /** * Whether to return adjusted data. Only applicable to intraday endpoints. */ @@ -280,6 +282,7 @@ public Builder adjusted(Optional adjusted) { return this; } + /** * API Key */ @@ -289,6 +292,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Time-series data point interval. Required for intraday endpoints. */ @@ -307,6 +311,7 @@ public Builder interval(Optional interval) { return this; } + /** * Whether to return full or compact data (the last 100 data points). */ @@ -325,6 +330,7 @@ public Builder outputsize(Optional outputsize) { return this; } + /** * Stock symbol (with exchange code) */ @@ -333,7 +339,7 @@ public Builder symbol(String symbol) { this.symbol = symbol; return this; } - + public SourceAlphaVantage build() { if (adjusted == null) { adjusted = _SINGLETON_VALUE_Adjusted.value(); @@ -344,14 +350,13 @@ public SourceAlphaVantage build() { if (outputsize == null) { outputsize = _SINGLETON_VALUE_Outputsize.value(); } + return new SourceAlphaVantage( - adjusted, - apiKey, - interval, - outputsize, - symbol); + adjusted, apiKey, interval, + outputsize, symbol); } + private static final LazySingletonValue> _SINGLETON_VALUE_Adjusted = new LazySingletonValue<>( "adjusted", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAds.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAds.java index 73fe4b4ee..d957825de 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAds.java @@ -17,9 +17,9 @@ import java.lang.SuppressWarnings; import java.time.LocalDate; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceAmazonAds { @JsonInclude(Include.NON_ABSENT) @@ -27,13 +27,17 @@ public class SourceAmazonAds { private Optional authType; /** - * The client ID of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client ID of your Amazon Ads developer application. See the docs + * for more information. */ @JsonProperty("client_id") private String clientId; /** - * The client secret of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client secret of your Amazon Ads developer application. See the docs + * for more information. */ @JsonProperty("client_secret") private String clientSecret; @@ -46,37 +50,57 @@ public class SourceAmazonAds { private Optional lookBackWindow; /** - * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be + * selected if they match the Profile ID OR the Marketplace ID. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("marketplace_ids") private Optional> marketplaceIds; /** - * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with seller and vendor type, profiles with agency type will be ignored. See <a href="https://advertising.amazon.com/API/docs/en-us/concepts/authorization/profiles">docs</a> for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * The number of worker threads to use for the sync. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("num_workers") + private Optional numWorkers; + + /** + * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with + * seller and vendor type, profiles with agency type will be ignored. See docs for + * more details. + * + *

    Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID + * OR the Marketplace ID. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("profiles") private Optional> profiles; /** - * Amazon Ads refresh token. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens">docs</a> for more information on how to obtain this token. + * Amazon Ads refresh token. See the docs for + * more information on how to obtain this token. */ @JsonProperty("refresh_token") private String refreshToken; /** - * Region to pull data from (EU/NA/FE). See <a href="https://advertising.amazon.com/API/docs/en-us/info/api-overview#api-endpoints">docs</a> for more details. + * Region to pull data from (EU/NA/FE). See docs for + * more details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("region") private Optional region; + @JsonProperty("sourceType") private SourceAmazonAdsAmazonAds sourceType; /** - * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format + * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD + * format */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -88,6 +112,7 @@ public SourceAmazonAds( @JsonProperty("client_secret") String clientSecret, @JsonProperty("look_back_window") Optional lookBackWindow, @JsonProperty("marketplace_ids") Optional> marketplaceIds, + @JsonProperty("num_workers") Optional numWorkers, @JsonProperty("profiles") Optional> profiles, @JsonProperty("refresh_token") String refreshToken, @JsonProperty("region") Optional region, @@ -96,6 +121,7 @@ public SourceAmazonAds( Utils.checkNotNull(clientSecret, "clientSecret"); Utils.checkNotNull(lookBackWindow, "lookBackWindow"); Utils.checkNotNull(marketplaceIds, "marketplaceIds"); + Utils.checkNotNull(numWorkers, "numWorkers"); Utils.checkNotNull(profiles, "profiles"); Utils.checkNotNull(refreshToken, "refreshToken"); Utils.checkNotNull(region, "region"); @@ -105,6 +131,7 @@ public SourceAmazonAds( this.clientSecret = clientSecret; this.lookBackWindow = lookBackWindow; this.marketplaceIds = marketplaceIds; + this.numWorkers = numWorkers; this.profiles = profiles; this.refreshToken = refreshToken; this.region = region; @@ -116,7 +143,9 @@ public SourceAmazonAds( String clientId, String clientSecret, String refreshToken) { - this(clientId, clientSecret, Optional.empty(), Optional.empty(), Optional.empty(), refreshToken, Optional.empty(), Optional.empty()); + this(clientId, clientSecret, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + refreshToken, Optional.empty(), Optional.empty()); } @SuppressWarnings("unchecked") @@ -126,7 +155,9 @@ public Optional authType() { } /** - * The client ID of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client ID of your Amazon Ads developer application. See the docs + * for more information. */ @JsonIgnore public String clientId() { @@ -134,7 +165,9 @@ public String clientId() { } /** - * The client secret of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client secret of your Amazon Ads developer application. See the docs + * for more information. */ @JsonIgnore public String clientSecret() { @@ -150,7 +183,8 @@ public Optional lookBackWindow() { } /** - * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be + * selected if they match the Profile ID OR the Marketplace ID. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -159,7 +193,21 @@ public Optional> marketplaceIds() { } /** - * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with seller and vendor type, profiles with agency type will be ignored. See <a href="https://advertising.amazon.com/API/docs/en-us/concepts/authorization/profiles">docs</a> for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * The number of worker threads to use for the sync. + */ + @JsonIgnore + public Optional numWorkers() { + return numWorkers; + } + + /** + * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with + * seller and vendor type, profiles with agency type will be ignored. See docs for + * more details. + * + *

    Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID + * OR the Marketplace ID. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -168,7 +216,9 @@ public Optional> profiles() { } /** - * Amazon Ads refresh token. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens">docs</a> for more information on how to obtain this token. + * Amazon Ads refresh token. See the docs for + * more information on how to obtain this token. */ @JsonIgnore public String refreshToken() { @@ -176,7 +226,9 @@ public String refreshToken() { } /** - * Region to pull data from (EU/NA/FE). See <a href="https://advertising.amazon.com/API/docs/en-us/info/api-overview#api-endpoints">docs</a> for more details. + * Region to pull data from (EU/NA/FE). See docs for + * more details. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -190,19 +242,23 @@ public SourceAmazonAdsAmazonAds sourceType() { } /** - * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format + * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD + * format */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The client ID of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client ID of your Amazon Ads developer application. See the docs + * for more information. */ public SourceAmazonAds withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -211,7 +267,9 @@ public SourceAmazonAds withClientId(String clientId) { } /** - * The client secret of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client secret of your Amazon Ads developer application. See the docs + * for more information. */ public SourceAmazonAds withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -228,6 +286,7 @@ public SourceAmazonAds withLookBackWindow(long lookBackWindow) { return this; } + /** * The amount of days to go back in time to get the updated data from Amazon Ads */ @@ -238,7 +297,8 @@ public SourceAmazonAds withLookBackWindow(Optional lookBackWindow) { } /** - * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be + * selected if they match the Profile ID OR the Marketplace ID. */ public SourceAmazonAds withMarketplaceIds(List marketplaceIds) { Utils.checkNotNull(marketplaceIds, "marketplaceIds"); @@ -246,8 +306,10 @@ public SourceAmazonAds withMarketplaceIds(List marketplaceIds) { return this; } + /** - * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be + * selected if they match the Profile ID OR the Marketplace ID. */ public SourceAmazonAds withMarketplaceIds(Optional> marketplaceIds) { Utils.checkNotNull(marketplaceIds, "marketplaceIds"); @@ -256,7 +318,32 @@ public SourceAmazonAds withMarketplaceIds(Optional> marke } /** - * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with seller and vendor type, profiles with agency type will be ignored. See <a href="https://advertising.amazon.com/API/docs/en-us/concepts/authorization/profiles">docs</a> for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * The number of worker threads to use for the sync. + */ + public SourceAmazonAds withNumWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + + /** + * The number of worker threads to use for the sync. + */ + public SourceAmazonAds withNumWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + + /** + * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with + * seller and vendor type, profiles with agency type will be ignored. See docs for + * more details. + * + *

    Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID + * OR the Marketplace ID. */ public SourceAmazonAds withProfiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); @@ -264,8 +351,15 @@ public SourceAmazonAds withProfiles(List profiles) { return this; } + /** - * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with seller and vendor type, profiles with agency type will be ignored. See <a href="https://advertising.amazon.com/API/docs/en-us/concepts/authorization/profiles">docs</a> for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with + * seller and vendor type, profiles with agency type will be ignored. See docs for + * more details. + * + *

    Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID + * OR the Marketplace ID. */ public SourceAmazonAds withProfiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); @@ -274,7 +368,9 @@ public SourceAmazonAds withProfiles(Optional> profiles) { } /** - * Amazon Ads refresh token. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens">docs</a> for more information on how to obtain this token. + * Amazon Ads refresh token. See the docs for + * more information on how to obtain this token. */ public SourceAmazonAds withRefreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -283,7 +379,9 @@ public SourceAmazonAds withRefreshToken(String refreshToken) { } /** - * Region to pull data from (EU/NA/FE). See <a href="https://advertising.amazon.com/API/docs/en-us/info/api-overview#api-endpoints">docs</a> for more details. + * Region to pull data from (EU/NA/FE). See docs for + * more details. */ public SourceAmazonAds withRegion(Region region) { Utils.checkNotNull(region, "region"); @@ -291,8 +389,11 @@ public SourceAmazonAds withRegion(Region region) { return this; } + /** - * Region to pull data from (EU/NA/FE). See <a href="https://advertising.amazon.com/API/docs/en-us/info/api-overview#api-endpoints">docs</a> for more details. + * Region to pull data from (EU/NA/FE). See docs for + * more details. */ public SourceAmazonAds withRegion(Optional region) { Utils.checkNotNull(region, "region"); @@ -301,7 +402,8 @@ public SourceAmazonAds withRegion(Optional region) { } /** - * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format + * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD + * format */ public SourceAmazonAds withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -309,8 +411,10 @@ public SourceAmazonAds withStartDate(LocalDate startDate) { return this; } + /** - * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format + * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD + * format */ public SourceAmazonAds withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -318,7 +422,6 @@ public SourceAmazonAds withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -329,31 +432,26 @@ public boolean equals(java.lang.Object o) { } SourceAmazonAds other = (SourceAmazonAds) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.lookBackWindow, other.lookBackWindow) && - Objects.deepEquals(this.marketplaceIds, other.marketplaceIds) && - Objects.deepEquals(this.profiles, other.profiles) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.lookBackWindow, other.lookBackWindow) && + Utils.enhancedDeepEquals(this.marketplaceIds, other.marketplaceIds) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.profiles, other.profiles) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, - lookBackWindow, - marketplaceIds, - profiles, - refreshToken, - region, - sourceType, - startDate); + return Utils.enhancedHash( + authType, clientId, clientSecret, + lookBackWindow, marketplaceIds, numWorkers, + profiles, refreshToken, region, + sourceType, startDate); } @Override @@ -364,37 +462,44 @@ public String toString() { "clientSecret", clientSecret, "lookBackWindow", lookBackWindow, "marketplaceIds", marketplaceIds, + "numWorkers", numWorkers, "profiles", profiles, "refreshToken", refreshToken, "region", region, "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional lookBackWindow; - + private Optional> marketplaceIds = Optional.empty(); - + + private Optional numWorkers; + private Optional> profiles = Optional.empty(); - + private String refreshToken; - + private Optional region; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The client ID of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client ID of your Amazon Ads developer application. See the docs + * for more information. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -402,8 +507,11 @@ public Builder clientId(String clientId) { return this; } + /** - * The client secret of your Amazon Ads developer application. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens#retrieve-your-client-id-and-client-secret">docs</a> for more information. + * The client secret of your Amazon Ads developer application. See the docs + * for more information. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -411,6 +519,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The amount of days to go back in time to get the updated data from Amazon Ads */ @@ -429,8 +538,10 @@ public Builder lookBackWindow(Optional lookBackWindow) { return this; } + /** - * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be + * selected if they match the Profile ID OR the Marketplace ID. */ public Builder marketplaceIds(List marketplaceIds) { Utils.checkNotNull(marketplaceIds, "marketplaceIds"); @@ -439,7 +550,8 @@ public Builder marketplaceIds(List marketplaceIds) { } /** - * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * Marketplace IDs you want to fetch data for. Note: If Profile IDs are also selected, profiles will be + * selected if they match the Profile ID OR the Marketplace ID. */ public Builder marketplaceIds(Optional> marketplaceIds) { Utils.checkNotNull(marketplaceIds, "marketplaceIds"); @@ -447,8 +559,34 @@ public Builder marketplaceIds(Optional> marketplaceIds) { return this; } + + /** + * The number of worker threads to use for the sync. + */ + public Builder numWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + /** - * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with seller and vendor type, profiles with agency type will be ignored. See <a href="https://advertising.amazon.com/API/docs/en-us/concepts/authorization/profiles">docs</a> for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * The number of worker threads to use for the sync. + */ + public Builder numWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + + + /** + * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with + * seller and vendor type, profiles with agency type will be ignored. See docs for + * more details. + * + *

    Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID + * OR the Marketplace ID. */ public Builder profiles(List profiles) { Utils.checkNotNull(profiles, "profiles"); @@ -457,7 +595,13 @@ public Builder profiles(List profiles) { } /** - * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with seller and vendor type, profiles with agency type will be ignored. See <a href="https://advertising.amazon.com/API/docs/en-us/concepts/authorization/profiles">docs</a> for more details. Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID OR the Marketplace ID. + * Profile IDs you want to fetch data for. The Amazon Ads source connector supports only profiles with + * seller and vendor type, profiles with agency type will be ignored. See docs for + * more details. + * + *

    Note: If Marketplace IDs are also selected, profiles will be selected if they match the Profile ID + * OR the Marketplace ID. */ public Builder profiles(Optional> profiles) { Utils.checkNotNull(profiles, "profiles"); @@ -465,8 +609,11 @@ public Builder profiles(Optional> profiles) { return this; } + /** - * Amazon Ads refresh token. See the <a href="https://advertising.amazon.com/API/docs/en-us/get-started/generate-api-tokens">docs</a> for more information on how to obtain this token. + * Amazon Ads refresh token. See the docs for + * more information on how to obtain this token. */ public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -474,8 +621,11 @@ public Builder refreshToken(String refreshToken) { return this; } + /** - * Region to pull data from (EU/NA/FE). See <a href="https://advertising.amazon.com/API/docs/en-us/info/api-overview#api-endpoints">docs</a> for more details. + * Region to pull data from (EU/NA/FE). See docs for + * more details. */ public Builder region(Region region) { Utils.checkNotNull(region, "region"); @@ -484,7 +634,9 @@ public Builder region(Region region) { } /** - * Region to pull data from (EU/NA/FE). See <a href="https://advertising.amazon.com/API/docs/en-us/info/api-overview#api-endpoints">docs</a> for more details. + * Region to pull data from (EU/NA/FE). See docs for + * more details. */ public Builder region(Optional region) { Utils.checkNotNull(region, "region"); @@ -492,8 +644,10 @@ public Builder region(Optional region) { return this; } + /** - * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format + * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD + * format */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -502,32 +656,33 @@ public Builder startDate(LocalDate startDate) { } /** - * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD format + * The Start date for collecting reports, should not be more than 60 days in the past. In YYYY-MM-DD + * format */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceAmazonAds build() { if (lookBackWindow == null) { lookBackWindow = _SINGLETON_VALUE_LookBackWindow.value(); } + if (numWorkers == null) { + numWorkers = _SINGLETON_VALUE_NumWorkers.value(); + } if (region == null) { region = _SINGLETON_VALUE_Region.value(); } + return new SourceAmazonAds( - clientId, - clientSecret, - lookBackWindow, - marketplaceIds, - profiles, - refreshToken, - region, - startDate); + clientId, clientSecret, lookBackWindow, + marketplaceIds, numWorkers, profiles, + refreshToken, region, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", @@ -540,6 +695,12 @@ public SourceAmazonAds build() { "3", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = + new LazySingletonValue<>( + "num_workers", + "10", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_Region = new LazySingletonValue<>( "region", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java index b145b0026..a51165f8a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAmazonAds.java @@ -14,7 +14,7 @@ public enum SourceAmazonAdsAmazonAds { @JsonValue private final String value; - private SourceAmazonAdsAmazonAds(String value) { + SourceAmazonAdsAmazonAds(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java index b0355addb..37b53cba9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonAdsAuthType.java @@ -14,7 +14,7 @@ public enum SourceAmazonAdsAuthType { @JsonValue private final String value; - private SourceAmazonAdsAuthType(String value) { + SourceAmazonAdsAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java index 50f71afba..8bc8bbe8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartner.java @@ -18,11 +18,10 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceAmazonSellerPartner { +public class SourceAmazonSellerPartner { /** * Type of the Account you're going to authorize the Airbyte application by */ @@ -37,6 +36,7 @@ public class SourceAmazonSellerPartner { @JsonProperty("app_id") private Optional appId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -49,10 +49,15 @@ public class SourceAmazonSellerPartner { private Optional awsEnvironment; /** - * The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. + * The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 + * days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. * - *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow syncing and increase the chance of hitting rate limits. - * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data per request, speeding up syncing and reducing the number of API calls, which minimizes strain on rate limits. + *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks + * per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow + * syncing and increase the chance of hitting rate limits. + * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data + * per request, speeding up syncing and reducing the number of API calls, which minimizes strain on + * rate limits. * *

    Select a step size that matches your data volume to optimize syncing speed and API performance. */ @@ -73,7 +78,22 @@ public class SourceAmazonSellerPartner { private String lwaClientSecret; /** - * For syncs spanning a large date range, this option is used to request data in a smaller fixed window to improve sync reliability. This time window can be configured granularly by day. + * The maximum number of concurrent asynchronous job requests that can be active at a time. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("max_async_job_count") + private Optional maxAsyncJobCount; + + /** + * The number of workers to use for the connector when syncing concurrently. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("num_workers") + private Optional numWorkers; + + /** + * For syncs spanning a large date range, this option is used to request data in a smaller fixed window + * to improve sync reliability. This time window can be configured granularly by day. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("period_in_days") @@ -93,14 +113,17 @@ public class SourceAmazonSellerPartner { private Optional region; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be + * replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("replication_end_date") private Optional replicationEndDate; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago + * from today will be used. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("replication_start_date") @@ -113,11 +136,15 @@ public class SourceAmazonSellerPartner { @JsonProperty("report_options_list") private Optional> reportOptionsList; + @JsonProperty("sourceType") private SourceAmazonSellerPartnerAmazonSellerPartner sourceType; /** - * For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See <a href="https://docs.airbyte.com/integrations/sources/amazon-seller-partner#limitations--troubleshooting" target="_blank">Troubleshooting</a> section for more details + * For report based streams with known amount of requests per time period, this option will use waiting + * time between requests to avoid fatal statuses in reports. See Troubleshooting + * section for more details */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("wait_to_avoid_fatal_errors") @@ -131,6 +158,8 @@ public SourceAmazonSellerPartner( @JsonProperty("financial_events_step") Optional financialEventsStep, @JsonProperty("lwa_app_id") String lwaAppId, @JsonProperty("lwa_client_secret") String lwaClientSecret, + @JsonProperty("max_async_job_count") Optional maxAsyncJobCount, + @JsonProperty("num_workers") Optional numWorkers, @JsonProperty("period_in_days") Optional periodInDays, @JsonProperty("refresh_token") String refreshToken, @JsonProperty("region") Optional region, @@ -144,6 +173,8 @@ public SourceAmazonSellerPartner( Utils.checkNotNull(financialEventsStep, "financialEventsStep"); Utils.checkNotNull(lwaAppId, "lwaAppId"); Utils.checkNotNull(lwaClientSecret, "lwaClientSecret"); + Utils.checkNotNull(maxAsyncJobCount, "maxAsyncJobCount"); + Utils.checkNotNull(numWorkers, "numWorkers"); Utils.checkNotNull(periodInDays, "periodInDays"); Utils.checkNotNull(refreshToken, "refreshToken"); Utils.checkNotNull(region, "region"); @@ -158,6 +189,8 @@ public SourceAmazonSellerPartner( this.financialEventsStep = financialEventsStep; this.lwaAppId = lwaAppId; this.lwaClientSecret = lwaClientSecret; + this.maxAsyncJobCount = maxAsyncJobCount; + this.numWorkers = numWorkers; this.periodInDays = periodInDays; this.refreshToken = refreshToken; this.region = region; @@ -172,7 +205,11 @@ public SourceAmazonSellerPartner( String lwaAppId, String lwaClientSecret, String refreshToken) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), lwaAppId, lwaClientSecret, Optional.empty(), refreshToken, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), lwaAppId, lwaClientSecret, + Optional.empty(), Optional.empty(), Optional.empty(), + refreshToken, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -208,10 +245,15 @@ public Optional awsEnvironment() { } /** - * The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. + * The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 + * days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. * - *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow syncing and increase the chance of hitting rate limits. - * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data per request, speeding up syncing and reducing the number of API calls, which minimizes strain on rate limits. + *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks + * per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow + * syncing and increase the chance of hitting rate limits. + * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data + * per request, speeding up syncing and reducing the number of API calls, which minimizes strain on + * rate limits. * *

    Select a step size that matches your data volume to optimize syncing speed and API performance. */ @@ -238,7 +280,24 @@ public String lwaClientSecret() { } /** - * For syncs spanning a large date range, this option is used to request data in a smaller fixed window to improve sync reliability. This time window can be configured granularly by day. + * The maximum number of concurrent asynchronous job requests that can be active at a time. + */ + @JsonIgnore + public Optional maxAsyncJobCount() { + return maxAsyncJobCount; + } + + /** + * The number of workers to use for the connector when syncing concurrently. + */ + @JsonIgnore + public Optional numWorkers() { + return numWorkers; + } + + /** + * For syncs spanning a large date range, this option is used to request data in a smaller fixed window + * to improve sync reliability. This time window can be configured granularly by day. */ @JsonIgnore public Optional periodInDays() { @@ -263,7 +322,8 @@ public Optional region() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be + * replicated. */ @JsonIgnore public Optional replicationEndDate() { @@ -271,7 +331,9 @@ public Optional replicationEndDate() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago + * from today will be used. */ @JsonIgnore public Optional replicationStartDate() { @@ -293,16 +355,20 @@ public SourceAmazonSellerPartnerAmazonSellerPartner sourceType() { } /** - * For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See <a href="https://docs.airbyte.com/integrations/sources/amazon-seller-partner#limitations--troubleshooting" target="_blank">Troubleshooting</a> section for more details + * For report based streams with known amount of requests per time period, this option will use waiting + * time between requests to avoid fatal statuses in reports. See Troubleshooting + * section for more details */ @JsonIgnore public Optional waitToAvoidFatalErrors() { return waitToAvoidFatalErrors; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Type of the Account you're going to authorize the Airbyte application by @@ -313,6 +379,7 @@ public SourceAmazonSellerPartner withAccountType(AWSSellerPartnerAccountType acc return this; } + /** * Type of the Account you're going to authorize the Airbyte application by */ @@ -331,6 +398,7 @@ public SourceAmazonSellerPartner withAppId(String appId) { return this; } + /** * Your Amazon Application ID. */ @@ -349,6 +417,7 @@ public SourceAmazonSellerPartner withAwsEnvironment(AWSEnvironment awsEnvironmen return this; } + /** * Select the AWS Environment. */ @@ -359,10 +428,15 @@ public SourceAmazonSellerPartner withAwsEnvironment(Optional- **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow syncing and increase the chance of hitting rate limits. - * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data per request, speeding up syncing and reducing the number of API calls, which minimizes strain on rate limits. + *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks + * per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow + * syncing and increase the chance of hitting rate limits. + * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data + * per request, speeding up syncing and reducing the number of API calls, which minimizes strain on + * rate limits. * *

    Select a step size that matches your data volume to optimize syncing speed and API performance. */ @@ -372,11 +446,17 @@ public SourceAmazonSellerPartner withFinancialEventsStep(FinancialEventsStepSize return this; } + /** - * The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. + * The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 + * days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. * - *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow syncing and increase the chance of hitting rate limits. - * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data per request, speeding up syncing and reducing the number of API calls, which minimizes strain on rate limits. + *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks + * per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow + * syncing and increase the chance of hitting rate limits. + * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data + * per request, speeding up syncing and reducing the number of API calls, which minimizes strain on + * rate limits. * *

    Select a step size that matches your data volume to optimize syncing speed and API performance. */ @@ -405,7 +485,46 @@ public SourceAmazonSellerPartner withLwaClientSecret(String lwaClientSecret) { } /** - * For syncs spanning a large date range, this option is used to request data in a smaller fixed window to improve sync reliability. This time window can be configured granularly by day. + * The maximum number of concurrent asynchronous job requests that can be active at a time. + */ + public SourceAmazonSellerPartner withMaxAsyncJobCount(long maxAsyncJobCount) { + Utils.checkNotNull(maxAsyncJobCount, "maxAsyncJobCount"); + this.maxAsyncJobCount = Optional.ofNullable(maxAsyncJobCount); + return this; + } + + + /** + * The maximum number of concurrent asynchronous job requests that can be active at a time. + */ + public SourceAmazonSellerPartner withMaxAsyncJobCount(Optional maxAsyncJobCount) { + Utils.checkNotNull(maxAsyncJobCount, "maxAsyncJobCount"); + this.maxAsyncJobCount = maxAsyncJobCount; + return this; + } + + /** + * The number of workers to use for the connector when syncing concurrently. + */ + public SourceAmazonSellerPartner withNumWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + + /** + * The number of workers to use for the connector when syncing concurrently. + */ + public SourceAmazonSellerPartner withNumWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + + /** + * For syncs spanning a large date range, this option is used to request data in a smaller fixed window + * to improve sync reliability. This time window can be configured granularly by day. */ public SourceAmazonSellerPartner withPeriodInDays(long periodInDays) { Utils.checkNotNull(periodInDays, "periodInDays"); @@ -413,8 +532,10 @@ public SourceAmazonSellerPartner withPeriodInDays(long periodInDays) { return this; } + /** - * For syncs spanning a large date range, this option is used to request data in a smaller fixed window to improve sync reliability. This time window can be configured granularly by day. + * For syncs spanning a large date range, this option is used to request data in a smaller fixed window + * to improve sync reliability. This time window can be configured granularly by day. */ public SourceAmazonSellerPartner withPeriodInDays(Optional periodInDays) { Utils.checkNotNull(periodInDays, "periodInDays"); @@ -440,6 +561,7 @@ public SourceAmazonSellerPartner withRegion(AWSRegion region) { return this; } + /** * Select the AWS Region. */ @@ -450,7 +572,8 @@ public SourceAmazonSellerPartner withRegion(Optional region } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be + * replicated. */ public SourceAmazonSellerPartner withReplicationEndDate(OffsetDateTime replicationEndDate) { Utils.checkNotNull(replicationEndDate, "replicationEndDate"); @@ -458,8 +581,10 @@ public SourceAmazonSellerPartner withReplicationEndDate(OffsetDateTime replicati return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be + * replicated. */ public SourceAmazonSellerPartner withReplicationEndDate(Optional replicationEndDate) { Utils.checkNotNull(replicationEndDate, "replicationEndDate"); @@ -468,7 +593,9 @@ public SourceAmazonSellerPartner withReplicationEndDate(Optional } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago + * from today will be used. */ public SourceAmazonSellerPartner withReplicationStartDate(OffsetDateTime replicationStartDate) { Utils.checkNotNull(replicationStartDate, "replicationStartDate"); @@ -476,8 +603,11 @@ public SourceAmazonSellerPartner withReplicationStartDate(OffsetDateTime replica return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago + * from today will be used. */ public SourceAmazonSellerPartner withReplicationStartDate(Optional replicationStartDate) { Utils.checkNotNull(replicationStartDate, "replicationStartDate"); @@ -494,6 +624,7 @@ public SourceAmazonSellerPartner withReportOptionsList(List repor return this; } + /** * Additional information passed to reports. This varies by report type. */ @@ -504,7 +635,10 @@ public SourceAmazonSellerPartner withReportOptionsList(OptionalTroubleshooting + * section for more details */ public SourceAmazonSellerPartner withWaitToAvoidFatalErrors(boolean waitToAvoidFatalErrors) { Utils.checkNotNull(waitToAvoidFatalErrors, "waitToAvoidFatalErrors"); @@ -512,8 +646,12 @@ public SourceAmazonSellerPartner withWaitToAvoidFatalErrors(boolean waitToAvoidF return this; } + /** - * For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See <a href="https://docs.airbyte.com/integrations/sources/amazon-seller-partner#limitations--troubleshooting" target="_blank">Troubleshooting</a> section for more details + * For report based streams with known amount of requests per time period, this option will use waiting + * time between requests to avoid fatal statuses in reports. See Troubleshooting + * section for more details */ public SourceAmazonSellerPartner withWaitToAvoidFatalErrors(Optional waitToAvoidFatalErrors) { Utils.checkNotNull(waitToAvoidFatalErrors, "waitToAvoidFatalErrors"); @@ -521,7 +659,6 @@ public SourceAmazonSellerPartner withWaitToAvoidFatalErrors(Optional wa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -532,41 +669,34 @@ public boolean equals(java.lang.Object o) { } SourceAmazonSellerPartner other = (SourceAmazonSellerPartner) o; return - Objects.deepEquals(this.accountType, other.accountType) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.awsEnvironment, other.awsEnvironment) && - Objects.deepEquals(this.financialEventsStep, other.financialEventsStep) && - Objects.deepEquals(this.lwaAppId, other.lwaAppId) && - Objects.deepEquals(this.lwaClientSecret, other.lwaClientSecret) && - Objects.deepEquals(this.periodInDays, other.periodInDays) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.replicationEndDate, other.replicationEndDate) && - Objects.deepEquals(this.replicationStartDate, other.replicationStartDate) && - Objects.deepEquals(this.reportOptionsList, other.reportOptionsList) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.waitToAvoidFatalErrors, other.waitToAvoidFatalErrors); + Utils.enhancedDeepEquals(this.accountType, other.accountType) && + Utils.enhancedDeepEquals(this.appId, other.appId) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.awsEnvironment, other.awsEnvironment) && + Utils.enhancedDeepEquals(this.financialEventsStep, other.financialEventsStep) && + Utils.enhancedDeepEquals(this.lwaAppId, other.lwaAppId) && + Utils.enhancedDeepEquals(this.lwaClientSecret, other.lwaClientSecret) && + Utils.enhancedDeepEquals(this.maxAsyncJobCount, other.maxAsyncJobCount) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.periodInDays, other.periodInDays) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.replicationEndDate, other.replicationEndDate) && + Utils.enhancedDeepEquals(this.replicationStartDate, other.replicationStartDate) && + Utils.enhancedDeepEquals(this.reportOptionsList, other.reportOptionsList) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.waitToAvoidFatalErrors, other.waitToAvoidFatalErrors); } @Override public int hashCode() { - return Objects.hash( - accountType, - appId, - authType, - awsEnvironment, - financialEventsStep, - lwaAppId, - lwaClientSecret, - periodInDays, - refreshToken, - region, - replicationEndDate, - replicationStartDate, - reportOptionsList, - sourceType, - waitToAvoidFatalErrors); + return Utils.enhancedHash( + accountType, appId, authType, + awsEnvironment, financialEventsStep, lwaAppId, + lwaClientSecret, maxAsyncJobCount, numWorkers, + periodInDays, refreshToken, region, + replicationEndDate, replicationStartDate, reportOptionsList, + sourceType, waitToAvoidFatalErrors); } @Override @@ -579,6 +709,8 @@ public String toString() { "financialEventsStep", financialEventsStep, "lwaAppId", lwaAppId, "lwaClientSecret", lwaClientSecret, + "maxAsyncJobCount", maxAsyncJobCount, + "numWorkers", numWorkers, "periodInDays", periodInDays, "refreshToken", refreshToken, "region", region, @@ -588,39 +720,45 @@ public String toString() { "sourceType", sourceType, "waitToAvoidFatalErrors", waitToAvoidFatalErrors); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accountType; - + private Optional appId = Optional.empty(); - + private Optional awsEnvironment; - + private Optional financialEventsStep; - + private String lwaAppId; - + private String lwaClientSecret; - + + private Optional maxAsyncJobCount; + + private Optional numWorkers; + private Optional periodInDays; - + private String refreshToken; - + private Optional region; - + private Optional replicationEndDate = Optional.empty(); - + private Optional replicationStartDate = Optional.empty(); - + private Optional> reportOptionsList = Optional.empty(); - + private Optional waitToAvoidFatalErrors; - + private Builder() { // force use of static builder() method } + /** * Type of the Account you're going to authorize the Airbyte application by */ @@ -639,6 +777,7 @@ public Builder accountType(Optional accou return this; } + /** * Your Amazon Application ID. */ @@ -657,6 +796,7 @@ public Builder appId(Optional appId) { return this; } + /** * Select the AWS Environment. */ @@ -675,11 +815,17 @@ public Builder awsEnvironment(Optional awsEnvironment) return this; } + /** - * The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. + * The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 + * days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. * - *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow syncing and increase the chance of hitting rate limits. - * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data per request, speeding up syncing and reducing the number of API calls, which minimizes strain on rate limits. + *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks + * per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow + * syncing and increase the chance of hitting rate limits. + * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data + * per request, speeding up syncing and reducing the number of API calls, which minimizes strain on + * rate limits. * *

    Select a step size that matches your data volume to optimize syncing speed and API performance. */ @@ -690,10 +836,15 @@ public Builder financialEventsStep(FinancialEventsStepSizeInDays financialEvents } /** - * The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. + * The time window size (in days) for fetching financial events data in chunks. Options are 1 day, 7 + * days, 14 days, 30 days, 60 days, and 190 days, based on API limitations. * - *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow syncing and increase the chance of hitting rate limits. - * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data per request, speeding up syncing and reducing the number of API calls, which minimizes strain on rate limits. + *

    - **Smaller step sizes (e.g., 1 day)** are better for large data volumes. They fetch smaller chunks + * per request, reducing the risk of timeouts or overwhelming the API, though more requests may slow + * syncing and increase the chance of hitting rate limits. + * - **Larger step sizes (e.g., 14 days)** are better for smaller data volumes. They fetch more data + * per request, speeding up syncing and reducing the number of API calls, which minimizes strain on + * rate limits. * *

    Select a step size that matches your data volume to optimize syncing speed and API performance. */ @@ -703,6 +854,7 @@ public Builder financialEventsStep(Optional maxAsyncJobCount) { + Utils.checkNotNull(maxAsyncJobCount, "maxAsyncJobCount"); + this.maxAsyncJobCount = maxAsyncJobCount; + return this; + } + + + /** + * The number of workers to use for the connector when syncing concurrently. + */ + public Builder numWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + /** - * For syncs spanning a large date range, this option is used to request data in a smaller fixed window to improve sync reliability. This time window can be configured granularly by day. + * The number of workers to use for the connector when syncing concurrently. + */ + public Builder numWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + + + /** + * For syncs spanning a large date range, this option is used to request data in a smaller fixed window + * to improve sync reliability. This time window can be configured granularly by day. */ public Builder periodInDays(long periodInDays) { Utils.checkNotNull(periodInDays, "periodInDays"); @@ -731,7 +924,8 @@ public Builder periodInDays(long periodInDays) { } /** - * For syncs spanning a large date range, this option is used to request data in a smaller fixed window to improve sync reliability. This time window can be configured granularly by day. + * For syncs spanning a large date range, this option is used to request data in a smaller fixed window + * to improve sync reliability. This time window can be configured granularly by day. */ public Builder periodInDays(Optional periodInDays) { Utils.checkNotNull(periodInDays, "periodInDays"); @@ -739,6 +933,7 @@ public Builder periodInDays(Optional periodInDays) { return this; } + /** * The Refresh Token obtained via OAuth flow authorization. */ @@ -748,6 +943,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * Select the AWS Region. */ @@ -766,8 +962,10 @@ public Builder region(Optional region) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be + * replicated. */ public Builder replicationEndDate(OffsetDateTime replicationEndDate) { Utils.checkNotNull(replicationEndDate, "replicationEndDate"); @@ -776,7 +974,8 @@ public Builder replicationEndDate(OffsetDateTime replicationEndDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data after this date will not be + * replicated. */ public Builder replicationEndDate(Optional replicationEndDate) { Utils.checkNotNull(replicationEndDate, "replicationEndDate"); @@ -784,8 +983,11 @@ public Builder replicationEndDate(Optional replicationEndDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago + * from today will be used. */ public Builder replicationStartDate(OffsetDateTime replicationStartDate) { Utils.checkNotNull(replicationStartDate, "replicationStartDate"); @@ -794,7 +996,9 @@ public Builder replicationStartDate(OffsetDateTime replicationStartDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago from today will be used. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If start date is not provided or older than 2 years ago from today, the date 2 years ago + * from today will be used. */ public Builder replicationStartDate(Optional replicationStartDate) { Utils.checkNotNull(replicationStartDate, "replicationStartDate"); @@ -802,6 +1006,7 @@ public Builder replicationStartDate(Optional replicationStartDat return this; } + /** * Additional information passed to reports. This varies by report type. */ @@ -820,8 +1025,12 @@ public Builder reportOptionsList(Optional> reportO return this; } + /** - * For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See <a href="https://docs.airbyte.com/integrations/sources/amazon-seller-partner#limitations--troubleshooting" target="_blank">Troubleshooting</a> section for more details + * For report based streams with known amount of requests per time period, this option will use waiting + * time between requests to avoid fatal statuses in reports. See Troubleshooting + * section for more details */ public Builder waitToAvoidFatalErrors(boolean waitToAvoidFatalErrors) { Utils.checkNotNull(waitToAvoidFatalErrors, "waitToAvoidFatalErrors"); @@ -830,14 +1039,17 @@ public Builder waitToAvoidFatalErrors(boolean waitToAvoidFatalErrors) { } /** - * For report based streams with known amount of requests per time period, this option will use waiting time between requests to avoid fatal statuses in reports. See <a href="https://docs.airbyte.com/integrations/sources/amazon-seller-partner#limitations--troubleshooting" target="_blank">Troubleshooting</a> section for more details + * For report based streams with known amount of requests per time period, this option will use waiting + * time between requests to avoid fatal statuses in reports. See Troubleshooting + * section for more details */ public Builder waitToAvoidFatalErrors(Optional waitToAvoidFatalErrors) { Utils.checkNotNull(waitToAvoidFatalErrors, "waitToAvoidFatalErrors"); this.waitToAvoidFatalErrors = waitToAvoidFatalErrors; return this; } - + public SourceAmazonSellerPartner build() { if (accountType == null) { accountType = _SINGLETON_VALUE_AccountType.value(); @@ -848,6 +1060,12 @@ public SourceAmazonSellerPartner build() { if (financialEventsStep == null) { financialEventsStep = _SINGLETON_VALUE_FinancialEventsStep.value(); } + if (maxAsyncJobCount == null) { + maxAsyncJobCount = _SINGLETON_VALUE_MaxAsyncJobCount.value(); + } + if (numWorkers == null) { + numWorkers = _SINGLETON_VALUE_NumWorkers.value(); + } if (periodInDays == null) { periodInDays = _SINGLETON_VALUE_PeriodInDays.value(); } @@ -857,22 +1075,16 @@ public SourceAmazonSellerPartner build() { if (waitToAvoidFatalErrors == null) { waitToAvoidFatalErrors = _SINGLETON_VALUE_WaitToAvoidFatalErrors.value(); } + return new SourceAmazonSellerPartner( - accountType, - appId, - awsEnvironment, - financialEventsStep, - lwaAppId, - lwaClientSecret, - periodInDays, - refreshToken, - region, - replicationEndDate, - replicationStartDate, - reportOptionsList, - waitToAvoidFatalErrors); + accountType, appId, awsEnvironment, + financialEventsStep, lwaAppId, lwaClientSecret, + maxAsyncJobCount, numWorkers, periodInDays, + refreshToken, region, replicationEndDate, + replicationStartDate, reportOptionsList, waitToAvoidFatalErrors); } + private static final LazySingletonValue> _SINGLETON_VALUE_AccountType = new LazySingletonValue<>( "account_type", @@ -897,6 +1109,18 @@ public SourceAmazonSellerPartner build() { "\"180\"", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_MaxAsyncJobCount = + new LazySingletonValue<>( + "max_async_job_count", + "2", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = + new LazySingletonValue<>( + "num_workers", + "2", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_PeriodInDays = new LazySingletonValue<>( "period_in_days", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java index a87f3aa8b..962135b40 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAmazonSellerPartner.java @@ -14,7 +14,7 @@ public enum SourceAmazonSellerPartnerAmazonSellerPartner { @JsonValue private final String value; - private SourceAmazonSellerPartnerAmazonSellerPartner(String value) { + SourceAmazonSellerPartnerAmazonSellerPartner(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAuthType.java index cc564d3dd..34e55f187 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSellerPartnerAuthType.java @@ -14,7 +14,7 @@ public enum SourceAmazonSellerPartnerAuthType { @JsonValue private final String value; - private SourceAmazonSellerPartnerAuthType(String value) { + SourceAmazonSellerPartnerAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqs.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqs.java index d0972fe4f..59bf80811 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqs.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqs.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceAmazonSqs { +public class SourceAmazonSqs { /** * The Access Key ID of the AWS IAM Role to use for pulling messages */ @@ -66,11 +65,13 @@ public class SourceAmazonSqs { @JsonProperty("secret_key") private String secretKey; + @JsonProperty("sourceType") private AmazonSqs sourceType; /** - * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + * Note - Different targets have different attribute enum requirements, please refer actions sections + * in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("target") @@ -119,7 +120,9 @@ public SourceAmazonSqs( String accessKey, String queueUrl, String secretKey) { - this(accessKey, Optional.empty(), Optional.empty(), Optional.empty(), queueUrl, Optional.empty(), secretKey, Optional.empty(), Optional.empty()); + this(accessKey, Optional.empty(), Optional.empty(), + Optional.empty(), queueUrl, Optional.empty(), + secretKey, Optional.empty(), Optional.empty()); } /** @@ -185,7 +188,8 @@ public AmazonSqs sourceType() { } /** - * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + * Note - Different targets have different attribute enum requirements, please refer actions sections + * in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html */ @SuppressWarnings("unchecked") @JsonIgnore @@ -201,9 +205,10 @@ public Optional visibilityTimeout() { return visibilityTimeout; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Access Key ID of the AWS IAM Role to use for pulling messages @@ -223,6 +228,7 @@ public SourceAmazonSqs withAttributesToReturn(String attributesToReturn) { return this; } + /** * Comma separated list of Mesage Attribute names to return */ @@ -241,6 +247,7 @@ public SourceAmazonSqs withMaxBatchSize(long maxBatchSize) { return this; } + /** * Max amount of messages to get in one batch (10 max) */ @@ -259,6 +266,7 @@ public SourceAmazonSqs withMaxWaitTime(long maxWaitTime) { return this; } + /** * Max amount of time in seconds to wait for messages in a single poll (20 max) */ @@ -286,6 +294,7 @@ public SourceAmazonSqs withRegion(SourceAmazonSqsAWSRegion region) { return this; } + /** * AWS Region of the SQS Queue */ @@ -305,7 +314,8 @@ public SourceAmazonSqs withSecretKey(String secretKey) { } /** - * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + * Note - Different targets have different attribute enum requirements, please refer actions sections + * in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html */ public SourceAmazonSqs withTarget(TheTargetedActionResourceForTheFetch target) { Utils.checkNotNull(target, "target"); @@ -313,8 +323,10 @@ public SourceAmazonSqs withTarget(TheTargetedActionResourceForTheFetch target) { return this; } + /** - * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + * Note - Different targets have different attribute enum requirements, please refer actions sections + * in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html */ public SourceAmazonSqs withTarget(Optional target) { Utils.checkNotNull(target, "target"); @@ -331,6 +343,7 @@ public SourceAmazonSqs withVisibilityTimeout(long visibilityTimeout) { return this; } + /** * Modify the Visibility Timeout of the individual message from the Queue's default (seconds). */ @@ -340,7 +353,6 @@ public SourceAmazonSqs withVisibilityTimeout(Optional visibilityTimeout) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -351,30 +363,24 @@ public boolean equals(java.lang.Object o) { } SourceAmazonSqs other = (SourceAmazonSqs) o; return - Objects.deepEquals(this.accessKey, other.accessKey) && - Objects.deepEquals(this.attributesToReturn, other.attributesToReturn) && - Objects.deepEquals(this.maxBatchSize, other.maxBatchSize) && - Objects.deepEquals(this.maxWaitTime, other.maxWaitTime) && - Objects.deepEquals(this.queueUrl, other.queueUrl) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.secretKey, other.secretKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.target, other.target) && - Objects.deepEquals(this.visibilityTimeout, other.visibilityTimeout); + Utils.enhancedDeepEquals(this.accessKey, other.accessKey) && + Utils.enhancedDeepEquals(this.attributesToReturn, other.attributesToReturn) && + Utils.enhancedDeepEquals(this.maxBatchSize, other.maxBatchSize) && + Utils.enhancedDeepEquals(this.maxWaitTime, other.maxWaitTime) && + Utils.enhancedDeepEquals(this.queueUrl, other.queueUrl) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.secretKey, other.secretKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.target, other.target) && + Utils.enhancedDeepEquals(this.visibilityTimeout, other.visibilityTimeout); } @Override public int hashCode() { - return Objects.hash( - accessKey, - attributesToReturn, - maxBatchSize, - maxWaitTime, - queueUrl, - region, - secretKey, - sourceType, - target, + return Utils.enhancedHash( + accessKey, attributesToReturn, maxBatchSize, + maxWaitTime, queueUrl, region, + secretKey, sourceType, target, visibilityTimeout); } @@ -392,31 +398,33 @@ public String toString() { "target", target, "visibilityTimeout", visibilityTimeout); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKey; - + private Optional attributesToReturn; - + private Optional maxBatchSize; - + private Optional maxWaitTime; - + private String queueUrl; - + private Optional region; - + private String secretKey; - + private Optional target; - + private Optional visibilityTimeout; - + private Builder() { // force use of static builder() method } + /** * The Access Key ID of the AWS IAM Role to use for pulling messages */ @@ -426,6 +434,7 @@ public Builder accessKey(String accessKey) { return this; } + /** * Comma separated list of Mesage Attribute names to return */ @@ -444,6 +453,7 @@ public Builder attributesToReturn(Optional attributesToReturn) { return this; } + /** * Max amount of messages to get in one batch (10 max) */ @@ -462,6 +472,7 @@ public Builder maxBatchSize(Optional maxBatchSize) { return this; } + /** * Max amount of time in seconds to wait for messages in a single poll (20 max) */ @@ -480,6 +491,7 @@ public Builder maxWaitTime(Optional maxWaitTime) { return this; } + /** * URL of the SQS Queue */ @@ -489,6 +501,7 @@ public Builder queueUrl(String queueUrl) { return this; } + /** * AWS Region of the SQS Queue */ @@ -507,6 +520,7 @@ public Builder region(Optional region) { return this; } + /** * The Secret Key of the AWS IAM Role to use for pulling messages */ @@ -516,8 +530,10 @@ public Builder secretKey(String secretKey) { return this; } + /** - * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + * Note - Different targets have different attribute enum requirements, please refer actions sections + * in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html */ public Builder target(TheTargetedActionResourceForTheFetch target) { Utils.checkNotNull(target, "target"); @@ -526,7 +542,8 @@ public Builder target(TheTargetedActionResourceForTheFetch target) { } /** - * Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + * Note - Different targets have different attribute enum requirements, please refer actions sections + * in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html */ public Builder target(Optional target) { Utils.checkNotNull(target, "target"); @@ -534,6 +551,7 @@ public Builder target(Optional t return this; } + /** * Modify the Visibility Timeout of the individual message from the Queue's default (seconds). */ @@ -551,7 +569,7 @@ public Builder visibilityTimeout(Optional visibilityTimeout) { this.visibilityTimeout = visibilityTimeout; return this; } - + public SourceAmazonSqs build() { if (attributesToReturn == null) { attributesToReturn = _SINGLETON_VALUE_AttributesToReturn.value(); @@ -571,18 +589,14 @@ public SourceAmazonSqs build() { if (visibilityTimeout == null) { visibilityTimeout = _SINGLETON_VALUE_VisibilityTimeout.value(); } + return new SourceAmazonSqs( - accessKey, - attributesToReturn, - maxBatchSize, - maxWaitTime, - queueUrl, - region, - secretKey, - target, - visibilityTimeout); + accessKey, attributesToReturn, maxBatchSize, + maxWaitTime, queueUrl, region, + secretKey, target, visibilityTimeout); } + private static final LazySingletonValue> _SINGLETON_VALUE_AttributesToReturn = new LazySingletonValue<>( "attributes_to_return", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java index b0a22037b..9457b8a1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmazonSqsAWSRegion.java @@ -51,7 +51,7 @@ public enum SourceAmazonSqsAWSRegion { @JsonValue private final String value; - private SourceAmazonSqsAWSRegion(String value) { + SourceAmazonSqsAWSRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAmplitude.java b/src/main/java/com/airbyte/api/models/shared/SourceAmplitude.java index b8abfbed3..b60a6a41e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAmplitude.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAmplitude.java @@ -17,20 +17,24 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceAmplitude { +public class SourceAmplitude { /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * According to Amplitude + * documentation, grouping by `Country` is optional. If you face issues fetching the stream or + * checking the connection please set this field to `False`. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("active_users_group_by_country") private Optional activeUsersGroupByCountry; /** - * Amplitude API Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. + * Amplitude API Key. See the setup guide for more + * information on how to obtain this key. */ @JsonProperty("api_key") private String apiKey; @@ -43,23 +47,30 @@ public class SourceAmplitude { private Optional dataRegion; /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * According to Considerations + * too large of a time range in te request can cause a timeout error. In this case, please provide a + * shorter time interval in hours. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("request_time_range") private Optional requestTimeRange; /** - * Amplitude Secret Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. + * Amplitude Secret Key. See the setup guide for more + * information on how to obtain this key. */ @JsonProperty("secret_key") private String secretKey; + @JsonProperty("sourceType") private Amplitude sourceType; /** - * UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -91,11 +102,15 @@ public SourceAmplitude( String apiKey, String secretKey, OffsetDateTime startDate) { - this(Optional.empty(), apiKey, Optional.empty(), Optional.empty(), secretKey, startDate); + this(Optional.empty(), apiKey, Optional.empty(), + Optional.empty(), secretKey, startDate); } /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * According to Amplitude + * documentation, grouping by `Country` is optional. If you face issues fetching the stream or + * checking the connection please set this field to `False`. */ @JsonIgnore public Optional activeUsersGroupByCountry() { @@ -103,7 +118,9 @@ public Optional activeUsersGroupByCountry() { } /** - * Amplitude API Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. + * Amplitude API Key. See the setup guide for more + * information on how to obtain this key. */ @JsonIgnore public String apiKey() { @@ -120,7 +137,10 @@ public Optional dataRegion() { } /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * According to Considerations + * too large of a time range in te request can cause a timeout error. In this case, please provide a + * shorter time interval in hours. */ @JsonIgnore public Optional requestTimeRange() { @@ -128,7 +148,9 @@ public Optional requestTimeRange() { } /** - * Amplitude Secret Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. + * Amplitude Secret Key. See the setup guide for more + * information on how to obtain this key. */ @JsonIgnore public String secretKey() { @@ -141,19 +163,24 @@ public Amplitude sourceType() { } /** - * UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * According to Amplitude + * documentation, grouping by `Country` is optional. If you face issues fetching the stream or + * checking the connection please set this field to `False`. */ public SourceAmplitude withActiveUsersGroupByCountry(boolean activeUsersGroupByCountry) { Utils.checkNotNull(activeUsersGroupByCountry, "activeUsersGroupByCountry"); @@ -161,8 +188,12 @@ public SourceAmplitude withActiveUsersGroupByCountry(boolean activeUsersGroupByC return this; } + /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * According to Amplitude + * documentation, grouping by `Country` is optional. If you face issues fetching the stream or + * checking the connection please set this field to `False`. */ public SourceAmplitude withActiveUsersGroupByCountry(Optional activeUsersGroupByCountry) { Utils.checkNotNull(activeUsersGroupByCountry, "activeUsersGroupByCountry"); @@ -171,7 +202,9 @@ public SourceAmplitude withActiveUsersGroupByCountry(Optional activeUse } /** - * Amplitude API Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. + * Amplitude API Key. See the setup guide for more + * information on how to obtain this key. */ public SourceAmplitude withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -188,6 +221,7 @@ public SourceAmplitude withDataRegion(DataRegion dataRegion) { return this; } + /** * Amplitude data region server */ @@ -198,7 +232,10 @@ public SourceAmplitude withDataRegion(Optional dataRegion) } /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * According to Considerations + * too large of a time range in te request can cause a timeout error. In this case, please provide a + * shorter time interval in hours. */ public SourceAmplitude withRequestTimeRange(long requestTimeRange) { Utils.checkNotNull(requestTimeRange, "requestTimeRange"); @@ -206,8 +243,12 @@ public SourceAmplitude withRequestTimeRange(long requestTimeRange) { return this; } + /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * According to Considerations + * too large of a time range in te request can cause a timeout error. In this case, please provide a + * shorter time interval in hours. */ public SourceAmplitude withRequestTimeRange(Optional requestTimeRange) { Utils.checkNotNull(requestTimeRange, "requestTimeRange"); @@ -216,7 +257,9 @@ public SourceAmplitude withRequestTimeRange(Optional requestTimeRange) { } /** - * Amplitude Secret Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. + * Amplitude Secret Key. See the setup guide for more + * information on how to obtain this key. */ public SourceAmplitude withSecretKey(String secretKey) { Utils.checkNotNull(secretKey, "secretKey"); @@ -225,7 +268,8 @@ public SourceAmplitude withSecretKey(String secretKey) { } /** - * UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceAmplitude withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -233,7 +277,6 @@ public SourceAmplitude withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -244,24 +287,20 @@ public boolean equals(java.lang.Object o) { } SourceAmplitude other = (SourceAmplitude) o; return - Objects.deepEquals(this.activeUsersGroupByCountry, other.activeUsersGroupByCountry) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.dataRegion, other.dataRegion) && - Objects.deepEquals(this.requestTimeRange, other.requestTimeRange) && - Objects.deepEquals(this.secretKey, other.secretKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.activeUsersGroupByCountry, other.activeUsersGroupByCountry) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.dataRegion, other.dataRegion) && + Utils.enhancedDeepEquals(this.requestTimeRange, other.requestTimeRange) && + Utils.enhancedDeepEquals(this.secretKey, other.secretKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - activeUsersGroupByCountry, - apiKey, - dataRegion, - requestTimeRange, - secretKey, - sourceType, + return Utils.enhancedHash( + activeUsersGroupByCountry, apiKey, dataRegion, + requestTimeRange, secretKey, sourceType, startDate); } @@ -276,27 +315,32 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional activeUsersGroupByCountry; - + private String apiKey; - + private Optional dataRegion; - + private Optional requestTimeRange; - + private String secretKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * According to Amplitude + * documentation, grouping by `Country` is optional. If you face issues fetching the stream or + * checking the connection please set this field to `False`. */ public Builder activeUsersGroupByCountry(boolean activeUsersGroupByCountry) { Utils.checkNotNull(activeUsersGroupByCountry, "activeUsersGroupByCountry"); @@ -305,7 +349,10 @@ public Builder activeUsersGroupByCountry(boolean activeUsersGroupByCountry) { } /** - * According to <a href="https://amplitude.com/docs/apis/analytics/dashboard-rest#query-parameters">Amplitude documentation</a>, grouping by `Country` is optional. If you face issues fetching the stream or checking the connection please set this field to `False`. + * According to Amplitude + * documentation, grouping by `Country` is optional. If you face issues fetching the stream or + * checking the connection please set this field to `False`. */ public Builder activeUsersGroupByCountry(Optional activeUsersGroupByCountry) { Utils.checkNotNull(activeUsersGroupByCountry, "activeUsersGroupByCountry"); @@ -313,8 +360,11 @@ public Builder activeUsersGroupByCountry(Optional activeUsersGroupByCou return this; } + /** - * Amplitude API Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. + * Amplitude API Key. See the setup guide for more + * information on how to obtain this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -322,6 +372,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Amplitude data region server */ @@ -340,8 +391,12 @@ public Builder dataRegion(Optional dataRegion) { return this; } + /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * According to Considerations + * too large of a time range in te request can cause a timeout error. In this case, please provide a + * shorter time interval in hours. */ public Builder requestTimeRange(long requestTimeRange) { Utils.checkNotNull(requestTimeRange, "requestTimeRange"); @@ -350,7 +405,10 @@ public Builder requestTimeRange(long requestTimeRange) { } /** - * According to <a href="https://www.docs.developers.amplitude.com/analytics/apis/export-api/#considerations">Considerations</a> too large of a time range in te request can cause a timeout error. In this case, please provide a shorter time interval in hours. + * According to Considerations + * too large of a time range in te request can cause a timeout error. In this case, please provide a + * shorter time interval in hours. */ public Builder requestTimeRange(Optional requestTimeRange) { Utils.checkNotNull(requestTimeRange, "requestTimeRange"); @@ -358,8 +416,11 @@ public Builder requestTimeRange(Optional requestTimeRange) { return this; } + /** - * Amplitude Secret Key. See the <a href="https://docs.airbyte.com/integrations/sources/amplitude#setup-guide">setup guide</a> for more information on how to obtain this key. + * Amplitude Secret Key. See the setup guide for more + * information on how to obtain this key. */ public Builder secretKey(String secretKey) { Utils.checkNotNull(secretKey, "secretKey"); @@ -367,15 +428,17 @@ public Builder secretKey(String secretKey) { return this; } + /** - * UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2021-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceAmplitude build() { if (activeUsersGroupByCountry == null) { activeUsersGroupByCountry = _SINGLETON_VALUE_ActiveUsersGroupByCountry.value(); @@ -386,15 +449,13 @@ public SourceAmplitude build() { if (requestTimeRange == null) { requestTimeRange = _SINGLETON_VALUE_RequestTimeRange.value(); } + return new SourceAmplitude( - activeUsersGroupByCountry, - apiKey, - dataRegion, - requestTimeRange, - secretKey, - startDate); + activeUsersGroupByCountry, apiKey, dataRegion, + requestTimeRange, secretKey, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_ActiveUsersGroupByCountry = new LazySingletonValue<>( "active_users_group_by_country", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceApifyDataset.java b/src/main/java/com/airbyte/api/models/shared/SourceApifyDataset.java index 9c15ea568..4d4aab3f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceApifyDataset.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceApifyDataset.java @@ -11,21 +11,28 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceApifyDataset { +public class SourceApifyDataset { /** - * ID of the dataset you would like to load to Airbyte. In Apify Console, you can view your datasets in the <a href="https://console.apify.com/storage/datasets">Storage section under the Datasets tab</a> after you login. See the <a href="https://docs.apify.com/platform/storage/dataset">Apify Docs</a> for more information. + * ID of the dataset you would like to load to Airbyte. In Apify Console, you can view your datasets in + * the Storage section under the Datasets tab + * after you login. See the Apify Docs + * for more information. */ @JsonProperty("dataset_id") private String datasetId; + @JsonProperty("sourceType") private ApifyDataset sourceType; /** - * Personal API token of your Apify account. In Apify Console, you can find your API token in the <a href="https://console.apify.com/account/integrations">Settings section under the Integrations tab</a> after you login. See the <a href="https://docs.apify.com/platform/integrations/api#api-token">Apify Docs</a> for more information. + * Personal API token of your Apify account. In Apify Console, you can find your API token in the Settings section under the Integrations + * tab after you login. See the Apify Docs for more + * information. */ @JsonProperty("token") private String token; @@ -42,7 +49,10 @@ public SourceApifyDataset( } /** - * ID of the dataset you would like to load to Airbyte. In Apify Console, you can view your datasets in the <a href="https://console.apify.com/storage/datasets">Storage section under the Datasets tab</a> after you login. See the <a href="https://docs.apify.com/platform/storage/dataset">Apify Docs</a> for more information. + * ID of the dataset you would like to load to Airbyte. In Apify Console, you can view your datasets in + * the Storage section under the Datasets tab + * after you login. See the Apify Docs + * for more information. */ @JsonIgnore public String datasetId() { @@ -55,19 +65,27 @@ public ApifyDataset sourceType() { } /** - * Personal API token of your Apify account. In Apify Console, you can find your API token in the <a href="https://console.apify.com/account/integrations">Settings section under the Integrations tab</a> after you login. See the <a href="https://docs.apify.com/platform/integrations/api#api-token">Apify Docs</a> for more information. + * Personal API token of your Apify account. In Apify Console, you can find your API token in the Settings section under the Integrations + * tab after you login. See the Apify Docs for more + * information. */ @JsonIgnore public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * ID of the dataset you would like to load to Airbyte. In Apify Console, you can view your datasets in the <a href="https://console.apify.com/storage/datasets">Storage section under the Datasets tab</a> after you login. See the <a href="https://docs.apify.com/platform/storage/dataset">Apify Docs</a> for more information. + * ID of the dataset you would like to load to Airbyte. In Apify Console, you can view your datasets in + * the Storage section under the Datasets tab + * after you login. See the Apify Docs + * for more information. */ public SourceApifyDataset withDatasetId(String datasetId) { Utils.checkNotNull(datasetId, "datasetId"); @@ -76,7 +94,11 @@ public SourceApifyDataset withDatasetId(String datasetId) { } /** - * Personal API token of your Apify account. In Apify Console, you can find your API token in the <a href="https://console.apify.com/account/integrations">Settings section under the Integrations tab</a> after you login. See the <a href="https://docs.apify.com/platform/integrations/api#api-token">Apify Docs</a> for more information. + * Personal API token of your Apify account. In Apify Console, you can find your API token in the Settings section under the Integrations + * tab after you login. See the Apify Docs for more + * information. */ public SourceApifyDataset withToken(String token) { Utils.checkNotNull(token, "token"); @@ -84,7 +106,6 @@ public SourceApifyDataset withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +116,15 @@ public boolean equals(java.lang.Object o) { } SourceApifyDataset other = (SourceApifyDataset) o; return - Objects.deepEquals(this.datasetId, other.datasetId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.datasetId, other.datasetId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - datasetId, - sourceType, - token); + return Utils.enhancedHash( + datasetId, sourceType, token); } @Override @@ -115,19 +134,24 @@ public String toString() { "sourceType", sourceType, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String datasetId; - + private String token; - + private Builder() { // force use of static builder() method } + /** - * ID of the dataset you would like to load to Airbyte. In Apify Console, you can view your datasets in the <a href="https://console.apify.com/storage/datasets">Storage section under the Datasets tab</a> after you login. See the <a href="https://docs.apify.com/platform/storage/dataset">Apify Docs</a> for more information. + * ID of the dataset you would like to load to Airbyte. In Apify Console, you can view your datasets in + * the Storage section under the Datasets tab + * after you login. See the Apify Docs + * for more information. */ public Builder datasetId(String datasetId) { Utils.checkNotNull(datasetId, "datasetId"); @@ -135,21 +159,27 @@ public Builder datasetId(String datasetId) { return this; } + /** - * Personal API token of your Apify account. In Apify Console, you can find your API token in the <a href="https://console.apify.com/account/integrations">Settings section under the Integrations tab</a> after you login. See the <a href="https://docs.apify.com/platform/integrations/api#api-token">Apify Docs</a> for more information. + * Personal API token of your Apify account. In Apify Console, you can find your API token in the Settings section under the Integrations + * tab after you login. See the Apify Docs for more + * information. */ public Builder token(String token) { Utils.checkNotNull(token, "token"); this.token = token; return this; } - + public SourceApifyDataset build() { + return new SourceApifyDataset( - datasetId, - token); + datasetId, token); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAppcues.java b/src/main/java/com/airbyte/api/models/shared/SourceAppcues.java index e5a7e8d21..4ff557c35 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAppcues.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAppcues.java @@ -14,27 +14,30 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceAppcues { +public class SourceAppcues { /** * Account ID of Appcues found in account settings page (https://studio.appcues.com/settings/account) */ @JsonProperty("account_id") private String accountId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Appcues sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonProperty("username") private String username; @@ -59,7 +62,8 @@ public SourceAppcues( String accountId, OffsetDateTime startDate, String username) { - this(accountId, Optional.empty(), startDate, username); + this(accountId, Optional.empty(), startDate, + username); } /** @@ -90,9 +94,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Account ID of Appcues found in account settings page (https://studio.appcues.com/settings/account) @@ -109,6 +114,7 @@ public SourceAppcues withPassword(String password) { return this; } + public SourceAppcues withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -127,7 +133,6 @@ public SourceAppcues withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -138,21 +143,18 @@ public boolean equals(java.lang.Object o) { } SourceAppcues other = (SourceAppcues) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - accountId, - password, - sourceType, - startDate, - username); + return Utils.enhancedHash( + accountId, password, sourceType, + startDate, username); } @Override @@ -164,21 +166,23 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private Optional password = Optional.empty(); - + private OffsetDateTime startDate; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Account ID of Appcues found in account settings page (https://studio.appcues.com/settings/account) */ @@ -188,6 +192,7 @@ public Builder accountId(String accountId) { return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -200,26 +205,28 @@ public Builder password(Optional password) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceAppcues build() { + return new SourceAppcues( - accountId, - password, - startDate, + accountId, password, startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAppfigures.java b/src/main/java/com/airbyte/api/models/shared/SourceAppfigures.java index a6b0bacf1..749886133 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAppfigures.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAppfigures.java @@ -15,9 +15,9 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceAppfigures { @JsonProperty("api_key") @@ -37,9 +37,11 @@ public class SourceAppfigures { @JsonProperty("search_store") private Optional searchStore; + @JsonProperty("sourceType") private Appfigures sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -63,7 +65,8 @@ public SourceAppfigures( public SourceAppfigures( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), startDate); + this(apiKey, Optional.empty(), Optional.empty(), + startDate); } @JsonIgnore @@ -98,9 +101,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceAppfigures withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -117,6 +121,7 @@ public SourceAppfigures withGroupBy(GroupBy groupBy) { return this; } + /** * Category term for grouping the search results */ @@ -135,6 +140,7 @@ public SourceAppfigures withSearchStore(String searchStore) { return this; } + /** * The store which needs to be searched in streams */ @@ -150,7 +156,6 @@ public SourceAppfigures withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -161,21 +166,18 @@ public boolean equals(java.lang.Object o) { } SourceAppfigures other = (SourceAppfigures) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.groupBy, other.groupBy) && - Objects.deepEquals(this.searchStore, other.searchStore) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.groupBy, other.groupBy) && + Utils.enhancedDeepEquals(this.searchStore, other.searchStore) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - groupBy, - searchStore, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, groupBy, searchStore, + sourceType, startDate); } @Override @@ -187,27 +189,30 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional groupBy; - + private Optional searchStore; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Category term for grouping the search results */ @@ -226,6 +231,7 @@ public Builder groupBy(Optional groupBy) { return this; } + /** * The store which needs to be searched in streams */ @@ -244,12 +250,13 @@ public Builder searchStore(Optional searchStore) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceAppfigures build() { if (groupBy == null) { groupBy = _SINGLETON_VALUE_GroupBy.value(); @@ -257,13 +264,13 @@ public SourceAppfigures build() { if (searchStore == null) { searchStore = _SINGLETON_VALUE_SearchStore.value(); } + return new SourceAppfigures( - apiKey, - groupBy, - searchStore, + apiKey, groupBy, searchStore, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_GroupBy = new LazySingletonValue<>( "group_by", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAppfollow.java b/src/main/java/com/airbyte/api/models/shared/SourceAppfollow.java index babc97c2b..4349f05f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAppfollow.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAppfollow.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceAppfollow { +public class SourceAppfollow { /** * API Key provided by Appfollow */ @@ -25,6 +24,7 @@ public class SourceAppfollow { @JsonProperty("api_secret") private Optional apiSecret; + @JsonProperty("sourceType") private Appfollow sourceType; @@ -53,9 +53,10 @@ public Appfollow sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key provided by Appfollow @@ -66,6 +67,7 @@ public SourceAppfollow withApiSecret(String apiSecret) { return this; } + /** * API Key provided by Appfollow */ @@ -75,7 +77,6 @@ public SourceAppfollow withApiSecret(Optional apiSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,15 +87,14 @@ public boolean equals(java.lang.Object o) { } SourceAppfollow other = (SourceAppfollow) o; return - Objects.deepEquals(this.apiSecret, other.apiSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiSecret, other.apiSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiSecret, - sourceType); + return Utils.enhancedHash( + apiSecret, sourceType); } @Override @@ -103,15 +103,17 @@ public String toString() { "apiSecret", apiSecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * API Key provided by Appfollow */ @@ -129,12 +131,14 @@ public Builder apiSecret(Optional apiSecret) { this.apiSecret = apiSecret; return this; } - + public SourceAppfollow build() { + return new SourceAppfollow( apiSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAppleSearchAds.java b/src/main/java/com/airbyte/api/models/shared/SourceAppleSearchAds.java index 619e55151..b0bc1eb24 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAppleSearchAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAppleSearchAds.java @@ -15,26 +15,28 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceAppleSearchAds { +public class SourceAppleSearchAds { /** - * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + * This factor factor determines the delay increase factor between retryable failures. Valid values are + * integers between 1 and 20. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("backoff_factor") private Optional backoffFactor; /** - * A user identifier for the token request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> + * A user identifier for the token request. See here */ @JsonProperty("client_id") private String clientId; /** - * A string that authenticates the user’s setup request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> + * A string that authenticates the user’s setup request. See here */ @JsonProperty("client_secret") private String clientSecret; @@ -47,18 +49,21 @@ public class SourceAppleSearchAds { private Optional endDate; /** - * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order + * to shorten sync durations, at the cost of missing late data attributions. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lookback_window") private Optional lookbackWindow; /** - * The identifier of the organization that owns the campaign. Your Org Id is the same as your account in the Apple Search Ads UI. + * The identifier of the organization that owns the campaign. Your Org Id is the same as your account + * in the Apple Search Ads UI. */ @JsonProperty("org_id") private long orgId; + @JsonProperty("sourceType") private AppleSearchAds sourceType; @@ -69,12 +74,21 @@ public class SourceAppleSearchAds { private String startDate; /** - * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated Universal Time. Default is UTC. + * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated + * Universal Time. Default is UTC. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("timezone") private Optional timezone; + /** + * Token Refresh Endpoint. You should override the default value in scenarios where it's required to + * proxy requests to Apple's token endpoint + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("token_refresh_endpoint") + private Optional tokenRefreshEndpoint; + @JsonCreator public SourceAppleSearchAds( @JsonProperty("backoff_factor") Optional backoffFactor, @@ -84,7 +98,8 @@ public SourceAppleSearchAds( @JsonProperty("lookback_window") Optional lookbackWindow, @JsonProperty("org_id") long orgId, @JsonProperty("start_date") String startDate, - @JsonProperty("timezone") Optional timezone) { + @JsonProperty("timezone") Optional timezone, + @JsonProperty("token_refresh_endpoint") Optional tokenRefreshEndpoint) { Utils.checkNotNull(backoffFactor, "backoffFactor"); Utils.checkNotNull(clientId, "clientId"); Utils.checkNotNull(clientSecret, "clientSecret"); @@ -93,6 +108,7 @@ public SourceAppleSearchAds( Utils.checkNotNull(orgId, "orgId"); Utils.checkNotNull(startDate, "startDate"); Utils.checkNotNull(timezone, "timezone"); + Utils.checkNotNull(tokenRefreshEndpoint, "tokenRefreshEndpoint"); this.backoffFactor = backoffFactor; this.clientId = clientId; this.clientSecret = clientSecret; @@ -102,6 +118,7 @@ public SourceAppleSearchAds( this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; this.timezone = timezone; + this.tokenRefreshEndpoint = tokenRefreshEndpoint; } public SourceAppleSearchAds( @@ -109,11 +126,14 @@ public SourceAppleSearchAds( String clientSecret, long orgId, String startDate) { - this(Optional.empty(), clientId, clientSecret, Optional.empty(), Optional.empty(), orgId, startDate, Optional.empty()); + this(Optional.empty(), clientId, clientSecret, + Optional.empty(), Optional.empty(), orgId, + startDate, Optional.empty(), Optional.empty()); } /** - * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + * This factor factor determines the delay increase factor between retryable failures. Valid values are + * integers between 1 and 20. */ @JsonIgnore public Optional backoffFactor() { @@ -121,7 +141,8 @@ public Optional backoffFactor() { } /** - * A user identifier for the token request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> + * A user identifier for the token request. See here */ @JsonIgnore public String clientId() { @@ -129,7 +150,8 @@ public String clientId() { } /** - * A string that authenticates the user’s setup request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> + * A string that authenticates the user’s setup request. See here */ @JsonIgnore public String clientSecret() { @@ -145,7 +167,8 @@ public Optional endDate() { } /** - * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order + * to shorten sync durations, at the cost of missing late data attributions. */ @JsonIgnore public Optional lookbackWindow() { @@ -153,7 +176,8 @@ public Optional lookbackWindow() { } /** - * The identifier of the organization that owns the campaign. Your Org Id is the same as your account in the Apple Search Ads UI. + * The identifier of the organization that owns the campaign. Your Org Id is the same as your account + * in the Apple Search Ads UI. */ @JsonIgnore public long orgId() { @@ -174,7 +198,8 @@ public String startDate() { } /** - * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated Universal Time. Default is UTC. + * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated + * Universal Time. Default is UTC. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -182,12 +207,23 @@ public Optional timezone() { return (Optional) timezone; } - public final static Builder builder() { + /** + * Token Refresh Endpoint. You should override the default value in scenarios where it's required to + * proxy requests to Apple's token endpoint + */ + @JsonIgnore + public Optional tokenRefreshEndpoint() { + return tokenRefreshEndpoint; + } + + public static Builder builder() { return new Builder(); - } + } + /** - * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + * This factor factor determines the delay increase factor between retryable failures. Valid values are + * integers between 1 and 20. */ public SourceAppleSearchAds withBackoffFactor(long backoffFactor) { Utils.checkNotNull(backoffFactor, "backoffFactor"); @@ -195,8 +231,10 @@ public SourceAppleSearchAds withBackoffFactor(long backoffFactor) { return this; } + /** - * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + * This factor factor determines the delay increase factor between retryable failures. Valid values are + * integers between 1 and 20. */ public SourceAppleSearchAds withBackoffFactor(Optional backoffFactor) { Utils.checkNotNull(backoffFactor, "backoffFactor"); @@ -205,7 +243,8 @@ public SourceAppleSearchAds withBackoffFactor(Optional backoffFactor) { } /** - * A user identifier for the token request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> + * A user identifier for the token request. See here */ public SourceAppleSearchAds withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -214,7 +253,8 @@ public SourceAppleSearchAds withClientId(String clientId) { } /** - * A string that authenticates the user’s setup request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> + * A string that authenticates the user’s setup request. See here */ public SourceAppleSearchAds withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -231,6 +271,7 @@ public SourceAppleSearchAds withEndDate(String endDate) { return this; } + /** * Data is retrieved until that date (included) */ @@ -241,7 +282,8 @@ public SourceAppleSearchAds withEndDate(Optional endDate) { } /** - * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order + * to shorten sync durations, at the cost of missing late data attributions. */ public SourceAppleSearchAds withLookbackWindow(long lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -249,8 +291,10 @@ public SourceAppleSearchAds withLookbackWindow(long lookbackWindow) { return this; } + /** - * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order + * to shorten sync durations, at the cost of missing late data attributions. */ public SourceAppleSearchAds withLookbackWindow(Optional lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -259,7 +303,8 @@ public SourceAppleSearchAds withLookbackWindow(Optional lookbackWindow) { } /** - * The identifier of the organization that owns the campaign. Your Org Id is the same as your account in the Apple Search Ads UI. + * The identifier of the organization that owns the campaign. Your Org Id is the same as your account + * in the Apple Search Ads UI. */ public SourceAppleSearchAds withOrgId(long orgId) { Utils.checkNotNull(orgId, "orgId"); @@ -277,7 +322,8 @@ public SourceAppleSearchAds withStartDate(String startDate) { } /** - * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated Universal Time. Default is UTC. + * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated + * Universal Time. Default is UTC. */ public SourceAppleSearchAds withTimezone(TimeZone timezone) { Utils.checkNotNull(timezone, "timezone"); @@ -285,8 +331,10 @@ public SourceAppleSearchAds withTimezone(TimeZone timezone) { return this; } + /** - * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated Universal Time. Default is UTC. + * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated + * Universal Time. Default is UTC. */ public SourceAppleSearchAds withTimezone(Optional timezone) { Utils.checkNotNull(timezone, "timezone"); @@ -294,7 +342,27 @@ public SourceAppleSearchAds withTimezone(Optional timezone) return this; } - + /** + * Token Refresh Endpoint. You should override the default value in scenarios where it's required to + * proxy requests to Apple's token endpoint + */ + public SourceAppleSearchAds withTokenRefreshEndpoint(String tokenRefreshEndpoint) { + Utils.checkNotNull(tokenRefreshEndpoint, "tokenRefreshEndpoint"); + this.tokenRefreshEndpoint = Optional.ofNullable(tokenRefreshEndpoint); + return this; + } + + + /** + * Token Refresh Endpoint. You should override the default value in scenarios where it's required to + * proxy requests to Apple's token endpoint + */ + public SourceAppleSearchAds withTokenRefreshEndpoint(Optional tokenRefreshEndpoint) { + Utils.checkNotNull(tokenRefreshEndpoint, "tokenRefreshEndpoint"); + this.tokenRefreshEndpoint = tokenRefreshEndpoint; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -305,29 +373,25 @@ public boolean equals(java.lang.Object o) { } SourceAppleSearchAds other = (SourceAppleSearchAds) o; return - Objects.deepEquals(this.backoffFactor, other.backoffFactor) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.lookbackWindow, other.lookbackWindow) && - Objects.deepEquals(this.orgId, other.orgId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.timezone, other.timezone); + Utils.enhancedDeepEquals(this.backoffFactor, other.backoffFactor) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.lookbackWindow, other.lookbackWindow) && + Utils.enhancedDeepEquals(this.orgId, other.orgId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.timezone, other.timezone) && + Utils.enhancedDeepEquals(this.tokenRefreshEndpoint, other.tokenRefreshEndpoint); } @Override public int hashCode() { - return Objects.hash( - backoffFactor, - clientId, - clientSecret, - endDate, - lookbackWindow, - orgId, - sourceType, - startDate, - timezone); + return Utils.enhancedHash( + backoffFactor, clientId, clientSecret, + endDate, lookbackWindow, orgId, + sourceType, startDate, timezone, + tokenRefreshEndpoint); } @Override @@ -341,33 +405,39 @@ public String toString() { "orgId", orgId, "sourceType", sourceType, "startDate", startDate, - "timezone", timezone); + "timezone", timezone, + "tokenRefreshEndpoint", tokenRefreshEndpoint); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional backoffFactor; - + private String clientId; - + private String clientSecret; - + private Optional endDate = Optional.empty(); - + private Optional lookbackWindow; - + private Long orgId; - + private String startDate; - + private Optional timezone; - + + private Optional tokenRefreshEndpoint; + private Builder() { // force use of static builder() method } + /** - * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + * This factor factor determines the delay increase factor between retryable failures. Valid values are + * integers between 1 and 20. */ public Builder backoffFactor(long backoffFactor) { Utils.checkNotNull(backoffFactor, "backoffFactor"); @@ -376,7 +446,8 @@ public Builder backoffFactor(long backoffFactor) { } /** - * This factor factor determines the delay increase factor between retryable failures. Valid values are integers between 1 and 20. + * This factor factor determines the delay increase factor between retryable failures. Valid values are + * integers between 1 and 20. */ public Builder backoffFactor(Optional backoffFactor) { Utils.checkNotNull(backoffFactor, "backoffFactor"); @@ -384,8 +455,10 @@ public Builder backoffFactor(Optional backoffFactor) { return this; } + /** - * A user identifier for the token request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> + * A user identifier for the token request. See here */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -393,8 +466,10 @@ public Builder clientId(String clientId) { return this; } + /** - * A string that authenticates the user’s setup request. See <a href="https://developer.apple.com/documentation/apple_search_ads/implementing_oauth_for_the_apple_search_ads_api">here</a> + * A string that authenticates the user’s setup request. See here */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -402,6 +477,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Data is retrieved until that date (included) */ @@ -420,8 +496,10 @@ public Builder endDate(Optional endDate) { return this; } + /** - * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order + * to shorten sync durations, at the cost of missing late data attributions. */ public Builder lookbackWindow(long lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -430,7 +508,8 @@ public Builder lookbackWindow(long lookbackWindow) { } /** - * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order to shorten sync durations, at the cost of missing late data attributions. + * Apple Search Ads uses a 30-day attribution window. However, you may consider smaller values in order + * to shorten sync durations, at the cost of missing late data attributions. */ public Builder lookbackWindow(Optional lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -438,8 +517,10 @@ public Builder lookbackWindow(Optional lookbackWindow) { return this; } + /** - * The identifier of the organization that owns the campaign. Your Org Id is the same as your account in the Apple Search Ads UI. + * The identifier of the organization that owns the campaign. Your Org Id is the same as your account + * in the Apple Search Ads UI. */ public Builder orgId(long orgId) { Utils.checkNotNull(orgId, "orgId"); @@ -447,6 +528,7 @@ public Builder orgId(long orgId) { return this; } + /** * Start getting data from that date. */ @@ -456,8 +538,10 @@ public Builder startDate(String startDate) { return this; } + /** - * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated Universal Time. Default is UTC. + * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated + * Universal Time. Default is UTC. */ public Builder timezone(TimeZone timezone) { Utils.checkNotNull(timezone, "timezone"); @@ -466,14 +550,36 @@ public Builder timezone(TimeZone timezone) { } /** - * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated Universal Time. Default is UTC. + * The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated + * Universal Time. Default is UTC. */ public Builder timezone(Optional timezone) { Utils.checkNotNull(timezone, "timezone"); this.timezone = timezone; return this; } - + + + /** + * Token Refresh Endpoint. You should override the default value in scenarios where it's required to + * proxy requests to Apple's token endpoint + */ + public Builder tokenRefreshEndpoint(String tokenRefreshEndpoint) { + Utils.checkNotNull(tokenRefreshEndpoint, "tokenRefreshEndpoint"); + this.tokenRefreshEndpoint = Optional.ofNullable(tokenRefreshEndpoint); + return this; + } + + /** + * Token Refresh Endpoint. You should override the default value in scenarios where it's required to + * proxy requests to Apple's token endpoint + */ + public Builder tokenRefreshEndpoint(Optional tokenRefreshEndpoint) { + Utils.checkNotNull(tokenRefreshEndpoint, "tokenRefreshEndpoint"); + this.tokenRefreshEndpoint = tokenRefreshEndpoint; + return this; + } + public SourceAppleSearchAds build() { if (backoffFactor == null) { backoffFactor = _SINGLETON_VALUE_BackoffFactor.value(); @@ -484,17 +590,17 @@ public SourceAppleSearchAds build() { if (timezone == null) { timezone = _SINGLETON_VALUE_Timezone.value(); } + if (tokenRefreshEndpoint == null) { + tokenRefreshEndpoint = _SINGLETON_VALUE_TokenRefreshEndpoint.value(); + } + return new SourceAppleSearchAds( - backoffFactor, - clientId, - clientSecret, - endDate, - lookbackWindow, - orgId, - startDate, - timezone); + backoffFactor, clientId, clientSecret, + endDate, lookbackWindow, orgId, + startDate, timezone, tokenRefreshEndpoint); } + private static final LazySingletonValue> _SINGLETON_VALUE_BackoffFactor = new LazySingletonValue<>( "backoff_factor", @@ -518,5 +624,11 @@ public SourceAppleSearchAds build() { "timezone", "\"UTC\"", new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_TokenRefreshEndpoint = + new LazySingletonValue<>( + "token_refresh_endpoint", + "\"https://appleid.apple.com/auth/oauth2/token?grant_type=client_credentials&scope=searchadsorg\"", + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAppsflyer.java b/src/main/java/com/airbyte/api/models/shared/SourceAppsflyer.java new file mode 100644 index 000000000..392fdfa8f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceAppsflyer.java @@ -0,0 +1,305 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class SourceAppsflyer { + /** + * Pull API token for authentication. If you change the account admin, the token changes, and you must + * update scripts with the new token. Get the API token in the + * Dashboard. + */ + @JsonProperty("api_token") + private String apiToken; + + /** + * App identifier as found in AppsFlyer. + */ + @JsonProperty("app_id") + private String appId; + + + @JsonProperty("sourceType") + private Appsflyer sourceType; + + /** + * The default value to use if no bookmark exists for an endpoint. Raw Reports historical lookback is + * limited to 90 days. + */ + @JsonProperty("start_date") + private String startDate; + + /** + * Time zone in which date times are stored. The project timezone may be found in the App settings in + * the AppsFlyer console. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timezone") + private Optional timezone; + + @JsonCreator + public SourceAppsflyer( + @JsonProperty("api_token") String apiToken, + @JsonProperty("app_id") String appId, + @JsonProperty("start_date") String startDate, + @JsonProperty("timezone") Optional timezone) { + Utils.checkNotNull(apiToken, "apiToken"); + Utils.checkNotNull(appId, "appId"); + Utils.checkNotNull(startDate, "startDate"); + Utils.checkNotNull(timezone, "timezone"); + this.apiToken = apiToken; + this.appId = appId; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + this.timezone = timezone; + } + + public SourceAppsflyer( + String apiToken, + String appId, + String startDate) { + this(apiToken, appId, startDate, + Optional.empty()); + } + + /** + * Pull API token for authentication. If you change the account admin, the token changes, and you must + * update scripts with the new token. Get the API token in the + * Dashboard. + */ + @JsonIgnore + public String apiToken() { + return apiToken; + } + + /** + * App identifier as found in AppsFlyer. + */ + @JsonIgnore + public String appId() { + return appId; + } + + @JsonIgnore + public Appsflyer sourceType() { + return sourceType; + } + + /** + * The default value to use if no bookmark exists for an endpoint. Raw Reports historical lookback is + * limited to 90 days. + */ + @JsonIgnore + public String startDate() { + return startDate; + } + + /** + * Time zone in which date times are stored. The project timezone may be found in the App settings in + * the AppsFlyer console. + */ + @JsonIgnore + public Optional timezone() { + return timezone; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Pull API token for authentication. If you change the account admin, the token changes, and you must + * update scripts with the new token. Get the API token in the + * Dashboard. + */ + public SourceAppsflyer withApiToken(String apiToken) { + Utils.checkNotNull(apiToken, "apiToken"); + this.apiToken = apiToken; + return this; + } + + /** + * App identifier as found in AppsFlyer. + */ + public SourceAppsflyer withAppId(String appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = appId; + return this; + } + + /** + * The default value to use if no bookmark exists for an endpoint. Raw Reports historical lookback is + * limited to 90 days. + */ + public SourceAppsflyer withStartDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * Time zone in which date times are stored. The project timezone may be found in the App settings in + * the AppsFlyer console. + */ + public SourceAppsflyer withTimezone(String timezone) { + Utils.checkNotNull(timezone, "timezone"); + this.timezone = Optional.ofNullable(timezone); + return this; + } + + + /** + * Time zone in which date times are stored. The project timezone may be found in the App settings in + * the AppsFlyer console. + */ + public SourceAppsflyer withTimezone(Optional timezone) { + Utils.checkNotNull(timezone, "timezone"); + this.timezone = timezone; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceAppsflyer other = (SourceAppsflyer) o; + return + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.appId, other.appId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.timezone, other.timezone); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + apiToken, appId, sourceType, + startDate, timezone); + } + + @Override + public String toString() { + return Utils.toString(SourceAppsflyer.class, + "apiToken", apiToken, + "appId", appId, + "sourceType", sourceType, + "startDate", startDate, + "timezone", timezone); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String apiToken; + + private String appId; + + private String startDate; + + private Optional timezone; + + private Builder() { + // force use of static builder() method + } + + + /** + * Pull API token for authentication. If you change the account admin, the token changes, and you must + * update scripts with the new token. Get the API token in the + * Dashboard. + */ + public Builder apiToken(String apiToken) { + Utils.checkNotNull(apiToken, "apiToken"); + this.apiToken = apiToken; + return this; + } + + + /** + * App identifier as found in AppsFlyer. + */ + public Builder appId(String appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = appId; + return this; + } + + + /** + * The default value to use if no bookmark exists for an endpoint. Raw Reports historical lookback is + * limited to 90 days. + */ + public Builder startDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + + /** + * Time zone in which date times are stored. The project timezone may be found in the App settings in + * the AppsFlyer console. + */ + public Builder timezone(String timezone) { + Utils.checkNotNull(timezone, "timezone"); + this.timezone = Optional.ofNullable(timezone); + return this; + } + + /** + * Time zone in which date times are stored. The project timezone may be found in the App settings in + * the AppsFlyer console. + */ + public Builder timezone(Optional timezone) { + Utils.checkNotNull(timezone, "timezone"); + this.timezone = timezone; + return this; + } + + public SourceAppsflyer build() { + if (timezone == null) { + timezone = _SINGLETON_VALUE_Timezone.value(); + } + + return new SourceAppsflyer( + apiToken, appId, startDate, + timezone); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"appsflyer\"", + new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Timezone = + new LazySingletonValue<>( + "timezone", + "\"UTC\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceApptivo.java b/src/main/java/com/airbyte/api/models/shared/SourceApptivo.java index 27f368bb4..87cff08c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceApptivo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceApptivo.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceApptivo { @@ -24,6 +24,7 @@ public class SourceApptivo { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Apptivo sourceType; @@ -56,9 +57,10 @@ public Apptivo sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceApptivo withAccessKey(String accessKey) { Utils.checkNotNull(accessKey, "accessKey"); @@ -75,7 +77,6 @@ public SourceApptivo withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +87,15 @@ public boolean equals(java.lang.Object o) { } SourceApptivo other = (SourceApptivo) o; return - Objects.deepEquals(this.accessKey, other.accessKey) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accessKey, other.accessKey) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accessKey, - apiKey, - sourceType); + return Utils.enhancedHash( + accessKey, apiKey, sourceType); } @Override @@ -106,23 +105,26 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKey; - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder accessKey(String accessKey) { Utils.checkNotNull(accessKey, "accessKey"); this.accessKey = accessKey; return this; } + /** * API key to use. Find it in your Apptivo account under Business Settings -> API Access. */ @@ -131,13 +133,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceApptivo build() { + return new SourceApptivo( - accessKey, - apiKey); + accessKey, apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAsana.java b/src/main/java/com/airbyte/api/models/shared/SourceAsana.java index 76a8457a8..9646cb143 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsana.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsana.java @@ -17,11 +17,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceAsana { +public class SourceAsana { /** * Choose how to authenticate to Github */ @@ -30,7 +29,9 @@ public class SourceAsana { private Optional credentials; /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API + * docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("num_workers") @@ -43,6 +44,7 @@ public class SourceAsana { @JsonProperty("organization_export_ids") private Optional> organizationExportIds; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceType") private Optional sourceType; @@ -75,7 +77,9 @@ public Optional credentials() { } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API + * docs. */ @JsonIgnore public Optional numWorkers() { @@ -97,9 +101,10 @@ public Optional sourceType() { return (Optional) sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Choose how to authenticate to Github @@ -110,6 +115,7 @@ public SourceAsana withCredentials(AuthenticationMechanism credentials) { return this; } + /** * Choose how to authenticate to Github */ @@ -120,7 +126,9 @@ public SourceAsana withCredentials(Optional c } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API + * docs. */ public SourceAsana withNumWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -128,8 +136,11 @@ public SourceAsana withNumWorkers(long numWorkers) { return this; } + /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API + * docs. */ public SourceAsana withNumWorkers(Optional numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -146,6 +157,7 @@ public SourceAsana withOrganizationExportIds(List organizationExportIds) return this; } + /** * Globally unique identifiers for the organization exports */ @@ -155,7 +167,6 @@ public SourceAsana withOrganizationExportIds(Optional> or return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -166,18 +177,16 @@ public boolean equals(java.lang.Object o) { } SourceAsana other = (SourceAsana) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.numWorkers, other.numWorkers) && - Objects.deepEquals(this.organizationExportIds, other.organizationExportIds) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.organizationExportIds, other.organizationExportIds) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - credentials, - numWorkers, - organizationExportIds, + return Utils.enhancedHash( + credentials, numWorkers, organizationExportIds, sourceType); } @@ -189,19 +198,21 @@ public String toString() { "organizationExportIds", organizationExportIds, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Optional numWorkers; - + private Optional> organizationExportIds = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Choose how to authenticate to Github */ @@ -220,8 +231,11 @@ public Builder credentials(Optional credentia return this; } + /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API + * docs. */ public Builder numWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -230,7 +244,9 @@ public Builder numWorkers(long numWorkers) { } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API <a href="https://developers.asana.com/docs/rate-limits">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Asana pricing plan. More info about the rate limit tiers can be found on Asana's API + * docs. */ public Builder numWorkers(Optional numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -238,6 +254,7 @@ public Builder numWorkers(Optional numWorkers) { return this; } + /** * Globally unique identifiers for the organization exports */ @@ -255,17 +272,17 @@ public Builder organizationExportIds(Optional> organizati this.organizationExportIds = organizationExportIds; return this; } - + public SourceAsana build() { if (numWorkers == null) { numWorkers = _SINGLETON_VALUE_NumWorkers.value(); } + return new SourceAsana( - credentials, - numWorkers, - organizationExportIds); + credentials, numWorkers, organizationExportIds); } + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = new LazySingletonValue<>( "num_workers", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java b/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java index 2efd1a6fc..1fd2b6f71 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsanaAsana.java @@ -14,7 +14,7 @@ public enum SourceAsanaAsana { @JsonValue private final String value; - private SourceAsanaAsana(String value) { + SourceAsanaAsana(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAsanaCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceAsanaCredentialsTitle.java index ce74e2e91..9d59cf5e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsanaCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsanaCredentialsTitle.java @@ -19,7 +19,7 @@ public enum SourceAsanaCredentialsTitle { @JsonValue private final String value; - private SourceAsanaCredentialsTitle(String value) { + SourceAsanaCredentialsTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAsanaSchemasCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceAsanaSchemasCredentialsTitle.java index 6fd4d14a0..2865dad38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAsanaSchemasCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAsanaSchemasCredentialsTitle.java @@ -19,7 +19,7 @@ public enum SourceAsanaSchemasCredentialsTitle { @JsonValue private final String value; - private SourceAsanaSchemasCredentialsTitle(String value) { + SourceAsanaSchemasCredentialsTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAshby.java b/src/main/java/com/airbyte/api/models/shared/SourceAshby.java index faf14abaa..7ec00f181 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAshby.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAshby.java @@ -11,21 +11,23 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceAshby { +public class SourceAshby { /** - * The Ashby API Key, see <a href=\"https://developers.ashbyhq.com/reference/authentication\">doc</a> here. + * The Ashby API Key, see <a + * href=\"https://developers.ashbyhq.com/reference/authentication\">doc</a> here. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Ashby sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private String startDate; @@ -42,7 +44,8 @@ public SourceAshby( } /** - * The Ashby API Key, see <a href=\"https://developers.ashbyhq.com/reference/authentication\">doc</a> here. + * The Ashby API Key, see <a + * href=\"https://developers.ashbyhq.com/reference/authentication\">doc</a> here. */ @JsonIgnore public String apiKey() { @@ -55,19 +58,22 @@ public Ashby sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Ashby API Key, see <a href=\"https://developers.ashbyhq.com/reference/authentication\">doc</a> here. + * The Ashby API Key, see <a + * href=\"https://developers.ashbyhq.com/reference/authentication\">doc</a> here. */ public SourceAshby withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -76,7 +82,8 @@ public SourceAshby withApiKey(String apiKey) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceAshby withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -84,7 +91,6 @@ public SourceAshby withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +101,15 @@ public boolean equals(java.lang.Object o) { } SourceAshby other = (SourceAshby) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -115,19 +119,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String startDate; - + private Builder() { // force use of static builder() method } + /** - * The Ashby API Key, see <a href=\"https://developers.ashbyhq.com/reference/authentication\">doc</a> here. + * The Ashby API Key, see <a + * href=\"https://developers.ashbyhq.com/reference/authentication\">doc</a> here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -135,21 +142,24 @@ public Builder apiKey(String apiKey) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceAshby build() { + return new SourceAshby( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAssemblyai.java b/src/main/java/com/airbyte/api/models/shared/SourceAssemblyai.java index 2c816cfc7..926c80694 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAssemblyai.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAssemblyai.java @@ -15,13 +15,13 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceAssemblyai { +public class SourceAssemblyai { /** - * Your AssemblyAI API key. You can find it in the AssemblyAI dashboard at https://www.assemblyai.com/app/api-keys. + * Your AssemblyAI API key. You can find it in the AssemblyAI dashboard at + * https://www.assemblyai.com/app/api-keys. */ @JsonProperty("api_key") private String apiKey; @@ -33,9 +33,11 @@ public class SourceAssemblyai { @JsonProperty("request_id") private Optional requestId; + @JsonProperty("sourceType") private Assemblyai sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -66,11 +68,13 @@ public SourceAssemblyai( public SourceAssemblyai( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), startDate, Optional.empty()); + this(apiKey, Optional.empty(), startDate, + Optional.empty()); } /** - * Your AssemblyAI API key. You can find it in the AssemblyAI dashboard at https://www.assemblyai.com/app/api-keys. + * Your AssemblyAI API key. You can find it in the AssemblyAI dashboard at + * https://www.assemblyai.com/app/api-keys. */ @JsonIgnore public String apiKey() { @@ -104,12 +108,14 @@ public Optional subtitleFormat() { return (Optional) subtitleFormat; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your AssemblyAI API key. You can find it in the AssemblyAI dashboard at https://www.assemblyai.com/app/api-keys. + * Your AssemblyAI API key. You can find it in the AssemblyAI dashboard at + * https://www.assemblyai.com/app/api-keys. */ public SourceAssemblyai withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -126,6 +132,7 @@ public SourceAssemblyai withRequestId(String requestId) { return this; } + /** * The request ID for LeMur responses */ @@ -150,6 +157,7 @@ public SourceAssemblyai withSubtitleFormat(SubtitleFormat subtitleFormat) { return this; } + /** * The subtitle format for transcript_subtitle stream */ @@ -159,7 +167,6 @@ public SourceAssemblyai withSubtitleFormat(Optional su return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -170,21 +177,18 @@ public boolean equals(java.lang.Object o) { } SourceAssemblyai other = (SourceAssemblyai) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.requestId, other.requestId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.subtitleFormat, other.subtitleFormat); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.requestId, other.requestId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.subtitleFormat, other.subtitleFormat); } @Override public int hashCode() { - return Objects.hash( - apiKey, - requestId, - sourceType, - startDate, - subtitleFormat); + return Utils.enhancedHash( + apiKey, requestId, sourceType, + startDate, subtitleFormat); } @Override @@ -196,23 +200,26 @@ public String toString() { "startDate", startDate, "subtitleFormat", subtitleFormat); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional requestId = Optional.empty(); - + private OffsetDateTime startDate; - + private Optional subtitleFormat; - + private Builder() { // force use of static builder() method } + /** - * Your AssemblyAI API key. You can find it in the AssemblyAI dashboard at https://www.assemblyai.com/app/api-keys. + * Your AssemblyAI API key. You can find it in the AssemblyAI dashboard at + * https://www.assemblyai.com/app/api-keys. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -220,6 +227,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The request ID for LeMur responses */ @@ -238,12 +246,14 @@ public Builder requestId(Optional requestId) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * The subtitle format for transcript_subtitle stream */ @@ -261,18 +271,18 @@ public Builder subtitleFormat(Optional subtitleFormat) this.subtitleFormat = subtitleFormat; return this; } - + public SourceAssemblyai build() { if (subtitleFormat == null) { subtitleFormat = _SINGLETON_VALUE_SubtitleFormat.value(); } + return new SourceAssemblyai( - apiKey, - requestId, - startDate, + apiKey, requestId, startDate, subtitleFormat); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAuth0.java b/src/main/java/com/airbyte/api/models/shared/SourceAuth0.java index 1cf6fe09a..581a72077 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAuth0.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAuth0.java @@ -13,25 +13,28 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceAuth0 { +public class SourceAuth0 { /** - * The Authentication API is served over HTTPS. All URLs referenced in the documentation have the following base `https://YOUR_DOMAIN` + * The Authentication API is served over HTTPS. All URLs referenced in the documentation have the + * following base `https://YOUR_DOMAIN` */ @JsonProperty("base_url") private String baseUrl; + @JsonProperty("credentials") private SourceAuth0AuthenticationMethod credentials; + @JsonProperty("sourceType") private Auth0 sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -58,7 +61,8 @@ public SourceAuth0( } /** - * The Authentication API is served over HTTPS. All URLs referenced in the documentation have the following base `https://YOUR_DOMAIN` + * The Authentication API is served over HTTPS. All URLs referenced in the documentation have the + * following base `https://YOUR_DOMAIN` */ @JsonIgnore public String baseUrl() { @@ -76,19 +80,22 @@ public Auth0 sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Authentication API is served over HTTPS. All URLs referenced in the documentation have the following base `https://YOUR_DOMAIN` + * The Authentication API is served over HTTPS. All URLs referenced in the documentation have the + * following base `https://YOUR_DOMAIN` */ public SourceAuth0 withBaseUrl(String baseUrl) { Utils.checkNotNull(baseUrl, "baseUrl"); @@ -103,7 +110,8 @@ public SourceAuth0 withCredentials(SourceAuth0AuthenticationMethod credentials) } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceAuth0 withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -111,8 +119,10 @@ public SourceAuth0 withStartDate(String startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceAuth0 withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -120,7 +130,6 @@ public SourceAuth0 withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -131,18 +140,16 @@ public boolean equals(java.lang.Object o) { } SourceAuth0 other = (SourceAuth0) o; return - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - baseUrl, - credentials, - sourceType, + return Utils.enhancedHash( + baseUrl, credentials, sourceType, startDate); } @@ -154,21 +161,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String baseUrl; - + private SourceAuth0AuthenticationMethod credentials; - + private Optional startDate; - + private Builder() { // force use of static builder() method } + /** - * The Authentication API is served over HTTPS. All URLs referenced in the documentation have the following base `https://YOUR_DOMAIN` + * The Authentication API is served over HTTPS. All URLs referenced in the documentation have the + * following base `https://YOUR_DOMAIN` */ public Builder baseUrl(String baseUrl) { Utils.checkNotNull(baseUrl, "baseUrl"); @@ -176,14 +186,17 @@ public Builder baseUrl(String baseUrl) { return this; } + public Builder credentials(SourceAuth0AuthenticationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -192,24 +205,25 @@ public Builder startDate(String startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceAuth0 build() { if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } + return new SourceAuth0( - baseUrl, - credentials, - startDate); + baseUrl, credentials, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAuth0AuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAuth0AuthenticationMethod.java index cb324db16..4ffdb2c9e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAuth0AuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAuth0AuthenticationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceAuth0AuthenticationMethod._Deserializer.class) public class SourceAuth0AuthenticationMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceAuth0AuthenticationMethod other = (SourceAuth0AuthenticationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java index 6141fd424..b722dc09c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasAuthenticationMethod.java @@ -14,7 +14,7 @@ public enum SourceAuth0SchemasAuthenticationMethod { @JsonValue private final String value; - private SourceAuth0SchemasAuthenticationMethod(String value) { + SourceAuth0SchemasAuthenticationMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java index 62da6fd9d..c73bc038b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAuth0SchemasCredentialsAuthenticationMethod.java @@ -14,7 +14,7 @@ public enum SourceAuth0SchemasCredentialsAuthenticationMethod { @JsonValue private final String value; - private SourceAuth0SchemasCredentialsAuthenticationMethod(String value) { + SourceAuth0SchemasCredentialsAuthenticationMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAviationstack.java b/src/main/java/com/airbyte/api/models/shared/SourceAviationstack.java index e6e14c61b..dfda3c868 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAviationstack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAviationstack.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceAviationstack { +public class SourceAviationstack { /** - * Your unique API key for authenticating with the Aviation API. You can find it in your Aviation account dashboard at https://aviationstack.com/dashboard + * Your unique API key for authenticating with the Aviation API. You can find it in your Aviation + * account dashboard at https://aviationstack.com/dashboard */ @JsonProperty("access_key") private String accessKey; + @JsonProperty("sourceType") private Aviationstack sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public SourceAviationstack( } /** - * Your unique API key for authenticating with the Aviation API. You can find it in your Aviation account dashboard at https://aviationstack.com/dashboard + * Your unique API key for authenticating with the Aviation API. You can find it in your Aviation + * account dashboard at https://aviationstack.com/dashboard */ @JsonIgnore public String accessKey() { @@ -57,12 +60,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your unique API key for authenticating with the Aviation API. You can find it in your Aviation account dashboard at https://aviationstack.com/dashboard + * Your unique API key for authenticating with the Aviation API. You can find it in your Aviation + * account dashboard at https://aviationstack.com/dashboard */ public SourceAviationstack withAccessKey(String accessKey) { Utils.checkNotNull(accessKey, "accessKey"); @@ -76,7 +81,6 @@ public SourceAviationstack withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceAviationstack other = (SourceAviationstack) o; return - Objects.deepEquals(this.accessKey, other.accessKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessKey, other.accessKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessKey, - sourceType, - startDate); + return Utils.enhancedHash( + accessKey, sourceType, startDate); } @Override @@ -107,19 +109,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your unique API key for authenticating with the Aviation API. You can find it in your Aviation account dashboard at https://aviationstack.com/dashboard + * Your unique API key for authenticating with the Aviation API. You can find it in your Aviation + * account dashboard at https://aviationstack.com/dashboard */ public Builder accessKey(String accessKey) { Utils.checkNotNull(accessKey, "accessKey"); @@ -127,18 +132,20 @@ public Builder accessKey(String accessKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceAviationstack build() { + return new SourceAviationstack( - accessKey, - startDate); + accessKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAwinAdvertiser.java b/src/main/java/com/airbyte/api/models/shared/SourceAwinAdvertiser.java new file mode 100644 index 000000000..ac2fbab82 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceAwinAdvertiser.java @@ -0,0 +1,338 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.time.LocalDate; +import java.util.Optional; + + +public class SourceAwinAdvertiser { + /** + * Your Awin Advertiser ID. You can find this in your Awin dashboard or account settings. + */ + @JsonProperty("advertiserId") + private String advertiserId; + + /** + * Your Awin API key. Generate this from your Awin account under API Credentials. + */ + @JsonProperty("api_key") + private String apiKey; + + /** + * Number of days to look back on each sync to catch any updates to existing records. + */ + @JsonProperty("lookback_days") + private long lookbackDays; + + + @JsonProperty("sourceType") + private AwinAdvertiser sourceType; + + /** + * Start date for data replication in YYYY-MM-DD format + */ + @JsonProperty("start_date") + private LocalDate startDate; + + /** + * The time window size for each API request in ISO8601 duration format. + * For the campaign performance stream, Awin API explicitly limits the period between startDate and + * endDate to 400 days maximum. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("step_increment") + private Optional stepIncrement; + + @JsonCreator + public SourceAwinAdvertiser( + @JsonProperty("advertiserId") String advertiserId, + @JsonProperty("api_key") String apiKey, + @JsonProperty("lookback_days") long lookbackDays, + @JsonProperty("start_date") LocalDate startDate, + @JsonProperty("step_increment") Optional stepIncrement) { + Utils.checkNotNull(advertiserId, "advertiserId"); + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(lookbackDays, "lookbackDays"); + Utils.checkNotNull(startDate, "startDate"); + Utils.checkNotNull(stepIncrement, "stepIncrement"); + this.advertiserId = advertiserId; + this.apiKey = apiKey; + this.lookbackDays = lookbackDays; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + this.stepIncrement = stepIncrement; + } + + public SourceAwinAdvertiser( + String advertiserId, + String apiKey, + long lookbackDays, + LocalDate startDate) { + this(advertiserId, apiKey, lookbackDays, + startDate, Optional.empty()); + } + + /** + * Your Awin Advertiser ID. You can find this in your Awin dashboard or account settings. + */ + @JsonIgnore + public String advertiserId() { + return advertiserId; + } + + /** + * Your Awin API key. Generate this from your Awin account under API Credentials. + */ + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * Number of days to look back on each sync to catch any updates to existing records. + */ + @JsonIgnore + public long lookbackDays() { + return lookbackDays; + } + + @JsonIgnore + public AwinAdvertiser sourceType() { + return sourceType; + } + + /** + * Start date for data replication in YYYY-MM-DD format + */ + @JsonIgnore + public LocalDate startDate() { + return startDate; + } + + /** + * The time window size for each API request in ISO8601 duration format. + * For the campaign performance stream, Awin API explicitly limits the period between startDate and + * endDate to 400 days maximum. + */ + @JsonIgnore + public Optional stepIncrement() { + return stepIncrement; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Your Awin Advertiser ID. You can find this in your Awin dashboard or account settings. + */ + public SourceAwinAdvertiser withAdvertiserId(String advertiserId) { + Utils.checkNotNull(advertiserId, "advertiserId"); + this.advertiserId = advertiserId; + return this; + } + + /** + * Your Awin API key. Generate this from your Awin account under API Credentials. + */ + public SourceAwinAdvertiser withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * Number of days to look back on each sync to catch any updates to existing records. + */ + public SourceAwinAdvertiser withLookbackDays(long lookbackDays) { + Utils.checkNotNull(lookbackDays, "lookbackDays"); + this.lookbackDays = lookbackDays; + return this; + } + + /** + * Start date for data replication in YYYY-MM-DD format + */ + public SourceAwinAdvertiser withStartDate(LocalDate startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * The time window size for each API request in ISO8601 duration format. + * For the campaign performance stream, Awin API explicitly limits the period between startDate and + * endDate to 400 days maximum. + */ + public SourceAwinAdvertiser withStepIncrement(String stepIncrement) { + Utils.checkNotNull(stepIncrement, "stepIncrement"); + this.stepIncrement = Optional.ofNullable(stepIncrement); + return this; + } + + + /** + * The time window size for each API request in ISO8601 duration format. + * For the campaign performance stream, Awin API explicitly limits the period between startDate and + * endDate to 400 days maximum. + */ + public SourceAwinAdvertiser withStepIncrement(Optional stepIncrement) { + Utils.checkNotNull(stepIncrement, "stepIncrement"); + this.stepIncrement = stepIncrement; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceAwinAdvertiser other = (SourceAwinAdvertiser) o; + return + Utils.enhancedDeepEquals(this.advertiserId, other.advertiserId) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.lookbackDays, other.lookbackDays) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.stepIncrement, other.stepIncrement); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + advertiserId, apiKey, lookbackDays, + sourceType, startDate, stepIncrement); + } + + @Override + public String toString() { + return Utils.toString(SourceAwinAdvertiser.class, + "advertiserId", advertiserId, + "apiKey", apiKey, + "lookbackDays", lookbackDays, + "sourceType", sourceType, + "startDate", startDate, + "stepIncrement", stepIncrement); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String advertiserId; + + private String apiKey; + + private Long lookbackDays; + + private LocalDate startDate; + + private Optional stepIncrement; + + private Builder() { + // force use of static builder() method + } + + + /** + * Your Awin Advertiser ID. You can find this in your Awin dashboard or account settings. + */ + public Builder advertiserId(String advertiserId) { + Utils.checkNotNull(advertiserId, "advertiserId"); + this.advertiserId = advertiserId; + return this; + } + + + /** + * Your Awin API key. Generate this from your Awin account under API Credentials. + */ + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + + /** + * Number of days to look back on each sync to catch any updates to existing records. + */ + public Builder lookbackDays(long lookbackDays) { + Utils.checkNotNull(lookbackDays, "lookbackDays"); + this.lookbackDays = lookbackDays; + return this; + } + + + /** + * Start date for data replication in YYYY-MM-DD format + */ + public Builder startDate(LocalDate startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + + /** + * The time window size for each API request in ISO8601 duration format. + * For the campaign performance stream, Awin API explicitly limits the period between startDate and + * endDate to 400 days maximum. + */ + public Builder stepIncrement(String stepIncrement) { + Utils.checkNotNull(stepIncrement, "stepIncrement"); + this.stepIncrement = Optional.ofNullable(stepIncrement); + return this; + } + + /** + * The time window size for each API request in ISO8601 duration format. + * For the campaign performance stream, Awin API explicitly limits the period between startDate and + * endDate to 400 days maximum. + */ + public Builder stepIncrement(Optional stepIncrement) { + Utils.checkNotNull(stepIncrement, "stepIncrement"); + this.stepIncrement = stepIncrement; + return this; + } + + public SourceAwinAdvertiser build() { + if (stepIncrement == null) { + stepIncrement = _SINGLETON_VALUE_StepIncrement.value(); + } + + return new SourceAwinAdvertiser( + advertiserId, apiKey, lookbackDays, + startDate, stepIncrement); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"awin-advertiser\"", + new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StepIncrement = + new LazySingletonValue<>( + "step_increment", + "\"P400D\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java b/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java index bb2994fd4..c9e9e6eb4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAwsCloudtrail.java @@ -15,39 +15,46 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourceAwsCloudtrail { +public class SourceAwsCloudtrail { /** - * AWS CloudTrail Access Key ID. See the <a href="https://docs.airbyte.com/integrations/sources/aws-cloudtrail">docs</a> for more information on how to obtain this key. + * AWS CloudTrail Access Key ID. See the docs for more information on + * how to obtain this key. */ @JsonProperty("aws_key_id") private String awsKeyId; /** - * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. + * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline + * during client initialization, this property is named region_name. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("aws_region_name") private Optional awsRegionName; /** - * AWS CloudTrail Access Key ID. See the <a href="https://docs.airbyte.com/integrations/sources/aws-cloudtrail">docs</a> for more information on how to obtain this key. + * AWS CloudTrail Access Key ID. See the docs for more information on + * how to obtain this key. */ @JsonProperty("aws_secret_key") private String awsSecretKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("lookup_attributes_filter") private Optional lookupAttributesFilter; + @JsonProperty("sourceType") private AwsCloudtrail sourceType; /** - * The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. + * The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days + * only. Format: YYYY-MM-DD. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -76,11 +83,14 @@ public SourceAwsCloudtrail( public SourceAwsCloudtrail( String awsKeyId, String awsSecretKey) { - this(awsKeyId, Optional.empty(), awsSecretKey, Optional.empty(), Optional.empty()); + this(awsKeyId, Optional.empty(), awsSecretKey, + Optional.empty(), Optional.empty()); } /** - * AWS CloudTrail Access Key ID. See the <a href="https://docs.airbyte.com/integrations/sources/aws-cloudtrail">docs</a> for more information on how to obtain this key. + * AWS CloudTrail Access Key ID. See the docs for more information on + * how to obtain this key. */ @JsonIgnore public String awsKeyId() { @@ -88,7 +98,8 @@ public String awsKeyId() { } /** - * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. + * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline + * during client initialization, this property is named region_name. */ @JsonIgnore public Optional awsRegionName() { @@ -96,7 +107,9 @@ public Optional awsRegionName() { } /** - * AWS CloudTrail Access Key ID. See the <a href="https://docs.airbyte.com/integrations/sources/aws-cloudtrail">docs</a> for more information on how to obtain this key. + * AWS CloudTrail Access Key ID. See the docs for more information on + * how to obtain this key. */ @JsonIgnore public String awsSecretKey() { @@ -115,19 +128,23 @@ public AwsCloudtrail sourceType() { } /** - * The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days only. Format: YYYY-MM-DD. + * The date you would like to replicate data. Data in AWS CloudTrail is available for last 90 days + * only. Format: YYYY-MM-DD. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * AWS CloudTrail Access Key ID. See the <a href="https://docs.airbyte.com/integrations/sources/aws-cloudtrail">docs</a> for more information on how to obtain this key. + * AWS CloudTrail Access Key ID. See the docs for more information on + * how to obtain this key. */ public SourceAwsCloudtrail withAwsKeyId(String awsKeyId) { Utils.checkNotNull(awsKeyId, "awsKeyId"); @@ -136,7 +153,8 @@ public SourceAwsCloudtrail withAwsKeyId(String awsKeyId) { } /** - * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. + * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline + * during client initialization, this property is named region_name. */ public SourceAwsCloudtrail withAwsRegionName(String awsRegionName) { Utils.checkNotNull(awsRegionName, "awsRegionName"); @@ -144,8 +162,10 @@ public SourceAwsCloudtrail withAwsRegionName(String awsRegionName) { return this; } + /** - * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. + * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline + * during client initialization, this property is named region_name. */ public SourceAwsCloudtrail withAwsRegionName(Optional awsRegionName) { Utils.checkNotNull(awsRegionName, "awsRegionName"); @@ -154,7 +174,9 @@ public SourceAwsCloudtrail withAwsRegionName(Optional awsRegionName) { } /** - * AWS CloudTrail Access Key ID. See the <a href="https://docs.airbyte.com/integrations/sources/aws-cloudtrail">docs</a> for more information on how to obtain this key. + * AWS CloudTrail Access Key ID. See the docs for more information on + * how to obtain this key. */ public SourceAwsCloudtrail withAwsSecretKey(String awsSecretKey) { Utils.checkNotNull(awsSecretKey, "awsSecretKey"); @@ -168,6 +190,7 @@ public SourceAwsCloudtrail withLookupAttributesFilter(FilterAppliedWhileFetching return this; } + public SourceAwsCloudtrail withLookupAttributesFilter(Optional lookupAttributesFilter) { Utils.checkNotNull(lookupAttributesFilter, "lookupAttributesFilter"); this.lookupAttributesFilter = lookupAttributesFilter; @@ -175,7 +198,8 @@ public SourceAwsCloudtrail withLookupAttributesFilter(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -192,7 +218,6 @@ public SourceAwsCloudtrail withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -203,23 +228,19 @@ public boolean equals(java.lang.Object o) { } SourceAwsCloudtrail other = (SourceAwsCloudtrail) o; return - Objects.deepEquals(this.awsKeyId, other.awsKeyId) && - Objects.deepEquals(this.awsRegionName, other.awsRegionName) && - Objects.deepEquals(this.awsSecretKey, other.awsSecretKey) && - Objects.deepEquals(this.lookupAttributesFilter, other.lookupAttributesFilter) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.awsKeyId, other.awsKeyId) && + Utils.enhancedDeepEquals(this.awsRegionName, other.awsRegionName) && + Utils.enhancedDeepEquals(this.awsSecretKey, other.awsSecretKey) && + Utils.enhancedDeepEquals(this.lookupAttributesFilter, other.lookupAttributesFilter) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - awsKeyId, - awsRegionName, - awsSecretKey, - lookupAttributesFilter, - sourceType, - startDate); + return Utils.enhancedHash( + awsKeyId, awsRegionName, awsSecretKey, + lookupAttributesFilter, sourceType, startDate); } @Override @@ -232,25 +253,29 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String awsKeyId; - + private Optional awsRegionName; - + private String awsSecretKey; - + private Optional lookupAttributesFilter = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * AWS CloudTrail Access Key ID. See the <a href="https://docs.airbyte.com/integrations/sources/aws-cloudtrail">docs</a> for more information on how to obtain this key. + * AWS CloudTrail Access Key ID. See the docs for more information on + * how to obtain this key. */ public Builder awsKeyId(String awsKeyId) { Utils.checkNotNull(awsKeyId, "awsKeyId"); @@ -258,8 +283,10 @@ public Builder awsKeyId(String awsKeyId) { return this; } + /** - * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. + * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline + * during client initialization, this property is named region_name. */ public Builder awsRegionName(String awsRegionName) { Utils.checkNotNull(awsRegionName, "awsRegionName"); @@ -268,7 +295,8 @@ public Builder awsRegionName(String awsRegionName) { } /** - * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline during client initialization, this property is named region_name. + * The default AWS Region to use, for example, us-west-1 or us-west-2. When specifying a Region inline + * during client initialization, this property is named region_name. */ public Builder awsRegionName(Optional awsRegionName) { Utils.checkNotNull(awsRegionName, "awsRegionName"); @@ -276,8 +304,11 @@ public Builder awsRegionName(Optional awsRegionName) { return this; } + /** - * AWS CloudTrail Access Key ID. See the <a href="https://docs.airbyte.com/integrations/sources/aws-cloudtrail">docs</a> for more information on how to obtain this key. + * AWS CloudTrail Access Key ID. See the docs for more information on + * how to obtain this key. */ public Builder awsSecretKey(String awsSecretKey) { Utils.checkNotNull(awsSecretKey, "awsSecretKey"); @@ -285,6 +316,7 @@ public Builder awsSecretKey(String awsSecretKey) { return this; } + public Builder lookupAttributesFilter(FilterAppliedWhileFetchingRecordsBasedOnAttributeKeyAndAttributeValueWhichWillBeAppendedOnTheRequestBody lookupAttributesFilter) { Utils.checkNotNull(lookupAttributesFilter, "lookupAttributesFilter"); this.lookupAttributesFilter = Optional.ofNullable(lookupAttributesFilter); @@ -297,8 +329,10 @@ public Builder lookupAttributesFilter(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceAwsCloudtrail build() { if (awsRegionName == null) { awsRegionName = _SINGLETON_VALUE_AwsRegionName.value(); } + return new SourceAwsCloudtrail( - awsKeyId, - awsRegionName, - awsSecretKey, - lookupAttributesFilter, - startDate); + awsKeyId, awsRegionName, awsSecretKey, + lookupAttributesFilter, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AwsRegionName = new LazySingletonValue<>( "aws_region_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorage.java index 690766760..442bc2be5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorage.java @@ -15,17 +15,17 @@ import java.lang.String; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * SourceAzureBlobStorage * - *

    NOTE: When this Spec is changed, legacy_config_transformer.py must also be modified to uptake the changes - * because it is responsible for converting legacy Azure Blob Storage v0 configs into v1 configs using the File-Based CDK. + *

    NOTE: When this Spec is changed, legacy_config_transformer.py must also be modified to uptake the + * changes + * because it is responsible for converting legacy Azure Blob Storage v0 configs into v1 configs using + * the File-Based CDK. */ public class SourceAzureBlobStorage { - /** * The account's name of the Azure Blob Storage. */ @@ -39,7 +39,8 @@ public class SourceAzureBlobStorage { private String azureBlobStorageContainerName; /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("azure_blob_storage_endpoint") @@ -51,18 +52,23 @@ public class SourceAzureBlobStorage { @JsonProperty("credentials") private SourceAzureBlobStorageAuthentication credentials; + @JsonProperty("sourceType") private SourceAzureBlobStorageAzureBlobStorage sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonProperty("streams") private List streams; @@ -95,7 +101,8 @@ public SourceAzureBlobStorage( String azureBlobStorageContainerName, SourceAzureBlobStorageAuthentication credentials, List streams) { - this(azureBlobStorageAccountName, azureBlobStorageContainerName, Optional.empty(), credentials, Optional.empty(), streams); + this(azureBlobStorageAccountName, azureBlobStorageContainerName, Optional.empty(), + credentials, Optional.empty(), streams); } /** @@ -115,7 +122,8 @@ public String azureBlobStorageContainerName() { } /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ @JsonIgnore public Optional azureBlobStorageEndpoint() { @@ -136,7 +144,8 @@ public SourceAzureBlobStorageAzureBlobStorage sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonIgnore public Optional startDate() { @@ -144,16 +153,20 @@ public Optional startDate() { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonIgnore public List streams() { return streams; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The account's name of the Azure Blob Storage. @@ -174,7 +187,8 @@ public SourceAzureBlobStorage withAzureBlobStorageContainerName(String azureBlob } /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ public SourceAzureBlobStorage withAzureBlobStorageEndpoint(String azureBlobStorageEndpoint) { Utils.checkNotNull(azureBlobStorageEndpoint, "azureBlobStorageEndpoint"); @@ -182,8 +196,10 @@ public SourceAzureBlobStorage withAzureBlobStorageEndpoint(String azureBlobStora return this; } + /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ public SourceAzureBlobStorage withAzureBlobStorageEndpoint(Optional azureBlobStorageEndpoint) { Utils.checkNotNull(azureBlobStorageEndpoint, "azureBlobStorageEndpoint"); @@ -201,7 +217,8 @@ public SourceAzureBlobStorage withCredentials(SourceAzureBlobStorageAuthenticati } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceAzureBlobStorage withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -209,8 +226,10 @@ public SourceAzureBlobStorage withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceAzureBlobStorage withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -219,7 +238,10 @@ public SourceAzureBlobStorage withStartDate(Optional startDate) } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public SourceAzureBlobStorage withStreams(List streams) { Utils.checkNotNull(streams, "streams"); @@ -227,7 +249,6 @@ public SourceAzureBlobStorage withStreams(List streams) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -238,24 +259,20 @@ public boolean equals(java.lang.Object o) { } SourceAzureBlobStorage other = (SourceAzureBlobStorage) o; return - Objects.deepEquals(this.azureBlobStorageAccountName, other.azureBlobStorageAccountName) && - Objects.deepEquals(this.azureBlobStorageContainerName, other.azureBlobStorageContainerName) && - Objects.deepEquals(this.azureBlobStorageEndpoint, other.azureBlobStorageEndpoint) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.streams, other.streams); + Utils.enhancedDeepEquals(this.azureBlobStorageAccountName, other.azureBlobStorageAccountName) && + Utils.enhancedDeepEquals(this.azureBlobStorageContainerName, other.azureBlobStorageContainerName) && + Utils.enhancedDeepEquals(this.azureBlobStorageEndpoint, other.azureBlobStorageEndpoint) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.streams, other.streams); } @Override public int hashCode() { - return Objects.hash( - azureBlobStorageAccountName, - azureBlobStorageContainerName, - azureBlobStorageEndpoint, - credentials, - sourceType, - startDate, + return Utils.enhancedHash( + azureBlobStorageAccountName, azureBlobStorageContainerName, azureBlobStorageEndpoint, + credentials, sourceType, startDate, streams); } @@ -270,25 +287,27 @@ public String toString() { "startDate", startDate, "streams", streams); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String azureBlobStorageAccountName; - + private String azureBlobStorageContainerName; - + private Optional azureBlobStorageEndpoint = Optional.empty(); - + private SourceAzureBlobStorageAuthentication credentials; - + private Optional startDate = Optional.empty(); - + private List streams; - + private Builder() { // force use of static builder() method } + /** * The account's name of the Azure Blob Storage. */ @@ -298,6 +317,7 @@ public Builder azureBlobStorageAccountName(String azureBlobStorageAccountName) { return this; } + /** * The name of the Azure blob storage container. */ @@ -307,8 +327,10 @@ public Builder azureBlobStorageContainerName(String azureBlobStorageContainerNam return this; } + /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ public Builder azureBlobStorageEndpoint(String azureBlobStorageEndpoint) { Utils.checkNotNull(azureBlobStorageEndpoint, "azureBlobStorageEndpoint"); @@ -317,7 +339,8 @@ public Builder azureBlobStorageEndpoint(String azureBlobStorageEndpoint) { } /** - * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run container from command line) to use Microsoft native from example. + * This is Azure Blob Storage endpoint domain name. Leave default value (or leave it empty if run + * container from command line) to use Microsoft native from example. */ public Builder azureBlobStorageEndpoint(Optional azureBlobStorageEndpoint) { Utils.checkNotNull(azureBlobStorageEndpoint, "azureBlobStorageEndpoint"); @@ -325,6 +348,7 @@ public Builder azureBlobStorageEndpoint(Optional azureBlobStorageEndpoin return this; } + /** * Credentials for connecting to the Azure Blob Storage */ @@ -334,8 +358,10 @@ public Builder credentials(SourceAzureBlobStorageAuthentication credentials) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -344,7 +370,8 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -352,25 +379,27 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public Builder streams(List streams) { Utils.checkNotNull(streams, "streams"); this.streams = streams; return this; } - + public SourceAzureBlobStorage build() { + return new SourceAzureBlobStorage( - azureBlobStorageAccountName, - azureBlobStorageContainerName, - azureBlobStorageEndpoint, - credentials, - startDate, - streams); + azureBlobStorageAccountName, azureBlobStorageContainerName, azureBlobStorageEndpoint, + credentials, startDate, streams); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java index 7c80da12d..90fd80bab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthType.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageAuthType { @JsonValue private final String value; - private SourceAzureBlobStorageAuthType(String value) { + SourceAzureBlobStorageAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthentication.java index 4b1fdd769..20fdf9207 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceAzureBlobStorageAuthentication @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceAzureBlobStorageAuthentication other = (SourceAzureBlobStorageAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java index 175e9b57b..bb51b5057 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageAzureBlobStorage.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageAzureBlobStorage { @JsonValue private final String value; - private SourceAzureBlobStorageAzureBlobStorage(String value) { + SourceAzureBlobStorageAzureBlobStorage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageFiletype.java index f5efa6a74..d654661c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageFiletype.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageFiletype { @JsonValue private final String value; - private SourceAzureBlobStorageFiletype(String value) { + SourceAzureBlobStorageFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java index 58dafc9a7..46b9576fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageHeaderDefinitionType { @JsonValue private final String value; - private SourceAzureBlobStorageHeaderDefinitionType(String value) { + SourceAzureBlobStorageHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java index cfbf0943d..ca738daa0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageMode.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageMode { @JsonValue private final String value; - private SourceAzureBlobStorageMode(String value) { + SourceAzureBlobStorageMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java index 881cacbe5..a8fbc9517 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageSchemasAuthType { @JsonValue private final String value; - private SourceAzureBlobStorageSchemasAuthType(String value) { + SourceAzureBlobStorageSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.java index 1f62f773a..9a59512b2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasCredentialsAuthType.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageSchemasCredentialsAuthType { @JsonValue private final String value; - private SourceAzureBlobStorageSchemasCredentialsAuthType(String value) { + SourceAzureBlobStorageSchemasCredentialsAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java index 1632b91c4..c242aee93 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasFiletype.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageSchemasFiletype { @JsonValue private final String value; - private SourceAzureBlobStorageSchemasFiletype(String value) { + SourceAzureBlobStorageSchemasFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java index e2e9ab205..48e5b5111 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageSchemasHeaderDefinitionType { @JsonValue private final String value; - private SourceAzureBlobStorageSchemasHeaderDefinitionType(String value) { + SourceAzureBlobStorageSchemasHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java index 99abe4a8f..304de9181 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFiletype.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageSchemasStreamsFiletype { @JsonValue private final String value; - private SourceAzureBlobStorageSchemasStreamsFiletype(String value) { + SourceAzureBlobStorageSchemasStreamsFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java index 3eadfbe54..212af1bc7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureBlobStorageSchemasStreamsFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceAzureBlobStorageSchemasStreamsFormatFiletype { @JsonValue private final String value; - private SourceAzureBlobStorageSchemasStreamsFormatFiletype(String value) { + SourceAzureBlobStorageSchemasStreamsFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceAzureTable.java b/src/main/java/com/airbyte/api/models/shared/SourceAzureTable.java index 36889ecd4..1059deb59 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceAzureTable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceAzureTable.java @@ -13,16 +13,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceAzureTable { @JsonProperty("sourceType") private AzureTable sourceType; /** - * Azure Table Storage Access Key. See the <a href="https://docs.airbyte.com/integrations/sources/azure-table">docs</a> for more information on how to obtain this key. + * Azure Table Storage Access Key. See the docs for more information on + * how to obtain this key. */ @JsonProperty("storage_access_key") private String storageAccessKey; @@ -34,7 +36,9 @@ public class SourceAzureTable { private String storageAccountName; /** - * Azure Table Storage service account URL suffix. See the <a href="https://docs.airbyte.com/integrations/sources/azure-table">docs</a> for more information on how to obtain endpoint suffix + * Azure Table Storage service account URL suffix. See the docs for more information on + * how to obtain endpoint suffix */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("storage_endpoint_suffix") @@ -66,7 +70,9 @@ public AzureTable sourceType() { } /** - * Azure Table Storage Access Key. See the <a href="https://docs.airbyte.com/integrations/sources/azure-table">docs</a> for more information on how to obtain this key. + * Azure Table Storage Access Key. See the docs for more information on + * how to obtain this key. */ @JsonIgnore public String storageAccessKey() { @@ -82,19 +88,24 @@ public String storageAccountName() { } /** - * Azure Table Storage service account URL suffix. See the <a href="https://docs.airbyte.com/integrations/sources/azure-table">docs</a> for more information on how to obtain endpoint suffix + * Azure Table Storage service account URL suffix. See the docs for more information on + * how to obtain endpoint suffix */ @JsonIgnore public Optional storageEndpointSuffix() { return storageEndpointSuffix; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Azure Table Storage Access Key. See the <a href="https://docs.airbyte.com/integrations/sources/azure-table">docs</a> for more information on how to obtain this key. + * Azure Table Storage Access Key. See the docs for more information on + * how to obtain this key. */ public SourceAzureTable withStorageAccessKey(String storageAccessKey) { Utils.checkNotNull(storageAccessKey, "storageAccessKey"); @@ -112,7 +123,9 @@ public SourceAzureTable withStorageAccountName(String storageAccountName) { } /** - * Azure Table Storage service account URL suffix. See the <a href="https://docs.airbyte.com/integrations/sources/azure-table">docs</a> for more information on how to obtain endpoint suffix + * Azure Table Storage service account URL suffix. See the docs for more information on + * how to obtain endpoint suffix */ public SourceAzureTable withStorageEndpointSuffix(String storageEndpointSuffix) { Utils.checkNotNull(storageEndpointSuffix, "storageEndpointSuffix"); @@ -120,8 +133,11 @@ public SourceAzureTable withStorageEndpointSuffix(String storageEndpointSuffix) return this; } + /** - * Azure Table Storage service account URL suffix. See the <a href="https://docs.airbyte.com/integrations/sources/azure-table">docs</a> for more information on how to obtain endpoint suffix + * Azure Table Storage service account URL suffix. See the docs for more information on + * how to obtain endpoint suffix */ public SourceAzureTable withStorageEndpointSuffix(Optional storageEndpointSuffix) { Utils.checkNotNull(storageEndpointSuffix, "storageEndpointSuffix"); @@ -129,7 +145,6 @@ public SourceAzureTable withStorageEndpointSuffix(Optional storageEndpoi return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +155,16 @@ public boolean equals(java.lang.Object o) { } SourceAzureTable other = (SourceAzureTable) o; return - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.storageAccessKey, other.storageAccessKey) && - Objects.deepEquals(this.storageAccountName, other.storageAccountName) && - Objects.deepEquals(this.storageEndpointSuffix, other.storageEndpointSuffix); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.storageAccessKey, other.storageAccessKey) && + Utils.enhancedDeepEquals(this.storageAccountName, other.storageAccountName) && + Utils.enhancedDeepEquals(this.storageEndpointSuffix, other.storageEndpointSuffix); } @Override public int hashCode() { - return Objects.hash( - sourceType, - storageAccessKey, - storageAccountName, + return Utils.enhancedHash( + sourceType, storageAccessKey, storageAccountName, storageEndpointSuffix); } @@ -163,21 +176,25 @@ public String toString() { "storageAccountName", storageAccountName, "storageEndpointSuffix", storageEndpointSuffix); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String storageAccessKey; - + private String storageAccountName; - + private Optional storageEndpointSuffix; - + private Builder() { // force use of static builder() method } + /** - * Azure Table Storage Access Key. See the <a href="https://docs.airbyte.com/integrations/sources/azure-table">docs</a> for more information on how to obtain this key. + * Azure Table Storage Access Key. See the docs for more information on + * how to obtain this key. */ public Builder storageAccessKey(String storageAccessKey) { Utils.checkNotNull(storageAccessKey, "storageAccessKey"); @@ -185,6 +202,7 @@ public Builder storageAccessKey(String storageAccessKey) { return this; } + /** * The name of your storage account. */ @@ -194,8 +212,11 @@ public Builder storageAccountName(String storageAccountName) { return this; } + /** - * Azure Table Storage service account URL suffix. See the <a href="https://docs.airbyte.com/integrations/sources/azure-table">docs</a> for more information on how to obtain endpoint suffix + * Azure Table Storage service account URL suffix. See the docs for more information on + * how to obtain endpoint suffix */ public Builder storageEndpointSuffix(String storageEndpointSuffix) { Utils.checkNotNull(storageEndpointSuffix, "storageEndpointSuffix"); @@ -204,24 +225,26 @@ public Builder storageEndpointSuffix(String storageEndpointSuffix) { } /** - * Azure Table Storage service account URL suffix. See the <a href="https://docs.airbyte.com/integrations/sources/azure-table">docs</a> for more information on how to obtain endpoint suffix + * Azure Table Storage service account URL suffix. See the docs for more information on + * how to obtain endpoint suffix */ public Builder storageEndpointSuffix(Optional storageEndpointSuffix) { Utils.checkNotNull(storageEndpointSuffix, "storageEndpointSuffix"); this.storageEndpointSuffix = storageEndpointSuffix; return this; } - + public SourceAzureTable build() { if (storageEndpointSuffix == null) { storageEndpointSuffix = _SINGLETON_VALUE_StorageEndpointSuffix.value(); } + return new SourceAzureTable( - storageAccessKey, - storageAccountName, - storageEndpointSuffix); + storageAccessKey, storageAccountName, storageEndpointSuffix); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBabelforce.java b/src/main/java/com/airbyte/api/models/shared/SourceBabelforce.java index ef57c9aeb..204812fca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBabelforce.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBabelforce.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceBabelforce { +public class SourceBabelforce { /** * The Babelforce access key ID */ @@ -33,14 +32,16 @@ public class SourceBabelforce { private String accessToken; /** - * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("date_created_from") private Optional dateCreatedFrom; /** - * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("date_created_to") @@ -53,6 +54,7 @@ public class SourceBabelforce { @JsonProperty("region") private Optional region; + @JsonProperty("sourceType") private Babelforce sourceType; @@ -79,7 +81,8 @@ public SourceBabelforce( public SourceBabelforce( String accessKeyId, String accessToken) { - this(accessKeyId, accessToken, Optional.empty(), Optional.empty(), Optional.empty()); + this(accessKeyId, accessToken, Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -99,7 +102,8 @@ public String accessToken() { } /** - * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ @JsonIgnore public Optional dateCreatedFrom() { @@ -107,7 +111,8 @@ public Optional dateCreatedFrom() { } /** - * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ @JsonIgnore public Optional dateCreatedTo() { @@ -128,9 +133,10 @@ public Babelforce sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Babelforce access key ID @@ -151,7 +157,8 @@ public SourceBabelforce withAccessToken(String accessToken) { } /** - * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ public SourceBabelforce withDateCreatedFrom(long dateCreatedFrom) { Utils.checkNotNull(dateCreatedFrom, "dateCreatedFrom"); @@ -159,8 +166,10 @@ public SourceBabelforce withDateCreatedFrom(long dateCreatedFrom) { return this; } + /** - * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ public SourceBabelforce withDateCreatedFrom(Optional dateCreatedFrom) { Utils.checkNotNull(dateCreatedFrom, "dateCreatedFrom"); @@ -169,7 +178,8 @@ public SourceBabelforce withDateCreatedFrom(Optional dateCreatedFrom) { } /** - * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ public SourceBabelforce withDateCreatedTo(long dateCreatedTo) { Utils.checkNotNull(dateCreatedTo, "dateCreatedTo"); @@ -177,8 +187,10 @@ public SourceBabelforce withDateCreatedTo(long dateCreatedTo) { return this; } + /** - * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ public SourceBabelforce withDateCreatedTo(Optional dateCreatedTo) { Utils.checkNotNull(dateCreatedTo, "dateCreatedTo"); @@ -195,6 +207,7 @@ public SourceBabelforce withRegion(SourceBabelforceRegion region) { return this; } + /** * Babelforce region */ @@ -204,7 +217,6 @@ public SourceBabelforce withRegion(Optional re return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -215,23 +227,19 @@ public boolean equals(java.lang.Object o) { } SourceBabelforce other = (SourceBabelforce) o; return - Objects.deepEquals(this.accessKeyId, other.accessKeyId) && - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.dateCreatedFrom, other.dateCreatedFrom) && - Objects.deepEquals(this.dateCreatedTo, other.dateCreatedTo) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accessKeyId, other.accessKeyId) && + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.dateCreatedFrom, other.dateCreatedFrom) && + Utils.enhancedDeepEquals(this.dateCreatedTo, other.dateCreatedTo) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accessKeyId, - accessToken, - dateCreatedFrom, - dateCreatedTo, - region, - sourceType); + return Utils.enhancedHash( + accessKeyId, accessToken, dateCreatedFrom, + dateCreatedTo, region, sourceType); } @Override @@ -244,23 +252,25 @@ public String toString() { "region", region, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKeyId; - + private String accessToken; - + private Optional dateCreatedFrom = Optional.empty(); - + private Optional dateCreatedTo = Optional.empty(); - + private Optional region; - + private Builder() { // force use of static builder() method } + /** * The Babelforce access key ID */ @@ -270,6 +280,7 @@ public Builder accessKeyId(String accessKeyId) { return this; } + /** * The Babelforce access token */ @@ -279,8 +290,10 @@ public Builder accessToken(String accessToken) { return this; } + /** - * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ public Builder dateCreatedFrom(long dateCreatedFrom) { Utils.checkNotNull(dateCreatedFrom, "dateCreatedFrom"); @@ -289,7 +302,8 @@ public Builder dateCreatedFrom(long dateCreatedFrom) { } /** - * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce API will start from. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ public Builder dateCreatedFrom(Optional dateCreatedFrom) { Utils.checkNotNull(dateCreatedFrom, "dateCreatedFrom"); @@ -297,8 +311,10 @@ public Builder dateCreatedFrom(Optional dateCreatedFrom) { return this; } + /** - * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ public Builder dateCreatedTo(long dateCreatedTo) { Utils.checkNotNull(dateCreatedTo, "dateCreatedTo"); @@ -307,7 +323,8 @@ public Builder dateCreatedTo(long dateCreatedTo) { } /** - * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which corresponds to 2022-05-01 00:00:00. + * Timestamp in Unix the replication from Babelforce will be up to. For example 1651363200 which + * corresponds to 2022-05-01 00:00:00. */ public Builder dateCreatedTo(Optional dateCreatedTo) { Utils.checkNotNull(dateCreatedTo, "dateCreatedTo"); @@ -315,6 +332,7 @@ public Builder dateCreatedTo(Optional dateCreatedTo) { return this; } + /** * Babelforce region */ @@ -332,19 +350,18 @@ public Builder region(Optional region) { this.region = region; return this; } - + public SourceBabelforce build() { if (region == null) { region = _SINGLETON_VALUE_Region.value(); } + return new SourceBabelforce( - accessKeyId, - accessToken, - dateCreatedFrom, - dateCreatedTo, - region); + accessKeyId, accessToken, dateCreatedFrom, + dateCreatedTo, region); } + private static final LazySingletonValue> _SINGLETON_VALUE_Region = new LazySingletonValue<>( "region", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBabelforceRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceBabelforceRegion.java index 804be4205..8be32b4f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBabelforceRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBabelforceRegion.java @@ -21,7 +21,7 @@ public enum SourceBabelforceRegion { @JsonValue private final String value; - private SourceBabelforceRegion(String value) { + SourceBabelforceRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java b/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java index f6d91267a..bf67f4644 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBambooHr.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceBambooHr { +public class SourceBambooHr { /** * Api key of bamboo hr */ @@ -34,7 +33,8 @@ public class SourceBambooHr { private Optional customReportsFields; /** - * If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. + * If true, the custom reports endpoint will include the default fields defined here: + * https://documentation.bamboohr.com/docs/list-of-field-names. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("custom_reports_include_default_fields") @@ -47,9 +47,11 @@ public class SourceBambooHr { @JsonProperty("employee_fields") private Optional employeeFields; + @JsonProperty("sourceType") private BambooHr sourceType; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; @@ -86,7 +88,8 @@ public SourceBambooHr( public SourceBambooHr( String apiKey, String subdomain) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), subdomain); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), subdomain); } /** @@ -106,7 +109,8 @@ public Optional customReportsFields() { } /** - * If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. + * If true, the custom reports endpoint will include the default fields defined here: + * https://documentation.bamboohr.com/docs/list-of-field-names. */ @JsonIgnore public Optional customReportsIncludeDefaultFields() { @@ -139,9 +143,10 @@ public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Api key of bamboo hr @@ -161,6 +166,7 @@ public SourceBambooHr withCustomReportsFields(String customReportsFields) { return this; } + /** * Comma-separated list of fields to include in custom reports. */ @@ -171,7 +177,8 @@ public SourceBambooHr withCustomReportsFields(Optional customReportsFiel } /** - * If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. + * If true, the custom reports endpoint will include the default fields defined here: + * https://documentation.bamboohr.com/docs/list-of-field-names. */ public SourceBambooHr withCustomReportsIncludeDefaultFields(boolean customReportsIncludeDefaultFields) { Utils.checkNotNull(customReportsIncludeDefaultFields, "customReportsIncludeDefaultFields"); @@ -179,8 +186,10 @@ public SourceBambooHr withCustomReportsIncludeDefaultFields(boolean customReport return this; } + /** - * If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. + * If true, the custom reports endpoint will include the default fields defined here: + * https://documentation.bamboohr.com/docs/list-of-field-names. */ public SourceBambooHr withCustomReportsIncludeDefaultFields(Optional customReportsIncludeDefaultFields) { Utils.checkNotNull(customReportsIncludeDefaultFields, "customReportsIncludeDefaultFields"); @@ -197,6 +206,7 @@ public SourceBambooHr withEmployeeFields(String employeeFields) { return this; } + /** * Comma-separated list of fields to include for employees. */ @@ -212,6 +222,7 @@ public SourceBambooHr withStartDate(OffsetDateTime startDate) { return this; } + public SourceBambooHr withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; @@ -227,7 +238,6 @@ public SourceBambooHr withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -238,24 +248,20 @@ public boolean equals(java.lang.Object o) { } SourceBambooHr other = (SourceBambooHr) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.customReportsFields, other.customReportsFields) && - Objects.deepEquals(this.customReportsIncludeDefaultFields, other.customReportsIncludeDefaultFields) && - Objects.deepEquals(this.employeeFields, other.employeeFields) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.customReportsFields, other.customReportsFields) && + Utils.enhancedDeepEquals(this.customReportsIncludeDefaultFields, other.customReportsIncludeDefaultFields) && + Utils.enhancedDeepEquals(this.employeeFields, other.employeeFields) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - customReportsFields, - customReportsIncludeDefaultFields, - employeeFields, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, customReportsFields, customReportsIncludeDefaultFields, + employeeFields, sourceType, startDate, subdomain); } @@ -270,25 +276,27 @@ public String toString() { "startDate", startDate, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional customReportsFields = Optional.empty(); - + private Optional customReportsIncludeDefaultFields; - + private Optional employeeFields; - + private Optional startDate = Optional.empty(); - + private String subdomain; - + private Builder() { // force use of static builder() method } + /** * Api key of bamboo hr */ @@ -298,6 +306,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Comma-separated list of fields to include in custom reports. */ @@ -316,8 +325,10 @@ public Builder customReportsFields(Optional customReportsFields) { return this; } + /** - * If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. + * If true, the custom reports endpoint will include the default fields defined here: + * https://documentation.bamboohr.com/docs/list-of-field-names. */ public Builder customReportsIncludeDefaultFields(boolean customReportsIncludeDefaultFields) { Utils.checkNotNull(customReportsIncludeDefaultFields, "customReportsIncludeDefaultFields"); @@ -326,7 +337,8 @@ public Builder customReportsIncludeDefaultFields(boolean customReportsIncludeDef } /** - * If true, the custom reports endpoint will include the default fields defined here: https://documentation.bamboohr.com/docs/list-of-field-names. + * If true, the custom reports endpoint will include the default fields defined here: + * https://documentation.bamboohr.com/docs/list-of-field-names. */ public Builder customReportsIncludeDefaultFields(Optional customReportsIncludeDefaultFields) { Utils.checkNotNull(customReportsIncludeDefaultFields, "customReportsIncludeDefaultFields"); @@ -334,6 +346,7 @@ public Builder customReportsIncludeDefaultFields(Optional customReports return this; } + /** * Comma-separated list of fields to include for employees. */ @@ -352,6 +365,7 @@ public Builder employeeFields(Optional employeeFields) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = Optional.ofNullable(startDate); @@ -364,6 +378,7 @@ public Builder startDate(Optional startDate) { return this; } + /** * Sub Domain of bamboo hr */ @@ -372,7 +387,7 @@ public Builder subdomain(String subdomain) { this.subdomain = subdomain; return this; } - + public SourceBambooHr build() { if (customReportsIncludeDefaultFields == null) { customReportsIncludeDefaultFields = _SINGLETON_VALUE_CustomReportsIncludeDefaultFields.value(); @@ -380,15 +395,13 @@ public SourceBambooHr build() { if (employeeFields == null) { employeeFields = _SINGLETON_VALUE_EmployeeFields.value(); } + return new SourceBambooHr( - apiKey, - customReportsFields, - customReportsIncludeDefaultFields, - employeeFields, - startDate, - subdomain); + apiKey, customReportsFields, customReportsIncludeDefaultFields, + employeeFields, startDate, subdomain); } + private static final LazySingletonValue> _SINGLETON_VALUE_CustomReportsIncludeDefaultFields = new LazySingletonValue<>( "custom_reports_include_default_fields", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java b/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java index f9d92f03b..28b591b9d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBasecamp.java @@ -13,25 +13,30 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceBasecamp { @JsonProperty("account_id") private double accountId; + @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token_2") private String clientRefreshToken2; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private Basecamp sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -85,9 +90,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBasecamp withAccountId(double accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -119,7 +125,6 @@ public SourceBasecamp withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -130,23 +135,19 @@ public boolean equals(java.lang.Object o) { } SourceBasecamp other = (SourceBasecamp) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken2, other.clientRefreshToken2) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken2, other.clientRefreshToken2) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountId, - clientId, - clientRefreshToken2, - clientSecret, - sourceType, - startDate); + return Utils.enhancedHash( + accountId, clientId, clientRefreshToken2, + clientSecret, sourceType, startDate); } @Override @@ -159,62 +160,67 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double accountId; - + private String clientId; - + private String clientRefreshToken2; - + private String clientSecret; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder accountId(double accountId) { Utils.checkNotNull(accountId, "accountId"); this.accountId = accountId; return this; } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken2(String clientRefreshToken2) { Utils.checkNotNull(clientRefreshToken2, "clientRefreshToken2"); this.clientRefreshToken2 = clientRefreshToken2; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceBasecamp build() { + return new SourceBasecamp( - accountId, - clientId, - clientRefreshToken2, - clientSecret, - startDate); + accountId, clientId, clientRefreshToken2, + clientSecret, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBeamer.java b/src/main/java/com/airbyte/api/models/shared/SourceBeamer.java index da3c1c7c9..262beec10 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBeamer.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBeamer.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceBeamer { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Beamer sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBeamer withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceBeamer withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceBeamer other = (SourceBeamer) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceBeamer build() { + return new SourceBeamer( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBigmailer.java b/src/main/java/com/airbyte/api/models/shared/SourceBigmailer.java index 363471864..af4f2a852 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBigmailer.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBigmailer.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceBigmailer { +public class SourceBigmailer { /** * API key to use. You can create and find it on the API key management page in your BigMailer account. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Bigmailer sourceType; @@ -45,9 +45,10 @@ public Bigmailer sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. You can create and find it on the API key management page in your BigMailer account. @@ -58,7 +59,6 @@ public SourceBigmailer withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceBigmailer other = (SourceBigmailer) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key to use. You can create and find it on the API key management page in your BigMailer account. */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceBigmailer build() { + return new SourceBigmailer( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBigquery.java b/src/main/java/com/airbyte/api/models/shared/SourceBigquery.java index 42fcdf44c..466c918fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBigquery.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBigquery.java @@ -13,19 +13,21 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceBigquery { +public class SourceBigquery { /** - * The contents of your Service Account Key JSON file. See the <a href="https://docs.airbyte.com/integrations/sources/bigquery#setup-the-bigquery-source-in-airbyte">docs</a> for more information on how to obtain this key. + * The contents of your Service Account Key JSON file. See the docs + * for more information on how to obtain this key. */ @JsonProperty("credentials_json") private String credentialsJson; /** - * The dataset ID to search for tables and views. If you are only loading data from one dataset, setting this option could result in much faster schema discovery. + * The dataset ID to search for tables and views. If you are only loading data from one dataset, + * setting this option could result in much faster schema discovery. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("dataset_id") @@ -37,6 +39,7 @@ public class SourceBigquery { @JsonProperty("project_id") private String projectId; + @JsonProperty("sourceType") private SourceBigqueryBigquery sourceType; @@ -61,7 +64,9 @@ public SourceBigquery( } /** - * The contents of your Service Account Key JSON file. See the <a href="https://docs.airbyte.com/integrations/sources/bigquery#setup-the-bigquery-source-in-airbyte">docs</a> for more information on how to obtain this key. + * The contents of your Service Account Key JSON file. See the docs + * for more information on how to obtain this key. */ @JsonIgnore public String credentialsJson() { @@ -69,7 +74,8 @@ public String credentialsJson() { } /** - * The dataset ID to search for tables and views. If you are only loading data from one dataset, setting this option could result in much faster schema discovery. + * The dataset ID to search for tables and views. If you are only loading data from one dataset, + * setting this option could result in much faster schema discovery. */ @JsonIgnore public Optional datasetId() { @@ -89,12 +95,15 @@ public SourceBigqueryBigquery sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The contents of your Service Account Key JSON file. See the <a href="https://docs.airbyte.com/integrations/sources/bigquery#setup-the-bigquery-source-in-airbyte">docs</a> for more information on how to obtain this key. + * The contents of your Service Account Key JSON file. See the docs + * for more information on how to obtain this key. */ public SourceBigquery withCredentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -103,7 +112,8 @@ public SourceBigquery withCredentialsJson(String credentialsJson) { } /** - * The dataset ID to search for tables and views. If you are only loading data from one dataset, setting this option could result in much faster schema discovery. + * The dataset ID to search for tables and views. If you are only loading data from one dataset, + * setting this option could result in much faster schema discovery. */ public SourceBigquery withDatasetId(String datasetId) { Utils.checkNotNull(datasetId, "datasetId"); @@ -111,8 +121,10 @@ public SourceBigquery withDatasetId(String datasetId) { return this; } + /** - * The dataset ID to search for tables and views. If you are only loading data from one dataset, setting this option could result in much faster schema discovery. + * The dataset ID to search for tables and views. If you are only loading data from one dataset, + * setting this option could result in much faster schema discovery. */ public SourceBigquery withDatasetId(Optional datasetId) { Utils.checkNotNull(datasetId, "datasetId"); @@ -129,7 +141,6 @@ public SourceBigquery withProjectId(String projectId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +151,16 @@ public boolean equals(java.lang.Object o) { } SourceBigquery other = (SourceBigquery) o; return - Objects.deepEquals(this.credentialsJson, other.credentialsJson) && - Objects.deepEquals(this.datasetId, other.datasetId) && - Objects.deepEquals(this.projectId, other.projectId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.credentialsJson, other.credentialsJson) && + Utils.enhancedDeepEquals(this.datasetId, other.datasetId) && + Utils.enhancedDeepEquals(this.projectId, other.projectId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - credentialsJson, - datasetId, - projectId, + return Utils.enhancedHash( + credentialsJson, datasetId, projectId, sourceType); } @@ -163,21 +172,25 @@ public String toString() { "projectId", projectId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String credentialsJson; - + private Optional datasetId = Optional.empty(); - + private String projectId; - + private Builder() { // force use of static builder() method } + /** - * The contents of your Service Account Key JSON file. See the <a href="https://docs.airbyte.com/integrations/sources/bigquery#setup-the-bigquery-source-in-airbyte">docs</a> for more information on how to obtain this key. + * The contents of your Service Account Key JSON file. See the docs + * for more information on how to obtain this key. */ public Builder credentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -185,8 +198,10 @@ public Builder credentialsJson(String credentialsJson) { return this; } + /** - * The dataset ID to search for tables and views. If you are only loading data from one dataset, setting this option could result in much faster schema discovery. + * The dataset ID to search for tables and views. If you are only loading data from one dataset, + * setting this option could result in much faster schema discovery. */ public Builder datasetId(String datasetId) { Utils.checkNotNull(datasetId, "datasetId"); @@ -195,7 +210,8 @@ public Builder datasetId(String datasetId) { } /** - * The dataset ID to search for tables and views. If you are only loading data from one dataset, setting this option could result in much faster schema discovery. + * The dataset ID to search for tables and views. If you are only loading data from one dataset, + * setting this option could result in much faster schema discovery. */ public Builder datasetId(Optional datasetId) { Utils.checkNotNull(datasetId, "datasetId"); @@ -203,6 +219,7 @@ public Builder datasetId(Optional datasetId) { return this; } + /** * The GCP project ID for the project containing the target BigQuery dataset. */ @@ -211,14 +228,14 @@ public Builder projectId(String projectId) { this.projectId = projectId; return this; } - + public SourceBigquery build() { + return new SourceBigquery( - credentialsJson, - datasetId, - projectId); + credentialsJson, datasetId, projectId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java b/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java index 7ce6f312b..b126b4b36 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBigqueryBigquery.java @@ -14,7 +14,7 @@ public enum SourceBigqueryBigquery { @JsonValue private final String value; - private SourceBigqueryBigquery(String value) { + SourceBigqueryBigquery(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBingAds.java b/src/main/java/com/airbyte/api/models/shared/SourceBingAds.java index a0c03ec48..15043b748 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBingAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBingAds.java @@ -17,11 +17,10 @@ import java.lang.SuppressWarnings; import java.time.LocalDate; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceBingAds { +public class SourceBingAds { /** * Predicates that will be used to sync data by specific accounts. */ @@ -29,6 +28,7 @@ public class SourceBingAds { @JsonProperty("account_names") private Optional> accountNames; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_method") private Optional authMethod; @@ -54,13 +54,19 @@ public class SourceBingAds { private Optional> customReports; /** - * Developer token associated with user. See more info <a href="https://docs.microsoft.com/en-us/advertising/guides/get-started?view=bingads-13#get-developer-token"> in the docs</a>. + * Developer token associated with user. See more info + * in the docs. */ @JsonProperty("developer_token") private String developerToken; /** - * Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode without specified Reports Start Date. + * Also known as attribution or conversion window. How far into the past to look for records (in days). + * If your conversion window has an hours/minutes granularity, round it up to the number of days + * exceeding. + * + *

    Used only for performance report streams in incremental mode without specified Reports Start Date. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lookback_window") @@ -73,17 +79,22 @@ public class SourceBingAds { private String refreshToken; /** - * The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format. If not set, data from previous and current calendar year will be replicated. + * The start date from which to begin replicating report data. Any data generated before this date will + * not be replicated in reports. This is a UTC date in YYYY-MM-DD format. + * + *

    If not set, data from previous and current calendar year will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("reports_start_date") private Optional reportsStartDate; + @JsonProperty("sourceType") private SourceBingAdsBingAds sourceType; /** - * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value. + * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you + * know you need a different value. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tenant_id") @@ -126,7 +137,9 @@ public SourceBingAds( String clientId, String developerToken, String refreshToken) { - this(Optional.empty(), clientId, Optional.empty(), Optional.empty(), developerToken, Optional.empty(), refreshToken, Optional.empty(), Optional.empty()); + this(Optional.empty(), clientId, Optional.empty(), + Optional.empty(), developerToken, Optional.empty(), + refreshToken, Optional.empty(), Optional.empty()); } /** @@ -170,7 +183,9 @@ public Optional> customReports() { } /** - * Developer token associated with user. See more info <a href="https://docs.microsoft.com/en-us/advertising/guides/get-started?view=bingads-13#get-developer-token"> in the docs</a>. + * Developer token associated with user. See more info + * in the docs. */ @JsonIgnore public String developerToken() { @@ -178,7 +193,11 @@ public String developerToken() { } /** - * Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode without specified Reports Start Date. + * Also known as attribution or conversion window. How far into the past to look for records (in days). + * If your conversion window has an hours/minutes granularity, round it up to the number of days + * exceeding. + * + *

    Used only for performance report streams in incremental mode without specified Reports Start Date. */ @JsonIgnore public Optional lookbackWindow() { @@ -194,7 +213,10 @@ public String refreshToken() { } /** - * The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format. If not set, data from previous and current calendar year will be replicated. + * The start date from which to begin replicating report data. Any data generated before this date will + * not be replicated in reports. This is a UTC date in YYYY-MM-DD format. + * + *

    If not set, data from previous and current calendar year will be replicated. */ @JsonIgnore public Optional reportsStartDate() { @@ -207,16 +229,18 @@ public SourceBingAdsBingAds sourceType() { } /** - * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value. + * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you + * know you need a different value. */ @JsonIgnore public Optional tenantId() { return tenantId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Predicates that will be used to sync data by specific accounts. @@ -227,6 +251,7 @@ public SourceBingAds withAccountNames(List accountNames) { return this; } + /** * Predicates that will be used to sync data by specific accounts. */ @@ -254,6 +279,7 @@ public SourceBingAds withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your Microsoft Advertising developer application. */ @@ -272,6 +298,7 @@ public SourceBingAds withCustomReports(List customReports) { return this; } + /** * You can add your Custom Bing Ads report by creating one. */ @@ -282,7 +309,9 @@ public SourceBingAds withCustomReports(Optional + * in the docs. */ public SourceBingAds withDeveloperToken(String developerToken) { Utils.checkNotNull(developerToken, "developerToken"); @@ -291,7 +320,11 @@ public SourceBingAds withDeveloperToken(String developerToken) { } /** - * Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode without specified Reports Start Date. + * Also known as attribution or conversion window. How far into the past to look for records (in days). + * If your conversion window has an hours/minutes granularity, round it up to the number of days + * exceeding. + * + *

    Used only for performance report streams in incremental mode without specified Reports Start Date. */ public SourceBingAds withLookbackWindow(long lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -299,8 +332,13 @@ public SourceBingAds withLookbackWindow(long lookbackWindow) { return this; } + /** - * Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode without specified Reports Start Date. + * Also known as attribution or conversion window. How far into the past to look for records (in days). + * If your conversion window has an hours/minutes granularity, round it up to the number of days + * exceeding. + * + *

    Used only for performance report streams in incremental mode without specified Reports Start Date. */ public SourceBingAds withLookbackWindow(Optional lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -318,7 +356,10 @@ public SourceBingAds withRefreshToken(String refreshToken) { } /** - * The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format. If not set, data from previous and current calendar year will be replicated. + * The start date from which to begin replicating report data. Any data generated before this date will + * not be replicated in reports. This is a UTC date in YYYY-MM-DD format. + * + *

    If not set, data from previous and current calendar year will be replicated. */ public SourceBingAds withReportsStartDate(LocalDate reportsStartDate) { Utils.checkNotNull(reportsStartDate, "reportsStartDate"); @@ -326,8 +367,12 @@ public SourceBingAds withReportsStartDate(LocalDate reportsStartDate) { return this; } + /** - * The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format. If not set, data from previous and current calendar year will be replicated. + * The start date from which to begin replicating report data. Any data generated before this date will + * not be replicated in reports. This is a UTC date in YYYY-MM-DD format. + * + *

    If not set, data from previous and current calendar year will be replicated. */ public SourceBingAds withReportsStartDate(Optional reportsStartDate) { Utils.checkNotNull(reportsStartDate, "reportsStartDate"); @@ -336,7 +381,8 @@ public SourceBingAds withReportsStartDate(Optional reportsStartDate) } /** - * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value. + * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you + * know you need a different value. */ public SourceBingAds withTenantId(String tenantId) { Utils.checkNotNull(tenantId, "tenantId"); @@ -344,8 +390,10 @@ public SourceBingAds withTenantId(String tenantId) { return this; } + /** - * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value. + * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you + * know you need a different value. */ public SourceBingAds withTenantId(Optional tenantId) { Utils.checkNotNull(tenantId, "tenantId"); @@ -353,7 +401,6 @@ public SourceBingAds withTenantId(Optional tenantId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -364,33 +411,26 @@ public boolean equals(java.lang.Object o) { } SourceBingAds other = (SourceBingAds) o; return - Objects.deepEquals(this.accountNames, other.accountNames) && - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.customReports, other.customReports) && - Objects.deepEquals(this.developerToken, other.developerToken) && - Objects.deepEquals(this.lookbackWindow, other.lookbackWindow) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.reportsStartDate, other.reportsStartDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tenantId, other.tenantId); + Utils.enhancedDeepEquals(this.accountNames, other.accountNames) && + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.customReports, other.customReports) && + Utils.enhancedDeepEquals(this.developerToken, other.developerToken) && + Utils.enhancedDeepEquals(this.lookbackWindow, other.lookbackWindow) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.reportsStartDate, other.reportsStartDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId); } @Override public int hashCode() { - return Objects.hash( - accountNames, - authMethod, - clientId, - clientSecret, - customReports, - developerToken, - lookbackWindow, - refreshToken, - reportsStartDate, - sourceType, - tenantId); + return Utils.enhancedHash( + accountNames, authMethod, clientId, + clientSecret, customReports, developerToken, + lookbackWindow, refreshToken, reportsStartDate, + sourceType, tenantId); } @Override @@ -408,31 +448,33 @@ public String toString() { "sourceType", sourceType, "tenantId", tenantId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> accountNames = Optional.empty(); - + private String clientId; - + private Optional clientSecret; - + private Optional> customReports = Optional.empty(); - + private String developerToken; - + private Optional lookbackWindow; - + private String refreshToken; - + private Optional reportsStartDate = Optional.empty(); - + private Optional tenantId; - + private Builder() { // force use of static builder() method } + /** * Predicates that will be used to sync data by specific accounts. */ @@ -451,6 +493,7 @@ public Builder accountNames(Optional> accountNames) return this; } + /** * The Client ID of your Microsoft Advertising developer application. */ @@ -460,6 +503,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Microsoft Advertising developer application. */ @@ -478,6 +522,7 @@ public Builder clientSecret(Optional clientSecret) { return this; } + /** * You can add your Custom Bing Ads report by creating one. */ @@ -496,8 +541,11 @@ public Builder customReports(Optional> custom return this; } + /** - * Developer token associated with user. See more info <a href="https://docs.microsoft.com/en-us/advertising/guides/get-started?view=bingads-13#get-developer-token"> in the docs</a>. + * Developer token associated with user. See more info + * in the docs. */ public Builder developerToken(String developerToken) { Utils.checkNotNull(developerToken, "developerToken"); @@ -505,8 +553,13 @@ public Builder developerToken(String developerToken) { return this; } + /** - * Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode without specified Reports Start Date. + * Also known as attribution or conversion window. How far into the past to look for records (in days). + * If your conversion window has an hours/minutes granularity, round it up to the number of days + * exceeding. + * + *

    Used only for performance report streams in incremental mode without specified Reports Start Date. */ public Builder lookbackWindow(long lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -515,7 +568,11 @@ public Builder lookbackWindow(long lookbackWindow) { } /** - * Also known as attribution or conversion window. How far into the past to look for records (in days). If your conversion window has an hours/minutes granularity, round it up to the number of days exceeding. Used only for performance report streams in incremental mode without specified Reports Start Date. + * Also known as attribution or conversion window. How far into the past to look for records (in days). + * If your conversion window has an hours/minutes granularity, round it up to the number of days + * exceeding. + * + *

    Used only for performance report streams in incremental mode without specified Reports Start Date. */ public Builder lookbackWindow(Optional lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -523,6 +580,7 @@ public Builder lookbackWindow(Optional lookbackWindow) { return this; } + /** * Refresh Token to renew the expired Access Token. */ @@ -532,8 +590,12 @@ public Builder refreshToken(String refreshToken) { return this; } + /** - * The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format. If not set, data from previous and current calendar year will be replicated. + * The start date from which to begin replicating report data. Any data generated before this date will + * not be replicated in reports. This is a UTC date in YYYY-MM-DD format. + * + *

    If not set, data from previous and current calendar year will be replicated. */ public Builder reportsStartDate(LocalDate reportsStartDate) { Utils.checkNotNull(reportsStartDate, "reportsStartDate"); @@ -542,7 +604,10 @@ public Builder reportsStartDate(LocalDate reportsStartDate) { } /** - * The start date from which to begin replicating report data. Any data generated before this date will not be replicated in reports. This is a UTC date in YYYY-MM-DD format. If not set, data from previous and current calendar year will be replicated. + * The start date from which to begin replicating report data. Any data generated before this date will + * not be replicated in reports. This is a UTC date in YYYY-MM-DD format. + * + *

    If not set, data from previous and current calendar year will be replicated. */ public Builder reportsStartDate(Optional reportsStartDate) { Utils.checkNotNull(reportsStartDate, "reportsStartDate"); @@ -550,8 +615,10 @@ public Builder reportsStartDate(Optional reportsStartDate) { return this; } + /** - * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value. + * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you + * know you need a different value. */ public Builder tenantId(String tenantId) { Utils.checkNotNull(tenantId, "tenantId"); @@ -560,14 +627,15 @@ public Builder tenantId(String tenantId) { } /** - * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you know you need a different value. + * The Tenant ID of your Microsoft Advertising developer application. Set this to "common" unless you + * know you need a different value. */ public Builder tenantId(Optional tenantId) { Utils.checkNotNull(tenantId, "tenantId"); this.tenantId = tenantId; return this; } - + public SourceBingAds build() { if (clientSecret == null) { clientSecret = _SINGLETON_VALUE_ClientSecret.value(); @@ -578,18 +646,14 @@ public SourceBingAds build() { if (tenantId == null) { tenantId = _SINGLETON_VALUE_TenantId.value(); } + return new SourceBingAds( - accountNames, - clientId, - clientSecret, - customReports, - developerToken, - lookbackWindow, - refreshToken, - reportsStartDate, - tenantId); + accountNames, clientId, clientSecret, + customReports, developerToken, lookbackWindow, + refreshToken, reportsStartDate, tenantId); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java b/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java index 97b5d6358..542d56bb7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBingAdsBingAds.java @@ -14,7 +14,7 @@ public enum SourceBingAdsBingAds { @JsonValue private final String value; - private SourceBingAdsBingAds(String value) { + SourceBingAdsBingAds(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBitly.java b/src/main/java/com/airbyte/api/models/shared/SourceBitly.java index dd7914598..e1d4a706b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBitly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBitly.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceBitly { @JsonProperty("api_key") private String apiKey; + @JsonProperty("end_date") private OffsetDateTime endDate; + @JsonProperty("sourceType") private Bitly sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -62,9 +65,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBitly withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -84,7 +88,6 @@ public SourceBitly withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,18 +98,16 @@ public boolean equals(java.lang.Object o) { } SourceBitly other = (SourceBitly) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - endDate, - sourceType, + return Utils.enhancedHash( + apiKey, endDate, sourceType, startDate); } @@ -118,44 +119,48 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime endDate; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder endDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceBitly build() { + return new SourceBitly( - apiKey, - endDate, - startDate); + apiKey, endDate, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBlogger.java b/src/main/java/com/airbyte/api/models/shared/SourceBlogger.java index e83cd8992..90eefa8e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBlogger.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBlogger.java @@ -11,19 +11,22 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceBlogger { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token") private String clientRefreshToken; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private Blogger sourceType; @@ -61,9 +64,10 @@ public Blogger sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBlogger withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +87,6 @@ public SourceBlogger withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,18 +97,16 @@ public boolean equals(java.lang.Object o) { } SourceBlogger other = (SourceBlogger) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken, other.clientRefreshToken) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientRefreshToken, - clientSecret, + return Utils.enhancedHash( + clientId, clientRefreshToken, clientSecret, sourceType); } @@ -117,44 +118,48 @@ public String toString() { "clientSecret", clientSecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientRefreshToken; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); this.clientRefreshToken = clientRefreshToken; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourceBlogger build() { + return new SourceBlogger( - clientId, - clientRefreshToken, - clientSecret); + clientId, clientRefreshToken, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBluetally.java b/src/main/java/com/airbyte/api/models/shared/SourceBluetally.java index 315ddad1b..eb7dbdb19 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBluetally.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBluetally.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceBluetally { +public class SourceBluetally { /** - * Your API key to authenticate with the BlueTally API. You can generate it by navigating to your account settings, selecting 'API Keys', and clicking 'Create API Key'. + * Your API key to authenticate with the BlueTally API. You can generate it by navigating to your + * account settings, selecting 'API Keys', and clicking 'Create API Key'. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Bluetally sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public SourceBluetally( } /** - * Your API key to authenticate with the BlueTally API. You can generate it by navigating to your account settings, selecting 'API Keys', and clicking 'Create API Key'. + * Your API key to authenticate with the BlueTally API. You can generate it by navigating to your + * account settings, selecting 'API Keys', and clicking 'Create API Key'. */ @JsonIgnore public String apiKey() { @@ -57,12 +60,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API key to authenticate with the BlueTally API. You can generate it by navigating to your account settings, selecting 'API Keys', and clicking 'Create API Key'. + * Your API key to authenticate with the BlueTally API. You can generate it by navigating to your + * account settings, selecting 'API Keys', and clicking 'Create API Key'. */ public SourceBluetally withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -76,7 +81,6 @@ public SourceBluetally withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceBluetally other = (SourceBluetally) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,19 +109,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your API key to authenticate with the BlueTally API. You can generate it by navigating to your account settings, selecting 'API Keys', and clicking 'Create API Key'. + * Your API key to authenticate with the BlueTally API. You can generate it by navigating to your + * account settings, selecting 'API Keys', and clicking 'Create API Key'. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -127,18 +132,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceBluetally build() { + return new SourceBluetally( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBoldsign.java b/src/main/java/com/airbyte/api/models/shared/SourceBoldsign.java index af8455523..876bed354 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBoldsign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBoldsign.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceBoldsign { +public class SourceBoldsign { /** - * Your BoldSign API key. You can generate it by navigating to the API menu in the BoldSign app, selecting 'API Key', and clicking 'Generate API Key'. Copy the generated key and paste it here. + * Your BoldSign API key. You can generate it by navigating to the API menu in the BoldSign app, + * selecting 'API Key', and clicking 'Generate API Key'. Copy the generated key and paste it here. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Boldsign sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public SourceBoldsign( } /** - * Your BoldSign API key. You can generate it by navigating to the API menu in the BoldSign app, selecting 'API Key', and clicking 'Generate API Key'. Copy the generated key and paste it here. + * Your BoldSign API key. You can generate it by navigating to the API menu in the BoldSign app, + * selecting 'API Key', and clicking 'Generate API Key'. Copy the generated key and paste it here. */ @JsonIgnore public String apiKey() { @@ -57,12 +60,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your BoldSign API key. You can generate it by navigating to the API menu in the BoldSign app, selecting 'API Key', and clicking 'Generate API Key'. Copy the generated key and paste it here. + * Your BoldSign API key. You can generate it by navigating to the API menu in the BoldSign app, + * selecting 'API Key', and clicking 'Generate API Key'. Copy the generated key and paste it here. */ public SourceBoldsign withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -76,7 +81,6 @@ public SourceBoldsign withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceBoldsign other = (SourceBoldsign) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,19 +109,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your BoldSign API key. You can generate it by navigating to the API menu in the BoldSign app, selecting 'API Key', and clicking 'Generate API Key'. Copy the generated key and paste it here. + * Your BoldSign API key. You can generate it by navigating to the API menu in the BoldSign app, + * selecting 'API Key', and clicking 'Generate API Key'. Copy the generated key and paste it here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -127,18 +132,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceBoldsign build() { + return new SourceBoldsign( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBox.java b/src/main/java/com/airbyte/api/models/shared/SourceBox.java index cc5b89819..81fb5381e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBox.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBox.java @@ -12,19 +12,22 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceBox { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private Box sourceType; + @JsonProperty("user") private double user; @@ -62,9 +65,10 @@ public double user() { return user; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBox withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -84,7 +88,6 @@ public SourceBox withUser(double user) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,18 +98,16 @@ public boolean equals(java.lang.Object o) { } SourceBox other = (SourceBox) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.user, other.user); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.user, other.user); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - sourceType, + return Utils.enhancedHash( + clientId, clientSecret, sourceType, user); } @@ -118,44 +119,48 @@ public String toString() { "sourceType", sourceType, "user", user); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Double user; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder user(double user) { Utils.checkNotNull(user, "user"); this.user = user; return this; } - + public SourceBox build() { + return new SourceBox( - clientId, - clientSecret, - user); + clientId, clientSecret, user); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBraintree.java b/src/main/java/com/airbyte/api/models/shared/SourceBraintree.java index 4737f788f..b27e7eedc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBraintree.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBraintree.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceBraintree { +public class SourceBraintree { /** * Environment specifies where the data will come from. */ @@ -26,28 +25,36 @@ public class SourceBraintree { private SourceBraintreeEnvironment environment; /** - * The unique identifier for your entire gateway account. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this ID. + * The unique identifier for your entire gateway account. See the docs for more information on how + * to obtain this ID. */ @JsonProperty("merchant_id") private String merchantId; /** - * Braintree Private Key. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this key. + * Braintree Private Key. See the docs for more information on how + * to obtain this key. */ @JsonProperty("private_key") private String privateKey; /** - * Braintree Public Key. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this key. + * Braintree Public Key. See the docs for more information on how + * to obtain this key. */ @JsonProperty("public_key") private String publicKey; + @JsonProperty("sourceType") private Braintree sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -78,7 +85,8 @@ public SourceBraintree( String merchantId, String privateKey, String publicKey) { - this(environment, merchantId, privateKey, publicKey, Optional.empty()); + this(environment, merchantId, privateKey, + publicKey, Optional.empty()); } /** @@ -90,7 +98,9 @@ public SourceBraintreeEnvironment environment() { } /** - * The unique identifier for your entire gateway account. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this ID. + * The unique identifier for your entire gateway account. See the docs for more information on how + * to obtain this ID. */ @JsonIgnore public String merchantId() { @@ -98,7 +108,9 @@ public String merchantId() { } /** - * Braintree Private Key. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this key. + * Braintree Private Key. See the docs for more information on how + * to obtain this key. */ @JsonIgnore public String privateKey() { @@ -106,7 +118,9 @@ public String privateKey() { } /** - * Braintree Public Key. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this key. + * Braintree Public Key. See the docs for more information on how + * to obtain this key. */ @JsonIgnore public String publicKey() { @@ -119,16 +133,18 @@ public Braintree sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Environment specifies where the data will come from. @@ -140,7 +156,9 @@ public SourceBraintree withEnvironment(SourceBraintreeEnvironment environment) { } /** - * The unique identifier for your entire gateway account. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this ID. + * The unique identifier for your entire gateway account. See the docs for more information on how + * to obtain this ID. */ public SourceBraintree withMerchantId(String merchantId) { Utils.checkNotNull(merchantId, "merchantId"); @@ -149,7 +167,9 @@ public SourceBraintree withMerchantId(String merchantId) { } /** - * Braintree Private Key. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this key. + * Braintree Private Key. See the docs for more information on how + * to obtain this key. */ public SourceBraintree withPrivateKey(String privateKey) { Utils.checkNotNull(privateKey, "privateKey"); @@ -158,7 +178,9 @@ public SourceBraintree withPrivateKey(String privateKey) { } /** - * Braintree Public Key. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this key. + * Braintree Public Key. See the docs for more information on how + * to obtain this key. */ public SourceBraintree withPublicKey(String publicKey) { Utils.checkNotNull(publicKey, "publicKey"); @@ -167,7 +189,8 @@ public SourceBraintree withPublicKey(String publicKey) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceBraintree withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -175,8 +198,10 @@ public SourceBraintree withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceBraintree withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -184,7 +209,6 @@ public SourceBraintree withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -195,23 +219,19 @@ public boolean equals(java.lang.Object o) { } SourceBraintree other = (SourceBraintree) o; return - Objects.deepEquals(this.environment, other.environment) && - Objects.deepEquals(this.merchantId, other.merchantId) && - Objects.deepEquals(this.privateKey, other.privateKey) && - Objects.deepEquals(this.publicKey, other.publicKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.environment, other.environment) && + Utils.enhancedDeepEquals(this.merchantId, other.merchantId) && + Utils.enhancedDeepEquals(this.privateKey, other.privateKey) && + Utils.enhancedDeepEquals(this.publicKey, other.publicKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - environment, - merchantId, - privateKey, - publicKey, - sourceType, - startDate); + return Utils.enhancedHash( + environment, merchantId, privateKey, + publicKey, sourceType, startDate); } @Override @@ -224,23 +244,25 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceBraintreeEnvironment environment; - + private String merchantId; - + private String privateKey; - + private String publicKey; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Environment specifies where the data will come from. */ @@ -250,8 +272,11 @@ public Builder environment(SourceBraintreeEnvironment environment) { return this; } + /** - * The unique identifier for your entire gateway account. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this ID. + * The unique identifier for your entire gateway account. See the docs for more information on how + * to obtain this ID. */ public Builder merchantId(String merchantId) { Utils.checkNotNull(merchantId, "merchantId"); @@ -259,8 +284,11 @@ public Builder merchantId(String merchantId) { return this; } + /** - * Braintree Private Key. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this key. + * Braintree Private Key. See the docs for more information on how + * to obtain this key. */ public Builder privateKey(String privateKey) { Utils.checkNotNull(privateKey, "privateKey"); @@ -268,8 +296,11 @@ public Builder privateKey(String privateKey) { return this; } + /** - * Braintree Public Key. See the <a href="https://docs.airbyte.com/integrations/sources/braintree">docs</a> for more information on how to obtain this key. + * Braintree Public Key. See the docs for more information on how + * to obtain this key. */ public Builder publicKey(String publicKey) { Utils.checkNotNull(publicKey, "publicKey"); @@ -277,8 +308,10 @@ public Builder publicKey(String publicKey) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -287,23 +320,23 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceBraintree build() { + return new SourceBraintree( - environment, - merchantId, - privateKey, - publicKey, - startDate); + environment, merchantId, privateKey, + publicKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java index 38849b1e4..42d40ccbe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBraintreeEnvironment.java @@ -22,7 +22,7 @@ public enum SourceBraintreeEnvironment { @JsonValue private final String value; - private SourceBraintreeEnvironment(String value) { + SourceBraintreeEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBraze.java b/src/main/java/com/airbyte/api/models/shared/SourceBraze.java index 6cc4c4b2c..ca75bb7c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBraze.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBraze.java @@ -12,16 +12,16 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; -public class SourceBraze { +public class SourceBraze { /** * Braze REST API key */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Braze sourceType; @@ -80,9 +80,10 @@ public String url() { return url; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Braze REST API key @@ -111,7 +112,6 @@ public SourceBraze withUrl(String url) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,18 +122,16 @@ public boolean equals(java.lang.Object o) { } SourceBraze other = (SourceBraze) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.url, other.url); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.url, other.url); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, sourceType, startDate, url); } @@ -145,19 +143,21 @@ public String toString() { "startDate", startDate, "url", url); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private LocalDate startDate; - + private String url; - + private Builder() { // force use of static builder() method } + /** * Braze REST API key */ @@ -167,6 +167,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Rows after this date will be synced */ @@ -176,6 +177,7 @@ public Builder startDate(LocalDate startDate) { return this; } + /** * Braze REST API endpoint */ @@ -184,14 +186,14 @@ public Builder url(String url) { this.url = url; return this; } - + public SourceBraze build() { + return new SourceBraze( - apiKey, - startDate, - url); + apiKey, startDate, url); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBreezometer.java b/src/main/java/com/airbyte/api/models/shared/SourceBreezometer.java index b1430d5c3..f04c69726 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBreezometer.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBreezometer.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceBreezometer { +public class SourceBreezometer { /** - * Your API Access Key. See <a href="https://docs.breezometer.com/api-documentation/introduction/#authentication/">here</a>. + * Your API Access Key. See here. */ @JsonProperty("api_key") private String apiKey; @@ -65,6 +65,7 @@ public class SourceBreezometer { @JsonProperty("radius") private Optional radius; + @JsonProperty("sourceType") private Breezometer sourceType; @@ -98,11 +99,14 @@ public SourceBreezometer( String apiKey, String latitude, String longitude) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), latitude, longitude, Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), latitude, longitude, + Optional.empty()); } /** - * Your API Access Key. See <a href="https://docs.breezometer.com/api-documentation/introduction/#authentication/">here</a>. + * Your API Access Key. See here. */ @JsonIgnore public String apiKey() { @@ -162,12 +166,14 @@ public Breezometer sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Access Key. See <a href="https://docs.breezometer.com/api-documentation/introduction/#authentication/">here</a>. + * Your API Access Key. See here. */ public SourceBreezometer withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -184,6 +190,7 @@ public SourceBreezometer withDaysToForecast(long daysToForecast) { return this; } + /** * Number of days to forecast. Minimum 1, maximum 3. Valid for Polen and Weather Forecast streams. */ @@ -202,6 +209,7 @@ public SourceBreezometer withHistoricHours(long historicHours) { return this; } + /** * Number of hours retireve from Air Quality History stream. Minimum 1, maximum 720. */ @@ -220,6 +228,7 @@ public SourceBreezometer withHoursToForecast(long hoursToForecast) { return this; } + /** * Number of hours to forecast. Minimum 1, maximum 96. Valid for Air Quality Forecast stream. */ @@ -256,6 +265,7 @@ public SourceBreezometer withRadius(long radius) { return this; } + /** * Desired radius from the location provided. Minimum 5, maximum 100. Valid for Wildfires streams. */ @@ -265,7 +275,6 @@ public SourceBreezometer withRadius(Optional radius) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -276,27 +285,22 @@ public boolean equals(java.lang.Object o) { } SourceBreezometer other = (SourceBreezometer) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.daysToForecast, other.daysToForecast) && - Objects.deepEquals(this.historicHours, other.historicHours) && - Objects.deepEquals(this.hoursToForecast, other.hoursToForecast) && - Objects.deepEquals(this.latitude, other.latitude) && - Objects.deepEquals(this.longitude, other.longitude) && - Objects.deepEquals(this.radius, other.radius) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.daysToForecast, other.daysToForecast) && + Utils.enhancedDeepEquals(this.historicHours, other.historicHours) && + Utils.enhancedDeepEquals(this.hoursToForecast, other.hoursToForecast) && + Utils.enhancedDeepEquals(this.latitude, other.latitude) && + Utils.enhancedDeepEquals(this.longitude, other.longitude) && + Utils.enhancedDeepEquals(this.radius, other.radius) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - daysToForecast, - historicHours, - hoursToForecast, - latitude, - longitude, - radius, - sourceType); + return Utils.enhancedHash( + apiKey, daysToForecast, historicHours, + hoursToForecast, latitude, longitude, + radius, sourceType); } @Override @@ -311,29 +315,32 @@ public String toString() { "radius", radius, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional daysToForecast = Optional.empty(); - + private Optional historicHours = Optional.empty(); - + private Optional hoursToForecast = Optional.empty(); - + private String latitude; - + private String longitude; - + private Optional radius = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Your API Access Key. See <a href="https://docs.breezometer.com/api-documentation/introduction/#authentication/">here</a>. + * Your API Access Key. See here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -341,6 +348,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Number of days to forecast. Minimum 1, maximum 3. Valid for Polen and Weather Forecast streams. */ @@ -359,6 +367,7 @@ public Builder daysToForecast(Optional daysToForecast) { return this; } + /** * Number of hours retireve from Air Quality History stream. Minimum 1, maximum 720. */ @@ -377,6 +386,7 @@ public Builder historicHours(Optional historicHours) { return this; } + /** * Number of hours to forecast. Minimum 1, maximum 96. Valid for Air Quality Forecast stream. */ @@ -395,6 +405,7 @@ public Builder hoursToForecast(Optional hoursToForecast) { return this; } + /** * Latitude of the monitored location. */ @@ -404,6 +415,7 @@ public Builder latitude(String latitude) { return this; } + /** * Longitude of the monitored location. */ @@ -413,6 +425,7 @@ public Builder longitude(String longitude) { return this; } + /** * Desired radius from the location provided. Minimum 5, maximum 100. Valid for Wildfires streams. */ @@ -430,18 +443,16 @@ public Builder radius(Optional radius) { this.radius = radius; return this; } - + public SourceBreezometer build() { + return new SourceBreezometer( - apiKey, - daysToForecast, - historicHours, - hoursToForecast, - latitude, - longitude, + apiKey, daysToForecast, historicHours, + hoursToForecast, latitude, longitude, radius); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java b/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java index e0e1e980e..3bcdb0efd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBreezyHr.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceBreezyHr { @JsonProperty("api_key") private String apiKey; + @JsonProperty("company_id") private String companyId; + @JsonProperty("sourceType") private BreezyHr sourceType; @@ -50,9 +52,10 @@ public BreezyHr sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBreezyHr withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -66,7 +69,6 @@ public SourceBreezyHr withCompanyId(String companyId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceBreezyHr other = (SourceBreezyHr) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.companyId, other.companyId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - companyId, - sourceType); + return Utils.enhancedHash( + apiKey, companyId, sourceType); } @Override @@ -97,35 +97,39 @@ public String toString() { "companyId", companyId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String companyId; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder companyId(String companyId) { Utils.checkNotNull(companyId, "companyId"); this.companyId = companyId; return this; } - + public SourceBreezyHr build() { + return new SourceBreezyHr( - apiKey, - companyId); + apiKey, companyId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBrevo.java b/src/main/java/com/airbyte/api/models/shared/SourceBrevo.java index f96b0cd4b..75c071fd5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBrevo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBrevo.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceBrevo { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Brevo sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBrevo withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceBrevo withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceBrevo other = (SourceBrevo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceBrevo build() { + return new SourceBrevo( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBrex.java b/src/main/java/com/airbyte/api/models/shared/SourceBrex.java index 061484ae3..765955db4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBrex.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBrex.java @@ -12,18 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceBrex { @JsonProperty("sourceType") private Brex sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; /** - * User token to authenticate API requests. Generate it from your Brex dashboard under Developer > Settings. + * User token to authenticate API requests. Generate it from your Brex dashboard under Developer > + * Settings. */ @JsonProperty("user_token") private String userToken; @@ -50,16 +52,18 @@ public OffsetDateTime startDate() { } /** - * User token to authenticate API requests. Generate it from your Brex dashboard under Developer > Settings. + * User token to authenticate API requests. Generate it from your Brex dashboard under Developer > + * Settings. */ @JsonIgnore public String userToken() { return userToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBrex withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -68,7 +72,8 @@ public SourceBrex withStartDate(OffsetDateTime startDate) { } /** - * User token to authenticate API requests. Generate it from your Brex dashboard under Developer > Settings. + * User token to authenticate API requests. Generate it from your Brex dashboard under Developer > + * Settings. */ public SourceBrex withUserToken(String userToken) { Utils.checkNotNull(userToken, "userToken"); @@ -76,7 +81,6 @@ public SourceBrex withUserToken(String userToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceBrex other = (SourceBrex) o; return - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.userToken, other.userToken); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.userToken, other.userToken); } @Override public int hashCode() { - return Objects.hash( - sourceType, - startDate, - userToken); + return Utils.enhancedHash( + sourceType, startDate, userToken); } @Override @@ -107,38 +109,43 @@ public String toString() { "startDate", startDate, "userToken", userToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private OffsetDateTime startDate; - + private String userToken; - + private Builder() { // force use of static builder() method } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** - * User token to authenticate API requests. Generate it from your Brex dashboard under Developer > Settings. + * User token to authenticate API requests. Generate it from your Brex dashboard under Developer > + * Settings. */ public Builder userToken(String userToken) { Utils.checkNotNull(userToken, "userToken"); this.userToken = userToken; return this; } - + public SourceBrex build() { + return new SourceBrex( - startDate, - userToken); + startDate, userToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBugsnag.java b/src/main/java/com/airbyte/api/models/shared/SourceBugsnag.java index fc944181f..7f0e73780 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBugsnag.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBugsnag.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceBugsnag { +public class SourceBugsnag { /** - * Personal auth token for accessing the Bugsnag API. Generate it in the My Account section of Bugsnag settings. + * Personal auth token for accessing the Bugsnag API. Generate it in the My Account section of Bugsnag + * settings. */ @JsonProperty("auth_token") private String authToken; + @JsonProperty("sourceType") private Bugsnag sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public SourceBugsnag( } /** - * Personal auth token for accessing the Bugsnag API. Generate it in the My Account section of Bugsnag settings. + * Personal auth token for accessing the Bugsnag API. Generate it in the My Account section of Bugsnag + * settings. */ @JsonIgnore public String authToken() { @@ -57,12 +60,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Personal auth token for accessing the Bugsnag API. Generate it in the My Account section of Bugsnag settings. + * Personal auth token for accessing the Bugsnag API. Generate it in the My Account section of Bugsnag + * settings. */ public SourceBugsnag withAuthToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -76,7 +81,6 @@ public SourceBugsnag withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceBugsnag other = (SourceBugsnag) o; return - Objects.deepEquals(this.authToken, other.authToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.authToken, other.authToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - authToken, - sourceType, - startDate); + return Utils.enhancedHash( + authToken, sourceType, startDate); } @Override @@ -107,19 +109,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String authToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Personal auth token for accessing the Bugsnag API. Generate it in the My Account section of Bugsnag settings. + * Personal auth token for accessing the Bugsnag API. Generate it in the My Account section of Bugsnag + * settings. */ public Builder authToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -127,18 +132,20 @@ public Builder authToken(String authToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceBugsnag build() { + return new SourceBugsnag( - authToken, - startDate); + authToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBuildkite.java b/src/main/java/com/airbyte/api/models/shared/SourceBuildkite.java index f5bdabf61..c8b2c0367 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBuildkite.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBuildkite.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceBuildkite { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Buildkite sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBuildkite withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceBuildkite withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceBuildkite other = (SourceBuildkite) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceBuildkite build() { + return new SourceBuildkite( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBunnyInc.java b/src/main/java/com/airbyte/api/models/shared/SourceBunnyInc.java index 0bb7ee89c..66ff894fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBunnyInc.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBunnyInc.java @@ -14,17 +14,19 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceBunnyInc { @JsonProperty("apikey") private String apikey; + @JsonProperty("sourceType") private BunnyInc sourceType; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; @@ -78,9 +80,10 @@ public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBunnyInc withApikey(String apikey) { Utils.checkNotNull(apikey, "apikey"); @@ -94,6 +97,7 @@ public SourceBunnyInc withStartDate(OffsetDateTime startDate) { return this; } + public SourceBunnyInc withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; @@ -109,7 +113,6 @@ public SourceBunnyInc withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +123,16 @@ public boolean equals(java.lang.Object o) { } SourceBunnyInc other = (SourceBunnyInc) o; return - Objects.deepEquals(this.apikey, other.apikey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apikey, other.apikey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apikey, - sourceType, - startDate, + return Utils.enhancedHash( + apikey, sourceType, startDate, subdomain); } @@ -143,25 +144,28 @@ public String toString() { "startDate", startDate, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apikey; - + private Optional startDate = Optional.empty(); - + private String subdomain; - + private Builder() { // force use of static builder() method } + public Builder apikey(String apikey) { Utils.checkNotNull(apikey, "apikey"); this.apikey = apikey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = Optional.ofNullable(startDate); @@ -174,6 +178,7 @@ public Builder startDate(Optional startDate) { return this; } + /** * The subdomain specific to your Bunny account or service. */ @@ -182,14 +187,14 @@ public Builder subdomain(String subdomain) { this.subdomain = subdomain; return this; } - + public SourceBunnyInc build() { + return new SourceBunnyInc( - apikey, - startDate, - subdomain); + apikey, startDate, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceBuzzsprout.java b/src/main/java/com/airbyte/api/models/shared/SourceBuzzsprout.java index c2bd9eaa1..6e5b64c85 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceBuzzsprout.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceBuzzsprout.java @@ -12,7 +12,7 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceBuzzsprout { @@ -25,9 +25,11 @@ public class SourceBuzzsprout { @JsonProperty("podcast_id") private String podcastId; + @JsonProperty("sourceType") private Buzzsprout sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -68,9 +70,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceBuzzsprout withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -93,7 +96,6 @@ public SourceBuzzsprout withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,18 +106,16 @@ public boolean equals(java.lang.Object o) { } SourceBuzzsprout other = (SourceBuzzsprout) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.podcastId, other.podcastId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.podcastId, other.podcastId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - podcastId, - sourceType, + return Utils.enhancedHash( + apiKey, podcastId, sourceType, startDate); } @@ -127,25 +127,28 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String podcastId; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Podcast ID found in `https://www.buzzsprout.com/my/profile/api` */ @@ -155,19 +158,20 @@ public Builder podcastId(String podcastId) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceBuzzsprout build() { + return new SourceBuzzsprout( - apiKey, - podcastId, - startDate); + apiKey, podcastId, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCalCom.java b/src/main/java/com/airbyte/api/models/shared/SourceCalCom.java index 48dda287d..8bdd67ae7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCalCom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCalCom.java @@ -11,19 +11,20 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceCalCom { +public class SourceCalCom { /** * API key to use. Find it at https://cal.com/account */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("orgId") private String orgId; + @JsonProperty("sourceType") private CalCom sourceType; @@ -56,9 +57,10 @@ public CalCom sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it at https://cal.com/account @@ -75,7 +77,6 @@ public SourceCalCom withOrgId(String orgId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +87,15 @@ public boolean equals(java.lang.Object o) { } SourceCalCom other = (SourceCalCom) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.orgId, other.orgId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.orgId, other.orgId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - orgId, - sourceType); + return Utils.enhancedHash( + apiKey, orgId, sourceType); } @Override @@ -106,17 +105,19 @@ public String toString() { "orgId", orgId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String orgId; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it at https://cal.com/account */ @@ -126,18 +127,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder orgId(String orgId) { Utils.checkNotNull(orgId, "orgId"); this.orgId = orgId; return this; } - + public SourceCalCom build() { + return new SourceCalCom( - apiKey, - orgId); + apiKey, orgId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java b/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java index 240172e45..046fa29ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCalendly.java @@ -7,46 +7,79 @@ import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Double; import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; +import java.util.Optional; -public class SourceCalendly { +public class SourceCalendly { /** - * Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks + * Go to Integrations → API & Webhooks to obtain your bearer token. + * https://calendly.com/integrations/api_webhooks */ @JsonProperty("api_key") private String apiKey; + /** + * Number of days to be subtracted from the last cutoff date before starting to sync the + * `scheduled_events` stream. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("lookback_days") + private Optional lookbackDays; + + @JsonProperty("sourceType") private Calendly sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @JsonCreator public SourceCalendly( @JsonProperty("api_key") String apiKey, + @JsonProperty("lookback_days") Optional lookbackDays, @JsonProperty("start_date") OffsetDateTime startDate) { Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(lookbackDays, "lookbackDays"); Utils.checkNotNull(startDate, "startDate"); this.apiKey = apiKey; + this.lookbackDays = lookbackDays; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; } + + public SourceCalendly( + String apiKey, + OffsetDateTime startDate) { + this(apiKey, Optional.empty(), startDate); + } /** - * Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks + * Go to Integrations → API & Webhooks to obtain your bearer token. + * https://calendly.com/integrations/api_webhooks */ @JsonIgnore public String apiKey() { return apiKey; } + /** + * Number of days to be subtracted from the last cutoff date before starting to sync the + * `scheduled_events` stream. + */ + @JsonIgnore + public Optional lookbackDays() { + return lookbackDays; + } + @JsonIgnore public Calendly sourceType() { return sourceType; @@ -57,12 +90,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks + * Go to Integrations → API & Webhooks to obtain your bearer token. + * https://calendly.com/integrations/api_webhooks */ public SourceCalendly withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -70,13 +105,33 @@ public SourceCalendly withApiKey(String apiKey) { return this; } + /** + * Number of days to be subtracted from the last cutoff date before starting to sync the + * `scheduled_events` stream. + */ + public SourceCalendly withLookbackDays(double lookbackDays) { + Utils.checkNotNull(lookbackDays, "lookbackDays"); + this.lookbackDays = Optional.ofNullable(lookbackDays); + return this; + } + + + /** + * Number of days to be subtracted from the last cutoff date before starting to sync the + * `scheduled_events` stream. + */ + public SourceCalendly withLookbackDays(Optional lookbackDays) { + Utils.checkNotNull(lookbackDays, "lookbackDays"); + this.lookbackDays = lookbackDays; + return this; + } + public SourceCalendly withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,16 +142,16 @@ public boolean equals(java.lang.Object o) { } SourceCalendly other = (SourceCalendly) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.lookbackDays, other.lookbackDays) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, + return Utils.enhancedHash( + apiKey, lookbackDays, sourceType, startDate); } @@ -104,22 +159,28 @@ public int hashCode() { public String toString() { return Utils.toString(SourceCalendly.class, "apiKey", apiKey, + "lookbackDays", lookbackDays, "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + + private Optional lookbackDays; + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Go to Integrations → API & Webhooks to obtain your bearer token. https://calendly.com/integrations/api_webhooks + * Go to Integrations → API & Webhooks to obtain your bearer token. + * https://calendly.com/integrations/api_webhooks */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -127,18 +188,50 @@ public Builder apiKey(String apiKey) { return this; } + + /** + * Number of days to be subtracted from the last cutoff date before starting to sync the + * `scheduled_events` stream. + */ + public Builder lookbackDays(double lookbackDays) { + Utils.checkNotNull(lookbackDays, "lookbackDays"); + this.lookbackDays = Optional.ofNullable(lookbackDays); + return this; + } + + /** + * Number of days to be subtracted from the last cutoff date before starting to sync the + * `scheduled_events` stream. + */ + public Builder lookbackDays(Optional lookbackDays) { + Utils.checkNotNull(lookbackDays, "lookbackDays"); + this.lookbackDays = lookbackDays; + return this; + } + + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceCalendly build() { + if (lookbackDays == null) { + lookbackDays = _SINGLETON_VALUE_LookbackDays.value(); + } + return new SourceCalendly( - apiKey, - startDate); + apiKey, lookbackDays, startDate); } + + private static final LazySingletonValue> _SINGLETON_VALUE_LookbackDays = + new LazySingletonValue<>( + "lookback_days", + "0", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCallrail.java b/src/main/java/com/airbyte/api/models/shared/SourceCallrail.java index 24ff838f5..7338efbb8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCallrail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCallrail.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceCallrail { +public class SourceCallrail { /** * Account ID */ @@ -27,6 +26,7 @@ public class SourceCallrail { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Callrail sourceType; @@ -79,9 +79,10 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Account ID @@ -110,7 +111,6 @@ public SourceCallrail withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +121,16 @@ public boolean equals(java.lang.Object o) { } SourceCallrail other = (SourceCallrail) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountId, - apiKey, - sourceType, + return Utils.enhancedHash( + accountId, apiKey, sourceType, startDate); } @@ -144,19 +142,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private String apiKey; - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * Account ID */ @@ -166,6 +166,7 @@ public Builder accountId(String accountId) { return this; } + /** * API access key */ @@ -175,6 +176,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Start getting data from that date. */ @@ -183,14 +185,14 @@ public Builder startDate(String startDate) { this.startDate = startDate; return this; } - + public SourceCallrail build() { + return new SourceCallrail( - accountId, - apiKey, - startDate); + accountId, apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCampaignMonitor.java b/src/main/java/com/airbyte/api/models/shared/SourceCampaignMonitor.java index 36b23b874..835ee7dcf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCampaignMonitor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCampaignMonitor.java @@ -13,15 +13,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceCampaignMonitor { @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private CampaignMonitor sourceType; @@ -32,6 +33,7 @@ public class SourceCampaignMonitor { @JsonProperty("start_date") private Optional startDate; + @JsonProperty("username") private String username; @@ -77,9 +79,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceCampaignMonitor withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -87,6 +90,7 @@ public SourceCampaignMonitor withPassword(String password) { return this; } + public SourceCampaignMonitor withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -102,6 +106,7 @@ public SourceCampaignMonitor withStartDate(String startDate) { return this; } + /** * Date from when the sync should start */ @@ -117,7 +122,6 @@ public SourceCampaignMonitor withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -128,18 +132,16 @@ public boolean equals(java.lang.Object o) { } SourceCampaignMonitor other = (SourceCampaignMonitor) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - startDate, + return Utils.enhancedHash( + password, sourceType, startDate, username); } @@ -151,19 +153,21 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -176,6 +180,7 @@ public Builder password(Optional password) { return this; } + /** * Date from when the sync should start */ @@ -194,19 +199,20 @@ public Builder startDate(Optional startDate) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceCampaignMonitor build() { + return new SourceCampaignMonitor( - password, - startDate, - username); + password, startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCampayn.java b/src/main/java/com/airbyte/api/models/shared/SourceCampayn.java index 5b6096573..2f3d6d6ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCampayn.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCampayn.java @@ -11,19 +11,21 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceCampayn { +public class SourceCampayn { /** - * API key to use. Find it in your Campayn account settings. Keep it secure as it grants access to your Campayn data. + * API key to use. Find it in your Campayn account settings. Keep it secure as it grants access to your + * Campayn data. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Campayn sourceType; + @JsonProperty("sub_domain") private String subDomain; @@ -39,7 +41,8 @@ public SourceCampayn( } /** - * API key to use. Find it in your Campayn account settings. Keep it secure as it grants access to your Campayn data. + * API key to use. Find it in your Campayn account settings. Keep it secure as it grants access to your + * Campayn data. */ @JsonIgnore public String apiKey() { @@ -56,12 +59,14 @@ public String subDomain() { return subDomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key to use. Find it in your Campayn account settings. Keep it secure as it grants access to your Campayn data. + * API key to use. Find it in your Campayn account settings. Keep it secure as it grants access to your + * Campayn data. */ public SourceCampayn withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -75,7 +80,6 @@ public SourceCampayn withSubDomain(String subDomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +90,15 @@ public boolean equals(java.lang.Object o) { } SourceCampayn other = (SourceCampayn) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.subDomain, other.subDomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.subDomain, other.subDomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - subDomain); + return Utils.enhancedHash( + apiKey, sourceType, subDomain); } @Override @@ -106,19 +108,22 @@ public String toString() { "sourceType", sourceType, "subDomain", subDomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String subDomain; - + private Builder() { // force use of static builder() method } + /** - * API key to use. Find it in your Campayn account settings. Keep it secure as it grants access to your Campayn data. + * API key to use. Find it in your Campayn account settings. Keep it secure as it grants access to your + * Campayn data. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -126,18 +131,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder subDomain(String subDomain) { Utils.checkNotNull(subDomain, "subDomain"); this.subDomain = subDomain; return this; } - + public SourceCampayn build() { + return new SourceCampayn( - apiKey, - subDomain); + apiKey, subDomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCanny.java b/src/main/java/com/airbyte/api/models/shared/SourceCanny.java index ae3b5c76b..1a62d3bb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCanny.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCanny.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceCanny { +public class SourceCanny { /** * You can find your secret API key in Your Canny Subdomain > Settings > API */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Canny sourceType; @@ -45,9 +45,10 @@ public Canny sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * You can find your secret API key in Your Canny Subdomain > Settings > API @@ -58,7 +59,6 @@ public SourceCanny withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceCanny other = (SourceCanny) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * You can find your secret API key in Your Canny Subdomain > Settings > API */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceCanny build() { + return new SourceCanny( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCapsuleCrm.java b/src/main/java/com/airbyte/api/models/shared/SourceCapsuleCrm.java index d0e76da30..2f4ef9f7d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCapsuleCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCapsuleCrm.java @@ -12,22 +12,25 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceCapsuleCrm { +public class SourceCapsuleCrm { /** - * Bearer token to authenticate API requests. Generate it from the 'My Preferences' > 'API Authentication Tokens' page in your Capsule account. + * Bearer token to authenticate API requests. Generate it from the 'My Preferences' > 'API + * Authentication Tokens' page in your Capsule account. */ @JsonProperty("bearer_token") private String bearerToken; + @JsonProperty("entity") private Entity entity; + @JsonProperty("sourceType") private CapsuleCrm sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -46,7 +49,8 @@ public SourceCapsuleCrm( } /** - * Bearer token to authenticate API requests. Generate it from the 'My Preferences' > 'API Authentication Tokens' page in your Capsule account. + * Bearer token to authenticate API requests. Generate it from the 'My Preferences' > 'API + * Authentication Tokens' page in your Capsule account. */ @JsonIgnore public String bearerToken() { @@ -68,12 +72,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Bearer token to authenticate API requests. Generate it from the 'My Preferences' > 'API Authentication Tokens' page in your Capsule account. + * Bearer token to authenticate API requests. Generate it from the 'My Preferences' > 'API + * Authentication Tokens' page in your Capsule account. */ public SourceCapsuleCrm withBearerToken(String bearerToken) { Utils.checkNotNull(bearerToken, "bearerToken"); @@ -93,7 +99,6 @@ public SourceCapsuleCrm withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,18 +109,16 @@ public boolean equals(java.lang.Object o) { } SourceCapsuleCrm other = (SourceCapsuleCrm) o; return - Objects.deepEquals(this.bearerToken, other.bearerToken) && - Objects.deepEquals(this.entity, other.entity) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.bearerToken, other.bearerToken) && + Utils.enhancedDeepEquals(this.entity, other.entity) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - bearerToken, - entity, - sourceType, + return Utils.enhancedHash( + bearerToken, entity, sourceType, startDate); } @@ -127,21 +130,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String bearerToken; - + private Entity entity; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Bearer token to authenticate API requests. Generate it from the 'My Preferences' > 'API Authentication Tokens' page in your Capsule account. + * Bearer token to authenticate API requests. Generate it from the 'My Preferences' > 'API + * Authentication Tokens' page in your Capsule account. */ public Builder bearerToken(String bearerToken) { Utils.checkNotNull(bearerToken, "bearerToken"); @@ -149,25 +155,27 @@ public Builder bearerToken(String bearerToken) { return this; } + public Builder entity(Entity entity) { Utils.checkNotNull(entity, "entity"); this.entity = entity; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceCapsuleCrm build() { + return new SourceCapsuleCrm( - bearerToken, - entity, - startDate); + bearerToken, entity, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCaptainData.java b/src/main/java/com/airbyte/api/models/shared/SourceCaptainData.java index 92eff0ef7..e3f594568 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCaptainData.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCaptainData.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceCaptainData { +public class SourceCaptainData { /** * Your Captain Data project API key. */ @@ -27,6 +26,7 @@ public class SourceCaptainData { @JsonProperty("project_uid") private String projectUid; + @JsonProperty("sourceType") private CaptainData sourceType; @@ -62,9 +62,10 @@ public CaptainData sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your Captain Data project API key. @@ -84,7 +85,6 @@ public SourceCaptainData withProjectUid(String projectUid) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceCaptainData other = (SourceCaptainData) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.projectUid, other.projectUid) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.projectUid, other.projectUid) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - projectUid, - sourceType); + return Utils.enhancedHash( + apiKey, projectUid, sourceType); } @Override @@ -115,17 +113,19 @@ public String toString() { "projectUid", projectUid, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String projectUid; - + private Builder() { // force use of static builder() method } + /** * Your Captain Data project API key. */ @@ -135,6 +135,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Your Captain Data project uuid. */ @@ -143,13 +144,14 @@ public Builder projectUid(String projectUid) { this.projectUid = projectUid; return this; } - + public SourceCaptainData build() { + return new SourceCaptainData( - apiKey, - projectUid); + apiKey, projectUid); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCareQualityCommission.java b/src/main/java/com/airbyte/api/models/shared/SourceCareQualityCommission.java index 248df0af1..e04efa28b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCareQualityCommission.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCareQualityCommission.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceCareQualityCommission { +public class SourceCareQualityCommission { /** - * Your CQC Primary Key. See https://www.cqc.org.uk/about-us/transparency/using-cqc-data#api for steps to generate one. + * Your CQC Primary Key. See https://www.cqc.org.uk/about-us/transparency/using-cqc-data#api for steps + * to generate one. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private CareQualityCommission sourceType; @@ -33,7 +34,8 @@ public SourceCareQualityCommission( } /** - * Your CQC Primary Key. See https://www.cqc.org.uk/about-us/transparency/using-cqc-data#api for steps to generate one. + * Your CQC Primary Key. See https://www.cqc.org.uk/about-us/transparency/using-cqc-data#api for steps + * to generate one. */ @JsonIgnore public String apiKey() { @@ -45,12 +47,14 @@ public CareQualityCommission sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your CQC Primary Key. See https://www.cqc.org.uk/about-us/transparency/using-cqc-data#api for steps to generate one. + * Your CQC Primary Key. See https://www.cqc.org.uk/about-us/transparency/using-cqc-data#api for steps + * to generate one. */ public SourceCareQualityCommission withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +62,6 @@ public SourceCareQualityCommission withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceCareQualityCommission other = (SourceCareQualityCommission) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * Your CQC Primary Key. See https://www.cqc.org.uk/about-us/transparency/using-cqc-data#api for steps to generate one. + * Your CQC Primary Key. See https://www.cqc.org.uk/about-us/transparency/using-cqc-data#api for steps + * to generate one. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceCareQualityCommission build() { + return new SourceCareQualityCommission( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCart.java b/src/main/java/com/airbyte/api/models/shared/SourceCart.java index 7d233818e..7104043f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCart.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCart.java @@ -14,15 +14,16 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceCart { @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; + @JsonProperty("sourceType") private Cart sourceType; @@ -67,9 +68,10 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceCart withCredentials(SourceCartAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -77,6 +79,7 @@ public SourceCart withCredentials(SourceCartAuthorizationMethod credentials) { return this; } + public SourceCart withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -92,7 +95,6 @@ public SourceCart withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -103,17 +105,15 @@ public boolean equals(java.lang.Object o) { } SourceCart other = (SourceCart) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - credentials, - sourceType, - startDate); + return Utils.enhancedHash( + credentials, sourceType, startDate); } @Override @@ -123,17 +123,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private String startDate; - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceCartAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -146,6 +148,7 @@ public Builder credentials(Optional cre return this; } + /** * The date from which you'd like to replicate the data */ @@ -154,13 +157,14 @@ public Builder startDate(String startDate) { this.startDate = startDate; return this; } - + public SourceCart build() { + return new SourceCart( - credentials, - startDate); + credentials, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java index df81b9616..99f3ec211 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCartAuthType.java @@ -14,7 +14,7 @@ public enum SourceCartAuthType { @JsonValue private final String value; - private SourceCartAuthType(String value) { + SourceCartAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCartAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceCartAuthorizationMethod.java index 24e02be66..959d087c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCartAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCartAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceCartAuthorizationMethod._Deserializer.class) public class SourceCartAuthorizationMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceCartAuthorizationMethod other = (SourceCartAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java index a744ea917..558211957 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCartSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceCartSchemasAuthType { @JsonValue private final String value; - private SourceCartSchemasAuthType(String value) { + SourceCartSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCastorEdc.java b/src/main/java/com/airbyte/api/models/shared/SourceCastorEdc.java index 840cd8086..01b243e2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCastorEdc.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCastorEdc.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceCastorEdc { +public class SourceCastorEdc { /** * Visit `https://YOUR_REGION.castoredc.com/account/settings` */ @@ -32,9 +31,11 @@ public class SourceCastorEdc { @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private CastorEdc sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -66,7 +67,8 @@ public SourceCastorEdc( String clientId, String clientSecret, OffsetDateTime startDate) { - this(clientId, clientSecret, startDate, Optional.empty()); + this(clientId, clientSecret, startDate, + Optional.empty()); } /** @@ -104,9 +106,10 @@ public Optional urlRegion() { return (Optional) urlRegion; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Visit `https://YOUR_REGION.castoredc.com/account/settings` @@ -141,6 +144,7 @@ public SourceCastorEdc withUrlRegion(URLRegion urlRegion) { return this; } + /** * The url region given at time of registration */ @@ -150,7 +154,6 @@ public SourceCastorEdc withUrlRegion(Optional urlRegion) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -161,21 +164,18 @@ public boolean equals(java.lang.Object o) { } SourceCastorEdc other = (SourceCastorEdc) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.urlRegion, other.urlRegion); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.urlRegion, other.urlRegion); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - sourceType, - startDate, - urlRegion); + return Utils.enhancedHash( + clientId, clientSecret, sourceType, + startDate, urlRegion); } @Override @@ -187,21 +187,23 @@ public String toString() { "startDate", startDate, "urlRegion", urlRegion); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private OffsetDateTime startDate; - + private Optional urlRegion; - + private Builder() { // force use of static builder() method } + /** * Visit `https://YOUR_REGION.castoredc.com/account/settings` */ @@ -211,6 +213,7 @@ public Builder clientId(String clientId) { return this; } + /** * Visit `https://YOUR_REGION.castoredc.com/account/settings` */ @@ -220,12 +223,14 @@ public Builder clientSecret(String clientSecret) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * The url region given at time of registration */ @@ -243,18 +248,18 @@ public Builder urlRegion(Optional urlRegion) { this.urlRegion = urlRegion; return this; } - + public SourceCastorEdc build() { if (urlRegion == null) { urlRegion = _SINGLETON_VALUE_UrlRegion.value(); } + return new SourceCastorEdc( - clientId, - clientSecret, - startDate, + clientId, clientSecret, startDate, urlRegion); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChameleon.java b/src/main/java/com/airbyte/api/models/shared/SourceChameleon.java index b852cd6ea..d49382b51 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceChameleon.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceChameleon.java @@ -15,9 +15,9 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceChameleon { @JsonProperty("api_key") @@ -44,9 +44,11 @@ public class SourceChameleon { @JsonProperty("limit") private Optional limit; + @JsonProperty("sourceType") private Chameleon sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -73,7 +75,8 @@ public SourceChameleon( public SourceChameleon( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), startDate); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), startDate); } @JsonIgnore @@ -116,9 +119,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceChameleon withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -135,6 +139,7 @@ public SourceChameleon withEndDate(OffsetDateTime endDate) { return this; } + /** * End date for incremental sync */ @@ -153,6 +158,7 @@ public SourceChameleon withFilter(Filter filter) { return this; } + /** * Filter for using in the `segments_experiences` stream */ @@ -171,6 +177,7 @@ public SourceChameleon withLimit(String limit) { return this; } + /** * Max records per page limit */ @@ -186,7 +193,6 @@ public SourceChameleon withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -197,23 +203,19 @@ public boolean equals(java.lang.Object o) { } SourceChameleon other = (SourceChameleon) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.filter, other.filter) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.filter, other.filter) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - endDate, - filter, - limit, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, endDate, filter, + limit, sourceType, startDate); } @Override @@ -226,29 +228,32 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional endDate = Optional.empty(); - + private Optional filter; - + private Optional limit; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * End date for incremental sync */ @@ -267,6 +272,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * Filter for using in the `segments_experiences` stream */ @@ -285,6 +291,7 @@ public Builder filter(Optional filter) { return this; } + /** * Max records per page limit */ @@ -303,12 +310,13 @@ public Builder limit(Optional limit) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceChameleon build() { if (filter == null) { filter = _SINGLETON_VALUE_Filter.value(); @@ -316,14 +324,13 @@ public SourceChameleon build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } + return new SourceChameleon( - apiKey, - endDate, - filter, - limit, - startDate); + apiKey, endDate, filter, + limit, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filter = new LazySingletonValue<>( "filter", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChargebee.java b/src/main/java/com/airbyte/api/models/shared/SourceChargebee.java index 998e899d8..07369b3c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceChargebee.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceChargebee.java @@ -16,20 +16,24 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceChargebee { +public class SourceChargebee { /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://support.chargebee.com/support/solutions/articles/243576-what-are-the-chargebee-api-limits-">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's + * API docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("num_workers") private Optional numWorkers; /** - * Product Catalog version of your Chargebee site. Instructions on how to find your version you may find <a href="https://apidocs.chargebee.com/docs/api?prod_cat_ver=2">here</a> under `API Version` section. If left blank, the product catalog version will be set to 2.0. + * Product Catalog version of your Chargebee site. Instructions on how to find your version you may + * find here under `API Version` + * section. If left blank, the product catalog version will be set to 2.0. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("product_catalog") @@ -42,16 +46,20 @@ public class SourceChargebee { private String site; /** - * Chargebee API Key. See the <a href="https://docs.airbyte.com/integrations/sources/chargebee">docs</a> for more information on how to obtain this key. + * Chargebee API Key. See the docs for more information on how + * to obtain this key. */ @JsonProperty("site_api_key") private String siteApiKey; + @JsonProperty("sourceType") private Chargebee sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -80,11 +88,15 @@ public SourceChargebee( String site, String siteApiKey, OffsetDateTime startDate) { - this(Optional.empty(), Optional.empty(), site, siteApiKey, startDate); + this(Optional.empty(), Optional.empty(), site, + siteApiKey, startDate); } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://support.chargebee.com/support/solutions/articles/243576-what-are-the-chargebee-api-limits-">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's + * API docs. */ @JsonIgnore public Optional numWorkers() { @@ -92,7 +104,9 @@ public Optional numWorkers() { } /** - * Product Catalog version of your Chargebee site. Instructions on how to find your version you may find <a href="https://apidocs.chargebee.com/docs/api?prod_cat_ver=2">here</a> under `API Version` section. If left blank, the product catalog version will be set to 2.0. + * Product Catalog version of your Chargebee site. Instructions on how to find your version you may + * find here under `API Version` + * section. If left blank, the product catalog version will be set to 2.0. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -109,7 +123,9 @@ public String site() { } /** - * Chargebee API Key. See the <a href="https://docs.airbyte.com/integrations/sources/chargebee">docs</a> for more information on how to obtain this key. + * Chargebee API Key. See the docs for more information on how + * to obtain this key. */ @JsonIgnore public String siteApiKey() { @@ -122,19 +138,24 @@ public Chargebee sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://support.chargebee.com/support/solutions/articles/243576-what-are-the-chargebee-api-limits-">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's + * API docs. */ public SourceChargebee withNumWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -142,8 +163,12 @@ public SourceChargebee withNumWorkers(long numWorkers) { return this; } + /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://support.chargebee.com/support/solutions/articles/243576-what-are-the-chargebee-api-limits-">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's + * API docs. */ public SourceChargebee withNumWorkers(Optional numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -152,7 +177,9 @@ public SourceChargebee withNumWorkers(Optional numWorkers) { } /** - * Product Catalog version of your Chargebee site. Instructions on how to find your version you may find <a href="https://apidocs.chargebee.com/docs/api?prod_cat_ver=2">here</a> under `API Version` section. If left blank, the product catalog version will be set to 2.0. + * Product Catalog version of your Chargebee site. Instructions on how to find your version you may + * find here under `API Version` + * section. If left blank, the product catalog version will be set to 2.0. */ public SourceChargebee withProductCatalog(ProductCatalog productCatalog) { Utils.checkNotNull(productCatalog, "productCatalog"); @@ -160,8 +187,11 @@ public SourceChargebee withProductCatalog(ProductCatalog productCatalog) { return this; } + /** - * Product Catalog version of your Chargebee site. Instructions on how to find your version you may find <a href="https://apidocs.chargebee.com/docs/api?prod_cat_ver=2">here</a> under `API Version` section. If left blank, the product catalog version will be set to 2.0. + * Product Catalog version of your Chargebee site. Instructions on how to find your version you may + * find here under `API Version` + * section. If left blank, the product catalog version will be set to 2.0. */ public SourceChargebee withProductCatalog(Optional productCatalog) { Utils.checkNotNull(productCatalog, "productCatalog"); @@ -179,7 +209,9 @@ public SourceChargebee withSite(String site) { } /** - * Chargebee API Key. See the <a href="https://docs.airbyte.com/integrations/sources/chargebee">docs</a> for more information on how to obtain this key. + * Chargebee API Key. See the docs for more information on how + * to obtain this key. */ public SourceChargebee withSiteApiKey(String siteApiKey) { Utils.checkNotNull(siteApiKey, "siteApiKey"); @@ -188,7 +220,8 @@ public SourceChargebee withSiteApiKey(String siteApiKey) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be + * replicated. */ public SourceChargebee withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -196,7 +229,6 @@ public SourceChargebee withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -207,23 +239,19 @@ public boolean equals(java.lang.Object o) { } SourceChargebee other = (SourceChargebee) o; return - Objects.deepEquals(this.numWorkers, other.numWorkers) && - Objects.deepEquals(this.productCatalog, other.productCatalog) && - Objects.deepEquals(this.site, other.site) && - Objects.deepEquals(this.siteApiKey, other.siteApiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.productCatalog, other.productCatalog) && + Utils.enhancedDeepEquals(this.site, other.site) && + Utils.enhancedDeepEquals(this.siteApiKey, other.siteApiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - numWorkers, - productCatalog, - site, - siteApiKey, - sourceType, - startDate); + return Utils.enhancedHash( + numWorkers, productCatalog, site, + siteApiKey, sourceType, startDate); } @Override @@ -236,25 +264,30 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional numWorkers; - + private Optional productCatalog; - + private String site; - + private String siteApiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://support.chargebee.com/support/solutions/articles/243576-what-are-the-chargebee-api-limits-">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's + * API docs. */ public Builder numWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -263,7 +296,10 @@ public Builder numWorkers(long numWorkers) { } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's API <a href="https://support.chargebee.com/support/solutions/articles/243576-what-are-the-chargebee-api-limits-">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Chargebee plan. More info about the rate limit plan tiers can be found on Chargebee's + * API docs. */ public Builder numWorkers(Optional numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -271,8 +307,11 @@ public Builder numWorkers(Optional numWorkers) { return this; } + /** - * Product Catalog version of your Chargebee site. Instructions on how to find your version you may find <a href="https://apidocs.chargebee.com/docs/api?prod_cat_ver=2">here</a> under `API Version` section. If left blank, the product catalog version will be set to 2.0. + * Product Catalog version of your Chargebee site. Instructions on how to find your version you may + * find here under `API Version` + * section. If left blank, the product catalog version will be set to 2.0. */ public Builder productCatalog(ProductCatalog productCatalog) { Utils.checkNotNull(productCatalog, "productCatalog"); @@ -281,7 +320,9 @@ public Builder productCatalog(ProductCatalog productCatalog) { } /** - * Product Catalog version of your Chargebee site. Instructions on how to find your version you may find <a href="https://apidocs.chargebee.com/docs/api?prod_cat_ver=2">here</a> under `API Version` section. If left blank, the product catalog version will be set to 2.0. + * Product Catalog version of your Chargebee site. Instructions on how to find your version you may + * find here under `API Version` + * section. If left blank, the product catalog version will be set to 2.0. */ public Builder productCatalog(Optional productCatalog) { Utils.checkNotNull(productCatalog, "productCatalog"); @@ -289,6 +330,7 @@ public Builder productCatalog(Optional productCatalog) return this; } + /** * The site prefix for your Chargebee instance. */ @@ -298,8 +340,11 @@ public Builder site(String site) { return this; } + /** - * Chargebee API Key. See the <a href="https://docs.airbyte.com/integrations/sources/chargebee">docs</a> for more information on how to obtain this key. + * Chargebee API Key. See the docs for more information on how + * to obtain this key. */ public Builder siteApiKey(String siteApiKey) { Utils.checkNotNull(siteApiKey, "siteApiKey"); @@ -307,15 +352,17 @@ public Builder siteApiKey(String siteApiKey) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceChargebee build() { if (numWorkers == null) { numWorkers = _SINGLETON_VALUE_NumWorkers.value(); @@ -323,14 +370,13 @@ public SourceChargebee build() { if (productCatalog == null) { productCatalog = _SINGLETON_VALUE_ProductCatalog.value(); } + return new SourceChargebee( - numWorkers, - productCatalog, - site, - siteApiKey, - startDate); + numWorkers, productCatalog, site, + siteApiKey, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = new LazySingletonValue<>( "num_workers", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChargedesk.java b/src/main/java/com/airbyte/api/models/shared/SourceChargedesk.java index 8df021608..cf18cf779 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceChargedesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceChargedesk.java @@ -14,15 +14,16 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceChargedesk { @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Chargedesk sourceType; @@ -33,6 +34,7 @@ public class SourceChargedesk { @JsonProperty("start_date") private Optional startDate; + @JsonProperty("username") private String username; @@ -78,9 +80,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceChargedesk withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -88,6 +91,7 @@ public SourceChargedesk withPassword(String password) { return this; } + public SourceChargedesk withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -103,6 +107,7 @@ public SourceChargedesk withStartDate(long startDate) { return this; } + /** * Date from when the sync should start in epoch Unix timestamp */ @@ -118,7 +123,6 @@ public SourceChargedesk withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,18 +133,16 @@ public boolean equals(java.lang.Object o) { } SourceChargedesk other = (SourceChargedesk) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - startDate, + return Utils.enhancedHash( + password, sourceType, startDate, username); } @@ -152,19 +154,21 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -177,6 +181,7 @@ public Builder password(Optional password) { return this; } + /** * Date from when the sync should start in epoch Unix timestamp */ @@ -195,19 +200,20 @@ public Builder startDate(Optional startDate) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceChargedesk build() { + return new SourceChargedesk( - password, - startDate, - username); + password, startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChargify.java b/src/main/java/com/airbyte/api/models/shared/SourceChargify.java index 55ba0d6ca..9c633719d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceChargify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceChargify.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceChargify { +public class SourceChargify { /** * Maxio Advanced Billing/Chargify API Key. */ @@ -30,13 +29,16 @@ public class SourceChargify { @JsonProperty("domain") private String domain; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Chargify sourceType; + @JsonProperty("username") private String username; @@ -61,7 +63,8 @@ public SourceChargify( String apiKey, String domain, String username) { - this(apiKey, domain, Optional.empty(), username); + this(apiKey, domain, Optional.empty(), + username); } /** @@ -95,9 +98,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Maxio Advanced Billing/Chargify API Key. @@ -123,6 +127,7 @@ public SourceChargify withPassword(String password) { return this; } + public SourceChargify withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -135,7 +140,6 @@ public SourceChargify withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -146,21 +150,18 @@ public boolean equals(java.lang.Object o) { } SourceChargify other = (SourceChargify) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - apiKey, - domain, - password, - sourceType, - username); + return Utils.enhancedHash( + apiKey, domain, password, + sourceType, username); } @Override @@ -172,21 +173,23 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String domain; - + private Optional password = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Maxio Advanced Billing/Chargify API Key. */ @@ -196,6 +199,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Chargify domain. Normally this domain follows the following format */ @@ -205,6 +209,7 @@ public Builder domain(String domain) { return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -217,20 +222,21 @@ public Builder password(Optional password) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceChargify build() { + return new SourceChargify( - apiKey, - domain, - password, + apiKey, domain, password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChartmogul.java b/src/main/java/com/airbyte/api/models/shared/SourceChartmogul.java index fd5b742d1..cedba1617 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceChartmogul.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceChartmogul.java @@ -12,21 +12,24 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceChartmogul { +public class SourceChartmogul { /** - * Your Chartmogul API key. See <a href="https://help.chartmogul.com/hc/en-us/articles/4407796325906-Creating-and-Managing-API-keys#creating-an-api-key"> the docs </a> for info on how to obtain this. + * Your Chartmogul API key. See + * the docs for info on how to obtain this. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Chartmogul sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will + * not be replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -43,7 +46,9 @@ public SourceChartmogul( } /** - * Your Chartmogul API key. See <a href="https://help.chartmogul.com/hc/en-us/articles/4407796325906-Creating-and-Managing-API-keys#creating-an-api-key"> the docs </a> for info on how to obtain this. + * Your Chartmogul API key. See + * the docs for info on how to obtain this. */ @JsonIgnore public String apiKey() { @@ -56,19 +61,23 @@ public Chartmogul sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will + * not be replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Chartmogul API key. See <a href="https://help.chartmogul.com/hc/en-us/articles/4407796325906-Creating-and-Managing-API-keys#creating-an-api-key"> the docs </a> for info on how to obtain this. + * Your Chartmogul API key. See + * the docs for info on how to obtain this. */ public SourceChartmogul withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -77,7 +86,8 @@ public SourceChartmogul withApiKey(String apiKey) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will + * not be replicated. */ public SourceChartmogul withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -85,7 +95,6 @@ public SourceChartmogul withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -96,17 +105,15 @@ public boolean equals(java.lang.Object o) { } SourceChartmogul other = (SourceChartmogul) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -116,19 +123,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your Chartmogul API key. See <a href="https://help.chartmogul.com/hc/en-us/articles/4407796325906-Creating-and-Managing-API-keys#creating-an-api-key"> the docs </a> for info on how to obtain this. + * Your Chartmogul API key. See + * the docs for info on how to obtain this. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -136,21 +147,24 @@ public Builder apiKey(String apiKey) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. When feasible, any data before this date will + * not be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceChartmogul build() { + return new SourceChartmogul( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceChurnkey.java b/src/main/java/com/airbyte/api/models/shared/SourceChurnkey.java new file mode 100644 index 000000000..0c0661a83 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceChurnkey.java @@ -0,0 +1,139 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; + + +public class SourceChurnkey { + + @JsonProperty("api_key") + private String apiKey; + + + @JsonProperty("sourceType") + private Churnkey sourceType; + + + @JsonProperty("x-ck-app") + private String xCkApp; + + @JsonCreator + public SourceChurnkey( + @JsonProperty("api_key") String apiKey, + @JsonProperty("x-ck-app") String xCkApp) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(xCkApp, "xCkApp"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.xCkApp = xCkApp; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Churnkey sourceType() { + return sourceType; + } + + @JsonIgnore + public String xCkApp() { + return xCkApp; + } + + public static Builder builder() { + return new Builder(); + } + + + public SourceChurnkey withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceChurnkey withXCkApp(String xCkApp) { + Utils.checkNotNull(xCkApp, "xCkApp"); + this.xCkApp = xCkApp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceChurnkey other = (SourceChurnkey) o; + return + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.xCkApp, other.xCkApp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + apiKey, sourceType, xCkApp); + } + + @Override + public String toString() { + return Utils.toString(SourceChurnkey.class, + "apiKey", apiKey, + "sourceType", sourceType, + "xCkApp", xCkApp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String apiKey; + + private String xCkApp; + + private Builder() { + // force use of static builder() method + } + + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + + public Builder xCkApp(String xCkApp) { + Utils.checkNotNull(xCkApp, "xCkApp"); + this.xCkApp = xCkApp; + return this; + } + + public SourceChurnkey build() { + + return new SourceChurnkey( + apiKey, xCkApp); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"churnkey\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCimis.java b/src/main/java/com/airbyte/api/models/shared/SourceCimis.java index eaecfff2d..4f32994bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCimis.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCimis.java @@ -17,37 +17,45 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceCimis { @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("daily_data_items") private Optional> dailyDataItems; + @JsonProperty("end_date") private OffsetDateTime endDate; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("hourly_data_items") private Optional> hourlyDataItems; + @JsonProperty("sourceType") private Cimis sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonProperty("targets") private List targets; + @JsonProperty("targets_type") private TargetsType targetsType; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("unit_of_measure") private Optional unitOfMeasure; @@ -87,7 +95,9 @@ public SourceCimis( OffsetDateTime startDate, List targets, TargetsType targetsType) { - this(apiKey, Optional.empty(), endDate, Optional.empty(), startDate, targets, targetsType, Optional.empty()); + this(apiKey, Optional.empty(), endDate, + Optional.empty(), startDate, targets, + targetsType, Optional.empty()); } @JsonIgnore @@ -138,9 +148,10 @@ public Optional unitOfMeasure() { return (Optional) unitOfMeasure; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceCimis withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -154,6 +165,7 @@ public SourceCimis withDailyDataItems(List dailyDataItems) { return this; } + public SourceCimis withDailyDataItems(Optional> dailyDataItems) { Utils.checkNotNull(dailyDataItems, "dailyDataItems"); this.dailyDataItems = dailyDataItems; @@ -172,6 +184,7 @@ public SourceCimis withHourlyDataItems(List hourlyDataItems) { return this; } + public SourceCimis withHourlyDataItems(Optional> hourlyDataItems) { Utils.checkNotNull(hourlyDataItems, "hourlyDataItems"); this.hourlyDataItems = hourlyDataItems; @@ -202,13 +215,13 @@ public SourceCimis withUnitOfMeasure(UnitOfMeasure unitOfMeasure) { return this; } + public SourceCimis withUnitOfMeasure(Optional unitOfMeasure) { Utils.checkNotNull(unitOfMeasure, "unitOfMeasure"); this.unitOfMeasure = unitOfMeasure; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -219,29 +232,23 @@ public boolean equals(java.lang.Object o) { } SourceCimis other = (SourceCimis) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.dailyDataItems, other.dailyDataItems) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.hourlyDataItems, other.hourlyDataItems) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.targets, other.targets) && - Objects.deepEquals(this.targetsType, other.targetsType) && - Objects.deepEquals(this.unitOfMeasure, other.unitOfMeasure); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.dailyDataItems, other.dailyDataItems) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.hourlyDataItems, other.hourlyDataItems) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.targets, other.targets) && + Utils.enhancedDeepEquals(this.targetsType, other.targetsType) && + Utils.enhancedDeepEquals(this.unitOfMeasure, other.unitOfMeasure); } @Override public int hashCode() { - return Objects.hash( - apiKey, - dailyDataItems, - endDate, - hourlyDataItems, - sourceType, - startDate, - targets, - targetsType, - unitOfMeasure); + return Utils.enhancedHash( + apiKey, dailyDataItems, endDate, + hourlyDataItems, sourceType, startDate, + targets, targetsType, unitOfMeasure); } @Override @@ -257,35 +264,38 @@ public String toString() { "targetsType", targetsType, "unitOfMeasure", unitOfMeasure); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional> dailyDataItems = Optional.empty(); - + private OffsetDateTime endDate; - + private Optional> hourlyDataItems = Optional.empty(); - + private OffsetDateTime startDate; - + private List targets; - + private TargetsType targetsType; - + private Optional unitOfMeasure = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder dailyDataItems(List dailyDataItems) { Utils.checkNotNull(dailyDataItems, "dailyDataItems"); this.dailyDataItems = Optional.ofNullable(dailyDataItems); @@ -298,12 +308,14 @@ public Builder dailyDataItems(Optional> dailyDataItems) { return this; } + public Builder endDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; } + public Builder hourlyDataItems(List hourlyDataItems) { Utils.checkNotNull(hourlyDataItems, "hourlyDataItems"); this.hourlyDataItems = Optional.ofNullable(hourlyDataItems); @@ -316,24 +328,28 @@ public Builder hourlyDataItems(Optional> hourlyDataItems) return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder targets(List targets) { Utils.checkNotNull(targets, "targets"); this.targets = targets; return this; } + public Builder targetsType(TargetsType targetsType) { Utils.checkNotNull(targetsType, "targetsType"); this.targetsType = targetsType; return this; } + public Builder unitOfMeasure(UnitOfMeasure unitOfMeasure) { Utils.checkNotNull(unitOfMeasure, "unitOfMeasure"); this.unitOfMeasure = Optional.ofNullable(unitOfMeasure); @@ -345,19 +361,16 @@ public Builder unitOfMeasure(Optional unitOfMeasure) { this.unitOfMeasure = unitOfMeasure; return this; } - + public SourceCimis build() { + return new SourceCimis( - apiKey, - dailyDataItems, - endDate, - hourlyDataItems, - startDate, - targets, - targetsType, - unitOfMeasure); + apiKey, dailyDataItems, endDate, + hourlyDataItems, startDate, targets, + targetsType, unitOfMeasure); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCin7.java b/src/main/java/com/airbyte/api/models/shared/SourceCin7.java index 02f7e5e4f..9675f438c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCin7.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCin7.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceCin7 { +public class SourceCin7 { /** * The ID associated with your account. */ @@ -27,6 +26,7 @@ public class SourceCin7 { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Cin7 sourceType; @@ -62,9 +62,10 @@ public Cin7 sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The ID associated with your account. @@ -84,7 +85,6 @@ public SourceCin7 withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceCin7 other = (SourceCin7) o; return - Objects.deepEquals(this.accountid, other.accountid) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountid, other.accountid) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountid, - apiKey, - sourceType); + return Utils.enhancedHash( + accountid, apiKey, sourceType); } @Override @@ -115,17 +113,19 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountid; - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * The ID associated with your account. */ @@ -135,6 +135,7 @@ public Builder accountid(String accountid) { return this; } + /** * The API key associated with your account. */ @@ -143,13 +144,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceCin7 build() { + return new SourceCin7( - accountid, - apiKey); + accountid, apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCirca.java b/src/main/java/com/airbyte/api/models/shared/SourceCirca.java index 866a2604d..1fac09b3b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCirca.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCirca.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceCirca { +public class SourceCirca { /** * API key to use. Find it at https://app.circa.co/settings/integrations/api */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Circa sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it at https://app.circa.co/settings/integrations/api @@ -76,7 +78,6 @@ public SourceCirca withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceCirca other = (SourceCirca) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it at https://app.circa.co/settings/integrations/api */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceCirca build() { + return new SourceCirca( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCircleci.java b/src/main/java/com/airbyte/api/models/shared/SourceCircleci.java index 9b0bc451a..3dabee33f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCircleci.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCircleci.java @@ -17,16 +17,17 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceCircleci { @JsonProperty("api_key") private String apiKey; /** - * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not + * configured */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("job_number") @@ -39,19 +40,23 @@ public class SourceCircleci { private String orgId; /** - * Project ID found in the project settings, Visit `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` + * Project ID found in the project settings, Visit + * `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` */ @JsonProperty("project_id") private String projectId; + @JsonProperty("sourceType") private Circleci sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; /** - * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example + * `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("workflow_id") @@ -85,7 +90,8 @@ public SourceCircleci( String orgId, String projectId, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), orgId, projectId, startDate, Optional.empty()); + this(apiKey, Optional.empty(), orgId, + projectId, startDate, Optional.empty()); } @JsonIgnore @@ -94,7 +100,8 @@ public String apiKey() { } /** - * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not + * configured */ @JsonIgnore public Optional jobNumber() { @@ -110,7 +117,8 @@ public String orgId() { } /** - * Project ID found in the project settings, Visit `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` + * Project ID found in the project settings, Visit + * `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` */ @JsonIgnore public String projectId() { @@ -128,7 +136,8 @@ public OffsetDateTime startDate() { } /** - * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example + * `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ @SuppressWarnings("unchecked") @JsonIgnore @@ -136,9 +145,10 @@ public Optional> workflowId() { return (Optional>) workflowId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceCircleci withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -147,7 +157,8 @@ public SourceCircleci withApiKey(String apiKey) { } /** - * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not + * configured */ public SourceCircleci withJobNumber(String jobNumber) { Utils.checkNotNull(jobNumber, "jobNumber"); @@ -155,8 +166,10 @@ public SourceCircleci withJobNumber(String jobNumber) { return this; } + /** - * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not + * configured */ public SourceCircleci withJobNumber(Optional jobNumber) { Utils.checkNotNull(jobNumber, "jobNumber"); @@ -174,7 +187,8 @@ public SourceCircleci withOrgId(String orgId) { } /** - * Project ID found in the project settings, Visit `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` + * Project ID found in the project settings, Visit + * `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` */ public SourceCircleci withProjectId(String projectId) { Utils.checkNotNull(projectId, "projectId"); @@ -189,7 +203,8 @@ public SourceCircleci withStartDate(OffsetDateTime startDate) { } /** - * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example + * `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ public SourceCircleci withWorkflowId(List workflowId) { Utils.checkNotNull(workflowId, "workflowId"); @@ -197,8 +212,10 @@ public SourceCircleci withWorkflowId(List workflowId) { return this; } + /** - * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example + * `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ public SourceCircleci withWorkflowId(Optional> workflowId) { Utils.checkNotNull(workflowId, "workflowId"); @@ -206,7 +223,6 @@ public SourceCircleci withWorkflowId(Optional> workflowId return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -217,24 +233,20 @@ public boolean equals(java.lang.Object o) { } SourceCircleci other = (SourceCircleci) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.jobNumber, other.jobNumber) && - Objects.deepEquals(this.orgId, other.orgId) && - Objects.deepEquals(this.projectId, other.projectId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.workflowId, other.workflowId); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.jobNumber, other.jobNumber) && + Utils.enhancedDeepEquals(this.orgId, other.orgId) && + Utils.enhancedDeepEquals(this.projectId, other.projectId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.workflowId, other.workflowId); } @Override public int hashCode() { - return Objects.hash( - apiKey, - jobNumber, - orgId, - projectId, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, jobNumber, orgId, + projectId, sourceType, startDate, workflowId); } @@ -249,33 +261,37 @@ public String toString() { "startDate", startDate, "workflowId", workflowId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional jobNumber; - + private String orgId; - + private String projectId; - + private OffsetDateTime startDate; - + private Optional> workflowId = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** - * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not + * configured */ public Builder jobNumber(String jobNumber) { Utils.checkNotNull(jobNumber, "jobNumber"); @@ -284,7 +300,8 @@ public Builder jobNumber(String jobNumber) { } /** - * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not configured + * Job Number of the workflow for `jobs` stream, Auto fetches from `workflow_jobs` stream, if not + * configured */ public Builder jobNumber(Optional jobNumber) { Utils.checkNotNull(jobNumber, "jobNumber"); @@ -292,6 +309,7 @@ public Builder jobNumber(Optional jobNumber) { return this; } + /** * The org ID found in `https://app.circleci.com/settings/organization/circleci/xxxxx/overview` */ @@ -301,8 +319,10 @@ public Builder orgId(String orgId) { return this; } + /** - * Project ID found in the project settings, Visit `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` + * Project ID found in the project settings, Visit + * `https://app.circleci.com/settings/project/circleci/ORG_SLUG/YYYYY` */ public Builder projectId(String projectId) { Utils.checkNotNull(projectId, "projectId"); @@ -310,14 +330,17 @@ public Builder projectId(String projectId) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** - * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example + * `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ public Builder workflowId(List workflowId) { Utils.checkNotNull(workflowId, "workflowId"); @@ -326,27 +349,26 @@ public Builder workflowId(List workflowId) { } /** - * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` + * Workflow ID of a project pipeline, Could be seen in the URL of pipeline build, Example + * `https://app.circleci.com/pipelines/circleci/55555xxxxxx/7yyyyyyyyxxxxx/2/workflows/WORKFLOW_ID` */ public Builder workflowId(Optional> workflowId) { Utils.checkNotNull(workflowId, "workflowId"); this.workflowId = workflowId; return this; } - + public SourceCircleci build() { if (jobNumber == null) { jobNumber = _SINGLETON_VALUE_JobNumber.value(); } + return new SourceCircleci( - apiKey, - jobNumber, - orgId, - projectId, - startDate, - workflowId); + apiKey, jobNumber, orgId, + projectId, startDate, workflowId); } + private static final LazySingletonValue> _SINGLETON_VALUE_JobNumber = new LazySingletonValue<>( "job_number", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCiscoMeraki.java b/src/main/java/com/airbyte/api/models/shared/SourceCiscoMeraki.java index 8844a886a..f09163233 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCiscoMeraki.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCiscoMeraki.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceCiscoMeraki { +public class SourceCiscoMeraki { /** - * Your Meraki API key. Obtain it by logging into your Meraki Dashboard at https://dashboard.meraki.com/, navigating to 'My Profile' via the avatar icon in the top right corner, and generating the API key. Save this key securely as it represents your admin credentials. + * Your Meraki API key. Obtain it by logging into your Meraki Dashboard at + * https://dashboard.meraki.com/, navigating to 'My Profile' via the avatar icon in the top right + * corner, and generating the API key. Save this key securely as it represents your admin credentials. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private CiscoMeraki sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +43,9 @@ public SourceCiscoMeraki( } /** - * Your Meraki API key. Obtain it by logging into your Meraki Dashboard at https://dashboard.meraki.com/, navigating to 'My Profile' via the avatar icon in the top right corner, and generating the API key. Save this key securely as it represents your admin credentials. + * Your Meraki API key. Obtain it by logging into your Meraki Dashboard at + * https://dashboard.meraki.com/, navigating to 'My Profile' via the avatar icon in the top right + * corner, and generating the API key. Save this key securely as it represents your admin credentials. */ @JsonIgnore public String apiKey() { @@ -57,12 +62,15 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Meraki API key. Obtain it by logging into your Meraki Dashboard at https://dashboard.meraki.com/, navigating to 'My Profile' via the avatar icon in the top right corner, and generating the API key. Save this key securely as it represents your admin credentials. + * Your Meraki API key. Obtain it by logging into your Meraki Dashboard at + * https://dashboard.meraki.com/, navigating to 'My Profile' via the avatar icon in the top right + * corner, and generating the API key. Save this key securely as it represents your admin credentials. */ public SourceCiscoMeraki withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -76,7 +84,6 @@ public SourceCiscoMeraki withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +94,15 @@ public boolean equals(java.lang.Object o) { } SourceCiscoMeraki other = (SourceCiscoMeraki) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,19 +112,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your Meraki API key. Obtain it by logging into your Meraki Dashboard at https://dashboard.meraki.com/, navigating to 'My Profile' via the avatar icon in the top right corner, and generating the API key. Save this key securely as it represents your admin credentials. + * Your Meraki API key. Obtain it by logging into your Meraki Dashboard at + * https://dashboard.meraki.com/, navigating to 'My Profile' via the avatar icon in the top right + * corner, and generating the API key. Save this key securely as it represents your admin credentials. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -127,18 +136,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceCiscoMeraki build() { + return new SourceCiscoMeraki( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClarifAi.java b/src/main/java/com/airbyte/api/models/shared/SourceClarifAi.java index 4847a3811..7b9ebd621 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClarifAi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClarifAi.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceClarifAi { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private ClarifAi sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -68,9 +70,10 @@ public String userId() { return userId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceClarifAi withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -93,7 +96,6 @@ public SourceClarifAi withUserId(String userId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,18 +106,16 @@ public boolean equals(java.lang.Object o) { } SourceClarifAi other = (SourceClarifAi) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.userId, other.userId); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.userId, other.userId); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, sourceType, startDate, userId); } @@ -127,31 +127,35 @@ public String toString() { "startDate", startDate, "userId", userId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private String userId; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * User ID found in settings */ @@ -160,14 +164,14 @@ public Builder userId(String userId) { this.userId = userId; return this; } - + public SourceClarifAi build() { + return new SourceClarifAi( - apiKey, - startDate, - userId); + apiKey, startDate, userId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClazar.java b/src/main/java/com/airbyte/api/models/shared/SourceClazar.java index a19ae7542..ccc69c11b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClazar.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClazar.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceClazar { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private Clazar sourceType; @@ -50,9 +52,10 @@ public Clazar sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceClazar withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -66,7 +69,6 @@ public SourceClazar withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceClazar other = (SourceClazar) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - sourceType); + return Utils.enhancedHash( + clientId, clientSecret, sourceType); } @Override @@ -97,35 +97,39 @@ public String toString() { "clientSecret", clientSecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourceClazar build() { + return new SourceClazar( - clientId, - clientSecret); + clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouse.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouse.java index 5496c9b42..accccd35d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouse.java @@ -16,11 +16,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceClickhouse { +public class SourceClickhouse { /** * The name of the database. */ @@ -34,7 +33,12 @@ public class SourceClickhouse { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -54,6 +58,7 @@ public class SourceClickhouse { @JsonProperty("port") private Optional port; + @JsonProperty("sourceType") private SourceClickhouseClickhouse sourceType; @@ -65,7 +70,8 @@ public class SourceClickhouse { private Optional ssl; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -110,7 +116,9 @@ public SourceClickhouse( String database, String host, String username) { - this(database, host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + this(database, host, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), username); } /** @@ -130,7 +138,12 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ @JsonIgnore public Optional jdbcUrlParams() { @@ -167,7 +180,8 @@ public Optional ssl() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -183,9 +197,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The name of the database. @@ -206,7 +221,12 @@ public SourceClickhouse withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ public SourceClickhouse withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -214,8 +234,14 @@ public SourceClickhouse withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ public SourceClickhouse withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -232,6 +258,7 @@ public SourceClickhouse withPassword(String password) { return this; } + /** * The password associated with this username. */ @@ -250,6 +277,7 @@ public SourceClickhouse withPort(long port) { return this; } + /** * The port of the database. */ @@ -268,6 +296,7 @@ public SourceClickhouse withSsl(boolean ssl) { return this; } + /** * Encrypt data using SSL. */ @@ -278,7 +307,8 @@ public SourceClickhouse withSsl(Optional ssl) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceClickhouse withTunnelMethod(SourceClickhouseSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -286,8 +316,10 @@ public SourceClickhouse withTunnelMethod(SourceClickhouseSSHTunnelMethod tunnelM return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceClickhouse withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -304,7 +336,6 @@ public SourceClickhouse withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -315,29 +346,23 @@ public boolean equals(java.lang.Object o) { } SourceClickhouse other = (SourceClickhouse) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.ssl, other.ssl) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.ssl, other.ssl) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - database, - host, - jdbcUrlParams, - password, - port, - sourceType, - ssl, - tunnelMethod, - username); + return Utils.enhancedHash( + database, host, jdbcUrlParams, + password, port, sourceType, + ssl, tunnelMethod, username); } @Override @@ -353,29 +378,31 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String database; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional password = Optional.empty(); - + private Optional port; - + private Optional ssl; - + private Optional tunnelMethod = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * The name of the database. */ @@ -385,6 +412,7 @@ public Builder database(String database) { return this; } + /** * The host endpoint of the Clickhouse cluster. */ @@ -394,8 +422,14 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -404,7 +438,12 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -412,6 +451,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * The password associated with this username. */ @@ -430,6 +470,7 @@ public Builder password(Optional password) { return this; } + /** * The port of the database. */ @@ -448,6 +489,7 @@ public Builder port(Optional port) { return this; } + /** * Encrypt data using SSL. */ @@ -466,8 +508,10 @@ public Builder ssl(Optional ssl) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(SourceClickhouseSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -476,7 +520,8 @@ public Builder tunnelMethod(SourceClickhouseSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -484,6 +529,7 @@ public Builder tunnelMethod(Optional return this; } + /** * The username which is used to access the database. */ @@ -492,7 +538,7 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceClickhouse build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); @@ -500,17 +546,14 @@ public SourceClickhouse build() { if (ssl == null) { ssl = _SINGLETON_VALUE_Ssl.value(); } + return new SourceClickhouse( - database, - host, - jdbcUrlParams, - password, - port, - ssl, - tunnelMethod, - username); + database, host, jdbcUrlParams, + password, port, ssl, + tunnelMethod, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_Port = new LazySingletonValue<>( "port", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java index 5b4c0837e..f21822a53 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseClickhouse.java @@ -14,7 +14,7 @@ public enum SourceClickhouseClickhouse { @JsonValue private final String value; - private SourceClickhouseClickhouse(String value) { + SourceClickhouseClickhouse(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseNoTunnel.java index 737502133..ff67eafdf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceClickhouseNoTunnel { +public class SourceClickhouseNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class SourceClickhouseNoTunnel { @JsonCreator public SourceClickhouseNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public SourceClickhouseTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } SourceClickhouseNoTunnel other = (SourceClickhouseNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(SourceClickhouseNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceClickhouseNoTunnel build() { + return new SourceClickhouseNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhousePasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhousePasswordAuthentication.java index 5fca03e1c..66ead2c15 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhousePasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhousePasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceClickhousePasswordAuthentication { +public class SourceClickhousePasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public SourceClickhousePasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public SourceClickhousePasswordAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public SourceClickhousePasswordAuthentication withTunnelUserPassword(String tunn return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } SourceClickhousePasswordAuthentication other = (SourceClickhousePasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public SourceClickhousePasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceClickhousePasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHKeyAuthentication.java index 62ab8cba1..e767c68ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceClickhouseSSHKeyAuthentication { +public class SourceClickhouseSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public SourceClickhouseSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public SourceClickhouseSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public SourceClickhouseSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public SourceClickhouseSSHKeyAuthentication withTunnelUser(String tunnelUser) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } SourceClickhouseSSHKeyAuthentication other = (SourceClickhouseSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public SourceClickhouseSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceClickhouseSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHTunnelMethod.java index 323cede69..f653d1d24 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceClickhouseSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = SourceClickhouseSSHTunnelMethod._Deserializer.class) public class SourceClickhouseSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceClickhouseSSHTunnelMethod other = (SourceClickhouseSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java index 52edcbcea..7e5d280a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourceClickhouseSchemasTunnelMethod { @JsonValue private final String value; - private SourceClickhouseSchemasTunnelMethod(String value) { + SourceClickhouseSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java index fbd61277a..888b21b49 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourceClickhouseSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private SourceClickhouseSchemasTunnelMethodTunnelMethod(String value) { + SourceClickhouseSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseTunnelMethod.java index 088f66c10..2f70afde9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickhouseTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickhouseTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourceClickhouseTunnelMethod { @JsonValue private final String value; - private SourceClickhouseTunnelMethod(String value) { + SourceClickhouseTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClickupApi.java b/src/main/java/com/airbyte/api/models/shared/SourceClickupApi.java index 02678550d..6a7f8fcb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClickupApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClickupApi.java @@ -14,24 +14,26 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceClickupApi { +public class SourceClickupApi { /** - * Every ClickUp API call required authentication. This field is your personal API token. See <a href="https://clickup.com/api/developer-portal/authentication/#personal-token">here</a>. + * Every ClickUp API call required authentication. This field is your personal API token. See here. */ @JsonProperty("api_token") private String apiToken; /** - * Include or exclude closed tasks. By default, they are excluded. See <a https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. + * Include or exclude closed tasks. By default, they are excluded. See <a + * https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("include_closed_tasks") private Optional includeClosedTasks; + @JsonProperty("sourceType") private ClickupApi sourceType; @@ -52,7 +54,8 @@ public SourceClickupApi( } /** - * Every ClickUp API call required authentication. This field is your personal API token. See <a href="https://clickup.com/api/developer-portal/authentication/#personal-token">here</a>. + * Every ClickUp API call required authentication. This field is your personal API token. See here. */ @JsonIgnore public String apiToken() { @@ -60,7 +63,8 @@ public String apiToken() { } /** - * Include or exclude closed tasks. By default, they are excluded. See <a https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. + * Include or exclude closed tasks. By default, they are excluded. See <a + * https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. */ @JsonIgnore public Optional includeClosedTasks() { @@ -72,12 +76,14 @@ public ClickupApi sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Every ClickUp API call required authentication. This field is your personal API token. See <a href="https://clickup.com/api/developer-portal/authentication/#personal-token">here</a>. + * Every ClickUp API call required authentication. This field is your personal API token. See here. */ public SourceClickupApi withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -86,7 +92,8 @@ public SourceClickupApi withApiToken(String apiToken) { } /** - * Include or exclude closed tasks. By default, they are excluded. See <a https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. + * Include or exclude closed tasks. By default, they are excluded. See <a + * https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. */ public SourceClickupApi withIncludeClosedTasks(boolean includeClosedTasks) { Utils.checkNotNull(includeClosedTasks, "includeClosedTasks"); @@ -94,8 +101,10 @@ public SourceClickupApi withIncludeClosedTasks(boolean includeClosedTasks) { return this; } + /** - * Include or exclude closed tasks. By default, they are excluded. See <a https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. + * Include or exclude closed tasks. By default, they are excluded. See <a + * https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. */ public SourceClickupApi withIncludeClosedTasks(Optional includeClosedTasks) { Utils.checkNotNull(includeClosedTasks, "includeClosedTasks"); @@ -103,7 +112,6 @@ public SourceClickupApi withIncludeClosedTasks(Optional includeClosedTa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -114,17 +122,15 @@ public boolean equals(java.lang.Object o) { } SourceClickupApi other = (SourceClickupApi) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.includeClosedTasks, other.includeClosedTasks) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.includeClosedTasks, other.includeClosedTasks) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - includeClosedTasks, - sourceType); + return Utils.enhancedHash( + apiToken, includeClosedTasks, sourceType); } @Override @@ -134,19 +140,22 @@ public String toString() { "includeClosedTasks", includeClosedTasks, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Optional includeClosedTasks; - + private Builder() { // force use of static builder() method } + /** - * Every ClickUp API call required authentication. This field is your personal API token. See <a href="https://clickup.com/api/developer-portal/authentication/#personal-token">here</a>. + * Every ClickUp API call required authentication. This field is your personal API token. See here. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -154,8 +163,10 @@ public Builder apiToken(String apiToken) { return this; } + /** - * Include or exclude closed tasks. By default, they are excluded. See <a https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. + * Include or exclude closed tasks. By default, they are excluded. See <a + * https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. */ public Builder includeClosedTasks(boolean includeClosedTasks) { Utils.checkNotNull(includeClosedTasks, "includeClosedTasks"); @@ -164,23 +175,25 @@ public Builder includeClosedTasks(boolean includeClosedTasks) { } /** - * Include or exclude closed tasks. By default, they are excluded. See <a https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. + * Include or exclude closed tasks. By default, they are excluded. See <a + * https://clickup.com/api/clickupreference/operation/GetTasks/#!in=query&path=include_closed&t=request">here</a>. */ public Builder includeClosedTasks(Optional includeClosedTasks) { Utils.checkNotNull(includeClosedTasks, "includeClosedTasks"); this.includeClosedTasks = includeClosedTasks; return this; } - + public SourceClickupApi build() { if (includeClosedTasks == null) { includeClosedTasks = _SINGLETON_VALUE_IncludeClosedTasks.value(); } + return new SourceClickupApi( - apiToken, - includeClosedTasks); + apiToken, includeClosedTasks); } + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeClosedTasks = new LazySingletonValue<>( "include_closed_tasks", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClockify.java b/src/main/java/com/airbyte/api/models/shared/SourceClockify.java index 024670575..96759503c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClockify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClockify.java @@ -13,24 +13,26 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceClockify { +public class SourceClockify { /** - * You can get your api access_key <a href="https://app.clockify.me/user/settings">here</a> This API is Case Sensitive. + * You can get your api access_key here This API is + * Case Sensitive. */ @JsonProperty("api_key") private String apiKey; /** - * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify. + * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise + * version of Clockify. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("api_url") private Optional apiUrl; + @JsonProperty("sourceType") private Clockify sourceType; @@ -61,7 +63,8 @@ public SourceClockify( } /** - * You can get your api access_key <a href="https://app.clockify.me/user/settings">here</a> This API is Case Sensitive. + * You can get your api access_key here This API is + * Case Sensitive. */ @JsonIgnore public String apiKey() { @@ -69,7 +72,8 @@ public String apiKey() { } /** - * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify. + * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise + * version of Clockify. */ @JsonIgnore public Optional apiUrl() { @@ -89,12 +93,14 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * You can get your api access_key <a href="https://app.clockify.me/user/settings">here</a> This API is Case Sensitive. + * You can get your api access_key here This API is + * Case Sensitive. */ public SourceClockify withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -103,7 +109,8 @@ public SourceClockify withApiKey(String apiKey) { } /** - * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify. + * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise + * version of Clockify. */ public SourceClockify withApiUrl(String apiUrl) { Utils.checkNotNull(apiUrl, "apiUrl"); @@ -111,8 +118,10 @@ public SourceClockify withApiUrl(String apiUrl) { return this; } + /** - * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify. + * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise + * version of Clockify. */ public SourceClockify withApiUrl(Optional apiUrl) { Utils.checkNotNull(apiUrl, "apiUrl"); @@ -129,7 +138,6 @@ public SourceClockify withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +148,16 @@ public boolean equals(java.lang.Object o) { } SourceClockify other = (SourceClockify) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiUrl, other.apiUrl) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiUrl, other.apiUrl) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiUrl, - sourceType, + return Utils.enhancedHash( + apiKey, apiUrl, sourceType, workspaceId); } @@ -163,21 +169,24 @@ public String toString() { "sourceType", sourceType, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional apiUrl; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + /** - * You can get your api access_key <a href="https://app.clockify.me/user/settings">here</a> This API is Case Sensitive. + * You can get your api access_key here This API is + * Case Sensitive. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -185,8 +194,10 @@ public Builder apiKey(String apiKey) { return this; } + /** - * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify. + * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise + * version of Clockify. */ public Builder apiUrl(String apiUrl) { Utils.checkNotNull(apiUrl, "apiUrl"); @@ -195,7 +206,8 @@ public Builder apiUrl(String apiUrl) { } /** - * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise version of Clockify. + * The URL for the Clockify API. This should only need to be modified if connecting to an enterprise + * version of Clockify. */ public Builder apiUrl(Optional apiUrl) { Utils.checkNotNull(apiUrl, "apiUrl"); @@ -203,6 +215,7 @@ public Builder apiUrl(Optional apiUrl) { return this; } + /** * WorkSpace Id */ @@ -211,17 +224,17 @@ public Builder workspaceId(String workspaceId) { this.workspaceId = workspaceId; return this; } - + public SourceClockify build() { if (apiUrl == null) { apiUrl = _SINGLETON_VALUE_ApiUrl.value(); } + return new SourceClockify( - apiKey, - apiUrl, - workspaceId); + apiKey, apiUrl, workspaceId); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiUrl = new LazySingletonValue<>( "api_url", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceClockodo.java b/src/main/java/com/airbyte/api/models/shared/SourceClockodo.java index 3cabaa753..f89124cb4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceClockodo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceClockodo.java @@ -16,11 +16,10 @@ import java.lang.String; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceClockodo { +public class SourceClockodo { /** * API key to use. Find it in the 'Personal data' section of your Clockodo account. */ @@ -34,15 +33,18 @@ public class SourceClockodo { private String emailAddress; /** - * Identification of the calling application, including the email address of a technical contact person. Format: [name of application or company];[email address]. + * Identification of the calling application, including the email address of a technical contact + * person. Format: [name of application or company];[email address]. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("external_application") private Optional externalApplication; + @JsonProperty("sourceType") private Clockodo sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -77,7 +79,8 @@ public SourceClockodo( String emailAddress, OffsetDateTime startDate, List years) { - this(apiKey, emailAddress, Optional.empty(), startDate, years); + this(apiKey, emailAddress, Optional.empty(), + startDate, years); } /** @@ -97,7 +100,8 @@ public String emailAddress() { } /** - * Identification of the calling application, including the email address of a technical contact person. Format: [name of application or company];[email address]. + * Identification of the calling application, including the email address of a technical contact + * person. Format: [name of application or company];[email address]. */ @JsonIgnore public Optional externalApplication() { @@ -122,9 +126,10 @@ public List years() { return years; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it in the 'Personal data' section of your Clockodo account. @@ -145,7 +150,8 @@ public SourceClockodo withEmailAddress(String emailAddress) { } /** - * Identification of the calling application, including the email address of a technical contact person. Format: [name of application or company];[email address]. + * Identification of the calling application, including the email address of a technical contact + * person. Format: [name of application or company];[email address]. */ public SourceClockodo withExternalApplication(String externalApplication) { Utils.checkNotNull(externalApplication, "externalApplication"); @@ -153,8 +159,10 @@ public SourceClockodo withExternalApplication(String externalApplication) { return this; } + /** - * Identification of the calling application, including the email address of a technical contact person. Format: [name of application or company];[email address]. + * Identification of the calling application, including the email address of a technical contact + * person. Format: [name of application or company];[email address]. */ public SourceClockodo withExternalApplication(Optional externalApplication) { Utils.checkNotNull(externalApplication, "externalApplication"); @@ -177,7 +185,6 @@ public SourceClockodo withYears(List years) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -188,23 +195,19 @@ public boolean equals(java.lang.Object o) { } SourceClockodo other = (SourceClockodo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.emailAddress, other.emailAddress) && - Objects.deepEquals(this.externalApplication, other.externalApplication) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.years, other.years); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.emailAddress, other.emailAddress) && + Utils.enhancedDeepEquals(this.externalApplication, other.externalApplication) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.years, other.years); } @Override public int hashCode() { - return Objects.hash( - apiKey, - emailAddress, - externalApplication, - sourceType, - startDate, - years); + return Utils.enhancedHash( + apiKey, emailAddress, externalApplication, + sourceType, startDate, years); } @Override @@ -217,23 +220,25 @@ public String toString() { "startDate", startDate, "years", years); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String emailAddress; - + private Optional externalApplication; - + private OffsetDateTime startDate; - + private List years; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it in the 'Personal data' section of your Clockodo account. */ @@ -243,6 +248,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Your Clockodo account email address. Find it in your Clockodo account settings. */ @@ -252,8 +258,10 @@ public Builder emailAddress(String emailAddress) { return this; } + /** - * Identification of the calling application, including the email address of a technical contact person. Format: [name of application or company];[email address]. + * Identification of the calling application, including the email address of a technical contact + * person. Format: [name of application or company];[email address]. */ public Builder externalApplication(String externalApplication) { Utils.checkNotNull(externalApplication, "externalApplication"); @@ -262,7 +270,8 @@ public Builder externalApplication(String externalApplication) { } /** - * Identification of the calling application, including the email address of a technical contact person. Format: [name of application or company];[email address]. + * Identification of the calling application, including the email address of a technical contact + * person. Format: [name of application or company];[email address]. */ public Builder externalApplication(Optional externalApplication) { Utils.checkNotNull(externalApplication, "externalApplication"); @@ -270,12 +279,14 @@ public Builder externalApplication(Optional externalApplication) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * 2024, 2025 */ @@ -284,19 +295,18 @@ public Builder years(List years) { this.years = years; return this; } - + public SourceClockodo build() { if (externalApplication == null) { externalApplication = _SINGLETON_VALUE_ExternalApplication.value(); } + return new SourceClockodo( - apiKey, - emailAddress, - externalApplication, - startDate, - years); + apiKey, emailAddress, externalApplication, + startDate, years); } + private static final LazySingletonValue> _SINGLETON_VALUE_ExternalApplication = new LazySingletonValue<>( "external_application", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCloseCom.java b/src/main/java/com/airbyte/api/models/shared/SourceCloseCom.java index 01396335c..aef4836e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCloseCom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCloseCom.java @@ -14,22 +14,24 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourceCloseCom { +public class SourceCloseCom { /** - * Close.com API key (usually starts with 'api_'; find yours <a href="https://app.close.com/settings/api/">here</a>). + * Close.com API key (usually starts with 'api_'; find yours here). */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private CloseCom sourceType; /** - * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve all the data available in the account. Format: YYYY-MM-DD. + * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve + * all the data available in the account. Format: YYYY-MM-DD. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -52,7 +54,8 @@ public SourceCloseCom( } /** - * Close.com API key (usually starts with 'api_'; find yours <a href="https://app.close.com/settings/api/">here</a>). + * Close.com API key (usually starts with 'api_'; find yours here). */ @JsonIgnore public String apiKey() { @@ -65,19 +68,22 @@ public CloseCom sourceType() { } /** - * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve all the data available in the account. Format: YYYY-MM-DD. + * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve + * all the data available in the account. Format: YYYY-MM-DD. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Close.com API key (usually starts with 'api_'; find yours <a href="https://app.close.com/settings/api/">here</a>). + * Close.com API key (usually starts with 'api_'; find yours here). */ public SourceCloseCom withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -86,7 +92,8 @@ public SourceCloseCom withApiKey(String apiKey) { } /** - * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve all the data available in the account. Format: YYYY-MM-DD. + * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve + * all the data available in the account. Format: YYYY-MM-DD. */ public SourceCloseCom withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -94,8 +101,10 @@ public SourceCloseCom withStartDate(LocalDate startDate) { return this; } + /** - * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve all the data available in the account. Format: YYYY-MM-DD. + * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve + * all the data available in the account. Format: YYYY-MM-DD. */ public SourceCloseCom withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -103,7 +112,6 @@ public SourceCloseCom withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -114,17 +122,15 @@ public boolean equals(java.lang.Object o) { } SourceCloseCom other = (SourceCloseCom) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -134,19 +140,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional startDate; - + private Builder() { // force use of static builder() method } + /** - * Close.com API key (usually starts with 'api_'; find yours <a href="https://app.close.com/settings/api/">here</a>). + * Close.com API key (usually starts with 'api_'; find yours here). */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -154,8 +163,10 @@ public Builder apiKey(String apiKey) { return this; } + /** - * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve all the data available in the account. Format: YYYY-MM-DD. + * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve + * all the data available in the account. Format: YYYY-MM-DD. */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -164,23 +175,25 @@ public Builder startDate(LocalDate startDate) { } /** - * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve all the data available in the account. Format: YYYY-MM-DD. + * The start date to sync data; all data after this date will be replicated. Leave blank to retrieve + * all the data available in the account. Format: YYYY-MM-DD. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceCloseCom build() { if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } + return new SourceCloseCom( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCloudbeds.java b/src/main/java/com/airbyte/api/models/shared/SourceCloudbeds.java index 5928e8ee1..68541dd1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCloudbeds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCloudbeds.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceCloudbeds { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Cloudbeds sourceType; @@ -39,9 +40,10 @@ public Cloudbeds sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceCloudbeds withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceCloudbeds withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceCloudbeds other = (SourceCloudbeds) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceCloudbeds build() { + return new SourceCloudbeds( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCoassemble.java b/src/main/java/com/airbyte/api/models/shared/SourceCoassemble.java index 7eaecae4f..8eeee6120 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCoassemble.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCoassemble.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceCoassemble { @JsonProperty("sourceType") private Coassemble sourceType; + @JsonProperty("user_id") private String userId; + @JsonProperty("user_token") private String userToken; @@ -50,9 +52,10 @@ public String userToken() { return userToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceCoassemble withUserId(String userId) { Utils.checkNotNull(userId, "userId"); @@ -66,7 +69,6 @@ public SourceCoassemble withUserToken(String userToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceCoassemble other = (SourceCoassemble) o; return - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.userId, other.userId) && - Objects.deepEquals(this.userToken, other.userToken); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.userId, other.userId) && + Utils.enhancedDeepEquals(this.userToken, other.userToken); } @Override public int hashCode() { - return Objects.hash( - sourceType, - userId, - userToken); + return Utils.enhancedHash( + sourceType, userId, userToken); } @Override @@ -97,35 +97,39 @@ public String toString() { "userId", userId, "userToken", userToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String userId; - + private String userToken; - + private Builder() { // force use of static builder() method } + public Builder userId(String userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; } + public Builder userToken(String userToken) { Utils.checkNotNull(userToken, "userToken"); this.userToken = userToken; return this; } - + public SourceCoassemble build() { + return new SourceCoassemble( - userId, - userToken); + userId, userToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCoda.java b/src/main/java/com/airbyte/api/models/shared/SourceCoda.java index 50af7f692..02c97fdcf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCoda.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCoda.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceCoda { +public class SourceCoda { /** * Bearer token */ @JsonProperty("auth_token") private String authToken; + @JsonProperty("sourceType") private Coda sourceType; @@ -45,9 +45,10 @@ public Coda sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Bearer token @@ -58,7 +59,6 @@ public SourceCoda withAuthToken(String authToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceCoda other = (SourceCoda) o; return - Objects.deepEquals(this.authToken, other.authToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.authToken, other.authToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - authToken, - sourceType); + return Utils.enhancedHash( + authToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "authToken", authToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String authToken; - + private Builder() { // force use of static builder() method } + /** * Bearer token */ @@ -103,12 +104,14 @@ public Builder authToken(String authToken) { this.authToken = authToken; return this; } - + public SourceCoda build() { + return new SourceCoda( authToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCodefresh.java b/src/main/java/com/airbyte/api/models/shared/SourceCodefresh.java index 5ed55e1a6..d0a3d7d9e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCodefresh.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCodefresh.java @@ -17,28 +17,33 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceCodefresh { @JsonProperty("account_id") private String accountId; + @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("report_date_range") private Optional> reportDateRange; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("report_granularity") private Optional reportGranularity; + @JsonProperty("sourceType") private Codefresh sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -66,7 +71,8 @@ public SourceCodefresh( String accountId, String apiKey, OffsetDateTime startDate) { - this(accountId, apiKey, Optional.empty(), Optional.empty(), startDate); + this(accountId, apiKey, Optional.empty(), + Optional.empty(), startDate); } @JsonIgnore @@ -100,9 +106,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceCodefresh withAccountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -122,6 +129,7 @@ public SourceCodefresh withReportDateRange(List reportDateRange) { return this; } + public SourceCodefresh withReportDateRange(Optional> reportDateRange) { Utils.checkNotNull(reportDateRange, "reportDateRange"); this.reportDateRange = reportDateRange; @@ -134,6 +142,7 @@ public SourceCodefresh withReportGranularity(String reportGranularity) { return this; } + public SourceCodefresh withReportGranularity(Optional reportGranularity) { Utils.checkNotNull(reportGranularity, "reportGranularity"); this.reportGranularity = reportGranularity; @@ -146,7 +155,6 @@ public SourceCodefresh withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -157,23 +165,19 @@ public boolean equals(java.lang.Object o) { } SourceCodefresh other = (SourceCodefresh) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.reportDateRange, other.reportDateRange) && - Objects.deepEquals(this.reportGranularity, other.reportGranularity) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.reportDateRange, other.reportDateRange) && + Utils.enhancedDeepEquals(this.reportGranularity, other.reportGranularity) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountId, - apiKey, - reportDateRange, - reportGranularity, - sourceType, - startDate); + return Utils.enhancedHash( + accountId, apiKey, reportDateRange, + reportGranularity, sourceType, startDate); } @Override @@ -186,35 +190,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private String apiKey; - + private Optional> reportDateRange = Optional.empty(); - + private Optional reportGranularity = Optional.empty(); - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder accountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); this.accountId = accountId; return this; } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder reportDateRange(List reportDateRange) { Utils.checkNotNull(reportDateRange, "reportDateRange"); this.reportDateRange = Optional.ofNullable(reportDateRange); @@ -227,6 +235,7 @@ public Builder reportDateRange(Optional> reportDateRange) return this; } + public Builder reportGranularity(String reportGranularity) { Utils.checkNotNull(reportGranularity, "reportGranularity"); this.reportGranularity = Optional.ofNullable(reportGranularity); @@ -239,21 +248,21 @@ public Builder reportGranularity(Optional reportGranularity) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceCodefresh build() { + return new SourceCodefresh( - accountId, - apiKey, - reportDateRange, - reportGranularity, - startDate); + accountId, apiKey, reportDateRange, + reportGranularity, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCoinApi.java b/src/main/java/com/airbyte/api/models/shared/SourceCoinApi.java index bb33f9fe3..d3a69e810 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCoinApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCoinApi.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceCoinApi { +public class SourceCoinApi { /** * API Key */ @@ -57,6 +56,7 @@ public class SourceCoinApi { @JsonProperty("period") private String period; + @JsonProperty("sourceType") private CoinApi sourceType; @@ -104,7 +104,9 @@ public SourceCoinApi( String period, String startDate, String symbolId) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), period, startDate, symbolId); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), period, startDate, + symbolId); } /** @@ -174,9 +176,10 @@ public String symbolId() { return symbolId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -198,6 +201,7 @@ public SourceCoinApi withEndDate(String endDate) { return this; } + /** * The end date in ISO 8601 format. If not supplied, data will be returned * from the start date to the current time, or when the count of result @@ -218,6 +222,7 @@ public SourceCoinApi withEnvironment(Environment environment) { return this; } + /** * The environment to use. Either sandbox or production. */ @@ -238,6 +243,7 @@ public SourceCoinApi withLimit(long limit) { return this; } + /** * The maximum number of elements to return. If not supplied, the default * is 100. For numbers larger than 100, each 100 items is counted as one @@ -277,7 +283,6 @@ public SourceCoinApi withSymbolId(String symbolId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -288,27 +293,22 @@ public boolean equals(java.lang.Object o) { } SourceCoinApi other = (SourceCoinApi) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.environment, other.environment) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.period, other.period) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.symbolId, other.symbolId); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.environment, other.environment) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.period, other.period) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.symbolId, other.symbolId); } @Override public int hashCode() { - return Objects.hash( - apiKey, - endDate, - environment, - limit, - period, - sourceType, - startDate, - symbolId); + return Utils.enhancedHash( + apiKey, endDate, environment, + limit, period, sourceType, + startDate, symbolId); } @Override @@ -323,27 +323,29 @@ public String toString() { "startDate", startDate, "symbolId", symbolId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional endDate = Optional.empty(); - + private Optional environment; - + private Optional limit; - + private String period; - + private String startDate; - + private String symbolId; - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -353,6 +355,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The end date in ISO 8601 format. If not supplied, data will be returned * from the start date to the current time, or when the count of result @@ -375,6 +378,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * The environment to use. Either sandbox or production. */ @@ -393,6 +397,7 @@ public Builder environment(Optional environment) { return this; } + /** * The maximum number of elements to return. If not supplied, the default * is 100. For numbers larger than 100, each 100 items is counted as one @@ -415,6 +420,7 @@ public Builder limit(Optional limit) { return this; } + /** * The period to use. See the documentation for a list. https://docs.coinapi.io/#list-all-periods-get */ @@ -424,6 +430,7 @@ public Builder period(String period) { return this; } + /** * The start date in ISO 8601 format. */ @@ -433,6 +440,7 @@ public Builder startDate(String startDate) { return this; } + /** * The symbol ID to use. See the documentation for a list. * https://docs.coinapi.io/#list-all-symbols-get @@ -442,7 +450,7 @@ public Builder symbolId(String symbolId) { this.symbolId = symbolId; return this; } - + public SourceCoinApi build() { if (environment == null) { environment = _SINGLETON_VALUE_Environment.value(); @@ -450,16 +458,14 @@ public SourceCoinApi build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } + return new SourceCoinApi( - apiKey, - endDate, - environment, - limit, - period, - startDate, + apiKey, endDate, environment, + limit, period, startDate, symbolId); } + private static final LazySingletonValue> _SINGLETON_VALUE_Environment = new LazySingletonValue<>( "environment", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCoingeckoCoins.java b/src/main/java/com/airbyte/api/models/shared/SourceCoingeckoCoins.java index f54e3009a..db075a6ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCoingeckoCoins.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCoingeckoCoins.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourceCoingeckoCoins { +public class SourceCoingeckoCoins { /** * API Key (for pro users) */ @@ -48,6 +47,7 @@ public class SourceCoingeckoCoins { @JsonProperty("end_date") private Optional endDate; + @JsonProperty("sourceType") private CoingeckoCoins sourceType; @@ -90,7 +90,8 @@ public SourceCoingeckoCoins( String coinId, LocalDate startDate, String vsCurrency) { - this(Optional.empty(), coinId, Optional.empty(), Optional.empty(), startDate, vsCurrency); + this(Optional.empty(), coinId, Optional.empty(), + Optional.empty(), startDate, vsCurrency); } /** @@ -148,9 +149,10 @@ public String vsCurrency() { return vsCurrency; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key (for pro users) @@ -161,6 +163,7 @@ public SourceCoingeckoCoins withApiKey(String apiKey) { return this; } + /** * API Key (for pro users) */ @@ -189,6 +192,7 @@ public SourceCoingeckoCoins withDays(Days days) { return this; } + /** * The number of days of data for market chart. */ @@ -207,6 +211,7 @@ public SourceCoingeckoCoins withEndDate(LocalDate endDate) { return this; } + /** * The end date for the historical data stream in dd-mm-yyyy format. */ @@ -234,7 +239,6 @@ public SourceCoingeckoCoins withVsCurrency(String vsCurrency) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -245,24 +249,20 @@ public boolean equals(java.lang.Object o) { } SourceCoingeckoCoins other = (SourceCoingeckoCoins) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.coinId, other.coinId) && - Objects.deepEquals(this.days, other.days) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.vsCurrency, other.vsCurrency); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.coinId, other.coinId) && + Utils.enhancedDeepEquals(this.days, other.days) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.vsCurrency, other.vsCurrency); } @Override public int hashCode() { - return Objects.hash( - apiKey, - coinId, - days, - endDate, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, coinId, days, + endDate, sourceType, startDate, vsCurrency); } @@ -277,25 +277,27 @@ public String toString() { "startDate", startDate, "vsCurrency", vsCurrency); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey = Optional.empty(); - + private String coinId; - + private Optional days; - + private Optional endDate = Optional.empty(); - + private LocalDate startDate; - + private String vsCurrency; - + private Builder() { // force use of static builder() method } + /** * API Key (for pro users) */ @@ -314,6 +316,7 @@ public Builder apiKey(Optional apiKey) { return this; } + /** * CoinGecko coin ID (e.g. bitcoin). Can be retrieved from the * `/coins/list` endpoint. @@ -324,6 +327,7 @@ public Builder coinId(String coinId) { return this; } + /** * The number of days of data for market chart. */ @@ -342,6 +346,7 @@ public Builder days(Optional days) { return this; } + /** * The end date for the historical data stream in dd-mm-yyyy format. */ @@ -360,6 +365,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * The start date for the historical data stream in dd-mm-yyyy format. */ @@ -369,6 +375,7 @@ public Builder startDate(LocalDate startDate) { return this; } + /** * The target currency of market data (e.g. usd, eur, jpy, etc.) */ @@ -377,20 +384,18 @@ public Builder vsCurrency(String vsCurrency) { this.vsCurrency = vsCurrency; return this; } - + public SourceCoingeckoCoins build() { if (days == null) { days = _SINGLETON_VALUE_Days.value(); } + return new SourceCoingeckoCoins( - apiKey, - coinId, - days, - endDate, - startDate, - vsCurrency); + apiKey, coinId, days, + endDate, startDate, vsCurrency); } + private static final LazySingletonValue> _SINGLETON_VALUE_Days = new LazySingletonValue<>( "days", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCoinmarketcap.java b/src/main/java/com/airbyte/api/models/shared/SourceCoinmarketcap.java index 425b4a311..2b61d7a0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCoinmarketcap.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCoinmarketcap.java @@ -15,23 +15,27 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceCoinmarketcap { +public class SourceCoinmarketcap { /** - * Your API Key. See <a href="https://coinmarketcap.com/api/documentation/v1/#section/Authentication">here</a>. The token is case sensitive. + * Your API Key. See here. The token is + * case sensitive. */ @JsonProperty("api_key") private String apiKey; /** - * /latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See <a href="https://coinmarketcap.com/api/documentation/v1/#section/Endpoint-Overview">here</a>. + * /latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: + * Intervals of historic market data like OHLCV data or data for use in charting libraries. See here. */ @JsonProperty("data_type") private DataType dataType; + @JsonProperty("sourceType") private Coinmarketcap sourceType; @@ -63,7 +67,9 @@ public SourceCoinmarketcap( } /** - * Your API Key. See <a href="https://coinmarketcap.com/api/documentation/v1/#section/Authentication">here</a>. The token is case sensitive. + * Your API Key. See here. The token is + * case sensitive. */ @JsonIgnore public String apiKey() { @@ -71,7 +77,9 @@ public String apiKey() { } /** - * /latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See <a href="https://coinmarketcap.com/api/documentation/v1/#section/Endpoint-Overview">here</a>. + * /latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: + * Intervals of historic market data like OHLCV data or data for use in charting libraries. See here. */ @JsonIgnore public DataType dataType() { @@ -92,12 +100,15 @@ public Optional> symbols() { return (Optional>) symbols; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Key. See <a href="https://coinmarketcap.com/api/documentation/v1/#section/Authentication">here</a>. The token is case sensitive. + * Your API Key. See here. The token is + * case sensitive. */ public SourceCoinmarketcap withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -106,7 +117,9 @@ public SourceCoinmarketcap withApiKey(String apiKey) { } /** - * /latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See <a href="https://coinmarketcap.com/api/documentation/v1/#section/Endpoint-Overview">here</a>. + * /latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: + * Intervals of historic market data like OHLCV data or data for use in charting libraries. See here. */ public SourceCoinmarketcap withDataType(DataType dataType) { Utils.checkNotNull(dataType, "dataType"); @@ -123,6 +136,7 @@ public SourceCoinmarketcap withSymbols(List symbols) { return this; } + /** * Cryptocurrency symbols. (only used for quotes stream) */ @@ -132,7 +146,6 @@ public SourceCoinmarketcap withSymbols(Optional> symbols) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -143,18 +156,16 @@ public boolean equals(java.lang.Object o) { } SourceCoinmarketcap other = (SourceCoinmarketcap) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.dataType, other.dataType) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.symbols, other.symbols); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.dataType, other.dataType) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.symbols, other.symbols); } @Override public int hashCode() { - return Objects.hash( - apiKey, - dataType, - sourceType, + return Utils.enhancedHash( + apiKey, dataType, sourceType, symbols); } @@ -166,21 +177,25 @@ public String toString() { "sourceType", sourceType, "symbols", symbols); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private DataType dataType; - + private Optional> symbols = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Your API Key. See <a href="https://coinmarketcap.com/api/documentation/v1/#section/Authentication">here</a>. The token is case sensitive. + * Your API Key. See here. The token is + * case sensitive. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -188,8 +203,11 @@ public Builder apiKey(String apiKey) { return this; } + /** - * /latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: Intervals of historic market data like OHLCV data or data for use in charting libraries. See <a href="https://coinmarketcap.com/api/documentation/v1/#section/Endpoint-Overview">here</a>. + * /latest: Latest market ticker quotes and averages for cryptocurrencies and exchanges. /historical: + * Intervals of historic market data like OHLCV data or data for use in charting libraries. See here. */ public Builder dataType(DataType dataType) { Utils.checkNotNull(dataType, "dataType"); @@ -197,6 +215,7 @@ public Builder dataType(DataType dataType) { return this; } + /** * Cryptocurrency symbols. (only used for quotes stream) */ @@ -214,14 +233,14 @@ public Builder symbols(Optional> symbols) { this.symbols = symbols; return this; } - + public SourceCoinmarketcap build() { + return new SourceCoinmarketcap( - apiKey, - dataType, - symbols); + apiKey, dataType, symbols); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConcord.java b/src/main/java/com/airbyte/api/models/shared/SourceConcord.java index cecf7ecc7..f11d7ab3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConcord.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConcord.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceConcord { @@ -24,6 +24,7 @@ public class SourceConcord { @JsonProperty("env") private SourceConcordEnvironment env; + @JsonProperty("sourceType") private Concord sourceType; @@ -56,9 +57,10 @@ public Concord sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceConcord withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -75,7 +77,6 @@ public SourceConcord withEnv(SourceConcordEnvironment env) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +87,15 @@ public boolean equals(java.lang.Object o) { } SourceConcord other = (SourceConcord) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.env, other.env) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.env, other.env) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - env, - sourceType); + return Utils.enhancedHash( + apiKey, env, sourceType); } @Override @@ -106,23 +105,26 @@ public String toString() { "env", env, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private SourceConcordEnvironment env; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * The environment from where you want to access the API. */ @@ -131,13 +133,14 @@ public Builder env(SourceConcordEnvironment env) { this.env = env; return this; } - + public SourceConcord build() { + return new SourceConcord( - apiKey, - env); + apiKey, env); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java index 7123b7c77..ee095fc2e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConcordEnvironment.java @@ -20,7 +20,7 @@ public enum SourceConcordEnvironment { @JsonValue private final String value; - private SourceConcordEnvironment(String value) { + SourceConcordEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConfigcat.java b/src/main/java/com/airbyte/api/models/shared/SourceConfigcat.java index 4fc5a8354..a45c93526 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConfigcat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConfigcat.java @@ -11,21 +11,21 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceConfigcat { +public class SourceConfigcat { /** - * Basic auth password. See <a href="https://api.configcat.com/docs/#section/Authentication">here</a>. + * Basic auth password. See here. */ @JsonProperty("password") private String password; + @JsonProperty("sourceType") private Configcat sourceType; /** - * Basic auth user name. See <a href="https://api.configcat.com/docs/#section/Authentication">here</a>. + * Basic auth user name. See here. */ @JsonProperty("username") private String username; @@ -42,7 +42,7 @@ public SourceConfigcat( } /** - * Basic auth password. See <a href="https://api.configcat.com/docs/#section/Authentication">here</a>. + * Basic auth password. See here. */ @JsonIgnore public String password() { @@ -55,19 +55,20 @@ public Configcat sourceType() { } /** - * Basic auth user name. See <a href="https://api.configcat.com/docs/#section/Authentication">here</a>. + * Basic auth user name. See here. */ @JsonIgnore public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Basic auth password. See <a href="https://api.configcat.com/docs/#section/Authentication">here</a>. + * Basic auth password. See here. */ public SourceConfigcat withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -76,7 +77,7 @@ public SourceConfigcat withPassword(String password) { } /** - * Basic auth user name. See <a href="https://api.configcat.com/docs/#section/Authentication">here</a>. + * Basic auth user name. See here. */ public SourceConfigcat withUsername(String username) { Utils.checkNotNull(username, "username"); @@ -84,7 +85,6 @@ public SourceConfigcat withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceConfigcat other = (SourceConfigcat) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - username); + return Utils.enhancedHash( + password, sourceType, username); } @Override @@ -115,19 +113,21 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private String username; - + private Builder() { // force use of static builder() method } + /** - * Basic auth password. See <a href="https://api.configcat.com/docs/#section/Authentication">here</a>. + * Basic auth password. See here. */ public Builder password(String password) { Utils.checkNotNull(password, "password"); @@ -135,21 +135,23 @@ public Builder password(String password) { return this; } + /** - * Basic auth user name. See <a href="https://api.configcat.com/docs/#section/Authentication">here</a>. + * Basic auth user name. See here. */ public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceConfigcat build() { + return new SourceConfigcat( - password, - username); + password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java b/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java index e8949de6f..167319ac9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConfiguration.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceConfiguration @@ -136,6 +135,11 @@ public static SourceConfiguration of(SourceAppleSearchAds value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceAppsflyer value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceApptivo value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -166,6 +170,11 @@ public static SourceConfiguration of(SourceAviationstack value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceAwinAdvertiser value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceAwsCloudtrail value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -371,6 +380,11 @@ public static SourceConfiguration of(SourceChartmogul value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceChurnkey value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceCimis value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -561,6 +575,11 @@ public static SourceConfiguration of(SourceDocuseal value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceDolibarr value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceDremio value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -611,11 +630,21 @@ public static SourceConfiguration of(SourceEbayFinance value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceEbayFulfillment value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceElasticemail value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceElasticsearch value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceEmailoctopus value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -666,6 +695,11 @@ public static SourceConfiguration of(SourceFacebookMarketing value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceFacebookPages value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceFactorial value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1141,6 +1175,11 @@ public static SourceConfiguration of(SourceJotform value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceJudgeMeReviews value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceJustSift value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1226,6 +1265,11 @@ public static SourceConfiguration of(SourceLightspeedRetail value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceLinear value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceLinkedinAds value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1321,6 +1365,11 @@ public static SourceConfiguration of(SourceMention value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceMercadoAds value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceMerge value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1536,6 +1585,11 @@ public static SourceConfiguration of(SourceOpenDataDc value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceOpenExchangeRates value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceOpenaq value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -1561,6 +1615,11 @@ public static SourceConfiguration of(SourceOpsgenie value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceOpuswatch value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceOracle value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -2051,6 +2110,11 @@ public static SourceConfiguration of(SourceSftpBulk value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceSharepointEnterprise value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceSharetribe value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -2181,6 +2245,11 @@ public static SourceConfiguration of(SourceSplitIo value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceSpotifyAds value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceSpotlercrm value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -2291,6 +2360,11 @@ public static SourceConfiguration of(SourceThinkificCourses value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceThriveLearning value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceTicketmaster value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -2401,6 +2475,11 @@ public static SourceConfiguration of(SourceUppromote value) { return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + public static SourceConfiguration of(SourceUptick value) { + Utils.checkNotNull(value, "value"); + return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + public static SourceConfiguration of(SourceUsCensus value) { Utils.checkNotNull(value, "value"); return new SourceConfiguration(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -2700,12 +2779,14 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceAppfigures}
  • *
  • {@code com.airbyte.api.models.shared.SourceAppfollow}
  • *
  • {@code com.airbyte.api.models.shared.SourceAppleSearchAds}
  • + *
  • {@code com.airbyte.api.models.shared.SourceAppsflyer}
  • *
  • {@code com.airbyte.api.models.shared.SourceApptivo}
  • *
  • {@code com.airbyte.api.models.shared.SourceAsana}
  • *
  • {@code com.airbyte.api.models.shared.SourceAshby}
  • *
  • {@code com.airbyte.api.models.shared.SourceAssemblyai}
  • *
  • {@code com.airbyte.api.models.shared.SourceAuth0}
  • *
  • {@code com.airbyte.api.models.shared.SourceAviationstack}
  • + *
  • {@code com.airbyte.api.models.shared.SourceAwinAdvertiser}
  • *
  • {@code com.airbyte.api.models.shared.SourceAwsCloudtrail}
  • *
  • {@code com.airbyte.api.models.shared.SourceAzureBlobStorage}
  • *
  • {@code com.airbyte.api.models.shared.SourceAzureTable}
  • @@ -2747,6 +2828,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceChargedesk}
  • *
  • {@code com.airbyte.api.models.shared.SourceChargify}
  • *
  • {@code com.airbyte.api.models.shared.SourceChartmogul}
  • + *
  • {@code com.airbyte.api.models.shared.SourceChurnkey}
  • *
  • {@code com.airbyte.api.models.shared.SourceCimis}
  • *
  • {@code com.airbyte.api.models.shared.SourceCin7}
  • *
  • {@code com.airbyte.api.models.shared.SourceCirca}
  • @@ -2785,6 +2867,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceDixa}
  • *
  • {@code com.airbyte.api.models.shared.SourceDockerhub}
  • *
  • {@code com.airbyte.api.models.shared.SourceDocuseal}
  • + *
  • {@code com.airbyte.api.models.shared.SourceDolibarr}
  • *
  • {@code com.airbyte.api.models.shared.SourceDremio}
  • *
  • {@code com.airbyte.api.models.shared.SourceDrift}
  • *
  • {@code com.airbyte.api.models.shared.SourceDrip}
  • @@ -2795,7 +2878,9 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceEasypost}
  • *
  • {@code com.airbyte.api.models.shared.SourceEasypromos}
  • *
  • {@code com.airbyte.api.models.shared.SourceEbayFinance}
  • + *
  • {@code com.airbyte.api.models.shared.SourceEbayFulfillment}
  • *
  • {@code com.airbyte.api.models.shared.SourceElasticemail}
  • + *
  • {@code com.airbyte.api.models.shared.SourceElasticsearch}
  • *
  • {@code com.airbyte.api.models.shared.SourceEmailoctopus}
  • *
  • {@code com.airbyte.api.models.shared.SourceEmploymentHero}
  • *
  • {@code com.airbyte.api.models.shared.SourceEncharge}
  • @@ -2806,6 +2891,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceExchangeRates}
  • *
  • {@code com.airbyte.api.models.shared.SourceEzofficeinventory}
  • *
  • {@code com.airbyte.api.models.shared.SourceFacebookMarketing}
  • + *
  • {@code com.airbyte.api.models.shared.SourceFacebookPages}
  • *
  • {@code com.airbyte.api.models.shared.SourceFactorial}
  • *
  • {@code com.airbyte.api.models.shared.SourceFaker}
  • *
  • {@code com.airbyte.api.models.shared.SourceFastbill}
  • @@ -2901,6 +2987,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceJira}
  • *
  • {@code com.airbyte.api.models.shared.SourceJobnimbus}
  • *
  • {@code com.airbyte.api.models.shared.SourceJotform}
  • + *
  • {@code com.airbyte.api.models.shared.SourceJudgeMeReviews}
  • *
  • {@code com.airbyte.api.models.shared.SourceJustSift}
  • *
  • {@code com.airbyte.api.models.shared.SourceJustcall}
  • *
  • {@code com.airbyte.api.models.shared.SourceK6Cloud}
  • @@ -2918,6 +3005,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceLessAnnoyingCrm}
  • *
  • {@code com.airbyte.api.models.shared.SourceLeverHiring}
  • *
  • {@code com.airbyte.api.models.shared.SourceLightspeedRetail}
  • + *
  • {@code com.airbyte.api.models.shared.SourceLinear}
  • *
  • {@code com.airbyte.api.models.shared.SourceLinkedinAds}
  • *
  • {@code com.airbyte.api.models.shared.SourceLinkedinPages}
  • *
  • {@code com.airbyte.api.models.shared.SourceLinnworks}
  • @@ -2937,6 +3025,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceMarketstack}
  • *
  • {@code com.airbyte.api.models.shared.SourceMendeley}
  • *
  • {@code com.airbyte.api.models.shared.SourceMention}
  • + *
  • {@code com.airbyte.api.models.shared.SourceMercadoAds}
  • *
  • {@code com.airbyte.api.models.shared.SourceMerge}
  • *
  • {@code com.airbyte.api.models.shared.SourceMetabase}
  • *
  • {@code com.airbyte.api.models.shared.SourceMicrosoftDataverse}
  • @@ -2980,11 +3069,13 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceOnesignal}
  • *
  • {@code com.airbyte.api.models.shared.SourceOnfleet}
  • *
  • {@code com.airbyte.api.models.shared.SourceOpenDataDc}
  • + *
  • {@code com.airbyte.api.models.shared.SourceOpenExchangeRates}
  • *
  • {@code com.airbyte.api.models.shared.SourceOpenaq}
  • *
  • {@code com.airbyte.api.models.shared.SourceOpenfda}
  • *
  • {@code com.airbyte.api.models.shared.SourceOpenweather}
  • *
  • {@code com.airbyte.api.models.shared.SourceOpinionStage}
  • *
  • {@code com.airbyte.api.models.shared.SourceOpsgenie}
  • + *
  • {@code com.airbyte.api.models.shared.SourceOpuswatch}
  • *
  • {@code com.airbyte.api.models.shared.SourceOracle}
  • *
  • {@code com.airbyte.api.models.shared.SourceOracleEnterprise}
  • *
  • {@code com.airbyte.api.models.shared.SourceOrb}
  • @@ -3083,6 +3174,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceServiceNow}
  • *
  • {@code com.airbyte.api.models.shared.SourceSftp}
  • *
  • {@code com.airbyte.api.models.shared.SourceSftpBulk}
  • + *
  • {@code com.airbyte.api.models.shared.SourceSharepointEnterprise}
  • *
  • {@code com.airbyte.api.models.shared.SourceSharetribe}
  • *
  • {@code com.airbyte.api.models.shared.SourceShippo}
  • *
  • {@code com.airbyte.api.models.shared.SourceShipstation}
  • @@ -3109,6 +3201,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceSpacexApi}
  • *
  • {@code com.airbyte.api.models.shared.SourceSparkpost}
  • *
  • {@code com.airbyte.api.models.shared.SourceSplitIo}
  • + *
  • {@code com.airbyte.api.models.shared.SourceSpotifyAds}
  • *
  • {@code com.airbyte.api.models.shared.SourceSpotlercrm}
  • *
  • {@code com.airbyte.api.models.shared.SourceSquare}
  • *
  • {@code com.airbyte.api.models.shared.SourceSquarespace}
  • @@ -3131,6 +3224,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceTheGuardianApi}
  • *
  • {@code com.airbyte.api.models.shared.SourceThinkific}
  • *
  • {@code com.airbyte.api.models.shared.SourceThinkificCourses}
  • + *
  • {@code com.airbyte.api.models.shared.SourceThriveLearning}
  • *
  • {@code com.airbyte.api.models.shared.SourceTicketmaster}
  • *
  • {@code com.airbyte.api.models.shared.SourceTickettailor}
  • *
  • {@code com.airbyte.api.models.shared.SourceTiktokMarketing}
  • @@ -3153,6 +3247,7 @@ public static SourceConfiguration of(SourceZoom value) { *
  • {@code com.airbyte.api.models.shared.SourceUbidots}
  • *
  • {@code com.airbyte.api.models.shared.SourceUnleash}
  • *
  • {@code com.airbyte.api.models.shared.SourceUppromote}
  • + *
  • {@code com.airbyte.api.models.shared.SourceUptick}
  • *
  • {@code com.airbyte.api.models.shared.SourceUsCensus}
  • *
  • {@code com.airbyte.api.models.shared.SourceUservoice}
  • *
  • {@code com.airbyte.api.models.shared.SourceVantage}
  • @@ -3234,12 +3329,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceConfiguration other = (SourceConfiguration) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") @@ -3247,532 +3342,548 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConfluence.java b/src/main/java/com/airbyte/api/models/shared/SourceConfluence.java index 4ecca7ca8..81d6cdf2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConfluence.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConfluence.java @@ -11,12 +11,13 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceConfluence { +public class SourceConfluence { /** - * Please follow the Jira confluence for generating an API token: <a href="https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/">generating an API token</a>. + * Please follow the Jira confluence for generating an API token: generating + * an API token. */ @JsonProperty("api_token") private String apiToken; @@ -33,6 +34,7 @@ public class SourceConfluence { @JsonProperty("email") private String email; + @JsonProperty("sourceType") private Confluence sourceType; @@ -51,7 +53,9 @@ public SourceConfluence( } /** - * Please follow the Jira confluence for generating an API token: <a href="https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/">generating an API token</a>. + * Please follow the Jira confluence for generating an API token: generating + * an API token. */ @JsonIgnore public String apiToken() { @@ -79,12 +83,15 @@ public Confluence sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Please follow the Jira confluence for generating an API token: <a href="https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/">generating an API token</a>. + * Please follow the Jira confluence for generating an API token: generating + * an API token. */ public SourceConfluence withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -110,7 +117,6 @@ public SourceConfluence withEmail(String email) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +127,16 @@ public boolean equals(java.lang.Object o) { } SourceConfluence other = (SourceConfluence) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.domainName, other.domainName) && - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.domainName, other.domainName) && + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - domainName, - email, + return Utils.enhancedHash( + apiToken, domainName, email, sourceType); } @@ -144,21 +148,25 @@ public String toString() { "email", email, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private String domainName; - + private String email; - + private Builder() { // force use of static builder() method } + /** - * Please follow the Jira confluence for generating an API token: <a href="https://support.atlassian.com/atlassian-account/docs/manage-api-tokens-for-your-atlassian-account/">generating an API token</a>. + * Please follow the Jira confluence for generating an API token: generating + * an API token. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -166,6 +174,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * Your Confluence domain name */ @@ -175,6 +184,7 @@ public Builder domainName(String domainName) { return this; } + /** * Your Confluence login email */ @@ -183,14 +193,14 @@ public Builder email(String email) { this.email = email; return this; } - + public SourceConfluence build() { + return new SourceConfluence( - apiToken, - domainName, - email); + apiToken, domainName, email); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConvertkit.java b/src/main/java/com/airbyte/api/models/shared/SourceConvertkit.java index 968e418cb..f68fdbef5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConvertkit.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConvertkit.java @@ -7,37 +7,49 @@ import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.time.OffsetDateTime; +import java.util.Optional; + public class SourceConvertkit { - /** - * API Secret - */ - @JsonProperty("api_secret") - private String apiSecret; + @JsonProperty("credentials") + private AuthenticationType credentials; + @JsonProperty("sourceType") private Convertkit sourceType; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("start_date") + private Optional startDate; + @JsonCreator public SourceConvertkit( - @JsonProperty("api_secret") String apiSecret) { - Utils.checkNotNull(apiSecret, "apiSecret"); - this.apiSecret = apiSecret; + @JsonProperty("credentials") AuthenticationType credentials, + @JsonProperty("start_date") Optional startDate) { + Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(startDate, "startDate"); + this.credentials = credentials; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + public SourceConvertkit( + AuthenticationType credentials) { + this(credentials, Optional.empty()); } - /** - * API Secret - */ @JsonIgnore - public String apiSecret() { - return apiSecret; + public AuthenticationType credentials() { + return credentials; } @JsonIgnore @@ -45,20 +57,35 @@ public Convertkit sourceType() { return sourceType; } - public final static Builder builder() { + @JsonIgnore + public Optional startDate() { + return startDate; + } + + public static Builder builder() { return new Builder(); - } - - /** - * API Secret - */ - public SourceConvertkit withApiSecret(String apiSecret) { - Utils.checkNotNull(apiSecret, "apiSecret"); - this.apiSecret = apiSecret; + } + + + public SourceConvertkit withCredentials(AuthenticationType credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + public SourceConvertkit withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + + public SourceConvertkit withStartDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,50 +96,76 @@ public boolean equals(java.lang.Object o) { } SourceConvertkit other = (SourceConvertkit) o; return - Objects.deepEquals(this.apiSecret, other.apiSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiSecret, - sourceType); + return Utils.enhancedHash( + credentials, sourceType, startDate); } @Override public String toString() { return Utils.toString(SourceConvertkit.class, - "apiSecret", apiSecret, - "sourceType", sourceType); + "credentials", credentials, + "sourceType", sourceType, + "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - - private String apiSecret; - + + private AuthenticationType credentials; + + private Optional startDate; + private Builder() { // force use of static builder() method } - /** - * API Secret - */ - public Builder apiSecret(String apiSecret) { - Utils.checkNotNull(apiSecret, "apiSecret"); - this.apiSecret = apiSecret; + + public Builder credentials(AuthenticationType credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; return this; } - + + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + public Builder startDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + public SourceConvertkit build() { + if (startDate == null) { + startDate = _SINGLETON_VALUE_StartDate.value(); + } + return new SourceConvertkit( - apiSecret); + credentials, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"convertkit\"", new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StartDate = + new LazySingletonValue<>( + "start_date", + "\"2013-01-01T00:00:00Z\"", + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConvertkitAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceConvertkitAuthType.java new file mode 100644 index 000000000..2af2a3d3c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceConvertkitAuthType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceConvertkitAuthType { + OAUTH20("oauth2.0"); + + @JsonValue + private final String value; + + SourceConvertkitAuthType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceConvertkitAuthType o: SourceConvertkitAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConvertkitOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceConvertkitOAuth20.java new file mode 100644 index 000000000..3752dbd04 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceConvertkitOAuth20.java @@ -0,0 +1,335 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Optional; + + +public class SourceConvertkitOAuth20 { + /** + * An access token generated using the provided client information and refresh token. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("access_token") + private Optional accessToken; + + + @JsonProperty("auth_type") + private SourceConvertkitAuthType authType; + + /** + * The client ID of your OAuth application. + */ + @JsonProperty("client_id") + private String clientId; + + /** + * The client secret of your OAuth application. + */ + @JsonProperty("client_secret") + private String clientSecret; + + /** + * The time at which the current access token is set to expire + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("expires_at") + private Optional expiresAt; + + /** + * A current, non-expired refresh token genereted using the provided client ID and secret. + */ + @JsonProperty("refresh_token") + private String refreshToken; + + @JsonCreator + public SourceConvertkitOAuth20( + @JsonProperty("access_token") Optional accessToken, + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("expires_at") Optional expiresAt, + @JsonProperty("refresh_token") String refreshToken) { + Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(expiresAt, "expiresAt"); + Utils.checkNotNull(refreshToken, "refreshToken"); + this.accessToken = accessToken; + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.clientId = clientId; + this.clientSecret = clientSecret; + this.expiresAt = expiresAt; + this.refreshToken = refreshToken; + } + + public SourceConvertkitOAuth20( + String clientId, + String clientSecret, + String refreshToken) { + this(Optional.empty(), clientId, clientSecret, + Optional.empty(), refreshToken); + } + + /** + * An access token generated using the provided client information and refresh token. + */ + @JsonIgnore + public Optional accessToken() { + return accessToken; + } + + @JsonIgnore + public SourceConvertkitAuthType authType() { + return authType; + } + + /** + * The client ID of your OAuth application. + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * The client secret of your OAuth application. + */ + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + /** + * The time at which the current access token is set to expire + */ + @JsonIgnore + public Optional expiresAt() { + return expiresAt; + } + + /** + * A current, non-expired refresh token genereted using the provided client ID and secret. + */ + @JsonIgnore + public String refreshToken() { + return refreshToken; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * An access token generated using the provided client information and refresh token. + */ + public SourceConvertkitOAuth20 withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = Optional.ofNullable(accessToken); + return this; + } + + + /** + * An access token generated using the provided client information and refresh token. + */ + public SourceConvertkitOAuth20 withAccessToken(Optional accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * The client ID of your OAuth application. + */ + public SourceConvertkitOAuth20 withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The client secret of your OAuth application. + */ + public SourceConvertkitOAuth20 withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * The time at which the current access token is set to expire + */ + public SourceConvertkitOAuth20 withExpiresAt(OffsetDateTime expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = Optional.ofNullable(expiresAt); + return this; + } + + + /** + * The time at which the current access token is set to expire + */ + public SourceConvertkitOAuth20 withExpiresAt(Optional expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = expiresAt; + return this; + } + + /** + * A current, non-expired refresh token genereted using the provided client ID and secret. + */ + public SourceConvertkitOAuth20 withRefreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceConvertkitOAuth20 other = (SourceConvertkitOAuth20) o; + return + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.expiresAt, other.expiresAt) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, expiresAt, refreshToken); + } + + @Override + public String toString() { + return Utils.toString(SourceConvertkitOAuth20.class, + "accessToken", accessToken, + "authType", authType, + "clientId", clientId, + "clientSecret", clientSecret, + "expiresAt", expiresAt, + "refreshToken", refreshToken); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional accessToken = Optional.empty(); + + private String clientId; + + private String clientSecret; + + private Optional expiresAt = Optional.empty(); + + private String refreshToken; + + private Builder() { + // force use of static builder() method + } + + + /** + * An access token generated using the provided client information and refresh token. + */ + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = Optional.ofNullable(accessToken); + return this; + } + + /** + * An access token generated using the provided client information and refresh token. + */ + public Builder accessToken(Optional accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + + /** + * The client ID of your OAuth application. + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + + /** + * The client secret of your OAuth application. + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + + /** + * The time at which the current access token is set to expire + */ + public Builder expiresAt(OffsetDateTime expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = Optional.ofNullable(expiresAt); + return this; + } + + /** + * The time at which the current access token is set to expire + */ + public Builder expiresAt(Optional expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = expiresAt; + return this; + } + + + /** + * A current, non-expired refresh token genereted using the provided client ID and secret. + */ + public Builder refreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; + return this; + } + + public SourceConvertkitOAuth20 build() { + + return new SourceConvertkitOAuth20( + accessToken, clientId, clientSecret, + expiresAt, refreshToken); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"oauth2.0\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConvertkitSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceConvertkitSchemasAuthType.java new file mode 100644 index 000000000..8d8ff54b8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceConvertkitSchemasAuthType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceConvertkitSchemasAuthType { + API_KEY("api_key"); + + @JsonValue + private final String value; + + SourceConvertkitSchemasAuthType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceConvertkitSchemasAuthType o: SourceConvertkitSchemasAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConvex.java b/src/main/java/com/airbyte/api/models/shared/SourceConvex.java index c028cbfd6..ce70e81a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConvex.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConvex.java @@ -11,19 +11,20 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceConvex { +public class SourceConvex { /** * API access key used to retrieve data from Convex. */ @JsonProperty("access_key") private String accessKey; + @JsonProperty("deployment_url") private String deploymentUrl; + @JsonProperty("sourceType") private SourceConvexConvex sourceType; @@ -56,9 +57,10 @@ public SourceConvexConvex sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API access key used to retrieve data from Convex. @@ -75,7 +77,6 @@ public SourceConvex withDeploymentUrl(String deploymentUrl) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +87,15 @@ public boolean equals(java.lang.Object o) { } SourceConvex other = (SourceConvex) o; return - Objects.deepEquals(this.accessKey, other.accessKey) && - Objects.deepEquals(this.deploymentUrl, other.deploymentUrl) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accessKey, other.accessKey) && + Utils.enhancedDeepEquals(this.deploymentUrl, other.deploymentUrl) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accessKey, - deploymentUrl, - sourceType); + return Utils.enhancedHash( + accessKey, deploymentUrl, sourceType); } @Override @@ -106,17 +105,19 @@ public String toString() { "deploymentUrl", deploymentUrl, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKey; - + private String deploymentUrl; - + private Builder() { // force use of static builder() method } + /** * API access key used to retrieve data from Convex. */ @@ -126,18 +127,20 @@ public Builder accessKey(String accessKey) { return this; } + public Builder deploymentUrl(String deploymentUrl) { Utils.checkNotNull(deploymentUrl, "deploymentUrl"); this.deploymentUrl = deploymentUrl; return this; } - + public SourceConvex build() { + return new SourceConvex( - accessKey, - deploymentUrl); + accessKey, deploymentUrl); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java b/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java index 978c59477..dfa97c73f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceConvexConvex.java @@ -14,7 +14,7 @@ public enum SourceConvexConvex { @JsonValue private final String value; - private SourceConvexConvex(String value) { + SourceConvexConvex(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCopper.java b/src/main/java/com/airbyte/api/models/shared/SourceCopper.java index fe6232408..36959cd92 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCopper.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCopper.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceCopper { +public class SourceCopper { /** * Copper API key */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Copper sourceType; @@ -62,9 +62,10 @@ public String userEmail() { return userEmail; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Copper API key @@ -84,7 +85,6 @@ public SourceCopper withUserEmail(String userEmail) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceCopper other = (SourceCopper) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.userEmail, other.userEmail); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.userEmail, other.userEmail); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - userEmail); + return Utils.enhancedHash( + apiKey, sourceType, userEmail); } @Override @@ -115,17 +113,19 @@ public String toString() { "sourceType", sourceType, "userEmail", userEmail); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String userEmail; - + private Builder() { // force use of static builder() method } + /** * Copper API key */ @@ -135,6 +135,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * user email used to login in to Copper */ @@ -143,13 +144,14 @@ public Builder userEmail(String userEmail) { this.userEmail = userEmail; return this; } - + public SourceCopper build() { + return new SourceCopper( - apiKey, - userEmail); + apiKey, userEmail); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCouchbase.java b/src/main/java/com/airbyte/api/models/shared/SourceCouchbase.java index c0c64fe86..72a2278fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCouchbase.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCouchbase.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceCouchbase { +public class SourceCouchbase { /** * The name of the bucket to sync data from */ @@ -26,7 +25,8 @@ public class SourceCouchbase { private String bucket; /** - * The connection string for the Couchbase server (e.g., couchbase://localhost or couchbases://example.com) + * The connection string for the Couchbase server (e.g., couchbase://localhost or + * couchbases://example.com) */ @JsonProperty("connection_string") private String connectionString; @@ -37,11 +37,14 @@ public class SourceCouchbase { @JsonProperty("password") private String password; + @JsonProperty("sourceType") private Couchbase sourceType; /** - * The date from which you'd like to replicate data for incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data will be replicated. + * The date from which you'd like to replicate data for incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data + * will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -78,7 +81,8 @@ public SourceCouchbase( String connectionString, String password, String username) { - this(bucket, connectionString, password, Optional.empty(), username); + this(bucket, connectionString, password, + Optional.empty(), username); } /** @@ -90,7 +94,8 @@ public String bucket() { } /** - * The connection string for the Couchbase server (e.g., couchbase://localhost or couchbases://example.com) + * The connection string for the Couchbase server (e.g., couchbase://localhost or + * couchbases://example.com) */ @JsonIgnore public String connectionString() { @@ -111,7 +116,9 @@ public Couchbase sourceType() { } /** - * The date from which you'd like to replicate data for incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data will be replicated. + * The date from which you'd like to replicate data for incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data + * will be replicated. */ @JsonIgnore public Optional startDate() { @@ -126,9 +133,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The name of the bucket to sync data from @@ -140,7 +148,8 @@ public SourceCouchbase withBucket(String bucket) { } /** - * The connection string for the Couchbase server (e.g., couchbase://localhost or couchbases://example.com) + * The connection string for the Couchbase server (e.g., couchbase://localhost or + * couchbases://example.com) */ public SourceCouchbase withConnectionString(String connectionString) { Utils.checkNotNull(connectionString, "connectionString"); @@ -158,7 +167,9 @@ public SourceCouchbase withPassword(String password) { } /** - * The date from which you'd like to replicate data for incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data will be replicated. + * The date from which you'd like to replicate data for incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data + * will be replicated. */ public SourceCouchbase withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -166,8 +177,11 @@ public SourceCouchbase withStartDate(OffsetDateTime startDate) { return this; } + /** - * The date from which you'd like to replicate data for incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data will be replicated. + * The date from which you'd like to replicate data for incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data + * will be replicated. */ public SourceCouchbase withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -184,7 +198,6 @@ public SourceCouchbase withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -195,23 +208,19 @@ public boolean equals(java.lang.Object o) { } SourceCouchbase other = (SourceCouchbase) o; return - Objects.deepEquals(this.bucket, other.bucket) && - Objects.deepEquals(this.connectionString, other.connectionString) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.bucket, other.bucket) && + Utils.enhancedDeepEquals(this.connectionString, other.connectionString) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - bucket, - connectionString, - password, - sourceType, - startDate, - username); + return Utils.enhancedHash( + bucket, connectionString, password, + sourceType, startDate, username); } @Override @@ -224,23 +233,25 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String bucket; - + private String connectionString; - + private String password; - + private Optional startDate = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * The name of the bucket to sync data from */ @@ -250,8 +261,10 @@ public Builder bucket(String bucket) { return this; } + /** - * The connection string for the Couchbase server (e.g., couchbase://localhost or couchbases://example.com) + * The connection string for the Couchbase server (e.g., couchbase://localhost or + * couchbases://example.com) */ public Builder connectionString(String connectionString) { Utils.checkNotNull(connectionString, "connectionString"); @@ -259,6 +272,7 @@ public Builder connectionString(String connectionString) { return this; } + /** * The password to use for authentication */ @@ -268,8 +282,11 @@ public Builder password(String password) { return this; } + /** - * The date from which you'd like to replicate data for incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data will be replicated. + * The date from which you'd like to replicate data for incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data + * will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -278,7 +295,9 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date from which you'd like to replicate data for incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data will be replicated. + * The date from which you'd like to replicate data for incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If not set, all data + * will be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -286,6 +305,7 @@ public Builder startDate(Optional startDate) { return this; } + /** * The username to use for authentication */ @@ -294,16 +314,15 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceCouchbase build() { + return new SourceCouchbase( - bucket, - connectionString, - password, - startDate, - username); + bucket, connectionString, password, + startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCountercyclical.java b/src/main/java/com/airbyte/api/models/shared/SourceCountercyclical.java index 6b39fb68a..203577897 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCountercyclical.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCountercyclical.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceCountercyclical { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Countercyclical sourceType; @@ -39,9 +40,10 @@ public Countercyclical sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceCountercyclical withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceCountercyclical withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceCountercyclical other = (SourceCountercyclical) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceCountercyclical build() { + return new SourceCountercyclical( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/SourceCreateRequest.java index ab571797a..f1d9069fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCreateRequest.java @@ -12,11 +12,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceCreateRequest { +public class SourceCreateRequest { /** * The values required to configure the source. */ @@ -24,7 +23,8 @@ public class SourceCreateRequest { private SourceConfiguration configuration; /** - * The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.sourceType or definitionId must be + * provided. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("definitionId") @@ -37,7 +37,12 @@ public class SourceCreateRequest { private String name; /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("resourceAllocation") @@ -50,6 +55,7 @@ public class SourceCreateRequest { @JsonProperty("secretId") private Optional secretId; + @JsonProperty("workspaceId") private String workspaceId; @@ -79,7 +85,8 @@ public SourceCreateRequest( SourceConfiguration configuration, String name, String workspaceId) { - this(configuration, Optional.empty(), name, Optional.empty(), Optional.empty(), workspaceId); + this(configuration, Optional.empty(), name, + Optional.empty(), Optional.empty(), workspaceId); } /** @@ -91,7 +98,8 @@ public SourceConfiguration configuration() { } /** - * The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.sourceType or definitionId must be + * provided. */ @JsonIgnore public Optional definitionId() { @@ -107,7 +115,12 @@ public String name() { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -128,9 +141,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The values required to configure the source. @@ -142,7 +156,8 @@ public SourceCreateRequest withConfiguration(SourceConfiguration configuration) } /** - * The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.sourceType or definitionId must be + * provided. */ public SourceCreateRequest withDefinitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -150,8 +165,10 @@ public SourceCreateRequest withDefinitionId(String definitionId) { return this; } + /** - * The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.sourceType or definitionId must be + * provided. */ public SourceCreateRequest withDefinitionId(Optional definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -169,7 +186,12 @@ public SourceCreateRequest withName(String name) { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public SourceCreateRequest withResourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -177,8 +199,14 @@ public SourceCreateRequest withResourceAllocation(ScopedResourceRequirements res return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public SourceCreateRequest withResourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -195,6 +223,7 @@ public SourceCreateRequest withSecretId(String secretId) { return this; } + /** * Optional secretID obtained through the OAuth redirect flow. */ @@ -210,7 +239,6 @@ public SourceCreateRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -221,23 +249,19 @@ public boolean equals(java.lang.Object o) { } SourceCreateRequest other = (SourceCreateRequest) o; return - Objects.deepEquals(this.configuration, other.configuration) && - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.resourceAllocation, other.resourceAllocation) && - Objects.deepEquals(this.secretId, other.secretId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.configuration, other.configuration) && + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.resourceAllocation, other.resourceAllocation) && + Utils.enhancedDeepEquals(this.secretId, other.secretId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - configuration, - definitionId, - name, - resourceAllocation, - secretId, - workspaceId); + return Utils.enhancedHash( + configuration, definitionId, name, + resourceAllocation, secretId, workspaceId); } @Override @@ -250,25 +274,27 @@ public String toString() { "secretId", secretId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceConfiguration configuration; - + private Optional definitionId = Optional.empty(); - + private String name; - + private Optional resourceAllocation = Optional.empty(); - + private Optional secretId = Optional.empty(); - + private String workspaceId; - + private Builder() { // force use of static builder() method } + /** * The values required to configure the source. */ @@ -278,8 +304,10 @@ public Builder configuration(SourceConfiguration configuration) { return this; } + /** - * The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.sourceType or definitionId must be + * provided. */ public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -288,7 +316,8 @@ public Builder definitionId(String definitionId) { } /** - * The UUID of the connector definition. One of configuration.sourceType or definitionId must be provided. + * The UUID of the connector definition. One of configuration.sourceType or definitionId must be + * provided. */ public Builder definitionId(Optional definitionId) { Utils.checkNotNull(definitionId, "definitionId"); @@ -296,6 +325,7 @@ public Builder definitionId(Optional definitionId) { return this; } + /** * Name of the source e.g. dev-mysql-instance. */ @@ -305,8 +335,14 @@ public Builder name(String name) { return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -315,7 +351,12 @@ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -323,6 +364,7 @@ public Builder resourceAllocation(Optional return this; } + /** * Optional secretID obtained through the OAuth redirect flow. */ @@ -341,20 +383,19 @@ public Builder secretId(Optional secretId) { return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public SourceCreateRequest build() { + return new SourceCreateRequest( - configuration, - definitionId, - name, - resourceAllocation, - secretId, - workspaceId); + configuration, definitionId, name, + resourceAllocation, secretId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java b/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java index f5fca907c..04874c247 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCustomerIo.java @@ -11,15 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceCustomerIo { @JsonProperty("app_api_key") private String appApiKey; + @JsonProperty("sourceType") - private CustomerIo sourceType; + private SourceCustomerIoCustomerIo sourceType; @JsonCreator public SourceCustomerIo( @@ -35,13 +36,14 @@ public String appApiKey() { } @JsonIgnore - public CustomerIo sourceType() { + public SourceCustomerIoCustomerIo sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceCustomerIo withAppApiKey(String appApiKey) { Utils.checkNotNull(appApiKey, "appApiKey"); @@ -49,7 +51,6 @@ public SourceCustomerIo withAppApiKey(String appApiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceCustomerIo other = (SourceCustomerIo) o; return - Objects.deepEquals(this.appApiKey, other.appApiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.appApiKey, other.appApiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - appApiKey, - sourceType); + return Utils.enhancedHash( + appApiKey, sourceType); } @Override @@ -77,30 +77,34 @@ public String toString() { "appApiKey", appApiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String appApiKey; - + private Builder() { // force use of static builder() method } + public Builder appApiKey(String appApiKey) { Utils.checkNotNull(appApiKey, "appApiKey"); this.appApiKey = appApiKey; return this; } - + public SourceCustomerIo build() { + return new SourceCustomerIo( appApiKey); } - private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", "\"customer-io\"", - new TypeReference() {}); + new TypeReference() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCustomerIoCustomerIo.java b/src/main/java/com/airbyte/api/models/shared/SourceCustomerIoCustomerIo.java new file mode 100644 index 000000000..01084db46 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceCustomerIoCustomerIo.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceCustomerIoCustomerIo { + CUSTOMER_IO("customer-io"); + + @JsonValue + private final String value; + + SourceCustomerIoCustomerIo(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceCustomerIoCustomerIo o: SourceCustomerIoCustomerIo.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceCustomerly.java b/src/main/java/com/airbyte/api/models/shared/SourceCustomerly.java index 25f16c67c..dd0450122 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceCustomerly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceCustomerly.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceCustomerly { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Customerly sourceType; @@ -39,9 +40,10 @@ public Customerly sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceCustomerly withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceCustomerly withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceCustomerly other = (SourceCustomerly) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceCustomerly build() { + return new SourceCustomerly( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java b/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java index 83e90c15b..f0f6a141b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDatadog.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceDatadog { +public class SourceDatadog { /** * Datadog API key */ @@ -34,7 +33,10 @@ public class SourceDatadog { private String applicationKey; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. + * An empty value will represent the current datetime for each execution. + * + *

    This just applies to Incremental syncs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") @@ -68,11 +70,13 @@ public class SourceDatadog { @JsonProperty("site") private Optional site; + @JsonProperty("sourceType") private Datadog sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This just applies to Incremental syncs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -110,7 +114,9 @@ public SourceDatadog( public SourceDatadog( String apiKey, String applicationKey) { - this(apiKey, applicationKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, applicationKey, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -130,7 +136,10 @@ public String applicationKey() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. + * An empty value will represent the current datetime for each execution. + * + *

    This just applies to Incremental syncs. */ @JsonIgnore public Optional endDate() { @@ -177,16 +186,18 @@ public Datadog sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This just applies to Incremental syncs. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Datadog API key @@ -207,7 +218,10 @@ public SourceDatadog withApplicationKey(String applicationKey) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. + * An empty value will represent the current datetime for each execution. + * + *

    This just applies to Incremental syncs. */ public SourceDatadog withEndDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -215,8 +229,12 @@ public SourceDatadog withEndDate(String endDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. + * An empty value will represent the current datetime for each execution. + * + *

    This just applies to Incremental syncs. */ public SourceDatadog withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -233,6 +251,7 @@ public SourceDatadog withMaxRecordsPerRequest(long maxRecordsPerRequest) { return this; } + /** * Maximum number of records to collect per request. */ @@ -251,6 +270,7 @@ public SourceDatadog withQueries(List queries) { return this; } + /** * List of queries to be run and used as inputs. */ @@ -269,6 +289,7 @@ public SourceDatadog withQuery(String query) { return this; } + /** * The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. */ @@ -287,6 +308,7 @@ public SourceDatadog withSite(Site site) { return this; } + /** * The site where Datadog data resides in. */ @@ -297,7 +319,8 @@ public SourceDatadog withSite(Optional site) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This just applies to Incremental syncs. */ public SourceDatadog withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -305,8 +328,10 @@ public SourceDatadog withStartDate(String startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This just applies to Incremental syncs. */ public SourceDatadog withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -314,7 +339,6 @@ public SourceDatadog withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -325,29 +349,23 @@ public boolean equals(java.lang.Object o) { } SourceDatadog other = (SourceDatadog) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.applicationKey, other.applicationKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.maxRecordsPerRequest, other.maxRecordsPerRequest) && - Objects.deepEquals(this.queries, other.queries) && - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.site, other.site) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.applicationKey, other.applicationKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.maxRecordsPerRequest, other.maxRecordsPerRequest) && + Utils.enhancedDeepEquals(this.queries, other.queries) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.site, other.site) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - applicationKey, - endDate, - maxRecordsPerRequest, - queries, - query, - site, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, applicationKey, endDate, + maxRecordsPerRequest, queries, query, + site, sourceType, startDate); } @Override @@ -363,29 +381,31 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String applicationKey; - + private Optional endDate = Optional.empty(); - + private Optional maxRecordsPerRequest; - + private Optional> queries = Optional.empty(); - + private Optional query = Optional.empty(); - + private Optional site; - + private Optional startDate; - + private Builder() { // force use of static builder() method } + /** * Datadog API key */ @@ -395,6 +415,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Datadog application key */ @@ -404,8 +425,12 @@ public Builder applicationKey(String applicationKey) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. + * An empty value will represent the current datetime for each execution. + * + *

    This just applies to Incremental syncs. */ public Builder endDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -414,7 +439,10 @@ public Builder endDate(String endDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. An empty value will represent the current datetime for each execution. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Data after this date will not be replicated. + * An empty value will represent the current datetime for each execution. + * + *

    This just applies to Incremental syncs. */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -422,6 +450,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * Maximum number of records to collect per request. */ @@ -440,6 +469,7 @@ public Builder maxRecordsPerRequest(Optional maxRecordsPerRequest) { return this; } + /** * List of queries to be run and used as inputs. */ @@ -458,6 +488,7 @@ public Builder queries(Optional> queries) { return this; } + /** * The search query. This just applies to Incremental syncs. If empty, it'll collect all logs. */ @@ -476,6 +507,7 @@ public Builder query(Optional query) { return this; } + /** * The site where Datadog data resides in. */ @@ -494,8 +526,10 @@ public Builder site(Optional site) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This just applies to Incremental syncs. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -504,14 +538,15 @@ public Builder startDate(String startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This just applies to Incremental syncs. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This just applies to Incremental syncs. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceDatadog build() { if (maxRecordsPerRequest == null) { maxRecordsPerRequest = _SINGLETON_VALUE_MaxRecordsPerRequest.value(); @@ -522,17 +557,14 @@ public SourceDatadog build() { if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } + return new SourceDatadog( - apiKey, - applicationKey, - endDate, - maxRecordsPerRequest, - queries, - query, - site, - startDate); + apiKey, applicationKey, endDate, + maxRecordsPerRequest, queries, query, + site, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_MaxRecordsPerRequest = new LazySingletonValue<>( "max_records_per_request", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDatascope.java b/src/main/java/com/airbyte/api/models/shared/SourceDatascope.java index 49e96c251..eeb9633aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDatascope.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDatascope.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceDatascope { +public class SourceDatascope { /** * API Key */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Datascope sourceType; @@ -62,9 +62,10 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -84,7 +85,6 @@ public SourceDatascope withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceDatascope other = (SourceDatascope) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -115,17 +113,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -135,6 +135,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Start date for the data to be replicated */ @@ -143,13 +144,14 @@ public Builder startDate(String startDate) { this.startDate = startDate; return this; } - + public SourceDatascope build() { + return new SourceDatascope( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDbt.java b/src/main/java/com/airbyte/api/models/shared/SourceDbt.java index 7fd0b383e..9a5a0cd32 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDbt.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDbt.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceDbt { @JsonProperty("account_id") private String accountId; + @JsonProperty("api_key_2") private String apiKey2; + @JsonProperty("sourceType") private Dbt sourceType; @@ -50,9 +52,10 @@ public Dbt sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceDbt withAccountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -66,7 +69,6 @@ public SourceDbt withApiKey2(String apiKey2) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceDbt other = (SourceDbt) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.apiKey2, other.apiKey2) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.apiKey2, other.apiKey2) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountId, - apiKey2, - sourceType); + return Utils.enhancedHash( + accountId, apiKey2, sourceType); } @Override @@ -97,35 +97,39 @@ public String toString() { "apiKey2", apiKey2, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private String apiKey2; - + private Builder() { // force use of static builder() method } + public Builder accountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); this.accountId = accountId; return this; } + public Builder apiKey2(String apiKey2) { Utils.checkNotNull(apiKey2, "apiKey2"); this.apiKey2 = apiKey2; return this; } - + public SourceDbt build() { + return new SourceDbt( - accountId, - apiKey2); + accountId, apiKey2); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDelighted.java b/src/main/java/com/airbyte/api/models/shared/SourceDelighted.java index 6982b8ac6..313e8f250 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDelighted.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDelighted.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceDelighted { +public class SourceDelighted { /** * A Delighted API key. */ @@ -28,6 +27,7 @@ public class SourceDelighted { @JsonProperty("since") private OffsetDateTime since; + @JsonProperty("sourceType") private Delighted sourceType; @@ -63,9 +63,10 @@ public Delighted sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * A Delighted API key. @@ -85,7 +86,6 @@ public SourceDelighted withSince(OffsetDateTime since) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -96,17 +96,15 @@ public boolean equals(java.lang.Object o) { } SourceDelighted other = (SourceDelighted) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.since, other.since) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.since, other.since) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - since, - sourceType); + return Utils.enhancedHash( + apiKey, since, sourceType); } @Override @@ -116,17 +114,19 @@ public String toString() { "since", since, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime since; - + private Builder() { // force use of static builder() method } + /** * A Delighted API key. */ @@ -136,6 +136,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The date from which you'd like to replicate the data */ @@ -144,13 +145,14 @@ public Builder since(OffsetDateTime since) { this.since = since; return this; } - + public SourceDelighted build() { + return new SourceDelighted( - apiKey, - since); + apiKey, since); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDeputy.java b/src/main/java/com/airbyte/api/models/shared/SourceDeputy.java index bbe21690b..69e65923b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDeputy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDeputy.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceDeputy { @@ -24,6 +24,7 @@ public class SourceDeputy { @JsonProperty("base_url") private String baseUrl; + @JsonProperty("sourceType") private Deputy sourceType; @@ -56,9 +57,10 @@ public Deputy sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceDeputy withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -75,7 +77,6 @@ public SourceDeputy withBaseUrl(String baseUrl) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +87,15 @@ public boolean equals(java.lang.Object o) { } SourceDeputy other = (SourceDeputy) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - sourceType); + return Utils.enhancedHash( + apiKey, baseUrl, sourceType); } @Override @@ -106,23 +105,26 @@ public String toString() { "baseUrl", baseUrl, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String baseUrl; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * The base url for your deputy account to make API requests */ @@ -131,13 +133,14 @@ public Builder baseUrl(String baseUrl) { this.baseUrl = baseUrl; return this; } - + public SourceDeputy build() { + return new SourceDeputy( - apiKey, - baseUrl); + apiKey, baseUrl); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDingConnect.java b/src/main/java/com/airbyte/api/models/shared/SourceDingConnect.java index bef0baa54..dbfb2a927 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDingConnect.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDingConnect.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceDingConnect { +public class SourceDingConnect { /** * Optional header to correlate HTTP requests between a client and server. */ @@ -27,14 +26,17 @@ public class SourceDingConnect { private Optional xCorrelationId; /** - * Your API key for authenticating with the DingConnect API. You can generate this key by navigating to the Developer tab in the Account Settings section of your DingConnect account. + * Your API key for authenticating with the DingConnect API. You can generate this key by navigating to + * the Developer tab in the Account Settings section of your DingConnect account. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private DingConnect sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -67,7 +69,8 @@ public Optional xCorrelationId() { } /** - * Your API key for authenticating with the DingConnect API. You can generate this key by navigating to the Developer tab in the Account Settings section of your DingConnect account. + * Your API key for authenticating with the DingConnect API. You can generate this key by navigating to + * the Developer tab in the Account Settings section of your DingConnect account. */ @JsonIgnore public String apiKey() { @@ -84,9 +87,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Optional header to correlate HTTP requests between a client and server. @@ -97,6 +101,7 @@ public SourceDingConnect withXCorrelationId(String xCorrelationId) { return this; } + /** * Optional header to correlate HTTP requests between a client and server. */ @@ -107,7 +112,8 @@ public SourceDingConnect withXCorrelationId(Optional xCorrelationId) { } /** - * Your API key for authenticating with the DingConnect API. You can generate this key by navigating to the Developer tab in the Account Settings section of your DingConnect account. + * Your API key for authenticating with the DingConnect API. You can generate this key by navigating to + * the Developer tab in the Account Settings section of your DingConnect account. */ public SourceDingConnect withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -121,7 +127,6 @@ public SourceDingConnect withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +137,16 @@ public boolean equals(java.lang.Object o) { } SourceDingConnect other = (SourceDingConnect) o; return - Objects.deepEquals(this.xCorrelationId, other.xCorrelationId) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.xCorrelationId, other.xCorrelationId) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - xCorrelationId, - apiKey, - sourceType, + return Utils.enhancedHash( + xCorrelationId, apiKey, sourceType, startDate); } @@ -155,19 +158,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional xCorrelationId = Optional.empty(); - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * Optional header to correlate HTTP requests between a client and server. */ @@ -186,8 +191,10 @@ public Builder xCorrelationId(Optional xCorrelationId) { return this; } + /** - * Your API key for authenticating with the DingConnect API. You can generate this key by navigating to the Developer tab in the Account Settings section of your DingConnect account. + * Your API key for authenticating with the DingConnect API. You can generate this key by navigating to + * the Developer tab in the Account Settings section of your DingConnect account. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -195,19 +202,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceDingConnect build() { + return new SourceDingConnect( - xCorrelationId, - apiKey, - startDate); + xCorrelationId, apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDixa.java b/src/main/java/com/airbyte/api/models/shared/SourceDixa.java index af354e42a..4800a5417 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDixa.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDixa.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceDixa { +public class SourceDixa { /** * Dixa API token */ @@ -33,6 +32,7 @@ public class SourceDixa { @JsonProperty("batch_size") private Optional batchSize; + @JsonProperty("sourceType") private Dixa sourceType; @@ -91,9 +91,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Dixa API token @@ -113,6 +114,7 @@ public SourceDixa withBatchSize(long batchSize) { return this; } + /** * Number of days to batch into one request. Max 31. */ @@ -131,7 +133,6 @@ public SourceDixa withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -142,18 +143,16 @@ public boolean equals(java.lang.Object o) { } SourceDixa other = (SourceDixa) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.batchSize, other.batchSize) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.batchSize, other.batchSize) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiToken, - batchSize, - sourceType, + return Utils.enhancedHash( + apiToken, batchSize, sourceType, startDate); } @@ -165,19 +164,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Optional batchSize; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * Dixa API token */ @@ -187,6 +188,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * Number of days to batch into one request. Max 31. */ @@ -205,6 +207,7 @@ public Builder batchSize(Optional batchSize) { return this; } + /** * The connector pulls records updated from this date onwards. */ @@ -213,17 +216,17 @@ public Builder startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } - + public SourceDixa build() { if (batchSize == null) { batchSize = _SINGLETON_VALUE_BatchSize.value(); } + return new SourceDixa( - apiToken, - batchSize, - startDate); + apiToken, batchSize, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_BatchSize = new LazySingletonValue<>( "batch_size", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDockerhub.java b/src/main/java/com/airbyte/api/models/shared/SourceDockerhub.java index 6164ff2a0..e424ac66c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDockerhub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDockerhub.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceDockerhub { +public class SourceDockerhub { /** - * Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ API call) + * Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ + * API call) */ @JsonProperty("docker_username") private String dockerUsername; + @JsonProperty("sourceType") private Dockerhub sourceType; @@ -33,7 +34,8 @@ public SourceDockerhub( } /** - * Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ API call) + * Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ + * API call) */ @JsonIgnore public String dockerUsername() { @@ -45,12 +47,14 @@ public Dockerhub sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ API call) + * Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ + * API call) */ public SourceDockerhub withDockerUsername(String dockerUsername) { Utils.checkNotNull(dockerUsername, "dockerUsername"); @@ -58,7 +62,6 @@ public SourceDockerhub withDockerUsername(String dockerUsername) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceDockerhub other = (SourceDockerhub) o; return - Objects.deepEquals(this.dockerUsername, other.dockerUsername) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.dockerUsername, other.dockerUsername) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - dockerUsername, - sourceType); + return Utils.enhancedHash( + dockerUsername, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "dockerUsername", dockerUsername, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String dockerUsername; - + private Builder() { // force use of static builder() method } + /** - * Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ API call) + * Username of DockerHub person or organization (for https://hub.docker.com/v2/repositories/USERNAME/ + * API call) */ public Builder dockerUsername(String dockerUsername) { Utils.checkNotNull(dockerUsername, "dockerUsername"); this.dockerUsername = dockerUsername; return this; } - + public SourceDockerhub build() { + return new SourceDockerhub( dockerUsername); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDocuseal.java b/src/main/java/com/airbyte/api/models/shared/SourceDocuseal.java index d31432203..6f4297856 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDocuseal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDocuseal.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceDocuseal { +public class SourceDocuseal { /** - * Your API key for authenticating with the DocuSeal API. Obtain it from the DocuSeal API Console at https://console.docuseal.com/api. + * Your API key for authenticating with the DocuSeal API. Obtain it from the DocuSeal API Console at + * https://console.docuseal.com/api. */ @JsonProperty("api_key") private String apiKey; @@ -32,9 +32,11 @@ public class SourceDocuseal { @JsonProperty("limit") private Optional limit; + @JsonProperty("sourceType") private Docuseal sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -59,7 +61,8 @@ public SourceDocuseal( } /** - * Your API key for authenticating with the DocuSeal API. Obtain it from the DocuSeal API Console at https://console.docuseal.com/api. + * Your API key for authenticating with the DocuSeal API. Obtain it from the DocuSeal API Console at + * https://console.docuseal.com/api. */ @JsonIgnore public String apiKey() { @@ -84,12 +87,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API key for authenticating with the DocuSeal API. Obtain it from the DocuSeal API Console at https://console.docuseal.com/api. + * Your API key for authenticating with the DocuSeal API. Obtain it from the DocuSeal API Console at + * https://console.docuseal.com/api. */ public SourceDocuseal withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -106,6 +111,7 @@ public SourceDocuseal withLimit(String limit) { return this; } + /** * The pagination limit */ @@ -121,7 +127,6 @@ public SourceDocuseal withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +137,16 @@ public boolean equals(java.lang.Object o) { } SourceDocuseal other = (SourceDocuseal) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - limit, - sourceType, + return Utils.enhancedHash( + apiKey, limit, sourceType, startDate); } @@ -155,21 +158,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional limit; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your API key for authenticating with the DocuSeal API. Obtain it from the DocuSeal API Console at https://console.docuseal.com/api. + * Your API key for authenticating with the DocuSeal API. Obtain it from the DocuSeal API Console at + * https://console.docuseal.com/api. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -177,6 +183,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The pagination limit */ @@ -195,22 +202,23 @@ public Builder limit(Optional limit) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceDocuseal build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } + return new SourceDocuseal( - apiKey, - limit, - startDate); + apiKey, limit, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = new LazySingletonValue<>( "limit", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDolibarr.java b/src/main/java/com/airbyte/api/models/shared/SourceDolibarr.java new file mode 100644 index 000000000..5613d6e7f --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceDolibarr.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; + + +public class SourceDolibarr { + + @JsonProperty("api_key") + private String apiKey; + + /** + * enter your "domain/dolibarr_url" without https:// Example: mydomain.com/dolibarr + */ + @JsonProperty("my_dolibarr_domain_url") + private String myDolibarrDomainUrl; + + + @JsonProperty("sourceType") + private Dolibarr sourceType; + + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceDolibarr( + @JsonProperty("api_key") String apiKey, + @JsonProperty("my_dolibarr_domain_url") String myDolibarrDomainUrl, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(myDolibarrDomainUrl, "myDolibarrDomainUrl"); + Utils.checkNotNull(startDate, "startDate"); + this.apiKey = apiKey; + this.myDolibarrDomainUrl = myDolibarrDomainUrl; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * enter your "domain/dolibarr_url" without https:// Example: mydomain.com/dolibarr + */ + @JsonIgnore + public String myDolibarrDomainUrl() { + return myDolibarrDomainUrl; + } + + @JsonIgnore + public Dolibarr sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public static Builder builder() { + return new Builder(); + } + + + public SourceDolibarr withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * enter your "domain/dolibarr_url" without https:// Example: mydomain.com/dolibarr + */ + public SourceDolibarr withMyDolibarrDomainUrl(String myDolibarrDomainUrl) { + Utils.checkNotNull(myDolibarrDomainUrl, "myDolibarrDomainUrl"); + this.myDolibarrDomainUrl = myDolibarrDomainUrl; + return this; + } + + public SourceDolibarr withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceDolibarr other = (SourceDolibarr) o; + return + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.myDolibarrDomainUrl, other.myDolibarrDomainUrl) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + apiKey, myDolibarrDomainUrl, sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceDolibarr.class, + "apiKey", apiKey, + "myDolibarrDomainUrl", myDolibarrDomainUrl, + "sourceType", sourceType, + "startDate", startDate); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String apiKey; + + private String myDolibarrDomainUrl; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + + /** + * enter your "domain/dolibarr_url" without https:// Example: mydomain.com/dolibarr + */ + public Builder myDolibarrDomainUrl(String myDolibarrDomainUrl) { + Utils.checkNotNull(myDolibarrDomainUrl, "myDolibarrDomainUrl"); + this.myDolibarrDomainUrl = myDolibarrDomainUrl; + return this; + } + + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceDolibarr build() { + + return new SourceDolibarr( + apiKey, myDolibarrDomainUrl, startDate); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"dolibarr\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDremio.java b/src/main/java/com/airbyte/api/models/shared/SourceDremio.java index 47c3b233c..67f50490e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDremio.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDremio.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceDremio { +public class SourceDremio { /** * API Key that is generated when you authenticate to Dremio API */ @@ -31,6 +30,7 @@ public class SourceDremio { @JsonProperty("base_url") private Optional baseUrl; + @JsonProperty("sourceType") private Dremio sourceType; @@ -71,9 +71,10 @@ public Dremio sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key that is generated when you authenticate to Dremio API @@ -93,6 +94,7 @@ public SourceDremio withBaseUrl(String baseUrl) { return this; } + /** * URL of your Dremio instance */ @@ -102,7 +104,6 @@ public SourceDremio withBaseUrl(Optional baseUrl) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,17 +114,15 @@ public boolean equals(java.lang.Object o) { } SourceDremio other = (SourceDremio) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - sourceType); + return Utils.enhancedHash( + apiKey, baseUrl, sourceType); } @Override @@ -133,17 +132,19 @@ public String toString() { "baseUrl", baseUrl, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional baseUrl; - + private Builder() { // force use of static builder() method } + /** * API Key that is generated when you authenticate to Dremio API */ @@ -153,6 +154,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * URL of your Dremio instance */ @@ -170,16 +172,17 @@ public Builder baseUrl(Optional baseUrl) { this.baseUrl = baseUrl; return this; } - + public SourceDremio build() { if (baseUrl == null) { baseUrl = _SINGLETON_VALUE_BaseUrl.value(); } + return new SourceDremio( - apiKey, - baseUrl); + apiKey, baseUrl); } + private static final LazySingletonValue> _SINGLETON_VALUE_BaseUrl = new LazySingletonValue<>( "base_url", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDrift.java b/src/main/java/com/airbyte/api/models/shared/SourceDrift.java index c9e89485e..4c0be5b0a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDrift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDrift.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceDrift { @JsonInclude(Include.NON_ABSENT) @@ -30,6 +30,7 @@ public class SourceDrift { @JsonProperty("email") private Optional email; + @JsonProperty("sourceType") private SourceDriftDrift sourceType; @@ -67,9 +68,10 @@ public SourceDriftDrift sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceDrift withCredentials(SourceDriftAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -77,6 +79,7 @@ public SourceDrift withCredentials(SourceDriftAuthorizationMethod credentials) { return this; } + public SourceDrift withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -92,6 +95,7 @@ public SourceDrift withEmail(String email) { return this; } + /** * Email used as parameter for contacts stream */ @@ -101,7 +105,6 @@ public SourceDrift withEmail(Optional email) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -112,17 +115,15 @@ public boolean equals(java.lang.Object o) { } SourceDrift other = (SourceDrift) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - credentials, - email, - sourceType); + return Utils.enhancedHash( + credentials, email, sourceType); } @Override @@ -132,17 +133,19 @@ public String toString() { "email", email, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Optional email; - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceDriftAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -155,6 +158,7 @@ public Builder credentials(Optional cr return this; } + /** * Email used as parameter for contacts stream */ @@ -172,16 +176,17 @@ public Builder email(Optional email) { this.email = email; return this; } - + public SourceDrift build() { if (email == null) { email = _SINGLETON_VALUE_Email.value(); } + return new SourceDrift( - credentials, - email); + credentials, email); } + private static final LazySingletonValue> _SINGLETON_VALUE_Email = new LazySingletonValue<>( "email", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDriftAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftAuthorizationMethod.java index c934c035a..591f88715 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceDriftAuthorizationMethod._Deserializer.class) public class SourceDriftAuthorizationMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceDriftAuthorizationMethod other = (SourceDriftAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java index d111a070f..4c9455c3e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftCredentials.java @@ -14,7 +14,7 @@ public enum SourceDriftCredentials { @JsonValue private final String value; - private SourceDriftCredentials(String value) { + SourceDriftCredentials(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDriftDrift.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftDrift.java index 2e9044b10..a7fa1ac0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftDrift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftDrift.java @@ -14,7 +14,7 @@ public enum SourceDriftDrift { @JsonValue private final String value; - private SourceDriftDrift(String value) { + SourceDriftDrift(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDriftOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftOAuth20.java index 2ccabb1f4..750b0e311 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftOAuth20.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceDriftOAuth20 { +public class SourceDriftOAuth20 { /** * Access Token for making authenticated requests. */ @@ -37,6 +36,7 @@ public class SourceDriftOAuth20 { @JsonProperty("client_secret") private String clientSecret; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; @@ -102,9 +102,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -142,7 +143,6 @@ public SourceDriftOAuth20 withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -153,21 +153,18 @@ public boolean equals(java.lang.Object o) { } SourceDriftOAuth20 other = (SourceDriftOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - accessToken, - clientId, - clientSecret, - credentials, - refreshToken); + return Utils.enhancedHash( + accessToken, clientId, clientSecret, + credentials, refreshToken); } @Override @@ -179,21 +176,23 @@ public String toString() { "credentials", credentials, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -203,6 +202,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Client ID of your Drift developer application. */ @@ -212,6 +212,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Drift developer application. */ @@ -221,6 +222,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Refresh Token to renew the expired Access Token. */ @@ -229,15 +231,15 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public SourceDriftOAuth20 build() { + return new SourceDriftOAuth20( - accessToken, - clientId, - clientSecret, + accessToken, clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_Credentials = new LazySingletonValue<>( "credentials", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java index 31113f535..583285d55 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDriftSchemasCredentials.java @@ -14,7 +14,7 @@ public enum SourceDriftSchemasCredentials { @JsonValue private final String value; - private SourceDriftSchemasCredentials(String value) { + SourceDriftSchemasCredentials(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDrip.java b/src/main/java/com/airbyte/api/models/shared/SourceDrip.java index a04e12f27..56c4979c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDrip.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDrip.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceDrip { +public class SourceDrip { /** * API key to use. Find it at https://www.getdrip.com/user/edit */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Drip sourceType; @@ -45,9 +45,10 @@ public Drip sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it at https://www.getdrip.com/user/edit @@ -58,7 +59,6 @@ public SourceDrip withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceDrip other = (SourceDrip) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it at https://www.getdrip.com/user/edit */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceDrip build() { + return new SourceDrip( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java b/src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java index aed3aad51..503e3e5a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDropboxSign.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceDropboxSign { +public class SourceDropboxSign { /** * API key to use. Find it at https://app.hellosign.com/home/myAccount#api */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private DropboxSign sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it at https://app.hellosign.com/home/myAccount#api @@ -76,7 +78,6 @@ public SourceDropboxSign withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceDropboxSign other = (SourceDropboxSign) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it at https://app.hellosign.com/home/myAccount#api */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceDropboxSign build() { + return new SourceDropboxSign( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDwolla.java b/src/main/java/com/airbyte/api/models/shared/SourceDwolla.java index 6479e4b40..fb8b1d95c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDwolla.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDwolla.java @@ -15,14 +15,15 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceDwolla { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; @@ -33,9 +34,11 @@ public class SourceDwolla { @JsonProperty("environment") private Optional environment; + @JsonProperty("sourceType") private Dwolla sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -60,7 +63,8 @@ public SourceDwolla( String clientId, String clientSecret, OffsetDateTime startDate) { - this(clientId, clientSecret, Optional.empty(), startDate); + this(clientId, clientSecret, Optional.empty(), + startDate); } @JsonIgnore @@ -92,9 +96,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceDwolla withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -117,6 +122,7 @@ public SourceDwolla withEnvironment(SourceDwollaEnvironment environment) { return this; } + /** * The environment for the Dwolla API, either 'api-sandbox' or 'api'. */ @@ -132,7 +138,6 @@ public SourceDwolla withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -143,21 +148,18 @@ public boolean equals(java.lang.Object o) { } SourceDwolla other = (SourceDwolla) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.environment, other.environment) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.environment, other.environment) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - environment, - sourceType, - startDate); + return Utils.enhancedHash( + clientId, clientSecret, environment, + sourceType, startDate); } @Override @@ -169,33 +171,37 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional environment; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** * The environment for the Dwolla API, either 'api-sandbox' or 'api'. */ @@ -214,23 +220,24 @@ public Builder environment(Optional environme return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceDwolla build() { if (environment == null) { environment = _SINGLETON_VALUE_Environment.value(); } + return new SourceDwolla( - clientId, - clientSecret, - environment, + clientId, clientSecret, environment, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Environment = new LazySingletonValue<>( "environment", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDwollaEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceDwollaEnvironment.java index 1fcd1d36d..b796c7091 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDwollaEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDwollaEnvironment.java @@ -20,7 +20,7 @@ public enum SourceDwollaEnvironment { @JsonValue private final String value; - private SourceDwollaEnvironment(String value) { + SourceDwollaEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodb.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodb.java index c22e7497e..5235667e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodb.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodb.java @@ -15,12 +15,11 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; -public class SourceDynamodb { +public class SourceDynamodb { /** * Credentials for the service */ @@ -56,6 +55,7 @@ public class SourceDynamodb { @JsonProperty("reserved_attribute_names") private Optional reservedAttributeNames; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceType") private Optional sourceType; @@ -81,7 +81,8 @@ public SourceDynamodb( } public SourceDynamodb() { - this(JsonNullable.undefined(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(JsonNullable.undefined(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -132,9 +133,10 @@ public Optional sourceType() { return (Optional) sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Credentials for the service @@ -163,6 +165,7 @@ public SourceDynamodb withEndpoint(String endpoint) { return this; } + /** * the URL of the Dynamodb database */ @@ -181,6 +184,7 @@ public SourceDynamodb withIgnoreMissingReadPermissionsTables(boolean ignoreMissi return this; } + /** * Ignore tables with missing scan/read permissions */ @@ -199,6 +203,7 @@ public SourceDynamodb withRegion(SourceDynamodbDynamodbRegion region) { return this; } + /** * The region of the Dynamodb database */ @@ -217,6 +222,7 @@ public SourceDynamodb withReservedAttributeNames(String reservedAttributeNames) return this; } + /** * Comma separated reserved attribute names present in your tables */ @@ -226,7 +232,6 @@ public SourceDynamodb withReservedAttributeNames(Optional reservedAttrib return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -237,23 +242,19 @@ public boolean equals(java.lang.Object o) { } SourceDynamodb other = (SourceDynamodb) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.endpoint, other.endpoint) && - Objects.deepEquals(this.ignoreMissingReadPermissionsTables, other.ignoreMissingReadPermissionsTables) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.reservedAttributeNames, other.reservedAttributeNames) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.endpoint, other.endpoint) && + Utils.enhancedDeepEquals(this.ignoreMissingReadPermissionsTables, other.ignoreMissingReadPermissionsTables) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.reservedAttributeNames, other.reservedAttributeNames) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - credentials, - endpoint, - ignoreMissingReadPermissionsTables, - region, - reservedAttributeNames, - sourceType); + return Utils.enhancedHash( + credentials, endpoint, ignoreMissingReadPermissionsTables, + region, reservedAttributeNames, sourceType); } @Override @@ -266,23 +267,25 @@ public String toString() { "reservedAttributeNames", reservedAttributeNames, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private JsonNullable credentials = JsonNullable.undefined(); - + private Optional endpoint; - + private Optional ignoreMissingReadPermissionsTables; - + private Optional region; - + private Optional reservedAttributeNames = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Credentials for the service */ @@ -301,6 +304,7 @@ public Builder credentials(JsonNullable cre return this; } + /** * the URL of the Dynamodb database */ @@ -319,6 +323,7 @@ public Builder endpoint(Optional endpoint) { return this; } + /** * Ignore tables with missing scan/read permissions */ @@ -337,6 +342,7 @@ public Builder ignoreMissingReadPermissionsTables(Optional ignoreMissin return this; } + /** * The region of the Dynamodb database */ @@ -355,6 +361,7 @@ public Builder region(Optional region) { return this; } + /** * Comma separated reserved attribute names present in your tables */ @@ -372,7 +379,7 @@ public Builder reservedAttributeNames(Optional reservedAttributeNames) { this.reservedAttributeNames = reservedAttributeNames; return this; } - + public SourceDynamodb build() { if (endpoint == null) { endpoint = _SINGLETON_VALUE_Endpoint.value(); @@ -383,14 +390,13 @@ public SourceDynamodb build() { if (region == null) { region = _SINGLETON_VALUE_Region.value(); } + return new SourceDynamodb( - credentials, - endpoint, - ignoreMissingReadPermissionsTables, - region, - reservedAttributeNames); + credentials, endpoint, ignoreMissingReadPermissionsTables, + region, reservedAttributeNames); } + private static final LazySingletonValue> _SINGLETON_VALUE_Endpoint = new LazySingletonValue<>( "endpoint", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java index 28cec7a12..56681ba51 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbAuthType.java @@ -14,7 +14,7 @@ public enum SourceDynamodbAuthType { @JsonValue private final String value; - private SourceDynamodbAuthType(String value) { + SourceDynamodbAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbCredentials.java index 88a126f06..082274586 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbCredentials.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceDynamodbCredentials @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceDynamodbCredentials other = (SourceDynamodbCredentials) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java index 352405adb..f80597d19 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodb.java @@ -14,7 +14,7 @@ public enum SourceDynamodbDynamodb { @JsonValue private final String value; - private SourceDynamodbDynamodb(String value) { + SourceDynamodbDynamodb(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java index 6c71c2a15..cb3f1aebe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbDynamodbRegion.java @@ -52,7 +52,7 @@ public enum SourceDynamodbDynamodbRegion { @JsonValue private final String value; - private SourceDynamodbDynamodbRegion(String value) { + SourceDynamodbDynamodbRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbSchemasAuthType.java index d85fd9d8d..01a0edb72 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceDynamodbSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceDynamodbSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceDynamodbSchemasAuthType { @JsonValue private final String value; - private SourceDynamodbSchemasAuthType(String value) { + SourceDynamodbSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEConomic.java b/src/main/java/com/airbyte/api/models/shared/SourceEConomic.java index 2ab10b9a5..9b1368345 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEConomic.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEConomic.java @@ -11,12 +11,12 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceEConomic { +public class SourceEConomic { /** - * Token that identifies the grant issued by an agreement, allowing your app to access data. Obtain it from your e-conomic account settings. + * Token that identifies the grant issued by an agreement, allowing your app to access data. Obtain it + * from your e-conomic account settings. */ @JsonProperty("agreement_grant_token") private String agreementGrantToken; @@ -27,6 +27,7 @@ public class SourceEConomic { @JsonProperty("app_secret_token") private String appSecretToken; + @JsonProperty("sourceType") private EConomic sourceType; @@ -42,7 +43,8 @@ public SourceEConomic( } /** - * Token that identifies the grant issued by an agreement, allowing your app to access data. Obtain it from your e-conomic account settings. + * Token that identifies the grant issued by an agreement, allowing your app to access data. Obtain it + * from your e-conomic account settings. */ @JsonIgnore public String agreementGrantToken() { @@ -62,12 +64,14 @@ public EConomic sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Token that identifies the grant issued by an agreement, allowing your app to access data. Obtain it from your e-conomic account settings. + * Token that identifies the grant issued by an agreement, allowing your app to access data. Obtain it + * from your e-conomic account settings. */ public SourceEConomic withAgreementGrantToken(String agreementGrantToken) { Utils.checkNotNull(agreementGrantToken, "agreementGrantToken"); @@ -84,7 +88,6 @@ public SourceEConomic withAppSecretToken(String appSecretToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +98,15 @@ public boolean equals(java.lang.Object o) { } SourceEConomic other = (SourceEConomic) o; return - Objects.deepEquals(this.agreementGrantToken, other.agreementGrantToken) && - Objects.deepEquals(this.appSecretToken, other.appSecretToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.agreementGrantToken, other.agreementGrantToken) && + Utils.enhancedDeepEquals(this.appSecretToken, other.appSecretToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - agreementGrantToken, - appSecretToken, - sourceType); + return Utils.enhancedHash( + agreementGrantToken, appSecretToken, sourceType); } @Override @@ -115,19 +116,22 @@ public String toString() { "appSecretToken", appSecretToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String agreementGrantToken; - + private String appSecretToken; - + private Builder() { // force use of static builder() method } + /** - * Token that identifies the grant issued by an agreement, allowing your app to access data. Obtain it from your e-conomic account settings. + * Token that identifies the grant issued by an agreement, allowing your app to access data. Obtain it + * from your e-conomic account settings. */ public Builder agreementGrantToken(String agreementGrantToken) { Utils.checkNotNull(agreementGrantToken, "agreementGrantToken"); @@ -135,6 +139,7 @@ public Builder agreementGrantToken(String agreementGrantToken) { return this; } + /** * Your private token that identifies your app. Find it in your e-conomic account settings. */ @@ -143,13 +148,14 @@ public Builder appSecretToken(String appSecretToken) { this.appSecretToken = appSecretToken; return this; } - + public SourceEConomic build() { + return new SourceEConomic( - agreementGrantToken, - appSecretToken); + agreementGrantToken, appSecretToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEasypost.java b/src/main/java/com/airbyte/api/models/shared/SourceEasypost.java index ec1a2b09a..5b5b9be2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEasypost.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEasypost.java @@ -12,13 +12,14 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceEasypost { @JsonProperty("sourceType") private Easypost sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceEasypost withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -76,7 +78,6 @@ public SourceEasypost withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceEasypost other = (SourceEasypost) o; return - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - sourceType, - startDate, - username); + return Utils.enhancedHash( + sourceType, startDate, username); } @Override @@ -107,23 +106,26 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private OffsetDateTime startDate; - + private String username; - + private Builder() { // force use of static builder() method } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * The API Key from your easypost settings */ @@ -132,13 +134,14 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceEasypost build() { + return new SourceEasypost( - startDate, - username); + startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEasypromos.java b/src/main/java/com/airbyte/api/models/shared/SourceEasypromos.java index d4080dcfe..3d355f540 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEasypromos.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEasypromos.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceEasypromos { @JsonProperty("bearer_token") private String bearerToken; + @JsonProperty("sourceType") private Easypromos sourceType; @@ -39,9 +40,10 @@ public Easypromos sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceEasypromos withBearerToken(String bearerToken) { Utils.checkNotNull(bearerToken, "bearerToken"); @@ -49,7 +51,6 @@ public SourceEasypromos withBearerToken(String bearerToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceEasypromos other = (SourceEasypromos) o; return - Objects.deepEquals(this.bearerToken, other.bearerToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.bearerToken, other.bearerToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - bearerToken, - sourceType); + return Utils.enhancedHash( + bearerToken, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "bearerToken", bearerToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String bearerToken; - + private Builder() { // force use of static builder() method } + public Builder bearerToken(String bearerToken) { Utils.checkNotNull(bearerToken, "bearerToken"); this.bearerToken = bearerToken; return this; } - + public SourceEasypromos build() { + return new SourceEasypromos( bearerToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEbayFinance.java b/src/main/java/com/airbyte/api/models/shared/SourceEbayFinance.java index 8854f4e1a..85efd067f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEbayFinance.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEbayFinance.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceEbayFinance { +public class SourceEbayFinance { /** * https://apiz.sandbox.ebay.com for sandbox & https://apiz.ebay.com for production */ @@ -34,18 +33,23 @@ public class SourceEbayFinance { @JsonProperty("password") private Optional password; + @JsonProperty("redirect_uri") private String redirectUri; + @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private EbayFinance sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("token_refresh_endpoint") private Optional tokenRefreshEndpoint; @@ -87,7 +91,9 @@ public SourceEbayFinance( String refreshToken, OffsetDateTime startDate, String username) { - this(Optional.empty(), Optional.empty(), redirectUri, refreshToken, startDate, Optional.empty(), username); + this(Optional.empty(), Optional.empty(), redirectUri, + refreshToken, startDate, Optional.empty(), + username); } /** @@ -141,9 +147,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * https://apiz.sandbox.ebay.com for sandbox & https://apiz.ebay.com for production @@ -154,6 +161,7 @@ public SourceEbayFinance withApiHost(APIHost apiHost) { return this; } + /** * https://apiz.sandbox.ebay.com for sandbox & https://apiz.ebay.com for production */ @@ -172,6 +180,7 @@ public SourceEbayFinance withPassword(String password) { return this; } + /** * Ebay Client Secret */ @@ -205,6 +214,7 @@ public SourceEbayFinance withTokenRefreshEndpoint(RefreshTokenEndpoint tokenRefr return this; } + public SourceEbayFinance withTokenRefreshEndpoint(Optional tokenRefreshEndpoint) { Utils.checkNotNull(tokenRefreshEndpoint, "tokenRefreshEndpoint"); this.tokenRefreshEndpoint = tokenRefreshEndpoint; @@ -220,7 +230,6 @@ public SourceEbayFinance withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -231,27 +240,22 @@ public boolean equals(java.lang.Object o) { } SourceEbayFinance other = (SourceEbayFinance) o; return - Objects.deepEquals(this.apiHost, other.apiHost) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.redirectUri, other.redirectUri) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.tokenRefreshEndpoint, other.tokenRefreshEndpoint) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.apiHost, other.apiHost) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.redirectUri, other.redirectUri) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.tokenRefreshEndpoint, other.tokenRefreshEndpoint) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - apiHost, - password, - redirectUri, - refreshToken, - sourceType, - startDate, - tokenRefreshEndpoint, - username); + return Utils.enhancedHash( + apiHost, password, redirectUri, + refreshToken, sourceType, startDate, + tokenRefreshEndpoint, username); } @Override @@ -266,27 +270,29 @@ public String toString() { "tokenRefreshEndpoint", tokenRefreshEndpoint, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiHost; - + private Optional password = Optional.empty(); - + private String redirectUri; - + private String refreshToken; - + private OffsetDateTime startDate; - + private Optional tokenRefreshEndpoint; - + private String username; - + private Builder() { // force use of static builder() method } + /** * https://apiz.sandbox.ebay.com for sandbox & https://apiz.ebay.com for production */ @@ -305,6 +311,7 @@ public Builder apiHost(Optional apiHost) { return this; } + /** * Ebay Client Secret */ @@ -323,24 +330,28 @@ public Builder password(Optional password) { return this; } + public Builder redirectUri(String redirectUri) { Utils.checkNotNull(redirectUri, "redirectUri"); this.redirectUri = redirectUri; return this; } + public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder tokenRefreshEndpoint(RefreshTokenEndpoint tokenRefreshEndpoint) { Utils.checkNotNull(tokenRefreshEndpoint, "tokenRefreshEndpoint"); this.tokenRefreshEndpoint = Optional.ofNullable(tokenRefreshEndpoint); @@ -353,6 +364,7 @@ public Builder tokenRefreshEndpoint(Optional tok return this; } + /** * Ebay Developer Client ID */ @@ -361,7 +373,7 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceEbayFinance build() { if (apiHost == null) { apiHost = _SINGLETON_VALUE_ApiHost.value(); @@ -369,16 +381,14 @@ public SourceEbayFinance build() { if (tokenRefreshEndpoint == null) { tokenRefreshEndpoint = _SINGLETON_VALUE_TokenRefreshEndpoint.value(); } + return new SourceEbayFinance( - apiHost, - password, - redirectUri, - refreshToken, - startDate, - tokenRefreshEndpoint, + apiHost, password, redirectUri, + refreshToken, startDate, tokenRefreshEndpoint, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiHost = new LazySingletonValue<>( "api_host", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillment.java b/src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillment.java new file mode 100644 index 000000000..0a67f392e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillment.java @@ -0,0 +1,352 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Optional; + + +public class SourceEbayFulfillment { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("api_host") + private Optional apiHost; + + + @JsonProperty("password") + private String password; + + + @JsonProperty("redirect_uri") + private String redirectUri; + + + @JsonProperty("refresh_token") + private String refreshToken; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("refresh_token_endpoint") + private Optional refreshTokenEndpoint; + + + @JsonProperty("sourceType") + private EbayFulfillment sourceType; + + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + + @JsonProperty("username") + private String username; + + @JsonCreator + public SourceEbayFulfillment( + @JsonProperty("api_host") Optional apiHost, + @JsonProperty("password") String password, + @JsonProperty("redirect_uri") String redirectUri, + @JsonProperty("refresh_token") String refreshToken, + @JsonProperty("refresh_token_endpoint") Optional refreshTokenEndpoint, + @JsonProperty("start_date") OffsetDateTime startDate, + @JsonProperty("username") String username) { + Utils.checkNotNull(apiHost, "apiHost"); + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(redirectUri, "redirectUri"); + Utils.checkNotNull(refreshToken, "refreshToken"); + Utils.checkNotNull(refreshTokenEndpoint, "refreshTokenEndpoint"); + Utils.checkNotNull(startDate, "startDate"); + Utils.checkNotNull(username, "username"); + this.apiHost = apiHost; + this.password = password; + this.redirectUri = redirectUri; + this.refreshToken = refreshToken; + this.refreshTokenEndpoint = refreshTokenEndpoint; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + this.username = username; + } + + public SourceEbayFulfillment( + String password, + String redirectUri, + String refreshToken, + OffsetDateTime startDate, + String username) { + this(Optional.empty(), password, redirectUri, + refreshToken, Optional.empty(), startDate, + username); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional apiHost() { + return (Optional) apiHost; + } + + @JsonIgnore + public String password() { + return password; + } + + @JsonIgnore + public String redirectUri() { + return redirectUri; + } + + @JsonIgnore + public String refreshToken() { + return refreshToken; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional refreshTokenEndpoint() { + return (Optional) refreshTokenEndpoint; + } + + @JsonIgnore + public EbayFulfillment sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + @JsonIgnore + public String username() { + return username; + } + + public static Builder builder() { + return new Builder(); + } + + + public SourceEbayFulfillment withApiHost(SourceEbayFulfillmentAPIHost apiHost) { + Utils.checkNotNull(apiHost, "apiHost"); + this.apiHost = Optional.ofNullable(apiHost); + return this; + } + + + public SourceEbayFulfillment withApiHost(Optional apiHost) { + Utils.checkNotNull(apiHost, "apiHost"); + this.apiHost = apiHost; + return this; + } + + public SourceEbayFulfillment withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public SourceEbayFulfillment withRedirectUri(String redirectUri) { + Utils.checkNotNull(redirectUri, "redirectUri"); + this.redirectUri = redirectUri; + return this; + } + + public SourceEbayFulfillment withRefreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; + return this; + } + + public SourceEbayFulfillment withRefreshTokenEndpoint(SourceEbayFulfillmentRefreshTokenEndpoint refreshTokenEndpoint) { + Utils.checkNotNull(refreshTokenEndpoint, "refreshTokenEndpoint"); + this.refreshTokenEndpoint = Optional.ofNullable(refreshTokenEndpoint); + return this; + } + + + public SourceEbayFulfillment withRefreshTokenEndpoint(Optional refreshTokenEndpoint) { + Utils.checkNotNull(refreshTokenEndpoint, "refreshTokenEndpoint"); + this.refreshTokenEndpoint = refreshTokenEndpoint; + return this; + } + + public SourceEbayFulfillment withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceEbayFulfillment withUsername(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceEbayFulfillment other = (SourceEbayFulfillment) o; + return + Utils.enhancedDeepEquals(this.apiHost, other.apiHost) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.redirectUri, other.redirectUri) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.refreshTokenEndpoint, other.refreshTokenEndpoint) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + apiHost, password, redirectUri, + refreshToken, refreshTokenEndpoint, sourceType, + startDate, username); + } + + @Override + public String toString() { + return Utils.toString(SourceEbayFulfillment.class, + "apiHost", apiHost, + "password", password, + "redirectUri", redirectUri, + "refreshToken", refreshToken, + "refreshTokenEndpoint", refreshTokenEndpoint, + "sourceType", sourceType, + "startDate", startDate, + "username", username); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional apiHost; + + private String password; + + private String redirectUri; + + private String refreshToken; + + private Optional refreshTokenEndpoint; + + private OffsetDateTime startDate; + + private String username; + + private Builder() { + // force use of static builder() method + } + + + public Builder apiHost(SourceEbayFulfillmentAPIHost apiHost) { + Utils.checkNotNull(apiHost, "apiHost"); + this.apiHost = Optional.ofNullable(apiHost); + return this; + } + + public Builder apiHost(Optional apiHost) { + Utils.checkNotNull(apiHost, "apiHost"); + this.apiHost = apiHost; + return this; + } + + + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + + public Builder redirectUri(String redirectUri) { + Utils.checkNotNull(redirectUri, "redirectUri"); + this.redirectUri = redirectUri; + return this; + } + + + public Builder refreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; + return this; + } + + + public Builder refreshTokenEndpoint(SourceEbayFulfillmentRefreshTokenEndpoint refreshTokenEndpoint) { + Utils.checkNotNull(refreshTokenEndpoint, "refreshTokenEndpoint"); + this.refreshTokenEndpoint = Optional.ofNullable(refreshTokenEndpoint); + return this; + } + + public Builder refreshTokenEndpoint(Optional refreshTokenEndpoint) { + Utils.checkNotNull(refreshTokenEndpoint, "refreshTokenEndpoint"); + this.refreshTokenEndpoint = refreshTokenEndpoint; + return this; + } + + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public SourceEbayFulfillment build() { + if (apiHost == null) { + apiHost = _SINGLETON_VALUE_ApiHost.value(); + } + if (refreshTokenEndpoint == null) { + refreshTokenEndpoint = _SINGLETON_VALUE_RefreshTokenEndpoint.value(); + } + + return new SourceEbayFulfillment( + apiHost, password, redirectUri, + refreshToken, refreshTokenEndpoint, startDate, + username); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_ApiHost = + new LazySingletonValue<>( + "api_host", + "\"https://api.ebay.com\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_RefreshTokenEndpoint = + new LazySingletonValue<>( + "refresh_token_endpoint", + "\"https://api.ebay.com/identity/v1/oauth2/token\"", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"ebay-fulfillment\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillmentAPIHost.java b/src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillmentAPIHost.java new file mode 100644 index 000000000..0265f4ef5 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillmentAPIHost.java @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceEbayFulfillmentAPIHost { + HTTPS_API_EBAY_COM("https://api.ebay.com"), + HTTPS_API_SANDBOX_EBAY_COM("https://api.sandbox.ebay.com"); + + @JsonValue + private final String value; + + SourceEbayFulfillmentAPIHost(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceEbayFulfillmentAPIHost o: SourceEbayFulfillmentAPIHost.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillmentRefreshTokenEndpoint.java b/src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillmentRefreshTokenEndpoint.java new file mode 100644 index 000000000..cda7c9e19 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceEbayFulfillmentRefreshTokenEndpoint.java @@ -0,0 +1,35 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceEbayFulfillmentRefreshTokenEndpoint { + HTTPS_API_EBAY_COM_IDENTITY_V1_OAUTH2_TOKEN("https://api.ebay.com/identity/v1/oauth2/token"), + HTTPS_API_SANDBOX_EBAY_COM_IDENTITY_V1_OAUTH2_TOKEN("https://api.sandbox.ebay.com/identity/v1/oauth2/token"); + + @JsonValue + private final String value; + + SourceEbayFulfillmentRefreshTokenEndpoint(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceEbayFulfillmentRefreshTokenEndpoint o: SourceEbayFulfillmentRefreshTokenEndpoint.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticemail.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticemail.java index 2380234c6..af4fc74e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceElasticemail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticemail.java @@ -15,25 +15,29 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceElasticemail { @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("from") private Optional from; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("scope_type") private Optional scopeType; + @JsonProperty("sourceType") private Elasticemail sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,7 +61,8 @@ public SourceElasticemail( public SourceElasticemail( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), startDate); + this(apiKey, Optional.empty(), Optional.empty(), + startDate); } @JsonIgnore @@ -86,9 +91,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceElasticemail withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -102,6 +108,7 @@ public SourceElasticemail withFrom(OffsetDateTime from) { return this; } + public SourceElasticemail withFrom(Optional from) { Utils.checkNotNull(from, "from"); this.from = from; @@ -114,6 +121,7 @@ public SourceElasticemail withScopeType(ScopeType scopeType) { return this; } + public SourceElasticemail withScopeType(Optional scopeType) { Utils.checkNotNull(scopeType, "scopeType"); this.scopeType = scopeType; @@ -126,7 +134,6 @@ public SourceElasticemail withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,21 +144,18 @@ public boolean equals(java.lang.Object o) { } SourceElasticemail other = (SourceElasticemail) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.from, other.from) && - Objects.deepEquals(this.scopeType, other.scopeType) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.from, other.from) && + Utils.enhancedDeepEquals(this.scopeType, other.scopeType) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - from, - scopeType, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, from, scopeType, + sourceType, startDate); } @Override @@ -163,27 +167,30 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional from = Optional.empty(); - + private Optional scopeType = Optional.empty(); - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder from(OffsetDateTime from) { Utils.checkNotNull(from, "from"); this.from = Optional.ofNullable(from); @@ -196,6 +203,7 @@ public Builder from(Optional from) { return this; } + public Builder scopeType(ScopeType scopeType) { Utils.checkNotNull(scopeType, "scopeType"); this.scopeType = Optional.ofNullable(scopeType); @@ -208,20 +216,21 @@ public Builder scopeType(Optional scopeType) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceElasticemail build() { + return new SourceElasticemail( - apiKey, - from, - scopeType, + apiKey, from, scopeType, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticsearch.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearch.java new file mode 100644 index 000000000..08e8dd4c8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearch.java @@ -0,0 +1,191 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class SourceElasticsearch { + /** + * The type of authentication to be used + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("authenticationMethod") + private Optional authenticationMethod; + + /** + * The full url of the Elasticsearch server + */ + @JsonProperty("endpoint") + private String endpoint; + + + @JsonProperty("sourceType") + private SourceElasticsearchElasticsearch sourceType; + + @JsonCreator + public SourceElasticsearch( + @JsonProperty("authenticationMethod") Optional authenticationMethod, + @JsonProperty("endpoint") String endpoint) { + Utils.checkNotNull(authenticationMethod, "authenticationMethod"); + Utils.checkNotNull(endpoint, "endpoint"); + this.authenticationMethod = authenticationMethod; + this.endpoint = endpoint; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + public SourceElasticsearch( + String endpoint) { + this(Optional.empty(), endpoint); + } + + /** + * The type of authentication to be used + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional authenticationMethod() { + return (Optional) authenticationMethod; + } + + /** + * The full url of the Elasticsearch server + */ + @JsonIgnore + public String endpoint() { + return endpoint; + } + + @JsonIgnore + public SourceElasticsearchElasticsearch sourceType() { + return sourceType; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The type of authentication to be used + */ + public SourceElasticsearch withAuthenticationMethod(SourceElasticsearchAuthenticationMethod authenticationMethod) { + Utils.checkNotNull(authenticationMethod, "authenticationMethod"); + this.authenticationMethod = Optional.ofNullable(authenticationMethod); + return this; + } + + + /** + * The type of authentication to be used + */ + public SourceElasticsearch withAuthenticationMethod(Optional authenticationMethod) { + Utils.checkNotNull(authenticationMethod, "authenticationMethod"); + this.authenticationMethod = authenticationMethod; + return this; + } + + /** + * The full url of the Elasticsearch server + */ + public SourceElasticsearch withEndpoint(String endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = endpoint; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceElasticsearch other = (SourceElasticsearch) o; + return + Utils.enhancedDeepEquals(this.authenticationMethod, other.authenticationMethod) && + Utils.enhancedDeepEquals(this.endpoint, other.endpoint) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + authenticationMethod, endpoint, sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceElasticsearch.class, + "authenticationMethod", authenticationMethod, + "endpoint", endpoint, + "sourceType", sourceType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional authenticationMethod = Optional.empty(); + + private String endpoint; + + private Builder() { + // force use of static builder() method + } + + + /** + * The type of authentication to be used + */ + public Builder authenticationMethod(SourceElasticsearchAuthenticationMethod authenticationMethod) { + Utils.checkNotNull(authenticationMethod, "authenticationMethod"); + this.authenticationMethod = Optional.ofNullable(authenticationMethod); + return this; + } + + /** + * The type of authentication to be used + */ + public Builder authenticationMethod(Optional authenticationMethod) { + Utils.checkNotNull(authenticationMethod, "authenticationMethod"); + this.authenticationMethod = authenticationMethod; + return this; + } + + + /** + * The full url of the Elasticsearch server + */ + public Builder endpoint(String endpoint) { + Utils.checkNotNull(endpoint, "endpoint"); + this.endpoint = endpoint; + return this; + } + + public SourceElasticsearch build() { + + return new SourceElasticsearch( + authenticationMethod, endpoint); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"elasticsearch\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchApiKeySecret.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchApiKeySecret.java new file mode 100644 index 000000000..51bdfeeb7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchApiKeySecret.java @@ -0,0 +1,215 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; + +/** + * SourceElasticsearchApiKeySecret + * + *

    Use a api key and secret combination to authenticate + */ +public class SourceElasticsearchApiKeySecret { + + @JsonIgnore + private Map additionalProperties; + + /** + * The Key ID to used when accessing an enterprise Elasticsearch instance. + */ + @JsonProperty("apiKeyId") + private String apiKeyId; + + /** + * The secret associated with the API Key ID. + */ + @JsonProperty("apiKeySecret") + private String apiKeySecret; + + + @JsonProperty("method") + private SourceElasticsearchSchemasMethod method; + + @JsonCreator + public SourceElasticsearchApiKeySecret( + @JsonProperty("apiKeyId") String apiKeyId, + @JsonProperty("apiKeySecret") String apiKeySecret) { + Utils.checkNotNull(apiKeyId, "apiKeyId"); + Utils.checkNotNull(apiKeySecret, "apiKeySecret"); + this.additionalProperties = new HashMap<>(); + this.apiKeyId = apiKeyId; + this.apiKeySecret = apiKeySecret; + this.method = Builder._SINGLETON_VALUE_Method.value(); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + /** + * The Key ID to used when accessing an enterprise Elasticsearch instance. + */ + @JsonIgnore + public String apiKeyId() { + return apiKeyId; + } + + /** + * The secret associated with the API Key ID. + */ + @JsonIgnore + public String apiKeySecret() { + return apiKeySecret; + } + + @JsonIgnore + public SourceElasticsearchSchemasMethod method() { + return method; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public SourceElasticsearchApiKeySecret withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public SourceElasticsearchApiKeySecret withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * The Key ID to used when accessing an enterprise Elasticsearch instance. + */ + public SourceElasticsearchApiKeySecret withApiKeyId(String apiKeyId) { + Utils.checkNotNull(apiKeyId, "apiKeyId"); + this.apiKeyId = apiKeyId; + return this; + } + + /** + * The secret associated with the API Key ID. + */ + public SourceElasticsearchApiKeySecret withApiKeySecret(String apiKeySecret) { + Utils.checkNotNull(apiKeySecret, "apiKeySecret"); + this.apiKeySecret = apiKeySecret; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceElasticsearchApiKeySecret other = (SourceElasticsearchApiKeySecret) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.apiKeyId, other.apiKeyId) && + Utils.enhancedDeepEquals(this.apiKeySecret, other.apiKeySecret) && + Utils.enhancedDeepEquals(this.method, other.method); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, apiKeyId, apiKeySecret, + method); + } + + @Override + public String toString() { + return Utils.toString(SourceElasticsearchApiKeySecret.class, + "additionalProperties", additionalProperties, + "apiKeyId", apiKeyId, + "apiKeySecret", apiKeySecret, + "method", method); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private String apiKeyId; + + private String apiKeySecret; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + /** + * The Key ID to used when accessing an enterprise Elasticsearch instance. + */ + public Builder apiKeyId(String apiKeyId) { + Utils.checkNotNull(apiKeyId, "apiKeyId"); + this.apiKeyId = apiKeyId; + return this; + } + + + /** + * The secret associated with the API Key ID. + */ + public Builder apiKeySecret(String apiKeySecret) { + Utils.checkNotNull(apiKeySecret, "apiKeySecret"); + this.apiKeySecret = apiKeySecret; + return this; + } + + public SourceElasticsearchApiKeySecret build() { + + return new SourceElasticsearchApiKeySecret( + apiKeyId, apiKeySecret) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_Method = + new LazySingletonValue<>( + "method", + "\"secret\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchAuthenticationMethod.java new file mode 100644 index 000000000..11e83c0ba --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchAuthenticationMethod.java @@ -0,0 +1,106 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +/** + * SourceElasticsearchAuthenticationMethod + * + *

    The type of authentication to be used + */ +@JsonDeserialize(using = SourceElasticsearchAuthenticationMethod._Deserializer.class) +public class SourceElasticsearchAuthenticationMethod { + + @JsonValue + private TypedObject value; + + private SourceElasticsearchAuthenticationMethod(TypedObject value) { + this.value = value; + } + + public static SourceElasticsearchAuthenticationMethod of(SourceElasticsearchNone value) { + Utils.checkNotNull(value, "value"); + return new SourceElasticsearchAuthenticationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceElasticsearchAuthenticationMethod of(SourceElasticsearchApiKeySecret value) { + Utils.checkNotNull(value, "value"); + return new SourceElasticsearchAuthenticationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceElasticsearchAuthenticationMethod of(SourceElasticsearchUsernamePassword value) { + Utils.checkNotNull(value, "value"); + return new SourceElasticsearchAuthenticationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.SourceElasticsearchNone}
    • + *
    • {@code com.airbyte.api.models.shared.SourceElasticsearchApiKeySecret}
    • + *
    • {@code com.airbyte.api.models.shared.SourceElasticsearchUsernamePassword}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceElasticsearchAuthenticationMethod other = (SourceElasticsearchAuthenticationMethod) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(SourceElasticsearchAuthenticationMethod.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceElasticsearchAuthenticationMethod.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchElasticsearch.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchElasticsearch.java new file mode 100644 index 000000000..7bc9bf0db --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchElasticsearch.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceElasticsearchElasticsearch { + ELASTICSEARCH("elasticsearch"); + + @JsonValue + private final String value; + + SourceElasticsearchElasticsearch(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceElasticsearchElasticsearch o: SourceElasticsearchElasticsearch.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchMethod.java new file mode 100644 index 000000000..cf89c24f4 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchMethod.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceElasticsearchMethod { + NONE("none"); + + @JsonValue + private final String value; + + SourceElasticsearchMethod(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceElasticsearchMethod o: SourceElasticsearchMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchNone.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchNone.java new file mode 100644 index 000000000..887217513 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchNone.java @@ -0,0 +1,134 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; + +/** + * SourceElasticsearchNone + * + *

    No authentication will be used + */ +public class SourceElasticsearchNone { + + @JsonIgnore + private Map additionalProperties; + + + @JsonProperty("method") + private SourceElasticsearchMethod method; + + @JsonCreator + public SourceElasticsearchNone() { + this.additionalProperties = new HashMap<>(); + this.method = Builder._SINGLETON_VALUE_Method.value(); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @JsonIgnore + public SourceElasticsearchMethod method() { + return method; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public SourceElasticsearchNone withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public SourceElasticsearchNone withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceElasticsearchNone other = (SourceElasticsearchNone) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.method, other.method); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, method); + } + + @Override + public String toString() { + return Utils.toString(SourceElasticsearchNone.class, + "additionalProperties", additionalProperties, + "method", method); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public SourceElasticsearchNone build() { + + return new SourceElasticsearchNone( + ) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_Method = + new LazySingletonValue<>( + "method", + "\"none\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchSchemasAuthenticationMethodMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchSchemasAuthenticationMethodMethod.java new file mode 100644 index 000000000..b92441ca7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchSchemasAuthenticationMethodMethod.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceElasticsearchSchemasAuthenticationMethodMethod { + BASIC("basic"); + + @JsonValue + private final String value; + + SourceElasticsearchSchemasAuthenticationMethodMethod(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceElasticsearchSchemasAuthenticationMethodMethod o: SourceElasticsearchSchemasAuthenticationMethodMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchSchemasMethod.java new file mode 100644 index 000000000..b82a0cd51 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchSchemasMethod.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceElasticsearchSchemasMethod { + SECRET("secret"); + + @JsonValue + private final String value; + + SourceElasticsearchSchemasMethod(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceElasticsearchSchemasMethod o: SourceElasticsearchSchemasMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchUsernamePassword.java b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchUsernamePassword.java new file mode 100644 index 000000000..7cfade156 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceElasticsearchUsernamePassword.java @@ -0,0 +1,215 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; + +/** + * SourceElasticsearchUsernamePassword + * + *

    Basic auth header with a username and password + */ +public class SourceElasticsearchUsernamePassword { + + @JsonIgnore + private Map additionalProperties; + + + @JsonProperty("method") + private SourceElasticsearchSchemasAuthenticationMethodMethod method; + + /** + * Basic auth password to access a secure Elasticsearch server + */ + @JsonProperty("password") + private String password; + + /** + * Basic auth username to access a secure Elasticsearch server + */ + @JsonProperty("username") + private String username; + + @JsonCreator + public SourceElasticsearchUsernamePassword( + @JsonProperty("password") String password, + @JsonProperty("username") String username) { + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(username, "username"); + this.additionalProperties = new HashMap<>(); + this.method = Builder._SINGLETON_VALUE_Method.value(); + this.password = password; + this.username = username; + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @JsonIgnore + public SourceElasticsearchSchemasAuthenticationMethodMethod method() { + return method; + } + + /** + * Basic auth password to access a secure Elasticsearch server + */ + @JsonIgnore + public String password() { + return password; + } + + /** + * Basic auth username to access a secure Elasticsearch server + */ + @JsonIgnore + public String username() { + return username; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public SourceElasticsearchUsernamePassword withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public SourceElasticsearchUsernamePassword withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Basic auth password to access a secure Elasticsearch server + */ + public SourceElasticsearchUsernamePassword withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + /** + * Basic auth username to access a secure Elasticsearch server + */ + public SourceElasticsearchUsernamePassword withUsername(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceElasticsearchUsernamePassword other = (SourceElasticsearchUsernamePassword) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.method, other.method) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, method, password, + username); + } + + @Override + public String toString() { + return Utils.toString(SourceElasticsearchUsernamePassword.class, + "additionalProperties", additionalProperties, + "method", method, + "password", password, + "username", username); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private String password; + + private String username; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + /** + * Basic auth password to access a secure Elasticsearch server + */ + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + + /** + * Basic auth username to access a secure Elasticsearch server + */ + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public SourceElasticsearchUsernamePassword build() { + + return new SourceElasticsearchUsernamePassword( + password, username) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_Method = + new LazySingletonValue<>( + "method", + "\"basic\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEmailoctopus.java b/src/main/java/com/airbyte/api/models/shared/SourceEmailoctopus.java index b902ef548..e65e4f090 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEmailoctopus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEmailoctopus.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceEmailoctopus { +public class SourceEmailoctopus { /** - * EmailOctopus API Key. See the <a href="https://help.emailoctopus.com/article/165-how-to-create-and-delete-api-keys">docs</a> for information on how to generate this key. + * EmailOctopus API Key. See the docs for + * information on how to generate this key. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Emailoctopus sourceType; @@ -33,7 +35,9 @@ public SourceEmailoctopus( } /** - * EmailOctopus API Key. See the <a href="https://help.emailoctopus.com/article/165-how-to-create-and-delete-api-keys">docs</a> for information on how to generate this key. + * EmailOctopus API Key. See the docs for + * information on how to generate this key. */ @JsonIgnore public String apiKey() { @@ -45,12 +49,15 @@ public Emailoctopus sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * EmailOctopus API Key. See the <a href="https://help.emailoctopus.com/article/165-how-to-create-and-delete-api-keys">docs</a> for information on how to generate this key. + * EmailOctopus API Key. See the docs for + * information on how to generate this key. */ public SourceEmailoctopus withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +65,6 @@ public SourceEmailoctopus withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +75,14 @@ public boolean equals(java.lang.Object o) { } SourceEmailoctopus other = (SourceEmailoctopus) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +91,35 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * EmailOctopus API Key. See the <a href="https://help.emailoctopus.com/article/165-how-to-create-and-delete-api-keys">docs</a> for information on how to generate this key. + * EmailOctopus API Key. See the docs for + * information on how to generate this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceEmailoctopus build() { + return new SourceEmailoctopus( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEmploymentHero.java b/src/main/java/com/airbyte/api/models/shared/SourceEmploymentHero.java index 3d34bdd96..4c50ad48a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEmploymentHero.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEmploymentHero.java @@ -16,9 +16,9 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceEmploymentHero { @JsonProperty("api_key") @@ -32,12 +32,14 @@ public class SourceEmploymentHero { private Optional> employeesConfigids; /** - * Organization ID which could be found as result of `organizations` stream to be used in other substreams + * Organization ID which could be found as result of `organizations` stream to be used in other + * substreams */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("organization_configids") private Optional> organizationConfigids; + @JsonProperty("sourceType") private EmploymentHero sourceType; @@ -75,7 +77,8 @@ public Optional> employeesConfigids() { } /** - * Organization ID which could be found as result of `organizations` stream to be used in other substreams + * Organization ID which could be found as result of `organizations` stream to be used in other + * substreams */ @SuppressWarnings("unchecked") @JsonIgnore @@ -88,9 +91,10 @@ public EmploymentHero sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceEmploymentHero withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -107,6 +111,7 @@ public SourceEmploymentHero withEmployeesConfigids(List employeesConfigi return this; } + /** * Employees IDs in the given organisation found in `employees` stream for passing to sub-streams */ @@ -117,7 +122,8 @@ public SourceEmploymentHero withEmployeesConfigids(Optional organizationConfigids) { Utils.checkNotNull(organizationConfigids, "organizationConfigids"); @@ -125,8 +131,10 @@ public SourceEmploymentHero withOrganizationConfigids(List organizationC return this; } + /** - * Organization ID which could be found as result of `organizations` stream to be used in other substreams + * Organization ID which could be found as result of `organizations` stream to be used in other + * substreams */ public SourceEmploymentHero withOrganizationConfigids(Optional> organizationConfigids) { Utils.checkNotNull(organizationConfigids, "organizationConfigids"); @@ -134,7 +142,6 @@ public SourceEmploymentHero withOrganizationConfigids(Optional> employeesConfigids = Optional.empty(); - + private Optional> organizationConfigids = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Employees IDs in the given organisation found in `employees` stream for passing to sub-streams */ @@ -205,8 +213,10 @@ public Builder employeesConfigids(Optional> employeesConf return this; } + /** - * Organization ID which could be found as result of `organizations` stream to be used in other substreams + * Organization ID which could be found as result of `organizations` stream to be used in other + * substreams */ public Builder organizationConfigids(List organizationConfigids) { Utils.checkNotNull(organizationConfigids, "organizationConfigids"); @@ -215,21 +225,22 @@ public Builder organizationConfigids(List organizationConfigids) { } /** - * Organization ID which could be found as result of `organizations` stream to be used in other substreams + * Organization ID which could be found as result of `organizations` stream to be used in other + * substreams */ public Builder organizationConfigids(Optional> organizationConfigids) { Utils.checkNotNull(organizationConfigids, "organizationConfigids"); this.organizationConfigids = organizationConfigids; return this; } - + public SourceEmploymentHero build() { + return new SourceEmploymentHero( - apiKey, - employeesConfigids, - organizationConfigids); + apiKey, employeesConfigids, organizationConfigids); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEncharge.java b/src/main/java/com/airbyte/api/models/shared/SourceEncharge.java index c21669a04..3989bc131 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEncharge.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEncharge.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceEncharge { +public class SourceEncharge { /** * The API key to use for authentication */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Encharge sourceType; @@ -45,9 +45,10 @@ public Encharge sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API key to use for authentication @@ -58,7 +59,6 @@ public SourceEncharge withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceEncharge other = (SourceEncharge) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * The API key to use for authentication */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceEncharge build() { + return new SourceEncharge( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java b/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java index 442e9c88d..d7ff9875f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEventbrite.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceEventbrite { +public class SourceEventbrite { /** * The private token to use for authenticating API requests. */ @JsonProperty("private_token") private String privateToken; + @JsonProperty("sourceType") private Eventbrite sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The private token to use for authenticating API requests. @@ -76,7 +78,6 @@ public SourceEventbrite withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceEventbrite other = (SourceEventbrite) o; return - Objects.deepEquals(this.privateToken, other.privateToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.privateToken, other.privateToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - privateToken, - sourceType, - startDate); + return Utils.enhancedHash( + privateToken, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String privateToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * The private token to use for authenticating API requests. */ @@ -127,18 +128,20 @@ public Builder privateToken(String privateToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceEventbrite build() { + return new SourceEventbrite( - privateToken, - startDate); + privateToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEventee.java b/src/main/java/com/airbyte/api/models/shared/SourceEventee.java index 6c01b1629..b0bf201c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEventee.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEventee.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceEventee { +public class SourceEventee { /** * API token to use. Generate it at https://admin.eventee.co/ in 'Settings -> Features'. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Eventee sourceType; @@ -45,9 +45,10 @@ public Eventee sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API token to use. Generate it at https://admin.eventee.co/ in 'Settings -> Features'. @@ -58,7 +59,6 @@ public SourceEventee withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceEventee other = (SourceEventee) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * API token to use. Generate it at https://admin.eventee.co/ in 'Settings -> Features'. */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public SourceEventee build() { + return new SourceEventee( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEventzilla.java b/src/main/java/com/airbyte/api/models/shared/SourceEventzilla.java index 04317d308..85a3722f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEventzilla.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEventzilla.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceEventzilla { @@ -19,7 +19,8 @@ public class SourceEventzilla { private Eventzilla sourceType; /** - * API key to use. Generate it by creating a new application within your Eventzilla account settings under Settings > App Management. + * API key to use. Generate it by creating a new application within your Eventzilla account settings + * under Settings > App Management. */ @JsonProperty("x-api-key") private String xApiKey; @@ -38,19 +39,22 @@ public Eventzilla sourceType() { } /** - * API key to use. Generate it by creating a new application within your Eventzilla account settings under Settings > App Management. + * API key to use. Generate it by creating a new application within your Eventzilla account settings + * under Settings > App Management. */ @JsonIgnore public String xApiKey() { return xApiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key to use. Generate it by creating a new application within your Eventzilla account settings under Settings > App Management. + * API key to use. Generate it by creating a new application within your Eventzilla account settings + * under Settings > App Management. */ public SourceEventzilla withXApiKey(String xApiKey) { Utils.checkNotNull(xApiKey, "xApiKey"); @@ -58,7 +62,6 @@ public SourceEventzilla withXApiKey(String xApiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceEventzilla other = (SourceEventzilla) o; return - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.xApiKey, other.xApiKey); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.xApiKey, other.xApiKey); } @Override public int hashCode() { - return Objects.hash( - sourceType, - xApiKey); + return Utils.enhancedHash( + sourceType, xApiKey); } @Override @@ -86,29 +88,34 @@ public String toString() { "sourceType", sourceType, "xApiKey", xApiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String xApiKey; - + private Builder() { // force use of static builder() method } + /** - * API key to use. Generate it by creating a new application within your Eventzilla account settings under Settings > App Management. + * API key to use. Generate it by creating a new application within your Eventzilla account settings + * under Settings > App Management. */ public Builder xApiKey(String xApiKey) { Utils.checkNotNull(xApiKey, "xApiKey"); this.xApiKey = xApiKey; return this; } - + public SourceEventzilla build() { + return new SourceEventzilla( xApiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEverhour.java b/src/main/java/com/airbyte/api/models/shared/SourceEverhour.java index 8759e4179..e3e67ab49 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEverhour.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEverhour.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceEverhour { +public class SourceEverhour { /** - * Everhour API Key. See the <a href="https://everhour.docs.apiary.io/#introduction/authentication">docs</a> for information on how to generate this key. + * Everhour API Key. See the docs for information on how + * to generate this key. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Everhour sourceType; @@ -33,7 +35,9 @@ public SourceEverhour( } /** - * Everhour API Key. See the <a href="https://everhour.docs.apiary.io/#introduction/authentication">docs</a> for information on how to generate this key. + * Everhour API Key. See the docs for information on how + * to generate this key. */ @JsonIgnore public String apiKey() { @@ -45,12 +49,15 @@ public Everhour sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Everhour API Key. See the <a href="https://everhour.docs.apiary.io/#introduction/authentication">docs</a> for information on how to generate this key. + * Everhour API Key. See the docs for information on how + * to generate this key. */ public SourceEverhour withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +65,6 @@ public SourceEverhour withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +75,14 @@ public boolean equals(java.lang.Object o) { } SourceEverhour other = (SourceEverhour) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +91,35 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * Everhour API Key. See the <a href="https://everhour.docs.apiary.io/#introduction/authentication">docs</a> for information on how to generate this key. + * Everhour API Key. See the docs for information on how + * to generate this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceEverhour build() { + return new SourceEverhour( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java b/src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java index 667d6b1fe..8eadc438b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceExchangeRates.java @@ -15,19 +15,21 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourceExchangeRates { +public class SourceExchangeRates { /** - * Your API Key. See <a href="https://apilayer.com/marketplace/exchangerates_data-api">here</a>. The key is case sensitive. + * Your API Key. See here. The + * key is case sensitive. */ @JsonProperty("access_key") private String accessKey; /** - * ISO reference currency. See <a href="https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html">here</a>. Free plan doesn't support Source Currency Switching, default base currency is EUR + * ISO reference currency. See here. + * Free plan doesn't support Source Currency Switching, default base currency is EUR */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("base") @@ -40,6 +42,7 @@ public class SourceExchangeRates { @JsonProperty("ignore_weekends") private Optional ignoreWeekends; + @JsonProperty("sourceType") private ExchangeRates sourceType; @@ -69,11 +72,13 @@ public SourceExchangeRates( public SourceExchangeRates( String accessKey, LocalDate startDate) { - this(accessKey, Optional.empty(), Optional.empty(), startDate); + this(accessKey, Optional.empty(), Optional.empty(), + startDate); } /** - * Your API Key. See <a href="https://apilayer.com/marketplace/exchangerates_data-api">here</a>. The key is case sensitive. + * Your API Key. See here. The + * key is case sensitive. */ @JsonIgnore public String accessKey() { @@ -81,7 +86,9 @@ public String accessKey() { } /** - * ISO reference currency. See <a href="https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html">here</a>. Free plan doesn't support Source Currency Switching, default base currency is EUR + * ISO reference currency. See here. + * Free plan doesn't support Source Currency Switching, default base currency is EUR */ @JsonIgnore public Optional base() { @@ -109,12 +116,14 @@ public LocalDate startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Key. See <a href="https://apilayer.com/marketplace/exchangerates_data-api">here</a>. The key is case sensitive. + * Your API Key. See here. The + * key is case sensitive. */ public SourceExchangeRates withAccessKey(String accessKey) { Utils.checkNotNull(accessKey, "accessKey"); @@ -123,7 +132,9 @@ public SourceExchangeRates withAccessKey(String accessKey) { } /** - * ISO reference currency. See <a href="https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html">here</a>. Free plan doesn't support Source Currency Switching, default base currency is EUR + * ISO reference currency. See here. + * Free plan doesn't support Source Currency Switching, default base currency is EUR */ public SourceExchangeRates withBase(String base) { Utils.checkNotNull(base, "base"); @@ -131,8 +142,11 @@ public SourceExchangeRates withBase(String base) { return this; } + /** - * ISO reference currency. See <a href="https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html">here</a>. Free plan doesn't support Source Currency Switching, default base currency is EUR + * ISO reference currency. See here. + * Free plan doesn't support Source Currency Switching, default base currency is EUR */ public SourceExchangeRates withBase(Optional base) { Utils.checkNotNull(base, "base"); @@ -149,6 +163,7 @@ public SourceExchangeRates withIgnoreWeekends(boolean ignoreWeekends) { return this; } + /** * Ignore weekends? (Exchanges don't run on weekends) */ @@ -167,7 +182,6 @@ public SourceExchangeRates withStartDate(LocalDate startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -178,21 +192,18 @@ public boolean equals(java.lang.Object o) { } SourceExchangeRates other = (SourceExchangeRates) o; return - Objects.deepEquals(this.accessKey, other.accessKey) && - Objects.deepEquals(this.base, other.base) && - Objects.deepEquals(this.ignoreWeekends, other.ignoreWeekends) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessKey, other.accessKey) && + Utils.enhancedDeepEquals(this.base, other.base) && + Utils.enhancedDeepEquals(this.ignoreWeekends, other.ignoreWeekends) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessKey, - base, - ignoreWeekends, - sourceType, - startDate); + return Utils.enhancedHash( + accessKey, base, ignoreWeekends, + sourceType, startDate); } @Override @@ -204,23 +215,26 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKey; - + private Optional base = Optional.empty(); - + private Optional ignoreWeekends; - + private LocalDate startDate; - + private Builder() { // force use of static builder() method } + /** - * Your API Key. See <a href="https://apilayer.com/marketplace/exchangerates_data-api">here</a>. The key is case sensitive. + * Your API Key. See here. The + * key is case sensitive. */ public Builder accessKey(String accessKey) { Utils.checkNotNull(accessKey, "accessKey"); @@ -228,8 +242,11 @@ public Builder accessKey(String accessKey) { return this; } + /** - * ISO reference currency. See <a href="https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html">here</a>. Free plan doesn't support Source Currency Switching, default base currency is EUR + * ISO reference currency. See here. + * Free plan doesn't support Source Currency Switching, default base currency is EUR */ public Builder base(String base) { Utils.checkNotNull(base, "base"); @@ -238,7 +255,9 @@ public Builder base(String base) { } /** - * ISO reference currency. See <a href="https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/index.en.html">here</a>. Free plan doesn't support Source Currency Switching, default base currency is EUR + * ISO reference currency. See here. + * Free plan doesn't support Source Currency Switching, default base currency is EUR */ public Builder base(Optional base) { Utils.checkNotNull(base, "base"); @@ -246,6 +265,7 @@ public Builder base(Optional base) { return this; } + /** * Ignore weekends? (Exchanges don't run on weekends) */ @@ -264,6 +284,7 @@ public Builder ignoreWeekends(Optional ignoreWeekends) { return this; } + /** * Start getting data from that date. */ @@ -272,18 +293,18 @@ public Builder startDate(LocalDate startDate) { this.startDate = startDate; return this; } - + public SourceExchangeRates build() { if (ignoreWeekends == null) { ignoreWeekends = _SINGLETON_VALUE_IgnoreWeekends.value(); } + return new SourceExchangeRates( - accessKey, - base, - ignoreWeekends, + accessKey, base, ignoreWeekends, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_IgnoreWeekends = new LazySingletonValue<>( "ignore_weekends", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceEzofficeinventory.java b/src/main/java/com/airbyte/api/models/shared/SourceEzofficeinventory.java index 1972bd61e..96dfb3f0a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceEzofficeinventory.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceEzofficeinventory.java @@ -12,21 +12,23 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceEzofficeinventory { +public class SourceEzofficeinventory { /** - * Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in Settings > Integrations > API Integration and click on Update to generate a new access token + * Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in + * Settings > Integrations > API Integration and click on Update to generate a new access token */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Ezofficeinventory sourceType; /** - * Earliest date you want to sync historical streams (inventory_histories, asset_histories, asset_stock_histories) from + * Earliest date you want to sync historical streams (inventory_histories, asset_histories, + * asset_stock_histories) from */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -52,7 +54,8 @@ public SourceEzofficeinventory( } /** - * Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in Settings > Integrations > API Integration and click on Update to generate a new access token + * Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in + * Settings > Integrations > API Integration and click on Update to generate a new access token */ @JsonIgnore public String apiKey() { @@ -65,7 +68,8 @@ public Ezofficeinventory sourceType() { } /** - * Earliest date you want to sync historical streams (inventory_histories, asset_histories, asset_stock_histories) from + * Earliest date you want to sync historical streams (inventory_histories, asset_histories, + * asset_stock_histories) from */ @JsonIgnore public OffsetDateTime startDate() { @@ -80,12 +84,14 @@ public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in Settings > Integrations > API Integration and click on Update to generate a new access token + * Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in + * Settings > Integrations > API Integration and click on Update to generate a new access token */ public SourceEzofficeinventory withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -94,7 +100,8 @@ public SourceEzofficeinventory withApiKey(String apiKey) { } /** - * Earliest date you want to sync historical streams (inventory_histories, asset_histories, asset_stock_histories) from + * Earliest date you want to sync historical streams (inventory_histories, asset_histories, + * asset_stock_histories) from */ public SourceEzofficeinventory withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -111,7 +118,6 @@ public SourceEzofficeinventory withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,18 +128,16 @@ public boolean equals(java.lang.Object o) { } SourceEzofficeinventory other = (SourceEzofficeinventory) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, sourceType, startDate, subdomain); } @@ -145,21 +149,24 @@ public String toString() { "startDate", startDate, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private String subdomain; - + private Builder() { // force use of static builder() method } + /** - * Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in Settings > Integrations > API Integration and click on Update to generate a new access token + * Your EZOfficeInventory Access Token. API Access is disabled by default. Enable API Access in + * Settings > Integrations > API Integration and click on Update to generate a new access token */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -167,8 +174,10 @@ public Builder apiKey(String apiKey) { return this; } + /** - * Earliest date you want to sync historical streams (inventory_histories, asset_histories, asset_stock_histories) from + * Earliest date you want to sync historical streams (inventory_histories, asset_histories, + * asset_stock_histories) from */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -176,6 +185,7 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** * The company name used in signup, also visible in the URL when logged in. */ @@ -184,14 +194,14 @@ public Builder subdomain(String subdomain) { this.subdomain = subdomain; return this; } - + public SourceEzofficeinventory build() { + return new SourceEzofficeinventory( - apiKey, - startDate, - subdomain); + apiKey, startDate, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java index 02debf305..2ab3ad659 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketing.java @@ -18,40 +18,50 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceFacebookMarketing { +public class SourceFacebookMarketing { /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

    Then click on "Get token". See the docs for more + * information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("access_token") private Optional accessToken; /** - * The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown menu or in your browser's address bar of your <a href="https://adsmanager.facebook.com/adsmanager/">Meta Ads Manager</a>. See the <a href="https://www.facebook.com/business/help/1492627900875762">docs</a> for more information. + * The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown + * menu or in your browser's address bar of your Meta Ads Manager. See the docs for more information. */ @JsonProperty("account_ids") private List accountIds; /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ad_statuses") private Optional> adStatuses; /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("adset_statuses") private Optional> adsetStatuses; /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("campaign_statuses") @@ -64,52 +74,68 @@ public class SourceFacebookMarketing { private SourceFacebookMarketingAuthentication credentials; /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("custom_insights") private Optional> customInsights; /** - * The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. + * The date until which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be + * replicated. Not setting this option will result in always syncing the latest data. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") private Optional endDate; /** - * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative. + * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for + * each Ad Creative. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("fetch_thumbnail_images") private Optional fetchThumbnailImages; /** - * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report job to complete. When timeout is reached the job is considered failed and we are trying to request smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 minutes is not enough for your report to be processed then you can decrease the timeout value, so we start breaking job to smaller parts faster. + * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report + * job to complete. When timeout is reached the job is considered failed and we are trying to request + * smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 + * minutes is not enough for your report to be processed then you can decrease the timeout value, so we + * start breaking job to smaller parts faster. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("insights_job_timeout") private Optional insightsJobTimeout; /** - * The attribution window. Facebook freezes insight data 28 days after it was generated, which means that all data from the past 28 days may have changed since we last emitted it, so you can retrieve refreshed insights from the past by setting this parameter. If you set a custom lookback window value in Facebook account, please provide the same value here. + * The attribution window. Facebook freezes insight data 28 days after it was generated, which means + * that all data from the past 28 days may have changed since we last emitted it, so you can retrieve + * refreshed insights from the past by setting this parameter. If you set a custom lookback window + * value in Facebook account, please provide the same value here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("insights_lookback_window") private Optional insightsLookbackWindow; /** - * Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases. + * Page size used when sending requests to Facebook API to specify number of records per page when + * response has pagination. Most users do not need to set this field unless they specifically need to + * tune the connector to address specific issues or use cases. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("page_size") private Optional pageSize; + @JsonProperty("sourceType") private SourceFacebookMarketingFacebookMarketing sourceType; /** - * The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 years for insight streams. + * The date from which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 + * years for insight streams. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -162,11 +188,20 @@ public SourceFacebookMarketing( public SourceFacebookMarketing( List accountIds, SourceFacebookMarketingAuthentication credentials) { - this(Optional.empty(), accountIds, Optional.empty(), Optional.empty(), Optional.empty(), credentials, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), accountIds, Optional.empty(), + Optional.empty(), Optional.empty(), credentials, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

    Then click on "Get token". See the docs for more + * information. */ @JsonIgnore public Optional accessToken() { @@ -174,7 +209,10 @@ public Optional accessToken() { } /** - * The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown menu or in your browser's address bar of your <a href="https://adsmanager.facebook.com/adsmanager/">Meta Ads Manager</a>. See the <a href="https://www.facebook.com/business/help/1492627900875762">docs</a> for more information. + * The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown + * menu or in your browser's address bar of your Meta Ads Manager. See the docs for more information. */ @JsonIgnore public List accountIds() { @@ -182,7 +220,8 @@ public List accountIds() { } /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -191,7 +230,8 @@ public Optional> adStatuses() { } /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -200,7 +240,8 @@ public Optional> adsetStatuses() { } /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -217,7 +258,8 @@ public SourceFacebookMarketingAuthentication credentials() { } /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -226,7 +268,9 @@ public Optional> customInsights() { } /** - * The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. + * The date until which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be + * replicated. Not setting this option will result in always syncing the latest data. */ @JsonIgnore public Optional endDate() { @@ -234,7 +278,8 @@ public Optional endDate() { } /** - * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative. + * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for + * each Ad Creative. */ @JsonIgnore public Optional fetchThumbnailImages() { @@ -242,7 +287,11 @@ public Optional fetchThumbnailImages() { } /** - * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report job to complete. When timeout is reached the job is considered failed and we are trying to request smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 minutes is not enough for your report to be processed then you can decrease the timeout value, so we start breaking job to smaller parts faster. + * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report + * job to complete. When timeout is reached the job is considered failed and we are trying to request + * smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 + * minutes is not enough for your report to be processed then you can decrease the timeout value, so we + * start breaking job to smaller parts faster. */ @JsonIgnore public Optional insightsJobTimeout() { @@ -250,7 +299,10 @@ public Optional insightsJobTimeout() { } /** - * The attribution window. Facebook freezes insight data 28 days after it was generated, which means that all data from the past 28 days may have changed since we last emitted it, so you can retrieve refreshed insights from the past by setting this parameter. If you set a custom lookback window value in Facebook account, please provide the same value here. + * The attribution window. Facebook freezes insight data 28 days after it was generated, which means + * that all data from the past 28 days may have changed since we last emitted it, so you can retrieve + * refreshed insights from the past by setting this parameter. If you set a custom lookback window + * value in Facebook account, please provide the same value here. */ @JsonIgnore public Optional insightsLookbackWindow() { @@ -258,7 +310,9 @@ public Optional insightsLookbackWindow() { } /** - * Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases. + * Page size used when sending requests to Facebook API to specify number of records per page when + * response has pagination. Most users do not need to set this field unless they specifically need to + * tune the connector to address specific issues or use cases. */ @JsonIgnore public Optional pageSize() { @@ -271,19 +325,27 @@ public SourceFacebookMarketingFacebookMarketing sourceType() { } /** - * The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 years for insight streams. + * The date from which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 + * years for insight streams. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

    Then click on "Get token". See the docs for more + * information. */ public SourceFacebookMarketing withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -291,8 +353,14 @@ public SourceFacebookMarketing withAccessToken(String accessToken) { return this; } + /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

    Then click on "Get token". See the docs for more + * information. */ public SourceFacebookMarketing withAccessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -301,7 +369,10 @@ public SourceFacebookMarketing withAccessToken(Optional accessToken) { } /** - * The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown menu or in your browser's address bar of your <a href="https://adsmanager.facebook.com/adsmanager/">Meta Ads Manager</a>. See the <a href="https://www.facebook.com/business/help/1492627900875762">docs</a> for more information. + * The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown + * menu or in your browser's address bar of your Meta Ads Manager. See the docs for more information. */ public SourceFacebookMarketing withAccountIds(List accountIds) { Utils.checkNotNull(accountIds, "accountIds"); @@ -310,7 +381,8 @@ public SourceFacebookMarketing withAccountIds(List accountIds) { } /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ public SourceFacebookMarketing withAdStatuses(List adStatuses) { Utils.checkNotNull(adStatuses, "adStatuses"); @@ -318,8 +390,10 @@ public SourceFacebookMarketing withAdStatuses(List adStatuses) return this; } + /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ public SourceFacebookMarketing withAdStatuses(Optional> adStatuses) { Utils.checkNotNull(adStatuses, "adStatuses"); @@ -328,7 +402,8 @@ public SourceFacebookMarketing withAdStatuses(Optional adsetStatuses) { Utils.checkNotNull(adsetStatuses, "adsetStatuses"); @@ -336,8 +411,10 @@ public SourceFacebookMarketing withAdsetStatuses(List adsetS return this; } + /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ public SourceFacebookMarketing withAdsetStatuses(Optional> adsetStatuses) { Utils.checkNotNull(adsetStatuses, "adsetStatuses"); @@ -346,7 +423,8 @@ public SourceFacebookMarketing withAdsetStatuses(Optional campaignStatuses) { Utils.checkNotNull(campaignStatuses, "campaignStatuses"); @@ -354,8 +432,10 @@ public SourceFacebookMarketing withCampaignStatuses(List return this; } + /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ public SourceFacebookMarketing withCampaignStatuses(Optional> campaignStatuses) { Utils.checkNotNull(campaignStatuses, "campaignStatuses"); @@ -373,7 +453,8 @@ public SourceFacebookMarketing withCredentials(SourceFacebookMarketingAuthentica } /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ public SourceFacebookMarketing withCustomInsights(List customInsights) { Utils.checkNotNull(customInsights, "customInsights"); @@ -381,8 +462,10 @@ public SourceFacebookMarketing withCustomInsights(List customInsi return this; } + /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ public SourceFacebookMarketing withCustomInsights(Optional> customInsights) { Utils.checkNotNull(customInsights, "customInsights"); @@ -391,7 +474,9 @@ public SourceFacebookMarketing withCustomInsights(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -409,7 +497,8 @@ public SourceFacebookMarketing withEndDate(Optional endDate) { } /** - * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative. + * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for + * each Ad Creative. */ public SourceFacebookMarketing withFetchThumbnailImages(boolean fetchThumbnailImages) { Utils.checkNotNull(fetchThumbnailImages, "fetchThumbnailImages"); @@ -417,8 +506,10 @@ public SourceFacebookMarketing withFetchThumbnailImages(boolean fetchThumbnailIm return this; } + /** - * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative. + * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for + * each Ad Creative. */ public SourceFacebookMarketing withFetchThumbnailImages(Optional fetchThumbnailImages) { Utils.checkNotNull(fetchThumbnailImages, "fetchThumbnailImages"); @@ -427,7 +518,11 @@ public SourceFacebookMarketing withFetchThumbnailImages(Optional fetchT } /** - * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report job to complete. When timeout is reached the job is considered failed and we are trying to request smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 minutes is not enough for your report to be processed then you can decrease the timeout value, so we start breaking job to smaller parts faster. + * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report + * job to complete. When timeout is reached the job is considered failed and we are trying to request + * smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 + * minutes is not enough for your report to be processed then you can decrease the timeout value, so we + * start breaking job to smaller parts faster. */ public SourceFacebookMarketing withInsightsJobTimeout(long insightsJobTimeout) { Utils.checkNotNull(insightsJobTimeout, "insightsJobTimeout"); @@ -435,8 +530,13 @@ public SourceFacebookMarketing withInsightsJobTimeout(long insightsJobTimeout) { return this; } + /** - * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report job to complete. When timeout is reached the job is considered failed and we are trying to request smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 minutes is not enough for your report to be processed then you can decrease the timeout value, so we start breaking job to smaller parts faster. + * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report + * job to complete. When timeout is reached the job is considered failed and we are trying to request + * smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 + * minutes is not enough for your report to be processed then you can decrease the timeout value, so we + * start breaking job to smaller parts faster. */ public SourceFacebookMarketing withInsightsJobTimeout(Optional insightsJobTimeout) { Utils.checkNotNull(insightsJobTimeout, "insightsJobTimeout"); @@ -445,7 +545,10 @@ public SourceFacebookMarketing withInsightsJobTimeout(Optional insightsJob } /** - * The attribution window. Facebook freezes insight data 28 days after it was generated, which means that all data from the past 28 days may have changed since we last emitted it, so you can retrieve refreshed insights from the past by setting this parameter. If you set a custom lookback window value in Facebook account, please provide the same value here. + * The attribution window. Facebook freezes insight data 28 days after it was generated, which means + * that all data from the past 28 days may have changed since we last emitted it, so you can retrieve + * refreshed insights from the past by setting this parameter. If you set a custom lookback window + * value in Facebook account, please provide the same value here. */ public SourceFacebookMarketing withInsightsLookbackWindow(long insightsLookbackWindow) { Utils.checkNotNull(insightsLookbackWindow, "insightsLookbackWindow"); @@ -453,8 +556,12 @@ public SourceFacebookMarketing withInsightsLookbackWindow(long insightsLookbackW return this; } + /** - * The attribution window. Facebook freezes insight data 28 days after it was generated, which means that all data from the past 28 days may have changed since we last emitted it, so you can retrieve refreshed insights from the past by setting this parameter. If you set a custom lookback window value in Facebook account, please provide the same value here. + * The attribution window. Facebook freezes insight data 28 days after it was generated, which means + * that all data from the past 28 days may have changed since we last emitted it, so you can retrieve + * refreshed insights from the past by setting this parameter. If you set a custom lookback window + * value in Facebook account, please provide the same value here. */ public SourceFacebookMarketing withInsightsLookbackWindow(Optional insightsLookbackWindow) { Utils.checkNotNull(insightsLookbackWindow, "insightsLookbackWindow"); @@ -463,7 +570,9 @@ public SourceFacebookMarketing withInsightsLookbackWindow(Optional insight } /** - * Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases. + * Page size used when sending requests to Facebook API to specify number of records per page when + * response has pagination. Most users do not need to set this field unless they specifically need to + * tune the connector to address specific issues or use cases. */ public SourceFacebookMarketing withPageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -471,8 +580,11 @@ public SourceFacebookMarketing withPageSize(long pageSize) { return this; } + /** - * Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases. + * Page size used when sending requests to Facebook API to specify number of records per page when + * response has pagination. Most users do not need to set this field unless they specifically need to + * tune the connector to address specific issues or use cases. */ public SourceFacebookMarketing withPageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -481,7 +593,9 @@ public SourceFacebookMarketing withPageSize(Optional pageSize) { } /** - * The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 years for insight streams. + * The date from which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 + * years for insight streams. */ public SourceFacebookMarketing withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -489,8 +603,11 @@ public SourceFacebookMarketing withStartDate(OffsetDateTime startDate) { return this; } + /** - * The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 years for insight streams. + * The date from which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 + * years for insight streams. */ public SourceFacebookMarketing withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -498,7 +615,6 @@ public SourceFacebookMarketing withStartDate(Optional startDate) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -509,39 +625,30 @@ public boolean equals(java.lang.Object o) { } SourceFacebookMarketing other = (SourceFacebookMarketing) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.accountIds, other.accountIds) && - Objects.deepEquals(this.adStatuses, other.adStatuses) && - Objects.deepEquals(this.adsetStatuses, other.adsetStatuses) && - Objects.deepEquals(this.campaignStatuses, other.campaignStatuses) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.customInsights, other.customInsights) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.fetchThumbnailImages, other.fetchThumbnailImages) && - Objects.deepEquals(this.insightsJobTimeout, other.insightsJobTimeout) && - Objects.deepEquals(this.insightsLookbackWindow, other.insightsLookbackWindow) && - Objects.deepEquals(this.pageSize, other.pageSize) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.accountIds, other.accountIds) && + Utils.enhancedDeepEquals(this.adStatuses, other.adStatuses) && + Utils.enhancedDeepEquals(this.adsetStatuses, other.adsetStatuses) && + Utils.enhancedDeepEquals(this.campaignStatuses, other.campaignStatuses) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.customInsights, other.customInsights) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.fetchThumbnailImages, other.fetchThumbnailImages) && + Utils.enhancedDeepEquals(this.insightsJobTimeout, other.insightsJobTimeout) && + Utils.enhancedDeepEquals(this.insightsLookbackWindow, other.insightsLookbackWindow) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - accountIds, - adStatuses, - adsetStatuses, - campaignStatuses, - credentials, - customInsights, - endDate, - fetchThumbnailImages, - insightsJobTimeout, - insightsLookbackWindow, - pageSize, - sourceType, - startDate); + return Utils.enhancedHash( + accessToken, accountIds, adStatuses, + adsetStatuses, campaignStatuses, credentials, + customInsights, endDate, fetchThumbnailImages, + insightsJobTimeout, insightsLookbackWindow, pageSize, + sourceType, startDate); } @Override @@ -562,41 +669,48 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accessToken = Optional.empty(); - + private List accountIds; - + private Optional> adStatuses = Optional.empty(); - + private Optional> adsetStatuses = Optional.empty(); - + private Optional> campaignStatuses = Optional.empty(); - + private SourceFacebookMarketingAuthentication credentials; - + private Optional> customInsights = Optional.empty(); - + private Optional endDate = Optional.empty(); - + private Optional fetchThumbnailImages; - + private Optional insightsJobTimeout; - + private Optional insightsLookbackWindow; - + private Optional pageSize; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

    Then click on "Get token". See the docs for more + * information. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -605,7 +719,12 @@ public Builder accessToken(String accessToken) { } /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

    Then click on "Get token". See the docs for more + * information. */ public Builder accessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -613,8 +732,12 @@ public Builder accessToken(Optional accessToken) { return this; } + /** - * The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown menu or in your browser's address bar of your <a href="https://adsmanager.facebook.com/adsmanager/">Meta Ads Manager</a>. See the <a href="https://www.facebook.com/business/help/1492627900875762">docs</a> for more information. + * The Facebook Ad account ID(s) to pull data from. The Ad account ID number is in the account dropdown + * menu or in your browser's address bar of your Meta Ads Manager. See the docs for more information. */ public Builder accountIds(List accountIds) { Utils.checkNotNull(accountIds, "accountIds"); @@ -622,8 +745,10 @@ public Builder accountIds(List accountIds) { return this; } + /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ public Builder adStatuses(List adStatuses) { Utils.checkNotNull(adStatuses, "adStatuses"); @@ -632,7 +757,8 @@ public Builder adStatuses(List adStatuses) { } /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ public Builder adStatuses(Optional> adStatuses) { Utils.checkNotNull(adStatuses, "adStatuses"); @@ -640,8 +766,10 @@ public Builder adStatuses(Optional> adStatuses) return this; } + /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ public Builder adsetStatuses(List adsetStatuses) { Utils.checkNotNull(adsetStatuses, "adsetStatuses"); @@ -650,7 +778,8 @@ public Builder adsetStatuses(List adsetStatuses) { } /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ public Builder adsetStatuses(Optional> adsetStatuses) { Utils.checkNotNull(adsetStatuses, "adsetStatuses"); @@ -658,8 +787,10 @@ public Builder adsetStatuses(Optional> adsetS return this; } + /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ public Builder campaignStatuses(List campaignStatuses) { Utils.checkNotNull(campaignStatuses, "campaignStatuses"); @@ -668,7 +799,8 @@ public Builder campaignStatuses(List campaignStatuses) { } /** - * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the API's default behavior applies, and some statuses may be filtered out. + * Select the statuses you want to be loaded in the stream. If no specific statuses are selected, the + * API's default behavior applies, and some statuses may be filtered out. */ public Builder campaignStatuses(Optional> campaignStatuses) { Utils.checkNotNull(campaignStatuses, "campaignStatuses"); @@ -676,6 +808,7 @@ public Builder campaignStatuses(Optional> return this; } + /** * Credentials for connecting to the Facebook Marketing API */ @@ -685,8 +818,10 @@ public Builder credentials(SourceFacebookMarketingAuthentication credentials) { return this; } + /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ public Builder customInsights(List customInsights) { Utils.checkNotNull(customInsights, "customInsights"); @@ -695,7 +830,8 @@ public Builder customInsights(List customInsights) { } /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ public Builder customInsights(Optional> customInsights) { Utils.checkNotNull(customInsights, "customInsights"); @@ -703,8 +839,11 @@ public Builder customInsights(Optional> customInsi return this; } + /** - * The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. + * The date until which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be + * replicated. Not setting this option will result in always syncing the latest data. */ public Builder endDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -713,7 +852,9 @@ public Builder endDate(OffsetDateTime endDate) { } /** - * The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be replicated. Not setting this option will result in always syncing the latest data. + * The date until which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. All data generated between the start date and this end date will be + * replicated. Not setting this option will result in always syncing the latest data. */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -721,8 +862,10 @@ public Builder endDate(Optional endDate) { return this; } + /** - * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative. + * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for + * each Ad Creative. */ public Builder fetchThumbnailImages(boolean fetchThumbnailImages) { Utils.checkNotNull(fetchThumbnailImages, "fetchThumbnailImages"); @@ -731,7 +874,8 @@ public Builder fetchThumbnailImages(boolean fetchThumbnailImages) { } /** - * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for each Ad Creative. + * Set to active if you want to fetch the thumbnail_url and store the result in thumbnail_data_url for + * each Ad Creative. */ public Builder fetchThumbnailImages(Optional fetchThumbnailImages) { Utils.checkNotNull(fetchThumbnailImages, "fetchThumbnailImages"); @@ -739,8 +883,13 @@ public Builder fetchThumbnailImages(Optional fetchThumbnailImages) { return this; } + /** - * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report job to complete. When timeout is reached the job is considered failed and we are trying to request smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 minutes is not enough for your report to be processed then you can decrease the timeout value, so we start breaking job to smaller parts faster. + * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report + * job to complete. When timeout is reached the job is considered failed and we are trying to request + * smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 + * minutes is not enough for your report to be processed then you can decrease the timeout value, so we + * start breaking job to smaller parts faster. */ public Builder insightsJobTimeout(long insightsJobTimeout) { Utils.checkNotNull(insightsJobTimeout, "insightsJobTimeout"); @@ -749,7 +898,11 @@ public Builder insightsJobTimeout(long insightsJobTimeout) { } /** - * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report job to complete. When timeout is reached the job is considered failed and we are trying to request smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 minutes is not enough for your report to be processed then you can decrease the timeout value, so we start breaking job to smaller parts faster. + * Insights Job Timeout establishes the maximum amount of time (in minutes) of waiting for the report + * job to complete. When timeout is reached the job is considered failed and we are trying to request + * smaller amount of data by breaking the job to few smaller ones. If you definitely know that 60 + * minutes is not enough for your report to be processed then you can decrease the timeout value, so we + * start breaking job to smaller parts faster. */ public Builder insightsJobTimeout(Optional insightsJobTimeout) { Utils.checkNotNull(insightsJobTimeout, "insightsJobTimeout"); @@ -757,8 +910,12 @@ public Builder insightsJobTimeout(Optional insightsJobTimeout) { return this; } + /** - * The attribution window. Facebook freezes insight data 28 days after it was generated, which means that all data from the past 28 days may have changed since we last emitted it, so you can retrieve refreshed insights from the past by setting this parameter. If you set a custom lookback window value in Facebook account, please provide the same value here. + * The attribution window. Facebook freezes insight data 28 days after it was generated, which means + * that all data from the past 28 days may have changed since we last emitted it, so you can retrieve + * refreshed insights from the past by setting this parameter. If you set a custom lookback window + * value in Facebook account, please provide the same value here. */ public Builder insightsLookbackWindow(long insightsLookbackWindow) { Utils.checkNotNull(insightsLookbackWindow, "insightsLookbackWindow"); @@ -767,7 +924,10 @@ public Builder insightsLookbackWindow(long insightsLookbackWindow) { } /** - * The attribution window. Facebook freezes insight data 28 days after it was generated, which means that all data from the past 28 days may have changed since we last emitted it, so you can retrieve refreshed insights from the past by setting this parameter. If you set a custom lookback window value in Facebook account, please provide the same value here. + * The attribution window. Facebook freezes insight data 28 days after it was generated, which means + * that all data from the past 28 days may have changed since we last emitted it, so you can retrieve + * refreshed insights from the past by setting this parameter. If you set a custom lookback window + * value in Facebook account, please provide the same value here. */ public Builder insightsLookbackWindow(Optional insightsLookbackWindow) { Utils.checkNotNull(insightsLookbackWindow, "insightsLookbackWindow"); @@ -775,8 +935,11 @@ public Builder insightsLookbackWindow(Optional insightsLookbackWindow) { return this; } + /** - * Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases. + * Page size used when sending requests to Facebook API to specify number of records per page when + * response has pagination. Most users do not need to set this field unless they specifically need to + * tune the connector to address specific issues or use cases. */ public Builder pageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -785,7 +948,9 @@ public Builder pageSize(long pageSize) { } /** - * Page size used when sending requests to Facebook API to specify number of records per page when response has pagination. Most users do not need to set this field unless they specifically need to tune the connector to address specific issues or use cases. + * Page size used when sending requests to Facebook API to specify number of records per page when + * response has pagination. Most users do not need to set this field unless they specifically need to + * tune the connector to address specific issues or use cases. */ public Builder pageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -793,8 +958,11 @@ public Builder pageSize(Optional pageSize) { return this; } + /** - * The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 years for insight streams. + * The date from which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 + * years for insight streams. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -803,14 +971,16 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date from which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 years for insight streams. + * The date from which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DDT00:00:00Z. If not set then all data will be replicated for usual streams and only last 2 + * years for insight streams. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceFacebookMarketing build() { if (fetchThumbnailImages == null) { fetchThumbnailImages = _SINGLETON_VALUE_FetchThumbnailImages.value(); @@ -824,22 +994,16 @@ public SourceFacebookMarketing build() { if (pageSize == null) { pageSize = _SINGLETON_VALUE_PageSize.value(); } + return new SourceFacebookMarketing( - accessToken, - accountIds, - adStatuses, - adsetStatuses, - campaignStatuses, - credentials, - customInsights, - endDate, - fetchThumbnailImages, - insightsJobTimeout, - insightsLookbackWindow, - pageSize, + accessToken, accountIds, adStatuses, + adsetStatuses, campaignStatuses, credentials, + customInsights, endDate, fetchThumbnailImages, + insightsJobTimeout, insightsLookbackWindow, pageSize, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_FetchThumbnailImages = new LazySingletonValue<>( "fetch_thumbnail_images", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java deleted file mode 100644 index 37a3c4e85..000000000 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingActionReportTime.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -/** - * SourceFacebookMarketingActionReportTime - * - *

    Determines the report time of action stats. For example, if a person saw the ad on Jan 1st but converted on Jan 2nd, when you query the API with action_report_time=impression, you see a conversion on Jan 1st. When you query the API with action_report_time=conversion, you see a conversion on Jan 2nd. - */ -public enum SourceFacebookMarketingActionReportTime { - CONVERSION("conversion"), - IMPRESSION("impression"), - MIXED("mixed"); - - @JsonValue - private final String value; - - private SourceFacebookMarketingActionReportTime(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (SourceFacebookMarketingActionReportTime o: SourceFacebookMarketingActionReportTime.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java index c5152cabc..e0fa4a896 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthType.java @@ -14,7 +14,7 @@ public enum SourceFacebookMarketingAuthType { @JsonValue private final String value; - private SourceFacebookMarketingAuthType(String value) { + SourceFacebookMarketingAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java index af44efeca..95c4fc97a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceFacebookMarketingAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceFacebookMarketingAuthentication other = (SourceFacebookMarketingAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java index c46cd4f3f..c5eed2936 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingFacebookMarketing.java @@ -14,7 +14,7 @@ public enum SourceFacebookMarketingFacebookMarketing { @JsonValue private final String value; - private SourceFacebookMarketingFacebookMarketing(String value) { + SourceFacebookMarketingFacebookMarketing(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java index b71b17569..367341da2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceFacebookMarketingSchemasAuthType { @JsonValue private final String value; - private SourceFacebookMarketingSchemasAuthType(String value) { + SourceFacebookMarketingSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingServiceAccountKeyAuthentication.java index e62e4b3b1..ff25e8c9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingServiceAccountKeyAuthentication.java @@ -14,17 +14,22 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceFacebookMarketingServiceAccountKeyAuthentication { +public class SourceFacebookMarketingServiceAccountKeyAuthentication { /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

    Then click on "Get token". See the docs for more + * information. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -38,7 +43,12 @@ public SourceFacebookMarketingServiceAccountKeyAuthentication( } /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

    Then click on "Get token". See the docs for more + * information. */ @JsonIgnore public String accessToken() { @@ -51,12 +61,18 @@ public Optional authType() { return (Optional) authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

    Then click on "Get token". See the docs for more + * information. */ public SourceFacebookMarketingServiceAccountKeyAuthentication withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -64,7 +80,6 @@ public SourceFacebookMarketingServiceAccountKeyAuthentication withAccessToken(St return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +90,14 @@ public boolean equals(java.lang.Object o) { } SourceFacebookMarketingServiceAccountKeyAuthentication other = (SourceFacebookMarketingServiceAccountKeyAuthentication) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType); + return Utils.enhancedHash( + accessToken, authType); } @Override @@ -92,29 +106,38 @@ public String toString() { "accessToken", accessToken, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then "Tools". Select permissions <b>ads_management, ads_read, read_insights, business_management</b>. Then click on "Get token". See the <a href="https://docs.airbyte.com/integrations/sources/facebook-marketing">docs</a> for more information. + * The value of the generated access token. From your App’s Dashboard, click on "Marketing API" then + * "Tools". Select permissions ads_management, ads_read, read_insights, business_management. + * + *

    Then click on "Get token". See the docs for more + * information. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public SourceFacebookMarketingServiceAccountKeyAuthentication build() { + return new SourceFacebookMarketingServiceAccountKeyAuthentication( accessToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java index b30bb311d..363ccd41b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookMarketingValidEnums.java @@ -159,7 +159,7 @@ public enum SourceFacebookMarketingValidEnums { @JsonValue private final String value; - private SourceFacebookMarketingValidEnums(String value) { + SourceFacebookMarketingValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFacebookPages.java b/src/main/java/com/airbyte/api/models/shared/SourceFacebookPages.java new file mode 100644 index 000000000..32afc34bf --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceFacebookPages.java @@ -0,0 +1,161 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; + + +public class SourceFacebookPages { + /** + * Facebook Page Access Token + */ + @JsonProperty("access_token") + private String accessToken; + + /** + * Page ID + */ + @JsonProperty("page_id") + private String pageId; + + + @JsonProperty("sourceType") + private FacebookPages sourceType; + + @JsonCreator + public SourceFacebookPages( + @JsonProperty("access_token") String accessToken, + @JsonProperty("page_id") String pageId) { + Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(pageId, "pageId"); + this.accessToken = accessToken; + this.pageId = pageId; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + /** + * Facebook Page Access Token + */ + @JsonIgnore + public String accessToken() { + return accessToken; + } + + /** + * Page ID + */ + @JsonIgnore + public String pageId() { + return pageId; + } + + @JsonIgnore + public FacebookPages sourceType() { + return sourceType; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Facebook Page Access Token + */ + public SourceFacebookPages withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * Page ID + */ + public SourceFacebookPages withPageId(String pageId) { + Utils.checkNotNull(pageId, "pageId"); + this.pageId = pageId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceFacebookPages other = (SourceFacebookPages) o; + return + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.pageId, other.pageId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accessToken, pageId, sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceFacebookPages.class, + "accessToken", accessToken, + "pageId", pageId, + "sourceType", sourceType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String accessToken; + + private String pageId; + + private Builder() { + // force use of static builder() method + } + + + /** + * Facebook Page Access Token + */ + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + + /** + * Page ID + */ + public Builder pageId(String pageId) { + Utils.checkNotNull(pageId, "pageId"); + this.pageId = pageId; + return this; + } + + public SourceFacebookPages build() { + + return new SourceFacebookPages( + accessToken, pageId); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"facebook-pages\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFactorial.java b/src/main/java/com/airbyte/api/models/shared/SourceFactorial.java index 2fb51d1e6..cd023bbf5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFactorial.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFactorial.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceFactorial { @JsonProperty("api_key") @@ -29,9 +29,11 @@ public class SourceFactorial { @JsonProperty("limit") private Optional limit; + @JsonProperty("sourceType") private Factorial sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -78,9 +80,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceFactorial withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -97,6 +100,7 @@ public SourceFactorial withLimit(String limit) { return this; } + /** * Max records per page limit */ @@ -112,7 +116,6 @@ public SourceFactorial withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -123,18 +126,16 @@ public boolean equals(java.lang.Object o) { } SourceFactorial other = (SourceFactorial) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - limit, - sourceType, + return Utils.enhancedHash( + apiKey, limit, sourceType, startDate); } @@ -146,25 +147,28 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional limit; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Max records per page limit */ @@ -183,22 +187,23 @@ public Builder limit(Optional limit) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceFactorial build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } + return new SourceFactorial( - apiKey, - limit, - startDate); + apiKey, limit, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = new LazySingletonValue<>( "limit", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFaker.java b/src/main/java/com/airbyte/api/models/shared/SourceFaker.java index 70fbc0338..98b2b5d18 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFaker.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFaker.java @@ -15,27 +15,29 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceFaker { +public class SourceFaker { /** - * Should the updated_at values for every record be new each sync? Setting this to false will case the source to stop emitting records after COUNT records have been emitted. + * Should the updated_at values for every record be new each sync? Setting this to false will case the + * source to stop emitting records after COUNT records have been emitted. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("always_updated") private Optional alwaysUpdated; /** - * How many users should be generated in total. The purchases table will be scaled to match, with 10 purchases created per 10 users. This setting does not apply to the products stream. + * How many users should be generated in total. The purchases table will be scaled to match, with 10 + * purchases created per 10 users. This setting does not apply to the products stream. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("count") private Optional count; /** - * How many parallel workers should we use to generate fake data? Choose a value equal to the number of CPUs you will allocate to this source. + * How many parallel workers should we use to generate fake data? Choose a value equal to the number of + * CPUs you will allocate to this source. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("parallelism") @@ -49,12 +51,14 @@ public class SourceFaker { private Optional recordsPerSlice; /** - * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random) + * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for + * random) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("seed") private Optional seed; + @JsonProperty("sourceType") private Faker sourceType; @@ -79,11 +83,13 @@ public SourceFaker( } public SourceFaker() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** - * Should the updated_at values for every record be new each sync? Setting this to false will case the source to stop emitting records after COUNT records have been emitted. + * Should the updated_at values for every record be new each sync? Setting this to false will case the + * source to stop emitting records after COUNT records have been emitted. */ @JsonIgnore public Optional alwaysUpdated() { @@ -91,7 +97,8 @@ public Optional alwaysUpdated() { } /** - * How many users should be generated in total. The purchases table will be scaled to match, with 10 purchases created per 10 users. This setting does not apply to the products stream. + * How many users should be generated in total. The purchases table will be scaled to match, with 10 + * purchases created per 10 users. This setting does not apply to the products stream. */ @JsonIgnore public Optional count() { @@ -99,7 +106,8 @@ public Optional count() { } /** - * How many parallel workers should we use to generate fake data? Choose a value equal to the number of CPUs you will allocate to this source. + * How many parallel workers should we use to generate fake data? Choose a value equal to the number of + * CPUs you will allocate to this source. */ @JsonIgnore public Optional parallelism() { @@ -115,7 +123,8 @@ public Optional recordsPerSlice() { } /** - * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random) + * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for + * random) */ @JsonIgnore public Optional seed() { @@ -127,12 +136,14 @@ public Faker sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Should the updated_at values for every record be new each sync? Setting this to false will case the source to stop emitting records after COUNT records have been emitted. + * Should the updated_at values for every record be new each sync? Setting this to false will case the + * source to stop emitting records after COUNT records have been emitted. */ public SourceFaker withAlwaysUpdated(boolean alwaysUpdated) { Utils.checkNotNull(alwaysUpdated, "alwaysUpdated"); @@ -140,8 +151,10 @@ public SourceFaker withAlwaysUpdated(boolean alwaysUpdated) { return this; } + /** - * Should the updated_at values for every record be new each sync? Setting this to false will case the source to stop emitting records after COUNT records have been emitted. + * Should the updated_at values for every record be new each sync? Setting this to false will case the + * source to stop emitting records after COUNT records have been emitted. */ public SourceFaker withAlwaysUpdated(Optional alwaysUpdated) { Utils.checkNotNull(alwaysUpdated, "alwaysUpdated"); @@ -150,7 +163,8 @@ public SourceFaker withAlwaysUpdated(Optional alwaysUpdated) { } /** - * How many users should be generated in total. The purchases table will be scaled to match, with 10 purchases created per 10 users. This setting does not apply to the products stream. + * How many users should be generated in total. The purchases table will be scaled to match, with 10 + * purchases created per 10 users. This setting does not apply to the products stream. */ public SourceFaker withCount(long count) { Utils.checkNotNull(count, "count"); @@ -158,8 +172,10 @@ public SourceFaker withCount(long count) { return this; } + /** - * How many users should be generated in total. The purchases table will be scaled to match, with 10 purchases created per 10 users. This setting does not apply to the products stream. + * How many users should be generated in total. The purchases table will be scaled to match, with 10 + * purchases created per 10 users. This setting does not apply to the products stream. */ public SourceFaker withCount(Optional count) { Utils.checkNotNull(count, "count"); @@ -168,7 +184,8 @@ public SourceFaker withCount(Optional count) { } /** - * How many parallel workers should we use to generate fake data? Choose a value equal to the number of CPUs you will allocate to this source. + * How many parallel workers should we use to generate fake data? Choose a value equal to the number of + * CPUs you will allocate to this source. */ public SourceFaker withParallelism(long parallelism) { Utils.checkNotNull(parallelism, "parallelism"); @@ -176,8 +193,10 @@ public SourceFaker withParallelism(long parallelism) { return this; } + /** - * How many parallel workers should we use to generate fake data? Choose a value equal to the number of CPUs you will allocate to this source. + * How many parallel workers should we use to generate fake data? Choose a value equal to the number of + * CPUs you will allocate to this source. */ public SourceFaker withParallelism(Optional parallelism) { Utils.checkNotNull(parallelism, "parallelism"); @@ -194,6 +213,7 @@ public SourceFaker withRecordsPerSlice(long recordsPerSlice) { return this; } + /** * How many fake records will be in each page (stream slice), before a state message is emitted? */ @@ -204,7 +224,8 @@ public SourceFaker withRecordsPerSlice(Optional recordsPerSlice) { } /** - * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random) + * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for + * random) */ public SourceFaker withSeed(long seed) { Utils.checkNotNull(seed, "seed"); @@ -212,8 +233,10 @@ public SourceFaker withSeed(long seed) { return this; } + /** - * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random) + * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for + * random) */ public SourceFaker withSeed(Optional seed) { Utils.checkNotNull(seed, "seed"); @@ -221,7 +244,6 @@ public SourceFaker withSeed(Optional seed) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -232,23 +254,19 @@ public boolean equals(java.lang.Object o) { } SourceFaker other = (SourceFaker) o; return - Objects.deepEquals(this.alwaysUpdated, other.alwaysUpdated) && - Objects.deepEquals(this.count, other.count) && - Objects.deepEquals(this.parallelism, other.parallelism) && - Objects.deepEquals(this.recordsPerSlice, other.recordsPerSlice) && - Objects.deepEquals(this.seed, other.seed) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.alwaysUpdated, other.alwaysUpdated) && + Utils.enhancedDeepEquals(this.count, other.count) && + Utils.enhancedDeepEquals(this.parallelism, other.parallelism) && + Utils.enhancedDeepEquals(this.recordsPerSlice, other.recordsPerSlice) && + Utils.enhancedDeepEquals(this.seed, other.seed) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - alwaysUpdated, - count, - parallelism, - recordsPerSlice, - seed, - sourceType); + return Utils.enhancedHash( + alwaysUpdated, count, parallelism, + recordsPerSlice, seed, sourceType); } @Override @@ -261,25 +279,28 @@ public String toString() { "seed", seed, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional alwaysUpdated; - + private Optional count; - + private Optional parallelism; - + private Optional recordsPerSlice; - + private Optional seed; - + private Builder() { // force use of static builder() method } + /** - * Should the updated_at values for every record be new each sync? Setting this to false will case the source to stop emitting records after COUNT records have been emitted. + * Should the updated_at values for every record be new each sync? Setting this to false will case the + * source to stop emitting records after COUNT records have been emitted. */ public Builder alwaysUpdated(boolean alwaysUpdated) { Utils.checkNotNull(alwaysUpdated, "alwaysUpdated"); @@ -288,7 +309,8 @@ public Builder alwaysUpdated(boolean alwaysUpdated) { } /** - * Should the updated_at values for every record be new each sync? Setting this to false will case the source to stop emitting records after COUNT records have been emitted. + * Should the updated_at values for every record be new each sync? Setting this to false will case the + * source to stop emitting records after COUNT records have been emitted. */ public Builder alwaysUpdated(Optional alwaysUpdated) { Utils.checkNotNull(alwaysUpdated, "alwaysUpdated"); @@ -296,8 +318,10 @@ public Builder alwaysUpdated(Optional alwaysUpdated) { return this; } + /** - * How many users should be generated in total. The purchases table will be scaled to match, with 10 purchases created per 10 users. This setting does not apply to the products stream. + * How many users should be generated in total. The purchases table will be scaled to match, with 10 + * purchases created per 10 users. This setting does not apply to the products stream. */ public Builder count(long count) { Utils.checkNotNull(count, "count"); @@ -306,7 +330,8 @@ public Builder count(long count) { } /** - * How many users should be generated in total. The purchases table will be scaled to match, with 10 purchases created per 10 users. This setting does not apply to the products stream. + * How many users should be generated in total. The purchases table will be scaled to match, with 10 + * purchases created per 10 users. This setting does not apply to the products stream. */ public Builder count(Optional count) { Utils.checkNotNull(count, "count"); @@ -314,8 +339,10 @@ public Builder count(Optional count) { return this; } + /** - * How many parallel workers should we use to generate fake data? Choose a value equal to the number of CPUs you will allocate to this source. + * How many parallel workers should we use to generate fake data? Choose a value equal to the number of + * CPUs you will allocate to this source. */ public Builder parallelism(long parallelism) { Utils.checkNotNull(parallelism, "parallelism"); @@ -324,7 +351,8 @@ public Builder parallelism(long parallelism) { } /** - * How many parallel workers should we use to generate fake data? Choose a value equal to the number of CPUs you will allocate to this source. + * How many parallel workers should we use to generate fake data? Choose a value equal to the number of + * CPUs you will allocate to this source. */ public Builder parallelism(Optional parallelism) { Utils.checkNotNull(parallelism, "parallelism"); @@ -332,6 +360,7 @@ public Builder parallelism(Optional parallelism) { return this; } + /** * How many fake records will be in each page (stream slice), before a state message is emitted? */ @@ -350,8 +379,10 @@ public Builder recordsPerSlice(Optional recordsPerSlice) { return this; } + /** - * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random) + * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for + * random) */ public Builder seed(long seed) { Utils.checkNotNull(seed, "seed"); @@ -360,14 +391,15 @@ public Builder seed(long seed) { } /** - * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for random) + * Manually control the faker random seed to return the same values on subsequent runs (leave -1 for + * random) */ public Builder seed(Optional seed) { Utils.checkNotNull(seed, "seed"); this.seed = seed; return this; } - + public SourceFaker build() { if (alwaysUpdated == null) { alwaysUpdated = _SINGLETON_VALUE_AlwaysUpdated.value(); @@ -384,14 +416,13 @@ public SourceFaker build() { if (seed == null) { seed = _SINGLETON_VALUE_Seed.value(); } + return new SourceFaker( - alwaysUpdated, - count, - parallelism, - recordsPerSlice, - seed); + alwaysUpdated, count, parallelism, + recordsPerSlice, seed); } + private static final LazySingletonValue> _SINGLETON_VALUE_AlwaysUpdated = new LazySingletonValue<>( "always_updated", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFastbill.java b/src/main/java/com/airbyte/api/models/shared/SourceFastbill.java index 9d4a2a4bd..ee71aff78 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFastbill.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFastbill.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceFastbill { +public class SourceFastbill { /** * Fastbill API key */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Fastbill sourceType; @@ -62,9 +62,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Fastbill API key @@ -84,7 +85,6 @@ public SourceFastbill withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceFastbill other = (SourceFastbill) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - username); + return Utils.enhancedHash( + apiKey, sourceType, username); } @Override @@ -115,17 +113,19 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Fastbill API key */ @@ -135,6 +135,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Username for Fastbill account */ @@ -143,13 +144,14 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceFastbill build() { + return new SourceFastbill( - apiKey, - username); + apiKey, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFastly.java b/src/main/java/com/airbyte/api/models/shared/SourceFastly.java index 70522b0ec..3e312c421 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFastly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFastly.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceFastly { +public class SourceFastly { /** - * Your Fastly API token. You can generate this token in the Fastly web interface under Account Settings or via the Fastly API. Ensure the token has the appropriate scope for your use case. + * Your Fastly API token. You can generate this token in the Fastly web interface under Account + * Settings or via the Fastly API. Ensure the token has the appropriate scope for your use case. */ @JsonProperty("fastly_api_token") private String fastlyApiToken; + @JsonProperty("sourceType") private Fastly sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public SourceFastly( } /** - * Your Fastly API token. You can generate this token in the Fastly web interface under Account Settings or via the Fastly API. Ensure the token has the appropriate scope for your use case. + * Your Fastly API token. You can generate this token in the Fastly web interface under Account + * Settings or via the Fastly API. Ensure the token has the appropriate scope for your use case. */ @JsonIgnore public String fastlyApiToken() { @@ -57,12 +60,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Fastly API token. You can generate this token in the Fastly web interface under Account Settings or via the Fastly API. Ensure the token has the appropriate scope for your use case. + * Your Fastly API token. You can generate this token in the Fastly web interface under Account + * Settings or via the Fastly API. Ensure the token has the appropriate scope for your use case. */ public SourceFastly withFastlyApiToken(String fastlyApiToken) { Utils.checkNotNull(fastlyApiToken, "fastlyApiToken"); @@ -76,7 +81,6 @@ public SourceFastly withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceFastly other = (SourceFastly) o; return - Objects.deepEquals(this.fastlyApiToken, other.fastlyApiToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.fastlyApiToken, other.fastlyApiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - fastlyApiToken, - sourceType, - startDate); + return Utils.enhancedHash( + fastlyApiToken, sourceType, startDate); } @Override @@ -107,19 +109,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fastlyApiToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your Fastly API token. You can generate this token in the Fastly web interface under Account Settings or via the Fastly API. Ensure the token has the appropriate scope for your use case. + * Your Fastly API token. You can generate this token in the Fastly web interface under Account + * Settings or via the Fastly API. Ensure the token has the appropriate scope for your use case. */ public Builder fastlyApiToken(String fastlyApiToken) { Utils.checkNotNull(fastlyApiToken, "fastlyApiToken"); @@ -127,18 +132,20 @@ public Builder fastlyApiToken(String fastlyApiToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceFastly build() { + return new SourceFastly( - fastlyApiToken, - startDate); + fastlyApiToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFauna.java b/src/main/java/com/airbyte/api/models/shared/SourceFauna.java index a00c995f1..dfff09559 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFauna.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFauna.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceFauna { +public class SourceFauna { /** * Settings for the Fauna Collection. */ @@ -28,7 +27,9 @@ public class SourceFauna { private Optional collection; /** - * Domain of Fauna to query. Defaults db.fauna.com. See <a href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the docs</a>. + * Domain of Fauna to query. Defaults db.fauna.com. See <a + * href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the + * docs</a>. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("domain") @@ -54,6 +55,7 @@ public class SourceFauna { @JsonProperty("secret") private String secret; + @JsonProperty("sourceType") private Fauna sourceType; @@ -79,7 +81,8 @@ public SourceFauna( public SourceFauna( String secret) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), secret); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), secret); } /** @@ -92,7 +95,9 @@ public Optional collection() { } /** - * Domain of Fauna to query. Defaults db.fauna.com. See <a href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the docs</a>. + * Domain of Fauna to query. Defaults db.fauna.com. See <a + * href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the + * docs</a>. */ @JsonIgnore public Optional domain() { @@ -128,9 +133,10 @@ public Fauna sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Settings for the Fauna Collection. @@ -141,6 +147,7 @@ public SourceFauna withCollection(Collection collection) { return this; } + /** * Settings for the Fauna Collection. */ @@ -151,7 +158,9 @@ public SourceFauna withCollection(Optional collection) { } /** - * Domain of Fauna to query. Defaults db.fauna.com. See <a href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the docs</a>. + * Domain of Fauna to query. Defaults db.fauna.com. See <a + * href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the + * docs</a>. */ public SourceFauna withDomain(String domain) { Utils.checkNotNull(domain, "domain"); @@ -159,8 +168,11 @@ public SourceFauna withDomain(String domain) { return this; } + /** - * Domain of Fauna to query. Defaults db.fauna.com. See <a href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the docs</a>. + * Domain of Fauna to query. Defaults db.fauna.com. See <a + * href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the + * docs</a>. */ public SourceFauna withDomain(Optional domain) { Utils.checkNotNull(domain, "domain"); @@ -177,6 +189,7 @@ public SourceFauna withPort(long port) { return this; } + /** * Endpoint port. */ @@ -195,6 +208,7 @@ public SourceFauna withScheme(String scheme) { return this; } + /** * URL scheme. */ @@ -213,7 +227,6 @@ public SourceFauna withSecret(String secret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -224,23 +237,19 @@ public boolean equals(java.lang.Object o) { } SourceFauna other = (SourceFauna) o; return - Objects.deepEquals(this.collection, other.collection) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.scheme, other.scheme) && - Objects.deepEquals(this.secret, other.secret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.collection, other.collection) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.scheme, other.scheme) && + Utils.enhancedDeepEquals(this.secret, other.secret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - collection, - domain, - port, - scheme, - secret, - sourceType); + return Utils.enhancedHash( + collection, domain, port, + scheme, secret, sourceType); } @Override @@ -253,23 +262,25 @@ public String toString() { "secret", secret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional collection = Optional.empty(); - + private Optional domain; - + private Optional port; - + private Optional scheme; - + private String secret; - + private Builder() { // force use of static builder() method } + /** * Settings for the Fauna Collection. */ @@ -288,8 +299,11 @@ public Builder collection(Optional collection) { return this; } + /** - * Domain of Fauna to query. Defaults db.fauna.com. See <a href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the docs</a>. + * Domain of Fauna to query. Defaults db.fauna.com. See <a + * href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the + * docs</a>. */ public Builder domain(String domain) { Utils.checkNotNull(domain, "domain"); @@ -298,7 +312,9 @@ public Builder domain(String domain) { } /** - * Domain of Fauna to query. Defaults db.fauna.com. See <a href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the docs</a>. + * Domain of Fauna to query. Defaults db.fauna.com. See <a + * href=https://docs.fauna.com/fauna/current/learn/understanding/region_groups#how-to-use-region-groups>the + * docs</a>. */ public Builder domain(Optional domain) { Utils.checkNotNull(domain, "domain"); @@ -306,6 +322,7 @@ public Builder domain(Optional domain) { return this; } + /** * Endpoint port. */ @@ -324,6 +341,7 @@ public Builder port(Optional port) { return this; } + /** * URL scheme. */ @@ -342,6 +360,7 @@ public Builder scheme(Optional scheme) { return this; } + /** * Fauna secret, used when authenticating with the database. */ @@ -350,7 +369,7 @@ public Builder secret(String secret) { this.secret = secret; return this; } - + public SourceFauna build() { if (domain == null) { domain = _SINGLETON_VALUE_Domain.value(); @@ -361,14 +380,13 @@ public SourceFauna build() { if (scheme == null) { scheme = _SINGLETON_VALUE_Scheme.value(); } + return new SourceFauna( - collection, - domain, - port, - scheme, - secret); + collection, domain, port, + scheme, secret); } + private static final LazySingletonValue> _SINGLETON_VALUE_Domain = new LazySingletonValue<>( "domain", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java b/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java index b40c43a96..7bc46a448 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFaunaDeletionMode.java @@ -14,7 +14,7 @@ public enum SourceFaunaDeletionMode { @JsonValue private final String value; - private SourceFaunaDeletionMode(String value) { + SourceFaunaDeletionMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java b/src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java index 7d156fea9..cd569f97d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFaunaSchemasDeletionMode.java @@ -14,7 +14,7 @@ public enum SourceFaunaSchemasDeletionMode { @JsonValue private final String value; - private SourceFaunaSchemasDeletionMode(String value) { + SourceFaunaSchemasDeletionMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFile.java b/src/main/java/com/airbyte/api/models/shared/SourceFile.java index 34999c269..6c3792688 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFile.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFile.java @@ -14,19 +14,20 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceFile { +public class SourceFile { /** - * The Name of the final table to replicate this file into (should include letters, numbers dash and underscores only). + * The Name of the final table to replicate this file into (should include letters, numbers dash and + * underscores only). */ @JsonProperty("dataset_name") private String datasetName; /** - * The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). + * The Format of the file which should be replicated (Warning: some formats may be experimental, please + * refer to the docs). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("format") @@ -39,12 +40,14 @@ public class SourceFile { private StorageProvider provider; /** - * This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior. + * This should be a string in JSON format. It depends on the chosen file format to provide additional + * options and tune its behavior. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("reader_options") private Optional readerOptions; + @JsonProperty("sourceType") private File sourceType; @@ -78,11 +81,13 @@ public SourceFile( String datasetName, StorageProvider provider, String url) { - this(datasetName, Optional.empty(), provider, Optional.empty(), url); + this(datasetName, Optional.empty(), provider, + Optional.empty(), url); } /** - * The Name of the final table to replicate this file into (should include letters, numbers dash and underscores only). + * The Name of the final table to replicate this file into (should include letters, numbers dash and + * underscores only). */ @JsonIgnore public String datasetName() { @@ -90,7 +95,8 @@ public String datasetName() { } /** - * The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). + * The Format of the file which should be replicated (Warning: some formats may be experimental, please + * refer to the docs). */ @SuppressWarnings("unchecked") @JsonIgnore @@ -107,7 +113,8 @@ public StorageProvider provider() { } /** - * This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior. + * This should be a string in JSON format. It depends on the chosen file format to provide additional + * options and tune its behavior. */ @JsonIgnore public Optional readerOptions() { @@ -127,12 +134,14 @@ public String url() { return url; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Name of the final table to replicate this file into (should include letters, numbers dash and underscores only). + * The Name of the final table to replicate this file into (should include letters, numbers dash and + * underscores only). */ public SourceFile withDatasetName(String datasetName) { Utils.checkNotNull(datasetName, "datasetName"); @@ -141,7 +150,8 @@ public SourceFile withDatasetName(String datasetName) { } /** - * The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). + * The Format of the file which should be replicated (Warning: some formats may be experimental, please + * refer to the docs). */ public SourceFile withFormat(FileFormat format) { Utils.checkNotNull(format, "format"); @@ -149,8 +159,10 @@ public SourceFile withFormat(FileFormat format) { return this; } + /** - * The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). + * The Format of the file which should be replicated (Warning: some formats may be experimental, please + * refer to the docs). */ public SourceFile withFormat(Optional format) { Utils.checkNotNull(format, "format"); @@ -168,7 +180,8 @@ public SourceFile withProvider(StorageProvider provider) { } /** - * This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior. + * This should be a string in JSON format. It depends on the chosen file format to provide additional + * options and tune its behavior. */ public SourceFile withReaderOptions(String readerOptions) { Utils.checkNotNull(readerOptions, "readerOptions"); @@ -176,8 +189,10 @@ public SourceFile withReaderOptions(String readerOptions) { return this; } + /** - * This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior. + * This should be a string in JSON format. It depends on the chosen file format to provide additional + * options and tune its behavior. */ public SourceFile withReaderOptions(Optional readerOptions) { Utils.checkNotNull(readerOptions, "readerOptions"); @@ -194,7 +209,6 @@ public SourceFile withUrl(String url) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -205,23 +219,19 @@ public boolean equals(java.lang.Object o) { } SourceFile other = (SourceFile) o; return - Objects.deepEquals(this.datasetName, other.datasetName) && - Objects.deepEquals(this.format, other.format) && - Objects.deepEquals(this.provider, other.provider) && - Objects.deepEquals(this.readerOptions, other.readerOptions) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.url, other.url); + Utils.enhancedDeepEquals(this.datasetName, other.datasetName) && + Utils.enhancedDeepEquals(this.format, other.format) && + Utils.enhancedDeepEquals(this.provider, other.provider) && + Utils.enhancedDeepEquals(this.readerOptions, other.readerOptions) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.url, other.url); } @Override public int hashCode() { - return Objects.hash( - datasetName, - format, - provider, - readerOptions, - sourceType, - url); + return Utils.enhancedHash( + datasetName, format, provider, + readerOptions, sourceType, url); } @Override @@ -234,25 +244,28 @@ public String toString() { "sourceType", sourceType, "url", url); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String datasetName; - + private Optional format; - + private StorageProvider provider; - + private Optional readerOptions = Optional.empty(); - + private String url; - + private Builder() { // force use of static builder() method } + /** - * The Name of the final table to replicate this file into (should include letters, numbers dash and underscores only). + * The Name of the final table to replicate this file into (should include letters, numbers dash and + * underscores only). */ public Builder datasetName(String datasetName) { Utils.checkNotNull(datasetName, "datasetName"); @@ -260,8 +273,10 @@ public Builder datasetName(String datasetName) { return this; } + /** - * The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). + * The Format of the file which should be replicated (Warning: some formats may be experimental, please + * refer to the docs). */ public Builder format(FileFormat format) { Utils.checkNotNull(format, "format"); @@ -270,7 +285,8 @@ public Builder format(FileFormat format) { } /** - * The Format of the file which should be replicated (Warning: some formats may be experimental, please refer to the docs). + * The Format of the file which should be replicated (Warning: some formats may be experimental, please + * refer to the docs). */ public Builder format(Optional format) { Utils.checkNotNull(format, "format"); @@ -278,6 +294,7 @@ public Builder format(Optional format) { return this; } + /** * The storage Provider or Location of the file(s) which should be replicated. */ @@ -287,8 +304,10 @@ public Builder provider(StorageProvider provider) { return this; } + /** - * This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior. + * This should be a string in JSON format. It depends on the chosen file format to provide additional + * options and tune its behavior. */ public Builder readerOptions(String readerOptions) { Utils.checkNotNull(readerOptions, "readerOptions"); @@ -297,7 +316,8 @@ public Builder readerOptions(String readerOptions) { } /** - * This should be a string in JSON format. It depends on the chosen file format to provide additional options and tune its behavior. + * This should be a string in JSON format. It depends on the chosen file format to provide additional + * options and tune its behavior. */ public Builder readerOptions(Optional readerOptions) { Utils.checkNotNull(readerOptions, "readerOptions"); @@ -305,6 +325,7 @@ public Builder readerOptions(Optional readerOptions) { return this; } + /** * The URL path to access the file which should be replicated. */ @@ -313,19 +334,18 @@ public Builder url(String url) { this.url = url; return this; } - + public SourceFile build() { if (format == null) { format = _SINGLETON_VALUE_Format.value(); } + return new SourceFile( - datasetName, - format, - provider, - readerOptions, - url); + datasetName, format, provider, + readerOptions, url); } + private static final LazySingletonValue> _SINGLETON_VALUE_Format = new LazySingletonValue<>( "format", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorage.java index 96f6320eb..a69c54f5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorage.java @@ -14,7 +14,7 @@ public enum SourceFileSchemasProviderStorage { @JsonValue private final String value; - private SourceFileSchemasProviderStorage(String value) { + SourceFileSchemasProviderStorage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider6Storage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider6Storage.java index 9a7c77fed..393045d5a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider6Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider6Storage.java @@ -14,7 +14,7 @@ public enum SourceFileSchemasProviderStorageProvider6Storage { @JsonValue private final String value; - private SourceFileSchemasProviderStorageProvider6Storage(String value) { + SourceFileSchemasProviderStorageProvider6Storage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java index 98062cc96..bd6eb3856 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider7Storage.java @@ -14,7 +14,7 @@ public enum SourceFileSchemasProviderStorageProvider7Storage { @JsonValue private final String value; - private SourceFileSchemasProviderStorageProvider7Storage(String value) { + SourceFileSchemasProviderStorageProvider7Storage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java index 3e0bfb2d5..8572e1556 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProvider8Storage.java @@ -11,7 +11,8 @@ /** * SourceFileSchemasProviderStorageProvider8Storage * - *

    WARNING: Note that the local storage URL available for reading must start with the local mount "/local/" at the moment until we implement more advanced docker mounting options. + *

    WARNING: Note that the local storage URL available for reading must start with the local mount + * "/local/" at the moment until we implement more advanced docker mounting options. */ public enum SourceFileSchemasProviderStorageProvider8Storage { LOCAL("local"); @@ -19,7 +20,7 @@ public enum SourceFileSchemasProviderStorageProvider8Storage { @JsonValue private final String value; - private SourceFileSchemasProviderStorageProvider8Storage(String value) { + SourceFileSchemasProviderStorageProvider8Storage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProviderStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProviderStorage.java index 07fd491b1..4af064337 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProviderStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasProviderStorageProviderStorage.java @@ -14,7 +14,7 @@ public enum SourceFileSchemasProviderStorageProviderStorage { @JsonValue private final String value; - private SourceFileSchemasProviderStorageProviderStorage(String value) { + SourceFileSchemasProviderStorageProviderStorage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasStorage.java index e653b8921..b877effb2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileSchemasStorage.java @@ -14,7 +14,7 @@ public enum SourceFileSchemasStorage { @JsonValue private final String value; - private SourceFileSchemasStorage(String value) { + SourceFileSchemasStorage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFileStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceFileStorage.java index 54c298949..c536cb2cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFileStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFileStorage.java @@ -14,7 +14,7 @@ public enum SourceFileStorage { @JsonValue private final String value; - private SourceFileStorage(String value) { + SourceFileStorage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFillout.java b/src/main/java/com/airbyte/api/models/shared/SourceFillout.java index b32b2573d..46fed3330 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFillout.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFillout.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceFillout { +public class SourceFillout { /** * API key to use. Find it in the Developer settings tab of your Fillout account. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Fillout sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it in the Developer settings tab of your Fillout account. @@ -76,7 +78,6 @@ public SourceFillout withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceFillout other = (SourceFillout) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it in the Developer settings tab of your Fillout account. */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceFillout build() { + return new SourceFillout( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFinage.java b/src/main/java/com/airbyte/api/models/shared/SourceFinage.java index 9d4d7707c..f67a431d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFinage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFinage.java @@ -17,9 +17,9 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceFinage { @JsonProperty("api_key") @@ -32,9 +32,11 @@ public class SourceFinage { @JsonProperty("period") private Optional period; + @JsonProperty("sourceType") private Finage sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,6 +53,7 @@ public class SourceFinage { @JsonProperty("tech_indicator_type") private Optional techIndicatorType; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("time") private Optional time; @@ -102,7 +105,9 @@ public SourceFinage( String apiKey, OffsetDateTime startDate, List symbols) { - this(apiKey, Optional.empty(), startDate, symbols, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, Optional.empty(), startDate, + symbols, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } @JsonIgnore @@ -169,9 +174,10 @@ public Optional timePeriod() { return (Optional) timePeriod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceFinage withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -188,6 +194,7 @@ public SourceFinage withPeriod(String period) { return this; } + /** * Time period. Default is 10 */ @@ -221,6 +228,7 @@ public SourceFinage withTechIndicatorType(TechnicalIndicatorType techIndicatorTy return this; } + /** * One of DEMA, EMA, SMA, WMA, RSI, TEMA, Williams, ADX */ @@ -236,6 +244,7 @@ public SourceFinage withTime(TimeInterval time) { return this; } + public SourceFinage withTime(Optional time) { Utils.checkNotNull(time, "time"); this.time = time; @@ -251,6 +260,7 @@ public SourceFinage withTimeAggregates(TimeAggregates timeAggregates) { return this; } + /** * Size of the time */ @@ -269,6 +279,7 @@ public SourceFinage withTimePeriod(TimePeriod timePeriod) { return this; } + /** * Time Period for cash flow stmts */ @@ -278,7 +289,6 @@ public SourceFinage withTimePeriod(Optional timePeriod) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -289,29 +299,23 @@ public boolean equals(java.lang.Object o) { } SourceFinage other = (SourceFinage) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.period, other.period) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.symbols, other.symbols) && - Objects.deepEquals(this.techIndicatorType, other.techIndicatorType) && - Objects.deepEquals(this.time, other.time) && - Objects.deepEquals(this.timeAggregates, other.timeAggregates) && - Objects.deepEquals(this.timePeriod, other.timePeriod); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.period, other.period) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.symbols, other.symbols) && + Utils.enhancedDeepEquals(this.techIndicatorType, other.techIndicatorType) && + Utils.enhancedDeepEquals(this.time, other.time) && + Utils.enhancedDeepEquals(this.timeAggregates, other.timeAggregates) && + Utils.enhancedDeepEquals(this.timePeriod, other.timePeriod); } @Override public int hashCode() { - return Objects.hash( - apiKey, - period, - sourceType, - startDate, - symbols, - techIndicatorType, - time, - timeAggregates, - timePeriod); + return Utils.enhancedHash( + apiKey, period, sourceType, + startDate, symbols, techIndicatorType, + time, timeAggregates, timePeriod); } @Override @@ -327,35 +331,38 @@ public String toString() { "timeAggregates", timeAggregates, "timePeriod", timePeriod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional period = Optional.empty(); - + private OffsetDateTime startDate; - + private List symbols; - + private Optional techIndicatorType; - + private Optional time; - + private Optional timeAggregates; - + private Optional timePeriod = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Time period. Default is 10 */ @@ -374,12 +381,14 @@ public Builder period(Optional period) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * List of symbols */ @@ -389,6 +398,7 @@ public Builder symbols(List symbols) { return this; } + /** * One of DEMA, EMA, SMA, WMA, RSI, TEMA, Williams, ADX */ @@ -407,6 +417,7 @@ public Builder techIndicatorType(Optional tech return this; } + public Builder time(TimeInterval time) { Utils.checkNotNull(time, "time"); this.time = Optional.ofNullable(time); @@ -419,6 +430,7 @@ public Builder time(Optional time) { return this; } + /** * Size of the time */ @@ -437,6 +449,7 @@ public Builder timeAggregates(Optional timeAggregates) return this; } + /** * Time Period for cash flow stmts */ @@ -454,7 +467,7 @@ public Builder timePeriod(Optional timePeriod) { this.timePeriod = timePeriod; return this; } - + public SourceFinage build() { if (techIndicatorType == null) { techIndicatorType = _SINGLETON_VALUE_TechIndicatorType.value(); @@ -465,17 +478,14 @@ public SourceFinage build() { if (timeAggregates == null) { timeAggregates = _SINGLETON_VALUE_TimeAggregates.value(); } + return new SourceFinage( - apiKey, - period, - startDate, - symbols, - techIndicatorType, - time, - timeAggregates, - timePeriod); + apiKey, period, startDate, + symbols, techIndicatorType, time, + timeAggregates, timePeriod); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFinancialModelling.java b/src/main/java/com/airbyte/api/models/shared/SourceFinancialModelling.java index 33a41b281..32e023f5a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFinancialModelling.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFinancialModelling.java @@ -15,16 +15,19 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceFinancialModelling { @JsonProperty("api_key") private String apiKey; /** - * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA + * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, + * CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, + * KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, + * SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("exchange") @@ -44,9 +47,11 @@ public class SourceFinancialModelling { @JsonProperty("marketcapmorethan") private Optional marketcapmorethan; + @JsonProperty("sourceType") private FinancialModelling sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -83,7 +88,8 @@ public SourceFinancialModelling( public SourceFinancialModelling( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), startDate, Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), startDate, Optional.empty()); } @JsonIgnore @@ -92,7 +98,10 @@ public String apiKey() { } /** - * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA + * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, + * CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, + * KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, + * SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA */ @JsonIgnore public Optional exchange() { @@ -134,9 +143,10 @@ public Optional timeFrame() { return (Optional) timeFrame; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceFinancialModelling withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -145,7 +155,10 @@ public SourceFinancialModelling withApiKey(String apiKey) { } /** - * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA + * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, + * CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, + * KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, + * SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA */ public SourceFinancialModelling withExchange(String exchange) { Utils.checkNotNull(exchange, "exchange"); @@ -153,8 +166,12 @@ public SourceFinancialModelling withExchange(String exchange) { return this; } + /** - * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA + * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, + * CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, + * KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, + * SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA */ public SourceFinancialModelling withExchange(Optional exchange) { Utils.checkNotNull(exchange, "exchange"); @@ -171,6 +188,7 @@ public SourceFinancialModelling withMarketcaplowerthan(String marketcaplowerthan return this; } + /** * Used in screener to filter out stocks with a market cap lower than the give marketcap */ @@ -189,6 +207,7 @@ public SourceFinancialModelling withMarketcapmorethan(String marketcapmorethan) return this; } + /** * Used in screener to filter out stocks with a market cap more than the give marketcap */ @@ -213,6 +232,7 @@ public SourceFinancialModelling withTimeFrame(TimeFrame timeFrame) { return this; } + /** * For example 1min, 5min, 15min, 30min, 1hour, 4hour */ @@ -222,7 +242,6 @@ public SourceFinancialModelling withTimeFrame(Optional time return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -233,24 +252,20 @@ public boolean equals(java.lang.Object o) { } SourceFinancialModelling other = (SourceFinancialModelling) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.exchange, other.exchange) && - Objects.deepEquals(this.marketcaplowerthan, other.marketcaplowerthan) && - Objects.deepEquals(this.marketcapmorethan, other.marketcapmorethan) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.timeFrame, other.timeFrame); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.exchange, other.exchange) && + Utils.enhancedDeepEquals(this.marketcaplowerthan, other.marketcaplowerthan) && + Utils.enhancedDeepEquals(this.marketcapmorethan, other.marketcapmorethan) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.timeFrame, other.timeFrame); } @Override public int hashCode() { - return Objects.hash( - apiKey, - exchange, - marketcaplowerthan, - marketcapmorethan, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, exchange, marketcaplowerthan, + marketcapmorethan, sourceType, startDate, timeFrame); } @@ -265,33 +280,39 @@ public String toString() { "startDate", startDate, "timeFrame", timeFrame); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional exchange; - + private Optional marketcaplowerthan = Optional.empty(); - + private Optional marketcapmorethan = Optional.empty(); - + private OffsetDateTime startDate; - + private Optional timeFrame; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** - * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA + * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, + * CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, + * KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, + * SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA */ public Builder exchange(String exchange) { Utils.checkNotNull(exchange, "exchange"); @@ -300,7 +321,10 @@ public Builder exchange(String exchange) { } /** - * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA + * The stock exchange : AMEX, AMS, AQS, ASX, ATH, BER, BME, BRU, BSE, BUD, BUE, BVC, CAI, CBOE, CNQ, + * CPH, DFM, DOH, DUS, DXE, EGX, EURONEXT, HAM, HEL, HKSE, ICE, IOB, IST, JKT, JNB, JPX, KLS, KOE, KSC, + * KUW, LSE, MCX, MEX, MIL, MUN, NASDAQ, NEO, NSE, NYSE, NZE, OEM, OQX, OSL, OTC, PNK, PRA, RIS, SAO, + * SAU, SES, SET, SGO, SHH, SHZ, SIX, STO, STU, TAI, TLV, TSX, TSXV, TWO, VIE, VSE, WSE, XETRA */ public Builder exchange(Optional exchange) { Utils.checkNotNull(exchange, "exchange"); @@ -308,6 +332,7 @@ public Builder exchange(Optional exchange) { return this; } + /** * Used in screener to filter out stocks with a market cap lower than the give marketcap */ @@ -326,6 +351,7 @@ public Builder marketcaplowerthan(Optional marketcaplowerthan) { return this; } + /** * Used in screener to filter out stocks with a market cap more than the give marketcap */ @@ -344,12 +370,14 @@ public Builder marketcapmorethan(Optional marketcapmorethan) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * For example 1min, 5min, 15min, 30min, 1hour, 4hour */ @@ -367,7 +395,7 @@ public Builder timeFrame(Optional timeFrame) { this.timeFrame = timeFrame; return this; } - + public SourceFinancialModelling build() { if (exchange == null) { exchange = _SINGLETON_VALUE_Exchange.value(); @@ -375,15 +403,13 @@ public SourceFinancialModelling build() { if (timeFrame == null) { timeFrame = _SINGLETON_VALUE_TimeFrame.value(); } + return new SourceFinancialModelling( - apiKey, - exchange, - marketcaplowerthan, - marketcapmorethan, - startDate, - timeFrame); + apiKey, exchange, marketcaplowerthan, + marketcapmorethan, startDate, timeFrame); } + private static final LazySingletonValue> _SINGLETON_VALUE_Exchange = new LazySingletonValue<>( "exchange", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFinnhub.java b/src/main/java/com/airbyte/api/models/shared/SourceFinnhub.java index 9457092c5..313ea8bb0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFinnhub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFinnhub.java @@ -17,11 +17,10 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceFinnhub { +public class SourceFinnhub { /** * The API key to use for authentication */ @@ -42,12 +41,15 @@ public class SourceFinnhub { @JsonProperty("market_news_category") private Optional marketNewsCategory; + @JsonProperty("sourceType") private Finnhub sourceType; + @JsonProperty("start_date_2") private OffsetDateTime startDate2; + @JsonProperty("symbols") private List symbols; @@ -75,7 +77,8 @@ public SourceFinnhub( String apiKey, OffsetDateTime startDate2, List symbols) { - this(apiKey, Optional.empty(), Optional.empty(), startDate2, symbols); + this(apiKey, Optional.empty(), Optional.empty(), + startDate2, symbols); } /** @@ -118,9 +121,10 @@ public List symbols() { return symbols; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API key to use for authentication @@ -140,6 +144,7 @@ public SourceFinnhub withExchange(String exchange) { return this; } + /** * More info: https://finnhub.io/docs/api/stock-symbols */ @@ -158,6 +163,7 @@ public SourceFinnhub withMarketNewsCategory(MarketNewsCategory marketNewsCategor return this; } + /** * This parameter can be 1 of the following values general, forex, crypto, merger. */ @@ -179,7 +185,6 @@ public SourceFinnhub withSymbols(List symbols) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -190,23 +195,19 @@ public boolean equals(java.lang.Object o) { } SourceFinnhub other = (SourceFinnhub) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.exchange, other.exchange) && - Objects.deepEquals(this.marketNewsCategory, other.marketNewsCategory) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate2, other.startDate2) && - Objects.deepEquals(this.symbols, other.symbols); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.exchange, other.exchange) && + Utils.enhancedDeepEquals(this.marketNewsCategory, other.marketNewsCategory) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate2, other.startDate2) && + Utils.enhancedDeepEquals(this.symbols, other.symbols); } @Override public int hashCode() { - return Objects.hash( - apiKey, - exchange, - marketNewsCategory, - sourceType, - startDate2, - symbols); + return Utils.enhancedHash( + apiKey, exchange, marketNewsCategory, + sourceType, startDate2, symbols); } @Override @@ -219,23 +220,25 @@ public String toString() { "startDate2", startDate2, "symbols", symbols); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional exchange; - + private Optional marketNewsCategory; - + private OffsetDateTime startDate2; - + private List symbols; - + private Builder() { // force use of static builder() method } + /** * The API key to use for authentication */ @@ -245,6 +248,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * More info: https://finnhub.io/docs/api/stock-symbols */ @@ -263,6 +267,7 @@ public Builder exchange(Optional exchange) { return this; } + /** * This parameter can be 1 of the following values general, forex, crypto, merger. */ @@ -281,18 +286,20 @@ public Builder marketNewsCategory(Optional marketN return this; } + public Builder startDate2(OffsetDateTime startDate2) { Utils.checkNotNull(startDate2, "startDate2"); this.startDate2 = startDate2; return this; } + public Builder symbols(List symbols) { Utils.checkNotNull(symbols, "symbols"); this.symbols = symbols; return this; } - + public SourceFinnhub build() { if (exchange == null) { exchange = _SINGLETON_VALUE_Exchange.value(); @@ -300,14 +307,13 @@ public SourceFinnhub build() { if (marketNewsCategory == null) { marketNewsCategory = _SINGLETON_VALUE_MarketNewsCategory.value(); } + return new SourceFinnhub( - apiKey, - exchange, - marketNewsCategory, - startDate2, - symbols); + apiKey, exchange, marketNewsCategory, + startDate2, symbols); } + private static final LazySingletonValue> _SINGLETON_VALUE_Exchange = new LazySingletonValue<>( "exchange", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFinnworlds.java b/src/main/java/com/airbyte/api/models/shared/SourceFinnworlds.java index fd98e687d..263c2825a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFinnworlds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFinnworlds.java @@ -17,11 +17,10 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceFinnworlds { +public class SourceFinnworlds { /** * For example 10y, 5y, 2y... */ @@ -30,7 +29,7 @@ public class SourceFinnworlds { private Optional> bondType; /** - * Options Available: beef, cheese, oil, ... + * Options Available: beef, cheese, oil,... */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("commodities") @@ -43,6 +42,7 @@ public class SourceFinnworlds { @JsonProperty("countries") private Optional> countries; + @JsonProperty("key") private String key; @@ -53,13 +53,16 @@ public class SourceFinnworlds { @JsonProperty("list") private Optional list; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("list_countries_for_bonds") private Optional listCountriesForBonds; + @JsonProperty("sourceType") private Finnworlds sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -102,7 +105,9 @@ public SourceFinnworlds( public SourceFinnworlds( String key, OffsetDateTime startDate) { - this(Optional.empty(), Optional.empty(), Optional.empty(), key, Optional.empty(), Optional.empty(), startDate, Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + key, Optional.empty(), Optional.empty(), + startDate, Optional.empty()); } /** @@ -115,7 +120,7 @@ public Optional> bondType() { } /** - * Options Available: beef, cheese, oil, ... + * Options Available: beef, cheese, oil,... */ @SuppressWarnings("unchecked") @JsonIgnore @@ -169,9 +174,10 @@ public Optional> tickers() { return (Optional>) tickers; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * For example 10y, 5y, 2y... @@ -182,6 +188,7 @@ public SourceFinnworlds withBondType(List bondType) { return this; } + /** * For example 10y, 5y, 2y... */ @@ -192,7 +199,7 @@ public SourceFinnworlds withBondType(Optional> bondType) } /** - * Options Available: beef, cheese, oil, ... + * Options Available: beef, cheese, oil,... */ public SourceFinnworlds withCommodities(List commodities) { Utils.checkNotNull(commodities, "commodities"); @@ -200,8 +207,9 @@ public SourceFinnworlds withCommodities(List commodities) { return this; } + /** - * Options Available: beef, cheese, oil, ... + * Options Available: beef, cheese, oil,... */ public SourceFinnworlds withCommodities(Optional> commodities) { Utils.checkNotNull(commodities, "commodities"); @@ -218,6 +226,7 @@ public SourceFinnworlds withCountries(List countries) { return this; } + /** * brazil, united states, italia, japan */ @@ -242,6 +251,7 @@ public SourceFinnworlds withList(String list) { return this; } + /** * Choose isin, ticker, reg_lei or cik */ @@ -257,6 +267,7 @@ public SourceFinnworlds withListCountriesForBonds(String listCountriesForBonds) return this; } + public SourceFinnworlds withListCountriesForBonds(Optional listCountriesForBonds) { Utils.checkNotNull(listCountriesForBonds, "listCountriesForBonds"); this.listCountriesForBonds = listCountriesForBonds; @@ -278,6 +289,7 @@ public SourceFinnworlds withTickers(List tickers) { return this; } + /** * AAPL, T, MU, GOOG */ @@ -287,7 +299,6 @@ public SourceFinnworlds withTickers(Optional> tickers) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -298,29 +309,23 @@ public boolean equals(java.lang.Object o) { } SourceFinnworlds other = (SourceFinnworlds) o; return - Objects.deepEquals(this.bondType, other.bondType) && - Objects.deepEquals(this.commodities, other.commodities) && - Objects.deepEquals(this.countries, other.countries) && - Objects.deepEquals(this.key, other.key) && - Objects.deepEquals(this.list, other.list) && - Objects.deepEquals(this.listCountriesForBonds, other.listCountriesForBonds) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.tickers, other.tickers); + Utils.enhancedDeepEquals(this.bondType, other.bondType) && + Utils.enhancedDeepEquals(this.commodities, other.commodities) && + Utils.enhancedDeepEquals(this.countries, other.countries) && + Utils.enhancedDeepEquals(this.key, other.key) && + Utils.enhancedDeepEquals(this.list, other.list) && + Utils.enhancedDeepEquals(this.listCountriesForBonds, other.listCountriesForBonds) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.tickers, other.tickers); } @Override public int hashCode() { - return Objects.hash( - bondType, - commodities, - countries, - key, - list, - listCountriesForBonds, - sourceType, - startDate, - tickers); + return Utils.enhancedHash( + bondType, commodities, countries, + key, list, listCountriesForBonds, + sourceType, startDate, tickers); } @Override @@ -336,29 +341,31 @@ public String toString() { "startDate", startDate, "tickers", tickers); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> bondType = Optional.empty(); - + private Optional> commodities = Optional.empty(); - + private Optional> countries = Optional.empty(); - + private String key; - + private Optional list; - + private Optional listCountriesForBonds; - + private OffsetDateTime startDate; - + private Optional> tickers = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * For example 10y, 5y, 2y... */ @@ -377,8 +384,9 @@ public Builder bondType(Optional> bondType) { return this; } + /** - * Options Available: beef, cheese, oil, ... + * Options Available: beef, cheese, oil,... */ public Builder commodities(List commodities) { Utils.checkNotNull(commodities, "commodities"); @@ -387,7 +395,7 @@ public Builder commodities(List commodities) { } /** - * Options Available: beef, cheese, oil, ... + * Options Available: beef, cheese, oil,... */ public Builder commodities(Optional> commodities) { Utils.checkNotNull(commodities, "commodities"); @@ -395,6 +403,7 @@ public Builder commodities(Optional> commodities) { return this; } + /** * brazil, united states, italia, japan */ @@ -413,12 +422,14 @@ public Builder countries(Optional> countries) { return this; } + public Builder key(String key) { Utils.checkNotNull(key, "key"); this.key = key; return this; } + /** * Choose isin, ticker, reg_lei or cik */ @@ -437,6 +448,7 @@ public Builder list(Optional list) { return this; } + public Builder listCountriesForBonds(String listCountriesForBonds) { Utils.checkNotNull(listCountriesForBonds, "listCountriesForBonds"); this.listCountriesForBonds = Optional.ofNullable(listCountriesForBonds); @@ -449,12 +461,14 @@ public Builder listCountriesForBonds(Optional listCountriesForBonds) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * AAPL, T, MU, GOOG */ @@ -472,7 +486,7 @@ public Builder tickers(Optional> tickers) { this.tickers = tickers; return this; } - + public SourceFinnworlds build() { if (list == null) { list = _SINGLETON_VALUE_List.value(); @@ -480,17 +494,14 @@ public SourceFinnworlds build() { if (listCountriesForBonds == null) { listCountriesForBonds = _SINGLETON_VALUE_ListCountriesForBonds.value(); } + return new SourceFinnworlds( - bondType, - commodities, - countries, - key, - list, - listCountriesForBonds, - startDate, - tickers); + bondType, commodities, countries, + key, list, listCountriesForBonds, + startDate, tickers); } + private static final LazySingletonValue> _SINGLETON_VALUE_List = new LazySingletonValue<>( "list", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java b/src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java index d8d8d3e49..c978ac13f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFirebolt.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceFirebolt { +public class SourceFirebolt { /** * Firebolt account to login. */ @@ -55,6 +54,7 @@ public class SourceFirebolt { @JsonProperty("host") private Optional host; + @JsonProperty("sourceType") private SourceFireboltFirebolt sourceType; @@ -87,7 +87,8 @@ public SourceFirebolt( String clientSecret, String database, String engine) { - this(account, clientId, clientSecret, database, engine, Optional.empty()); + this(account, clientId, clientSecret, + database, engine, Optional.empty()); } /** @@ -143,9 +144,10 @@ public SourceFireboltFirebolt sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Firebolt account to login. @@ -201,6 +203,7 @@ public SourceFirebolt withHost(String host) { return this; } + /** * The host name of your Firebolt database. */ @@ -210,7 +213,6 @@ public SourceFirebolt withHost(Optional host) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -221,24 +223,20 @@ public boolean equals(java.lang.Object o) { } SourceFirebolt other = (SourceFirebolt) o; return - Objects.deepEquals(this.account, other.account) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.engine, other.engine) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.account, other.account) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.engine, other.engine) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - account, - clientId, - clientSecret, - database, - engine, - host, + return Utils.enhancedHash( + account, clientId, clientSecret, + database, engine, host, sourceType); } @@ -253,25 +251,27 @@ public String toString() { "host", host, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String account; - + private String clientId; - + private String clientSecret; - + private String database; - + private String engine; - + private Optional host = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Firebolt account to login. */ @@ -281,6 +281,7 @@ public Builder account(String account) { return this; } + /** * Firebolt service account ID. */ @@ -290,6 +291,7 @@ public Builder clientId(String clientId) { return this; } + /** * Firebolt secret, corresponding to the service account ID. */ @@ -299,6 +301,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The database to connect to. */ @@ -308,6 +311,7 @@ public Builder database(String database) { return this; } + /** * Engine name to connect to. */ @@ -317,6 +321,7 @@ public Builder engine(String engine) { return this; } + /** * The host name of your Firebolt database. */ @@ -334,17 +339,15 @@ public Builder host(Optional host) { this.host = host; return this; } - + public SourceFirebolt build() { + return new SourceFirebolt( - account, - clientId, - clientSecret, - database, - engine, - host); + account, clientId, clientSecret, + database, engine, host); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java b/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java index 4f9372640..f964b1e15 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFireboltFirebolt.java @@ -14,7 +14,7 @@ public enum SourceFireboltFirebolt { @JsonValue private final String value; - private SourceFireboltFirebolt(String value) { + SourceFireboltFirebolt(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFirehydrant.java b/src/main/java/com/airbyte/api/models/shared/SourceFirehydrant.java index d7611983d..0c7a6bb8a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFirehydrant.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFirehydrant.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceFirehydrant { +public class SourceFirehydrant { /** - * Bot token to use for authenticating with the FireHydrant API. You can find or create a bot token by logging into your organization and visiting the Bot users page at https://app.firehydrant.io/organizations/bots. + * Bot token to use for authenticating with the FireHydrant API. You can find or create a bot token by + * logging into your organization and visiting the Bot users page at + * https://app.firehydrant.io/organizations/bots. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Firehydrant sourceType; @@ -33,7 +35,9 @@ public SourceFirehydrant( } /** - * Bot token to use for authenticating with the FireHydrant API. You can find or create a bot token by logging into your organization and visiting the Bot users page at https://app.firehydrant.io/organizations/bots. + * Bot token to use for authenticating with the FireHydrant API. You can find or create a bot token by + * logging into your organization and visiting the Bot users page at + * https://app.firehydrant.io/organizations/bots. */ @JsonIgnore public String apiToken() { @@ -45,12 +49,15 @@ public Firehydrant sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Bot token to use for authenticating with the FireHydrant API. You can find or create a bot token by logging into your organization and visiting the Bot users page at https://app.firehydrant.io/organizations/bots. + * Bot token to use for authenticating with the FireHydrant API. You can find or create a bot token by + * logging into your organization and visiting the Bot users page at + * https://app.firehydrant.io/organizations/bots. */ public SourceFirehydrant withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -58,7 +65,6 @@ public SourceFirehydrant withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +75,14 @@ public boolean equals(java.lang.Object o) { } SourceFirehydrant other = (SourceFirehydrant) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,29 +91,35 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** - * Bot token to use for authenticating with the FireHydrant API. You can find or create a bot token by logging into your organization and visiting the Bot users page at https://app.firehydrant.io/organizations/bots. + * Bot token to use for authenticating with the FireHydrant API. You can find or create a bot token by + * logging into your organization and visiting the Bot users page at + * https://app.firehydrant.io/organizations/bots. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); this.apiToken = apiToken; return this; } - + public SourceFirehydrant build() { + return new SourceFirehydrant( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java b/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java index abaf861f8..cd523243b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFleetio.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceFleetio { @JsonProperty("account_token") private String accountToken; + @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Fleetio sourceType; @@ -50,9 +52,10 @@ public Fleetio sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceFleetio withAccountToken(String accountToken) { Utils.checkNotNull(accountToken, "accountToken"); @@ -66,7 +69,6 @@ public SourceFleetio withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceFleetio other = (SourceFleetio) o; return - Objects.deepEquals(this.accountToken, other.accountToken) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountToken, other.accountToken) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountToken, - apiKey, - sourceType); + return Utils.enhancedHash( + accountToken, apiKey, sourceType); } @Override @@ -97,35 +97,39 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountToken; - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder accountToken(String accountToken) { Utils.checkNotNull(accountToken, "accountToken"); this.accountToken = accountToken; return this; } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceFleetio build() { + return new SourceFleetio( - accountToken, - apiKey); + accountToken, apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFlexmail.java b/src/main/java/com/airbyte/api/models/shared/SourceFlexmail.java index eb0738d90..f4921675a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFlexmail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFlexmail.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceFlexmail { +public class SourceFlexmail { /** * Your Flexmail account ID. You can find it in your Flexmail account settings. */ @@ -22,11 +21,13 @@ public class SourceFlexmail { private String accountId; /** - * A personal access token for API authentication. Manage your tokens in Flexmail under Settings > API > Personal access tokens. + * A personal access token for API authentication. Manage your tokens in Flexmail under Settings > + * API > Personal access tokens. */ @JsonProperty("personal_access_token") private String personalAccessToken; + @JsonProperty("sourceType") private Flexmail sourceType; @@ -50,7 +51,8 @@ public String accountId() { } /** - * A personal access token for API authentication. Manage your tokens in Flexmail under Settings > API > Personal access tokens. + * A personal access token for API authentication. Manage your tokens in Flexmail under Settings > + * API > Personal access tokens. */ @JsonIgnore public String personalAccessToken() { @@ -62,9 +64,10 @@ public Flexmail sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your Flexmail account ID. You can find it in your Flexmail account settings. @@ -76,7 +79,8 @@ public SourceFlexmail withAccountId(String accountId) { } /** - * A personal access token for API authentication. Manage your tokens in Flexmail under Settings > API > Personal access tokens. + * A personal access token for API authentication. Manage your tokens in Flexmail under Settings > + * API > Personal access tokens. */ public SourceFlexmail withPersonalAccessToken(String personalAccessToken) { Utils.checkNotNull(personalAccessToken, "personalAccessToken"); @@ -84,7 +88,6 @@ public SourceFlexmail withPersonalAccessToken(String personalAccessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +98,15 @@ public boolean equals(java.lang.Object o) { } SourceFlexmail other = (SourceFlexmail) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.personalAccessToken, other.personalAccessToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.personalAccessToken, other.personalAccessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountId, - personalAccessToken, - sourceType); + return Utils.enhancedHash( + accountId, personalAccessToken, sourceType); } @Override @@ -115,17 +116,19 @@ public String toString() { "personalAccessToken", personalAccessToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private String personalAccessToken; - + private Builder() { // force use of static builder() method } + /** * Your Flexmail account ID. You can find it in your Flexmail account settings. */ @@ -135,21 +138,24 @@ public Builder accountId(String accountId) { return this; } + /** - * A personal access token for API authentication. Manage your tokens in Flexmail under Settings > API > Personal access tokens. + * A personal access token for API authentication. Manage your tokens in Flexmail under Settings > + * API > Personal access tokens. */ public Builder personalAccessToken(String personalAccessToken) { Utils.checkNotNull(personalAccessToken, "personalAccessToken"); this.personalAccessToken = personalAccessToken; return this; } - + public SourceFlexmail build() { + return new SourceFlexmail( - accountId, - personalAccessToken); + accountId, personalAccessToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFlexport.java b/src/main/java/com/airbyte/api/models/shared/SourceFlexport.java index cf2de91dd..6617b7b8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFlexport.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFlexport.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceFlexport { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Flexport sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceFlexport withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceFlexport withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceFlexport other = (SourceFlexport) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceFlexport build() { + return new SourceFlexport( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFloat.java b/src/main/java/com/airbyte/api/models/shared/SourceFloat.java index f71a08f4d..6fb9d1ee7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFloat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFloat.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceFloat { +public class SourceFloat { /** * API token obtained from your Float Account Settings page */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Float sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API token obtained from your Float Account Settings page @@ -76,7 +78,6 @@ public SourceFloat withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceFloat other = (SourceFloat) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType, - startDate); + return Utils.enhancedHash( + accessToken, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API token obtained from your Float Account Settings page */ @@ -127,18 +128,20 @@ public Builder accessToken(String accessToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceFloat build() { + return new SourceFloat( - accessToken, - startDate); + accessToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFlowlu.java b/src/main/java/com/airbyte/api/models/shared/SourceFlowlu.java index e5f8f557c..bd933851d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFlowlu.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFlowlu.java @@ -11,19 +11,20 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceFlowlu { +public class SourceFlowlu { /** * The API key to use for authentication */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("company") private String company; + @JsonProperty("sourceType") private Flowlu sourceType; @@ -56,9 +57,10 @@ public Flowlu sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API key to use for authentication @@ -75,7 +77,6 @@ public SourceFlowlu withCompany(String company) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +87,15 @@ public boolean equals(java.lang.Object o) { } SourceFlowlu other = (SourceFlowlu) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.company, other.company) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.company, other.company) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - company, - sourceType); + return Utils.enhancedHash( + apiKey, company, sourceType); } @Override @@ -106,17 +105,19 @@ public String toString() { "company", company, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String company; - + private Builder() { // force use of static builder() method } + /** * The API key to use for authentication */ @@ -126,18 +127,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder company(String company) { Utils.checkNotNull(company, "company"); this.company = company; return this; } - + public SourceFlowlu build() { + return new SourceFlowlu( - apiKey, - company); + apiKey, company); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFormbricks.java b/src/main/java/com/airbyte/api/models/shared/SourceFormbricks.java index 75f58bb31..cc573c218 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFormbricks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFormbricks.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceFormbricks { +public class SourceFormbricks { /** * API key to use. You can generate and find it in your Postman account settings. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Formbricks sourceType; @@ -45,9 +45,10 @@ public Formbricks sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. You can generate and find it in your Postman account settings. @@ -58,7 +59,6 @@ public SourceFormbricks withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceFormbricks other = (SourceFormbricks) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key to use. You can generate and find it in your Postman account settings. */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceFormbricks build() { + return new SourceFormbricks( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreeAgentConnector.java b/src/main/java/com/airbyte/api/models/shared/SourceFreeAgentConnector.java index 2ed04dbd5..7365425e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreeAgentConnector.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreeAgentConnector.java @@ -15,27 +15,32 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceFreeAgentConnector { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token_2") private String clientRefreshToken2; + @JsonProperty("client_secret") private String clientSecret; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("payroll_year") private Optional payrollYear; + @JsonProperty("sourceType") private FreeAgentConnector sourceType; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("updated_since") private Optional updatedSince; @@ -64,7 +69,8 @@ public SourceFreeAgentConnector( String clientId, String clientRefreshToken2, String clientSecret) { - this(clientId, clientRefreshToken2, clientSecret, Optional.empty(), Optional.empty()); + this(clientId, clientRefreshToken2, clientSecret, + Optional.empty(), Optional.empty()); } @JsonIgnore @@ -97,9 +103,10 @@ public Optional updatedSince() { return updatedSince; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceFreeAgentConnector withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -125,6 +132,7 @@ public SourceFreeAgentConnector withPayrollYear(double payrollYear) { return this; } + public SourceFreeAgentConnector withPayrollYear(Optional payrollYear) { Utils.checkNotNull(payrollYear, "payrollYear"); this.payrollYear = payrollYear; @@ -137,13 +145,13 @@ public SourceFreeAgentConnector withUpdatedSince(OffsetDateTime updatedSince) { return this; } + public SourceFreeAgentConnector withUpdatedSince(Optional updatedSince) { Utils.checkNotNull(updatedSince, "updatedSince"); this.updatedSince = updatedSince; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -154,23 +162,19 @@ public boolean equals(java.lang.Object o) { } SourceFreeAgentConnector other = (SourceFreeAgentConnector) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken2, other.clientRefreshToken2) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.payrollYear, other.payrollYear) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.updatedSince, other.updatedSince); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken2, other.clientRefreshToken2) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.payrollYear, other.payrollYear) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.updatedSince, other.updatedSince); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientRefreshToken2, - clientSecret, - payrollYear, - sourceType, - updatedSince); + return Utils.enhancedHash( + clientId, clientRefreshToken2, clientSecret, + payrollYear, sourceType, updatedSince); } @Override @@ -183,41 +187,46 @@ public String toString() { "sourceType", sourceType, "updatedSince", updatedSince); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientRefreshToken2; - + private String clientSecret; - + private Optional payrollYear = Optional.empty(); - + private Optional updatedSince = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken2(String clientRefreshToken2) { Utils.checkNotNull(clientRefreshToken2, "clientRefreshToken2"); this.clientRefreshToken2 = clientRefreshToken2; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder payrollYear(double payrollYear) { Utils.checkNotNull(payrollYear, "payrollYear"); this.payrollYear = Optional.ofNullable(payrollYear); @@ -230,6 +239,7 @@ public Builder payrollYear(Optional payrollYear) { return this; } + public Builder updatedSince(OffsetDateTime updatedSince) { Utils.checkNotNull(updatedSince, "updatedSince"); this.updatedSince = Optional.ofNullable(updatedSince); @@ -241,16 +251,15 @@ public Builder updatedSince(Optional updatedSince) { this.updatedSince = updatedSince; return this; } - + public SourceFreeAgentConnector build() { + return new SourceFreeAgentConnector( - clientId, - clientRefreshToken2, - clientSecret, - payrollYear, - updatedSince); + clientId, clientRefreshToken2, clientSecret, + payrollYear, updatedSince); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreightview.java b/src/main/java/com/airbyte/api/models/shared/SourceFreightview.java index f5d1a8572..3d4039792 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreightview.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreightview.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceFreightview { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private Freightview sourceType; @@ -50,9 +52,10 @@ public Freightview sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceFreightview withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -66,7 +69,6 @@ public SourceFreightview withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceFreightview other = (SourceFreightview) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - sourceType); + return Utils.enhancedHash( + clientId, clientSecret, sourceType); } @Override @@ -97,35 +97,39 @@ public String toString() { "clientSecret", clientSecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourceFreightview build() { + return new SourceFreightview( - clientId, - clientSecret); + clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshbooks.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshbooks.java index d471c80de..016f4b849 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshbooks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshbooks.java @@ -14,43 +14,51 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceFreshbooks { @JsonProperty("account_id") private String accountId; + @JsonProperty("business_uuid") private String businessUuid; + @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token") private String clientRefreshToken; + @JsonProperty("client_secret") private String clientSecret; /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("oauth_access_token") private Optional oauthAccessToken; /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("oauth_token_expiry_date") private Optional oauthTokenExpiryDate; + @JsonProperty("redirect_uri") private String redirectUri; + @JsonProperty("sourceType") private Freshbooks sourceType; @@ -90,7 +98,9 @@ public SourceFreshbooks( String clientRefreshToken, String clientSecret, String redirectUri) { - this(accountId, businessUuid, clientId, clientRefreshToken, clientSecret, Optional.empty(), Optional.empty(), redirectUri); + this(accountId, businessUuid, clientId, + clientRefreshToken, clientSecret, Optional.empty(), + Optional.empty(), redirectUri); } @JsonIgnore @@ -119,7 +129,8 @@ public String clientSecret() { } /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ @JsonIgnore public Optional oauthAccessToken() { @@ -127,7 +138,8 @@ public Optional oauthAccessToken() { } /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ @JsonIgnore public Optional oauthTokenExpiryDate() { @@ -144,9 +156,10 @@ public Freshbooks sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceFreshbooks withAccountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -179,7 +192,8 @@ public SourceFreshbooks withClientSecret(String clientSecret) { } /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public SourceFreshbooks withOauthAccessToken(String oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -187,8 +201,10 @@ public SourceFreshbooks withOauthAccessToken(String oauthAccessToken) { return this; } + /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public SourceFreshbooks withOauthAccessToken(Optional oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -197,7 +213,8 @@ public SourceFreshbooks withOauthAccessToken(Optional oauthAccessToken) } /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public SourceFreshbooks withOauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -205,8 +222,10 @@ public SourceFreshbooks withOauthTokenExpiryDate(OffsetDateTime oauthTokenExpiry return this; } + /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public SourceFreshbooks withOauthTokenExpiryDate(Optional oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -220,7 +239,6 @@ public SourceFreshbooks withRedirectUri(String redirectUri) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -231,29 +249,23 @@ public boolean equals(java.lang.Object o) { } SourceFreshbooks other = (SourceFreshbooks) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.businessUuid, other.businessUuid) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken, other.clientRefreshToken) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.oauthAccessToken, other.oauthAccessToken) && - Objects.deepEquals(this.oauthTokenExpiryDate, other.oauthTokenExpiryDate) && - Objects.deepEquals(this.redirectUri, other.redirectUri) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.businessUuid, other.businessUuid) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.oauthAccessToken, other.oauthAccessToken) && + Utils.enhancedDeepEquals(this.oauthTokenExpiryDate, other.oauthTokenExpiryDate) && + Utils.enhancedDeepEquals(this.redirectUri, other.redirectUri) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountId, - businessUuid, - clientId, - clientRefreshToken, - clientSecret, - oauthAccessToken, - oauthTokenExpiryDate, - redirectUri, - sourceType); + return Utils.enhancedHash( + accountId, businessUuid, clientId, + clientRefreshToken, clientSecret, oauthAccessToken, + oauthTokenExpiryDate, redirectUri, sourceType); } @Override @@ -269,61 +281,69 @@ public String toString() { "redirectUri", redirectUri, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private String businessUuid; - + private String clientId; - + private String clientRefreshToken; - + private String clientSecret; - + private Optional oauthAccessToken = Optional.empty(); - + private Optional oauthTokenExpiryDate = Optional.empty(); - + private String redirectUri; - + private Builder() { // force use of static builder() method } + public Builder accountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); this.accountId = accountId; return this; } + public Builder businessUuid(String businessUuid) { Utils.checkNotNull(businessUuid, "businessUuid"); this.businessUuid = businessUuid; return this; } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); this.clientRefreshToken = clientRefreshToken; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public Builder oauthAccessToken(String oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -332,7 +352,8 @@ public Builder oauthAccessToken(String oauthAccessToken) { } /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public Builder oauthAccessToken(Optional oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -340,8 +361,10 @@ public Builder oauthAccessToken(Optional oauthAccessToken) { return this; } + /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public Builder oauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -350,7 +373,8 @@ public Builder oauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { } /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public Builder oauthTokenExpiryDate(Optional oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -358,24 +382,22 @@ public Builder oauthTokenExpiryDate(Optional oauthTokenExpiryDat return this; } + public Builder redirectUri(String redirectUri) { Utils.checkNotNull(redirectUri, "redirectUri"); this.redirectUri = redirectUri; return this; } - + public SourceFreshbooks build() { + return new SourceFreshbooks( - accountId, - businessUuid, - clientId, - clientRefreshToken, - clientSecret, - oauthAccessToken, - oauthTokenExpiryDate, - redirectUri); + accountId, businessUuid, clientId, + clientRefreshToken, clientSecret, oauthAccessToken, + oauthTokenExpiryDate, redirectUri); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshcaller.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshcaller.java index ed2ed0f68..8c96cfcd0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshcaller.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshcaller.java @@ -15,13 +15,14 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceFreshcaller { +public class SourceFreshcaller { /** - * Freshcaller API Key. See the <a href="https://docs.airbyte.com/integrations/sources/freshcaller">docs</a> for more information on how to obtain this key. + * Freshcaller API Key. See the docs for more information on + * how to obtain this key. */ @JsonProperty("api_key") private String apiKey; @@ -33,12 +34,14 @@ public class SourceFreshcaller { private String domain; /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("requests_per_minute") private Optional requestsPerMinute; + @JsonProperty("sourceType") private Freshcaller sourceType; @@ -50,7 +53,8 @@ public class SourceFreshcaller { private Optional startDate; /** - * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will be fetched + * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will + * be fetched */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sync_lag_minutes") @@ -79,11 +83,14 @@ public SourceFreshcaller( public SourceFreshcaller( String apiKey, String domain) { - this(apiKey, domain, Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, domain, Optional.empty(), + Optional.empty(), Optional.empty()); } /** - * Freshcaller API Key. See the <a href="https://docs.airbyte.com/integrations/sources/freshcaller">docs</a> for more information on how to obtain this key. + * Freshcaller API Key. See the docs for more information on + * how to obtain this key. */ @JsonIgnore public String apiKey() { @@ -99,7 +106,8 @@ public String domain() { } /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ @JsonIgnore public Optional requestsPerMinute() { @@ -120,19 +128,23 @@ public Optional startDate() { } /** - * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will be fetched + * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will + * be fetched */ @JsonIgnore public Optional syncLagMinutes() { return syncLagMinutes; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Freshcaller API Key. See the <a href="https://docs.airbyte.com/integrations/sources/freshcaller">docs</a> for more information on how to obtain this key. + * Freshcaller API Key. See the docs for more information on + * how to obtain this key. */ public SourceFreshcaller withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -150,7 +162,8 @@ public SourceFreshcaller withDomain(String domain) { } /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ public SourceFreshcaller withRequestsPerMinute(long requestsPerMinute) { Utils.checkNotNull(requestsPerMinute, "requestsPerMinute"); @@ -158,8 +171,10 @@ public SourceFreshcaller withRequestsPerMinute(long requestsPerMinute) { return this; } + /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ public SourceFreshcaller withRequestsPerMinute(Optional requestsPerMinute) { Utils.checkNotNull(requestsPerMinute, "requestsPerMinute"); @@ -176,6 +191,7 @@ public SourceFreshcaller withStartDate(OffsetDateTime startDate) { return this; } + /** * UTC date and time. Any data created after this date will be replicated. */ @@ -186,7 +202,8 @@ public SourceFreshcaller withStartDate(Optional startDate) { } /** - * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will be fetched + * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will + * be fetched */ public SourceFreshcaller withSyncLagMinutes(long syncLagMinutes) { Utils.checkNotNull(syncLagMinutes, "syncLagMinutes"); @@ -194,8 +211,10 @@ public SourceFreshcaller withSyncLagMinutes(long syncLagMinutes) { return this; } + /** - * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will be fetched + * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will + * be fetched */ public SourceFreshcaller withSyncLagMinutes(Optional syncLagMinutes) { Utils.checkNotNull(syncLagMinutes, "syncLagMinutes"); @@ -203,7 +222,6 @@ public SourceFreshcaller withSyncLagMinutes(Optional syncLagMinutes) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -214,23 +232,19 @@ public boolean equals(java.lang.Object o) { } SourceFreshcaller other = (SourceFreshcaller) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.requestsPerMinute, other.requestsPerMinute) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.syncLagMinutes, other.syncLagMinutes); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.requestsPerMinute, other.requestsPerMinute) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.syncLagMinutes, other.syncLagMinutes); } @Override public int hashCode() { - return Objects.hash( - apiKey, - domain, - requestsPerMinute, - sourceType, - startDate, - syncLagMinutes); + return Utils.enhancedHash( + apiKey, domain, requestsPerMinute, + sourceType, startDate, syncLagMinutes); } @Override @@ -243,25 +257,29 @@ public String toString() { "startDate", startDate, "syncLagMinutes", syncLagMinutes); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String domain; - + private Optional requestsPerMinute = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Optional syncLagMinutes = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Freshcaller API Key. See the <a href="https://docs.airbyte.com/integrations/sources/freshcaller">docs</a> for more information on how to obtain this key. + * Freshcaller API Key. See the docs for more information on + * how to obtain this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -269,6 +287,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Used to construct Base URL for the Freshcaller APIs */ @@ -278,8 +297,10 @@ public Builder domain(String domain) { return this; } + /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ public Builder requestsPerMinute(long requestsPerMinute) { Utils.checkNotNull(requestsPerMinute, "requestsPerMinute"); @@ -288,7 +309,8 @@ public Builder requestsPerMinute(long requestsPerMinute) { } /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ public Builder requestsPerMinute(Optional requestsPerMinute) { Utils.checkNotNull(requestsPerMinute, "requestsPerMinute"); @@ -296,6 +318,7 @@ public Builder requestsPerMinute(Optional requestsPerMinute) { return this; } + /** * UTC date and time. Any data created after this date will be replicated. */ @@ -314,8 +337,10 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will be fetched + * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will + * be fetched */ public Builder syncLagMinutes(long syncLagMinutes) { Utils.checkNotNull(syncLagMinutes, "syncLagMinutes"); @@ -324,23 +349,23 @@ public Builder syncLagMinutes(long syncLagMinutes) { } /** - * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will be fetched + * Lag in minutes for each sync, i.e., at time T, data for the time range [prev_sync_time, T-30] will + * be fetched */ public Builder syncLagMinutes(Optional syncLagMinutes) { Utils.checkNotNull(syncLagMinutes, "syncLagMinutes"); this.syncLagMinutes = syncLagMinutes; return this; } - + public SourceFreshcaller build() { + return new SourceFreshcaller( - apiKey, - domain, - requestsPerMinute, - startDate, - syncLagMinutes); + apiKey, domain, requestsPerMinute, + startDate, syncLagMinutes); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java index 1f12f6940..a0ad8b6f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshchat.java @@ -12,22 +12,24 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceFreshchat { +public class SourceFreshchat { /** * The unique account name for your Freshchat instance */ @JsonProperty("account_name") private String accountName; + @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Freshchat sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -68,9 +70,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The unique account name for your Freshchat instance @@ -93,7 +96,6 @@ public SourceFreshchat withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,18 +106,16 @@ public boolean equals(java.lang.Object o) { } SourceFreshchat other = (SourceFreshchat) o; return - Objects.deepEquals(this.accountName, other.accountName) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountName, other.accountName) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountName, - apiKey, - sourceType, + return Utils.enhancedHash( + accountName, apiKey, sourceType, startDate); } @@ -127,19 +127,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountName; - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * The unique account name for your Freshchat instance */ @@ -149,25 +151,27 @@ public Builder accountName(String accountName) { return this; } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceFreshchat build() { + return new SourceFreshchat( - accountName, - apiKey, - startDate); + accountName, apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshdesk.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshdesk.java index 1defaa599..a40f3ec6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshdesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshdesk.java @@ -15,13 +15,14 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceFreshdesk { +public class SourceFreshdesk { /** - * Freshdesk API Key. See the <a href="https://docs.airbyte.com/integrations/sources/freshdesk">docs</a> for more information on how to obtain this key. + * Freshdesk API Key. See the docs for more information on how + * to obtain this key. */ @JsonProperty("api_key") private String apiKey; @@ -40,17 +41,20 @@ public class SourceFreshdesk { private Optional lookbackWindowInDays; /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("requests_per_minute") private Optional requestsPerMinute; + @JsonProperty("sourceType") private Freshdesk sourceType; /** - * UTC date and time. Any data created after this date will be replicated. If this parameter is not set, all data will be replicated. + * UTC date and time. Any data created after this date will be replicated. If this parameter is not + * set, all data will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -79,11 +83,14 @@ public SourceFreshdesk( public SourceFreshdesk( String apiKey, String domain) { - this(apiKey, domain, Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, domain, Optional.empty(), + Optional.empty(), Optional.empty()); } /** - * Freshdesk API Key. See the <a href="https://docs.airbyte.com/integrations/sources/freshdesk">docs</a> for more information on how to obtain this key. + * Freshdesk API Key. See the docs for more information on how + * to obtain this key. */ @JsonIgnore public String apiKey() { @@ -107,7 +114,8 @@ public Optional lookbackWindowInDays() { } /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ @JsonIgnore public Optional requestsPerMinute() { @@ -120,19 +128,23 @@ public Freshdesk sourceType() { } /** - * UTC date and time. Any data created after this date will be replicated. If this parameter is not set, all data will be replicated. + * UTC date and time. Any data created after this date will be replicated. If this parameter is not + * set, all data will be replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Freshdesk API Key. See the <a href="https://docs.airbyte.com/integrations/sources/freshdesk">docs</a> for more information on how to obtain this key. + * Freshdesk API Key. See the docs for more information on how + * to obtain this key. */ public SourceFreshdesk withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -158,6 +170,7 @@ public SourceFreshdesk withLookbackWindowInDays(long lookbackWindowInDays) { return this; } + /** * Number of days for lookback window for the stream Satisfaction Ratings */ @@ -168,7 +181,8 @@ public SourceFreshdesk withLookbackWindowInDays(Optional lookbackWindowInD } /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ public SourceFreshdesk withRequestsPerMinute(long requestsPerMinute) { Utils.checkNotNull(requestsPerMinute, "requestsPerMinute"); @@ -176,8 +190,10 @@ public SourceFreshdesk withRequestsPerMinute(long requestsPerMinute) { return this; } + /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ public SourceFreshdesk withRequestsPerMinute(Optional requestsPerMinute) { Utils.checkNotNull(requestsPerMinute, "requestsPerMinute"); @@ -186,7 +202,8 @@ public SourceFreshdesk withRequestsPerMinute(Optional requestsPerMinute) { } /** - * UTC date and time. Any data created after this date will be replicated. If this parameter is not set, all data will be replicated. + * UTC date and time. Any data created after this date will be replicated. If this parameter is not + * set, all data will be replicated. */ public SourceFreshdesk withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -194,8 +211,10 @@ public SourceFreshdesk withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time. Any data created after this date will be replicated. If this parameter is not set, all data will be replicated. + * UTC date and time. Any data created after this date will be replicated. If this parameter is not + * set, all data will be replicated. */ public SourceFreshdesk withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -203,7 +222,6 @@ public SourceFreshdesk withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -214,23 +232,19 @@ public boolean equals(java.lang.Object o) { } SourceFreshdesk other = (SourceFreshdesk) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.lookbackWindowInDays, other.lookbackWindowInDays) && - Objects.deepEquals(this.requestsPerMinute, other.requestsPerMinute) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.lookbackWindowInDays, other.lookbackWindowInDays) && + Utils.enhancedDeepEquals(this.requestsPerMinute, other.requestsPerMinute) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - domain, - lookbackWindowInDays, - requestsPerMinute, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, domain, lookbackWindowInDays, + requestsPerMinute, sourceType, startDate); } @Override @@ -243,25 +257,29 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String domain; - + private Optional lookbackWindowInDays; - + private Optional requestsPerMinute = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Freshdesk API Key. See the <a href="https://docs.airbyte.com/integrations/sources/freshdesk">docs</a> for more information on how to obtain this key. + * Freshdesk API Key. See the docs for more information on how + * to obtain this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -269,6 +287,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Freshdesk domain */ @@ -278,6 +297,7 @@ public Builder domain(String domain) { return this; } + /** * Number of days for lookback window for the stream Satisfaction Ratings */ @@ -296,8 +316,10 @@ public Builder lookbackWindowInDays(Optional lookbackWindowInDays) { return this; } + /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ public Builder requestsPerMinute(long requestsPerMinute) { Utils.checkNotNull(requestsPerMinute, "requestsPerMinute"); @@ -306,7 +328,8 @@ public Builder requestsPerMinute(long requestsPerMinute) { } /** - * The number of requests per minute that this source allowed to use. There is a rate limit of 50 requests per minute per app per account. + * The number of requests per minute that this source allowed to use. There is a rate limit of 50 + * requests per minute per app per account. */ public Builder requestsPerMinute(Optional requestsPerMinute) { Utils.checkNotNull(requestsPerMinute, "requestsPerMinute"); @@ -314,8 +337,10 @@ public Builder requestsPerMinute(Optional requestsPerMinute) { return this; } + /** - * UTC date and time. Any data created after this date will be replicated. If this parameter is not set, all data will be replicated. + * UTC date and time. Any data created after this date will be replicated. If this parameter is not + * set, all data will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -324,26 +349,26 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time. Any data created after this date will be replicated. If this parameter is not set, all data will be replicated. + * UTC date and time. Any data created after this date will be replicated. If this parameter is not + * set, all data will be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceFreshdesk build() { if (lookbackWindowInDays == null) { lookbackWindowInDays = _SINGLETON_VALUE_LookbackWindowInDays.value(); } + return new SourceFreshdesk( - apiKey, - domain, - lookbackWindowInDays, - requestsPerMinute, - startDate); + apiKey, domain, lookbackWindowInDays, + requestsPerMinute, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_LookbackWindowInDays = new LazySingletonValue<>( "lookback_window_in_days", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshsales.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshsales.java index 1685f9f2e..75dcb443d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshsales.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshsales.java @@ -11,12 +11,13 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceFreshsales { +public class SourceFreshsales { /** - * Freshsales API Key. See <a href="https://crmsupport.freshworks.com/support/solutions/articles/50000002503-how-to-find-my-api-key-">here</a>. The key is case sensitive. + * Freshsales API Key. See here. + * The key is case sensitive. */ @JsonProperty("api_key") private String apiKey; @@ -27,6 +28,7 @@ public class SourceFreshsales { @JsonProperty("domain_name") private String domainName; + @JsonProperty("sourceType") private Freshsales sourceType; @@ -42,7 +44,9 @@ public SourceFreshsales( } /** - * Freshsales API Key. See <a href="https://crmsupport.freshworks.com/support/solutions/articles/50000002503-how-to-find-my-api-key-">here</a>. The key is case sensitive. + * Freshsales API Key. See here. + * The key is case sensitive. */ @JsonIgnore public String apiKey() { @@ -62,12 +66,15 @@ public Freshsales sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Freshsales API Key. See <a href="https://crmsupport.freshworks.com/support/solutions/articles/50000002503-how-to-find-my-api-key-">here</a>. The key is case sensitive. + * Freshsales API Key. See here. + * The key is case sensitive. */ public SourceFreshsales withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -84,7 +91,6 @@ public SourceFreshsales withDomainName(String domainName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +101,15 @@ public boolean equals(java.lang.Object o) { } SourceFreshsales other = (SourceFreshsales) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.domainName, other.domainName) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.domainName, other.domainName) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - domainName, - sourceType); + return Utils.enhancedHash( + apiKey, domainName, sourceType); } @Override @@ -115,19 +119,23 @@ public String toString() { "domainName", domainName, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String domainName; - + private Builder() { // force use of static builder() method } + /** - * Freshsales API Key. See <a href="https://crmsupport.freshworks.com/support/solutions/articles/50000002503-how-to-find-my-api-key-">here</a>. The key is case sensitive. + * Freshsales API Key. See here. + * The key is case sensitive. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -135,6 +143,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The Name of your Freshsales domain */ @@ -143,13 +152,14 @@ public Builder domainName(String domainName) { this.domainName = domainName; return this; } - + public SourceFreshsales build() { + return new SourceFreshsales( - apiKey, - domainName); + apiKey, domainName); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFreshservice.java b/src/main/java/com/airbyte/api/models/shared/SourceFreshservice.java index b09c8162c..4ced714d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFreshservice.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFreshservice.java @@ -12,12 +12,12 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceFreshservice { +public class SourceFreshservice { /** - * Freshservice API Key. See <a href="https://api.freshservice.com/#authentication">here</a>. The key is case sensitive. + * Freshservice API Key. See here. The key + * is case sensitive. */ @JsonProperty("api_key") private String apiKey; @@ -28,11 +28,13 @@ public class SourceFreshservice { @JsonProperty("domain_name") private String domainName; + @JsonProperty("sourceType") private Freshservice sourceType; /** - * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -52,7 +54,8 @@ public SourceFreshservice( } /** - * Freshservice API Key. See <a href="https://api.freshservice.com/#authentication">here</a>. The key is case sensitive. + * Freshservice API Key. See here. The key + * is case sensitive. */ @JsonIgnore public String apiKey() { @@ -73,19 +76,22 @@ public Freshservice sourceType() { } /** - * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Freshservice API Key. See <a href="https://api.freshservice.com/#authentication">here</a>. The key is case sensitive. + * Freshservice API Key. See here. The key + * is case sensitive. */ public SourceFreshservice withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -103,7 +109,8 @@ public SourceFreshservice withDomainName(String domainName) { } /** - * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceFreshservice withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -111,7 +118,6 @@ public SourceFreshservice withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,18 +128,16 @@ public boolean equals(java.lang.Object o) { } SourceFreshservice other = (SourceFreshservice) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.domainName, other.domainName) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.domainName, other.domainName) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - domainName, - sourceType, + return Utils.enhancedHash( + apiKey, domainName, sourceType, startDate); } @@ -145,21 +149,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String domainName; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Freshservice API Key. See <a href="https://api.freshservice.com/#authentication">here</a>. The key is case sensitive. + * Freshservice API Key. See here. The key + * is case sensitive. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -167,6 +174,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The name of your Freshservice domain */ @@ -176,22 +184,24 @@ public Builder domainName(String domainName) { return this; } + /** - * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceFreshservice build() { + return new SourceFreshservice( - apiKey, - domainName, - startDate); + apiKey, domainName, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFront.java b/src/main/java/com/airbyte/api/models/shared/SourceFront.java index 325a020ab..d8baba65e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFront.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFront.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceFront { @JsonProperty("api_key") @@ -29,9 +29,11 @@ public class SourceFront { @JsonProperty("page_limit") private Optional pageLimit; + @JsonProperty("sourceType") private Front sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -78,9 +80,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceFront withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -97,6 +100,7 @@ public SourceFront withPageLimit(String pageLimit) { return this; } + /** * Page limit for the responses */ @@ -112,7 +116,6 @@ public SourceFront withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -123,18 +126,16 @@ public boolean equals(java.lang.Object o) { } SourceFront other = (SourceFront) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.pageLimit, other.pageLimit) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.pageLimit, other.pageLimit) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - pageLimit, - sourceType, + return Utils.enhancedHash( + apiKey, pageLimit, sourceType, startDate); } @@ -146,25 +147,28 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional pageLimit; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Page limit for the responses */ @@ -183,22 +187,23 @@ public Builder pageLimit(Optional pageLimit) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceFront build() { if (pageLimit == null) { pageLimit = _SINGLETON_VALUE_PageLimit.value(); } + return new SourceFront( - apiKey, - pageLimit, - startDate); + apiKey, pageLimit, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_PageLimit = new LazySingletonValue<>( "page_limit", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFulcrum.java b/src/main/java/com/airbyte/api/models/shared/SourceFulcrum.java index 05c64b3ce..9be5895b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFulcrum.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFulcrum.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceFulcrum { +public class SourceFulcrum { /** * API key to use. Find it at https://web.fulcrumapp.com/settings/api */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Fulcrum sourceType; @@ -45,9 +45,10 @@ public Fulcrum sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it at https://web.fulcrumapp.com/settings/api @@ -58,7 +59,6 @@ public SourceFulcrum withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceFulcrum other = (SourceFulcrum) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it at https://web.fulcrumapp.com/settings/api */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceFulcrum build() { + return new SourceFulcrum( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceFullstory.java b/src/main/java/com/airbyte/api/models/shared/SourceFullstory.java index 6191aea30..4b8ebebd1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceFullstory.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceFullstory.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceFullstory { +public class SourceFullstory { /** * API Key for the fullstory.com API. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Fullstory sourceType; @@ -62,9 +62,10 @@ public String uid() { return uid; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key for the fullstory.com API. @@ -84,7 +85,6 @@ public SourceFullstory withUid(String uid) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceFullstory other = (SourceFullstory) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.uid, other.uid); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.uid, other.uid); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - uid); + return Utils.enhancedHash( + apiKey, sourceType, uid); } @Override @@ -115,17 +113,19 @@ public String toString() { "sourceType", sourceType, "uid", uid); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String uid; - + private Builder() { // force use of static builder() method } + /** * API Key for the fullstory.com API. */ @@ -135,6 +135,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * User ID for the fullstory.com API. */ @@ -143,13 +144,14 @@ public Builder uid(String uid) { this.uid = uid; return this; } - + public SourceFullstory build() { + return new SourceFullstory( - apiKey, - uid); + apiKey, uid); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGainsightPx.java b/src/main/java/com/airbyte/api/models/shared/SourceGainsightPx.java index aa58cd1ba..a799d1970 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGainsightPx.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGainsightPx.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceGainsightPx { +public class SourceGainsightPx { /** - * The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys) + * The Aptrinsic API Key which is recieved from the dashboard settings (ref - + * https://app.aptrinsic.com/settings/api-keys) */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private GainsightPx sourceType; @@ -33,7 +34,8 @@ public SourceGainsightPx( } /** - * The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys) + * The Aptrinsic API Key which is recieved from the dashboard settings (ref - + * https://app.aptrinsic.com/settings/api-keys) */ @JsonIgnore public String apiKey() { @@ -45,12 +47,14 @@ public GainsightPx sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys) + * The Aptrinsic API Key which is recieved from the dashboard settings (ref - + * https://app.aptrinsic.com/settings/api-keys) */ public SourceGainsightPx withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +62,6 @@ public SourceGainsightPx withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceGainsightPx other = (SourceGainsightPx) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * The Aptrinsic API Key which is recieved from the dashboard settings (ref - https://app.aptrinsic.com/settings/api-keys) + * The Aptrinsic API Key which is recieved from the dashboard settings (ref - + * https://app.aptrinsic.com/settings/api-keys) */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceGainsightPx build() { + return new SourceGainsightPx( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcs.java b/src/main/java/com/airbyte/api/models/shared/SourceGcs.java index 53364c35d..3f22968eb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcs.java @@ -15,7 +15,6 @@ import java.lang.String; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -26,7 +25,6 @@ * legacy GCS configs into file based configs using the File-Based CDK. */ public class SourceGcs { - /** * Name of the GCS bucket where the file(s) exist. */ @@ -39,18 +37,23 @@ public class SourceGcs { @JsonProperty("credentials") private SourceGcsAuthentication credentials; + @JsonProperty("sourceType") private SourceGcsGcs sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonProperty("streams") private List streams; @@ -76,7 +79,8 @@ public SourceGcs( String bucket, SourceGcsAuthentication credentials, List streams) { - this(bucket, credentials, Optional.empty(), streams); + this(bucket, credentials, Optional.empty(), + streams); } /** @@ -101,7 +105,8 @@ public SourceGcsGcs sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonIgnore public Optional startDate() { @@ -109,16 +114,20 @@ public Optional startDate() { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonIgnore public List streams() { return streams; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the GCS bucket where the file(s) exist. @@ -139,7 +148,8 @@ public SourceGcs withCredentials(SourceGcsAuthentication credentials) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceGcs withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -147,8 +157,10 @@ public SourceGcs withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceGcs withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -157,7 +169,10 @@ public SourceGcs withStartDate(Optional startDate) { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public SourceGcs withStreams(List streams) { Utils.checkNotNull(streams, "streams"); @@ -165,7 +180,6 @@ public SourceGcs withStreams(List streams) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -176,21 +190,18 @@ public boolean equals(java.lang.Object o) { } SourceGcs other = (SourceGcs) o; return - Objects.deepEquals(this.bucket, other.bucket) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.streams, other.streams); + Utils.enhancedDeepEquals(this.bucket, other.bucket) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.streams, other.streams); } @Override public int hashCode() { - return Objects.hash( - bucket, - credentials, - sourceType, - startDate, - streams); + return Utils.enhancedHash( + bucket, credentials, sourceType, + startDate, streams); } @Override @@ -202,21 +213,23 @@ public String toString() { "startDate", startDate, "streams", streams); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String bucket; - + private SourceGcsAuthentication credentials; - + private Optional startDate = Optional.empty(); - + private List streams; - + private Builder() { // force use of static builder() method } + /** * Name of the GCS bucket where the file(s) exist. */ @@ -226,6 +239,7 @@ public Builder bucket(String bucket) { return this; } + /** * Credentials for connecting to the Google Cloud Storage API */ @@ -235,8 +249,10 @@ public Builder credentials(SourceGcsAuthentication credentials) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -245,7 +261,8 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -253,23 +270,27 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public Builder streams(List streams) { Utils.checkNotNull(streams, "streams"); this.streams = streams; return this; } - + public SourceGcs build() { + return new SourceGcs( - bucket, - credentials, - startDate, + bucket, credentials, startDate, streams); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java index ac9fbff5a..315905037 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthType.java @@ -14,7 +14,7 @@ public enum SourceGcsAuthType { @JsonValue private final String value; - private SourceGcsAuthType(String value) { + SourceGcsAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthenticateViaGoogleOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthenticateViaGoogleOAuth.java index 497975c78..ebc687692 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthenticateViaGoogleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthenticateViaGoogleOAuth.java @@ -14,17 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceGcsAuthenticateViaGoogleOAuth { +public class SourceGcsAuthenticateViaGoogleOAuth { /** * Access Token */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -102,9 +102,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token @@ -142,7 +143,6 @@ public SourceGcsAuthenticateViaGoogleOAuth withRefreshToken(String refreshToken) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -153,21 +153,18 @@ public boolean equals(java.lang.Object o) { } SourceGcsAuthenticateViaGoogleOAuth other = (SourceGcsAuthenticateViaGoogleOAuth) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - refreshToken); + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, refreshToken); } @Override @@ -179,21 +176,23 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * Access Token */ @@ -203,6 +202,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * Client ID */ @@ -212,6 +212,7 @@ public Builder clientId(String clientId) { return this; } + /** * Client Secret */ @@ -221,6 +222,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Access Token */ @@ -229,15 +231,15 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public SourceGcsAuthenticateViaGoogleOAuth build() { + return new SourceGcsAuthenticateViaGoogleOAuth( - accessToken, - clientId, - clientSecret, + accessToken, clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthentication.java index e58375c44..4e3467a59 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGcsAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGcsAuthentication other = (SourceGcsAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAutogenerated.java index 844fc4275..9e65e7d87 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsAutogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAutogenerated.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGcsAutogenerated { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceGcsAutogenerated { @JsonCreator public SourceGcsAutogenerated() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionType() { return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceGcsAutogenerated other = (SourceGcsAutogenerated) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceGcsAutogenerated.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceGcsAutogenerated build() { + return new SourceGcsAutogenerated( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java index 473ef647d..dab6ad799 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsAvroFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceGcsAvroFormat { +public class SourceGcsAvroFormat { /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("double_as_string") private Optional doubleAsString; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceGcsAvroFormat() { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonIgnore public Optional doubleAsString() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceGcsAvroFormat withDoubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -70,8 +74,10 @@ public SourceGcsAvroFormat withDoubleAsString(boolean doubleAsString) { return this; } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceGcsAvroFormat withDoubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -79,7 +85,6 @@ public SourceGcsAvroFormat withDoubleAsString(Optional doubleAsString) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceGcsAvroFormat other = (SourceGcsAvroFormat) o; return - Objects.deepEquals(this.doubleAsString, other.doubleAsString) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.doubleAsString, other.doubleAsString) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - doubleAsString, - filetype); + return Utils.enhancedHash( + doubleAsString, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "doubleAsString", doubleAsString, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional doubleAsString; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -126,22 +133,25 @@ public Builder doubleAsString(boolean doubleAsString) { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); this.doubleAsString = doubleAsString; return this; } - + public SourceGcsAvroFormat build() { if (doubleAsString == null) { doubleAsString = _SINGLETON_VALUE_DoubleAsString.value(); } + return new SourceGcsAvroFormat( doubleAsString); } + private static final LazySingletonValue> _SINGLETON_VALUE_DoubleAsString = new LazySingletonValue<>( "double_as_string", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java index 9a3b48b7a..4149f4575 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVFormat.java @@ -17,13 +17,13 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGcsCSVFormat { +public class SourceGcsCSVFormat { /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("delimiter") @@ -37,7 +37,9 @@ public class SourceGcsCSVFormat { private Optional doubleQuote; /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("encoding") @@ -57,26 +59,35 @@ public class SourceGcsCSVFormat { @JsonProperty("false_values") private Optional> falseValues; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition") private Optional headerDefinition; /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ignore_errors_on_fields_mismatch") private Optional ignoreErrorsOnFieldsMismatch; /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("null_values") @@ -97,14 +108,17 @@ public class SourceGcsCSVFormat { private Optional skipRowsAfterHeader; /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_rows_before_header") private Optional skipRowsBeforeHeader; /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strings_can_be_null") @@ -162,11 +176,16 @@ public SourceGcsCSVFormat( } public SourceGcsCSVFormat() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonIgnore public Optional delimiter() { @@ -182,7 +201,9 @@ public Optional doubleQuote() { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonIgnore public Optional encoding() { @@ -213,7 +234,13 @@ public Optional filetype() { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -222,7 +249,8 @@ public Optional headerDefinition() { } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonIgnore public Optional ignoreErrorsOnFieldsMismatch() { @@ -230,7 +258,8 @@ public Optional ignoreErrorsOnFieldsMismatch() { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -255,7 +284,8 @@ public Optional skipRowsAfterHeader() { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonIgnore public Optional skipRowsBeforeHeader() { @@ -263,7 +293,9 @@ public Optional skipRowsBeforeHeader() { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonIgnore public Optional stringsCanBeNull() { @@ -279,12 +311,14 @@ public Optional> trueValues() { return (Optional>) trueValues; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceGcsCSVFormat withDelimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -292,8 +326,10 @@ public SourceGcsCSVFormat withDelimiter(String delimiter) { return this; } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceGcsCSVFormat withDelimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -310,6 +346,7 @@ public SourceGcsCSVFormat withDoubleQuote(boolean doubleQuote) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -320,7 +357,9 @@ public SourceGcsCSVFormat withDoubleQuote(Optional doubleQuote) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceGcsCSVFormat withEncoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -328,8 +367,11 @@ public SourceGcsCSVFormat withEncoding(String encoding) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceGcsCSVFormat withEncoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -346,6 +388,7 @@ public SourceGcsCSVFormat withEscapeChar(String escapeChar) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -364,6 +407,7 @@ public SourceGcsCSVFormat withFalseValues(List falseValues) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -374,7 +418,13 @@ public SourceGcsCSVFormat withFalseValues(Optional> false } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceGcsCSVFormat withHeaderDefinition(SourceGcsCSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -382,8 +432,15 @@ public SourceGcsCSVFormat withHeaderDefinition(SourceGcsCSVHeaderDefinition head return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceGcsCSVFormat withHeaderDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -392,7 +449,8 @@ public SourceGcsCSVFormat withHeaderDefinition(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -410,7 +470,8 @@ public SourceGcsCSVFormat withIgnoreErrorsOnFieldsMismatch(Optional ign } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public SourceGcsCSVFormat withNullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -418,8 +479,10 @@ public SourceGcsCSVFormat withNullValues(List nullValues) { return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public SourceGcsCSVFormat withNullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -436,6 +499,7 @@ public SourceGcsCSVFormat withQuoteChar(String quoteChar) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -454,6 +518,7 @@ public SourceGcsCSVFormat withSkipRowsAfterHeader(long skipRowsAfterHeader) { return this; } + /** * The number of rows to skip after the header row. */ @@ -464,7 +529,8 @@ public SourceGcsCSVFormat withSkipRowsAfterHeader(Optional skipRowsAfterHe } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceGcsCSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -472,8 +538,10 @@ public SourceGcsCSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceGcsCSVFormat withSkipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -482,7 +550,9 @@ public SourceGcsCSVFormat withSkipRowsBeforeHeader(Optional skipRowsBefore } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public SourceGcsCSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -490,8 +560,11 @@ public SourceGcsCSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public SourceGcsCSVFormat withStringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -508,6 +581,7 @@ public SourceGcsCSVFormat withTrueValues(List trueValues) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -517,7 +591,6 @@ public SourceGcsCSVFormat withTrueValues(Optional> trueVa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -528,39 +601,30 @@ public boolean equals(java.lang.Object o) { } SourceGcsCSVFormat other = (SourceGcsCSVFormat) o; return - Objects.deepEquals(this.delimiter, other.delimiter) && - Objects.deepEquals(this.doubleQuote, other.doubleQuote) && - Objects.deepEquals(this.encoding, other.encoding) && - Objects.deepEquals(this.escapeChar, other.escapeChar) && - Objects.deepEquals(this.falseValues, other.falseValues) && - Objects.deepEquals(this.filetype, other.filetype) && - Objects.deepEquals(this.headerDefinition, other.headerDefinition) && - Objects.deepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && - Objects.deepEquals(this.nullValues, other.nullValues) && - Objects.deepEquals(this.quoteChar, other.quoteChar) && - Objects.deepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && - Objects.deepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && - Objects.deepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && - Objects.deepEquals(this.trueValues, other.trueValues); + Utils.enhancedDeepEquals(this.delimiter, other.delimiter) && + Utils.enhancedDeepEquals(this.doubleQuote, other.doubleQuote) && + Utils.enhancedDeepEquals(this.encoding, other.encoding) && + Utils.enhancedDeepEquals(this.escapeChar, other.escapeChar) && + Utils.enhancedDeepEquals(this.falseValues, other.falseValues) && + Utils.enhancedDeepEquals(this.filetype, other.filetype) && + Utils.enhancedDeepEquals(this.headerDefinition, other.headerDefinition) && + Utils.enhancedDeepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && + Utils.enhancedDeepEquals(this.nullValues, other.nullValues) && + Utils.enhancedDeepEquals(this.quoteChar, other.quoteChar) && + Utils.enhancedDeepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && + Utils.enhancedDeepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && + Utils.enhancedDeepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && + Utils.enhancedDeepEquals(this.trueValues, other.trueValues); } @Override public int hashCode() { - return Objects.hash( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - filetype, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, - trueValues); + return Utils.enhancedHash( + delimiter, doubleQuote, encoding, + escapeChar, falseValues, filetype, + headerDefinition, ignoreErrorsOnFieldsMismatch, nullValues, + quoteChar, skipRowsAfterHeader, skipRowsBeforeHeader, + stringsCanBeNull, trueValues); } @Override @@ -581,41 +645,44 @@ public String toString() { "stringsCanBeNull", stringsCanBeNull, "trueValues", trueValues); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional delimiter; - + private Optional doubleQuote; - + private Optional encoding; - + private Optional escapeChar = Optional.empty(); - + private Optional> falseValues = Optional.empty(); - + private Optional headerDefinition = Optional.empty(); - + private Optional ignoreErrorsOnFieldsMismatch; - + private Optional> nullValues = Optional.empty(); - + private Optional quoteChar; - + private Optional skipRowsAfterHeader; - + private Optional skipRowsBeforeHeader; - + private Optional stringsCanBeNull; - + private Optional> trueValues = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -624,7 +691,8 @@ public Builder delimiter(String delimiter) { } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -632,6 +700,7 @@ public Builder delimiter(Optional delimiter) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -650,8 +719,11 @@ public Builder doubleQuote(Optional doubleQuote) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -660,7 +732,9 @@ public Builder encoding(String encoding) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -668,6 +742,7 @@ public Builder encoding(Optional encoding) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -686,6 +761,7 @@ public Builder escapeChar(Optional escapeChar) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -704,8 +780,15 @@ public Builder falseValues(Optional> falseValues) { return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(SourceGcsCSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -714,7 +797,13 @@ public Builder headerDefinition(SourceGcsCSVHeaderDefinition headerDefinition) { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -722,8 +811,10 @@ public Builder headerDefinition(Optional return this; } + /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ public Builder ignoreErrorsOnFieldsMismatch(boolean ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -732,7 +823,8 @@ public Builder ignoreErrorsOnFieldsMismatch(boolean ignoreErrorsOnFieldsMismatch } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -740,8 +832,10 @@ public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFiel return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -750,7 +844,8 @@ public Builder nullValues(List nullValues) { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -758,6 +853,7 @@ public Builder nullValues(Optional> nullValues) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -776,6 +872,7 @@ public Builder quoteChar(Optional quoteChar) { return this; } + /** * The number of rows to skip after the header row. */ @@ -794,8 +891,10 @@ public Builder skipRowsAfterHeader(Optional skipRowsAfterHeader) { return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -804,7 +903,8 @@ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -812,8 +912,11 @@ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -822,7 +925,9 @@ public Builder stringsCanBeNull(boolean stringsCanBeNull) { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -830,6 +935,7 @@ public Builder stringsCanBeNull(Optional stringsCanBeNull) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -847,7 +953,7 @@ public Builder trueValues(Optional> trueValues) { this.trueValues = trueValues; return this; } - + public SourceGcsCSVFormat build() { if (delimiter == null) { delimiter = _SINGLETON_VALUE_Delimiter.value(); @@ -873,22 +979,16 @@ public SourceGcsCSVFormat build() { if (stringsCanBeNull == null) { stringsCanBeNull = _SINGLETON_VALUE_StringsCanBeNull.value(); } + return new SourceGcsCSVFormat( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, + delimiter, doubleQuote, encoding, + escapeChar, falseValues, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, + skipRowsAfterHeader, skipRowsBeforeHeader, stringsCanBeNull, trueValues); } + private static final LazySingletonValue> _SINGLETON_VALUE_Delimiter = new LazySingletonValue<>( "delimiter", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVHeaderDefinition.java index e37dacafa..9939523d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsCSVHeaderDefinition.java @@ -14,12 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGcsCSVHeaderDefinition * - *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonDeserialize(using = SourceGcsCSVHeaderDefinition._Deserializer.class) public class SourceGcsCSVHeaderDefinition { @@ -78,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGcsCSVHeaderDefinition other = (SourceGcsCSVHeaderDefinition) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java index c07e8807f..b1ffb2d2a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFileBasedStreamConfig.java @@ -17,33 +17,37 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGcsFileBasedStreamConfig { +public class SourceGcsFileBasedStreamConfig { /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("days_to_sync_if_history_is_full") private Optional daysToSyncIfHistoryIsFull; /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonProperty("format") private SourceGcsFormat format; /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("globs") private Optional> globs; /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("input_schema") @@ -70,7 +74,8 @@ public class SourceGcsFileBasedStreamConfig { private Optional schemaless; /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("validation_policy") @@ -107,11 +112,14 @@ public SourceGcsFileBasedStreamConfig( public SourceGcsFileBasedStreamConfig( SourceGcsFormat format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty(), Optional.empty()); } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonIgnore public Optional daysToSyncIfHistoryIsFull() { @@ -119,7 +127,8 @@ public Optional daysToSyncIfHistoryIsFull() { } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonIgnore public SourceGcsFormat format() { @@ -127,7 +136,9 @@ public SourceGcsFormat format() { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -136,7 +147,8 @@ public Optional> globs() { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonIgnore public Optional inputSchema() { @@ -168,7 +180,8 @@ public Optional schemaless() { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -176,12 +189,14 @@ public Optional validationPolicy() { return (Optional) validationPolicy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceGcsFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -189,8 +204,10 @@ public SourceGcsFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToS return this; } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceGcsFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -199,7 +216,8 @@ public SourceGcsFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optionalhere. */ public SourceGcsFileBasedStreamConfig withGlobs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -216,8 +236,11 @@ public SourceGcsFileBasedStreamConfig withGlobs(List globs) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public SourceGcsFileBasedStreamConfig withGlobs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -226,7 +249,8 @@ public SourceGcsFileBasedStreamConfig withGlobs(Optional> } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public SourceGcsFileBasedStreamConfig withInputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -234,8 +258,10 @@ public SourceGcsFileBasedStreamConfig withInputSchema(String inputSchema) { return this; } + /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public SourceGcsFileBasedStreamConfig withInputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -261,6 +287,7 @@ public SourceGcsFileBasedStreamConfig withRecentNFilesToReadForSchemaDiscovery(l return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -279,6 +306,7 @@ public SourceGcsFileBasedStreamConfig withSchemaless(boolean schemaless) { return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -289,7 +317,8 @@ public SourceGcsFileBasedStreamConfig withSchemaless(Optional schemales } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public SourceGcsFileBasedStreamConfig withValidationPolicy(SourceGcsValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -297,8 +326,10 @@ public SourceGcsFileBasedStreamConfig withValidationPolicy(SourceGcsValidationPo return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public SourceGcsFileBasedStreamConfig withValidationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -306,7 +337,6 @@ public SourceGcsFileBasedStreamConfig withValidationPolicy(Optional daysToSyncIfHistoryIsFull; - + private SourceGcsFormat format; - + private Optional> globs = Optional.empty(); - + private Optional inputSchema = Optional.empty(); - + private String name; - + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); - + private Optional schemaless; - + private Optional validationPolicy; - + private Builder() { // force use of static builder() method } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -385,7 +413,8 @@ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -393,8 +422,10 @@ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFul return this; } + /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public Builder format(SourceGcsFormat format) { Utils.checkNotNull(format, "format"); @@ -402,8 +433,11 @@ public Builder format(SourceGcsFormat format) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -412,7 +446,9 @@ public Builder globs(List globs) { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -420,8 +456,10 @@ public Builder globs(Optional> globs) { return this; } + /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -430,7 +468,8 @@ public Builder inputSchema(String inputSchema) { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -438,6 +477,7 @@ public Builder inputSchema(Optional inputSchema) { return this; } + /** * The name of the stream. */ @@ -447,6 +487,7 @@ public Builder name(String name) { return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -465,6 +506,7 @@ public Builder recentNFilesToReadForSchemaDiscovery(Optional recentNFilesT return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -483,8 +525,10 @@ public Builder schemaless(Optional schemaless) { return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(SourceGcsValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -493,14 +537,15 @@ public Builder validationPolicy(SourceGcsValidationPolicy validationPolicy) { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); this.validationPolicy = validationPolicy; return this; } - + public SourceGcsFileBasedStreamConfig build() { if (daysToSyncIfHistoryIsFull == null) { daysToSyncIfHistoryIsFull = _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull.value(); @@ -511,17 +556,14 @@ public SourceGcsFileBasedStreamConfig build() { if (validationPolicy == null) { validationPolicy = _SINGLETON_VALUE_ValidationPolicy.value(); } + return new SourceGcsFileBasedStreamConfig( - daysToSyncIfHistoryIsFull, - format, - globs, - inputSchema, - name, - recentNFilesToReadForSchemaDiscovery, - schemaless, - validationPolicy); + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, recentNFilesToReadForSchemaDiscovery, + schemaless, validationPolicy); } + private static final LazySingletonValue> _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull = new LazySingletonValue<>( "days_to_sync_if_history_is_full", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java index 51bee2af2..00a0b5248 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFiletype.java @@ -14,7 +14,7 @@ public enum SourceGcsFiletype { @JsonValue private final String value; - private SourceGcsFiletype(String value) { + SourceGcsFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java index 2fc4f0034..905f2852e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFormat.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGcsFormat * - *

    The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + *

    The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonDeserialize(using = SourceGcsFormat._Deserializer.class) public class SourceGcsFormat { @@ -96,12 +96,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGcsFormat other = (SourceGcsFormat) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsFromCSV.java index 052c39979..1ca437d4f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsFromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsFromCSV.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGcsFromCSV { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceGcsFromCSV { @JsonCreator public SourceGcsFromCSV() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionType() { return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceGcsFromCSV other = (SourceGcsFromCSV) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceGcsFromCSV.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceGcsFromCSV build() { + return new SourceGcsFromCSV( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java index 6e35ae34e..d5ffcd669 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsGcs.java @@ -14,7 +14,7 @@ public enum SourceGcsGcs { @JsonValue private final String value; - private SourceGcsGcs(String value) { + SourceGcsGcs(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsHeaderDefinitionType.java index 8ab748342..a6aae2f32 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceGcsHeaderDefinitionType { @JsonValue private final String value; - private SourceGcsHeaderDefinitionType(String value) { + SourceGcsHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java index f6f0f3446..9a6b1f2be 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsJsonlFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGcsJsonlFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceGcsJsonlFormat { @JsonCreator public SourceGcsJsonlFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceGcsJsonlFormat other = (SourceGcsJsonlFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceGcsJsonlFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceGcsJsonlFormat build() { + return new SourceGcsJsonlFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java index 2b6f05412..4b186d375 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsLocal.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class SourceGcsLocal { @JsonCreator public SourceGcsLocal() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } SourceGcsLocal other = (SourceGcsLocal) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(SourceGcsLocal.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceGcsLocal build() { + return new SourceGcsLocal( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java index be07d5cac..05e65d4a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsMode.java @@ -14,7 +14,7 @@ public enum SourceGcsMode { @JsonValue private final String value; - private SourceGcsMode(String value) { + SourceGcsMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsParquetFormat.java index 4e4670b09..d91488314 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsParquetFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceGcsParquetFormat { +public class SourceGcsParquetFormat { /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("decimal_as_float") private Optional decimalAsFloat; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceGcsParquetFormat() { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonIgnore public Optional decimalAsFloat() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceGcsParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -70,8 +74,10 @@ public SourceGcsParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { return this; } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceGcsParquetFormat withDecimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -79,7 +85,6 @@ public SourceGcsParquetFormat withDecimalAsFloat(Optional decimalAsFloa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceGcsParquetFormat other = (SourceGcsParquetFormat) o; return - Objects.deepEquals(this.decimalAsFloat, other.decimalAsFloat) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.decimalAsFloat, other.decimalAsFloat) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - decimalAsFloat, - filetype); + return Utils.enhancedHash( + decimalAsFloat, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "decimalAsFloat", decimalAsFloat, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional decimalAsFloat; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -126,22 +133,25 @@ public Builder decimalAsFloat(boolean decimalAsFloat) { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); this.decimalAsFloat = decimalAsFloat; return this; } - + public SourceGcsParquetFormat build() { if (decimalAsFloat == null) { decimalAsFloat = _SINGLETON_VALUE_DecimalAsFloat.value(); } + return new SourceGcsParquetFormat( decimalAsFloat); } + private static final LazySingletonValue> _SINGLETON_VALUE_DecimalAsFloat = new LazySingletonValue<>( "decimal_as_float", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java index 9cb4119ce..9771829ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsParsingStrategy.java @@ -11,7 +11,12 @@ /** * SourceGcsParsingStrategy * - *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public enum SourceGcsParsingStrategy { AUTO("auto"), @@ -22,7 +27,7 @@ public enum SourceGcsParsingStrategy { @JsonValue private final String value; - private SourceGcsParsingStrategy(String value) { + SourceGcsParsingStrategy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsProcessing.java index 5d3f36c41..d3829cbde 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsProcessing.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGcsProcessing @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGcsProcessing other = (SourceGcsProcessing) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java index 269203435..78b050e31 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceGcsSchemasAuthType { @JsonValue private final String value; - private SourceGcsSchemasAuthType(String value) { + SourceGcsSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java index f8226d421..f5b06ef49 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasFiletype.java @@ -14,7 +14,7 @@ public enum SourceGcsSchemasFiletype { @JsonValue private final String value; - private SourceGcsSchemasFiletype(String value) { + SourceGcsSchemasFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java index 72549ece6..eae6ded70 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceGcsSchemasHeaderDefinitionType { @JsonValue private final String value; - private SourceGcsSchemasHeaderDefinitionType(String value) { + SourceGcsSchemasHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java index a9b521b38..9fb73537d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasMode.java @@ -14,7 +14,7 @@ public enum SourceGcsSchemasMode { @JsonValue private final String value; - private SourceGcsSchemasMode(String value) { + SourceGcsSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java index d452e9f7f..257246509 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFiletype.java @@ -14,7 +14,7 @@ public enum SourceGcsSchemasStreamsFiletype { @JsonValue private final String value; - private SourceGcsSchemasStreamsFiletype(String value) { + SourceGcsSchemasStreamsFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java index 6e6d226c9..22015ec9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceGcsSchemasStreamsFormatFiletype { @JsonValue private final String value; - private SourceGcsSchemasStreamsFormatFiletype(String value) { + SourceGcsSchemasStreamsFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java index 1816ae47f..e47e6ccef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormat6Filetype.java @@ -14,7 +14,7 @@ public enum SourceGcsSchemasStreamsFormatFormat6Filetype { @JsonValue private final String value; - private SourceGcsSchemasStreamsFormatFormat6Filetype(String value) { + SourceGcsSchemasStreamsFormatFormat6Filetype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java index b9663b665..387cb5825 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsFormatFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceGcsSchemasStreamsFormatFormatFiletype { @JsonValue private final String value; - private SourceGcsSchemasStreamsFormatFormatFiletype(String value) { + SourceGcsSchemasStreamsFormatFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java index 5fc719e80..b2db26773 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsSchemasStreamsHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceGcsSchemasStreamsHeaderDefinitionType { @JsonValue private final String value; - private SourceGcsSchemasStreamsHeaderDefinitionType(String value) { + SourceGcsSchemasStreamsHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsUnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsUnstructuredDocumentFormat.java index 687e57ab9..e804ba2ce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsUnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsUnstructuredDocumentFormat.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -37,14 +36,20 @@ public class SourceGcsUnstructuredDocumentFormat { private Optional processing; /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_unprocessable_files") private Optional skipUnprocessableFiles; /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strategy") @@ -84,7 +89,8 @@ public Optional processing() { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonIgnore public Optional skipUnprocessableFiles() { @@ -92,7 +98,12 @@ public Optional skipUnprocessableFiles() { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @SuppressWarnings("unchecked") @JsonIgnore @@ -100,9 +111,10 @@ public Optional strategy() { return (Optional) strategy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Processing configuration @@ -113,6 +125,7 @@ public SourceGcsUnstructuredDocumentFormat withProcessing(SourceGcsProcessing pr return this; } + /** * Processing configuration */ @@ -123,7 +136,8 @@ public SourceGcsUnstructuredDocumentFormat withProcessing(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -141,7 +157,12 @@ public SourceGcsUnstructuredDocumentFormat withSkipUnprocessableFiles(Optional`hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceGcsUnstructuredDocumentFormat withStrategy(SourceGcsParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -149,8 +170,14 @@ public SourceGcsUnstructuredDocumentFormat withStrategy(SourceGcsParsingStrategy return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceGcsUnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -158,7 +185,6 @@ public SourceGcsUnstructuredDocumentFormat withStrategy(Optional processing = Optional.empty(); - + private Optional skipUnprocessableFiles; - + private Optional strategy; - + private Builder() { // force use of static builder() method } + /** * Processing configuration */ @@ -223,8 +249,10 @@ public Builder processing(Optional processing) { return this; } + /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -233,7 +261,8 @@ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -241,8 +270,14 @@ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(SourceGcsParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -251,14 +286,19 @@ public Builder strategy(SourceGcsParsingStrategy strategy) { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; } - + public SourceGcsUnstructuredDocumentFormat build() { if (skipUnprocessableFiles == null) { skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); @@ -266,12 +306,12 @@ public SourceGcsUnstructuredDocumentFormat build() { if (strategy == null) { strategy = _SINGLETON_VALUE_Strategy.value(); } + return new SourceGcsUnstructuredDocumentFormat( - processing, - skipUnprocessableFiles, - strategy); + processing, skipUnprocessableFiles, strategy); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsUserProvided.java index e379aa077..b817105d4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsUserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsUserProvided.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGcsUserProvided { +public class SourceGcsUserProvided { /** * The column names that will be used while emitting the CSV records */ @JsonProperty("column_names") private List columnNames; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition_type") private Optional headerDefinitionType; @@ -52,9 +52,10 @@ public Optional headerDefinitionTyp return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The column names that will be used while emitting the CSV records @@ -65,7 +66,6 @@ public SourceGcsUserProvided withColumnNames(List columnNames) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -76,15 +76,14 @@ public boolean equals(java.lang.Object o) { } SourceGcsUserProvided other = (SourceGcsUserProvided) o; return - Objects.deepEquals(this.columnNames, other.columnNames) && - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.columnNames, other.columnNames) && + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( - columnNames, - headerDefinitionType); + return Utils.enhancedHash( + columnNames, headerDefinitionType); } @Override @@ -93,15 +92,17 @@ public String toString() { "columnNames", columnNames, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List columnNames; - + private Builder() { // force use of static builder() method } + /** * The column names that will be used while emitting the CSV records */ @@ -110,12 +111,14 @@ public Builder columnNames(List columnNames) { this.columnNames = columnNames; return this; } - + public SourceGcsUserProvided build() { + return new SourceGcsUserProvided( columnNames); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java index 64cd7cbd9..105ec1cb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGcsValidationPolicy.java @@ -11,7 +11,8 @@ /** * SourceGcsValidationPolicy * - *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public enum SourceGcsValidationPolicy { EMIT_RECORD("Emit Record"), @@ -21,7 +22,7 @@ public enum SourceGcsValidationPolicy { @JsonValue private final String value; - private SourceGcsValidationPolicy(String value) { + SourceGcsValidationPolicy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGetgist.java b/src/main/java/com/airbyte/api/models/shared/SourceGetgist.java index 020ca578b..6d22ba747 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGetgist.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGetgist.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceGetgist { +public class SourceGetgist { /** - * API key to use. Find it in the Integration Settings on your Gist dashboard at https://app.getgist.com/projects/_/settings/api-key. + * API key to use. Find it in the Integration Settings on your Gist dashboard at + * https://app.getgist.com/projects/_/settings/api-key. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Getgist sourceType; @@ -33,7 +34,8 @@ public SourceGetgist( } /** - * API key to use. Find it in the Integration Settings on your Gist dashboard at https://app.getgist.com/projects/_/settings/api-key. + * API key to use. Find it in the Integration Settings on your Gist dashboard at + * https://app.getgist.com/projects/_/settings/api-key. */ @JsonIgnore public String apiKey() { @@ -45,12 +47,14 @@ public Getgist sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key to use. Find it in the Integration Settings on your Gist dashboard at https://app.getgist.com/projects/_/settings/api-key. + * API key to use. Find it in the Integration Settings on your Gist dashboard at + * https://app.getgist.com/projects/_/settings/api-key. */ public SourceGetgist withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +62,6 @@ public SourceGetgist withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceGetgist other = (SourceGetgist) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * API key to use. Find it in the Integration Settings on your Gist dashboard at https://app.getgist.com/projects/_/settings/api-key. + * API key to use. Find it in the Integration Settings on your Gist dashboard at + * https://app.getgist.com/projects/_/settings/api-key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceGetgist build() { + return new SourceGetgist( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGetlago.java b/src/main/java/com/airbyte/api/models/shared/SourceGetlago.java index 88f21e839..9cef3d9c1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGetlago.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGetlago.java @@ -13,13 +13,12 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceGetlago { +public class SourceGetlago { /** - * Your API Key. See <a href="https://doc.getlago.com/docs/api/intro">here</a>. + * Your API Key. See here. */ @JsonProperty("api_key") private String apiKey; @@ -31,6 +30,7 @@ public class SourceGetlago { @JsonProperty("api_url") private Optional apiUrl; + @JsonProperty("sourceType") private Getlago sourceType; @@ -51,7 +51,7 @@ public SourceGetlago( } /** - * Your API Key. See <a href="https://doc.getlago.com/docs/api/intro">here</a>. + * Your API Key. See here. */ @JsonIgnore public String apiKey() { @@ -71,12 +71,13 @@ public Getlago sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Key. See <a href="https://doc.getlago.com/docs/api/intro">here</a>. + * Your API Key. See here. */ public SourceGetlago withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -93,6 +94,7 @@ public SourceGetlago withApiUrl(String apiUrl) { return this; } + /** * Your Lago API URL */ @@ -102,7 +104,6 @@ public SourceGetlago withApiUrl(Optional apiUrl) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,17 +114,15 @@ public boolean equals(java.lang.Object o) { } SourceGetlago other = (SourceGetlago) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiUrl, other.apiUrl) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiUrl, other.apiUrl) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiUrl, - sourceType); + return Utils.enhancedHash( + apiKey, apiUrl, sourceType); } @Override @@ -133,19 +132,21 @@ public String toString() { "apiUrl", apiUrl, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional apiUrl; - + private Builder() { // force use of static builder() method } + /** - * Your API Key. See <a href="https://doc.getlago.com/docs/api/intro">here</a>. + * Your API Key. See here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -153,6 +154,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Your Lago API URL */ @@ -170,16 +172,17 @@ public Builder apiUrl(Optional apiUrl) { this.apiUrl = apiUrl; return this; } - + public SourceGetlago build() { if (apiUrl == null) { apiUrl = _SINGLETON_VALUE_ApiUrl.value(); } + return new SourceGetlago( - apiKey, - apiUrl); + apiKey, apiUrl); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiUrl = new LazySingletonValue<>( "api_url", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGiphy.java b/src/main/java/com/airbyte/api/models/shared/SourceGiphy.java index 96e062779..f2ee5e1d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGiphy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGiphy.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceGiphy { +public class SourceGiphy { /** - * Your GIPHY API Key. You can create and find your API key in the GIPHY Developer Dashboard at https://developers.giphy.com/dashboard/. + * Your GIPHY API Key. You can create and find your API key in the GIPHY Developer Dashboard at + * https://developers.giphy.com/dashboard/. */ @JsonProperty("api_key") private String apiKey; @@ -53,9 +53,11 @@ public class SourceGiphy { @JsonProperty("query_for_stickers") private Optional queryForStickers; + @JsonProperty("sourceType") private Giphy sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -85,11 +87,13 @@ public SourceGiphy( public SourceGiphy( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), startDate); } /** - * Your GIPHY API Key. You can create and find your API key in the GIPHY Developer Dashboard at https://developers.giphy.com/dashboard/. + * Your GIPHY API Key. You can create and find your API key in the GIPHY Developer Dashboard at + * https://developers.giphy.com/dashboard/. */ @JsonIgnore public String apiKey() { @@ -138,12 +142,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your GIPHY API Key. You can create and find your API key in the GIPHY Developer Dashboard at https://developers.giphy.com/dashboard/. + * Your GIPHY API Key. You can create and find your API key in the GIPHY Developer Dashboard at + * https://developers.giphy.com/dashboard/. */ public SourceGiphy withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -160,6 +166,7 @@ public SourceGiphy withQuery(String query) { return this; } + /** * A query for search endpoint */ @@ -178,6 +185,7 @@ public SourceGiphy withQueryForClips(String queryForClips) { return this; } + /** * Query for clips search endpoint */ @@ -196,6 +204,7 @@ public SourceGiphy withQueryForGif(String queryForGif) { return this; } + /** * Query for gif search endpoint */ @@ -214,6 +223,7 @@ public SourceGiphy withQueryForStickers(String queryForStickers) { return this; } + /** * Query for stickers search endpoint */ @@ -229,7 +239,6 @@ public SourceGiphy withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -240,24 +249,20 @@ public boolean equals(java.lang.Object o) { } SourceGiphy other = (SourceGiphy) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.queryForClips, other.queryForClips) && - Objects.deepEquals(this.queryForGif, other.queryForGif) && - Objects.deepEquals(this.queryForStickers, other.queryForStickers) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.queryForClips, other.queryForClips) && + Utils.enhancedDeepEquals(this.queryForGif, other.queryForGif) && + Utils.enhancedDeepEquals(this.queryForStickers, other.queryForStickers) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - query, - queryForClips, - queryForGif, - queryForStickers, - sourceType, + return Utils.enhancedHash( + apiKey, query, queryForClips, + queryForGif, queryForStickers, sourceType, startDate); } @@ -272,27 +277,30 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional query; - + private Optional queryForClips; - + private Optional queryForGif; - + private Optional queryForStickers; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your GIPHY API Key. You can create and find your API key in the GIPHY Developer Dashboard at https://developers.giphy.com/dashboard/. + * Your GIPHY API Key. You can create and find your API key in the GIPHY Developer Dashboard at + * https://developers.giphy.com/dashboard/. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -300,6 +308,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * A query for search endpoint */ @@ -318,6 +327,7 @@ public Builder query(Optional query) { return this; } + /** * Query for clips search endpoint */ @@ -336,6 +346,7 @@ public Builder queryForClips(Optional queryForClips) { return this; } + /** * Query for gif search endpoint */ @@ -354,6 +365,7 @@ public Builder queryForGif(Optional queryForGif) { return this; } + /** * Query for stickers search endpoint */ @@ -372,12 +384,13 @@ public Builder queryForStickers(Optional queryForStickers) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceGiphy build() { if (query == null) { query = _SINGLETON_VALUE_Query.value(); @@ -391,15 +404,13 @@ public SourceGiphy build() { if (queryForStickers == null) { queryForStickers = _SINGLETON_VALUE_QueryForStickers.value(); } + return new SourceGiphy( - apiKey, - query, - queryForClips, - queryForGif, - queryForStickers, - startDate); + apiKey, query, queryForClips, + queryForGif, queryForStickers, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Query = new LazySingletonValue<>( "query", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitbook.java b/src/main/java/com/airbyte/api/models/shared/SourceGitbook.java index fa1e9ce9c..0a4052a1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitbook.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitbook.java @@ -11,19 +11,21 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceGitbook { +public class SourceGitbook { /** - * Personal access token for authenticating with the GitBook API. You can view and manage your access tokens in the Developer settings of your GitBook user account. + * Personal access token for authenticating with the GitBook API. You can view and manage your access + * tokens in the Developer settings of your GitBook user account. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Gitbook sourceType; + @JsonProperty("space_id") private String spaceId; @@ -39,7 +41,8 @@ public SourceGitbook( } /** - * Personal access token for authenticating with the GitBook API. You can view and manage your access tokens in the Developer settings of your GitBook user account. + * Personal access token for authenticating with the GitBook API. You can view and manage your access + * tokens in the Developer settings of your GitBook user account. */ @JsonIgnore public String accessToken() { @@ -56,12 +59,14 @@ public String spaceId() { return spaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Personal access token for authenticating with the GitBook API. You can view and manage your access tokens in the Developer settings of your GitBook user account. + * Personal access token for authenticating with the GitBook API. You can view and manage your access + * tokens in the Developer settings of your GitBook user account. */ public SourceGitbook withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -75,7 +80,6 @@ public SourceGitbook withSpaceId(String spaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +90,15 @@ public boolean equals(java.lang.Object o) { } SourceGitbook other = (SourceGitbook) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.spaceId, other.spaceId); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.spaceId, other.spaceId); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType, - spaceId); + return Utils.enhancedHash( + accessToken, sourceType, spaceId); } @Override @@ -106,19 +108,22 @@ public String toString() { "sourceType", sourceType, "spaceId", spaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String spaceId; - + private Builder() { // force use of static builder() method } + /** - * Personal access token for authenticating with the GitBook API. You can view and manage your access tokens in the Developer settings of your GitBook user account. + * Personal access token for authenticating with the GitBook API. You can view and manage your access + * tokens in the Developer settings of your GitBook user account. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -126,18 +131,20 @@ public Builder accessToken(String accessToken) { return this; } + public Builder spaceId(String spaceId) { Utils.checkNotNull(spaceId, "spaceId"); this.spaceId = spaceId; return this; } - + public SourceGitbook build() { + return new SourceGitbook( - accessToken, - spaceId); + accessToken, spaceId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithub.java b/src/main/java/com/airbyte/api/models/shared/SourceGithub.java index bc4670546..b45e7de47 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithub.java @@ -17,11 +17,10 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGithub { +public class SourceGithub { /** * Please enter your basic URL from self-hosted GitHub instance or leave it empty to use GitHub. */ @@ -30,7 +29,8 @@ public class SourceGithub { private Optional apiUrl; /** - * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. + * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no + * branches are specified for a repository, the default branch will be pulled. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("branches") @@ -43,23 +43,32 @@ public class SourceGithub { private SourceGithubAuthentication credentials; /** - * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to + * continue sync */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("max_waiting_time") private Optional maxWaitingTime; /** - * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. + * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, + * `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple + * repositories by pattern. */ @JsonProperty("repositories") private List repositories; + @JsonProperty("sourceType") private SourceGithubGithub sourceType; /** - * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If the date is not set, all data will be replicated. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the <a href="https://docs.airbyte.com/integrations/sources/github">docs</a> for more info + * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If + * the date is not set, all data will be replicated. For the streams which support this configuration, + * only data generated on or after the start date will be replicated. + * + *

    This field doesn't apply to all streams, see the docs for more info */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -91,7 +100,8 @@ public SourceGithub( public SourceGithub( SourceGithubAuthentication credentials, List repositories) { - this(Optional.empty(), Optional.empty(), credentials, Optional.empty(), repositories, Optional.empty()); + this(Optional.empty(), Optional.empty(), credentials, + Optional.empty(), repositories, Optional.empty()); } /** @@ -103,7 +113,8 @@ public Optional apiUrl() { } /** - * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. + * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no + * branches are specified for a repository, the default branch will be pulled. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -120,7 +131,8 @@ public SourceGithubAuthentication credentials() { } /** - * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to + * continue sync */ @JsonIgnore public Optional maxWaitingTime() { @@ -128,7 +140,9 @@ public Optional maxWaitingTime() { } /** - * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. + * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, + * `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple + * repositories by pattern. */ @JsonIgnore public List repositories() { @@ -141,16 +155,22 @@ public SourceGithubGithub sourceType() { } /** - * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If the date is not set, all data will be replicated. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the <a href="https://docs.airbyte.com/integrations/sources/github">docs</a> for more info + * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If + * the date is not set, all data will be replicated. For the streams which support this configuration, + * only data generated on or after the start date will be replicated. + * + *

    This field doesn't apply to all streams, see the docs for more info */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Please enter your basic URL from self-hosted GitHub instance or leave it empty to use GitHub. @@ -161,6 +181,7 @@ public SourceGithub withApiUrl(String apiUrl) { return this; } + /** * Please enter your basic URL from self-hosted GitHub instance or leave it empty to use GitHub. */ @@ -171,7 +192,8 @@ public SourceGithub withApiUrl(Optional apiUrl) { } /** - * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. + * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no + * branches are specified for a repository, the default branch will be pulled. */ public SourceGithub withBranches(List branches) { Utils.checkNotNull(branches, "branches"); @@ -179,8 +201,10 @@ public SourceGithub withBranches(List branches) { return this; } + /** - * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. + * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no + * branches are specified for a repository, the default branch will be pulled. */ public SourceGithub withBranches(Optional> branches) { Utils.checkNotNull(branches, "branches"); @@ -198,7 +222,8 @@ public SourceGithub withCredentials(SourceGithubAuthentication credentials) { } /** - * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to + * continue sync */ public SourceGithub withMaxWaitingTime(long maxWaitingTime) { Utils.checkNotNull(maxWaitingTime, "maxWaitingTime"); @@ -206,8 +231,10 @@ public SourceGithub withMaxWaitingTime(long maxWaitingTime) { return this; } + /** - * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to + * continue sync */ public SourceGithub withMaxWaitingTime(Optional maxWaitingTime) { Utils.checkNotNull(maxWaitingTime, "maxWaitingTime"); @@ -216,7 +243,9 @@ public SourceGithub withMaxWaitingTime(Optional maxWaitingTime) { } /** - * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. + * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, + * `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple + * repositories by pattern. */ public SourceGithub withRepositories(List repositories) { Utils.checkNotNull(repositories, "repositories"); @@ -225,7 +254,12 @@ public SourceGithub withRepositories(List repositories) { } /** - * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If the date is not set, all data will be replicated. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the <a href="https://docs.airbyte.com/integrations/sources/github">docs</a> for more info + * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If + * the date is not set, all data will be replicated. For the streams which support this configuration, + * only data generated on or after the start date will be replicated. + * + *

    This field doesn't apply to all streams, see the docs for more info */ public SourceGithub withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -233,8 +267,14 @@ public SourceGithub withStartDate(OffsetDateTime startDate) { return this; } + /** - * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If the date is not set, all data will be replicated. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the <a href="https://docs.airbyte.com/integrations/sources/github">docs</a> for more info + * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If + * the date is not set, all data will be replicated. For the streams which support this configuration, + * only data generated on or after the start date will be replicated. + * + *

    This field doesn't apply to all streams, see the docs for more info */ public SourceGithub withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -242,7 +282,6 @@ public SourceGithub withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -253,24 +292,20 @@ public boolean equals(java.lang.Object o) { } SourceGithub other = (SourceGithub) o; return - Objects.deepEquals(this.apiUrl, other.apiUrl) && - Objects.deepEquals(this.branches, other.branches) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.maxWaitingTime, other.maxWaitingTime) && - Objects.deepEquals(this.repositories, other.repositories) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiUrl, other.apiUrl) && + Utils.enhancedDeepEquals(this.branches, other.branches) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.maxWaitingTime, other.maxWaitingTime) && + Utils.enhancedDeepEquals(this.repositories, other.repositories) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiUrl, - branches, - credentials, - maxWaitingTime, - repositories, - sourceType, + return Utils.enhancedHash( + apiUrl, branches, credentials, + maxWaitingTime, repositories, sourceType, startDate); } @@ -285,25 +320,27 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiUrl; - + private Optional> branches = Optional.empty(); - + private SourceGithubAuthentication credentials; - + private Optional maxWaitingTime; - + private List repositories; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Please enter your basic URL from self-hosted GitHub instance or leave it empty to use GitHub. */ @@ -322,8 +359,10 @@ public Builder apiUrl(Optional apiUrl) { return this; } + /** - * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. + * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no + * branches are specified for a repository, the default branch will be pulled. */ public Builder branches(List branches) { Utils.checkNotNull(branches, "branches"); @@ -332,7 +371,8 @@ public Builder branches(List branches) { } /** - * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no branches are specified for a repository, the default branch will be pulled. + * List of GitHub repository branches to pull commits for, e.g. `airbytehq/airbyte/master`. If no + * branches are specified for a repository, the default branch will be pulled. */ public Builder branches(Optional> branches) { Utils.checkNotNull(branches, "branches"); @@ -340,6 +380,7 @@ public Builder branches(Optional> branches) { return this; } + /** * Choose how to authenticate to GitHub */ @@ -349,8 +390,10 @@ public Builder credentials(SourceGithubAuthentication credentials) { return this; } + /** - * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to + * continue sync */ public Builder maxWaitingTime(long maxWaitingTime) { Utils.checkNotNull(maxWaitingTime, "maxWaitingTime"); @@ -359,7 +402,8 @@ public Builder maxWaitingTime(long maxWaitingTime) { } /** - * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to continue sync + * Max Waiting Time for rate limit. Set higher value to wait till rate limits will be resetted to + * continue sync */ public Builder maxWaitingTime(Optional maxWaitingTime) { Utils.checkNotNull(maxWaitingTime, "maxWaitingTime"); @@ -367,8 +411,11 @@ public Builder maxWaitingTime(Optional maxWaitingTime) { return this; } + /** - * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple repositories by pattern. + * List of GitHub organizations/repositories, e.g. `airbytehq/airbyte` for single repository, + * `airbytehq/*` for get all repositories from organization and `airbytehq/a* for matching multiple + * repositories by pattern. */ public Builder repositories(List repositories) { Utils.checkNotNull(repositories, "repositories"); @@ -376,8 +423,14 @@ public Builder repositories(List repositories) { return this; } + /** - * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If the date is not set, all data will be replicated. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the <a href="https://docs.airbyte.com/integrations/sources/github">docs</a> for more info + * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If + * the date is not set, all data will be replicated. For the streams which support this configuration, + * only data generated on or after the start date will be replicated. + * + *

    This field doesn't apply to all streams, see the docs for more info */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -386,14 +439,19 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If the date is not set, all data will be replicated. For the streams which support this configuration, only data generated on or after the start date will be replicated. This field doesn't apply to all streams, see the <a href="https://docs.airbyte.com/integrations/sources/github">docs</a> for more info + * The date from which you'd like to replicate data from GitHub in the format YYYY-MM-DDT00:00:00Z. If + * the date is not set, all data will be replicated. For the streams which support this configuration, + * only data generated on or after the start date will be replicated. + * + *

    This field doesn't apply to all streams, see the docs for more info */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceGithub build() { if (apiUrl == null) { apiUrl = _SINGLETON_VALUE_ApiUrl.value(); @@ -401,15 +459,13 @@ public SourceGithub build() { if (maxWaitingTime == null) { maxWaitingTime = _SINGLETON_VALUE_MaxWaitingTime.value(); } + return new SourceGithub( - apiUrl, - branches, - credentials, - maxWaitingTime, - repositories, - startDate); + apiUrl, branches, credentials, + maxWaitingTime, repositories, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiUrl = new LazySingletonValue<>( "api_url", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithubAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGithubAuthentication.java index a0568076b..001e7916f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithubAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGithubAuthentication @@ -31,9 +30,9 @@ private SourceGithubAuthentication(TypedObject value) { this.value = value; } - public static SourceGithubAuthentication of(OAuth value) { + public static SourceGithubAuthentication of(SourceGithubOAuth value) { Utils.checkNotNull(value, "value"); - return new SourceGithubAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceGithubAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } public static SourceGithubAuthentication of(SourceGithubPersonalAccessToken value) { @@ -44,7 +43,7 @@ public static SourceGithubAuthentication of(SourceGithubPersonalAccessToken valu /** * Returns an instance of one of these types: *

      - *
    • {@code com.airbyte.api.models.shared.OAuth}
    • + *
    • {@code com.airbyte.api.models.shared.SourceGithubOAuth}
    • *
    • {@code com.airbyte.api.models.shared.SourceGithubPersonalAccessToken}
    • *
    * @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGithubAuthentication other = (SourceGithubAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") @@ -85,7 +84,7 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java b/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java index 04aa503bf..3f3f84a1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubGithub.java @@ -14,7 +14,7 @@ public enum SourceGithubGithub { @JsonValue private final String value; - private SourceGithubGithub(String value) { + SourceGithubGithub(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithubOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceGithubOAuth.java new file mode 100644 index 000000000..8707237d9 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubOAuth.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class SourceGithubOAuth { + /** + * OAuth access token + */ + @JsonProperty("access_token") + private String accessToken; + + /** + * OAuth Client Id + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("client_id") + private Optional clientId; + + /** + * OAuth Client secret + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("client_secret") + private Optional clientSecret; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("option_title") + private Optional optionTitle; + + @JsonCreator + public SourceGithubOAuth( + @JsonProperty("access_token") String accessToken, + @JsonProperty("client_id") Optional clientId, + @JsonProperty("client_secret") Optional clientSecret) { + Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + this.accessToken = accessToken; + this.clientId = clientId; + this.clientSecret = clientSecret; + this.optionTitle = Builder._SINGLETON_VALUE_OptionTitle.value(); + } + + public SourceGithubOAuth( + String accessToken) { + this(accessToken, Optional.empty(), Optional.empty()); + } + + /** + * OAuth access token + */ + @JsonIgnore + public String accessToken() { + return accessToken; + } + + /** + * OAuth Client Id + */ + @JsonIgnore + public Optional clientId() { + return clientId; + } + + /** + * OAuth Client secret + */ + @JsonIgnore + public Optional clientSecret() { + return clientSecret; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional optionTitle() { + return (Optional) optionTitle; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * OAuth access token + */ + public SourceGithubOAuth withAccessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + /** + * OAuth Client Id + */ + public SourceGithubOAuth withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = Optional.ofNullable(clientId); + return this; + } + + + /** + * OAuth Client Id + */ + public SourceGithubOAuth withClientId(Optional clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * OAuth Client secret + */ + public SourceGithubOAuth withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = Optional.ofNullable(clientSecret); + return this; + } + + + /** + * OAuth Client secret + */ + public SourceGithubOAuth withClientSecret(Optional clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceGithubOAuth other = (SourceGithubOAuth) o; + return + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.optionTitle, other.optionTitle); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accessToken, clientId, clientSecret, + optionTitle); + } + + @Override + public String toString() { + return Utils.toString(SourceGithubOAuth.class, + "accessToken", accessToken, + "clientId", clientId, + "clientSecret", clientSecret, + "optionTitle", optionTitle); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String accessToken; + + private Optional clientId = Optional.empty(); + + private Optional clientSecret = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * OAuth access token + */ + public Builder accessToken(String accessToken) { + Utils.checkNotNull(accessToken, "accessToken"); + this.accessToken = accessToken; + return this; + } + + + /** + * OAuth Client Id + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = Optional.ofNullable(clientId); + return this; + } + + /** + * OAuth Client Id + */ + public Builder clientId(Optional clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + + /** + * OAuth Client secret + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = Optional.ofNullable(clientSecret); + return this; + } + + /** + * OAuth Client secret + */ + public Builder clientSecret(Optional clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + public SourceGithubOAuth build() { + + return new SourceGithubOAuth( + accessToken, clientId, clientSecret); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_OptionTitle = + new LazySingletonValue<>( + "option_title", + "\"OAuth Credentials\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java index 891f0cd03..53db0a9bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubOptionTitle.java @@ -14,7 +14,7 @@ public enum SourceGithubOptionTitle { @JsonValue private final String value; - private SourceGithubOptionTitle(String value) { + SourceGithubOptionTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGithubPersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceGithubPersonalAccessToken.java index f985a43dc..07c83ebe1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGithubPersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGithubPersonalAccessToken.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGithubPersonalAccessToken { @JsonInclude(Include.NON_ABSENT) @@ -24,7 +24,9 @@ public class SourceGithubPersonalAccessToken { private Optional optionTitle; /** - * Log into GitHub and then generate a <a href="https://github.com/settings/tokens">personal access token</a>. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with "," + * Log into GitHub and then generate a personal access + * token. To load balance your API quota consumption across multiple API tokens, input multiple + * tokens separated with "," */ @JsonProperty("personal_access_token") private String personalAccessToken; @@ -44,19 +46,24 @@ public Optional optionTitle() { } /** - * Log into GitHub and then generate a <a href="https://github.com/settings/tokens">personal access token</a>. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with "," + * Log into GitHub and then generate a personal access + * token. To load balance your API quota consumption across multiple API tokens, input multiple + * tokens separated with "," */ @JsonIgnore public String personalAccessToken() { return personalAccessToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Log into GitHub and then generate a <a href="https://github.com/settings/tokens">personal access token</a>. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with "," + * Log into GitHub and then generate a personal access + * token. To load balance your API quota consumption across multiple API tokens, input multiple + * tokens separated with "," */ public SourceGithubPersonalAccessToken withPersonalAccessToken(String personalAccessToken) { Utils.checkNotNull(personalAccessToken, "personalAccessToken"); @@ -64,7 +71,6 @@ public SourceGithubPersonalAccessToken withPersonalAccessToken(String personalAc return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +81,14 @@ public boolean equals(java.lang.Object o) { } SourceGithubPersonalAccessToken other = (SourceGithubPersonalAccessToken) o; return - Objects.deepEquals(this.optionTitle, other.optionTitle) && - Objects.deepEquals(this.personalAccessToken, other.personalAccessToken); + Utils.enhancedDeepEquals(this.optionTitle, other.optionTitle) && + Utils.enhancedDeepEquals(this.personalAccessToken, other.personalAccessToken); } @Override public int hashCode() { - return Objects.hash( - optionTitle, - personalAccessToken); + return Utils.enhancedHash( + optionTitle, personalAccessToken); } @Override @@ -92,29 +97,35 @@ public String toString() { "optionTitle", optionTitle, "personalAccessToken", personalAccessToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String personalAccessToken; - + private Builder() { // force use of static builder() method } + /** - * Log into GitHub and then generate a <a href="https://github.com/settings/tokens">personal access token</a>. To load balance your API quota consumption across multiple API tokens, input multiple tokens separated with "," + * Log into GitHub and then generate a personal access + * token. To load balance your API quota consumption across multiple API tokens, input multiple + * tokens separated with "," */ public Builder personalAccessToken(String personalAccessToken) { Utils.checkNotNull(personalAccessToken, "personalAccessToken"); this.personalAccessToken = personalAccessToken; return this; } - + public SourceGithubPersonalAccessToken build() { + return new SourceGithubPersonalAccessToken( personalAccessToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_OptionTitle = new LazySingletonValue<>( "option_title", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlab.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlab.java index 546876d80..d9b609240 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlab.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlab.java @@ -16,11 +16,10 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGitlab { +public class SourceGitlab { /** * Please enter your basic URL from GitLab instance. */ @@ -28,6 +27,7 @@ public class SourceGitlab { @JsonProperty("api_url") private Optional apiUrl; + @JsonProperty("credentials") private SourceGitlabAuthorizationMethod credentials; @@ -45,11 +45,15 @@ public class SourceGitlab { @JsonProperty("projects_list") private Optional> projectsList; + @JsonProperty("sourceType") private SourceGitlabGitlab sourceType; /** - * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. Optional. If not set, all data will be replicated. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. + * Optional. If not set, all data will be replicated. + * + *

    All data generated after this date will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -77,7 +81,8 @@ public SourceGitlab( public SourceGitlab( SourceGitlabAuthorizationMethod credentials) { - this(Optional.empty(), credentials, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), credentials, Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -117,16 +122,20 @@ public SourceGitlabGitlab sourceType() { } /** - * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. Optional. If not set, all data will be replicated. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. + * Optional. If not set, all data will be replicated. + * + *

    All data generated after this date will be replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Please enter your basic URL from GitLab instance. @@ -137,6 +146,7 @@ public SourceGitlab withApiUrl(String apiUrl) { return this; } + /** * Please enter your basic URL from GitLab instance. */ @@ -161,6 +171,7 @@ public SourceGitlab withGroupsList(List groupsList) { return this; } + /** * List of groups. e.g. airbyte.io. */ @@ -179,6 +190,7 @@ public SourceGitlab withProjectsList(List projectsList) { return this; } + /** * Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab. */ @@ -189,7 +201,10 @@ public SourceGitlab withProjectsList(Optional> projectsLi } /** - * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. Optional. If not set, all data will be replicated. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. + * Optional. If not set, all data will be replicated. + * + *

    All data generated after this date will be replicated. */ public SourceGitlab withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -197,8 +212,12 @@ public SourceGitlab withStartDate(OffsetDateTime startDate) { return this; } + /** - * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. Optional. If not set, all data will be replicated. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. + * Optional. If not set, all data will be replicated. + * + *

    All data generated after this date will be replicated. */ public SourceGitlab withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -206,7 +225,6 @@ public SourceGitlab withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -217,23 +235,19 @@ public boolean equals(java.lang.Object o) { } SourceGitlab other = (SourceGitlab) o; return - Objects.deepEquals(this.apiUrl, other.apiUrl) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.groupsList, other.groupsList) && - Objects.deepEquals(this.projectsList, other.projectsList) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiUrl, other.apiUrl) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.groupsList, other.groupsList) && + Utils.enhancedDeepEquals(this.projectsList, other.projectsList) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiUrl, - credentials, - groupsList, - projectsList, - sourceType, - startDate); + return Utils.enhancedHash( + apiUrl, credentials, groupsList, + projectsList, sourceType, startDate); } @Override @@ -246,23 +260,25 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiUrl; - + private SourceGitlabAuthorizationMethod credentials; - + private Optional> groupsList = Optional.empty(); - + private Optional> projectsList = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Please enter your basic URL from GitLab instance. */ @@ -281,12 +297,14 @@ public Builder apiUrl(Optional apiUrl) { return this; } + public Builder credentials(SourceGitlabAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } + /** * List of groups. e.g. airbyte.io. */ @@ -305,6 +323,7 @@ public Builder groupsList(Optional> groupsList) { return this; } + /** * Space-delimited list of projects. e.g. airbyte.io/documentation meltano/tap-gitlab. */ @@ -323,8 +342,12 @@ public Builder projectsList(Optional> projectsList) { return this; } + /** - * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. Optional. If not set, all data will be replicated. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. + * Optional. If not set, all data will be replicated. + * + *

    All data generated after this date will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -333,26 +356,28 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. Optional. If not set, all data will be replicated. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for GitLab API, in the format YYYY-MM-DDT00:00:00Z. + * Optional. If not set, all data will be replicated. + * + *

    All data generated after this date will be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceGitlab build() { if (apiUrl == null) { apiUrl = _SINGLETON_VALUE_ApiUrl.value(); } + return new SourceGitlab( - apiUrl, - credentials, - groupsList, - projectsList, - startDate); + apiUrl, credentials, groupsList, + projectsList, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiUrl = new LazySingletonValue<>( "api_url", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java index 0c2e66acb..b99bfa05f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthType.java @@ -14,7 +14,7 @@ public enum SourceGitlabAuthType { @JsonValue private final String value; - private SourceGitlabAuthType(String value) { + SourceGitlabAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthorizationMethod.java index 59dd6d44d..c605f9317 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGitlabAuthorizationMethod._Deserializer.class) public class SourceGitlabAuthorizationMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGitlabAuthorizationMethod other = (SourceGitlabAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java index 7f3ff6d94..c78943919 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabGitlab.java @@ -14,7 +14,7 @@ public enum SourceGitlabGitlab { @JsonValue private final String value; - private SourceGitlabGitlab(String value) { + SourceGitlabGitlab(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlabOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabOAuth20.java index cb8d93554..74179cdf8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabOAuth20.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceGitlabOAuth20 { +public class SourceGitlabOAuth20 { /** * Access Token for making authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -120,9 +120,10 @@ public OffsetDateTime tokenExpiryDate() { return tokenExpiryDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -169,7 +170,6 @@ public SourceGitlabOAuth20 withTokenExpiryDate(OffsetDateTime tokenExpiryDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -180,23 +180,19 @@ public boolean equals(java.lang.Object o) { } SourceGitlabOAuth20 other = (SourceGitlabOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tokenExpiryDate, other.tokenExpiryDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tokenExpiryDate, other.tokenExpiryDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, refreshToken, tokenExpiryDate); } @Override @@ -209,23 +205,25 @@ public String toString() { "refreshToken", refreshToken, "tokenExpiryDate", tokenExpiryDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private OffsetDateTime tokenExpiryDate; - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -235,6 +233,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The API ID of the Gitlab developer application. */ @@ -244,6 +243,7 @@ public Builder clientId(String clientId) { return this; } + /** * The API Secret the Gitlab developer application. */ @@ -253,6 +253,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The key to refresh the expired access_token. */ @@ -262,6 +263,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * The date-time when the access token should be refreshed. */ @@ -270,16 +272,15 @@ public Builder tokenExpiryDate(OffsetDateTime tokenExpiryDate) { this.tokenExpiryDate = tokenExpiryDate; return this; } - + public SourceGitlabOAuth20 build() { + return new SourceGitlabOAuth20( - accessToken, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + accessToken, clientId, clientSecret, + refreshToken, tokenExpiryDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java index 5a8dbac4d..7aad1dc51 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGitlabSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceGitlabSchemasAuthType { @JsonValue private final String value; - private SourceGitlabSchemasAuthType(String value) { + SourceGitlabSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGlassfrog.java b/src/main/java/com/airbyte/api/models/shared/SourceGlassfrog.java index 22699b502..4715231ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGlassfrog.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGlassfrog.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceGlassfrog { +public class SourceGlassfrog { /** * API key provided by Glassfrog */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Glassfrog sourceType; @@ -45,9 +45,10 @@ public Glassfrog sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key provided by Glassfrog @@ -58,7 +59,6 @@ public SourceGlassfrog withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceGlassfrog other = (SourceGlassfrog) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key provided by Glassfrog */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceGlassfrog build() { + return new SourceGlassfrog( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGmail.java b/src/main/java/com/airbyte/api/models/shared/SourceGmail.java index 5695a2d44..f3cbd4aa2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGmail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGmail.java @@ -14,17 +14,19 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceGmail { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token") private String clientRefreshToken; + @JsonProperty("client_secret") private String clientSecret; @@ -35,6 +37,7 @@ public class SourceGmail { @JsonProperty("include_spam_and_trash") private Optional includeSpamAndTrash; + @JsonProperty("sourceType") private Gmail sourceType; @@ -59,7 +62,8 @@ public SourceGmail( String clientId, String clientRefreshToken, String clientSecret) { - this(clientId, clientRefreshToken, clientSecret, Optional.empty()); + this(clientId, clientRefreshToken, clientSecret, + Optional.empty()); } @JsonIgnore @@ -90,9 +94,10 @@ public Gmail sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGmail withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -121,6 +126,7 @@ public SourceGmail withIncludeSpamAndTrash(boolean includeSpamAndTrash) { return this; } + /** * Include drafts/messages from SPAM and TRASH in the results. Defaults to false. */ @@ -130,7 +136,6 @@ public SourceGmail withIncludeSpamAndTrash(Optional includeSpamAndTrash return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -141,21 +146,18 @@ public boolean equals(java.lang.Object o) { } SourceGmail other = (SourceGmail) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken, other.clientRefreshToken) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.includeSpamAndTrash, other.includeSpamAndTrash) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.includeSpamAndTrash, other.includeSpamAndTrash) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientRefreshToken, - clientSecret, - includeSpamAndTrash, - sourceType); + return Utils.enhancedHash( + clientId, clientRefreshToken, clientSecret, + includeSpamAndTrash, sourceType); } @Override @@ -167,39 +169,44 @@ public String toString() { "includeSpamAndTrash", includeSpamAndTrash, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientRefreshToken; - + private String clientSecret; - + private Optional includeSpamAndTrash; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); this.clientRefreshToken = clientRefreshToken; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** * Include drafts/messages from SPAM and TRASH in the results. Defaults to false. */ @@ -217,18 +224,18 @@ public Builder includeSpamAndTrash(Optional includeSpamAndTrash) { this.includeSpamAndTrash = includeSpamAndTrash; return this; } - + public SourceGmail build() { if (includeSpamAndTrash == null) { includeSpamAndTrash = _SINGLETON_VALUE_IncludeSpamAndTrash.value(); } + return new SourceGmail( - clientId, - clientRefreshToken, - clientSecret, + clientId, clientRefreshToken, clientSecret, includeSpamAndTrash); } + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeSpamAndTrash = new LazySingletonValue<>( "include_spam_and_trash", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGnews.java b/src/main/java/com/airbyte/api/models/shared/SourceGnews.java index 61b75111d..006d8e119 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnews.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnews.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGnews { +public class SourceGnews { /** * API Key */ @@ -27,104 +26,128 @@ public class SourceGnews { private String apiKey; /** - * This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. + * This parameter allows you to specify the country where the news articles returned by the API were + * published, the contents of the articles are not necessarily related to the specified country. You + * have to set as value the 2 letters code of the country you want to filter. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("country") private Optional country; /** - * This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date smaller than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") private Optional endDate; /** - * This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes. + * This parameter allows you to choose in which attributes the keywords are searched. The attributes + * that can be set are title, description and content. It is possible to combine several attributes. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("in") private Optional> in; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("language") private Optional language; /** - * This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes + * This parameter allows you to specify the attributes that you allow to return null values. The + * attributes that can be set are title, description and content. It is possible to combine several + * attributes */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("nullable") private Optional> nullable; /** - * This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by - * quotation marks are used to search for articles with the exact same keyword - * sequence. - * For example the query: "Apple iPhone" will return articles matching at - * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article - * search. By default the space character acts as an AND operator, it is - * possible to replace the space character - * by AND to obtain the same result. For example the query: Apple Microsoft - * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b. - * It is important to note that this operator has a higher precedence than - * the AND operator. For example the - * query: Apple OR Microsoft will return all articles matching the keyword - * Apple as well as all articles matching - * the keyword Microsoft - * - Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the - * specified keywords. To use it, you need to add NOT in front of each word + * This parameter allows you to specify your search keywords to find the news articles you are looking + * for. The keywords will be used to return the most relevant articles. It is possible to use logical + * operators with keywords. + * + *

    - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by + * quotation marks are used to search for articles with the exact same keyword + * sequence. + * For example the query: "Apple iPhone" will return articles matching at + * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure + * that several keywords are all used in the article + * search. By default the space character acts as an AND operator, it is + * possible to replace the space character + * by AND to obtain the same result. For example the query: Apple Microsoft + * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve + * articles matching the keyword a or the keyword b. + * It is important to note that this operator has a higher precedence than + * the AND operator. For example the + * query: Apple OR Microsoft will return all articles matching the keyword + * Apple as well as all articles matching + * the keyword Microsoft + * - Logical NOT Operator: This operator allows you to remove from the results the articles + * corresponding to the + * specified keywords. To use it, you need to add NOT in front of each word * or phrase surrounded by quotes. - * For example the query: Apple NOT iPhone will return all articles matching + * For example the query: Apple NOT iPhone will return all articles matching * the keyword Apple but not the keyword - * iPhone + * iPhone */ @JsonProperty("query") private String query; /** - * This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible: - * - publishedAt = sort by publication date, the articles with the most recent + * This parameter allows you to choose with which type of sorting the articles should be returned. Two + * values are possible: + * - publishedAt = sort by publication date, the articles with the most recent * publication date are returned first - * - relevance = sort by best match to keywords, the articles with the best + * - relevance = sort by best match to keywords, the articles with the best * match are returned first */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sortby") private Optional sortby; + @JsonProperty("sourceType") private Gnews sourceType; /** - * This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date greater than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by - * quotation marks are used to search for articles with the exact same keyword - * sequence. - * For example the query: "Apple iPhone" will return articles matching at - * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article - * search. By default the space character acts as an AND operator, it is - * possible to replace the space character - * by AND to obtain the same result. For example the query: Apple Microsoft - * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b. - * It is important to note that this operator has a higher precedence than - * the AND operator. For example the - * query: Apple OR Microsoft will return all articles matching the keyword - * Apple as well as all articles matching - * the keyword Microsoft - * - Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the - * specified keywords. To use it, you need to add NOT in front of each word + * This parameter allows you to specify your search keywords to find the news articles you are looking + * for. The keywords will be used to return the most relevant articles. It is possible to use logical + * operators with keywords. + * + *

    - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by + * quotation marks are used to search for articles with the exact same keyword + * sequence. + * For example the query: "Apple iPhone" will return articles matching at + * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure + * that several keywords are all used in the article + * search. By default the space character acts as an AND operator, it is + * possible to replace the space character + * by AND to obtain the same result. For example the query: Apple Microsoft + * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve + * articles matching the keyword a or the keyword b. + * It is important to note that this operator has a higher precedence than + * the AND operator. For example the + * query: Apple OR Microsoft will return all articles matching the keyword + * Apple as well as all articles matching + * the keyword Microsoft + * - Logical NOT Operator: This operator allows you to remove from the results the articles + * corresponding to the + * specified keywords. To use it, you need to add NOT in front of each word * or phrase surrounded by quotes. - * For example the query: Apple NOT iPhone will return all articles matching + * For example the query: Apple NOT iPhone will return all articles matching * the keyword Apple but not the keyword - * iPhone + * iPhone */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("top_headlines_query") @@ -178,7 +201,10 @@ public SourceGnews( public SourceGnews( String apiKey, String query) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), query, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + query, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -190,7 +216,9 @@ public String apiKey() { } /** - * This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. + * This parameter allows you to specify the country where the news articles returned by the API were + * published, the contents of the articles are not necessarily related to the specified country. You + * have to set as value the 2 letters code of the country you want to filter. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -199,7 +227,8 @@ public Optional country() { } /** - * This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date smaller than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ @JsonIgnore public Optional endDate() { @@ -207,7 +236,8 @@ public Optional endDate() { } /** - * This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes. + * This parameter allows you to choose in which attributes the keywords are searched. The attributes + * that can be set are title, description and content. It is possible to combine several attributes. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -222,7 +252,9 @@ public Optional language() { } /** - * This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes + * This parameter allows you to specify the attributes that you allow to return null values. The + * attributes that can be set are title, description and content. It is possible to combine several + * attributes */ @SuppressWarnings("unchecked") @JsonIgnore @@ -231,26 +263,33 @@ public Optional> nullable() { } /** - * This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by - * quotation marks are used to search for articles with the exact same keyword - * sequence. - * For example the query: "Apple iPhone" will return articles matching at - * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article - * search. By default the space character acts as an AND operator, it is - * possible to replace the space character - * by AND to obtain the same result. For example the query: Apple Microsoft - * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b. - * It is important to note that this operator has a higher precedence than - * the AND operator. For example the - * query: Apple OR Microsoft will return all articles matching the keyword - * Apple as well as all articles matching - * the keyword Microsoft - * - Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the - * specified keywords. To use it, you need to add NOT in front of each word + * This parameter allows you to specify your search keywords to find the news articles you are looking + * for. The keywords will be used to return the most relevant articles. It is possible to use logical + * operators with keywords. + * + *

    - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by + * quotation marks are used to search for articles with the exact same keyword + * sequence. + * For example the query: "Apple iPhone" will return articles matching at + * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure + * that several keywords are all used in the article + * search. By default the space character acts as an AND operator, it is + * possible to replace the space character + * by AND to obtain the same result. For example the query: Apple Microsoft + * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve + * articles matching the keyword a or the keyword b. + * It is important to note that this operator has a higher precedence than + * the AND operator. For example the + * query: Apple OR Microsoft will return all articles matching the keyword + * Apple as well as all articles matching + * the keyword Microsoft + * - Logical NOT Operator: This operator allows you to remove from the results the articles + * corresponding to the + * specified keywords. To use it, you need to add NOT in front of each word * or phrase surrounded by quotes. - * For example the query: Apple NOT iPhone will return all articles matching + * For example the query: Apple NOT iPhone will return all articles matching * the keyword Apple but not the keyword - * iPhone + * iPhone */ @JsonIgnore public String query() { @@ -258,10 +297,11 @@ public String query() { } /** - * This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible: - * - publishedAt = sort by publication date, the articles with the most recent + * This parameter allows you to choose with which type of sorting the articles should be returned. Two + * values are possible: + * - publishedAt = sort by publication date, the articles with the most recent * publication date are returned first - * - relevance = sort by best match to keywords, the articles with the best + * - relevance = sort by best match to keywords, the articles with the best * match are returned first */ @SuppressWarnings("unchecked") @@ -276,7 +316,8 @@ public Gnews sourceType() { } /** - * This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date greater than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ @JsonIgnore public Optional startDate() { @@ -284,26 +325,33 @@ public Optional startDate() { } /** - * This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by - * quotation marks are used to search for articles with the exact same keyword - * sequence. - * For example the query: "Apple iPhone" will return articles matching at - * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article - * search. By default the space character acts as an AND operator, it is - * possible to replace the space character - * by AND to obtain the same result. For example the query: Apple Microsoft - * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b. - * It is important to note that this operator has a higher precedence than - * the AND operator. For example the - * query: Apple OR Microsoft will return all articles matching the keyword - * Apple as well as all articles matching - * the keyword Microsoft - * - Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the - * specified keywords. To use it, you need to add NOT in front of each word + * This parameter allows you to specify your search keywords to find the news articles you are looking + * for. The keywords will be used to return the most relevant articles. It is possible to use logical + * operators with keywords. + * + *

    - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by + * quotation marks are used to search for articles with the exact same keyword + * sequence. + * For example the query: "Apple iPhone" will return articles matching at + * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure + * that several keywords are all used in the article + * search. By default the space character acts as an AND operator, it is + * possible to replace the space character + * by AND to obtain the same result. For example the query: Apple Microsoft + * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve + * articles matching the keyword a or the keyword b. + * It is important to note that this operator has a higher precedence than + * the AND operator. For example the + * query: Apple OR Microsoft will return all articles matching the keyword + * Apple as well as all articles matching + * the keyword Microsoft + * - Logical NOT Operator: This operator allows you to remove from the results the articles + * corresponding to the + * specified keywords. To use it, you need to add NOT in front of each word * or phrase surrounded by quotes. - * For example the query: Apple NOT iPhone will return all articles matching + * For example the query: Apple NOT iPhone will return all articles matching * the keyword Apple but not the keyword - * iPhone + * iPhone */ @JsonIgnore public Optional topHeadlinesQuery() { @@ -319,9 +367,10 @@ public Optional topHeadlinesTopic() { return (Optional) topHeadlinesTopic; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -333,7 +382,9 @@ public SourceGnews withApiKey(String apiKey) { } /** - * This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. + * This parameter allows you to specify the country where the news articles returned by the API were + * published, the contents of the articles are not necessarily related to the specified country. You + * have to set as value the 2 letters code of the country you want to filter. */ public SourceGnews withCountry(SourceGnewsCountry country) { Utils.checkNotNull(country, "country"); @@ -341,8 +392,11 @@ public SourceGnews withCountry(SourceGnewsCountry country) { return this; } + /** - * This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. + * This parameter allows you to specify the country where the news articles returned by the API were + * published, the contents of the articles are not necessarily related to the specified country. You + * have to set as value the 2 letters code of the country you want to filter. */ public SourceGnews withCountry(Optional country) { Utils.checkNotNull(country, "country"); @@ -351,7 +405,8 @@ public SourceGnews withCountry(Optional country) { } /** - * This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date smaller than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ public SourceGnews withEndDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -359,8 +414,10 @@ public SourceGnews withEndDate(String endDate) { return this; } + /** - * This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date smaller than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ public SourceGnews withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -369,7 +426,8 @@ public SourceGnews withEndDate(Optional endDate) { } /** - * This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes. + * This parameter allows you to choose in which attributes the keywords are searched. The attributes + * that can be set are title, description and content. It is possible to combine several attributes. */ public SourceGnews withIn(List in) { Utils.checkNotNull(in, "in"); @@ -377,8 +435,10 @@ public SourceGnews withIn(List in) { return this; } + /** - * This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes. + * This parameter allows you to choose in which attributes the keywords are searched. The attributes + * that can be set are title, description and content. It is possible to combine several attributes. */ public SourceGnews withIn(Optional> in) { Utils.checkNotNull(in, "in"); @@ -392,6 +452,7 @@ public SourceGnews withLanguage(SourceGnewsLanguage language) { return this; } + public SourceGnews withLanguage(Optional language) { Utils.checkNotNull(language, "language"); this.language = language; @@ -399,7 +460,9 @@ public SourceGnews withLanguage(Optional language } /** - * This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes + * This parameter allows you to specify the attributes that you allow to return null values. The + * attributes that can be set are title, description and content. It is possible to combine several + * attributes */ public SourceGnews withNullable(List nullable) { Utils.checkNotNull(nullable, "nullable"); @@ -407,8 +470,11 @@ public SourceGnews withNullable(List nullable) { return this; } + /** - * This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes + * This parameter allows you to specify the attributes that you allow to return null values. The + * attributes that can be set are title, description and content. It is possible to combine several + * attributes */ public SourceGnews withNullable(Optional> nullable) { Utils.checkNotNull(nullable, "nullable"); @@ -417,26 +483,33 @@ public SourceGnews withNullable(Optional> nullable) { } /** - * This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by - * quotation marks are used to search for articles with the exact same keyword - * sequence. - * For example the query: "Apple iPhone" will return articles matching at - * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article - * search. By default the space character acts as an AND operator, it is - * possible to replace the space character - * by AND to obtain the same result. For example the query: Apple Microsoft - * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b. - * It is important to note that this operator has a higher precedence than - * the AND operator. For example the - * query: Apple OR Microsoft will return all articles matching the keyword - * Apple as well as all articles matching - * the keyword Microsoft - * - Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the - * specified keywords. To use it, you need to add NOT in front of each word + * This parameter allows you to specify your search keywords to find the news articles you are looking + * for. The keywords will be used to return the most relevant articles. It is possible to use logical + * operators with keywords. + * + *

    - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by + * quotation marks are used to search for articles with the exact same keyword + * sequence. + * For example the query: "Apple iPhone" will return articles matching at + * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure + * that several keywords are all used in the article + * search. By default the space character acts as an AND operator, it is + * possible to replace the space character + * by AND to obtain the same result. For example the query: Apple Microsoft + * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve + * articles matching the keyword a or the keyword b. + * It is important to note that this operator has a higher precedence than + * the AND operator. For example the + * query: Apple OR Microsoft will return all articles matching the keyword + * Apple as well as all articles matching + * the keyword Microsoft + * - Logical NOT Operator: This operator allows you to remove from the results the articles + * corresponding to the + * specified keywords. To use it, you need to add NOT in front of each word * or phrase surrounded by quotes. - * For example the query: Apple NOT iPhone will return all articles matching + * For example the query: Apple NOT iPhone will return all articles matching * the keyword Apple but not the keyword - * iPhone + * iPhone */ public SourceGnews withQuery(String query) { Utils.checkNotNull(query, "query"); @@ -445,10 +518,11 @@ public SourceGnews withQuery(String query) { } /** - * This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible: - * - publishedAt = sort by publication date, the articles with the most recent + * This parameter allows you to choose with which type of sorting the articles should be returned. Two + * values are possible: + * - publishedAt = sort by publication date, the articles with the most recent * publication date are returned first - * - relevance = sort by best match to keywords, the articles with the best + * - relevance = sort by best match to keywords, the articles with the best * match are returned first */ public SourceGnews withSortby(SourceGnewsSortBy sortby) { @@ -457,11 +531,13 @@ public SourceGnews withSortby(SourceGnewsSortBy sortby) { return this; } + /** - * This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible: - * - publishedAt = sort by publication date, the articles with the most recent + * This parameter allows you to choose with which type of sorting the articles should be returned. Two + * values are possible: + * - publishedAt = sort by publication date, the articles with the most recent * publication date are returned first - * - relevance = sort by best match to keywords, the articles with the best + * - relevance = sort by best match to keywords, the articles with the best * match are returned first */ public SourceGnews withSortby(Optional sortby) { @@ -471,7 +547,8 @@ public SourceGnews withSortby(Optional sortby) { } /** - * This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date greater than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ public SourceGnews withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -479,8 +556,10 @@ public SourceGnews withStartDate(String startDate) { return this; } + /** - * This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date greater than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ public SourceGnews withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -489,26 +568,33 @@ public SourceGnews withStartDate(Optional startDate) { } /** - * This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by - * quotation marks are used to search for articles with the exact same keyword - * sequence. - * For example the query: "Apple iPhone" will return articles matching at - * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article - * search. By default the space character acts as an AND operator, it is - * possible to replace the space character - * by AND to obtain the same result. For example the query: Apple Microsoft - * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b. - * It is important to note that this operator has a higher precedence than - * the AND operator. For example the - * query: Apple OR Microsoft will return all articles matching the keyword - * Apple as well as all articles matching - * the keyword Microsoft - * - Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the - * specified keywords. To use it, you need to add NOT in front of each word + * This parameter allows you to specify your search keywords to find the news articles you are looking + * for. The keywords will be used to return the most relevant articles. It is possible to use logical + * operators with keywords. + * + *

    - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by + * quotation marks are used to search for articles with the exact same keyword + * sequence. + * For example the query: "Apple iPhone" will return articles matching at + * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure + * that several keywords are all used in the article + * search. By default the space character acts as an AND operator, it is + * possible to replace the space character + * by AND to obtain the same result. For example the query: Apple Microsoft + * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve + * articles matching the keyword a or the keyword b. + * It is important to note that this operator has a higher precedence than + * the AND operator. For example the + * query: Apple OR Microsoft will return all articles matching the keyword + * Apple as well as all articles matching + * the keyword Microsoft + * - Logical NOT Operator: This operator allows you to remove from the results the articles + * corresponding to the + * specified keywords. To use it, you need to add NOT in front of each word * or phrase surrounded by quotes. - * For example the query: Apple NOT iPhone will return all articles matching + * For example the query: Apple NOT iPhone will return all articles matching * the keyword Apple but not the keyword - * iPhone + * iPhone */ public SourceGnews withTopHeadlinesQuery(String topHeadlinesQuery) { Utils.checkNotNull(topHeadlinesQuery, "topHeadlinesQuery"); @@ -516,27 +602,35 @@ public SourceGnews withTopHeadlinesQuery(String topHeadlinesQuery) { return this; } + /** - * This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by - * quotation marks are used to search for articles with the exact same keyword - * sequence. - * For example the query: "Apple iPhone" will return articles matching at - * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article - * search. By default the space character acts as an AND operator, it is - * possible to replace the space character - * by AND to obtain the same result. For example the query: Apple Microsoft - * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b. - * It is important to note that this operator has a higher precedence than - * the AND operator. For example the - * query: Apple OR Microsoft will return all articles matching the keyword - * Apple as well as all articles matching - * the keyword Microsoft - * - Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the - * specified keywords. To use it, you need to add NOT in front of each word + * This parameter allows you to specify your search keywords to find the news articles you are looking + * for. The keywords will be used to return the most relevant articles. It is possible to use logical + * operators with keywords. + * + *

    - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by + * quotation marks are used to search for articles with the exact same keyword + * sequence. + * For example the query: "Apple iPhone" will return articles matching at + * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure + * that several keywords are all used in the article + * search. By default the space character acts as an AND operator, it is + * possible to replace the space character + * by AND to obtain the same result. For example the query: Apple Microsoft + * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve + * articles matching the keyword a or the keyword b. + * It is important to note that this operator has a higher precedence than + * the AND operator. For example the + * query: Apple OR Microsoft will return all articles matching the keyword + * Apple as well as all articles matching + * the keyword Microsoft + * - Logical NOT Operator: This operator allows you to remove from the results the articles + * corresponding to the + * specified keywords. To use it, you need to add NOT in front of each word * or phrase surrounded by quotes. - * For example the query: Apple NOT iPhone will return all articles matching + * For example the query: Apple NOT iPhone will return all articles matching * the keyword Apple but not the keyword - * iPhone + * iPhone */ public SourceGnews withTopHeadlinesQuery(Optional topHeadlinesQuery) { Utils.checkNotNull(topHeadlinesQuery, "topHeadlinesQuery"); @@ -553,6 +647,7 @@ public SourceGnews withTopHeadlinesTopic(TopHeadlinesTopic topHeadlinesTopic) { return this; } + /** * This parameter allows you to change the category for the request. */ @@ -562,7 +657,6 @@ public SourceGnews withTopHeadlinesTopic(Optional t return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -573,35 +667,27 @@ public boolean equals(java.lang.Object o) { } SourceGnews other = (SourceGnews) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.country, other.country) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.in, other.in) && - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.nullable, other.nullable) && - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.sortby, other.sortby) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.topHeadlinesQuery, other.topHeadlinesQuery) && - Objects.deepEquals(this.topHeadlinesTopic, other.topHeadlinesTopic); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.country, other.country) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.in, other.in) && + Utils.enhancedDeepEquals(this.language, other.language) && + Utils.enhancedDeepEquals(this.nullable, other.nullable) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.sortby, other.sortby) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.topHeadlinesQuery, other.topHeadlinesQuery) && + Utils.enhancedDeepEquals(this.topHeadlinesTopic, other.topHeadlinesTopic); } @Override public int hashCode() { - return Objects.hash( - apiKey, - country, - endDate, - in, - language, - nullable, - query, - sortby, - sourceType, - startDate, - topHeadlinesQuery, - topHeadlinesTopic); + return Utils.enhancedHash( + apiKey, country, endDate, + in, language, nullable, + query, sortby, sourceType, + startDate, topHeadlinesQuery, topHeadlinesTopic); } @Override @@ -620,35 +706,37 @@ public String toString() { "topHeadlinesQuery", topHeadlinesQuery, "topHeadlinesTopic", topHeadlinesTopic); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional country = Optional.empty(); - + private Optional endDate = Optional.empty(); - + private Optional> in = Optional.empty(); - + private Optional language = Optional.empty(); - + private Optional> nullable = Optional.empty(); - + private String query; - + private Optional sortby = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Optional topHeadlinesQuery = Optional.empty(); - + private Optional topHeadlinesTopic = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -658,8 +746,11 @@ public Builder apiKey(String apiKey) { return this; } + /** - * This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. + * This parameter allows you to specify the country where the news articles returned by the API were + * published, the contents of the articles are not necessarily related to the specified country. You + * have to set as value the 2 letters code of the country you want to filter. */ public Builder country(SourceGnewsCountry country) { Utils.checkNotNull(country, "country"); @@ -668,7 +759,9 @@ public Builder country(SourceGnewsCountry country) { } /** - * This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. + * This parameter allows you to specify the country where the news articles returned by the API were + * published, the contents of the articles are not necessarily related to the specified country. You + * have to set as value the 2 letters code of the country you want to filter. */ public Builder country(Optional country) { Utils.checkNotNull(country, "country"); @@ -676,8 +769,10 @@ public Builder country(Optional country) { return this; } + /** - * This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date smaller than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ public Builder endDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -686,7 +781,8 @@ public Builder endDate(String endDate) { } /** - * This parameter allows you to filter the articles that have a publication date smaller than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date smaller than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -694,8 +790,10 @@ public Builder endDate(Optional endDate) { return this; } + /** - * This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes. + * This parameter allows you to choose in which attributes the keywords are searched. The attributes + * that can be set are title, description and content. It is possible to combine several attributes. */ public Builder in(List in) { Utils.checkNotNull(in, "in"); @@ -704,7 +802,8 @@ public Builder in(List in) { } /** - * This parameter allows you to choose in which attributes the keywords are searched. The attributes that can be set are title, description and content. It is possible to combine several attributes. + * This parameter allows you to choose in which attributes the keywords are searched. The attributes + * that can be set are title, description and content. It is possible to combine several attributes. */ public Builder in(Optional> in) { Utils.checkNotNull(in, "in"); @@ -712,6 +811,7 @@ public Builder in(Optional> in) { return this; } + public Builder language(SourceGnewsLanguage language) { Utils.checkNotNull(language, "language"); this.language = Optional.ofNullable(language); @@ -724,8 +824,11 @@ public Builder language(Optional language) { return this; } + /** - * This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes + * This parameter allows you to specify the attributes that you allow to return null values. The + * attributes that can be set are title, description and content. It is possible to combine several + * attributes */ public Builder nullable(List nullable) { Utils.checkNotNull(nullable, "nullable"); @@ -734,7 +837,9 @@ public Builder nullable(List nullable) { } /** - * This parameter allows you to specify the attributes that you allow to return null values. The attributes that can be set are title, description and content. It is possible to combine several attributes + * This parameter allows you to specify the attributes that you allow to return null values. The + * attributes that can be set are title, description and content. It is possible to combine several + * attributes */ public Builder nullable(Optional> nullable) { Utils.checkNotNull(nullable, "nullable"); @@ -742,27 +847,35 @@ public Builder nullable(Optional> nullable) { return this; } + /** - * This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by - * quotation marks are used to search for articles with the exact same keyword - * sequence. - * For example the query: "Apple iPhone" will return articles matching at - * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article - * search. By default the space character acts as an AND operator, it is - * possible to replace the space character - * by AND to obtain the same result. For example the query: Apple Microsoft - * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b. - * It is important to note that this operator has a higher precedence than - * the AND operator. For example the - * query: Apple OR Microsoft will return all articles matching the keyword - * Apple as well as all articles matching - * the keyword Microsoft - * - Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the - * specified keywords. To use it, you need to add NOT in front of each word + * This parameter allows you to specify your search keywords to find the news articles you are looking + * for. The keywords will be used to return the most relevant articles. It is possible to use logical + * operators with keywords. + * + *

    - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by + * quotation marks are used to search for articles with the exact same keyword + * sequence. + * For example the query: "Apple iPhone" will return articles matching at + * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure + * that several keywords are all used in the article + * search. By default the space character acts as an AND operator, it is + * possible to replace the space character + * by AND to obtain the same result. For example the query: Apple Microsoft + * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve + * articles matching the keyword a or the keyword b. + * It is important to note that this operator has a higher precedence than + * the AND operator. For example the + * query: Apple OR Microsoft will return all articles matching the keyword + * Apple as well as all articles matching + * the keyword Microsoft + * - Logical NOT Operator: This operator allows you to remove from the results the articles + * corresponding to the + * specified keywords. To use it, you need to add NOT in front of each word * or phrase surrounded by quotes. - * For example the query: Apple NOT iPhone will return all articles matching + * For example the query: Apple NOT iPhone will return all articles matching * the keyword Apple but not the keyword - * iPhone + * iPhone */ public Builder query(String query) { Utils.checkNotNull(query, "query"); @@ -770,11 +883,13 @@ public Builder query(String query) { return this; } + /** - * This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible: - * - publishedAt = sort by publication date, the articles with the most recent + * This parameter allows you to choose with which type of sorting the articles should be returned. Two + * values are possible: + * - publishedAt = sort by publication date, the articles with the most recent * publication date are returned first - * - relevance = sort by best match to keywords, the articles with the best + * - relevance = sort by best match to keywords, the articles with the best * match are returned first */ public Builder sortby(SourceGnewsSortBy sortby) { @@ -784,10 +899,11 @@ public Builder sortby(SourceGnewsSortBy sortby) { } /** - * This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible: - * - publishedAt = sort by publication date, the articles with the most recent + * This parameter allows you to choose with which type of sorting the articles should be returned. Two + * values are possible: + * - publishedAt = sort by publication date, the articles with the most recent * publication date are returned first - * - relevance = sort by best match to keywords, the articles with the best + * - relevance = sort by best match to keywords, the articles with the best * match are returned first */ public Builder sortby(Optional sortby) { @@ -796,8 +912,10 @@ public Builder sortby(Optional sortby) { return this; } + /** - * This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date greater than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -806,7 +924,8 @@ public Builder startDate(String startDate) { } /** - * This parameter allows you to filter the articles that have a publication date greater than or equal to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) + * This parameter allows you to filter the articles that have a publication date greater than or equal + * to the specified value. The date must respect the following format: YYYY-MM-DD hh:mm:ss (in UTC) */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -814,27 +933,35 @@ public Builder startDate(Optional startDate) { return this; } + /** - * This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by - * quotation marks are used to search for articles with the exact same keyword - * sequence. - * For example the query: "Apple iPhone" will return articles matching at - * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article - * search. By default the space character acts as an AND operator, it is - * possible to replace the space character - * by AND to obtain the same result. For example the query: Apple Microsoft - * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b. - * It is important to note that this operator has a higher precedence than - * the AND operator. For example the - * query: Apple OR Microsoft will return all articles matching the keyword - * Apple as well as all articles matching - * the keyword Microsoft - * - Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the - * specified keywords. To use it, you need to add NOT in front of each word + * This parameter allows you to specify your search keywords to find the news articles you are looking + * for. The keywords will be used to return the most relevant articles. It is possible to use logical + * operators with keywords. + * + *

    - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by + * quotation marks are used to search for articles with the exact same keyword + * sequence. + * For example the query: "Apple iPhone" will return articles matching at + * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure + * that several keywords are all used in the article + * search. By default the space character acts as an AND operator, it is + * possible to replace the space character + * by AND to obtain the same result. For example the query: Apple Microsoft + * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve + * articles matching the keyword a or the keyword b. + * It is important to note that this operator has a higher precedence than + * the AND operator. For example the + * query: Apple OR Microsoft will return all articles matching the keyword + * Apple as well as all articles matching + * the keyword Microsoft + * - Logical NOT Operator: This operator allows you to remove from the results the articles + * corresponding to the + * specified keywords. To use it, you need to add NOT in front of each word * or phrase surrounded by quotes. - * For example the query: Apple NOT iPhone will return all articles matching + * For example the query: Apple NOT iPhone will return all articles matching * the keyword Apple but not the keyword - * iPhone + * iPhone */ public Builder topHeadlinesQuery(String topHeadlinesQuery) { Utils.checkNotNull(topHeadlinesQuery, "topHeadlinesQuery"); @@ -843,26 +970,33 @@ public Builder topHeadlinesQuery(String topHeadlinesQuery) { } /** - * This parameter allows you to specify your search keywords to find the news articles you are looking for. The keywords will be used to return the most relevant articles. It is possible to use logical operators with keywords. - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by - * quotation marks are used to search for articles with the exact same keyword - * sequence. - * For example the query: "Apple iPhone" will return articles matching at - * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure that several keywords are all used in the article - * search. By default the space character acts as an AND operator, it is - * possible to replace the space character - * by AND to obtain the same result. For example the query: Apple Microsoft - * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve articles matching the keyword a or the keyword b. - * It is important to note that this operator has a higher precedence than - * the AND operator. For example the - * query: Apple OR Microsoft will return all articles matching the keyword - * Apple as well as all articles matching - * the keyword Microsoft - * - Logical NOT Operator: This operator allows you to remove from the results the articles corresponding to the - * specified keywords. To use it, you need to add NOT in front of each word + * This parameter allows you to specify your search keywords to find the news articles you are looking + * for. The keywords will be used to return the most relevant articles. It is possible to use logical + * operators with keywords. + * + *

    - Phrase Search Operator: This operator allows you to make an exact search. Keywords surrounded by + * quotation marks are used to search for articles with the exact same keyword + * sequence. + * For example the query: "Apple iPhone" will return articles matching at + * least once this sequence of keywords. - Logical AND Operator: This operator allows you to make sure + * that several keywords are all used in the article + * search. By default the space character acts as an AND operator, it is + * possible to replace the space character + * by AND to obtain the same result. For example the query: Apple Microsoft + * is equivalent to Apple AND Microsoft - Logical OR Operator: This operator allows you to retrieve + * articles matching the keyword a or the keyword b. + * It is important to note that this operator has a higher precedence than + * the AND operator. For example the + * query: Apple OR Microsoft will return all articles matching the keyword + * Apple as well as all articles matching + * the keyword Microsoft + * - Logical NOT Operator: This operator allows you to remove from the results the articles + * corresponding to the + * specified keywords. To use it, you need to add NOT in front of each word * or phrase surrounded by quotes. - * For example the query: Apple NOT iPhone will return all articles matching + * For example the query: Apple NOT iPhone will return all articles matching * the keyword Apple but not the keyword - * iPhone + * iPhone */ public Builder topHeadlinesQuery(Optional topHeadlinesQuery) { Utils.checkNotNull(topHeadlinesQuery, "topHeadlinesQuery"); @@ -870,6 +1004,7 @@ public Builder topHeadlinesQuery(Optional topHeadlinesQuery) { return this; } + /** * This parameter allows you to change the category for the request. */ @@ -887,22 +1022,17 @@ public Builder topHeadlinesTopic(Optional topHeadli this.topHeadlinesTopic = topHeadlinesTopic; return this; } - + public SourceGnews build() { + return new SourceGnews( - apiKey, - country, - endDate, - in, - language, - nullable, - query, - sortby, - startDate, - topHeadlinesQuery, - topHeadlinesTopic); + apiKey, country, endDate, + in, language, nullable, + query, sortby, startDate, + topHeadlinesQuery, topHeadlinesTopic); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java b/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java index 11d42bf70..3ed3aaa3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnewsCountry.java @@ -11,7 +11,9 @@ /** * SourceGnewsCountry * - *

    This parameter allows you to specify the country where the news articles returned by the API were published, the contents of the articles are not necessarily related to the specified country. You have to set as value the 2 letters code of the country you want to filter. + *

    This parameter allows you to specify the country where the news articles returned by the API were + * published, the contents of the articles are not necessarily related to the specified country. You + * have to set as value the 2 letters code of the country you want to filter. */ public enum SourceGnewsCountry { AU("au"), @@ -48,7 +50,7 @@ public enum SourceGnewsCountry { @JsonValue private final String value; - private SourceGnewsCountry(String value) { + SourceGnewsCountry(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGnewsLanguage.java b/src/main/java/com/airbyte/api/models/shared/SourceGnewsLanguage.java index 7897245e8..7b89fbd5d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnewsLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnewsLanguage.java @@ -35,7 +35,7 @@ public enum SourceGnewsLanguage { @JsonValue private final String value; - private SourceGnewsLanguage(String value) { + SourceGnewsLanguage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGnewsSortBy.java b/src/main/java/com/airbyte/api/models/shared/SourceGnewsSortBy.java index 617a45499..c439dacef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGnewsSortBy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGnewsSortBy.java @@ -11,10 +11,11 @@ /** * SourceGnewsSortBy * - *

    This parameter allows you to choose with which type of sorting the articles should be returned. Two values are possible: - * - publishedAt = sort by publication date, the articles with the most recent + *

    This parameter allows you to choose with which type of sorting the articles should be returned. Two + * values are possible: + * - publishedAt = sort by publication date, the articles with the most recent * publication date are returned first - * - relevance = sort by best match to keywords, the articles with the best + * - relevance = sort by best match to keywords, the articles with the best * match are returned first */ public enum SourceGnewsSortBy { @@ -24,7 +25,7 @@ public enum SourceGnewsSortBy { @JsonValue private final String value; - private SourceGnewsSortBy(String value) { + SourceGnewsSortBy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGocardless.java b/src/main/java/com/airbyte/api/models/shared/SourceGocardless.java index 42850fb34..422484fab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGocardless.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGocardless.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceGocardless { +public class SourceGocardless { /** * Gocardless API TOKEN */ @@ -33,12 +32,13 @@ public class SourceGocardless { private Optional gocardlessEnvironment; /** - * GoCardless version. This is a date. You can find the latest here: + * GoCardless version. This is a date. You can find the latest here: * https://developer.gocardless.com/api-reference/#api-usage-making-requests */ @JsonProperty("gocardless_version") private String gocardlessVersion; + @JsonProperty("sourceType") private Gocardless sourceType; @@ -70,7 +70,8 @@ public SourceGocardless( String accessToken, String gocardlessVersion, String startDate) { - this(accessToken, Optional.empty(), gocardlessVersion, startDate); + this(accessToken, Optional.empty(), gocardlessVersion, + startDate); } /** @@ -91,7 +92,7 @@ public Optional gocardlessEnvironment() { } /** - * GoCardless version. This is a date. You can find the latest here: + * GoCardless version. This is a date. You can find the latest here: * https://developer.gocardless.com/api-reference/#api-usage-making-requests */ @JsonIgnore @@ -113,9 +114,10 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Gocardless API TOKEN @@ -135,6 +137,7 @@ public SourceGocardless withGocardlessEnvironment(GoCardlessAPIEnvironment gocar return this; } + /** * Environment you are trying to connect to. */ @@ -145,7 +148,7 @@ public SourceGocardless withGocardlessEnvironment(Optional gocardlessEnvironment; - + private String gocardlessVersion; - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * Gocardless API TOKEN */ @@ -225,6 +226,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * Environment you are trying to connect to. */ @@ -243,8 +245,9 @@ public Builder gocardlessEnvironment(Optional> _SINGLETON_VALUE_GocardlessEnvironment = new LazySingletonValue<>( "gocardless_environment", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java b/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java index 4529a6e36..c8463c21f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoldcast.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceGoldcast { +public class SourceGoldcast { /** - * Your API Access Key. See <a href="https://help.goldcast.io/hc/en-us/articles/22931655725723-How-To-Create-an-API-Token-in-Goldcast">here</a>. The key is case sensitive. + * Your API Access Key. See here. + * The key is case sensitive. */ @JsonProperty("access_key") private String accessKey; + @JsonProperty("sourceType") private Goldcast sourceType; @@ -33,7 +35,9 @@ public SourceGoldcast( } /** - * Your API Access Key. See <a href="https://help.goldcast.io/hc/en-us/articles/22931655725723-How-To-Create-an-API-Token-in-Goldcast">here</a>. The key is case sensitive. + * Your API Access Key. See here. + * The key is case sensitive. */ @JsonIgnore public String accessKey() { @@ -45,12 +49,15 @@ public Goldcast sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Access Key. See <a href="https://help.goldcast.io/hc/en-us/articles/22931655725723-How-To-Create-an-API-Token-in-Goldcast">here</a>. The key is case sensitive. + * Your API Access Key. See here. + * The key is case sensitive. */ public SourceGoldcast withAccessKey(String accessKey) { Utils.checkNotNull(accessKey, "accessKey"); @@ -58,7 +65,6 @@ public SourceGoldcast withAccessKey(String accessKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +75,14 @@ public boolean equals(java.lang.Object o) { } SourceGoldcast other = (SourceGoldcast) o; return - Objects.deepEquals(this.accessKey, other.accessKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accessKey, other.accessKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accessKey, - sourceType); + return Utils.enhancedHash( + accessKey, sourceType); } @Override @@ -86,29 +91,35 @@ public String toString() { "accessKey", accessKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKey; - + private Builder() { // force use of static builder() method } + /** - * Your API Access Key. See <a href="https://help.goldcast.io/hc/en-us/articles/22931655725723-How-To-Create-an-API-Token-in-Goldcast">here</a>. The key is case sensitive. + * Your API Access Key. See here. + * The key is case sensitive. */ public Builder accessKey(String accessKey) { Utils.checkNotNull(accessKey, "accessKey"); this.accessKey = accessKey; return this; } - + public SourceGoldcast build() { + return new SourceGoldcast( accessKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGologin.java b/src/main/java/com/airbyte/api/models/shared/SourceGologin.java index c46843214..78585dbbc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGologin.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGologin.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceGologin { +public class SourceGologin { /** * API Key found at `https://app.gologin.com/personalArea/TokenApi` */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Gologin sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key found at `https://app.gologin.com/personalArea/TokenApi` @@ -76,7 +78,6 @@ public SourceGologin withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceGologin other = (SourceGologin) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API Key found at `https://app.gologin.com/personalArea/TokenApi` */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceGologin build() { + return new SourceGologin( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGong.java b/src/main/java/com/airbyte/api/models/shared/SourceGong.java index cf4df5a8b..7e30e655b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGong.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGong.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceGong { +public class SourceGong { /** * Gong Access Key */ @@ -30,11 +29,14 @@ public class SourceGong { @JsonProperty("access_key_secret") private String accessKeySecret; + @JsonProperty("sourceType") private Gong sourceType; /** - * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time. + * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with + * the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its + * scheduled time, otherwise, it denotes its actual start time. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -82,16 +84,19 @@ public Gong sourceType() { } /** - * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time. + * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with + * the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its + * scheduled time, otherwise, it denotes its actual start time. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Gong Access Key @@ -112,7 +117,9 @@ public SourceGong withAccessKeySecret(String accessKeySecret) { } /** - * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time. + * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with + * the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its + * scheduled time, otherwise, it denotes its actual start time. */ public SourceGong withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -120,8 +127,11 @@ public SourceGong withStartDate(String startDate) { return this; } + /** - * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time. + * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with + * the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its + * scheduled time, otherwise, it denotes its actual start time. */ public SourceGong withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -129,7 +139,6 @@ public SourceGong withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +149,16 @@ public boolean equals(java.lang.Object o) { } SourceGong other = (SourceGong) o; return - Objects.deepEquals(this.accessKey, other.accessKey) && - Objects.deepEquals(this.accessKeySecret, other.accessKeySecret) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessKey, other.accessKey) && + Utils.enhancedDeepEquals(this.accessKeySecret, other.accessKeySecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessKey, - accessKeySecret, - sourceType, + return Utils.enhancedHash( + accessKey, accessKeySecret, sourceType, startDate); } @@ -163,19 +170,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKey; - + private String accessKeySecret; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Gong Access Key */ @@ -185,6 +194,7 @@ public Builder accessKey(String accessKey) { return this; } + /** * Gong Access Key Secret */ @@ -194,8 +204,11 @@ public Builder accessKeySecret(String accessKeySecret) { return this; } + /** - * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time. + * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with + * the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its + * scheduled time, otherwise, it denotes its actual start time. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -204,21 +217,23 @@ public Builder startDate(String startDate) { } /** - * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its scheduled time, otherwise, it denotes its actual start time. + * The date from which to list calls, in the ISO-8601 format; if not specified, the calls start with + * the earliest recorded call. For web-conference calls recorded by Gong, the date denotes its + * scheduled time, otherwise, it denotes its actual start time. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceGong build() { + return new SourceGong( - accessKey, - accessKeySecret, - startDate); + accessKey, accessKeySecret, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAds.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAds.java index ffb557f09..a7aa2bcb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAds.java @@ -17,51 +17,62 @@ import java.lang.SuppressWarnings; import java.time.LocalDate; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleAds { +public class SourceGoogleAds { /** - * A conversion window is the number of days after an ad interaction (such as an ad click or video view) during which a conversion, such as a purchase, is recorded in Google Ads. For more information, see <a href="https://support.google.com/google-ads/answer/3123169?hl=en">Google's documentation</a>. + * A conversion window is the number of days after an ad interaction (such as an ad click or video + * view) during which a conversion, such as a purchase, is recorded in Google Ads. For more + * information, see Google's + * documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("conversion_window_days") private Optional conversionWindowDays; + @JsonProperty("credentials") private GoogleCredentials credentials; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("custom_queries_array") private Optional> customQueriesArray; /** - * Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit number without dashes. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit + * number without dashes. For detailed instructions on finding this value, refer to our documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("customer_id") private Optional customerId; /** - * A list of customer statuses to filter on. For detailed info about what each status mean refer to Google Ads <a href="https://developers.google.com/google-ads/api/reference/rpc/v15/CustomerStatusEnum.CustomerStatus">documentation</a>. + * A list of customer statuses to filter on. For detailed info about what each status mean refer to + * Google Ads documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("customer_status_filter") private Optional> customerStatusFilter; /** - * UTC date in the format YYYY-MM-DD. Any data after this date will not be replicated. (Default value of today is used if not set) + * UTC date in the format YYYY-MM-DD. Any data after this date will not be replicated. (Default value + * of today is used if not set) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") private Optional endDate; + @JsonProperty("sourceType") private SourceGoogleAdsGoogleAds sourceType; /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value of two years ago is used if not set) + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value + * of two years ago is used if not set) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -95,11 +106,16 @@ public SourceGoogleAds( public SourceGoogleAds( GoogleCredentials credentials) { - this(Optional.empty(), credentials, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), credentials, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * A conversion window is the number of days after an ad interaction (such as an ad click or video view) during which a conversion, such as a purchase, is recorded in Google Ads. For more information, see <a href="https://support.google.com/google-ads/answer/3123169?hl=en">Google's documentation</a>. + * A conversion window is the number of days after an ad interaction (such as an ad click or video + * view) during which a conversion, such as a purchase, is recorded in Google Ads. For more + * information, see Google's + * documentation. */ @JsonIgnore public Optional conversionWindowDays() { @@ -118,7 +134,9 @@ public Optional> customQueriesArray() { } /** - * Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit number without dashes. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit + * number without dashes. For detailed instructions on finding this value, refer to our documentation. */ @JsonIgnore public Optional customerId() { @@ -126,7 +144,9 @@ public Optional customerId() { } /** - * A list of customer statuses to filter on. For detailed info about what each status mean refer to Google Ads <a href="https://developers.google.com/google-ads/api/reference/rpc/v15/CustomerStatusEnum.CustomerStatus">documentation</a>. + * A list of customer statuses to filter on. For detailed info about what each status mean refer to + * Google Ads documentation. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -135,7 +155,8 @@ public Optional> customerStatusFilter() { } /** - * UTC date in the format YYYY-MM-DD. Any data after this date will not be replicated. (Default value of today is used if not set) + * UTC date in the format YYYY-MM-DD. Any data after this date will not be replicated. (Default value + * of today is used if not set) */ @JsonIgnore public Optional endDate() { @@ -148,19 +169,24 @@ public SourceGoogleAdsGoogleAds sourceType() { } /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value of two years ago is used if not set) + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value + * of two years ago is used if not set) */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * A conversion window is the number of days after an ad interaction (such as an ad click or video view) during which a conversion, such as a purchase, is recorded in Google Ads. For more information, see <a href="https://support.google.com/google-ads/answer/3123169?hl=en">Google's documentation</a>. + * A conversion window is the number of days after an ad interaction (such as an ad click or video + * view) during which a conversion, such as a purchase, is recorded in Google Ads. For more + * information, see Google's + * documentation. */ public SourceGoogleAds withConversionWindowDays(long conversionWindowDays) { Utils.checkNotNull(conversionWindowDays, "conversionWindowDays"); @@ -168,8 +194,12 @@ public SourceGoogleAds withConversionWindowDays(long conversionWindowDays) { return this; } + /** - * A conversion window is the number of days after an ad interaction (such as an ad click or video view) during which a conversion, such as a purchase, is recorded in Google Ads. For more information, see <a href="https://support.google.com/google-ads/answer/3123169?hl=en">Google's documentation</a>. + * A conversion window is the number of days after an ad interaction (such as an ad click or video + * view) during which a conversion, such as a purchase, is recorded in Google Ads. For more + * information, see Google's + * documentation. */ public SourceGoogleAds withConversionWindowDays(Optional conversionWindowDays) { Utils.checkNotNull(conversionWindowDays, "conversionWindowDays"); @@ -189,6 +219,7 @@ public SourceGoogleAds withCustomQueriesArray(List customQue return this; } + public SourceGoogleAds withCustomQueriesArray(Optional> customQueriesArray) { Utils.checkNotNull(customQueriesArray, "customQueriesArray"); this.customQueriesArray = customQueriesArray; @@ -196,7 +227,9 @@ public SourceGoogleAds withCustomQueriesArray(Optionaldocumentation. */ public SourceGoogleAds withCustomerId(String customerId) { Utils.checkNotNull(customerId, "customerId"); @@ -204,8 +237,11 @@ public SourceGoogleAds withCustomerId(String customerId) { return this; } + /** - * Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit number without dashes. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit + * number without dashes. For detailed instructions on finding this value, refer to our documentation. */ public SourceGoogleAds withCustomerId(Optional customerId) { Utils.checkNotNull(customerId, "customerId"); @@ -214,7 +250,9 @@ public SourceGoogleAds withCustomerId(Optional customerId) { } /** - * A list of customer statuses to filter on. For detailed info about what each status mean refer to Google Ads <a href="https://developers.google.com/google-ads/api/reference/rpc/v15/CustomerStatusEnum.CustomerStatus">documentation</a>. + * A list of customer statuses to filter on. For detailed info about what each status mean refer to + * Google Ads documentation. */ public SourceGoogleAds withCustomerStatusFilter(List customerStatusFilter) { Utils.checkNotNull(customerStatusFilter, "customerStatusFilter"); @@ -222,8 +260,11 @@ public SourceGoogleAds withCustomerStatusFilter(List customerSta return this; } + /** - * A list of customer statuses to filter on. For detailed info about what each status mean refer to Google Ads <a href="https://developers.google.com/google-ads/api/reference/rpc/v15/CustomerStatusEnum.CustomerStatus">documentation</a>. + * A list of customer statuses to filter on. For detailed info about what each status mean refer to + * Google Ads documentation. */ public SourceGoogleAds withCustomerStatusFilter(Optional> customerStatusFilter) { Utils.checkNotNull(customerStatusFilter, "customerStatusFilter"); @@ -232,7 +273,8 @@ public SourceGoogleAds withCustomerStatusFilter(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -250,7 +294,8 @@ public SourceGoogleAds withEndDate(Optional endDate) { } /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value of two years ago is used if not set) + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value + * of two years ago is used if not set) */ public SourceGoogleAds withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -258,8 +303,10 @@ public SourceGoogleAds withStartDate(LocalDate startDate) { return this; } + /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value of two years ago is used if not set) + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value + * of two years ago is used if not set) */ public SourceGoogleAds withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -267,7 +314,6 @@ public SourceGoogleAds withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -278,27 +324,22 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAds other = (SourceGoogleAds) o; return - Objects.deepEquals(this.conversionWindowDays, other.conversionWindowDays) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.customQueriesArray, other.customQueriesArray) && - Objects.deepEquals(this.customerId, other.customerId) && - Objects.deepEquals(this.customerStatusFilter, other.customerStatusFilter) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.conversionWindowDays, other.conversionWindowDays) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.customQueriesArray, other.customQueriesArray) && + Utils.enhancedDeepEquals(this.customerId, other.customerId) && + Utils.enhancedDeepEquals(this.customerStatusFilter, other.customerStatusFilter) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - conversionWindowDays, - credentials, - customQueriesArray, - customerId, - customerStatusFilter, - endDate, - sourceType, - startDate); + return Utils.enhancedHash( + conversionWindowDays, credentials, customQueriesArray, + customerId, customerStatusFilter, endDate, + sourceType, startDate); } @Override @@ -313,29 +354,34 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional conversionWindowDays; - + private GoogleCredentials credentials; - + private Optional> customQueriesArray = Optional.empty(); - + private Optional customerId = Optional.empty(); - + private Optional> customerStatusFilter = Optional.empty(); - + private Optional endDate = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * A conversion window is the number of days after an ad interaction (such as an ad click or video view) during which a conversion, such as a purchase, is recorded in Google Ads. For more information, see <a href="https://support.google.com/google-ads/answer/3123169?hl=en">Google's documentation</a>. + * A conversion window is the number of days after an ad interaction (such as an ad click or video + * view) during which a conversion, such as a purchase, is recorded in Google Ads. For more + * information, see Google's + * documentation. */ public Builder conversionWindowDays(long conversionWindowDays) { Utils.checkNotNull(conversionWindowDays, "conversionWindowDays"); @@ -344,7 +390,10 @@ public Builder conversionWindowDays(long conversionWindowDays) { } /** - * A conversion window is the number of days after an ad interaction (such as an ad click or video view) during which a conversion, such as a purchase, is recorded in Google Ads. For more information, see <a href="https://support.google.com/google-ads/answer/3123169?hl=en">Google's documentation</a>. + * A conversion window is the number of days after an ad interaction (such as an ad click or video + * view) during which a conversion, such as a purchase, is recorded in Google Ads. For more + * information, see Google's + * documentation. */ public Builder conversionWindowDays(Optional conversionWindowDays) { Utils.checkNotNull(conversionWindowDays, "conversionWindowDays"); @@ -352,12 +401,14 @@ public Builder conversionWindowDays(Optional conversionWindowDays) { return this; } + public Builder credentials(GoogleCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } + public Builder customQueriesArray(List customQueriesArray) { Utils.checkNotNull(customQueriesArray, "customQueriesArray"); this.customQueriesArray = Optional.ofNullable(customQueriesArray); @@ -370,8 +421,11 @@ public Builder customQueriesArray(Optional> c return this; } + /** - * Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit number without dashes. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit + * number without dashes. For detailed instructions on finding this value, refer to our documentation. */ public Builder customerId(String customerId) { Utils.checkNotNull(customerId, "customerId"); @@ -380,7 +434,9 @@ public Builder customerId(String customerId) { } /** - * Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit number without dashes. For detailed instructions on finding this value, refer to our <a href="https://docs.airbyte.com/integrations/sources/google-ads#setup-guide">documentation</a>. + * Comma-separated list of (client) customer IDs. Each customer ID must be specified as a 10-digit + * number without dashes. For detailed instructions on finding this value, refer to our documentation. */ public Builder customerId(Optional customerId) { Utils.checkNotNull(customerId, "customerId"); @@ -388,8 +444,11 @@ public Builder customerId(Optional customerId) { return this; } + /** - * A list of customer statuses to filter on. For detailed info about what each status mean refer to Google Ads <a href="https://developers.google.com/google-ads/api/reference/rpc/v15/CustomerStatusEnum.CustomerStatus">documentation</a>. + * A list of customer statuses to filter on. For detailed info about what each status mean refer to + * Google Ads documentation. */ public Builder customerStatusFilter(List customerStatusFilter) { Utils.checkNotNull(customerStatusFilter, "customerStatusFilter"); @@ -398,7 +457,9 @@ public Builder customerStatusFilter(List customerStatusFilter) { } /** - * A list of customer statuses to filter on. For detailed info about what each status mean refer to Google Ads <a href="https://developers.google.com/google-ads/api/reference/rpc/v15/CustomerStatusEnum.CustomerStatus">documentation</a>. + * A list of customer statuses to filter on. For detailed info about what each status mean refer to + * Google Ads documentation. */ public Builder customerStatusFilter(Optional> customerStatusFilter) { Utils.checkNotNull(customerStatusFilter, "customerStatusFilter"); @@ -406,8 +467,10 @@ public Builder customerStatusFilter(Optional> cus return this; } + /** - * UTC date in the format YYYY-MM-DD. Any data after this date will not be replicated. (Default value of today is used if not set) + * UTC date in the format YYYY-MM-DD. Any data after this date will not be replicated. (Default value + * of today is used if not set) */ public Builder endDate(LocalDate endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -416,7 +479,8 @@ public Builder endDate(LocalDate endDate) { } /** - * UTC date in the format YYYY-MM-DD. Any data after this date will not be replicated. (Default value of today is used if not set) + * UTC date in the format YYYY-MM-DD. Any data after this date will not be replicated. (Default value + * of today is used if not set) */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -424,8 +488,10 @@ public Builder endDate(Optional endDate) { return this; } + /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value of two years ago is used if not set) + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value + * of two years ago is used if not set) */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -434,28 +500,27 @@ public Builder startDate(LocalDate startDate) { } /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value of two years ago is used if not set) + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. (Default value + * of two years ago is used if not set) */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceGoogleAds build() { if (conversionWindowDays == null) { conversionWindowDays = _SINGLETON_VALUE_ConversionWindowDays.value(); } + return new SourceGoogleAds( - conversionWindowDays, - credentials, - customQueriesArray, - customerId, - customerStatusFilter, - endDate, + conversionWindowDays, credentials, customQueriesArray, + customerId, customerStatusFilter, endDate, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_ConversionWindowDays = new LazySingletonValue<>( "conversion_window_days", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java index db043212f..de42a3ef9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAdsGoogleAds.java @@ -14,7 +14,7 @@ public enum SourceGoogleAdsGoogleAds { @JsonValue private final String value; - private SourceGoogleAdsGoogleAds(String value) { + SourceGoogleAdsGoogleAds(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java index e372ad641..20d91c287 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApi.java @@ -18,13 +18,13 @@ import java.lang.SuppressWarnings; import java.time.LocalDate; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleAnalyticsDataApi { +public class SourceGoogleAnalyticsDataApi { /** - * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for preventing data rounding when the API returns float values for any `conversions:*` fields. + * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for + * preventing data rounding when the API returns float values for any `conversions:*` fields. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("convert_conversions_event") @@ -45,44 +45,66 @@ public class SourceGoogleAnalyticsDataApi { private Optional> customReportsArray; /** - * The end date from which to replicate report data in the format YYYY-MM-DD. Data generated after this date will not be included in the report. Not applied to custom Cohort reports. When no date is provided or the date is in the future, the date from today is used. + * The end date from which to replicate report data in the format YYYY-MM-DD. Data generated after this + * date will not be included in the report. Not applied to custom Cohort reports. + * + *

    When no date is provided or the date is in the future, the date from today is used. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("date_ranges_end_date") private Optional dateRangesEndDate; /** - * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before this date will not be included in the report. Not applied to custom Cohort reports. + * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before + * this date will not be included in the report. Not applied to custom Cohort reports. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("date_ranges_start_date") private Optional dateRangesStartDate; /** - * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter. More information is available in <a href="https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#request-body">the documentation</a>. + * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be + * returned if they are not separately removed by a filter. More information is available in the + * documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("keep_empty_rows") private Optional keepEmptyRows; /** - * Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. + * Since attribution changes after the event date, and Google Analytics has a data processing latency, + * we should specify how many days in the past we should refresh the data in every run. So if you set + * it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lookback_window") private Optional lookbackWindow; /** - * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the <a href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google Analytics documentation</a> to locate your property ID. + * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google + * Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events + * associated with your property. + * + *

    Refer to the <a + * href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google + * Analytics documentation</a> to locate your property ID. */ @JsonProperty("property_ids") private List propertyIds; + @JsonProperty("sourceType") private SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi sourceType; /** - * The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api">the documentation</a>. + * The interval in days for each data request made to the Google Analytics API. A larger value speeds + * up data sync, but increases the chance of data sampling, which may result in inaccuracies. We + * recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. + * + *

    Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is + * available in the + * documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("window_in_days") @@ -122,11 +144,14 @@ public SourceGoogleAnalyticsDataApi( public SourceGoogleAnalyticsDataApi( List propertyIds) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), propertyIds, Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), propertyIds, Optional.empty()); } /** - * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for preventing data rounding when the API returns float values for any `conversions:*` fields. + * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for + * preventing data rounding when the API returns float values for any `conversions:*` fields. */ @JsonIgnore public Optional convertConversionsEvent() { @@ -152,7 +177,10 @@ public Optional> customRepo } /** - * The end date from which to replicate report data in the format YYYY-MM-DD. Data generated after this date will not be included in the report. Not applied to custom Cohort reports. When no date is provided or the date is in the future, the date from today is used. + * The end date from which to replicate report data in the format YYYY-MM-DD. Data generated after this + * date will not be included in the report. Not applied to custom Cohort reports. + * + *

    When no date is provided or the date is in the future, the date from today is used. */ @JsonIgnore public Optional dateRangesEndDate() { @@ -160,7 +188,8 @@ public Optional dateRangesEndDate() { } /** - * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before this date will not be included in the report. Not applied to custom Cohort reports. + * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before + * this date will not be included in the report. Not applied to custom Cohort reports. */ @JsonIgnore public Optional dateRangesStartDate() { @@ -168,7 +197,10 @@ public Optional dateRangesStartDate() { } /** - * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter. More information is available in <a href="https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#request-body">the documentation</a>. + * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be + * returned if they are not separately removed by a filter. More information is available in the + * documentation. */ @JsonIgnore public Optional keepEmptyRows() { @@ -176,7 +208,9 @@ public Optional keepEmptyRows() { } /** - * Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. + * Since attribution changes after the event date, and Google Analytics has a data processing latency, + * we should specify how many days in the past we should refresh the data in every run. So if you set + * it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. */ @JsonIgnore public Optional lookbackWindow() { @@ -184,7 +218,13 @@ public Optional lookbackWindow() { } /** - * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the <a href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google Analytics documentation</a> to locate your property ID. + * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google + * Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events + * associated with your property. + * + *

    Refer to the <a + * href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google + * Analytics documentation</a> to locate your property ID. */ @JsonIgnore public List propertyIds() { @@ -197,19 +237,27 @@ public SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi sourceType() { } /** - * The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api">the documentation</a>. + * The interval in days for each data request made to the Google Analytics API. A larger value speeds + * up data sync, but increases the chance of data sampling, which may result in inaccuracies. We + * recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. + * + *

    Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is + * available in the + * documentation. */ @JsonIgnore public Optional windowInDays() { return windowInDays; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for preventing data rounding when the API returns float values for any `conversions:*` fields. + * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for + * preventing data rounding when the API returns float values for any `conversions:*` fields. */ public SourceGoogleAnalyticsDataApi withConvertConversionsEvent(boolean convertConversionsEvent) { Utils.checkNotNull(convertConversionsEvent, "convertConversionsEvent"); @@ -217,8 +265,10 @@ public SourceGoogleAnalyticsDataApi withConvertConversionsEvent(boolean convertC return this; } + /** - * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for preventing data rounding when the API returns float values for any `conversions:*` fields. + * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for + * preventing data rounding when the API returns float values for any `conversions:*` fields. */ public SourceGoogleAnalyticsDataApi withConvertConversionsEvent(Optional convertConversionsEvent) { Utils.checkNotNull(convertConversionsEvent, "convertConversionsEvent"); @@ -235,6 +285,7 @@ public SourceGoogleAnalyticsDataApi withCredentials(SourceGoogleAnalyticsDataApi return this; } + /** * Credentials for the service */ @@ -253,6 +304,7 @@ public SourceGoogleAnalyticsDataApi withCustomReportsArray(ListWhen no date is provided or the date is in the future, the date from today is used. */ public SourceGoogleAnalyticsDataApi withDateRangesEndDate(LocalDate dateRangesEndDate) { Utils.checkNotNull(dateRangesEndDate, "dateRangesEndDate"); @@ -271,8 +326,12 @@ public SourceGoogleAnalyticsDataApi withDateRangesEndDate(LocalDate dateRangesEn return this; } + /** - * The end date from which to replicate report data in the format YYYY-MM-DD. Data generated after this date will not be included in the report. Not applied to custom Cohort reports. When no date is provided or the date is in the future, the date from today is used. + * The end date from which to replicate report data in the format YYYY-MM-DD. Data generated after this + * date will not be included in the report. Not applied to custom Cohort reports. + * + *

    When no date is provided or the date is in the future, the date from today is used. */ public SourceGoogleAnalyticsDataApi withDateRangesEndDate(Optional dateRangesEndDate) { Utils.checkNotNull(dateRangesEndDate, "dateRangesEndDate"); @@ -281,7 +340,8 @@ public SourceGoogleAnalyticsDataApi withDateRangesEndDate(Optional da } /** - * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before this date will not be included in the report. Not applied to custom Cohort reports. + * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before + * this date will not be included in the report. Not applied to custom Cohort reports. */ public SourceGoogleAnalyticsDataApi withDateRangesStartDate(LocalDate dateRangesStartDate) { Utils.checkNotNull(dateRangesStartDate, "dateRangesStartDate"); @@ -289,8 +349,10 @@ public SourceGoogleAnalyticsDataApi withDateRangesStartDate(LocalDate dateRanges return this; } + /** - * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before this date will not be included in the report. Not applied to custom Cohort reports. + * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before + * this date will not be included in the report. Not applied to custom Cohort reports. */ public SourceGoogleAnalyticsDataApi withDateRangesStartDate(Optional dateRangesStartDate) { Utils.checkNotNull(dateRangesStartDate, "dateRangesStartDate"); @@ -299,7 +361,10 @@ public SourceGoogleAnalyticsDataApi withDateRangesStartDate(Optional } /** - * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter. More information is available in <a href="https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#request-body">the documentation</a>. + * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be + * returned if they are not separately removed by a filter. More information is available in the + * documentation. */ public SourceGoogleAnalyticsDataApi withKeepEmptyRows(boolean keepEmptyRows) { Utils.checkNotNull(keepEmptyRows, "keepEmptyRows"); @@ -307,8 +372,12 @@ public SourceGoogleAnalyticsDataApi withKeepEmptyRows(boolean keepEmptyRows) { return this; } + /** - * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter. More information is available in <a href="https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#request-body">the documentation</a>. + * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be + * returned if they are not separately removed by a filter. More information is available in the + * documentation. */ public SourceGoogleAnalyticsDataApi withKeepEmptyRows(Optional keepEmptyRows) { Utils.checkNotNull(keepEmptyRows, "keepEmptyRows"); @@ -317,7 +386,9 @@ public SourceGoogleAnalyticsDataApi withKeepEmptyRows(Optional keepEmpt } /** - * Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. + * Since attribution changes after the event date, and Google Analytics has a data processing latency, + * we should specify how many days in the past we should refresh the data in every run. So if you set + * it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. */ public SourceGoogleAnalyticsDataApi withLookbackWindow(long lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -325,8 +396,11 @@ public SourceGoogleAnalyticsDataApi withLookbackWindow(long lookbackWindow) { return this; } + /** - * Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. + * Since attribution changes after the event date, and Google Analytics has a data processing latency, + * we should specify how many days in the past we should refresh the data in every run. So if you set + * it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. */ public SourceGoogleAnalyticsDataApi withLookbackWindow(Optional lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -335,7 +409,13 @@ public SourceGoogleAnalyticsDataApi withLookbackWindow(Optional lookbackWi } /** - * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the <a href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google Analytics documentation</a> to locate your property ID. + * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google + * Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events + * associated with your property. + * + *

    Refer to the <a + * href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google + * Analytics documentation</a> to locate your property ID. */ public SourceGoogleAnalyticsDataApi withPropertyIds(List propertyIds) { Utils.checkNotNull(propertyIds, "propertyIds"); @@ -344,7 +424,13 @@ public SourceGoogleAnalyticsDataApi withPropertyIds(List propertyIds) { } /** - * The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api">the documentation</a>. + * The interval in days for each data request made to the Google Analytics API. A larger value speeds + * up data sync, but increases the chance of data sampling, which may result in inaccuracies. We + * recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. + * + *

    Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is + * available in the + * documentation. */ public SourceGoogleAnalyticsDataApi withWindowInDays(long windowInDays) { Utils.checkNotNull(windowInDays, "windowInDays"); @@ -352,8 +438,15 @@ public SourceGoogleAnalyticsDataApi withWindowInDays(long windowInDays) { return this; } + /** - * The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api">the documentation</a>. + * The interval in days for each data request made to the Google Analytics API. A larger value speeds + * up data sync, but increases the chance of data sampling, which may result in inaccuracies. We + * recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. + * + *

    Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is + * available in the + * documentation. */ public SourceGoogleAnalyticsDataApi withWindowInDays(Optional windowInDays) { Utils.checkNotNull(windowInDays, "windowInDays"); @@ -361,7 +454,6 @@ public SourceGoogleAnalyticsDataApi withWindowInDays(Optional windowInDays return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -372,30 +464,24 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApi other = (SourceGoogleAnalyticsDataApi) o; return - Objects.deepEquals(this.convertConversionsEvent, other.convertConversionsEvent) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.customReportsArray, other.customReportsArray) && - Objects.deepEquals(this.dateRangesEndDate, other.dateRangesEndDate) && - Objects.deepEquals(this.dateRangesStartDate, other.dateRangesStartDate) && - Objects.deepEquals(this.keepEmptyRows, other.keepEmptyRows) && - Objects.deepEquals(this.lookbackWindow, other.lookbackWindow) && - Objects.deepEquals(this.propertyIds, other.propertyIds) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.windowInDays, other.windowInDays); + Utils.enhancedDeepEquals(this.convertConversionsEvent, other.convertConversionsEvent) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.customReportsArray, other.customReportsArray) && + Utils.enhancedDeepEquals(this.dateRangesEndDate, other.dateRangesEndDate) && + Utils.enhancedDeepEquals(this.dateRangesStartDate, other.dateRangesStartDate) && + Utils.enhancedDeepEquals(this.keepEmptyRows, other.keepEmptyRows) && + Utils.enhancedDeepEquals(this.lookbackWindow, other.lookbackWindow) && + Utils.enhancedDeepEquals(this.propertyIds, other.propertyIds) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.windowInDays, other.windowInDays); } @Override public int hashCode() { - return Objects.hash( - convertConversionsEvent, - credentials, - customReportsArray, - dateRangesEndDate, - dateRangesStartDate, - keepEmptyRows, - lookbackWindow, - propertyIds, - sourceType, + return Utils.enhancedHash( + convertConversionsEvent, credentials, customReportsArray, + dateRangesEndDate, dateRangesStartDate, keepEmptyRows, + lookbackWindow, propertyIds, sourceType, windowInDays); } @@ -413,33 +499,36 @@ public String toString() { "sourceType", sourceType, "windowInDays", windowInDays); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional convertConversionsEvent; - + private Optional credentials = Optional.empty(); - + private Optional> customReportsArray = Optional.empty(); - + private Optional dateRangesEndDate = Optional.empty(); - + private Optional dateRangesStartDate = Optional.empty(); - + private Optional keepEmptyRows; - + private Optional lookbackWindow; - + private List propertyIds; - + private Optional windowInDays; - + private Builder() { // force use of static builder() method } + /** - * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for preventing data rounding when the API returns float values for any `conversions:*` fields. + * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for + * preventing data rounding when the API returns float values for any `conversions:*` fields. */ public Builder convertConversionsEvent(boolean convertConversionsEvent) { Utils.checkNotNull(convertConversionsEvent, "convertConversionsEvent"); @@ -448,7 +537,8 @@ public Builder convertConversionsEvent(boolean convertConversionsEvent) { } /** - * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for preventing data rounding when the API returns float values for any `conversions:*` fields. + * Enables conversion of `conversions:*` event metrics from integers to floats. This is beneficial for + * preventing data rounding when the API returns float values for any `conversions:*` fields. */ public Builder convertConversionsEvent(Optional convertConversionsEvent) { Utils.checkNotNull(convertConversionsEvent, "convertConversionsEvent"); @@ -456,6 +546,7 @@ public Builder convertConversionsEvent(Optional convertConversionsEvent return this; } + /** * Credentials for the service */ @@ -474,6 +565,7 @@ public Builder credentials(OptionalWhen no date is provided or the date is in the future, the date from today is used. */ public Builder dateRangesEndDate(LocalDate dateRangesEndDate) { Utils.checkNotNull(dateRangesEndDate, "dateRangesEndDate"); @@ -502,7 +598,10 @@ public Builder dateRangesEndDate(LocalDate dateRangesEndDate) { } /** - * The end date from which to replicate report data in the format YYYY-MM-DD. Data generated after this date will not be included in the report. Not applied to custom Cohort reports. When no date is provided or the date is in the future, the date from today is used. + * The end date from which to replicate report data in the format YYYY-MM-DD. Data generated after this + * date will not be included in the report. Not applied to custom Cohort reports. + * + *

    When no date is provided or the date is in the future, the date from today is used. */ public Builder dateRangesEndDate(Optional dateRangesEndDate) { Utils.checkNotNull(dateRangesEndDate, "dateRangesEndDate"); @@ -510,8 +609,10 @@ public Builder dateRangesEndDate(Optional dateRangesEndDate) { return this; } + /** - * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before this date will not be included in the report. Not applied to custom Cohort reports. + * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before + * this date will not be included in the report. Not applied to custom Cohort reports. */ public Builder dateRangesStartDate(LocalDate dateRangesStartDate) { Utils.checkNotNull(dateRangesStartDate, "dateRangesStartDate"); @@ -520,7 +621,8 @@ public Builder dateRangesStartDate(LocalDate dateRangesStartDate) { } /** - * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before this date will not be included in the report. Not applied to custom Cohort reports. + * The start date from which to replicate report data in the format YYYY-MM-DD. Data generated before + * this date will not be included in the report. Not applied to custom Cohort reports. */ public Builder dateRangesStartDate(Optional dateRangesStartDate) { Utils.checkNotNull(dateRangesStartDate, "dateRangesStartDate"); @@ -528,8 +630,12 @@ public Builder dateRangesStartDate(Optional dateRangesStartDate) { return this; } + /** - * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter. More information is available in <a href="https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#request-body">the documentation</a>. + * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be + * returned if they are not separately removed by a filter. More information is available in the + * documentation. */ public Builder keepEmptyRows(boolean keepEmptyRows) { Utils.checkNotNull(keepEmptyRows, "keepEmptyRows"); @@ -538,7 +644,10 @@ public Builder keepEmptyRows(boolean keepEmptyRows) { } /** - * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be returned if they are not separately removed by a filter. More information is available in <a href="https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#request-body">the documentation</a>. + * If false, each row with all metrics equal to 0 will not be returned. If true, these rows will be + * returned if they are not separately removed by a filter. More information is available in the + * documentation. */ public Builder keepEmptyRows(Optional keepEmptyRows) { Utils.checkNotNull(keepEmptyRows, "keepEmptyRows"); @@ -546,8 +655,11 @@ public Builder keepEmptyRows(Optional keepEmptyRows) { return this; } + /** - * Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. + * Since attribution changes after the event date, and Google Analytics has a data processing latency, + * we should specify how many days in the past we should refresh the data in every run. So if you set + * it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. */ public Builder lookbackWindow(long lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -556,7 +668,9 @@ public Builder lookbackWindow(long lookbackWindow) { } /** - * Since attribution changes after the event date, and Google Analytics has a data processing latency, we should specify how many days in the past we should refresh the data in every run. So if you set it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. + * Since attribution changes after the event date, and Google Analytics has a data processing latency, + * we should specify how many days in the past we should refresh the data in every run. So if you set + * it at 5 days, in every sync it will fetch the last bookmark date minus 5 days. */ public Builder lookbackWindow(Optional lookbackWindow) { Utils.checkNotNull(lookbackWindow, "lookbackWindow"); @@ -564,8 +678,15 @@ public Builder lookbackWindow(Optional lookbackWindow) { return this; } + /** - * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events associated with your property. Refer to the <a href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google Analytics documentation</a> to locate your property ID. + * A list of your Property IDs. The Property ID is a unique number assigned to each property in Google + * Analytics, found in your GA4 property URL. This ID allows the connector to track the specific events + * associated with your property. + * + *

    Refer to the <a + * href='https://developers.google.com/analytics/devguides/reporting/data/v1/property-id#what_is_my_property_id'>Google + * Analytics documentation</a> to locate your property ID. */ public Builder propertyIds(List propertyIds) { Utils.checkNotNull(propertyIds, "propertyIds"); @@ -573,8 +694,15 @@ public Builder propertyIds(List propertyIds) { return this; } + /** - * The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api">the documentation</a>. + * The interval in days for each data request made to the Google Analytics API. A larger value speeds + * up data sync, but increases the chance of data sampling, which may result in inaccuracies. We + * recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. + * + *

    Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is + * available in the + * documentation. */ public Builder windowInDays(long windowInDays) { Utils.checkNotNull(windowInDays, "windowInDays"); @@ -583,14 +711,20 @@ public Builder windowInDays(long windowInDays) { } /** - * The interval in days for each data request made to the Google Analytics API. A larger value speeds up data sync, but increases the chance of data sampling, which may result in inaccuracies. We recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is available in <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api">the documentation</a>. + * The interval in days for each data request made to the Google Analytics API. A larger value speeds + * up data sync, but increases the chance of data sampling, which may result in inaccuracies. We + * recommend a value of 1 to minimize sampling, unless speed is an absolute priority over accuracy. + * + *

    Acceptable values range from 1 to 364. Does not apply to custom Cohort reports. More information is + * available in the + * documentation. */ public Builder windowInDays(Optional windowInDays) { Utils.checkNotNull(windowInDays, "windowInDays"); this.windowInDays = windowInDays; return this; } - + public SourceGoogleAnalyticsDataApi build() { if (convertConversionsEvent == null) { convertConversionsEvent = _SINGLETON_VALUE_ConvertConversionsEvent.value(); @@ -604,18 +738,14 @@ public SourceGoogleAnalyticsDataApi build() { if (windowInDays == null) { windowInDays = _SINGLETON_VALUE_WindowInDays.value(); } + return new SourceGoogleAnalyticsDataApi( - convertConversionsEvent, - credentials, - customReportsArray, - dateRangesEndDate, - dateRangesStartDate, - keepEmptyRows, - lookbackWindow, - propertyIds, - windowInDays); + convertConversionsEvent, credentials, customReportsArray, + dateRangesEndDate, dateRangesStartDate, keepEmptyRows, + lookbackWindow, propertyIds, windowInDays); } + private static final LazySingletonValue> _SINGLETON_VALUE_ConvertConversionsEvent = new LazySingletonValue<>( "convert_conversions_event", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAndGroup.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAndGroup.java index 73f51783e..a41a561bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAndGroup.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAndGroup.java @@ -12,7 +12,6 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; /** * SourceGoogleAnalyticsDataApiAndGroup @@ -24,6 +23,7 @@ public class SourceGoogleAnalyticsDataApiAndGroup { @JsonProperty("expressions") private List expressions; + @JsonProperty("filter_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType filterType; @@ -45,9 +45,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterTy return filterType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiAndGroup withExpressions(List expressions) { Utils.checkNotNull(expressions, "expressions"); @@ -55,7 +56,6 @@ public SourceGoogleAnalyticsDataApiAndGroup withExpressions(List expressions; - + private Builder() { // force use of static builder() method } + public Builder expressions(List expressions) { Utils.checkNotNull(expressions, "expressions"); this.expressions = expressions; return this; } - + public SourceGoogleAnalyticsDataApiAndGroup build() { + return new SourceGoogleAnalyticsDataApiAndGroup( expressions); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterType = new LazySingletonValue<>( "filter_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java index 409e43813..9bed6e76c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiAuthType { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiAuthType(String value) { + SourceGoogleAnalyticsDataApiAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth.java index ed91603f9..d439640b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth { +public class SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth { /** * Access Token for making authenticated requests. */ @@ -26,6 +25,7 @@ public class SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth { @JsonProperty("access_token") private Optional accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -69,7 +69,8 @@ public SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth( String clientId, String clientSecret, String refreshToken) { - this(Optional.empty(), clientId, clientSecret, refreshToken); + this(Optional.empty(), clientId, clientSecret, + refreshToken); } /** @@ -110,9 +111,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -123,6 +125,7 @@ public SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth withAccessToken(St return this; } + /** * Access Token for making authenticated requests. */ @@ -159,7 +162,6 @@ public SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth withRefreshToken(S return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -170,21 +172,18 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth other = (SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - refreshToken); + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, refreshToken); } @Override @@ -196,21 +195,23 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accessToken = Optional.empty(); - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -229,6 +230,7 @@ public Builder accessToken(Optional accessToken) { return this; } + /** * The Client ID of your Google Analytics developer application. */ @@ -238,6 +240,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Google Analytics developer application. */ @@ -247,6 +250,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The token for obtaining a new access token. */ @@ -255,15 +259,15 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth build() { + return new SourceGoogleAnalyticsDataApiAuthenticateViaGoogleOauth( - accessToken, - clientId, - clientSecret, + accessToken, clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiBetweenFilter.java index 38ef45c62..dfc1c4a94 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiBetweenFilter.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiBetweenFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName filterName; + @JsonProperty("fromValue") private SourceGoogleAnalyticsDataApiFromValue fromValue; + @JsonProperty("toValue") private SourceGoogleAnalyticsDataApiToValue toValue; @@ -50,9 +52,10 @@ public SourceGoogleAnalyticsDataApiToValue toValue() { return toValue; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiBetweenFilter withFromValue(SourceGoogleAnalyticsDataApiFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); @@ -66,7 +69,6 @@ public SourceGoogleAnalyticsDataApiBetweenFilter withToValue(SourceGoogleAnalyti return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiBetweenFilter other = (SourceGoogleAnalyticsDataApiBetweenFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.fromValue, other.fromValue) && - Objects.deepEquals(this.toValue, other.toValue); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.fromValue, other.fromValue) && + Utils.enhancedDeepEquals(this.toValue, other.toValue); } @Override public int hashCode() { - return Objects.hash( - filterName, - fromValue, - toValue); + return Utils.enhancedHash( + filterName, fromValue, toValue); } @Override @@ -97,35 +97,39 @@ public String toString() { "fromValue", fromValue, "toValue", toValue); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceGoogleAnalyticsDataApiFromValue fromValue; - + private SourceGoogleAnalyticsDataApiToValue toValue; - + private Builder() { // force use of static builder() method } + public Builder fromValue(SourceGoogleAnalyticsDataApiFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); this.fromValue = fromValue; return this; } + public Builder toValue(SourceGoogleAnalyticsDataApiToValue toValue) { Utils.checkNotNull(toValue, "toValue"); this.toValue = toValue; return this; } - + public SourceGoogleAnalyticsDataApiBetweenFilter build() { + return new SourceGoogleAnalyticsDataApiBetweenFilter( - fromValue, - toValue); + fromValue, toValue); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java index 68f0fb48b..22d308e6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCredentials.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGoogleAnalyticsDataApiCredentials @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiCredentials other = (SourceGoogleAnalyticsDataApiCredentials) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.java index e14acfa16..c7aa674ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiCustomReportConfig.java @@ -13,11 +13,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleAnalyticsDataApiCustomReportConfig { +public class SourceGoogleAnalyticsDataApiCustomReportConfig { /** * Cohort reports creates a time series of user retention for the cohort. */ @@ -83,7 +82,8 @@ public SourceGoogleAnalyticsDataApiCustomReportConfig( List dimensions, List metrics, String name) { - this(Optional.empty(), Optional.empty(), dimensions, Optional.empty(), metrics, name); + this(Optional.empty(), Optional.empty(), dimensions, + Optional.empty(), metrics, name); } /** @@ -137,9 +137,10 @@ public String name() { return name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Cohort reports creates a time series of user retention for the cohort. @@ -150,6 +151,7 @@ public SourceGoogleAnalyticsDataApiCustomReportConfig withCohortSpec(CohortRepor return this; } + /** * Cohort reports creates a time series of user retention for the cohort. */ @@ -168,6 +170,7 @@ public SourceGoogleAnalyticsDataApiCustomReportConfig withDimensionFilter(Dimens return this; } + /** * Dimensions filter */ @@ -195,6 +198,7 @@ public SourceGoogleAnalyticsDataApiCustomReportConfig withMetricFilter(MetricsFi return this; } + /** * Metrics filter */ @@ -222,7 +226,6 @@ public SourceGoogleAnalyticsDataApiCustomReportConfig withName(String name) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -233,23 +236,19 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiCustomReportConfig other = (SourceGoogleAnalyticsDataApiCustomReportConfig) o; return - Objects.deepEquals(this.cohortSpec, other.cohortSpec) && - Objects.deepEquals(this.dimensionFilter, other.dimensionFilter) && - Objects.deepEquals(this.dimensions, other.dimensions) && - Objects.deepEquals(this.metricFilter, other.metricFilter) && - Objects.deepEquals(this.metrics, other.metrics) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.cohortSpec, other.cohortSpec) && + Utils.enhancedDeepEquals(this.dimensionFilter, other.dimensionFilter) && + Utils.enhancedDeepEquals(this.dimensions, other.dimensions) && + Utils.enhancedDeepEquals(this.metricFilter, other.metricFilter) && + Utils.enhancedDeepEquals(this.metrics, other.metrics) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - cohortSpec, - dimensionFilter, - dimensions, - metricFilter, - metrics, - name); + return Utils.enhancedHash( + cohortSpec, dimensionFilter, dimensions, + metricFilter, metrics, name); } @Override @@ -262,25 +261,27 @@ public String toString() { "metrics", metrics, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional cohortSpec = Optional.empty(); - + private Optional dimensionFilter = Optional.empty(); - + private List dimensions; - + private Optional metricFilter = Optional.empty(); - + private List metrics; - + private String name; - + private Builder() { // force use of static builder() method } + /** * Cohort reports creates a time series of user retention for the cohort. */ @@ -299,6 +300,7 @@ public Builder cohortSpec(Optional cohortSpec) { return this; } + /** * Dimensions filter */ @@ -317,6 +319,7 @@ public Builder dimensionFilter(Optional dimensionFil return this; } + /** * A list of dimensions. */ @@ -326,6 +329,7 @@ public Builder dimensions(List dimensions) { return this; } + /** * Metrics filter */ @@ -344,6 +348,7 @@ public Builder metricFilter(Optional metricFilter) { return this; } + /** * A list of metrics. */ @@ -353,6 +358,7 @@ public Builder metrics(List metrics) { return this; } + /** * The name of the custom report, this name would be used as stream name. */ @@ -361,15 +367,13 @@ public Builder name(String name) { this.name = name; return this; } - + public SourceGoogleAnalyticsDataApiCustomReportConfig build() { + return new SourceGoogleAnalyticsDataApiCustomReportConfig( - cohortSpec, - dimensionFilter, - dimensions, - metricFilter, - metrics, - name); + cohortSpec, dimensionFilter, dimensions, + metricFilter, metrics, name); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDisabled.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDisabled.java index a4f9c45d9..d35a245a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDisabled.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDisabled.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiDisabled { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceGoogleAnalyticsDataApiDisabled { @JsonCreator public SourceGoogleAnalyticsDataApiDisabled() { - this.enabled = Builder._SINGLETON_VALUE_Enabled.value(); } @@ -35,11 +34,11 @@ public Optional enabled() { return (Optional) enabled; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiDisabled other = (SourceGoogleAnalyticsDataApiDisabled) o; return - Objects.deepEquals(this.enabled, other.enabled); + Utils.enhancedDeepEquals(this.enabled, other.enabled); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( enabled); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceGoogleAnalyticsDataApiDisabled.class, "enabled", enabled); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceGoogleAnalyticsDataApiDisabled build() { + return new SourceGoogleAnalyticsDataApiDisabled( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Enabled = new LazySingletonValue<>( "enabled", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDoubleValue.java index f2c76150a..c51779b65 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType valueType( return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiDoubleValue withValue(double value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiDoubleValue other = (SourceGoogleAnalyticsDataApiDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiDoubleValue build() { + return new SourceGoogleAnalyticsDataApiDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java index 3af4cbc2e..f23c0535a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiEnabled.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiEnabled { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiEnabled(String value) { + SourceGoogleAnalyticsDataApiEnabled(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiExpression.java index 4899cf62d..ac805ebe2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiExpression.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiExpression { @JsonProperty("field_name") private String fieldName; + @JsonProperty("filter") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter filter; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return filter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiExpression withFieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); @@ -55,7 +57,6 @@ public SourceGoogleAnalyticsDataApiExpression withFilter(SourceGoogleAnalyticsDa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiExpression other = (SourceGoogleAnalyticsDataApiExpression) o; return - Objects.deepEquals(this.fieldName, other.fieldName) && - Objects.deepEquals(this.filter, other.filter); + Utils.enhancedDeepEquals(this.fieldName, other.fieldName) && + Utils.enhancedDeepEquals(this.filter, other.filter); } @Override public int hashCode() { - return Objects.hash( - fieldName, - filter); + return Utils.enhancedHash( + fieldName, filter); } @Override @@ -83,33 +83,37 @@ public String toString() { "fieldName", fieldName, "filter", filter); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fieldName; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter filter; - + private Builder() { // force use of static builder() method } + public Builder fieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); this.fieldName = fieldName; return this; } + public Builder filter(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - + public SourceGoogleAnalyticsDataApiExpression build() { + return new SourceGoogleAnalyticsDataApiExpression( - fieldName, - filter); + fieldName, filter); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilter.java index bfb298c57..2336fbf0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilter.java @@ -14,22 +14,24 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * SourceGoogleAnalyticsDataApiFilter * - *

    A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all dimensions. + *

    A primitive filter. In the same FilterExpression, all of the filter's field names need to be either + * all dimensions. */ public class SourceGoogleAnalyticsDataApiFilter { @JsonProperty("field_name") private String fieldName; + @JsonProperty("filter") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter filter; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter_type") private Optional filterType; @@ -61,9 +63,10 @@ public Optional return (Optional) filterType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiFilter withFieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); @@ -77,7 +80,6 @@ public SourceGoogleAnalyticsDataApiFilter withFilter(SourceGoogleAnalyticsDataAp return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -88,17 +90,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiFilter other = (SourceGoogleAnalyticsDataApiFilter) o; return - Objects.deepEquals(this.fieldName, other.fieldName) && - Objects.deepEquals(this.filter, other.filter) && - Objects.deepEquals(this.filterType, other.filterType); + Utils.enhancedDeepEquals(this.fieldName, other.fieldName) && + Utils.enhancedDeepEquals(this.filter, other.filter) && + Utils.enhancedDeepEquals(this.filterType, other.filterType); } @Override public int hashCode() { - return Objects.hash( - fieldName, - filter, - filterType); + return Utils.enhancedHash( + fieldName, filter, filterType); } @Override @@ -108,35 +108,39 @@ public String toString() { "filter", filter, "filterType", filterType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fieldName; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter filter; - + private Builder() { // force use of static builder() method } + public Builder fieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); this.fieldName = fieldName; return this; } + public Builder filter(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - + public SourceGoogleAnalyticsDataApiFilter build() { + return new SourceGoogleAnalyticsDataApiFilter( - fieldName, - filter); + fieldName, filter); } + private static final LazySingletonValue> _SINGLETON_VALUE_FilterType = new LazySingletonValue<>( "filter_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java index 33b2a7e91..a2306fdea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiFilterName { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiFilterName(String value) { + SourceGoogleAnalyticsDataApiFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterType.java index 6141a1994..9ca76e70c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFilterType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiFilterType { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiFilterType(String value) { + SourceGoogleAnalyticsDataApiFilterType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFromValue.java index c5a88cf6a..2c418e227 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiFromValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiFromValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiFromValue other = (SourceGoogleAnalyticsDataApiFromValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java index 05790bb2b..b7a2658e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi(String value) { + SourceGoogleAnalyticsDataApiGoogleAnalyticsDataApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGranularity.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGranularity.java index 2d2c91d09..82eb0793b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGranularity.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiGranularity.java @@ -11,7 +11,8 @@ /** * SourceGoogleAnalyticsDataApiGranularity * - *

    The granularity used to interpret the startOffset and endOffset for the extended reporting date range for a cohort report. + *

    The granularity used to interpret the startOffset and endOffset for the extended reporting date + * range for a cohort report. */ public enum SourceGoogleAnalyticsDataApiGranularity { GRANULARITY_UNSPECIFIED("GRANULARITY_UNSPECIFIED"), @@ -22,7 +23,7 @@ public enum SourceGoogleAnalyticsDataApiGranularity { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiGranularity(String value) { + SourceGoogleAnalyticsDataApiGranularity(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInListFilter.java index 9d6eb1222..a795b3e49 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInListFilter.java @@ -15,18 +15,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiInListFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName filterName; + @JsonProperty("values") private List values; @@ -61,9 +63,10 @@ public List values() { return values; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiInListFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -71,6 +74,7 @@ public SourceGoogleAnalyticsDataApiInListFilter withCaseSensitive(boolean caseSe return this; } + public SourceGoogleAnalyticsDataApiInListFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -83,7 +87,6 @@ public SourceGoogleAnalyticsDataApiInListFilter withValues(List values) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,17 +97,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiInListFilter other = (SourceGoogleAnalyticsDataApiInListFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.values, other.values); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.values, other.values); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - values); + return Utils.enhancedHash( + caseSensitive, filterName, values); } @Override @@ -114,17 +115,19 @@ public String toString() { "filterName", filterName, "values", values); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private List values; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -137,18 +140,20 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder values(List values) { Utils.checkNotNull(values, "values"); this.values = values; return this; } - + public SourceGoogleAnalyticsDataApiInListFilter build() { + return new SourceGoogleAnalyticsDataApiInListFilter( - caseSensitive, - values); + caseSensitive, values); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInt64Value.java index 85911e6b5..57e26b259 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasValueType valueType() { return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiInt64Value withValue(String value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiInt64Value other = (SourceGoogleAnalyticsDataApiInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiInt64Value build() { + return new SourceGoogleAnalyticsDataApiInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNotExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNotExpression.java index 2bd4517e2..00e375eb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNotExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNotExpression.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -28,6 +27,7 @@ public class SourceGoogleAnalyticsDataApiNotExpression { @JsonProperty("expression") private Optional expression; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter_type") private Optional filterType; @@ -56,9 +56,10 @@ public Optional) filterType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiNotExpression withExpression(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression expression) { Utils.checkNotNull(expression, "expression"); @@ -66,13 +67,13 @@ public SourceGoogleAnalyticsDataApiNotExpression withExpression(SourceGoogleAnal return this; } + public SourceGoogleAnalyticsDataApiNotExpression withExpression(Optional expression) { Utils.checkNotNull(expression, "expression"); this.expression = expression; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -83,15 +84,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiNotExpression other = (SourceGoogleAnalyticsDataApiNotExpression) o; return - Objects.deepEquals(this.expression, other.expression) && - Objects.deepEquals(this.filterType, other.filterType); + Utils.enhancedDeepEquals(this.expression, other.expression) && + Utils.enhancedDeepEquals(this.filterType, other.filterType); } @Override public int hashCode() { - return Objects.hash( - expression, - filterType); + return Utils.enhancedHash( + expression, filterType); } @Override @@ -100,15 +100,17 @@ public String toString() { "expression", expression, "filterType", filterType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional expression = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder expression(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression expression) { Utils.checkNotNull(expression, "expression"); this.expression = Optional.ofNullable(expression); @@ -120,12 +122,14 @@ public Builder expression(Optional> _SINGLETON_VALUE_FilterType = new LazySingletonValue<>( "filter_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNumericFilter.java index 7fc781b70..b2138fc95 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiNumericFilter.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiNumericFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName filterName; + @JsonProperty("operation") private List operation; + @JsonProperty("value") private SourceGoogleAnalyticsDataApiValue value; @@ -51,9 +53,10 @@ public SourceGoogleAnalyticsDataApiValue value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiNumericFilter withOperation(List operation) { Utils.checkNotNull(operation, "operation"); @@ -67,7 +70,6 @@ public SourceGoogleAnalyticsDataApiNumericFilter withValue(SourceGoogleAnalytics return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiNumericFilter other = (SourceGoogleAnalyticsDataApiNumericFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.operation, other.operation) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - filterName, - operation, - value); + return Utils.enhancedHash( + filterName, operation, value); } @Override @@ -98,35 +98,39 @@ public String toString() { "operation", operation, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List operation; - + private SourceGoogleAnalyticsDataApiValue value; - + private Builder() { // force use of static builder() method } + public Builder operation(List operation) { Utils.checkNotNull(operation, "operation"); this.operation = operation; return this; } + public Builder value(SourceGoogleAnalyticsDataApiValue value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiNumericFilter build() { + return new SourceGoogleAnalyticsDataApiNumericFilter( - operation, - value); + operation, value); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiOrGroup.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiOrGroup.java index 5f806b40c..946533efe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiOrGroup.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiOrGroup.java @@ -12,7 +12,6 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; /** * SourceGoogleAnalyticsDataApiOrGroup @@ -24,6 +23,7 @@ public class SourceGoogleAnalyticsDataApiOrGroup { @JsonProperty("expressions") private List expressions; + @JsonProperty("filter_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType filterType; @@ -45,9 +45,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return filterType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiOrGroup withExpressions(List expressions) { Utils.checkNotNull(expressions, "expressions"); @@ -55,7 +56,6 @@ public SourceGoogleAnalyticsDataApiOrGroup withExpressions(List expressions; - + private Builder() { // force use of static builder() method } + public Builder expressions(List expressions) { Utils.checkNotNull(expressions, "expressions"); this.expressions = expressions; return this; } - + public SourceGoogleAnalyticsDataApiOrGroup build() { + return new SourceGoogleAnalyticsDataApiOrGroup( expressions); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterType = new LazySingletonValue<>( "filter_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java index f1d1cdfa0..bdd37ce4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasAuthType { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasAuthType(String value) { + SourceGoogleAnalyticsDataApiSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasBetweenFilter.java index 5cbbe04e7..dd28f8331 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasBetweenFilter.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasBetweenFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName filterName; + @JsonProperty("fromValue") private SourceGoogleAnalyticsDataApiSchemasFromValue fromValue; + @JsonProperty("toValue") private SourceGoogleAnalyticsDataApiSchemasToValue toValue; @@ -50,9 +52,10 @@ public SourceGoogleAnalyticsDataApiSchemasToValue toValue() { return toValue; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasBetweenFilter withFromValue(SourceGoogleAnalyticsDataApiSchemasFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); @@ -66,7 +69,6 @@ public SourceGoogleAnalyticsDataApiSchemasBetweenFilter withToValue(SourceGoogle return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasBetweenFilter other = (SourceGoogleAnalyticsDataApiSchemasBetweenFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.fromValue, other.fromValue) && - Objects.deepEquals(this.toValue, other.toValue); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.fromValue, other.fromValue) && + Utils.enhancedDeepEquals(this.toValue, other.toValue); } @Override public int hashCode() { - return Objects.hash( - filterName, - fromValue, - toValue); + return Utils.enhancedHash( + filterName, fromValue, toValue); } @Override @@ -97,35 +97,39 @@ public String toString() { "fromValue", fromValue, "toValue", toValue); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceGoogleAnalyticsDataApiSchemasFromValue fromValue; - + private SourceGoogleAnalyticsDataApiSchemasToValue toValue; - + private Builder() { // force use of static builder() method } + public Builder fromValue(SourceGoogleAnalyticsDataApiSchemasFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); this.fromValue = fromValue; return this; } + public Builder toValue(SourceGoogleAnalyticsDataApiSchemasToValue toValue) { Utils.checkNotNull(toValue, "toValue"); this.toValue = toValue; return this; } - + public SourceGoogleAnalyticsDataApiSchemasBetweenFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasBetweenFilter( - fromValue, - toValue); + fromValue, toValue); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter.java index 1defaff76..54921f01a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName filterName; + @JsonProperty("fromValue") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue fromValue; + @JsonProperty("toValue") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue toValue; @@ -50,9 +52,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue toValue() { return toValue; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter withFromValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); @@ -66,7 +69,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter withTo return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.fromValue, other.fromValue) && - Objects.deepEquals(this.toValue, other.toValue); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.fromValue, other.fromValue) && + Utils.enhancedDeepEquals(this.toValue, other.toValue); } @Override public int hashCode() { - return Objects.hash( - filterName, - fromValue, - toValue); + return Utils.enhancedHash( + filterName, fromValue, toValue); } @Override @@ -97,35 +97,39 @@ public String toString() { "fromValue", fromValue, "toValue", toValue); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue fromValue; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue toValue; - + private Builder() { // force use of static builder() method } + public Builder fromValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); this.fromValue = fromValue; return this; } + public Builder toValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue toValue) { Utils.checkNotNull(toValue, "toValue"); this.toValue = toValue; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayBetweenFilter( - fromValue, - toValue); + fromValue, toValue); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter.java index bca0d5a98..4cac22453 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName filterName; + @JsonProperty("fromValue") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue fromValue; + @JsonProperty("toValue") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue toValue; @@ -50,9 +52,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToVal return toValue; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter withFromValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); @@ -66,7 +69,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetwe return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.fromValue, other.fromValue) && - Objects.deepEquals(this.toValue, other.toValue); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.fromValue, other.fromValue) && + Utils.enhancedDeepEquals(this.toValue, other.toValue); } @Override public int hashCode() { - return Objects.hash( - filterName, - fromValue, - toValue); + return Utils.enhancedHash( + filterName, fromValue, toValue); } @Override @@ -97,35 +97,39 @@ public String toString() { "fromValue", fromValue, "toValue", toValue); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue fromValue; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue toValue; - + private Builder() { // force use of static builder() method } + public Builder fromValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); this.fromValue = fromValue; return this; } + public Builder toValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue toValue) { Utils.checkNotNull(toValue, "toValue"); this.toValue = toValue; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterBetweenFilter( - fromValue, - toValue); + fromValue, toValue); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue.java index 68007a00f..22ef990c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1DoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue.java index e0c741955..4241d2770 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue.java index c53d4e8b6..3643add19 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java index d41fc7c92..b792e4856 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ToValueValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.java index c8e036499..30206a012 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.java index 9db4668a2..2853af7dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.java index 78111cea8..97be6320d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.java index 2f5117c24..f856a4438 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value.java index 5e48dd840..ad7ecd507 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilter4ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java index d5f3adc32..4076355e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.java index ac7b225a2..fac6bf0b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value.java index b34ba57b2..b343087d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java index 30df78ea4..3b53e2bad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums.java @@ -19,7 +19,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.java index f8e71f475..07956c7b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.java index 5a0ae202a..0a5aa941c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value.java index beb9c8ec4..cbce888d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1Int64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java index c9a74edf3..a4e729f7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums.java @@ -20,7 +20,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.java index ee93c6c93..72b3bbb15 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue.java index c7c52aedf..15f0b58c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2DoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java index c36d2919e..0b4c57d7e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.java index 1590dd244..e41f63b92 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.java index 870825837..a68e174a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.java index 6c9bb1db4..d62acc1a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.java index 3925a468c..6308dee0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.java index 3c648fdb1..1f74d68b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.java index e2128077d..2d7496f46 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value.java index e624eacb1..0ceec6cf7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2Int64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java index 2ab285793..59344a407 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums.java @@ -20,7 +20,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.java index 4a745e35c..bc779405b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue.java index 0694aac43..323178f34 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3DoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue.java index 76c005ea1..9b8ac7f74 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue.java index 41d8b814e..add89fbad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java index 6d9f68b24..6af5828d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ToValueValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.java index b96c78119..877e7bfb1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.java index 6191b2c9c..4e31a2f6c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.java index 3f0803e77..49d75ad1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.java index 422978c9c..dff657cf7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value.java index 206ae30f8..4b21ea756 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilter4ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java index 3424000ca..0f1b62105 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.java index b2baa379e..99c7de6a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value.java index 9b7aa1d98..d6f746a99 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java index 46b19afbd..c77464b2e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter.java index 1ac77d48d..c15a95eb2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter { @@ -79,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java index 976a47b06..671da5284 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value.java index f0c4daa74..d3c7f579e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Int64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java index 89f9f0b99..e835c6426 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums.java @@ -19,7 +19,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.java index 6d120693b..1c46fa72f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue.java index 2e5f7be32..f29772d16 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ToValueValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter.java index 0ede8f7fa..cc4e0d926 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter { @@ -79,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java index dd89926b3..289c153e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value.java index 3462e68d2..07d320b2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilter4ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java index 5f46a39ab..bf807334e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums.java @@ -20,7 +20,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.java index a66fa6d4f..53da5504b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue.java index b58914528..f4e7edf6a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterFilterValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubl return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter.java index 5d065a15e..50220eb76 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter { @@ -79,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java index 4c3ee0a99..dfb5f0d85 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue.java index 12d1030d3..49fc26375 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFromValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter.java index a9df0ee11..714079e8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter.java @@ -15,18 +15,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterFilterName filterName; + @JsonProperty("values") private List values; @@ -61,9 +63,10 @@ public List values() { return values; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -71,6 +74,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInLis return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -83,7 +87,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInLis return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,17 +97,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.values, other.values); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.values, other.values); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - values); + return Utils.enhancedHash( + caseSensitive, filterName, values); } @Override @@ -114,17 +115,19 @@ public String toString() { "filterName", filterName, "values", values); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private List values; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -137,18 +140,20 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder values(List values) { Utils.checkNotNull(values, "values"); this.values = values; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInListFilter( - caseSensitive, - values); + caseSensitive, values); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value.java index 2bc34c3bb..66ea54693 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2ExpressionsFilterValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64 return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter.java index 3fd083cf5..6afe98954 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter2FilterName filterName; + @JsonProperty("operation") private List operation; + @JsonProperty("value") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue value; @@ -51,9 +53,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter withOperation(List operation) { Utils.checkNotNull(operation, "operation"); @@ -67,7 +70,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumer return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.operation, other.operation) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - filterName, - operation, - value); + return Utils.enhancedHash( + filterName, operation, value); } @Override @@ -98,35 +98,39 @@ public String toString() { "operation", operation, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List operation; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue value; - + private Builder() { // force use of static builder() method } + public Builder operation(List operation) { Utils.checkNotNull(operation, "operation"); this.operation = operation; return this; } + public Builder value(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterNumericFilter( - operation, - value); + operation, value); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter.java index 6dd17d718..379204a0f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter.java @@ -16,22 +16,25 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterFilterName filterName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("matchType") private Optional> matchType; + @JsonProperty("value") private String value; @@ -75,9 +78,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -85,6 +89,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStrin return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -97,6 +102,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStrin return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter withMatchType(Optional> matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = matchType; @@ -109,7 +115,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStrin return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +125,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterStringFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.matchType, other.matchType) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.matchType, other.matchType) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - matchType, + return Utils.enhancedHash( + caseSensitive, filterName, matchType, value); } @@ -143,19 +146,21 @@ public String toString() { "matchType", matchType, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private Optional> matchType = Optional.empty(); - + private String value; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -168,6 +173,7 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder matchType(List matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = Optional.ofNullable(matchType); @@ -180,19 +186,20 @@ public Builder matchType(Optional _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue.java index ec472f165..542ad85d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterToValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java index dd5d259fe..8296f9f77 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums.java @@ -19,7 +19,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue.java index 31cd5bab0..be0613714 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java index 04fe86059..eeca53797 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilter @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue.java index 4b1be57ef..b114fc0d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue withValu return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java index 0501d0067..7e70e4e0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayEnabled(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression.java index 25dbef6bc..ed4b6c975 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression { @JsonProperty("field_name") private String fieldName; + @JsonProperty("filter") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter filter; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return filter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression withFieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); @@ -55,7 +57,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression withFilte return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression) o; return - Objects.deepEquals(this.fieldName, other.fieldName) && - Objects.deepEquals(this.filter, other.filter); + Utils.enhancedDeepEquals(this.fieldName, other.fieldName) && + Utils.enhancedDeepEquals(this.filter, other.filter); } @Override public int hashCode() { - return Objects.hash( - fieldName, - filter); + return Utils.enhancedHash( + fieldName, filter); } @Override @@ -83,33 +83,37 @@ public String toString() { "fieldName", fieldName, "filter", filter); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fieldName; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter filter; - + private Builder() { // force use of static builder() method } + public Builder fieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); this.fieldName = fieldName; return this; } + public Builder filter(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayExpression( - fieldName, - filter); + fieldName, filter); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter.java index 6e20f65a2..853838b8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter { @@ -79,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java index 7164a17ef..cdb7281ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.java index 29b3bfb2e..a60a9dfca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFilterType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue.java index 6a8d73012..ca702e59a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayFromValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter.java index 6a819adeb..fe3d16541 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter.java @@ -15,18 +15,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterName filterName; + @JsonProperty("values") private List values; @@ -61,9 +63,10 @@ public List values() { return values; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -71,6 +74,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter withCas return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -83,7 +87,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter withVal return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,17 +97,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.values, other.values); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.values, other.values); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - values); + return Utils.enhancedHash( + caseSensitive, filterName, values); } @Override @@ -114,17 +115,19 @@ public String toString() { "filterName", filterName, "values", values); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private List values; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -137,18 +140,20 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder values(List values) { Utils.checkNotNull(values, "values"); this.values = values; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInListFilter( - caseSensitive, - values); + caseSensitive, values); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value.java index e4915e0b9..7a71cadc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueTyp return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value withValue return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter.java index 00d6bd0fb..310d73e62 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName filterName; + @JsonProperty("fromValue") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue fromValue; + @JsonProperty("toValue") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue toValue; @@ -50,9 +52,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue return toValue; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter withFromValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); @@ -66,7 +69,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.fromValue, other.fromValue) && - Objects.deepEquals(this.toValue, other.toValue); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.fromValue, other.fromValue) && + Utils.enhancedDeepEquals(this.toValue, other.toValue); } @Override public int hashCode() { - return Objects.hash( - filterName, - fromValue, - toValue); + return Utils.enhancedHash( + filterName, fromValue, toValue); } @Override @@ -97,35 +97,39 @@ public String toString() { "fromValue", fromValue, "toValue", toValue); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue fromValue; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue toValue; - + private Builder() { // force use of static builder() method } + public Builder fromValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); this.fromValue = fromValue; return this; } + public Builder toValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue toValue) { Utils.checkNotNull(toValue, "toValue"); this.toValue = toValue; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterBetweenFilter( - fromValue, - toValue); + fromValue, toValue); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue.java index 9dbc7e8d4..3c76d27f0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleVa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression.java index 48e7e69a9..03518c6e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression { @JsonProperty("field_name") private String fieldName; + @JsonProperty("filter") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter filter; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return filter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression withFieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); @@ -55,7 +57,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpressi return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression) o; return - Objects.deepEquals(this.fieldName, other.fieldName) && - Objects.deepEquals(this.filter, other.filter); + Utils.enhancedDeepEquals(this.fieldName, other.fieldName) && + Utils.enhancedDeepEquals(this.filter, other.filter); } @Override public int hashCode() { - return Objects.hash( - fieldName, - filter); + return Utils.enhancedHash( + fieldName, filter); } @Override @@ -83,33 +83,37 @@ public String toString() { "fieldName", fieldName, "filter", filter); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fieldName; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter filter; - + private Builder() { // force use of static builder() method } + public Builder fieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); this.fieldName = fieldName; return this; } + public Builder filter(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterExpression( - fieldName, - filter); + fieldName, filter); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter.java index 7e49f43e4..b5a10bf97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter { @@ -79,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java index ca8c01bf8..fcbe5434d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFil @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.java index 0980aedc5..c436bfa53 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFil @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue.java index 2a11af660..228fff70d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFromValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter.java index a660aecfa..b5e560104 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter.java @@ -15,18 +15,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName filterName; + @JsonProperty("values") private List values; @@ -61,9 +63,10 @@ public List values() { return values; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -71,6 +74,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFi return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -83,7 +87,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFi return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,17 +97,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.values, other.values); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.values, other.values); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - values); + return Utils.enhancedHash( + caseSensitive, filterName, values); } @Override @@ -114,17 +115,19 @@ public String toString() { "filterName", filterName, "values", values); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private List values; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -137,18 +140,20 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder values(List values) { Utils.checkNotNull(values, "values"); this.values = values; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInListFilter( - caseSensitive, - values); + caseSensitive, values); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value.java index 15f817452..8257b2c5e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Val return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue.java index 208c1e972..fa88cf34c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1DoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue.java index 45b736d79..6fc194dd8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue.java index 1739abacd..6e7f8ccd0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java index e0c11f454..7b0cf5590 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.java index 81c30f37f..946497225 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.java index a81985e1b..14040b30c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.java index 06f36a808..a5f998699 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.java index 4bbc23c26..8a53fd3e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value.java index 025b76cd2..8203632e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java index 5f8d2f4e4..74673fc4e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.java index e5cf2275e..c82b33c4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value.java index 9db8f411b..c97466858 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilter3ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java index 881a26357..21d92600a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter.java index 1e52a0690..9df6f2cfd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter { @@ -79,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Filter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java index 8e8d272e8..93e8c6bee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value.java index 510777c0d..b3826ef62 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1Int64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java index a3245b653..a2127accd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums.java @@ -20,7 +20,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.java index cd9a4a2ed..7aa89efbe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue.java index 02cbfcb63..c97999df0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2DoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue.java index 80afb6141..9a1e01a71 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue.java index c2f0a19e4..6d665d971 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java index 2d11852b8..5524a0148 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ToValueValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.java index a1db32409..4b1697d27 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.java index b2809d898..c243c9db7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.java index 5b81d6802..9d00d8538 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.java index 3589aa9f8..b09bd3f07 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value.java index a8edd4431..febd304fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilter4ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java index 129508975..52ada7c35 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.java index c7bcd0a53..22e0144a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value.java index b3b260d08..478345e9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java index 7908f587a..694d5c798 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums.java @@ -19,7 +19,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.java index 6d5b9ddf7..84daaa4a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.java index 7590a2b71..464e452c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value.java index 7e9c249fd..9af96cf63 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2Int64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java index 08ebc47ca..d06bb9b4c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums.java @@ -20,7 +20,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.java index 0bb38165b..db9fe36b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter.java index c5228844f..de988fdcd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName filterName; + @JsonProperty("fromValue") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue fromValue; + @JsonProperty("toValue") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue toValue; @@ -50,9 +52,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return toValue; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter withFromValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); @@ -66,7 +69,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.fromValue, other.fromValue) && - Objects.deepEquals(this.toValue, other.toValue); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.fromValue, other.fromValue) && + Utils.enhancedDeepEquals(this.toValue, other.toValue); } @Override public int hashCode() { - return Objects.hash( - filterName, - fromValue, - toValue); + return Utils.enhancedHash( + filterName, fromValue, toValue); } @Override @@ -97,35 +97,39 @@ public String toString() { "fromValue", fromValue, "toValue", toValue); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue fromValue; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue toValue; - + private Builder() { // force use of static builder() method } + public Builder fromValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); this.fromValue = fromValue; return this; } + public Builder toValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue toValue) { Utils.checkNotNull(toValue, "toValue"); this.toValue = toValue; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3BetweenFilter( - fromValue, - toValue); + fromValue, toValue); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue.java index c00abfee6..e5f4af402 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3DoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue.java index 47c4819a0..716d2d273 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue.java index 8626f801e..059795c1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java index 82a93fd8d..86ed70df3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ToValueValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.java index 7dc802a4d..142777ca4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.java index 4dd10e7fc..6bfb79e4f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.java index d502540b8..fefe3e328 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.java index 530edc80a..c2b2293e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value.java index 691af2b18..547f6e033 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilter4ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java index 54f5d1ef6..629d7f93f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.java index 729e486d9..0eed6e71b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value.java index 227a3649b..5d1e4362b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java index bbc0d7341..95c598a68 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums.java @@ -19,7 +19,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.java index 26e027adf..ae7b3ed42 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter.java index 4f3c325c6..8888199ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter { @@ -79,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java index 3c65ffc85..306cda571 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.java index 0ed06d09e..10b427786 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue.java index 2e84f86df..7a475187b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FromValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter.java index 3bea7706d..0967f3a9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter.java @@ -15,18 +15,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterName filterName; + @JsonProperty("values") private List values; @@ -61,9 +63,10 @@ public List values() { return values; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -71,6 +74,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -83,7 +87,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,17 +97,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.values, other.values); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.values, other.values); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - values); + return Utils.enhancedHash( + caseSensitive, filterName, values); } @Override @@ -114,17 +115,19 @@ public String toString() { "filterName", filterName, "values", values); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private List values; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -137,18 +140,20 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder values(List values) { Utils.checkNotNull(values, "values"); this.values = values; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3InListFilter( - caseSensitive, - values); + caseSensitive, values); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value.java index 0ed12fd9f..7ccb4f644 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Int64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter.java index 85ead6682..b88eb3f38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ExpressionFilterFilterName filterName; + @JsonProperty("operation") private List operation; + @JsonProperty("value") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value value; @@ -51,9 +53,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter withOperation(List operation) { Utils.checkNotNull(operation, "operation"); @@ -67,7 +70,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.operation, other.operation) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - filterName, - operation, - value); + return Utils.enhancedHash( + filterName, operation, value); } @Override @@ -98,35 +98,39 @@ public String toString() { "operation", operation, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List operation; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value value; - + private Builder() { // force use of static builder() method } + public Builder operation(List operation) { Utils.checkNotNull(operation, "operation"); this.operation = operation; return this; } + public Builder value(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3NumericFilter( - operation, - value); + operation, value); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter.java index 50e0771b0..f34b9fce2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter.java @@ -16,22 +16,25 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3FilterName filterName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("matchType") private Optional> matchType; + @JsonProperty("value") private String value; @@ -75,9 +78,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -85,6 +89,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -97,6 +102,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter withMatchType(Optional> matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = matchType; @@ -109,7 +115,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +125,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3StringFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.matchType, other.matchType) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.matchType, other.matchType) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - matchType, + return Utils.enhancedHash( + caseSensitive, filterName, matchType, value); } @@ -143,19 +146,21 @@ public String toString() { "matchType", matchType, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private Optional> matchType = Optional.empty(); - + private String value; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -168,6 +173,7 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder matchType(List matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = Optional.ofNullable(matchType); @@ -180,19 +186,20 @@ public Builder matchType(Optional _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue.java index d0b3c2865..be1a842d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ToValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java index bddfce020..39175d44c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums.java @@ -20,7 +20,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value.java index 0753c194c..6318b12b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Value) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java index a61ee83ae..193bfcba3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.java index 0e1e16012..49261118c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.java index 2c760992c..dd8806009 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.java index 8246670dc..65fe6fc66 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.java index 541ba6118..d892c05ed 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.java index 41eab55ff..f3e681d21 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.java index 7979a2b43..290e3171d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.java index f51aae568..4ad5afaaf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter.java index 2e77ebc75..9343d1c0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterFilterName filterName; + @JsonProperty("fromValue") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue fromValue; + @JsonProperty("toValue") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue toValue; @@ -50,9 +52,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return toValue; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter withFromValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); @@ -66,7 +69,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.fromValue, other.fromValue) && - Objects.deepEquals(this.toValue, other.toValue); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.fromValue, other.fromValue) && + Utils.enhancedDeepEquals(this.toValue, other.toValue); } @Override public int hashCode() { - return Objects.hash( - filterName, - fromValue, - toValue); + return Utils.enhancedHash( + filterName, fromValue, toValue); } @Override @@ -97,35 +97,39 @@ public String toString() { "fromValue", fromValue, "toValue", toValue); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue fromValue; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue toValue; - + private Builder() { // force use of static builder() method } + public Builder fromValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue fromValue) { Utils.checkNotNull(fromValue, "fromValue"); this.fromValue = fromValue; return this; } + public Builder toValue(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue toValue) { Utils.checkNotNull(toValue, "toValue"); this.toValue = toValue; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterBetweenFilter( - fromValue, - toValue); + fromValue, toValue); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue.java index d61b9c9e5..4517a5fe8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilter4ValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression.java index 2117d82ae..194dc0ec1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression { @JsonProperty("field_name") private String fieldName; + @JsonProperty("filter") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter filter; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return filter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression withFieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); @@ -55,7 +57,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression) o; return - Objects.deepEquals(this.fieldName, other.fieldName) && - Objects.deepEquals(this.filter, other.filter); + Utils.enhancedDeepEquals(this.fieldName, other.fieldName) && + Utils.enhancedDeepEquals(this.filter, other.filter); } @Override public int hashCode() { - return Objects.hash( - fieldName, - filter); + return Utils.enhancedHash( + fieldName, filter); } @Override @@ -83,33 +83,37 @@ public String toString() { "fieldName", fieldName, "filter", filter); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fieldName; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter filter; - + private Builder() { // force use of static builder() method } + public Builder fieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); this.fieldName = fieldName; return this; } + public Builder filter(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter3Filter filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterExpression( - fieldName, - filter); + fieldName, filter); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter.java index cbb79d60c..7f948debd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter { @@ -79,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java index 60e1aad32..5318701f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.java index 6393c9adf..61da25d95 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFilterType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue.java index f15175afa..f37cb6264 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterFromValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter.java index 0562e78a0..57c609d70 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter.java @@ -15,18 +15,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterName filterName; + @JsonProperty("values") private List values; @@ -61,9 +63,10 @@ public List values() { return values; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -71,6 +74,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -83,7 +87,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,17 +97,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.values, other.values); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.values, other.values); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - values); + return Utils.enhancedHash( + caseSensitive, filterName, values); } @Override @@ -114,17 +115,19 @@ public String toString() { "filterName", filterName, "values", values); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private List values; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -137,18 +140,20 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder values(List values) { Utils.checkNotNull(values, "values"); this.values = values; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInListFilter( - caseSensitive, - values); + caseSensitive, values); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value.java index 5c9ed4c64..aabc45ce0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter4FilterFilterValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter.java index 6b01cfcf1..9b6877285 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2ExpressionsFilterFilterName filterName; + @JsonProperty("operation") private List operation; + @JsonProperty("value") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue value; @@ -51,9 +53,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter withOperation(List operation) { Utils.checkNotNull(operation, "operation"); @@ -67,7 +70,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.operation, other.operation) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - filterName, - operation, - value); + return Utils.enhancedHash( + filterName, operation, value); } @Override @@ -98,35 +98,39 @@ public String toString() { "operation", operation, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List operation; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue value; - + private Builder() { // force use of static builder() method } + public Builder operation(List operation) { Utils.checkNotNull(operation, "operation"); this.operation = operation; return this; } + public Builder value(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterNumericFilter( - operation, - value); + operation, value); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter.java index 66f422e64..cd48804f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter.java @@ -16,22 +16,25 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter2FilterName filterName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("matchType") private Optional> matchType; + @JsonProperty("value") private String value; @@ -75,9 +78,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -85,6 +89,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -97,6 +102,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter withMatchType(Optional> matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = matchType; @@ -109,7 +115,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +125,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterStringFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.matchType, other.matchType) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.matchType, other.matchType) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - matchType, + return Utils.enhancedHash( + caseSensitive, filterName, matchType, value); } @@ -143,19 +146,21 @@ public String toString() { "matchType", matchType, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private Optional> matchType = Optional.empty(); - + private String value; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -168,6 +173,7 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder matchType(List matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = Optional.ofNullable(matchType); @@ -180,19 +186,20 @@ public Builder matchType(Optional _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue.java index b300608c4..56bc3902a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterToValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java index 3dfec83b3..f7e11624c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums.java @@ -19,7 +19,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue.java index b54ce4713..12ec7332e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java index e7bb9a3de..8f64371d9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMet @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter.java index d52225244..1be448335 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1FilterName filterName; + @JsonProperty("operation") private List operation; + @JsonProperty("value") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue value; @@ -51,9 +53,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue va return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter withOperation(List operation) { Utils.checkNotNull(operation, "operation"); @@ -67,7 +70,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericF return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.operation, other.operation) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - filterName, - operation, - value); + return Utils.enhancedHash( + filterName, operation, value); } @Override @@ -98,35 +98,39 @@ public String toString() { "operation", operation, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List operation; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue value; - + private Builder() { // force use of static builder() method } + public Builder operation(List operation) { Utils.checkNotNull(operation, "operation"); this.operation = operation; return this; } + public Builder value(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterNumericFilter( - operation, - value); + operation, value); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter.java index 46bdc92e8..56f62672c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter.java @@ -16,22 +16,25 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterMetricsFilter1ExpressionsFilterFilterName filterName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("matchType") private Optional> matchType; + @JsonProperty("value") private String value; @@ -75,9 +78,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -85,6 +89,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFi return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -97,6 +102,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFi return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter withMatchType(Optional> matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = matchType; @@ -109,7 +115,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFi return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +125,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterStringFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.matchType, other.matchType) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.matchType, other.matchType) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - matchType, + return Utils.enhancedHash( + caseSensitive, filterName, matchType, value); } @@ -143,19 +146,21 @@ public String toString() { "matchType", matchType, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private Optional> matchType = Optional.empty(); - + private String value; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -168,6 +173,7 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder matchType(List matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = Optional.ofNullable(matchType); @@ -180,19 +186,20 @@ public Builder matchType(Optional _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue.java index 2f188799d..e2d93c98f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterToValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java index 70f466da4..5ecf1df21 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums.java @@ -19,7 +19,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterVal @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue.java index ee3a4e320..8dd01b5e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java index 46eb4984a..60f41e7c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterVal @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter.java index 41a40215b..d3ff5760b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1ExpressionsFilterFilterName filterName; + @JsonProperty("operation") private List operation; + @JsonProperty("value") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue value; @@ -51,9 +53,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter withOperation(List operation) { Utils.checkNotNull(operation, "operation"); @@ -67,7 +70,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter withVa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.operation, other.operation) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - filterName, - operation, - value); + return Utils.enhancedHash( + filterName, operation, value); } @Override @@ -98,35 +98,39 @@ public String toString() { "operation", operation, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List operation; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue value; - + private Builder() { // force use of static builder() method } + public Builder operation(List operation) { Utils.checkNotNull(operation, "operation"); this.operation = operation; return this; } + public Builder value(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayNumericFilter( - operation, - value); + operation, value); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter.java index 1ab993ee6..77d4364b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter.java @@ -16,22 +16,25 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter1FilterName filterName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("matchType") private Optional> matchType; + @JsonProperty("value") private String value; @@ -75,9 +78,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -85,6 +89,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter withCas return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -97,6 +102,7 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter withMat return this; } + public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter withMatchType(Optional> matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = matchType; @@ -109,7 +115,6 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter withVal return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +125,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayStringFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.matchType, other.matchType) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.matchType, other.matchType) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - matchType, + return Utils.enhancedHash( + caseSensitive, filterName, matchType, value); } @@ -143,19 +146,21 @@ public String toString() { "matchType", matchType, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private Optional> matchType = Optional.empty(); - + private String value; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -168,6 +173,7 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder matchType(List matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = Optional.ofNullable(matchType); @@ -180,19 +186,20 @@ public Builder matchType(Optional _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue.java index 9397ab8a6..703a5345e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayToValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java index 991c66340..7f7c223e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums.java @@ -20,7 +20,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue.java index 0c980af83..de8ea9341 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue other = (SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java index ef8f9cc55..42b103c08 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasDoubleValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasDoubleValue.java index 2936fdad4..447f47023 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasDoubleValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasDoubleValue.java @@ -12,13 +12,14 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasDoubleValue { @JsonProperty("value") private double value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilterValueType valueType; @@ -40,9 +41,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasDoubleValue withValue(double value) { Utils.checkNotNull(value, "value"); @@ -50,7 +52,6 @@ public SourceGoogleAnalyticsDataApiSchemasDoubleValue withValue(double value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -61,15 +62,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasDoubleValue other = (SourceGoogleAnalyticsDataApiSchemasDoubleValue) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -78,26 +78,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Double value; - + private Builder() { // force use of static builder() method } + public Builder value(double value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasDoubleValue build() { + return new SourceGoogleAnalyticsDataApiSchemasDoubleValue( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasEnabled.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasEnabled.java index 86c919f8c..84e7e7a9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasEnabled.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasEnabled.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleAnalyticsDataApiSchemasEnabled { +public class SourceGoogleAnalyticsDataApiSchemasEnabled { /** * Optional settings for a cohort report. */ @@ -27,14 +26,17 @@ public class SourceGoogleAnalyticsDataApiSchemasEnabled { @JsonProperty("cohortReportSettings") private Optional cohortReportSettings; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("cohorts") private Optional> cohorts; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("cohortsRange") private Optional cohortsRange; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("enabled") private Optional enabled; @@ -84,9 +86,10 @@ public Optional en return (Optional) enabled; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Optional settings for a cohort report. @@ -97,6 +100,7 @@ public SourceGoogleAnalyticsDataApiSchemasEnabled withCohortReportSettings(Cohor return this; } + /** * Optional settings for a cohort report. */ @@ -112,6 +116,7 @@ public SourceGoogleAnalyticsDataApiSchemasEnabled withCohorts(List coho return this; } + public SourceGoogleAnalyticsDataApiSchemasEnabled withCohorts(Optional> cohorts) { Utils.checkNotNull(cohorts, "cohorts"); this.cohorts = cohorts; @@ -124,13 +129,13 @@ public SourceGoogleAnalyticsDataApiSchemasEnabled withCohortsRange(CohortsRange return this; } + public SourceGoogleAnalyticsDataApiSchemasEnabled withCohortsRange(Optional cohortsRange) { Utils.checkNotNull(cohortsRange, "cohortsRange"); this.cohortsRange = cohortsRange; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -141,18 +146,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasEnabled other = (SourceGoogleAnalyticsDataApiSchemasEnabled) o; return - Objects.deepEquals(this.cohortReportSettings, other.cohortReportSettings) && - Objects.deepEquals(this.cohorts, other.cohorts) && - Objects.deepEquals(this.cohortsRange, other.cohortsRange) && - Objects.deepEquals(this.enabled, other.enabled); + Utils.enhancedDeepEquals(this.cohortReportSettings, other.cohortReportSettings) && + Utils.enhancedDeepEquals(this.cohorts, other.cohorts) && + Utils.enhancedDeepEquals(this.cohortsRange, other.cohortsRange) && + Utils.enhancedDeepEquals(this.enabled, other.enabled); } @Override public int hashCode() { - return Objects.hash( - cohortReportSettings, - cohorts, - cohortsRange, + return Utils.enhancedHash( + cohortReportSettings, cohorts, cohortsRange, enabled); } @@ -164,19 +167,21 @@ public String toString() { "cohortsRange", cohortsRange, "enabled", enabled); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional cohortReportSettings = Optional.empty(); - + private Optional> cohorts = Optional.empty(); - + private Optional cohortsRange = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Optional settings for a cohort report. */ @@ -195,6 +200,7 @@ public Builder cohortReportSettings(Optional coh return this; } + public Builder cohorts(List cohorts) { Utils.checkNotNull(cohorts, "cohorts"); this.cohorts = Optional.ofNullable(cohorts); @@ -207,6 +213,7 @@ public Builder cohorts(Optional> cohorts) { return this; } + public Builder cohortsRange(CohortsRange cohortsRange) { Utils.checkNotNull(cohortsRange, "cohortsRange"); this.cohortsRange = Optional.ofNullable(cohortsRange); @@ -218,14 +225,14 @@ public Builder cohortsRange(Optional cohortsRange) { this.cohortsRange = cohortsRange; return this; } - + public SourceGoogleAnalyticsDataApiSchemasEnabled build() { + return new SourceGoogleAnalyticsDataApiSchemasEnabled( - cohortReportSettings, - cohorts, - cohortsRange); + cohortReportSettings, cohorts, cohortsRange); } + private static final LazySingletonValue> _SINGLETON_VALUE_Enabled = new LazySingletonValue<>( "enabled", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasExpression.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasExpression.java index 748ea8688..1fe554cdf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasExpression.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasExpression.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasExpression { @JsonProperty("field_name") private String fieldName; + @JsonProperty("filter") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter filter; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimen return filter; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasExpression withFieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); @@ -55,7 +57,6 @@ public SourceGoogleAnalyticsDataApiSchemasExpression withFilter(SourceGoogleAnal return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasExpression other = (SourceGoogleAnalyticsDataApiSchemasExpression) o; return - Objects.deepEquals(this.fieldName, other.fieldName) && - Objects.deepEquals(this.filter, other.filter); + Utils.enhancedDeepEquals(this.fieldName, other.fieldName) && + Utils.enhancedDeepEquals(this.filter, other.filter); } @Override public int hashCode() { - return Objects.hash( - fieldName, - filter); + return Utils.enhancedHash( + fieldName, filter); } @Override @@ -83,33 +83,37 @@ public String toString() { "fieldName", fieldName, "filter", filter); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fieldName; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter filter; - + private Builder() { // force use of static builder() method } + public Builder fieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); this.fieldName = fieldName; return this; } + public Builder filter(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3Filter filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - + public SourceGoogleAnalyticsDataApiSchemasExpression build() { + return new SourceGoogleAnalyticsDataApiSchemasExpression( - fieldName, - filter); + fieldName, filter); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilter.java index e5cbc4414..dd06e0aa6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilter.java @@ -14,22 +14,24 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * SourceGoogleAnalyticsDataApiSchemasFilter * - *

    A primitive filter. In the same FilterExpression, all of the filter's field names need to be either all metrics. + *

    A primitive filter. In the same FilterExpression, all of the filter's field names need to be either + * all metrics. */ public class SourceGoogleAnalyticsDataApiSchemasFilter { @JsonProperty("field_name") private String fieldName; + @JsonProperty("filter") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter filter; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter_type") private Optional filterType; @@ -61,9 +63,10 @@ public Optional) filterType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasFilter withFieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); @@ -77,7 +80,6 @@ public SourceGoogleAnalyticsDataApiSchemasFilter withFilter(SourceGoogleAnalytic return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -88,17 +90,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasFilter other = (SourceGoogleAnalyticsDataApiSchemasFilter) o; return - Objects.deepEquals(this.fieldName, other.fieldName) && - Objects.deepEquals(this.filter, other.filter) && - Objects.deepEquals(this.filterType, other.filterType); + Utils.enhancedDeepEquals(this.fieldName, other.fieldName) && + Utils.enhancedDeepEquals(this.filter, other.filter) && + Utils.enhancedDeepEquals(this.filterType, other.filterType); } @Override public int hashCode() { - return Objects.hash( - fieldName, - filter, - filterType); + return Utils.enhancedHash( + fieldName, filter, filterType); } @Override @@ -108,35 +108,39 @@ public String toString() { "filter", filter, "filterType", filterType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String fieldName; - + private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter filter; - + private Builder() { // force use of static builder() method } + public Builder fieldName(String fieldName) { Utils.checkNotNull(fieldName, "fieldName"); this.fieldName = fieldName; return this; } + public Builder filter(SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilter filter) { Utils.checkNotNull(filter, "filter"); this.filter = filter; return this; } - + public SourceGoogleAnalyticsDataApiSchemasFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasFilter( - fieldName, - filter); + fieldName, filter); } + private static final LazySingletonValue> _SINGLETON_VALUE_FilterType = new LazySingletonValue<>( "filter_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java index 277c1d712..377707b84 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterName.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasFilterName { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasFilterName(String value) { + SourceGoogleAnalyticsDataApiSchemasFilterName(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterType.java index b022b6481..5c22b09a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFilterType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasFilterType { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasFilterType(String value) { + SourceGoogleAnalyticsDataApiSchemasFilterType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFromValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFromValue.java index 230313213..b1ca92346 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFromValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasFromValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasFromValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasFromValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasFromValue other = (SourceGoogleAnalyticsDataApiSchemasFromValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInListFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInListFilter.java index 543d76349..3888ae7bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInListFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInListFilter.java @@ -15,18 +15,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasInListFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterName filterName; + @JsonProperty("values") private List values; @@ -61,9 +63,10 @@ public List values() { return values; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasInListFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -71,6 +74,7 @@ public SourceGoogleAnalyticsDataApiSchemasInListFilter withCaseSensitive(boolean return this; } + public SourceGoogleAnalyticsDataApiSchemasInListFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -83,7 +87,6 @@ public SourceGoogleAnalyticsDataApiSchemasInListFilter withValues(List v return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,17 +97,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasInListFilter other = (SourceGoogleAnalyticsDataApiSchemasInListFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.values, other.values); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.values, other.values); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - values); + return Utils.enhancedHash( + caseSensitive, filterName, values); } @Override @@ -114,17 +115,19 @@ public String toString() { "filterName", filterName, "values", values); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private List values; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -137,18 +140,20 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder values(List values) { Utils.checkNotNull(values, "values"); this.values = values; return this; } - + public SourceGoogleAnalyticsDataApiSchemasInListFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasInListFilter( - caseSensitive, - values); + caseSensitive, values); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInt64Value.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInt64Value.java index db9c78d62..679340f34 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInt64Value.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasInt64Value.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasInt64Value { @JsonProperty("value") private String value; + @JsonProperty("value_type") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValueType valueType; @@ -39,9 +40,10 @@ public SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterValue return valueType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasInt64Value withValue(String value) { Utils.checkNotNull(value, "value"); @@ -49,7 +51,6 @@ public SourceGoogleAnalyticsDataApiSchemasInt64Value withValue(String value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasInt64Value other = (SourceGoogleAnalyticsDataApiSchemasInt64Value) o; return - Objects.deepEquals(this.value, other.value) && - Objects.deepEquals(this.valueType, other.valueType); + Utils.enhancedDeepEquals(this.value, other.value) && + Utils.enhancedDeepEquals(this.valueType, other.valueType); } @Override public int hashCode() { - return Objects.hash( - value, - valueType); + return Utils.enhancedHash( + value, valueType); } @Override @@ -77,26 +77,30 @@ public String toString() { "value", value, "valueType", valueType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String value; - + private Builder() { // force use of static builder() method } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasInt64Value build() { + return new SourceGoogleAnalyticsDataApiSchemasInt64Value( value); } + private static final LazySingletonValue _SINGLETON_VALUE_ValueType = new LazySingletonValue<>( "value_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasNumericFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasNumericFilter.java index 788f58c51..2689209bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasNumericFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasNumericFilter.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class SourceGoogleAnalyticsDataApiSchemasNumericFilter { @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3ExpressionFilterFilterName filterName; + @JsonProperty("operation") private List operation; + @JsonProperty("value") private SourceGoogleAnalyticsDataApiSchemasValue value; @@ -51,9 +53,10 @@ public SourceGoogleAnalyticsDataApiSchemasValue value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasNumericFilter withOperation(List operation) { Utils.checkNotNull(operation, "operation"); @@ -67,7 +70,6 @@ public SourceGoogleAnalyticsDataApiSchemasNumericFilter withValue(SourceGoogleAn return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasNumericFilter other = (SourceGoogleAnalyticsDataApiSchemasNumericFilter) o; return - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.operation, other.operation) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.operation, other.operation) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - filterName, - operation, - value); + return Utils.enhancedHash( + filterName, operation, value); } @Override @@ -98,35 +98,39 @@ public String toString() { "operation", operation, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List operation; - + private SourceGoogleAnalyticsDataApiSchemasValue value; - + private Builder() { // force use of static builder() method } + public Builder operation(List operation) { Utils.checkNotNull(operation, "operation"); this.operation = operation; return this; } + public Builder value(SourceGoogleAnalyticsDataApiSchemasValue value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public SourceGoogleAnalyticsDataApiSchemasNumericFilter build() { + return new SourceGoogleAnalyticsDataApiSchemasNumericFilter( - operation, - value); + operation, value); } + private static final LazySingletonValue _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasStringFilter.java index c5275f6f4..787982feb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasStringFilter.java @@ -16,22 +16,25 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiSchemasStringFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayDimensionFilterDimensionsFilter3FilterName filterName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("matchType") private Optional> matchType; + @JsonProperty("value") private String value; @@ -75,9 +78,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiSchemasStringFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -85,6 +89,7 @@ public SourceGoogleAnalyticsDataApiSchemasStringFilter withCaseSensitive(boolean return this; } + public SourceGoogleAnalyticsDataApiSchemasStringFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -97,6 +102,7 @@ public SourceGoogleAnalyticsDataApiSchemasStringFilter withMatchType(List> matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = matchType; @@ -109,7 +115,6 @@ public SourceGoogleAnalyticsDataApiSchemasStringFilter withValue(String value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +125,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiSchemasStringFilter other = (SourceGoogleAnalyticsDataApiSchemasStringFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.matchType, other.matchType) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.matchType, other.matchType) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - matchType, + return Utils.enhancedHash( + caseSensitive, filterName, matchType, value); } @@ -143,19 +146,21 @@ public String toString() { "matchType", matchType, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private Optional> matchType = Optional.empty(); - + private String value; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -168,6 +173,7 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder matchType(List matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = Optional.ofNullable(matchType); @@ -180,19 +186,20 @@ public Builder matchType(Optional _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasToValue.java index e0503ebca..06bf6073e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasToValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasToValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasToValue other = (SourceGoogleAnalyticsDataApiSchemasToValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java index 304dd65e5..bb1f425bd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValidEnums.java @@ -19,7 +19,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasValidEnums { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasValidEnums(String value) { + SourceGoogleAnalyticsDataApiSchemasValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValue.java index 21dad8ec1..2b36b4c9e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiSchemasValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiSchemasValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiSchemasValue other = (SourceGoogleAnalyticsDataApiSchemasValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java index 323021602..ce87a177e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiSchemasValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiSchemasValueType { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiSchemasValueType(String value) { + SourceGoogleAnalyticsDataApiSchemasValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java index 33141f102..f5626d3f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication { @JsonInclude(Include.NON_ABSENT) @@ -24,7 +24,10 @@ public class SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication { private Optional authType; /** - * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. + * The JSON key linked to the service account used for authorization. For steps on obtaining this key, + * refer to the + * setup guide. */ @JsonProperty("credentials_json") private String credentialsJson; @@ -44,19 +47,26 @@ public Optional authType() { } /** - * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. + * The JSON key linked to the service account used for authorization. For steps on obtaining this key, + * refer to the + * setup guide. */ @JsonIgnore public String credentialsJson() { return credentialsJson; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. + * The JSON key linked to the service account used for authorization. For steps on obtaining this key, + * refer to the + * setup guide. */ public SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication withCredentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); @@ -64,7 +74,6 @@ public SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication withCredentia return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +84,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication other = (SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.credentialsJson, other.credentialsJson); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.credentialsJson, other.credentialsJson); } @Override public int hashCode() { - return Objects.hash( - authType, - credentialsJson); + return Utils.enhancedHash( + authType, credentialsJson); } @Override @@ -92,29 +100,36 @@ public String toString() { "authType", authType, "credentialsJson", credentialsJson); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String credentialsJson; - + private Builder() { // force use of static builder() method } + /** - * The JSON key linked to the service account used for authorization. For steps on obtaining this key, refer to <a href="https://docs.airbyte.com/integrations/sources/google-analytics-data-api/#setup-guide">the setup guide</a>. + * The JSON key linked to the service account used for authorization. For steps on obtaining this key, + * refer to the + * setup guide. */ public Builder credentialsJson(String credentialsJson) { Utils.checkNotNull(credentialsJson, "credentialsJson"); this.credentialsJson = credentialsJson; return this; } - + public SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication build() { + return new SourceGoogleAnalyticsDataApiServiceAccountKeyAuthentication( credentialsJson); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiStringFilter.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiStringFilter.java index dbc18c37f..a15248d54 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiStringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiStringFilter.java @@ -16,22 +16,25 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleAnalyticsDataApiStringFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private SourceGoogleAnalyticsDataApiSchemasCustomReportsArrayMetricFilterFilterName filterName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("matchType") private Optional> matchType; + @JsonProperty("value") private String value; @@ -75,9 +78,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleAnalyticsDataApiStringFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -85,6 +89,7 @@ public SourceGoogleAnalyticsDataApiStringFilter withCaseSensitive(boolean caseSe return this; } + public SourceGoogleAnalyticsDataApiStringFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -97,6 +102,7 @@ public SourceGoogleAnalyticsDataApiStringFilter withMatchType(List> matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = matchType; @@ -109,7 +115,6 @@ public SourceGoogleAnalyticsDataApiStringFilter withValue(String value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +125,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleAnalyticsDataApiStringFilter other = (SourceGoogleAnalyticsDataApiStringFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.matchType, other.matchType) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.matchType, other.matchType) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - matchType, + return Utils.enhancedHash( + caseSensitive, filterName, matchType, value); } @@ -143,19 +146,21 @@ public String toString() { "matchType", matchType, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private Optional> matchType = Optional.empty(); - + private String value; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -168,6 +173,7 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder matchType(List matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = Optional.ofNullable(matchType); @@ -180,19 +186,20 @@ public Builder matchType(Optional _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiToValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiToValue.java index ad4aa2ac6..a230d73b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiToValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiToValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiToValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiToValue other = (SourceGoogleAnalyticsDataApiToValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java index 7e8b94ed8..0804760a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValidEnums.java @@ -20,7 +20,7 @@ public enum SourceGoogleAnalyticsDataApiValidEnums { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiValidEnums(String value) { + SourceGoogleAnalyticsDataApiValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValue.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValue.java index b1b66f4b1..6ab6376d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceGoogleAnalyticsDataApiValue._Deserializer.class) public class SourceGoogleAnalyticsDataApiValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleAnalyticsDataApiValue other = (SourceGoogleAnalyticsDataApiValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java index c3b6ae8d6..61d2ac87d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleAnalyticsDataApiValueType.java @@ -14,7 +14,7 @@ public enum SourceGoogleAnalyticsDataApiValueType { @JsonValue private final String value; - private SourceGoogleAnalyticsDataApiValueType(String value) { + SourceGoogleAnalyticsDataApiValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleCalendar.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleCalendar.java index a0673433c..ea6233768 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleCalendar.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleCalendar.java @@ -11,22 +11,26 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleCalendar { @JsonProperty("calendarid") private String calendarid; + @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token_2") private String clientRefreshToken2; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private GoogleCalendar sourceType; @@ -72,9 +76,10 @@ public GoogleCalendar sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleCalendar withCalendarid(String calendarid) { Utils.checkNotNull(calendarid, "calendarid"); @@ -100,7 +105,6 @@ public SourceGoogleCalendar withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,21 +115,18 @@ public boolean equals(java.lang.Object o) { } SourceGoogleCalendar other = (SourceGoogleCalendar) o; return - Objects.deepEquals(this.calendarid, other.calendarid) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken2, other.clientRefreshToken2) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.calendarid, other.calendarid) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken2, other.clientRefreshToken2) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - calendarid, - clientId, - clientRefreshToken2, - clientSecret, - sourceType); + return Utils.enhancedHash( + calendarid, clientId, clientRefreshToken2, + clientSecret, sourceType); } @Override @@ -137,53 +138,58 @@ public String toString() { "clientSecret", clientSecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String calendarid; - + private String clientId; - + private String clientRefreshToken2; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + public Builder calendarid(String calendarid) { Utils.checkNotNull(calendarid, "calendarid"); this.calendarid = calendarid; return this; } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken2(String clientRefreshToken2) { Utils.checkNotNull(clientRefreshToken2, "clientRefreshToken2"); this.clientRefreshToken2 = clientRefreshToken2; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourceGoogleCalendar build() { + return new SourceGoogleCalendar( - calendarid, - clientId, - clientRefreshToken2, + calendarid, clientId, clientRefreshToken2, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleClassroom.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleClassroom.java index 4b0482db8..b06a06b4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleClassroom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleClassroom.java @@ -11,19 +11,22 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleClassroom { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token") private String clientRefreshToken; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private GoogleClassroom sourceType; @@ -61,9 +64,10 @@ public GoogleClassroom sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleClassroom withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +87,6 @@ public SourceGoogleClassroom withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -94,18 +97,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleClassroom other = (SourceGoogleClassroom) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken, other.clientRefreshToken) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientRefreshToken, - clientSecret, + return Utils.enhancedHash( + clientId, clientRefreshToken, clientSecret, sourceType); } @@ -117,44 +118,48 @@ public String toString() { "clientSecret", clientSecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientRefreshToken; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); this.clientRefreshToken = clientRefreshToken; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourceGoogleClassroom build() { + return new SourceGoogleClassroom( - clientId, - clientRefreshToken, - clientSecret); + clientId, clientRefreshToken, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectory.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectory.java index 50c8d3ee9..65629551b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectory.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectory.java @@ -14,18 +14,21 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleDirectory { +public class SourceGoogleDirectory { /** - * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports <a href="https://developers.google.com/identity/protocols/oauth2#webserver" target="_blank">Web server application</a> and <a href="https://developers.google.com/identity/protocols/oauth2#serviceaccount" target="_blank">Service accounts</a> scenarios. + * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application + * and Service + * accounts scenarios. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; + @JsonProperty("sourceType") private GoogleDirectory sourceType; @@ -42,7 +45,10 @@ public SourceGoogleDirectory() { } /** - * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports <a href="https://developers.google.com/identity/protocols/oauth2#webserver" target="_blank">Web server application</a> and <a href="https://developers.google.com/identity/protocols/oauth2#serviceaccount" target="_blank">Service accounts</a> scenarios. + * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application + * and Service + * accounts scenarios. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -55,12 +61,16 @@ public GoogleDirectory sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports <a href="https://developers.google.com/identity/protocols/oauth2#webserver" target="_blank">Web server application</a> and <a href="https://developers.google.com/identity/protocols/oauth2#serviceaccount" target="_blank">Service accounts</a> scenarios. + * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application + * and Service + * accounts scenarios. */ public SourceGoogleDirectory withCredentials(SourceGoogleDirectoryGoogleCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -68,8 +78,12 @@ public SourceGoogleDirectory withCredentials(SourceGoogleDirectoryGoogleCredenti return this; } + /** - * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports <a href="https://developers.google.com/identity/protocols/oauth2#webserver" target="_blank">Web server application</a> and <a href="https://developers.google.com/identity/protocols/oauth2#serviceaccount" target="_blank">Service accounts</a> scenarios. + * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application + * and Service + * accounts scenarios. */ public SourceGoogleDirectory withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -77,7 +91,6 @@ public SourceGoogleDirectory withCredentials(Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports <a href="https://developers.google.com/identity/protocols/oauth2#webserver" target="_blank">Web server application</a> and <a href="https://developers.google.com/identity/protocols/oauth2#serviceaccount" target="_blank">Service accounts</a> scenarios. + * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application + * and Service + * accounts scenarios. */ public Builder credentials(SourceGoogleDirectoryGoogleCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -124,19 +141,24 @@ public Builder credentials(SourceGoogleDirectoryGoogleCredentials credentials) { } /** - * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports <a href="https://developers.google.com/identity/protocols/oauth2#webserver" target="_blank">Web server application</a> and <a href="https://developers.google.com/identity/protocols/oauth2#serviceaccount" target="_blank">Service accounts</a> scenarios. + * Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application + * and Service + * accounts scenarios. */ public Builder credentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - + public SourceGoogleDirectory build() { + return new SourceGoogleDirectory( credentials); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java index f581c6f8d..bc5c77ff5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryCredentialsTitle.java @@ -19,7 +19,7 @@ public enum SourceGoogleDirectoryCredentialsTitle { @JsonValue private final String value; - private SourceGoogleDirectoryCredentialsTitle(String value) { + SourceGoogleDirectoryCredentialsTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryGoogleCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryGoogleCredentials.java index a96a0d8de..6e5073a0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryGoogleCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectoryGoogleCredentials.java @@ -14,12 +14,14 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGoogleDirectoryGoogleCredentials * - *

    Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports <a href="https://developers.google.com/identity/protocols/oauth2#webserver" target="_blank">Web server application</a> and <a href="https://developers.google.com/identity/protocols/oauth2#serviceaccount" target="_blank">Service accounts</a> scenarios. + *

    Google APIs use the OAuth 2.0 protocol for authentication and authorization. The Source supports Web server application + * and Service + * accounts scenarios. */ @JsonDeserialize(using = SourceGoogleDirectoryGoogleCredentials._Deserializer.class) public class SourceGoogleDirectoryGoogleCredentials { @@ -72,12 +74,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleDirectoryGoogleCredentials other = (SourceGoogleDirectoryGoogleCredentials) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java index a27fd40fd..80cc422a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDirectorySchemasCredentialsTitle.java @@ -19,7 +19,7 @@ public enum SourceGoogleDirectorySchemasCredentialsTitle { @JsonValue private final String value; - private SourceGoogleDirectorySchemasCredentialsTitle(String value) { + SourceGoogleDirectorySchemasCredentialsTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDrive.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDrive.java index e06d76562..f0ff28603 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDrive.java @@ -16,7 +16,6 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -26,35 +25,41 @@ * that are needed when users configure a file-based source. */ public class SourceGoogleDrive { - /** * Credentials for connecting to the Google Drive API */ @JsonProperty("credentials") private SourceGoogleDriveAuthentication credentials; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("delivery_method") private Optional deliveryMethod; /** - * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to only sync a subset of all files located in the folder. + * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to + * only sync a subset of all files located in the folder. */ @JsonProperty("folder_url") private String folderUrl; + @JsonProperty("sourceType") private SourceGoogleDriveGoogleDrive sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonProperty("streams") private List streams; @@ -83,7 +88,8 @@ public SourceGoogleDrive( SourceGoogleDriveAuthentication credentials, String folderUrl, List streams) { - this(credentials, Optional.empty(), folderUrl, Optional.empty(), streams); + this(credentials, Optional.empty(), folderUrl, + Optional.empty(), streams); } /** @@ -101,7 +107,8 @@ public Optional deliveryMethod() { } /** - * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to only sync a subset of all files located in the folder. + * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to + * only sync a subset of all files located in the folder. */ @JsonIgnore public String folderUrl() { @@ -114,7 +121,8 @@ public SourceGoogleDriveGoogleDrive sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonIgnore public Optional startDate() { @@ -122,16 +130,20 @@ public Optional startDate() { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonIgnore public List streams() { return streams; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Credentials for connecting to the Google Drive API @@ -148,6 +160,7 @@ public SourceGoogleDrive withDeliveryMethod(DeliveryMethod deliveryMethod) { return this; } + public SourceGoogleDrive withDeliveryMethod(Optional deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = deliveryMethod; @@ -155,7 +168,8 @@ public SourceGoogleDrive withDeliveryMethod(Optional d } /** - * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to only sync a subset of all files located in the folder. + * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to + * only sync a subset of all files located in the folder. */ public SourceGoogleDrive withFolderUrl(String folderUrl) { Utils.checkNotNull(folderUrl, "folderUrl"); @@ -164,7 +178,8 @@ public SourceGoogleDrive withFolderUrl(String folderUrl) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceGoogleDrive withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -172,8 +187,10 @@ public SourceGoogleDrive withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceGoogleDrive withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -182,7 +199,10 @@ public SourceGoogleDrive withStartDate(Optional startDate) { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public SourceGoogleDrive withStreams(List streams) { Utils.checkNotNull(streams, "streams"); @@ -190,7 +210,6 @@ public SourceGoogleDrive withStreams(List deliveryMethod = Optional.empty(); - + private String folderUrl; - + private Optional startDate = Optional.empty(); - + private List streams; - + private Builder() { // force use of static builder() method } + /** * Credentials for connecting to the Google Drive API */ @@ -256,6 +273,7 @@ public Builder credentials(SourceGoogleDriveAuthentication credentials) { return this; } + public Builder deliveryMethod(DeliveryMethod deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = Optional.ofNullable(deliveryMethod); @@ -268,8 +286,10 @@ public Builder deliveryMethod(Optional deliveryMethod) return this; } + /** - * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to only sync a subset of all files located in the folder. + * URL for the folder you want to sync. Using individual streams and glob patterns, it's possible to + * only sync a subset of all files located in the folder. */ public Builder folderUrl(String folderUrl) { Utils.checkNotNull(folderUrl, "folderUrl"); @@ -277,8 +297,10 @@ public Builder folderUrl(String folderUrl) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -287,7 +309,8 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -295,24 +318,27 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public Builder streams(List streams) { Utils.checkNotNull(streams, "streams"); this.streams = streams; return this; } - + public SourceGoogleDrive build() { + return new SourceGoogleDrive( - credentials, - deliveryMethod, - folderUrl, - startDate, - streams); + credentials, deliveryMethod, folderUrl, + startDate, streams); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java index 156c1207b..84f30cf2d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthType.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveAuthType { @JsonValue private final String value; - private SourceGoogleDriveAuthType(String value) { + SourceGoogleDriveAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthenticateViaGoogleOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthenticateViaGoogleOAuth.java index c7e467c93..5c84efa06 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthenticateViaGoogleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthenticateViaGoogleOAuth.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleDriveAuthenticateViaGoogleOAuth { @JsonInclude(Include.NON_ABSENT) @@ -85,9 +85,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID for the Google Drive API @@ -116,7 +117,6 @@ public SourceGoogleDriveAuthenticateViaGoogleOAuth withRefreshToken(String refre return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,18 +127,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveAuthenticateViaGoogleOAuth other = (SourceGoogleDriveAuthenticateViaGoogleOAuth) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, + return Utils.enhancedHash( + authType, clientId, clientSecret, refreshToken); } @@ -150,19 +148,21 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * Client ID for the Google Drive API */ @@ -172,6 +172,7 @@ public Builder clientId(String clientId) { return this; } + /** * Client Secret for the Google Drive API */ @@ -181,6 +182,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Refresh Token for the Google Drive API */ @@ -189,14 +191,14 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public SourceGoogleDriveAuthenticateViaGoogleOAuth build() { + return new SourceGoogleDriveAuthenticateViaGoogleOAuth( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthentication.java index 1c423c358..a657a09c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGoogleDriveAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleDriveAuthentication other = (SourceGoogleDriveAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAutogenerated.java index a7aa81e14..fa1491b4c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAutogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAutogenerated.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleDriveAutogenerated { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceGoogleDriveAutogenerated { @JsonCreator public SourceGoogleDriveAutogenerated() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionTy return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveAutogenerated other = (SourceGoogleDriveAutogenerated) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceGoogleDriveAutogenerated.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceGoogleDriveAutogenerated build() { + return new SourceGoogleDriveAutogenerated( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAvroFormat.java index 0b30cf36b..953141da0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveAvroFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleDriveAvroFormat { +public class SourceGoogleDriveAvroFormat { /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("double_as_string") private Optional doubleAsString; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceGoogleDriveAvroFormat() { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonIgnore public Optional doubleAsString() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceGoogleDriveAvroFormat withDoubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -70,8 +74,10 @@ public SourceGoogleDriveAvroFormat withDoubleAsString(boolean doubleAsString) { return this; } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceGoogleDriveAvroFormat withDoubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -79,7 +85,6 @@ public SourceGoogleDriveAvroFormat withDoubleAsString(Optional doubleAs return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveAvroFormat other = (SourceGoogleDriveAvroFormat) o; return - Objects.deepEquals(this.doubleAsString, other.doubleAsString) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.doubleAsString, other.doubleAsString) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - doubleAsString, - filetype); + return Utils.enhancedHash( + doubleAsString, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "doubleAsString", doubleAsString, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional doubleAsString; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -126,22 +133,25 @@ public Builder doubleAsString(boolean doubleAsString) { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); this.doubleAsString = doubleAsString; return this; } - + public SourceGoogleDriveAvroFormat build() { if (doubleAsString == null) { doubleAsString = _SINGLETON_VALUE_DoubleAsString.value(); } + return new SourceGoogleDriveAvroFormat( doubleAsString); } + private static final LazySingletonValue> _SINGLETON_VALUE_DoubleAsString = new LazySingletonValue<>( "double_as_string", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java index bd8c0a133..f4c815cce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVFormat.java @@ -17,13 +17,13 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleDriveCSVFormat { +public class SourceGoogleDriveCSVFormat { /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("delimiter") @@ -37,7 +37,9 @@ public class SourceGoogleDriveCSVFormat { private Optional doubleQuote; /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("encoding") @@ -57,26 +59,35 @@ public class SourceGoogleDriveCSVFormat { @JsonProperty("false_values") private Optional> falseValues; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition") private Optional headerDefinition; /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ignore_errors_on_fields_mismatch") private Optional ignoreErrorsOnFieldsMismatch; /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("null_values") @@ -97,14 +108,17 @@ public class SourceGoogleDriveCSVFormat { private Optional skipRowsAfterHeader; /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_rows_before_header") private Optional skipRowsBeforeHeader; /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strings_can_be_null") @@ -162,11 +176,16 @@ public SourceGoogleDriveCSVFormat( } public SourceGoogleDriveCSVFormat() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonIgnore public Optional delimiter() { @@ -182,7 +201,9 @@ public Optional doubleQuote() { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonIgnore public Optional encoding() { @@ -213,7 +234,13 @@ public Optional filetype() { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -222,7 +249,8 @@ public Optional headerDefinition() { } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonIgnore public Optional ignoreErrorsOnFieldsMismatch() { @@ -230,7 +258,8 @@ public Optional ignoreErrorsOnFieldsMismatch() { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -255,7 +284,8 @@ public Optional skipRowsAfterHeader() { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonIgnore public Optional skipRowsBeforeHeader() { @@ -263,7 +293,9 @@ public Optional skipRowsBeforeHeader() { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonIgnore public Optional stringsCanBeNull() { @@ -279,12 +311,14 @@ public Optional> trueValues() { return (Optional>) trueValues; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceGoogleDriveCSVFormat withDelimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -292,8 +326,10 @@ public SourceGoogleDriveCSVFormat withDelimiter(String delimiter) { return this; } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceGoogleDriveCSVFormat withDelimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -310,6 +346,7 @@ public SourceGoogleDriveCSVFormat withDoubleQuote(boolean doubleQuote) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -320,7 +357,9 @@ public SourceGoogleDriveCSVFormat withDoubleQuote(Optional doubleQuote) } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceGoogleDriveCSVFormat withEncoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -328,8 +367,11 @@ public SourceGoogleDriveCSVFormat withEncoding(String encoding) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceGoogleDriveCSVFormat withEncoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -346,6 +388,7 @@ public SourceGoogleDriveCSVFormat withEscapeChar(String escapeChar) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -364,6 +407,7 @@ public SourceGoogleDriveCSVFormat withFalseValues(List falseValues) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -374,7 +418,13 @@ public SourceGoogleDriveCSVFormat withFalseValues(OptionalIf a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceGoogleDriveCSVFormat withHeaderDefinition(SourceGoogleDriveCSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -382,8 +432,15 @@ public SourceGoogleDriveCSVFormat withHeaderDefinition(SourceGoogleDriveCSVHeade return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceGoogleDriveCSVFormat withHeaderDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -392,7 +449,8 @@ public SourceGoogleDriveCSVFormat withHeaderDefinition(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -410,7 +470,8 @@ public SourceGoogleDriveCSVFormat withIgnoreErrorsOnFieldsMismatch(Optional nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -418,8 +479,10 @@ public SourceGoogleDriveCSVFormat withNullValues(List nullValues) { return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public SourceGoogleDriveCSVFormat withNullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -436,6 +499,7 @@ public SourceGoogleDriveCSVFormat withQuoteChar(String quoteChar) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -454,6 +518,7 @@ public SourceGoogleDriveCSVFormat withSkipRowsAfterHeader(long skipRowsAfterHead return this; } + /** * The number of rows to skip after the header row. */ @@ -464,7 +529,8 @@ public SourceGoogleDriveCSVFormat withSkipRowsAfterHeader(Optional skipRow } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceGoogleDriveCSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -472,8 +538,10 @@ public SourceGoogleDriveCSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHe return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceGoogleDriveCSVFormat withSkipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -482,7 +550,9 @@ public SourceGoogleDriveCSVFormat withSkipRowsBeforeHeader(Optional skipRo } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public SourceGoogleDriveCSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -490,8 +560,11 @@ public SourceGoogleDriveCSVFormat withStringsCanBeNull(boolean stringsCanBeNull) return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public SourceGoogleDriveCSVFormat withStringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -508,6 +581,7 @@ public SourceGoogleDriveCSVFormat withTrueValues(List trueValues) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -517,7 +591,6 @@ public SourceGoogleDriveCSVFormat withTrueValues(Optional return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -528,39 +601,30 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveCSVFormat other = (SourceGoogleDriveCSVFormat) o; return - Objects.deepEquals(this.delimiter, other.delimiter) && - Objects.deepEquals(this.doubleQuote, other.doubleQuote) && - Objects.deepEquals(this.encoding, other.encoding) && - Objects.deepEquals(this.escapeChar, other.escapeChar) && - Objects.deepEquals(this.falseValues, other.falseValues) && - Objects.deepEquals(this.filetype, other.filetype) && - Objects.deepEquals(this.headerDefinition, other.headerDefinition) && - Objects.deepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && - Objects.deepEquals(this.nullValues, other.nullValues) && - Objects.deepEquals(this.quoteChar, other.quoteChar) && - Objects.deepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && - Objects.deepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && - Objects.deepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && - Objects.deepEquals(this.trueValues, other.trueValues); + Utils.enhancedDeepEquals(this.delimiter, other.delimiter) && + Utils.enhancedDeepEquals(this.doubleQuote, other.doubleQuote) && + Utils.enhancedDeepEquals(this.encoding, other.encoding) && + Utils.enhancedDeepEquals(this.escapeChar, other.escapeChar) && + Utils.enhancedDeepEquals(this.falseValues, other.falseValues) && + Utils.enhancedDeepEquals(this.filetype, other.filetype) && + Utils.enhancedDeepEquals(this.headerDefinition, other.headerDefinition) && + Utils.enhancedDeepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && + Utils.enhancedDeepEquals(this.nullValues, other.nullValues) && + Utils.enhancedDeepEquals(this.quoteChar, other.quoteChar) && + Utils.enhancedDeepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && + Utils.enhancedDeepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && + Utils.enhancedDeepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && + Utils.enhancedDeepEquals(this.trueValues, other.trueValues); } @Override public int hashCode() { - return Objects.hash( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - filetype, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, - trueValues); + return Utils.enhancedHash( + delimiter, doubleQuote, encoding, + escapeChar, falseValues, filetype, + headerDefinition, ignoreErrorsOnFieldsMismatch, nullValues, + quoteChar, skipRowsAfterHeader, skipRowsBeforeHeader, + stringsCanBeNull, trueValues); } @Override @@ -581,41 +645,44 @@ public String toString() { "stringsCanBeNull", stringsCanBeNull, "trueValues", trueValues); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional delimiter; - + private Optional doubleQuote; - + private Optional encoding; - + private Optional escapeChar = Optional.empty(); - + private Optional> falseValues = Optional.empty(); - + private Optional headerDefinition = Optional.empty(); - + private Optional ignoreErrorsOnFieldsMismatch; - + private Optional> nullValues = Optional.empty(); - + private Optional quoteChar; - + private Optional skipRowsAfterHeader; - + private Optional skipRowsBeforeHeader; - + private Optional stringsCanBeNull; - + private Optional> trueValues = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -624,7 +691,8 @@ public Builder delimiter(String delimiter) { } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -632,6 +700,7 @@ public Builder delimiter(Optional delimiter) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -650,8 +719,11 @@ public Builder doubleQuote(Optional doubleQuote) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -660,7 +732,9 @@ public Builder encoding(String encoding) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -668,6 +742,7 @@ public Builder encoding(Optional encoding) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -686,6 +761,7 @@ public Builder escapeChar(Optional escapeChar) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -704,8 +780,15 @@ public Builder falseValues(Optional> falseValues) { return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(SourceGoogleDriveCSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -714,7 +797,13 @@ public Builder headerDefinition(SourceGoogleDriveCSVHeaderDefinition headerDefin } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -722,8 +811,10 @@ public Builder headerDefinition(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -740,8 +832,10 @@ public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFiel return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -750,7 +844,8 @@ public Builder nullValues(List nullValues) { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -758,6 +853,7 @@ public Builder nullValues(Optional> nullValues) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -776,6 +872,7 @@ public Builder quoteChar(Optional quoteChar) { return this; } + /** * The number of rows to skip after the header row. */ @@ -794,8 +891,10 @@ public Builder skipRowsAfterHeader(Optional skipRowsAfterHeader) { return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -804,7 +903,8 @@ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -812,8 +912,11 @@ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -822,7 +925,9 @@ public Builder stringsCanBeNull(boolean stringsCanBeNull) { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -830,6 +935,7 @@ public Builder stringsCanBeNull(Optional stringsCanBeNull) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -847,7 +953,7 @@ public Builder trueValues(Optional> trueValues) { this.trueValues = trueValues; return this; } - + public SourceGoogleDriveCSVFormat build() { if (delimiter == null) { delimiter = _SINGLETON_VALUE_Delimiter.value(); @@ -873,22 +979,16 @@ public SourceGoogleDriveCSVFormat build() { if (stringsCanBeNull == null) { stringsCanBeNull = _SINGLETON_VALUE_StringsCanBeNull.value(); } + return new SourceGoogleDriveCSVFormat( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, + delimiter, doubleQuote, encoding, + escapeChar, falseValues, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, + skipRowsAfterHeader, skipRowsBeforeHeader, stringsCanBeNull, trueValues); } + private static final LazySingletonValue> _SINGLETON_VALUE_Delimiter = new LazySingletonValue<>( "delimiter", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVHeaderDefinition.java index a63905cb2..e9fd3f901 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveCSVHeaderDefinition.java @@ -14,12 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGoogleDriveCSVHeaderDefinition * - *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonDeserialize(using = SourceGoogleDriveCSVHeaderDefinition._Deserializer.class) public class SourceGoogleDriveCSVHeaderDefinition { @@ -78,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleDriveCSVHeaderDefinition other = (SourceGoogleDriveCSVHeaderDefinition) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDeliveryType.java index a95a05cd1..e9fb592d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveDeliveryType.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveDeliveryType { @JsonValue private final String value; - private SourceGoogleDriveDeliveryType(String value) { + SourceGoogleDriveDeliveryType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveExcelFormat.java index 0b3db1ed2..4069ebfaa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveExcelFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveExcelFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleDriveExcelFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceGoogleDriveExcelFormat { @JsonCreator public SourceGoogleDriveExcelFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveExcelFormat other = (SourceGoogleDriveExcelFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceGoogleDriveExcelFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceGoogleDriveExcelFormat build() { + return new SourceGoogleDriveExcelFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFileBasedStreamConfig.java index c256b003e..e85536e06 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFileBasedStreamConfig.java @@ -17,33 +17,37 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleDriveFileBasedStreamConfig { +public class SourceGoogleDriveFileBasedStreamConfig { /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("days_to_sync_if_history_is_full") private Optional daysToSyncIfHistoryIsFull; /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonProperty("format") private SourceGoogleDriveFormat format; /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("globs") private Optional> globs; /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("input_schema") @@ -70,7 +74,8 @@ public class SourceGoogleDriveFileBasedStreamConfig { private Optional schemaless; /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("validation_policy") @@ -107,11 +112,14 @@ public SourceGoogleDriveFileBasedStreamConfig( public SourceGoogleDriveFileBasedStreamConfig( SourceGoogleDriveFormat format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty(), Optional.empty()); } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonIgnore public Optional daysToSyncIfHistoryIsFull() { @@ -119,7 +127,8 @@ public Optional daysToSyncIfHistoryIsFull() { } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonIgnore public SourceGoogleDriveFormat format() { @@ -127,7 +136,9 @@ public SourceGoogleDriveFormat format() { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -136,7 +147,8 @@ public Optional> globs() { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonIgnore public Optional inputSchema() { @@ -168,7 +180,8 @@ public Optional schemaless() { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -176,12 +189,14 @@ public Optional validationPolicy() { return (Optional) validationPolicy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceGoogleDriveFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -189,8 +204,10 @@ public SourceGoogleDriveFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long return this; } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceGoogleDriveFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -199,7 +216,8 @@ public SourceGoogleDriveFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Opti } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public SourceGoogleDriveFileBasedStreamConfig withFormat(SourceGoogleDriveFormat format) { Utils.checkNotNull(format, "format"); @@ -208,7 +226,9 @@ public SourceGoogleDriveFileBasedStreamConfig withFormat(SourceGoogleDriveFormat } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public SourceGoogleDriveFileBasedStreamConfig withGlobs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -216,8 +236,11 @@ public SourceGoogleDriveFileBasedStreamConfig withGlobs(List globs) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public SourceGoogleDriveFileBasedStreamConfig withGlobs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -226,7 +249,8 @@ public SourceGoogleDriveFileBasedStreamConfig withGlobs(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -261,6 +287,7 @@ public SourceGoogleDriveFileBasedStreamConfig withRecentNFilesToReadForSchemaDis return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -279,6 +306,7 @@ public SourceGoogleDriveFileBasedStreamConfig withSchemaless(boolean schemaless) return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -289,7 +317,8 @@ public SourceGoogleDriveFileBasedStreamConfig withSchemaless(Optional s } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public SourceGoogleDriveFileBasedStreamConfig withValidationPolicy(SourceGoogleDriveValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -297,8 +326,10 @@ public SourceGoogleDriveFileBasedStreamConfig withValidationPolicy(SourceGoogleD return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public SourceGoogleDriveFileBasedStreamConfig withValidationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -306,7 +337,6 @@ public SourceGoogleDriveFileBasedStreamConfig withValidationPolicy(Optional daysToSyncIfHistoryIsFull; - + private SourceGoogleDriveFormat format; - + private Optional> globs = Optional.empty(); - + private Optional inputSchema = Optional.empty(); - + private String name; - + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); - + private Optional schemaless; - + private Optional validationPolicy; - + private Builder() { // force use of static builder() method } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -385,7 +413,8 @@ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -393,8 +422,10 @@ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFul return this; } + /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public Builder format(SourceGoogleDriveFormat format) { Utils.checkNotNull(format, "format"); @@ -402,8 +433,11 @@ public Builder format(SourceGoogleDriveFormat format) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -412,7 +446,9 @@ public Builder globs(List globs) { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -420,8 +456,10 @@ public Builder globs(Optional> globs) { return this; } + /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -430,7 +468,8 @@ public Builder inputSchema(String inputSchema) { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -438,6 +477,7 @@ public Builder inputSchema(Optional inputSchema) { return this; } + /** * The name of the stream. */ @@ -447,6 +487,7 @@ public Builder name(String name) { return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -465,6 +506,7 @@ public Builder recentNFilesToReadForSchemaDiscovery(Optional recentNFilesT return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -483,8 +525,10 @@ public Builder schemaless(Optional schemaless) { return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(SourceGoogleDriveValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -493,14 +537,15 @@ public Builder validationPolicy(SourceGoogleDriveValidationPolicy validationPoli } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); this.validationPolicy = validationPolicy; return this; } - + public SourceGoogleDriveFileBasedStreamConfig build() { if (daysToSyncIfHistoryIsFull == null) { daysToSyncIfHistoryIsFull = _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull.value(); @@ -511,17 +556,14 @@ public SourceGoogleDriveFileBasedStreamConfig build() { if (validationPolicy == null) { validationPolicy = _SINGLETON_VALUE_ValidationPolicy.value(); } + return new SourceGoogleDriveFileBasedStreamConfig( - daysToSyncIfHistoryIsFull, - format, - globs, - inputSchema, - name, - recentNFilesToReadForSchemaDiscovery, - schemaless, - validationPolicy); + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, recentNFilesToReadForSchemaDiscovery, + schemaless, validationPolicy); } + private static final LazySingletonValue> _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull = new LazySingletonValue<>( "days_to_sync_if_history_is_full", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java index 6bf859909..5c5274858 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFiletype.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveFiletype { @JsonValue private final String value; - private SourceGoogleDriveFiletype(String value) { + SourceGoogleDriveFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFormat.java index d8171aeaf..69d537135 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFormat.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGoogleDriveFormat * - *

    The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + *

    The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonDeserialize(using = SourceGoogleDriveFormat._Deserializer.class) public class SourceGoogleDriveFormat { @@ -96,12 +96,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleDriveFormat other = (SourceGoogleDriveFormat) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFromCSV.java index 89784e2c5..3ee20b8a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveFromCSV.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleDriveFromCSV { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceGoogleDriveFromCSV { @JsonCreator public SourceGoogleDriveFromCSV() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionType() { return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveFromCSV other = (SourceGoogleDriveFromCSV) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceGoogleDriveFromCSV.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceGoogleDriveFromCSV build() { + return new SourceGoogleDriveFromCSV( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java index 96a3a1efd..e09b3fe3f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveGoogleDrive.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveGoogleDrive { @JsonValue private final String value; - private SourceGoogleDriveGoogleDrive(String value) { + SourceGoogleDriveGoogleDrive(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveHeaderDefinitionType.java index f99e1195e..bad80f8db 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveHeaderDefinitionType { @JsonValue private final String value; - private SourceGoogleDriveHeaderDefinitionType(String value) { + SourceGoogleDriveHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveJsonlFormat.java index d26d3adbc..abde94a11 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveJsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveJsonlFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleDriveJsonlFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceGoogleDriveJsonlFormat { @JsonCreator public SourceGoogleDriveJsonlFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveJsonlFormat other = (SourceGoogleDriveJsonlFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceGoogleDriveJsonlFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceGoogleDriveJsonlFormat build() { + return new SourceGoogleDriveJsonlFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveLocal.java index 0b142b48c..325b36282 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveLocal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveLocal.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class SourceGoogleDriveLocal { @JsonCreator public SourceGoogleDriveLocal() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveLocal other = (SourceGoogleDriveLocal) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(SourceGoogleDriveLocal.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceGoogleDriveLocal build() { + return new SourceGoogleDriveLocal( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java index e45c4328a..4d90d0932 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveMode.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveMode { @JsonValue private final String value; - private SourceGoogleDriveMode(String value) { + SourceGoogleDriveMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParquetFormat.java index c25d3f0ea..a7684d83a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParquetFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleDriveParquetFormat { +public class SourceGoogleDriveParquetFormat { /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("decimal_as_float") private Optional decimalAsFloat; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceGoogleDriveParquetFormat() { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonIgnore public Optional decimalAsFloat() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceGoogleDriveParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -70,8 +74,10 @@ public SourceGoogleDriveParquetFormat withDecimalAsFloat(boolean decimalAsFloat) return this; } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceGoogleDriveParquetFormat withDecimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -79,7 +85,6 @@ public SourceGoogleDriveParquetFormat withDecimalAsFloat(Optional decim return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveParquetFormat other = (SourceGoogleDriveParquetFormat) o; return - Objects.deepEquals(this.decimalAsFloat, other.decimalAsFloat) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.decimalAsFloat, other.decimalAsFloat) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - decimalAsFloat, - filetype); + return Utils.enhancedHash( + decimalAsFloat, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "decimalAsFloat", decimalAsFloat, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional decimalAsFloat; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -126,22 +133,25 @@ public Builder decimalAsFloat(boolean decimalAsFloat) { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); this.decimalAsFloat = decimalAsFloat; return this; } - + public SourceGoogleDriveParquetFormat build() { if (decimalAsFloat == null) { decimalAsFloat = _SINGLETON_VALUE_DecimalAsFloat.value(); } + return new SourceGoogleDriveParquetFormat( decimalAsFloat); } + private static final LazySingletonValue> _SINGLETON_VALUE_DecimalAsFloat = new LazySingletonValue<>( "decimal_as_float", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java index a473adeb4..b3e1817ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveParsingStrategy.java @@ -11,7 +11,12 @@ /** * SourceGoogleDriveParsingStrategy * - *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public enum SourceGoogleDriveParsingStrategy { AUTO("auto"), @@ -22,7 +27,7 @@ public enum SourceGoogleDriveParsingStrategy { @JsonValue private final String value; - private SourceGoogleDriveParsingStrategy(String value) { + SourceGoogleDriveParsingStrategy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveProcessing.java index 5422df5e5..23fc103b4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveProcessing.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGoogleDriveProcessing @@ -66,12 +65,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleDriveProcessing other = (SourceGoogleDriveProcessing) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java index 01d4d7db4..ec55ce49e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveSchemasAuthType { @JsonValue private final String value; - private SourceGoogleDriveSchemasAuthType(String value) { + SourceGoogleDriveSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasDeliveryType.java index fe788d1f3..0dd731e79 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasDeliveryType.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveSchemasDeliveryType { @JsonValue private final String value; - private SourceGoogleDriveSchemasDeliveryType(String value) { + SourceGoogleDriveSchemasDeliveryType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java index 6bcb10e78..b3d04d429 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasFiletype.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveSchemasFiletype { @JsonValue private final String value; - private SourceGoogleDriveSchemasFiletype(String value) { + SourceGoogleDriveSchemasFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java index 76d140b2e..c90b5195e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveSchemasHeaderDefinitionType { @JsonValue private final String value; - private SourceGoogleDriveSchemasHeaderDefinitionType(String value) { + SourceGoogleDriveSchemasHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java index 8d4eb53b4..4a648564d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFiletype.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveSchemasStreamsFiletype { @JsonValue private final String value; - private SourceGoogleDriveSchemasStreamsFiletype(String value) { + SourceGoogleDriveSchemasStreamsFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java index f44b06bc8..fdf25fa25 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveSchemasStreamsFormatFiletype { @JsonValue private final String value; - private SourceGoogleDriveSchemasStreamsFormatFiletype(String value) { + SourceGoogleDriveSchemasStreamsFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.java index 539291dd4..e8b2bb466 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormat6Filetype.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveSchemasStreamsFormatFormat6Filetype { @JsonValue private final String value; - private SourceGoogleDriveSchemasStreamsFormatFormat6Filetype(String value) { + SourceGoogleDriveSchemasStreamsFormatFormat6Filetype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java index 187b3ef5f..d2d1f708f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsFormatFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveSchemasStreamsFormatFormatFiletype { @JsonValue private final String value; - private SourceGoogleDriveSchemasStreamsFormatFormatFiletype(String value) { + SourceGoogleDriveSchemasStreamsFormatFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java index 1e57316a6..b7a75cc16 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveSchemasStreamsHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceGoogleDriveSchemasStreamsHeaderDefinitionType { @JsonValue private final String value; - private SourceGoogleDriveSchemasStreamsHeaderDefinitionType(String value) { + SourceGoogleDriveSchemasStreamsHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveServiceAccountKeyAuthentication.java index 334d90742..08ef5b9f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveServiceAccountKeyAuthentication.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleDriveServiceAccountKeyAuthentication { @JsonInclude(Include.NON_ABSENT) @@ -24,7 +24,8 @@ public class SourceGoogleDriveServiceAccountKeyAuthentication { private Optional authType; /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ @JsonProperty("service_account_info") private String serviceAccountInfo; @@ -44,19 +45,22 @@ public Optional authType() { } /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ @JsonIgnore public String serviceAccountInfo() { return serviceAccountInfo; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ public SourceGoogleDriveServiceAccountKeyAuthentication withServiceAccountInfo(String serviceAccountInfo) { Utils.checkNotNull(serviceAccountInfo, "serviceAccountInfo"); @@ -64,7 +68,6 @@ public SourceGoogleDriveServiceAccountKeyAuthentication withServiceAccountInfo(S return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +78,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveServiceAccountKeyAuthentication other = (SourceGoogleDriveServiceAccountKeyAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.serviceAccountInfo, other.serviceAccountInfo); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.serviceAccountInfo, other.serviceAccountInfo); } @Override public int hashCode() { - return Objects.hash( - authType, - serviceAccountInfo); + return Utils.enhancedHash( + authType, serviceAccountInfo); } @Override @@ -92,29 +94,34 @@ public String toString() { "authType", authType, "serviceAccountInfo", serviceAccountInfo); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String serviceAccountInfo; - + private Builder() { // force use of static builder() method } + /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ public Builder serviceAccountInfo(String serviceAccountInfo) { Utils.checkNotNull(serviceAccountInfo, "serviceAccountInfo"); this.serviceAccountInfo = serviceAccountInfo; return this; } - + public SourceGoogleDriveServiceAccountKeyAuthentication build() { + return new SourceGoogleDriveServiceAccountKeyAuthentication( serviceAccountInfo); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.java index 6f08d4804..6fc18817b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUnstructuredDocumentFormat.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -37,14 +36,20 @@ public class SourceGoogleDriveUnstructuredDocumentFormat { private Optional processing; /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_unprocessable_files") private Optional skipUnprocessableFiles; /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strategy") @@ -84,7 +89,8 @@ public Optional processing() { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonIgnore public Optional skipUnprocessableFiles() { @@ -92,7 +98,12 @@ public Optional skipUnprocessableFiles() { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @SuppressWarnings("unchecked") @JsonIgnore @@ -100,9 +111,10 @@ public Optional strategy() { return (Optional) strategy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Processing configuration @@ -113,6 +125,7 @@ public SourceGoogleDriveUnstructuredDocumentFormat withProcessing(SourceGoogleDr return this; } + /** * Processing configuration */ @@ -123,7 +136,8 @@ public SourceGoogleDriveUnstructuredDocumentFormat withProcessing(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -141,7 +157,12 @@ public SourceGoogleDriveUnstructuredDocumentFormat withSkipUnprocessableFiles(Op } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceGoogleDriveUnstructuredDocumentFormat withStrategy(SourceGoogleDriveParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -149,8 +170,14 @@ public SourceGoogleDriveUnstructuredDocumentFormat withStrategy(SourceGoogleDriv return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceGoogleDriveUnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -158,7 +185,6 @@ public SourceGoogleDriveUnstructuredDocumentFormat withStrategy(Optional processing = Optional.empty(); - + private Optional skipUnprocessableFiles; - + private Optional strategy; - + private Builder() { // force use of static builder() method } + /** * Processing configuration */ @@ -223,8 +249,10 @@ public Builder processing(Optional proces return this; } + /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -233,7 +261,8 @@ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -241,8 +270,14 @@ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(SourceGoogleDriveParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -251,14 +286,19 @@ public Builder strategy(SourceGoogleDriveParsingStrategy strategy) { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; } - + public SourceGoogleDriveUnstructuredDocumentFormat build() { if (skipUnprocessableFiles == null) { skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); @@ -266,12 +306,12 @@ public SourceGoogleDriveUnstructuredDocumentFormat build() { if (strategy == null) { strategy = _SINGLETON_VALUE_Strategy.value(); } + return new SourceGoogleDriveUnstructuredDocumentFormat( - processing, - skipUnprocessableFiles, - strategy); + processing, skipUnprocessableFiles, strategy); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUserProvided.java index 805f088ce..eb49509ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveUserProvided.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleDriveUserProvided { +public class SourceGoogleDriveUserProvided { /** * The column names that will be used while emitting the CSV records */ @JsonProperty("column_names") private List columnNames; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition_type") private Optional headerDefinitionType; @@ -52,9 +52,10 @@ public Optional headerDefin return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The column names that will be used while emitting the CSV records @@ -65,7 +66,6 @@ public SourceGoogleDriveUserProvided withColumnNames(List columnNames) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -76,15 +76,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleDriveUserProvided other = (SourceGoogleDriveUserProvided) o; return - Objects.deepEquals(this.columnNames, other.columnNames) && - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.columnNames, other.columnNames) && + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( - columnNames, - headerDefinitionType); + return Utils.enhancedHash( + columnNames, headerDefinitionType); } @Override @@ -93,15 +92,17 @@ public String toString() { "columnNames", columnNames, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List columnNames; - + private Builder() { // force use of static builder() method } + /** * The column names that will be used while emitting the CSV records */ @@ -110,12 +111,14 @@ public Builder columnNames(List columnNames) { this.columnNames = columnNames; return this; } - + public SourceGoogleDriveUserProvided build() { + return new SourceGoogleDriveUserProvided( columnNames); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java index 503b4c3b1..bb98ddc66 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleDriveValidationPolicy.java @@ -11,7 +11,8 @@ /** * SourceGoogleDriveValidationPolicy * - *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public enum SourceGoogleDriveValidationPolicy { EMIT_RECORD("Emit Record"), @@ -21,7 +22,7 @@ public enum SourceGoogleDriveValidationPolicy { @JsonValue private final String value; - private SourceGoogleDriveValidationPolicy(String value) { + SourceGoogleDriveValidationPolicy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleForms.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleForms.java index d3ed22aed..a36c321ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleForms.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleForms.java @@ -13,22 +13,26 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class SourceGoogleForms { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token") private String clientRefreshToken; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("form_id") private List formId; + @JsonProperty("sourceType") private GoogleForms sourceType; @@ -74,9 +78,10 @@ public GoogleForms sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleForms withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -102,7 +107,6 @@ public SourceGoogleForms withFormId(List formId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,21 +117,18 @@ public boolean equals(java.lang.Object o) { } SourceGoogleForms other = (SourceGoogleForms) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken, other.clientRefreshToken) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.formId, other.formId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.formId, other.formId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientRefreshToken, - clientSecret, - formId, - sourceType); + return Utils.enhancedHash( + clientId, clientRefreshToken, clientSecret, + formId, sourceType); } @Override @@ -139,53 +140,58 @@ public String toString() { "formId", formId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientRefreshToken; - + private String clientSecret; - + private List formId; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); this.clientRefreshToken = clientRefreshToken; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder formId(List formId) { Utils.checkNotNull(formId, "formId"); this.formId = formId; return this; } - + public SourceGoogleForms build() { + return new SourceGoogleForms( - clientId, - clientRefreshToken, - clientSecret, + clientId, clientRefreshToken, clientSecret, formId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGooglePagespeedInsights.java b/src/main/java/com/airbyte/api/models/shared/SourceGooglePagespeedInsights.java index 4fec0f9eb..a42a1fb32 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGooglePagespeedInsights.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGooglePagespeedInsights.java @@ -14,24 +14,29 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceGooglePagespeedInsights { +public class SourceGooglePagespeedInsights { /** - * Google PageSpeed API Key. See <a href="https://developers.google.com/speed/docs/insights/v5/get-started#APIKey">here</a>. The key is optional - however the API is heavily rate limited when using without API Key. Creating and using the API key therefore is recommended. The key is case sensitive. + * Google PageSpeed API Key. See here. The key is + * optional - however the API is heavily rate limited when using without API Key. + * + *

    Creating and using the API key therefore is recommended. The key is case sensitive. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("api_key") private Optional apiKey; /** - * Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", "performance", "pwa", "seo". + * Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", + * "performance", "pwa", "seo". */ @JsonProperty("categories") private List categories; + @JsonProperty("sourceType") private GooglePagespeedInsights sourceType; @@ -42,7 +47,8 @@ public class SourceGooglePagespeedInsights { private List strategies; /** - * The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed reports for all the defined URLs. Format: https://(www.)url.domain + * The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed + * reports for all the defined URLs. Format: https://(www.)url.domain */ @JsonProperty("urls") private List urls; @@ -68,11 +74,16 @@ public SourceGooglePagespeedInsights( List categories, List strategies, List urls) { - this(Optional.empty(), categories, strategies, urls); + this(Optional.empty(), categories, strategies, + urls); } /** - * Google PageSpeed API Key. See <a href="https://developers.google.com/speed/docs/insights/v5/get-started#APIKey">here</a>. The key is optional - however the API is heavily rate limited when using without API Key. Creating and using the API key therefore is recommended. The key is case sensitive. + * Google PageSpeed API Key. See here. The key is + * optional - however the API is heavily rate limited when using without API Key. + * + *

    Creating and using the API key therefore is recommended. The key is case sensitive. */ @JsonIgnore public Optional apiKey() { @@ -80,7 +91,8 @@ public Optional apiKey() { } /** - * Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", "performance", "pwa", "seo". + * Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", + * "performance", "pwa", "seo". */ @JsonIgnore public List categories() { @@ -101,19 +113,25 @@ public List strategies() { } /** - * The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed reports for all the defined URLs. Format: https://(www.)url.domain + * The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed + * reports for all the defined URLs. Format: https://(www.)url.domain */ @JsonIgnore public List urls() { return urls; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Google PageSpeed API Key. See <a href="https://developers.google.com/speed/docs/insights/v5/get-started#APIKey">here</a>. The key is optional - however the API is heavily rate limited when using without API Key. Creating and using the API key therefore is recommended. The key is case sensitive. + * Google PageSpeed API Key. See here. The key is + * optional - however the API is heavily rate limited when using without API Key. + * + *

    Creating and using the API key therefore is recommended. The key is case sensitive. */ public SourceGooglePagespeedInsights withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -121,8 +139,13 @@ public SourceGooglePagespeedInsights withApiKey(String apiKey) { return this; } + /** - * Google PageSpeed API Key. See <a href="https://developers.google.com/speed/docs/insights/v5/get-started#APIKey">here</a>. The key is optional - however the API is heavily rate limited when using without API Key. Creating and using the API key therefore is recommended. The key is case sensitive. + * Google PageSpeed API Key. See here. The key is + * optional - however the API is heavily rate limited when using without API Key. + * + *

    Creating and using the API key therefore is recommended. The key is case sensitive. */ public SourceGooglePagespeedInsights withApiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -131,7 +154,8 @@ public SourceGooglePagespeedInsights withApiKey(Optional apiKey) { } /** - * Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", "performance", "pwa", "seo". + * Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", + * "performance", "pwa", "seo". */ public SourceGooglePagespeedInsights withCategories(List categories) { Utils.checkNotNull(categories, "categories"); @@ -149,7 +173,8 @@ public SourceGooglePagespeedInsights withStrategies(List strategies) } /** - * The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed reports for all the defined URLs. Format: https://(www.)url.domain + * The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed + * reports for all the defined URLs. Format: https://(www.)url.domain */ public SourceGooglePagespeedInsights withUrls(List urls) { Utils.checkNotNull(urls, "urls"); @@ -157,7 +182,6 @@ public SourceGooglePagespeedInsights withUrls(List urls) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -168,21 +192,18 @@ public boolean equals(java.lang.Object o) { } SourceGooglePagespeedInsights other = (SourceGooglePagespeedInsights) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.categories, other.categories) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.strategies, other.strategies) && - Objects.deepEquals(this.urls, other.urls); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.categories, other.categories) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.strategies, other.strategies) && + Utils.enhancedDeepEquals(this.urls, other.urls); } @Override public int hashCode() { - return Objects.hash( - apiKey, - categories, - sourceType, - strategies, - urls); + return Utils.enhancedHash( + apiKey, categories, sourceType, + strategies, urls); } @Override @@ -194,23 +215,29 @@ public String toString() { "strategies", strategies, "urls", urls); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey = Optional.empty(); - + private List categories; - + private List strategies; - + private List urls; - + private Builder() { // force use of static builder() method } + /** - * Google PageSpeed API Key. See <a href="https://developers.google.com/speed/docs/insights/v5/get-started#APIKey">here</a>. The key is optional - however the API is heavily rate limited when using without API Key. Creating and using the API key therefore is recommended. The key is case sensitive. + * Google PageSpeed API Key. See here. The key is + * optional - however the API is heavily rate limited when using without API Key. + * + *

    Creating and using the API key therefore is recommended. The key is case sensitive. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -219,7 +246,11 @@ public Builder apiKey(String apiKey) { } /** - * Google PageSpeed API Key. See <a href="https://developers.google.com/speed/docs/insights/v5/get-started#APIKey">here</a>. The key is optional - however the API is heavily rate limited when using without API Key. Creating and using the API key therefore is recommended. The key is case sensitive. + * Google PageSpeed API Key. See here. The key is + * optional - however the API is heavily rate limited when using without API Key. + * + *

    Creating and using the API key therefore is recommended. The key is case sensitive. */ public Builder apiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -227,8 +258,10 @@ public Builder apiKey(Optional apiKey) { return this; } + /** - * Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", "performance", "pwa", "seo". + * Defines which Lighthouse category to run. One or many of: "accessibility", "best-practices", + * "performance", "pwa", "seo". */ public Builder categories(List categories) { Utils.checkNotNull(categories, "categories"); @@ -236,6 +269,7 @@ public Builder categories(List categories) { return this; } + /** * The analyses strategy to use. Either "desktop" or "mobile". */ @@ -245,23 +279,25 @@ public Builder strategies(List strategies) { return this; } + /** - * The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed reports for all the defined URLs. Format: https://(www.)url.domain + * The URLs to retrieve pagespeed information from. The connector will attempt to sync PageSpeed + * reports for all the defined URLs. Format: https://(www.)url.domain */ public Builder urls(List urls) { Utils.checkNotNull(urls, "urls"); this.urls = urls; return this; } - + public SourceGooglePagespeedInsights build() { + return new SourceGooglePagespeedInsights( - apiKey, - categories, - strategies, + apiKey, categories, strategies, urls); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsole.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsole.java index 80f1df207..de280c851 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsole.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsole.java @@ -11,18 +11,30 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Long; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.time.LocalDate; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleSearchConsole { + /** + * Some search analytics streams fail with a 400 error if the specified `aggregationType` is not + * supported. This is customer implementation dependent and if this error is encountered, enable this + * setting which will override the existing `aggregationType` to use `auto` which should resolve the + * stream errors. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("always_use_aggregation_type_auto") + private Optional alwaysUseAggregationTypeAuto; + @JsonProperty("authorization") - private AuthenticationType authorization; + private SourceGoogleSearchConsoleAuthenticationType authorization; /** * You can add your Custom Analytics report by creating one. @@ -32,25 +44,44 @@ public class SourceGoogleSearchConsole { private Optional> customReportsArray; /** - * If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our <a href='https://docs.airbyte.com/integrations/source/google-search-console'>full documentation</a>. + * If set to 'final', the returned data will include only finalized, stable data. If set to 'all', + * fresh data will be included. When using Incremental sync mode, we do not recommend setting this + * parameter to 'all' as it may cause data loss. + * + *

    More information can be found in our <a + * href='https://docs.airbyte.com/integrations/source/google-search-console'>full + * documentation</a>. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("data_state") private Optional dataState; /** - * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward. + * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be + * greater or equal to the start date field. + * + *

    Leaving this field blank will replicate all data from the start date onward. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") private Optional endDate; /** - * The URLs of the website property attached to your GSC account. Learn more about properties <a href="https://support.google.com/webmasters/answer/34592?hl=en">here</a>. + * The number of worker threads to use for the sync. For more details on Google Search Console rate + * limits, refer to the docs. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("num_workers") + private Optional numWorkers; + + /** + * The URLs of the website property attached to your GSC account. Learn more about properties here. */ @JsonProperty("site_urls") private List siteUrls; + @JsonProperty("sourceType") private SourceGoogleSearchConsoleGoogleSearchConsole sourceType; @@ -63,35 +94,54 @@ public class SourceGoogleSearchConsole { @JsonCreator public SourceGoogleSearchConsole( - @JsonProperty("authorization") AuthenticationType authorization, + @JsonProperty("always_use_aggregation_type_auto") Optional alwaysUseAggregationTypeAuto, + @JsonProperty("authorization") SourceGoogleSearchConsoleAuthenticationType authorization, @JsonProperty("custom_reports_array") Optional> customReportsArray, @JsonProperty("data_state") Optional dataState, @JsonProperty("end_date") Optional endDate, + @JsonProperty("num_workers") Optional numWorkers, @JsonProperty("site_urls") List siteUrls, @JsonProperty("start_date") Optional startDate) { + Utils.checkNotNull(alwaysUseAggregationTypeAuto, "alwaysUseAggregationTypeAuto"); Utils.checkNotNull(authorization, "authorization"); Utils.checkNotNull(customReportsArray, "customReportsArray"); Utils.checkNotNull(dataState, "dataState"); Utils.checkNotNull(endDate, "endDate"); + Utils.checkNotNull(numWorkers, "numWorkers"); Utils.checkNotNull(siteUrls, "siteUrls"); Utils.checkNotNull(startDate, "startDate"); + this.alwaysUseAggregationTypeAuto = alwaysUseAggregationTypeAuto; this.authorization = authorization; this.customReportsArray = customReportsArray; this.dataState = dataState; this.endDate = endDate; + this.numWorkers = numWorkers; this.siteUrls = siteUrls; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; } public SourceGoogleSearchConsole( - AuthenticationType authorization, + SourceGoogleSearchConsoleAuthenticationType authorization, List siteUrls) { - this(authorization, Optional.empty(), Optional.empty(), Optional.empty(), siteUrls, Optional.empty()); + this(Optional.empty(), authorization, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + siteUrls, Optional.empty()); } + /** + * Some search analytics streams fail with a 400 error if the specified `aggregationType` is not + * supported. This is customer implementation dependent and if this error is encountered, enable this + * setting which will override the existing `aggregationType` to use `auto` which should resolve the + * stream errors. + */ @JsonIgnore - public AuthenticationType authorization() { + public Optional alwaysUseAggregationTypeAuto() { + return alwaysUseAggregationTypeAuto; + } + + @JsonIgnore + public SourceGoogleSearchConsoleAuthenticationType authorization() { return authorization; } @@ -105,7 +155,13 @@ public Optional> customReports } /** - * If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our <a href='https://docs.airbyte.com/integrations/source/google-search-console'>full documentation</a>. + * If set to 'final', the returned data will include only finalized, stable data. If set to 'all', + * fresh data will be included. When using Incremental sync mode, we do not recommend setting this + * parameter to 'all' as it may cause data loss. + * + *

    More information can be found in our <a + * href='https://docs.airbyte.com/integrations/source/google-search-console'>full + * documentation</a>. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -114,7 +170,10 @@ public Optional dataState() { } /** - * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward. + * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be + * greater or equal to the start date field. + * + *

    Leaving this field blank will replicate all data from the start date onward. */ @JsonIgnore public Optional endDate() { @@ -122,7 +181,17 @@ public Optional endDate() { } /** - * The URLs of the website property attached to your GSC account. Learn more about properties <a href="https://support.google.com/webmasters/answer/34592?hl=en">here</a>. + * The number of worker threads to use for the sync. For more details on Google Search Console rate + * limits, refer to the docs. + */ + @JsonIgnore + public Optional numWorkers() { + return numWorkers; + } + + /** + * The URLs of the website property attached to your GSC account. Learn more about properties here. */ @JsonIgnore public List siteUrls() { @@ -142,11 +211,37 @@ public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - public SourceGoogleSearchConsole withAuthorization(AuthenticationType authorization) { + /** + * Some search analytics streams fail with a 400 error if the specified `aggregationType` is not + * supported. This is customer implementation dependent and if this error is encountered, enable this + * setting which will override the existing `aggregationType` to use `auto` which should resolve the + * stream errors. + */ + public SourceGoogleSearchConsole withAlwaysUseAggregationTypeAuto(boolean alwaysUseAggregationTypeAuto) { + Utils.checkNotNull(alwaysUseAggregationTypeAuto, "alwaysUseAggregationTypeAuto"); + this.alwaysUseAggregationTypeAuto = Optional.ofNullable(alwaysUseAggregationTypeAuto); + return this; + } + + + /** + * Some search analytics streams fail with a 400 error if the specified `aggregationType` is not + * supported. This is customer implementation dependent and if this error is encountered, enable this + * setting which will override the existing `aggregationType` to use `auto` which should resolve the + * stream errors. + */ + public SourceGoogleSearchConsole withAlwaysUseAggregationTypeAuto(Optional alwaysUseAggregationTypeAuto) { + Utils.checkNotNull(alwaysUseAggregationTypeAuto, "alwaysUseAggregationTypeAuto"); + this.alwaysUseAggregationTypeAuto = alwaysUseAggregationTypeAuto; + return this; + } + + public SourceGoogleSearchConsole withAuthorization(SourceGoogleSearchConsoleAuthenticationType authorization) { Utils.checkNotNull(authorization, "authorization"); this.authorization = authorization; return this; @@ -161,6 +256,7 @@ public SourceGoogleSearchConsole withCustomReportsArray(ListMore information can be found in our <a + * href='https://docs.airbyte.com/integrations/source/google-search-console'>full + * documentation</a>. */ public SourceGoogleSearchConsole withDataState(DataFreshness dataState) { Utils.checkNotNull(dataState, "dataState"); @@ -179,8 +281,15 @@ public SourceGoogleSearchConsole withDataState(DataFreshness dataState) { return this; } + /** - * If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our <a href='https://docs.airbyte.com/integrations/source/google-search-console'>full documentation</a>. + * If set to 'final', the returned data will include only finalized, stable data. If set to 'all', + * fresh data will be included. When using Incremental sync mode, we do not recommend setting this + * parameter to 'all' as it may cause data loss. + * + *

    More information can be found in our <a + * href='https://docs.airbyte.com/integrations/source/google-search-console'>full + * documentation</a>. */ public SourceGoogleSearchConsole withDataState(Optional dataState) { Utils.checkNotNull(dataState, "dataState"); @@ -189,7 +298,10 @@ public SourceGoogleSearchConsole withDataState(Optional } /** - * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward. + * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be + * greater or equal to the start date field. + * + *

    Leaving this field blank will replicate all data from the start date onward. */ public SourceGoogleSearchConsole withEndDate(LocalDate endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -197,8 +309,12 @@ public SourceGoogleSearchConsole withEndDate(LocalDate endDate) { return this; } + /** - * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward. + * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be + * greater or equal to the start date field. + * + *

    Leaving this field blank will replicate all data from the start date onward. */ public SourceGoogleSearchConsole withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -207,7 +323,29 @@ public SourceGoogleSearchConsole withEndDate(Optional endDate) { } /** - * The URLs of the website property attached to your GSC account. Learn more about properties <a href="https://support.google.com/webmasters/answer/34592?hl=en">here</a>. + * The number of worker threads to use for the sync. For more details on Google Search Console rate + * limits, refer to the docs. + */ + public SourceGoogleSearchConsole withNumWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + + /** + * The number of worker threads to use for the sync. For more details on Google Search Console rate + * limits, refer to the docs. + */ + public SourceGoogleSearchConsole withNumWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + + /** + * The URLs of the website property attached to your GSC account. Learn more about properties here. */ public SourceGoogleSearchConsole withSiteUrls(List siteUrls) { Utils.checkNotNull(siteUrls, "siteUrls"); @@ -224,6 +362,7 @@ public SourceGoogleSearchConsole withStartDate(LocalDate startDate) { return this; } + /** * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. */ @@ -233,7 +372,6 @@ public SourceGoogleSearchConsole withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -244,63 +382,95 @@ public boolean equals(java.lang.Object o) { } SourceGoogleSearchConsole other = (SourceGoogleSearchConsole) o; return - Objects.deepEquals(this.authorization, other.authorization) && - Objects.deepEquals(this.customReportsArray, other.customReportsArray) && - Objects.deepEquals(this.dataState, other.dataState) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.siteUrls, other.siteUrls) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.alwaysUseAggregationTypeAuto, other.alwaysUseAggregationTypeAuto) && + Utils.enhancedDeepEquals(this.authorization, other.authorization) && + Utils.enhancedDeepEquals(this.customReportsArray, other.customReportsArray) && + Utils.enhancedDeepEquals(this.dataState, other.dataState) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.siteUrls, other.siteUrls) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - authorization, - customReportsArray, - dataState, - endDate, - siteUrls, - sourceType, - startDate); + return Utils.enhancedHash( + alwaysUseAggregationTypeAuto, authorization, customReportsArray, + dataState, endDate, numWorkers, + siteUrls, sourceType, startDate); } @Override public String toString() { return Utils.toString(SourceGoogleSearchConsole.class, + "alwaysUseAggregationTypeAuto", alwaysUseAggregationTypeAuto, "authorization", authorization, "customReportsArray", customReportsArray, "dataState", dataState, "endDate", endDate, + "numWorkers", numWorkers, "siteUrls", siteUrls, "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - - private AuthenticationType authorization; - + + private Optional alwaysUseAggregationTypeAuto; + + private SourceGoogleSearchConsoleAuthenticationType authorization; + private Optional> customReportsArray = Optional.empty(); - + private Optional dataState; - + private Optional endDate = Optional.empty(); - + + private Optional numWorkers; + private List siteUrls; - + private Optional startDate; - + private Builder() { // force use of static builder() method } - public Builder authorization(AuthenticationType authorization) { + + /** + * Some search analytics streams fail with a 400 error if the specified `aggregationType` is not + * supported. This is customer implementation dependent and if this error is encountered, enable this + * setting which will override the existing `aggregationType` to use `auto` which should resolve the + * stream errors. + */ + public Builder alwaysUseAggregationTypeAuto(boolean alwaysUseAggregationTypeAuto) { + Utils.checkNotNull(alwaysUseAggregationTypeAuto, "alwaysUseAggregationTypeAuto"); + this.alwaysUseAggregationTypeAuto = Optional.ofNullable(alwaysUseAggregationTypeAuto); + return this; + } + + /** + * Some search analytics streams fail with a 400 error if the specified `aggregationType` is not + * supported. This is customer implementation dependent and if this error is encountered, enable this + * setting which will override the existing `aggregationType` to use `auto` which should resolve the + * stream errors. + */ + public Builder alwaysUseAggregationTypeAuto(Optional alwaysUseAggregationTypeAuto) { + Utils.checkNotNull(alwaysUseAggregationTypeAuto, "alwaysUseAggregationTypeAuto"); + this.alwaysUseAggregationTypeAuto = alwaysUseAggregationTypeAuto; + return this; + } + + + public Builder authorization(SourceGoogleSearchConsoleAuthenticationType authorization) { Utils.checkNotNull(authorization, "authorization"); this.authorization = authorization; return this; } + /** * You can add your Custom Analytics report by creating one. */ @@ -319,8 +489,15 @@ public Builder customReportsArray(OptionalMore information can be found in our <a + * href='https://docs.airbyte.com/integrations/source/google-search-console'>full + * documentation</a>. */ public Builder dataState(DataFreshness dataState) { Utils.checkNotNull(dataState, "dataState"); @@ -329,7 +506,13 @@ public Builder dataState(DataFreshness dataState) { } /** - * If set to 'final', the returned data will include only finalized, stable data. If set to 'all', fresh data will be included. When using Incremental sync mode, we do not recommend setting this parameter to 'all' as it may cause data loss. More information can be found in our <a href='https://docs.airbyte.com/integrations/source/google-search-console'>full documentation</a>. + * If set to 'final', the returned data will include only finalized, stable data. If set to 'all', + * fresh data will be included. When using Incremental sync mode, we do not recommend setting this + * parameter to 'all' as it may cause data loss. + * + *

    More information can be found in our <a + * href='https://docs.airbyte.com/integrations/source/google-search-console'>full + * documentation</a>. */ public Builder dataState(Optional dataState) { Utils.checkNotNull(dataState, "dataState"); @@ -337,8 +520,12 @@ public Builder dataState(Optional dataState) { return this; } + /** - * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward. + * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be + * greater or equal to the start date field. + * + *

    Leaving this field blank will replicate all data from the start date onward. */ public Builder endDate(LocalDate endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -347,7 +534,10 @@ public Builder endDate(LocalDate endDate) { } /** - * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be greater or equal to the start date field. Leaving this field blank will replicate all data from the start date onward. + * UTC date in the format YYYY-MM-DD. Any data created after this date will not be replicated. Must be + * greater or equal to the start date field. + * + *

    Leaving this field blank will replicate all data from the start date onward. */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -355,8 +545,31 @@ public Builder endDate(Optional endDate) { return this; } + + /** + * The number of worker threads to use for the sync. For more details on Google Search Console rate + * limits, refer to the docs. + */ + public Builder numWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + /** + * The number of worker threads to use for the sync. For more details on Google Search Console rate + * limits, refer to the docs. + */ + public Builder numWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + + /** - * The URLs of the website property attached to your GSC account. Learn more about properties <a href="https://support.google.com/webmasters/answer/34592?hl=en">here</a>. + * The URLs of the website property attached to your GSC account. Learn more about properties here. */ public Builder siteUrls(List siteUrls) { Utils.checkNotNull(siteUrls, "siteUrls"); @@ -364,6 +577,7 @@ public Builder siteUrls(List siteUrls) { return this; } + /** * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. */ @@ -381,29 +595,46 @@ public Builder startDate(Optional startDate) { this.startDate = startDate; return this; } - + public SourceGoogleSearchConsole build() { + if (alwaysUseAggregationTypeAuto == null) { + alwaysUseAggregationTypeAuto = _SINGLETON_VALUE_AlwaysUseAggregationTypeAuto.value(); + } if (dataState == null) { dataState = _SINGLETON_VALUE_DataState.value(); } + if (numWorkers == null) { + numWorkers = _SINGLETON_VALUE_NumWorkers.value(); + } if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } + return new SourceGoogleSearchConsole( - authorization, - customReportsArray, - dataState, - endDate, - siteUrls, - startDate); + alwaysUseAggregationTypeAuto, authorization, customReportsArray, + dataState, endDate, numWorkers, + siteUrls, startDate); } + + private static final LazySingletonValue> _SINGLETON_VALUE_AlwaysUseAggregationTypeAuto = + new LazySingletonValue<>( + "always_use_aggregation_type_auto", + "false", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_DataState = new LazySingletonValue<>( "data_state", "\"final\"", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = + new LazySingletonValue<>( + "num_workers", + "40", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java index 8079074e4..cbb166c7c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthType.java @@ -14,7 +14,7 @@ public enum SourceGoogleSearchConsoleAuthType { @JsonValue private final String value; - private SourceGoogleSearchConsoleAuthType(String value) { + SourceGoogleSearchConsoleAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthenticationType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthenticationType.java new file mode 100644 index 000000000..79a5cfa0a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleAuthenticationType.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = SourceGoogleSearchConsoleAuthenticationType._Deserializer.class) +public class SourceGoogleSearchConsoleAuthenticationType { + + @JsonValue + private TypedObject value; + + private SourceGoogleSearchConsoleAuthenticationType(TypedObject value) { + this.value = value; + } + + public static SourceGoogleSearchConsoleAuthenticationType of(SourceGoogleSearchConsoleOAuth value) { + Utils.checkNotNull(value, "value"); + return new SourceGoogleSearchConsoleAuthenticationType(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceGoogleSearchConsoleAuthenticationType of(SourceGoogleSearchConsoleServiceAccountKeyAuthentication value) { + Utils.checkNotNull(value, "value"); + return new SourceGoogleSearchConsoleAuthenticationType(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.SourceGoogleSearchConsoleOAuth}
    • + *
    • {@code com.airbyte.api.models.shared.SourceGoogleSearchConsoleServiceAccountKeyAuthentication}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceGoogleSearchConsoleAuthenticationType other = (SourceGoogleSearchConsoleAuthenticationType) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(SourceGoogleSearchConsoleAuthenticationType.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceGoogleSearchConsoleAuthenticationType.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleCustomReportConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleCustomReportConfig.java index 177858ff2..d2730878d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleCustomReportConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleCustomReportConfig.java @@ -10,12 +10,13 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; -public class SourceGoogleSearchConsoleCustomReportConfig { +public class SourceGoogleSearchConsoleCustomReportConfig { /** - * A list of available dimensions. Please note, that for technical reasons `date` is the default dimension which will be included in your query whether you specify it or not. Primary key will consist of your custom dimensions and the default dimension along with `site_url` and `search_type`. + * A list of available dimensions. Please note, that for technical reasons `date` is the default + * dimension which will be included in your query whether you specify it or not. Primary key will + * consist of your custom dimensions and the default dimension along with `site_url` and `search_type`. */ @JsonProperty("dimensions") private List dimensions; @@ -37,7 +38,9 @@ public SourceGoogleSearchConsoleCustomReportConfig( } /** - * A list of available dimensions. Please note, that for technical reasons `date` is the default dimension which will be included in your query whether you specify it or not. Primary key will consist of your custom dimensions and the default dimension along with `site_url` and `search_type`. + * A list of available dimensions. Please note, that for technical reasons `date` is the default + * dimension which will be included in your query whether you specify it or not. Primary key will + * consist of your custom dimensions and the default dimension along with `site_url` and `search_type`. */ @JsonIgnore public List dimensions() { @@ -52,12 +55,15 @@ public String name() { return name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * A list of available dimensions. Please note, that for technical reasons `date` is the default dimension which will be included in your query whether you specify it or not. Primary key will consist of your custom dimensions and the default dimension along with `site_url` and `search_type`. + * A list of available dimensions. Please note, that for technical reasons `date` is the default + * dimension which will be included in your query whether you specify it or not. Primary key will + * consist of your custom dimensions and the default dimension along with `site_url` and `search_type`. */ public SourceGoogleSearchConsoleCustomReportConfig withDimensions(List dimensions) { Utils.checkNotNull(dimensions, "dimensions"); @@ -74,7 +80,6 @@ public SourceGoogleSearchConsoleCustomReportConfig withName(String name) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -85,15 +90,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleSearchConsoleCustomReportConfig other = (SourceGoogleSearchConsoleCustomReportConfig) o; return - Objects.deepEquals(this.dimensions, other.dimensions) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.dimensions, other.dimensions) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - dimensions, - name); + return Utils.enhancedHash( + dimensions, name); } @Override @@ -102,19 +106,23 @@ public String toString() { "dimensions", dimensions, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List dimensions; - + private String name; - + private Builder() { // force use of static builder() method } + /** - * A list of available dimensions. Please note, that for technical reasons `date` is the default dimension which will be included in your query whether you specify it or not. Primary key will consist of your custom dimensions and the default dimension along with `site_url` and `search_type`. + * A list of available dimensions. Please note, that for technical reasons `date` is the default + * dimension which will be included in your query whether you specify it or not. Primary key will + * consist of your custom dimensions and the default dimension along with `site_url` and `search_type`. */ public Builder dimensions(List dimensions) { Utils.checkNotNull(dimensions, "dimensions"); @@ -122,6 +130,7 @@ public Builder dimensions(List dimensions) return this; } + /** * The name of the custom report, this name would be used as stream name */ @@ -130,11 +139,12 @@ public Builder name(String name) { this.name = name; return this; } - + public SourceGoogleSearchConsoleCustomReportConfig build() { + return new SourceGoogleSearchConsoleCustomReportConfig( - dimensions, - name); + dimensions, name); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java index eaf3dfbe9..e3efd789c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleGoogleSearchConsole.java @@ -14,7 +14,7 @@ public enum SourceGoogleSearchConsoleGoogleSearchConsole { @JsonValue private final String value; - private SourceGoogleSearchConsoleGoogleSearchConsole(String value) { + SourceGoogleSearchConsoleGoogleSearchConsole(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleOAuth.java index c400e32a0..c6cb3d330 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleOAuth.java @@ -13,35 +13,39 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleSearchConsoleOAuth { +public class SourceGoogleSearchConsoleOAuth { /** - * Access token for making authenticated requests. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * Access token for making authenticated requests. Read more here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("access_token") private Optional accessToken; + @JsonProperty("auth_type") private SourceGoogleSearchConsoleAuthType authType; /** - * The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client ID of your Google Search Console developer application. Read more here. */ @JsonProperty("client_id") private String clientId; /** - * The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client secret of your Google Search Console developer application. Read more here. */ @JsonProperty("client_secret") private String clientSecret; /** - * The token for obtaining a new access token. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The token for obtaining a new access token. Read more here. */ @JsonProperty("refresh_token") private String refreshToken; @@ -67,11 +71,13 @@ public SourceGoogleSearchConsoleOAuth( String clientId, String clientSecret, String refreshToken) { - this(Optional.empty(), clientId, clientSecret, refreshToken); + this(Optional.empty(), clientId, clientSecret, + refreshToken); } /** - * Access token for making authenticated requests. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * Access token for making authenticated requests. Read more here. */ @JsonIgnore public Optional accessToken() { @@ -84,7 +90,8 @@ public SourceGoogleSearchConsoleAuthType authType() { } /** - * The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client ID of your Google Search Console developer application. Read more here. */ @JsonIgnore public String clientId() { @@ -92,7 +99,8 @@ public String clientId() { } /** - * The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client secret of your Google Search Console developer application. Read more here. */ @JsonIgnore public String clientSecret() { @@ -100,19 +108,22 @@ public String clientSecret() { } /** - * The token for obtaining a new access token. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The token for obtaining a new access token. Read more here. */ @JsonIgnore public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Access token for making authenticated requests. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * Access token for making authenticated requests. Read more here. */ public SourceGoogleSearchConsoleOAuth withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -120,8 +131,10 @@ public SourceGoogleSearchConsoleOAuth withAccessToken(String accessToken) { return this; } + /** - * Access token for making authenticated requests. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * Access token for making authenticated requests. Read more here. */ public SourceGoogleSearchConsoleOAuth withAccessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -130,7 +143,8 @@ public SourceGoogleSearchConsoleOAuth withAccessToken(Optional accessTok } /** - * The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client ID of your Google Search Console developer application. Read more here. */ public SourceGoogleSearchConsoleOAuth withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -139,7 +153,8 @@ public SourceGoogleSearchConsoleOAuth withClientId(String clientId) { } /** - * The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client secret of your Google Search Console developer application. Read more here. */ public SourceGoogleSearchConsoleOAuth withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -148,7 +163,8 @@ public SourceGoogleSearchConsoleOAuth withClientSecret(String clientSecret) { } /** - * The token for obtaining a new access token. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The token for obtaining a new access token. Read more here. */ public SourceGoogleSearchConsoleOAuth withRefreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -156,7 +172,6 @@ public SourceGoogleSearchConsoleOAuth withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -167,21 +182,18 @@ public boolean equals(java.lang.Object o) { } SourceGoogleSearchConsoleOAuth other = (SourceGoogleSearchConsoleOAuth) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - refreshToken); + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, refreshToken); } @Override @@ -193,23 +205,26 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accessToken = Optional.empty(); - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** - * Access token for making authenticated requests. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * Access token for making authenticated requests. Read more here. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -218,7 +233,8 @@ public Builder accessToken(String accessToken) { } /** - * Access token for making authenticated requests. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * Access token for making authenticated requests. Read more here. */ public Builder accessToken(Optional accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -226,8 +242,10 @@ public Builder accessToken(Optional accessToken) { return this; } + /** - * The client ID of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client ID of your Google Search Console developer application. Read more here. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -235,8 +253,10 @@ public Builder clientId(String clientId) { return this; } + /** - * The client secret of your Google Search Console developer application. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The client secret of your Google Search Console developer application. Read more here. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -244,23 +264,25 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * The token for obtaining a new access token. Read more <a href="https://developers.google.com/webmaster-tools/v1/how-tos/authorizing">here</a>. + * The token for obtaining a new access token. Read more here. */ public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } - + public SourceGoogleSearchConsoleOAuth build() { + return new SourceGoogleSearchConsoleOAuth( - accessToken, - clientId, - clientSecret, + accessToken, clientId, clientSecret, refreshToken); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java index ae67d15ff..bd5eb475a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceGoogleSearchConsoleSchemasAuthType { @JsonValue private final String value; - private SourceGoogleSearchConsoleSchemasAuthType(String value) { + SourceGoogleSearchConsoleSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleServiceAccountKeyAuthentication.java index f0cfa2805..fb2b1cadb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleServiceAccountKeyAuthentication.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleSearchConsoleServiceAccountKeyAuthentication { @@ -25,7 +25,8 @@ public class SourceGoogleSearchConsoleServiceAccountKeyAuthentication { private String email; /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ @JsonProperty("service_account_info") private String serviceAccountInfo; @@ -55,16 +56,18 @@ public String email() { } /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ @JsonIgnore public String serviceAccountInfo() { return serviceAccountInfo; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The email of the user which has permissions to access the Google Workspace Admin APIs. @@ -76,7 +79,8 @@ public SourceGoogleSearchConsoleServiceAccountKeyAuthentication withEmail(String } /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ public SourceGoogleSearchConsoleServiceAccountKeyAuthentication withServiceAccountInfo(String serviceAccountInfo) { Utils.checkNotNull(serviceAccountInfo, "serviceAccountInfo"); @@ -84,7 +88,6 @@ public SourceGoogleSearchConsoleServiceAccountKeyAuthentication withServiceAccou return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +98,15 @@ public boolean equals(java.lang.Object o) { } SourceGoogleSearchConsoleServiceAccountKeyAuthentication other = (SourceGoogleSearchConsoleServiceAccountKeyAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.serviceAccountInfo, other.serviceAccountInfo); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.serviceAccountInfo, other.serviceAccountInfo); } @Override public int hashCode() { - return Objects.hash( - authType, - email, - serviceAccountInfo); + return Utils.enhancedHash( + authType, email, serviceAccountInfo); } @Override @@ -115,17 +116,19 @@ public String toString() { "email", email, "serviceAccountInfo", serviceAccountInfo); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String email; - + private String serviceAccountInfo; - + private Builder() { // force use of static builder() method } + /** * The email of the user which has permissions to access the Google Workspace Admin APIs. */ @@ -135,21 +138,24 @@ public Builder email(String email) { return this; } + /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ public Builder serviceAccountInfo(String serviceAccountInfo) { Utils.checkNotNull(serviceAccountInfo, "serviceAccountInfo"); this.serviceAccountInfo = serviceAccountInfo; return this; } - + public SourceGoogleSearchConsoleServiceAccountKeyAuthentication build() { + return new SourceGoogleSearchConsoleServiceAccountKeyAuthentication( - email, - serviceAccountInfo); + email, serviceAccountInfo); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java index 65dde1cea..359255ab6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSearchConsoleValidEnums.java @@ -23,7 +23,7 @@ public enum SourceGoogleSearchConsoleValidEnums { @JsonValue private final String value; - private SourceGoogleSearchConsoleValidEnums(String value) { + SourceGoogleSearchConsoleValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheets.java index 03a548cdc..3bf9e4316 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheets.java @@ -15,18 +15,52 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.lang.SuppressWarnings; +import java.util.List; import java.util.Optional; + public class SourceGoogleSheets { + /** + * Allows column names to start with numbers. Example: "50th Percentile" → "50_th_percentile" This + * option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is + * enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("allow_leading_numbers") + private Optional allowLeadingNumbers; /** - * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. + * Default value is 1000000. An integer representing row batch size for each sent request to Google + * Sheets API. Row batch size means how many rows are processed from the google sheet, for example + * default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. + * + *

    Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits + * documentation</a>, it is possible to send up to 300 requests per minute, but each individual + * request has to be processed under 180 seconds, otherwise the request returns a timeout error. In + * regards to this information, consider network speed and number of columns of the google sheet when + * deciding a batch_size value. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("batch_size") private Optional batchSize; + /** + * Combines adjacent letters and numbers. Example: "Q3 2023" → "q3_2023" This option will only work if + * "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("combine_letter_number_pairs") + private Optional combineLetterNumberPairs; + + /** + * Combines adjacent numbers and words. Example: "50th Percentile?" → "_50th_percentile_" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("combine_number_word_pairs") + private Optional combineNumberWordPairs; + /** * Credentials for connecting to the Google Sheets API */ @@ -34,52 +68,155 @@ public class SourceGoogleSheets { private SourceGoogleSheetsAuthentication credentials; /** - * Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based. + * Converts column names to a SQL-compliant format (snake_case, lowercase, etc). If enabled, you can + * further customize the sanitization using the options below. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("names_conversion") private Optional namesConversion; + /** + * Removes leading and trailing underscores from column names. Does not remove leading underscores from + * column names that start with a number. Example: "50th Percentile? + * + *

    "→ "_50_th_percentile" This option will only work if "Convert Column Names to SQL-Compliant Format + * (names_conversion)" is enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("remove_leading_trailing_underscores") + private Optional removeLeadingTrailingUnderscores; + + /** + * Removes all special characters from column names. Example: "Example ID*" → "example_id" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("remove_special_characters") + private Optional removeSpecialCharacters; + + @JsonProperty("sourceType") private SourceGoogleSheetsGoogleSheets sourceType; /** - * Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'. + * Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' + * button in the top-right corner of the spreadsheet, then click 'Copy link'. */ @JsonProperty("spreadsheet_id") private String spreadsheetId; + /** + * **Overridden streams will default to Sync Mode: Full Refresh (Append), which does not support + * primary keys. If you want to use primary keys and deduplication, update the sync mode to "Full + * Refresh | Overwrite + Deduped" in your connection settings.** + * Allows you to rename streams (Google Sheet tab names) as they appear in Airbyte. + * Each item should be an object with a `source_stream_name` (the exact name of the sheet/tab in your + * spreadsheet) and a `custom_stream_name` (the name you want it to appear as in Airbyte and the + * destination). + * If a `source_stream_name` is not found in your spreadsheet, it will be ignored and the default name + * will be used. This feature only affects stream (sheet/tab) names, not field/column names. + * If you want to rename fields or column names, you can do so using the Airbyte Mappings feature after + * your connection is created. See the Airbyte documentation for more details on how to use Mappings. + * Examples: + * - To rename a sheet called "Sheet1" to "sales_data", and "2024 Q1" to "q1_2024": + * [ + * { "source_stream_name": "Sheet1", "custom_stream_name": "sales_data" }, + * { "source_stream_name": "2024 Q1", "custom_stream_name": "q1_2024" } + * ] + * - If you do not wish to rename any streams, leave this blank. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("stream_name_overrides") + private Optional> streamNameOverrides; + @JsonCreator public SourceGoogleSheets( + @JsonProperty("allow_leading_numbers") Optional allowLeadingNumbers, @JsonProperty("batch_size") Optional batchSize, + @JsonProperty("combine_letter_number_pairs") Optional combineLetterNumberPairs, + @JsonProperty("combine_number_word_pairs") Optional combineNumberWordPairs, @JsonProperty("credentials") SourceGoogleSheetsAuthentication credentials, @JsonProperty("names_conversion") Optional namesConversion, - @JsonProperty("spreadsheet_id") String spreadsheetId) { + @JsonProperty("remove_leading_trailing_underscores") Optional removeLeadingTrailingUnderscores, + @JsonProperty("remove_special_characters") Optional removeSpecialCharacters, + @JsonProperty("spreadsheet_id") String spreadsheetId, + @JsonProperty("stream_name_overrides") Optional> streamNameOverrides) { + Utils.checkNotNull(allowLeadingNumbers, "allowLeadingNumbers"); Utils.checkNotNull(batchSize, "batchSize"); + Utils.checkNotNull(combineLetterNumberPairs, "combineLetterNumberPairs"); + Utils.checkNotNull(combineNumberWordPairs, "combineNumberWordPairs"); Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(namesConversion, "namesConversion"); + Utils.checkNotNull(removeLeadingTrailingUnderscores, "removeLeadingTrailingUnderscores"); + Utils.checkNotNull(removeSpecialCharacters, "removeSpecialCharacters"); Utils.checkNotNull(spreadsheetId, "spreadsheetId"); + Utils.checkNotNull(streamNameOverrides, "streamNameOverrides"); + this.allowLeadingNumbers = allowLeadingNumbers; this.batchSize = batchSize; + this.combineLetterNumberPairs = combineLetterNumberPairs; + this.combineNumberWordPairs = combineNumberWordPairs; this.credentials = credentials; this.namesConversion = namesConversion; + this.removeLeadingTrailingUnderscores = removeLeadingTrailingUnderscores; + this.removeSpecialCharacters = removeSpecialCharacters; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.spreadsheetId = spreadsheetId; + this.streamNameOverrides = streamNameOverrides; } public SourceGoogleSheets( SourceGoogleSheetsAuthentication credentials, String spreadsheetId) { - this(Optional.empty(), credentials, Optional.empty(), spreadsheetId); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), credentials, Optional.empty(), + Optional.empty(), Optional.empty(), spreadsheetId, + Optional.empty()); + } + + /** + * Allows column names to start with numbers. Example: "50th Percentile" → "50_th_percentile" This + * option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is + * enabled. + */ + @JsonIgnore + public Optional allowLeadingNumbers() { + return allowLeadingNumbers; } /** - * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. + * Default value is 1000000. An integer representing row batch size for each sent request to Google + * Sheets API. Row batch size means how many rows are processed from the google sheet, for example + * default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. + * + *

    Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits + * documentation</a>, it is possible to send up to 300 requests per minute, but each individual + * request has to be processed under 180 seconds, otherwise the request returns a timeout error. In + * regards to this information, consider network speed and number of columns of the google sheet when + * deciding a batch_size value. */ @JsonIgnore public Optional batchSize() { return batchSize; } + /** + * Combines adjacent letters and numbers. Example: "Q3 2023" → "q3_2023" This option will only work if + * "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + @JsonIgnore + public Optional combineLetterNumberPairs() { + return combineLetterNumberPairs; + } + + /** + * Combines adjacent numbers and words. Example: "50th Percentile?" → "_50th_percentile_" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + @JsonIgnore + public Optional combineNumberWordPairs() { + return combineNumberWordPairs; + } + /** * Credentials for connecting to the Google Sheets API */ @@ -89,32 +226,113 @@ public SourceGoogleSheetsAuthentication credentials() { } /** - * Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based. + * Converts column names to a SQL-compliant format (snake_case, lowercase, etc). If enabled, you can + * further customize the sanitization using the options below. */ @JsonIgnore public Optional namesConversion() { return namesConversion; } + /** + * Removes leading and trailing underscores from column names. Does not remove leading underscores from + * column names that start with a number. Example: "50th Percentile? + * + *

    "→ "_50_th_percentile" This option will only work if "Convert Column Names to SQL-Compliant Format + * (names_conversion)" is enabled. + */ + @JsonIgnore + public Optional removeLeadingTrailingUnderscores() { + return removeLeadingTrailingUnderscores; + } + + /** + * Removes all special characters from column names. Example: "Example ID*" → "example_id" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + @JsonIgnore + public Optional removeSpecialCharacters() { + return removeSpecialCharacters; + } + @JsonIgnore public SourceGoogleSheetsGoogleSheets sourceType() { return sourceType; } /** - * Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'. + * Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' + * button in the top-right corner of the spreadsheet, then click 'Copy link'. */ @JsonIgnore public String spreadsheetId() { return spreadsheetId; } - public final static Builder builder() { + /** + * **Overridden streams will default to Sync Mode: Full Refresh (Append), which does not support + * primary keys. If you want to use primary keys and deduplication, update the sync mode to "Full + * Refresh | Overwrite + Deduped" in your connection settings.** + * Allows you to rename streams (Google Sheet tab names) as they appear in Airbyte. + * Each item should be an object with a `source_stream_name` (the exact name of the sheet/tab in your + * spreadsheet) and a `custom_stream_name` (the name you want it to appear as in Airbyte and the + * destination). + * If a `source_stream_name` is not found in your spreadsheet, it will be ignored and the default name + * will be used. This feature only affects stream (sheet/tab) names, not field/column names. + * If you want to rename fields or column names, you can do so using the Airbyte Mappings feature after + * your connection is created. See the Airbyte documentation for more details on how to use Mappings. + * Examples: + * - To rename a sheet called "Sheet1" to "sales_data", and "2024 Q1" to "q1_2024": + * [ + * { "source_stream_name": "Sheet1", "custom_stream_name": "sales_data" }, + * { "source_stream_name": "2024 Q1", "custom_stream_name": "q1_2024" } + * ] + * - If you do not wish to rename any streams, leave this blank. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> streamNameOverrides() { + return (Optional>) streamNameOverrides; + } + + public static Builder builder() { return new Builder(); - } + } + /** - * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. + * Allows column names to start with numbers. Example: "50th Percentile" → "50_th_percentile" This + * option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is + * enabled. + */ + public SourceGoogleSheets withAllowLeadingNumbers(boolean allowLeadingNumbers) { + Utils.checkNotNull(allowLeadingNumbers, "allowLeadingNumbers"); + this.allowLeadingNumbers = Optional.ofNullable(allowLeadingNumbers); + return this; + } + + + /** + * Allows column names to start with numbers. Example: "50th Percentile" → "50_th_percentile" This + * option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is + * enabled. + */ + public SourceGoogleSheets withAllowLeadingNumbers(Optional allowLeadingNumbers) { + Utils.checkNotNull(allowLeadingNumbers, "allowLeadingNumbers"); + this.allowLeadingNumbers = allowLeadingNumbers; + return this; + } + + /** + * Default value is 1000000. An integer representing row batch size for each sent request to Google + * Sheets API. Row batch size means how many rows are processed from the google sheet, for example + * default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. + * + *

    Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits + * documentation</a>, it is possible to send up to 300 requests per minute, but each individual + * request has to be processed under 180 seconds, otherwise the request returns a timeout error. In + * regards to this information, consider network speed and number of columns of the google sheet when + * deciding a batch_size value. */ public SourceGoogleSheets withBatchSize(long batchSize) { Utils.checkNotNull(batchSize, "batchSize"); @@ -122,8 +340,17 @@ public SourceGoogleSheets withBatchSize(long batchSize) { return this; } + /** - * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. + * Default value is 1000000. An integer representing row batch size for each sent request to Google + * Sheets API. Row batch size means how many rows are processed from the google sheet, for example + * default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. + * + *

    Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits + * documentation</a>, it is possible to send up to 300 requests per minute, but each individual + * request has to be processed under 180 seconds, otherwise the request returns a timeout error. In + * regards to this information, consider network speed and number of columns of the google sheet when + * deciding a batch_size value. */ public SourceGoogleSheets withBatchSize(Optional batchSize) { Utils.checkNotNull(batchSize, "batchSize"); @@ -131,6 +358,48 @@ public SourceGoogleSheets withBatchSize(Optional batchSize) { return this; } + /** + * Combines adjacent letters and numbers. Example: "Q3 2023" → "q3_2023" This option will only work if + * "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public SourceGoogleSheets withCombineLetterNumberPairs(boolean combineLetterNumberPairs) { + Utils.checkNotNull(combineLetterNumberPairs, "combineLetterNumberPairs"); + this.combineLetterNumberPairs = Optional.ofNullable(combineLetterNumberPairs); + return this; + } + + + /** + * Combines adjacent letters and numbers. Example: "Q3 2023" → "q3_2023" This option will only work if + * "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public SourceGoogleSheets withCombineLetterNumberPairs(Optional combineLetterNumberPairs) { + Utils.checkNotNull(combineLetterNumberPairs, "combineLetterNumberPairs"); + this.combineLetterNumberPairs = combineLetterNumberPairs; + return this; + } + + /** + * Combines adjacent numbers and words. Example: "50th Percentile?" → "_50th_percentile_" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public SourceGoogleSheets withCombineNumberWordPairs(boolean combineNumberWordPairs) { + Utils.checkNotNull(combineNumberWordPairs, "combineNumberWordPairs"); + this.combineNumberWordPairs = Optional.ofNullable(combineNumberWordPairs); + return this; + } + + + /** + * Combines adjacent numbers and words. Example: "50th Percentile?" → "_50th_percentile_" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public SourceGoogleSheets withCombineNumberWordPairs(Optional combineNumberWordPairs) { + Utils.checkNotNull(combineNumberWordPairs, "combineNumberWordPairs"); + this.combineNumberWordPairs = combineNumberWordPairs; + return this; + } + /** * Credentials for connecting to the Google Sheets API */ @@ -141,7 +410,8 @@ public SourceGoogleSheets withCredentials(SourceGoogleSheetsAuthentication crede } /** - * Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based. + * Converts column names to a SQL-compliant format (snake_case, lowercase, etc). If enabled, you can + * further customize the sanitization using the options below. */ public SourceGoogleSheets withNamesConversion(boolean namesConversion) { Utils.checkNotNull(namesConversion, "namesConversion"); @@ -149,8 +419,10 @@ public SourceGoogleSheets withNamesConversion(boolean namesConversion) { return this; } + /** - * Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based. + * Converts column names to a SQL-compliant format (snake_case, lowercase, etc). If enabled, you can + * further customize the sanitization using the options below. */ public SourceGoogleSheets withNamesConversion(Optional namesConversion) { Utils.checkNotNull(namesConversion, "namesConversion"); @@ -159,7 +431,56 @@ public SourceGoogleSheets withNamesConversion(Optional namesConversion) } /** - * Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'. + * Removes leading and trailing underscores from column names. Does not remove leading underscores from + * column names that start with a number. Example: "50th Percentile? + * + *

    "→ "_50_th_percentile" This option will only work if "Convert Column Names to SQL-Compliant Format + * (names_conversion)" is enabled. + */ + public SourceGoogleSheets withRemoveLeadingTrailingUnderscores(boolean removeLeadingTrailingUnderscores) { + Utils.checkNotNull(removeLeadingTrailingUnderscores, "removeLeadingTrailingUnderscores"); + this.removeLeadingTrailingUnderscores = Optional.ofNullable(removeLeadingTrailingUnderscores); + return this; + } + + + /** + * Removes leading and trailing underscores from column names. Does not remove leading underscores from + * column names that start with a number. Example: "50th Percentile? + * + *

    "→ "_50_th_percentile" This option will only work if "Convert Column Names to SQL-Compliant Format + * (names_conversion)" is enabled. + */ + public SourceGoogleSheets withRemoveLeadingTrailingUnderscores(Optional removeLeadingTrailingUnderscores) { + Utils.checkNotNull(removeLeadingTrailingUnderscores, "removeLeadingTrailingUnderscores"); + this.removeLeadingTrailingUnderscores = removeLeadingTrailingUnderscores; + return this; + } + + /** + * Removes all special characters from column names. Example: "Example ID*" → "example_id" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public SourceGoogleSheets withRemoveSpecialCharacters(boolean removeSpecialCharacters) { + Utils.checkNotNull(removeSpecialCharacters, "removeSpecialCharacters"); + this.removeSpecialCharacters = Optional.ofNullable(removeSpecialCharacters); + return this; + } + + + /** + * Removes all special characters from column names. Example: "Example ID*" → "example_id" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public SourceGoogleSheets withRemoveSpecialCharacters(Optional removeSpecialCharacters) { + Utils.checkNotNull(removeSpecialCharacters, "removeSpecialCharacters"); + this.removeSpecialCharacters = removeSpecialCharacters; + return this; + } + + /** + * Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' + * button in the top-right corner of the spreadsheet, then click 'Copy link'. */ public SourceGoogleSheets withSpreadsheetId(String spreadsheetId) { Utils.checkNotNull(spreadsheetId, "spreadsheetId"); @@ -167,7 +488,59 @@ public SourceGoogleSheets withSpreadsheetId(String spreadsheetId) { return this; } - + /** + * **Overridden streams will default to Sync Mode: Full Refresh (Append), which does not support + * primary keys. If you want to use primary keys and deduplication, update the sync mode to "Full + * Refresh | Overwrite + Deduped" in your connection settings.** + * Allows you to rename streams (Google Sheet tab names) as they appear in Airbyte. + * Each item should be an object with a `source_stream_name` (the exact name of the sheet/tab in your + * spreadsheet) and a `custom_stream_name` (the name you want it to appear as in Airbyte and the + * destination). + * If a `source_stream_name` is not found in your spreadsheet, it will be ignored and the default name + * will be used. This feature only affects stream (sheet/tab) names, not field/column names. + * If you want to rename fields or column names, you can do so using the Airbyte Mappings feature after + * your connection is created. See the Airbyte documentation for more details on how to use Mappings. + * Examples: + * - To rename a sheet called "Sheet1" to "sales_data", and "2024 Q1" to "q1_2024": + * [ + * { "source_stream_name": "Sheet1", "custom_stream_name": "sales_data" }, + * { "source_stream_name": "2024 Q1", "custom_stream_name": "q1_2024" } + * ] + * - If you do not wish to rename any streams, leave this blank. + */ + public SourceGoogleSheets withStreamNameOverrides(List streamNameOverrides) { + Utils.checkNotNull(streamNameOverrides, "streamNameOverrides"); + this.streamNameOverrides = Optional.ofNullable(streamNameOverrides); + return this; + } + + + /** + * **Overridden streams will default to Sync Mode: Full Refresh (Append), which does not support + * primary keys. If you want to use primary keys and deduplication, update the sync mode to "Full + * Refresh | Overwrite + Deduped" in your connection settings.** + * Allows you to rename streams (Google Sheet tab names) as they appear in Airbyte. + * Each item should be an object with a `source_stream_name` (the exact name of the sheet/tab in your + * spreadsheet) and a `custom_stream_name` (the name you want it to appear as in Airbyte and the + * destination). + * If a `source_stream_name` is not found in your spreadsheet, it will be ignored and the default name + * will be used. This feature only affects stream (sheet/tab) names, not field/column names. + * If you want to rename fields or column names, you can do so using the Airbyte Mappings feature after + * your connection is created. See the Airbyte documentation for more details on how to use Mappings. + * Examples: + * - To rename a sheet called "Sheet1" to "sales_data", and "2024 Q1" to "q1_2024": + * [ + * { "source_stream_name": "Sheet1", "custom_stream_name": "sales_data" }, + * { "source_stream_name": "2024 Q1", "custom_stream_name": "q1_2024" } + * ] + * - If you do not wish to rename any streams, leave this blank. + */ + public SourceGoogleSheets withStreamNameOverrides(Optional> streamNameOverrides) { + Utils.checkNotNull(streamNameOverrides, "streamNameOverrides"); + this.streamNameOverrides = streamNameOverrides; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -178,49 +551,105 @@ public boolean equals(java.lang.Object o) { } SourceGoogleSheets other = (SourceGoogleSheets) o; return - Objects.deepEquals(this.batchSize, other.batchSize) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.namesConversion, other.namesConversion) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.spreadsheetId, other.spreadsheetId); + Utils.enhancedDeepEquals(this.allowLeadingNumbers, other.allowLeadingNumbers) && + Utils.enhancedDeepEquals(this.batchSize, other.batchSize) && + Utils.enhancedDeepEquals(this.combineLetterNumberPairs, other.combineLetterNumberPairs) && + Utils.enhancedDeepEquals(this.combineNumberWordPairs, other.combineNumberWordPairs) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.namesConversion, other.namesConversion) && + Utils.enhancedDeepEquals(this.removeLeadingTrailingUnderscores, other.removeLeadingTrailingUnderscores) && + Utils.enhancedDeepEquals(this.removeSpecialCharacters, other.removeSpecialCharacters) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.spreadsheetId, other.spreadsheetId) && + Utils.enhancedDeepEquals(this.streamNameOverrides, other.streamNameOverrides); } @Override public int hashCode() { - return Objects.hash( - batchSize, - credentials, - namesConversion, - sourceType, - spreadsheetId); + return Utils.enhancedHash( + allowLeadingNumbers, batchSize, combineLetterNumberPairs, + combineNumberWordPairs, credentials, namesConversion, + removeLeadingTrailingUnderscores, removeSpecialCharacters, sourceType, + spreadsheetId, streamNameOverrides); } @Override public String toString() { return Utils.toString(SourceGoogleSheets.class, + "allowLeadingNumbers", allowLeadingNumbers, "batchSize", batchSize, + "combineLetterNumberPairs", combineLetterNumberPairs, + "combineNumberWordPairs", combineNumberWordPairs, "credentials", credentials, "namesConversion", namesConversion, + "removeLeadingTrailingUnderscores", removeLeadingTrailingUnderscores, + "removeSpecialCharacters", removeSpecialCharacters, "sourceType", sourceType, - "spreadsheetId", spreadsheetId); + "spreadsheetId", spreadsheetId, + "streamNameOverrides", streamNameOverrides); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Optional allowLeadingNumbers; + private Optional batchSize; - + + private Optional combineLetterNumberPairs; + + private Optional combineNumberWordPairs; + private SourceGoogleSheetsAuthentication credentials; - + private Optional namesConversion; - + + private Optional removeLeadingTrailingUnderscores; + + private Optional removeSpecialCharacters; + private String spreadsheetId; - + + private Optional> streamNameOverrides = Optional.empty(); + private Builder() { // force use of static builder() method } + /** - * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. + * Allows column names to start with numbers. Example: "50th Percentile" → "50_th_percentile" This + * option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is + * enabled. + */ + public Builder allowLeadingNumbers(boolean allowLeadingNumbers) { + Utils.checkNotNull(allowLeadingNumbers, "allowLeadingNumbers"); + this.allowLeadingNumbers = Optional.ofNullable(allowLeadingNumbers); + return this; + } + + /** + * Allows column names to start with numbers. Example: "50th Percentile" → "50_th_percentile" This + * option will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is + * enabled. + */ + public Builder allowLeadingNumbers(Optional allowLeadingNumbers) { + Utils.checkNotNull(allowLeadingNumbers, "allowLeadingNumbers"); + this.allowLeadingNumbers = allowLeadingNumbers; + return this; + } + + + /** + * Default value is 1000000. An integer representing row batch size for each sent request to Google + * Sheets API. Row batch size means how many rows are processed from the google sheet, for example + * default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. + * + *

    Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits + * documentation</a>, it is possible to send up to 300 requests per minute, but each individual + * request has to be processed under 180 seconds, otherwise the request returns a timeout error. In + * regards to this information, consider network speed and number of columns of the google sheet when + * deciding a batch_size value. */ public Builder batchSize(long batchSize) { Utils.checkNotNull(batchSize, "batchSize"); @@ -229,7 +658,15 @@ public Builder batchSize(long batchSize) { } /** - * Default value is 1000000. An integer representing row batch size for each sent request to Google Sheets API. Row batch size means how many rows are processed from the google sheet, for example default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits documentation</a>, it is possible to send up to 300 requests per minute, but each individual request has to be processed under 180 seconds, otherwise the request returns a timeout error. In regards to this information, consider network speed and number of columns of the google sheet when deciding a batch_size value. + * Default value is 1000000. An integer representing row batch size for each sent request to Google + * Sheets API. Row batch size means how many rows are processed from the google sheet, for example + * default value 1000000 would process rows 2-1000002, then 1000003-2000003 and so on. + * + *

    Based on <a href='https://developers.google.com/sheets/api/limits'>Google Sheets API limits + * documentation</a>, it is possible to send up to 300 requests per minute, but each individual + * request has to be processed under 180 seconds, otherwise the request returns a timeout error. In + * regards to this information, consider network speed and number of columns of the google sheet when + * deciding a batch_size value. */ public Builder batchSize(Optional batchSize) { Utils.checkNotNull(batchSize, "batchSize"); @@ -237,6 +674,49 @@ public Builder batchSize(Optional batchSize) { return this; } + + /** + * Combines adjacent letters and numbers. Example: "Q3 2023" → "q3_2023" This option will only work if + * "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public Builder combineLetterNumberPairs(boolean combineLetterNumberPairs) { + Utils.checkNotNull(combineLetterNumberPairs, "combineLetterNumberPairs"); + this.combineLetterNumberPairs = Optional.ofNullable(combineLetterNumberPairs); + return this; + } + + /** + * Combines adjacent letters and numbers. Example: "Q3 2023" → "q3_2023" This option will only work if + * "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public Builder combineLetterNumberPairs(Optional combineLetterNumberPairs) { + Utils.checkNotNull(combineLetterNumberPairs, "combineLetterNumberPairs"); + this.combineLetterNumberPairs = combineLetterNumberPairs; + return this; + } + + + /** + * Combines adjacent numbers and words. Example: "50th Percentile?" → "_50th_percentile_" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public Builder combineNumberWordPairs(boolean combineNumberWordPairs) { + Utils.checkNotNull(combineNumberWordPairs, "combineNumberWordPairs"); + this.combineNumberWordPairs = Optional.ofNullable(combineNumberWordPairs); + return this; + } + + /** + * Combines adjacent numbers and words. Example: "50th Percentile?" → "_50th_percentile_" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public Builder combineNumberWordPairs(Optional combineNumberWordPairs) { + Utils.checkNotNull(combineNumberWordPairs, "combineNumberWordPairs"); + this.combineNumberWordPairs = combineNumberWordPairs; + return this; + } + + /** * Credentials for connecting to the Google Sheets API */ @@ -246,8 +726,10 @@ public Builder credentials(SourceGoogleSheetsAuthentication credentials) { return this; } + /** - * Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based. + * Converts column names to a SQL-compliant format (snake_case, lowercase, etc). If enabled, you can + * further customize the sanitization using the options below. */ public Builder namesConversion(boolean namesConversion) { Utils.checkNotNull(namesConversion, "namesConversion"); @@ -256,7 +738,8 @@ public Builder namesConversion(boolean namesConversion) { } /** - * Enables the conversion of column names to a standardized, SQL-compliant format. For example, 'My Name' -> 'my_name'. Enable this option if your destination is SQL-based. + * Converts column names to a SQL-compliant format (snake_case, lowercase, etc). If enabled, you can + * further customize the sanitization using the options below. */ public Builder namesConversion(Optional namesConversion) { Utils.checkNotNull(namesConversion, "namesConversion"); @@ -264,41 +747,191 @@ public Builder namesConversion(Optional namesConversion) { return this; } + + /** + * Removes leading and trailing underscores from column names. Does not remove leading underscores from + * column names that start with a number. Example: "50th Percentile? + * + *

    "→ "_50_th_percentile" This option will only work if "Convert Column Names to SQL-Compliant Format + * (names_conversion)" is enabled. + */ + public Builder removeLeadingTrailingUnderscores(boolean removeLeadingTrailingUnderscores) { + Utils.checkNotNull(removeLeadingTrailingUnderscores, "removeLeadingTrailingUnderscores"); + this.removeLeadingTrailingUnderscores = Optional.ofNullable(removeLeadingTrailingUnderscores); + return this; + } + + /** + * Removes leading and trailing underscores from column names. Does not remove leading underscores from + * column names that start with a number. Example: "50th Percentile? + * + *

    "→ "_50_th_percentile" This option will only work if "Convert Column Names to SQL-Compliant Format + * (names_conversion)" is enabled. + */ + public Builder removeLeadingTrailingUnderscores(Optional removeLeadingTrailingUnderscores) { + Utils.checkNotNull(removeLeadingTrailingUnderscores, "removeLeadingTrailingUnderscores"); + this.removeLeadingTrailingUnderscores = removeLeadingTrailingUnderscores; + return this; + } + + + /** + * Removes all special characters from column names. Example: "Example ID*" → "example_id" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public Builder removeSpecialCharacters(boolean removeSpecialCharacters) { + Utils.checkNotNull(removeSpecialCharacters, "removeSpecialCharacters"); + this.removeSpecialCharacters = Optional.ofNullable(removeSpecialCharacters); + return this; + } + + /** + * Removes all special characters from column names. Example: "Example ID*" → "example_id" This option + * will only work if "Convert Column Names to SQL-Compliant Format (names_conversion)" is enabled. + */ + public Builder removeSpecialCharacters(Optional removeSpecialCharacters) { + Utils.checkNotNull(removeSpecialCharacters, "removeSpecialCharacters"); + this.removeSpecialCharacters = removeSpecialCharacters; + return this; + } + + /** - * Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' button in the top-right corner of the spreadsheet, then click 'Copy link'. + * Enter the link to the Google spreadsheet you want to sync. To copy the link, click the 'Share' + * button in the top-right corner of the spreadsheet, then click 'Copy link'. */ public Builder spreadsheetId(String spreadsheetId) { Utils.checkNotNull(spreadsheetId, "spreadsheetId"); this.spreadsheetId = spreadsheetId; return this; } - + + + /** + * **Overridden streams will default to Sync Mode: Full Refresh (Append), which does not support + * primary keys. If you want to use primary keys and deduplication, update the sync mode to "Full + * Refresh | Overwrite + Deduped" in your connection settings.** + * Allows you to rename streams (Google Sheet tab names) as they appear in Airbyte. + * Each item should be an object with a `source_stream_name` (the exact name of the sheet/tab in your + * spreadsheet) and a `custom_stream_name` (the name you want it to appear as in Airbyte and the + * destination). + * If a `source_stream_name` is not found in your spreadsheet, it will be ignored and the default name + * will be used. This feature only affects stream (sheet/tab) names, not field/column names. + * If you want to rename fields or column names, you can do so using the Airbyte Mappings feature after + * your connection is created. See the Airbyte documentation for more details on how to use Mappings. + * Examples: + * - To rename a sheet called "Sheet1" to "sales_data", and "2024 Q1" to "q1_2024": + * [ + * { "source_stream_name": "Sheet1", "custom_stream_name": "sales_data" }, + * { "source_stream_name": "2024 Q1", "custom_stream_name": "q1_2024" } + * ] + * - If you do not wish to rename any streams, leave this blank. + */ + public Builder streamNameOverrides(List streamNameOverrides) { + Utils.checkNotNull(streamNameOverrides, "streamNameOverrides"); + this.streamNameOverrides = Optional.ofNullable(streamNameOverrides); + return this; + } + + /** + * **Overridden streams will default to Sync Mode: Full Refresh (Append), which does not support + * primary keys. If you want to use primary keys and deduplication, update the sync mode to "Full + * Refresh | Overwrite + Deduped" in your connection settings.** + * Allows you to rename streams (Google Sheet tab names) as they appear in Airbyte. + * Each item should be an object with a `source_stream_name` (the exact name of the sheet/tab in your + * spreadsheet) and a `custom_stream_name` (the name you want it to appear as in Airbyte and the + * destination). + * If a `source_stream_name` is not found in your spreadsheet, it will be ignored and the default name + * will be used. This feature only affects stream (sheet/tab) names, not field/column names. + * If you want to rename fields or column names, you can do so using the Airbyte Mappings feature after + * your connection is created. See the Airbyte documentation for more details on how to use Mappings. + * Examples: + * - To rename a sheet called "Sheet1" to "sales_data", and "2024 Q1" to "q1_2024": + * [ + * { "source_stream_name": "Sheet1", "custom_stream_name": "sales_data" }, + * { "source_stream_name": "2024 Q1", "custom_stream_name": "q1_2024" } + * ] + * - If you do not wish to rename any streams, leave this blank. + */ + public Builder streamNameOverrides(Optional> streamNameOverrides) { + Utils.checkNotNull(streamNameOverrides, "streamNameOverrides"); + this.streamNameOverrides = streamNameOverrides; + return this; + } + public SourceGoogleSheets build() { + if (allowLeadingNumbers == null) { + allowLeadingNumbers = _SINGLETON_VALUE_AllowLeadingNumbers.value(); + } if (batchSize == null) { batchSize = _SINGLETON_VALUE_BatchSize.value(); } + if (combineLetterNumberPairs == null) { + combineLetterNumberPairs = _SINGLETON_VALUE_CombineLetterNumberPairs.value(); + } + if (combineNumberWordPairs == null) { + combineNumberWordPairs = _SINGLETON_VALUE_CombineNumberWordPairs.value(); + } if (namesConversion == null) { namesConversion = _SINGLETON_VALUE_NamesConversion.value(); } + if (removeLeadingTrailingUnderscores == null) { + removeLeadingTrailingUnderscores = _SINGLETON_VALUE_RemoveLeadingTrailingUnderscores.value(); + } + if (removeSpecialCharacters == null) { + removeSpecialCharacters = _SINGLETON_VALUE_RemoveSpecialCharacters.value(); + } + return new SourceGoogleSheets( - batchSize, - credentials, - namesConversion, - spreadsheetId); + allowLeadingNumbers, batchSize, combineLetterNumberPairs, + combineNumberWordPairs, credentials, namesConversion, + removeLeadingTrailingUnderscores, removeSpecialCharacters, spreadsheetId, + streamNameOverrides); } + + private static final LazySingletonValue> _SINGLETON_VALUE_AllowLeadingNumbers = + new LazySingletonValue<>( + "allow_leading_numbers", + "false", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_BatchSize = new LazySingletonValue<>( "batch_size", "1000000", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_CombineLetterNumberPairs = + new LazySingletonValue<>( + "combine_letter_number_pairs", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_CombineNumberWordPairs = + new LazySingletonValue<>( + "combine_number_word_pairs", + "false", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_NamesConversion = new LazySingletonValue<>( "names_conversion", "false", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_RemoveLeadingTrailingUnderscores = + new LazySingletonValue<>( + "remove_leading_trailing_underscores", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_RemoveSpecialCharacters = + new LazySingletonValue<>( + "remove_special_characters", + "false", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java index c3c7a05f6..eea67b3fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthType.java @@ -14,7 +14,7 @@ public enum SourceGoogleSheetsAuthType { @JsonValue private final String value; - private SourceGoogleSheetsAuthType(String value) { + SourceGoogleSheetsAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthenticateViaGoogleOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthenticateViaGoogleOAuth.java index 268a21bc0..0bae518f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthenticateViaGoogleOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthenticateViaGoogleOAuth.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleSheetsAuthenticateViaGoogleOAuth { @@ -19,19 +19,25 @@ public class SourceGoogleSheetsAuthenticateViaGoogleOAuth { private SourceGoogleSheetsAuthType authType; /** - * Enter your Google application's Client ID. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client ID. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ @JsonProperty("client_id") private String clientId; /** - * Enter your Google application's Client Secret. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client Secret. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ @JsonProperty("client_secret") private String clientSecret; /** - * Enter your Google application's refresh token. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's refresh token. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ @JsonProperty("refresh_token") private String refreshToken; @@ -56,7 +62,9 @@ public SourceGoogleSheetsAuthType authType() { } /** - * Enter your Google application's Client ID. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client ID. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ @JsonIgnore public String clientId() { @@ -64,7 +72,9 @@ public String clientId() { } /** - * Enter your Google application's Client Secret. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client Secret. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ @JsonIgnore public String clientSecret() { @@ -72,19 +82,24 @@ public String clientSecret() { } /** - * Enter your Google application's refresh token. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's refresh token. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ @JsonIgnore public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Enter your Google application's Client ID. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client ID. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public SourceGoogleSheetsAuthenticateViaGoogleOAuth withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -93,7 +108,9 @@ public SourceGoogleSheetsAuthenticateViaGoogleOAuth withClientId(String clientId } /** - * Enter your Google application's Client Secret. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client Secret. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public SourceGoogleSheetsAuthenticateViaGoogleOAuth withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -102,7 +119,9 @@ public SourceGoogleSheetsAuthenticateViaGoogleOAuth withClientSecret(String clie } /** - * Enter your Google application's refresh token. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's refresh token. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public SourceGoogleSheetsAuthenticateViaGoogleOAuth withRefreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -110,7 +129,6 @@ public SourceGoogleSheetsAuthenticateViaGoogleOAuth withRefreshToken(String refr return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +139,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleSheetsAuthenticateViaGoogleOAuth other = (SourceGoogleSheetsAuthenticateViaGoogleOAuth) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, + return Utils.enhancedHash( + authType, clientId, clientSecret, refreshToken); } @@ -144,21 +160,25 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** - * Enter your Google application's Client ID. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client ID. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -166,8 +186,11 @@ public Builder clientId(String clientId) { return this; } + /** - * Enter your Google application's Client Secret. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's Client Secret. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -175,22 +198,25 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * Enter your Google application's refresh token. See <a href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> for more information. + * Enter your Google application's refresh token. See <a + * href='https://developers.google.com/identity/protocols/oauth2'>Google's documentation</a> + * for more information. */ public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } - + public SourceGoogleSheetsAuthenticateViaGoogleOAuth build() { + return new SourceGoogleSheetsAuthenticateViaGoogleOAuth( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthentication.java index a6bc7b692..b04d17e9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceGoogleSheetsAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceGoogleSheetsAuthentication other = (SourceGoogleSheetsAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java index 791615c84..ba6dad112 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsGoogleSheets.java @@ -14,7 +14,7 @@ public enum SourceGoogleSheetsGoogleSheets { @JsonValue private final String value; - private SourceGoogleSheetsGoogleSheets(String value) { + SourceGoogleSheetsGoogleSheets(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsSchemasAuthType.java index 4fc12340d..522af85cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceGoogleSheetsSchemasAuthType { @JsonValue private final String value; - private SourceGoogleSheetsSchemasAuthType(String value) { + SourceGoogleSheetsSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsServiceAccountKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsServiceAccountKeyAuthentication.java index d4bd5f967..c0906c556 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsServiceAccountKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleSheetsServiceAccountKeyAuthentication.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGoogleSheetsServiceAccountKeyAuthentication { @@ -19,7 +19,8 @@ public class SourceGoogleSheetsServiceAccountKeyAuthentication { private SourceGoogleSheetsSchemasAuthType authType; /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ @JsonProperty("service_account_info") private String serviceAccountInfo; @@ -38,19 +39,22 @@ public SourceGoogleSheetsSchemasAuthType authType() { } /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ @JsonIgnore public String serviceAccountInfo() { return serviceAccountInfo; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ public SourceGoogleSheetsServiceAccountKeyAuthentication withServiceAccountInfo(String serviceAccountInfo) { Utils.checkNotNull(serviceAccountInfo, "serviceAccountInfo"); @@ -58,7 +62,6 @@ public SourceGoogleSheetsServiceAccountKeyAuthentication withServiceAccountInfo( return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceGoogleSheetsServiceAccountKeyAuthentication other = (SourceGoogleSheetsServiceAccountKeyAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.serviceAccountInfo, other.serviceAccountInfo); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.serviceAccountInfo, other.serviceAccountInfo); } @Override public int hashCode() { - return Objects.hash( - authType, - serviceAccountInfo); + return Utils.enhancedHash( + authType, serviceAccountInfo); } @Override @@ -86,29 +88,34 @@ public String toString() { "authType", authType, "serviceAccountInfo", serviceAccountInfo); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String serviceAccountInfo; - + private Builder() { // force use of static builder() method } + /** - * The JSON key of the service account to use for authorization. Read more <a href="https://cloud.google.com/iam/docs/creating-managing-service-account-keys#creating_service_account_keys">here</a>. + * The JSON key of the service account to use for authorization. Read more here. */ public Builder serviceAccountInfo(String serviceAccountInfo) { Utils.checkNotNull(serviceAccountInfo, "serviceAccountInfo"); this.serviceAccountInfo = serviceAccountInfo; return this; } - + public SourceGoogleSheetsServiceAccountKeyAuthentication build() { + return new SourceGoogleSheetsServiceAccountKeyAuthentication( serviceAccountInfo); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleTasks.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleTasks.java index b0bc01fa6..ff2cb3145 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleTasks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleTasks.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceGoogleTasks { @JsonProperty("api_key") @@ -29,9 +29,11 @@ public class SourceGoogleTasks { @JsonProperty("records_limit") private Optional recordsLimit; + @JsonProperty("sourceType") private GoogleTasks sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -78,9 +80,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGoogleTasks withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -97,6 +100,7 @@ public SourceGoogleTasks withRecordsLimit(String recordsLimit) { return this; } + /** * The maximum number of records to be returned per request */ @@ -112,7 +116,6 @@ public SourceGoogleTasks withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -123,18 +126,16 @@ public boolean equals(java.lang.Object o) { } SourceGoogleTasks other = (SourceGoogleTasks) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.recordsLimit, other.recordsLimit) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.recordsLimit, other.recordsLimit) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - recordsLimit, - sourceType, + return Utils.enhancedHash( + apiKey, recordsLimit, sourceType, startDate); } @@ -146,25 +147,28 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional recordsLimit; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * The maximum number of records to be returned per request */ @@ -183,22 +187,23 @@ public Builder recordsLimit(Optional recordsLimit) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceGoogleTasks build() { if (recordsLimit == null) { recordsLimit = _SINGLETON_VALUE_RecordsLimit.value(); } + return new SourceGoogleTasks( - apiKey, - recordsLimit, - startDate); + apiKey, recordsLimit, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_RecordsLimit = new LazySingletonValue<>( "records_limit", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGoogleWebfonts.java b/src/main/java/com/airbyte/api/models/shared/SourceGoogleWebfonts.java index 54465de62..eef0daf85 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGoogleWebfonts.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGoogleWebfonts.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceGoogleWebfonts { +public class SourceGoogleWebfonts { /** * Optional, Available params- json, media, proto */ @@ -26,7 +25,8 @@ public class SourceGoogleWebfonts { private Optional alt; /** - * API key is required to access google apis, For getting your's goto google console and generate api key for Webfonts + * API key is required to access google apis, For getting your's goto google console and generate api + * key for Webfonts */ @JsonProperty("api_key") private String apiKey; @@ -45,6 +45,7 @@ public class SourceGoogleWebfonts { @JsonProperty("sort") private Optional sort; + @JsonProperty("sourceType") private GoogleWebfonts sourceType; @@ -67,7 +68,8 @@ public SourceGoogleWebfonts( public SourceGoogleWebfonts( String apiKey) { - this(Optional.empty(), apiKey, Optional.empty(), Optional.empty()); + this(Optional.empty(), apiKey, Optional.empty(), + Optional.empty()); } /** @@ -79,7 +81,8 @@ public Optional alt() { } /** - * API key is required to access google apis, For getting your's goto google console and generate api key for Webfonts + * API key is required to access google apis, For getting your's goto google console and generate api + * key for Webfonts */ @JsonIgnore public String apiKey() { @@ -107,9 +110,10 @@ public GoogleWebfonts sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Optional, Available params- json, media, proto @@ -120,6 +124,7 @@ public SourceGoogleWebfonts withAlt(String alt) { return this; } + /** * Optional, Available params- json, media, proto */ @@ -130,7 +135,8 @@ public SourceGoogleWebfonts withAlt(Optional alt) { } /** - * API key is required to access google apis, For getting your's goto google console and generate api key for Webfonts + * API key is required to access google apis, For getting your's goto google console and generate api + * key for Webfonts */ public SourceGoogleWebfonts withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -147,6 +153,7 @@ public SourceGoogleWebfonts withPrettyPrint(String prettyPrint) { return this; } + /** * Optional, boolean type */ @@ -165,6 +172,7 @@ public SourceGoogleWebfonts withSort(String sort) { return this; } + /** * Optional, to find how to sort */ @@ -174,7 +182,6 @@ public SourceGoogleWebfonts withSort(Optional sort) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -185,21 +192,18 @@ public boolean equals(java.lang.Object o) { } SourceGoogleWebfonts other = (SourceGoogleWebfonts) o; return - Objects.deepEquals(this.alt, other.alt) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.prettyPrint, other.prettyPrint) && - Objects.deepEquals(this.sort, other.sort) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.alt, other.alt) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.prettyPrint, other.prettyPrint) && + Utils.enhancedDeepEquals(this.sort, other.sort) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - alt, - apiKey, - prettyPrint, - sort, - sourceType); + return Utils.enhancedHash( + alt, apiKey, prettyPrint, + sort, sourceType); } @Override @@ -211,21 +215,23 @@ public String toString() { "sort", sort, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional alt = Optional.empty(); - + private String apiKey; - + private Optional prettyPrint = Optional.empty(); - + private Optional sort = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Optional, Available params- json, media, proto */ @@ -244,8 +250,10 @@ public Builder alt(Optional alt) { return this; } + /** - * API key is required to access google apis, For getting your's goto google console and generate api key for Webfonts + * API key is required to access google apis, For getting your's goto google console and generate api + * key for Webfonts */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -253,6 +261,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Optional, boolean type */ @@ -271,6 +280,7 @@ public Builder prettyPrint(Optional prettyPrint) { return this; } + /** * Optional, to find how to sort */ @@ -288,15 +298,15 @@ public Builder sort(Optional sort) { this.sort = sort; return this; } - + public SourceGoogleWebfonts build() { + return new SourceGoogleWebfonts( - alt, - apiKey, - prettyPrint, + alt, apiKey, prettyPrint, sort); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGorgias.java b/src/main/java/com/airbyte/api/models/shared/SourceGorgias.java index ebc46c0f9..40a959695 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGorgias.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGorgias.java @@ -14,27 +14,30 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceGorgias { +public class SourceGorgias { /** * Domain name given for gorgias, found as your url prefix for accessing your website */ @JsonProperty("domain_name") private String domainName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Gorgias sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonProperty("username") private String username; @@ -59,7 +62,8 @@ public SourceGorgias( String domainName, OffsetDateTime startDate, String username) { - this(domainName, Optional.empty(), startDate, username); + this(domainName, Optional.empty(), startDate, + username); } /** @@ -90,9 +94,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Domain name given for gorgias, found as your url prefix for accessing your website @@ -109,6 +114,7 @@ public SourceGorgias withPassword(String password) { return this; } + public SourceGorgias withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -127,7 +133,6 @@ public SourceGorgias withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -138,21 +143,18 @@ public boolean equals(java.lang.Object o) { } SourceGorgias other = (SourceGorgias) o; return - Objects.deepEquals(this.domainName, other.domainName) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.domainName, other.domainName) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - domainName, - password, - sourceType, - startDate, - username); + return Utils.enhancedHash( + domainName, password, sourceType, + startDate, username); } @Override @@ -164,21 +166,23 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String domainName; - + private Optional password = Optional.empty(); - + private OffsetDateTime startDate; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Domain name given for gorgias, found as your url prefix for accessing your website */ @@ -188,6 +192,7 @@ public Builder domainName(String domainName) { return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -200,26 +205,28 @@ public Builder password(Optional password) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceGorgias build() { + return new SourceGorgias( - domainName, - password, - startDate, + domainName, password, startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGreenhouse.java b/src/main/java/com/airbyte/api/models/shared/SourceGreenhouse.java index d571e419b..9a8bc140c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGreenhouse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGreenhouse.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceGreenhouse { +public class SourceGreenhouse { /** - * Greenhouse API Key. See the <a href="https://docs.airbyte.com/integrations/sources/greenhouse">docs</a> for more information on how to generate this key. + * Greenhouse API Key. See the docs for more information on how + * to generate this key. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Greenhouse sourceType; @@ -33,7 +35,9 @@ public SourceGreenhouse( } /** - * Greenhouse API Key. See the <a href="https://docs.airbyte.com/integrations/sources/greenhouse">docs</a> for more information on how to generate this key. + * Greenhouse API Key. See the docs for more information on how + * to generate this key. */ @JsonIgnore public String apiKey() { @@ -45,12 +49,15 @@ public Greenhouse sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Greenhouse API Key. See the <a href="https://docs.airbyte.com/integrations/sources/greenhouse">docs</a> for more information on how to generate this key. + * Greenhouse API Key. See the docs for more information on how + * to generate this key. */ public SourceGreenhouse withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +65,6 @@ public SourceGreenhouse withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +75,14 @@ public boolean equals(java.lang.Object o) { } SourceGreenhouse other = (SourceGreenhouse) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +91,35 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * Greenhouse API Key. See the <a href="https://docs.airbyte.com/integrations/sources/greenhouse">docs</a> for more information on how to generate this key. + * Greenhouse API Key. See the docs for more information on how + * to generate this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceGreenhouse build() { + return new SourceGreenhouse( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGreythr.java b/src/main/java/com/airbyte/api/models/shared/SourceGreythr.java index ca8823bac..f80f1e111 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGreythr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGreythr.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceGreythr { +public class SourceGreythr { /** * https://api.greythr.com */ @@ -30,13 +29,16 @@ public class SourceGreythr { @JsonProperty("domain") private String domain; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Greythr sourceType; + @JsonProperty("username") private String username; @@ -61,7 +63,8 @@ public SourceGreythr( String baseUrl, String domain, String username) { - this(baseUrl, domain, Optional.empty(), username); + this(baseUrl, domain, Optional.empty(), + username); } /** @@ -95,9 +98,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * https://api.greythr.com @@ -123,6 +127,7 @@ public SourceGreythr withPassword(String password) { return this; } + public SourceGreythr withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -135,7 +140,6 @@ public SourceGreythr withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -146,21 +150,18 @@ public boolean equals(java.lang.Object o) { } SourceGreythr other = (SourceGreythr) o; return - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - baseUrl, - domain, - password, - sourceType, - username); + return Utils.enhancedHash( + baseUrl, domain, password, + sourceType, username); } @Override @@ -172,21 +173,23 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String baseUrl; - + private String domain; - + private Optional password = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * https://api.greythr.com */ @@ -196,6 +199,7 @@ public Builder baseUrl(String baseUrl) { return this; } + /** * Your GreytHR Host URL */ @@ -205,6 +209,7 @@ public Builder domain(String domain) { return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -217,20 +222,21 @@ public Builder password(Optional password) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceGreythr build() { + return new SourceGreythr( - baseUrl, - domain, - password, + baseUrl, domain, password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGridly.java b/src/main/java/com/airbyte/api/models/shared/SourceGridly.java index 3e8f5f806..03aee8772 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGridly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGridly.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceGridly { @@ -24,6 +24,7 @@ public class SourceGridly { @JsonProperty("grid_id") private String gridId; + @JsonProperty("sourceType") private Gridly sourceType; @@ -56,9 +57,10 @@ public Gridly sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGridly withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -75,7 +77,6 @@ public SourceGridly withGridId(String gridId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +87,15 @@ public boolean equals(java.lang.Object o) { } SourceGridly other = (SourceGridly) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.gridId, other.gridId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.gridId, other.gridId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - gridId, - sourceType); + return Utils.enhancedHash( + apiKey, gridId, sourceType); } @Override @@ -106,23 +105,26 @@ public String toString() { "gridId", gridId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String gridId; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * ID of a grid, or can be ID of a branch */ @@ -131,13 +133,14 @@ public Builder gridId(String gridId) { this.gridId = gridId; return this; } - + public SourceGridly build() { + return new SourceGridly( - apiKey, - gridId); + apiKey, gridId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGuru.java b/src/main/java/com/airbyte/api/models/shared/SourceGuru.java index 998e38611..bd9f434ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGuru.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGuru.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceGuru { @JsonInclude(Include.NON_ABSENT) @@ -30,9 +30,11 @@ public class SourceGuru { @JsonProperty("search_cards_query") private Optional searchCardsQuery; + @JsonProperty("sourceType") private Guru sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -43,6 +45,7 @@ public class SourceGuru { @JsonProperty("team_id") private Optional teamId; + @JsonProperty("username") private String username; @@ -69,7 +72,8 @@ public SourceGuru( public SourceGuru( OffsetDateTime startDate, String username) { - this(Optional.empty(), Optional.empty(), startDate, Optional.empty(), username); + this(Optional.empty(), Optional.empty(), startDate, + Optional.empty(), username); } @JsonIgnore @@ -108,9 +112,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceGuru withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -118,6 +123,7 @@ public SourceGuru withPassword(String password) { return this; } + public SourceGuru withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -133,6 +139,7 @@ public SourceGuru withSearchCardsQuery(String searchCardsQuery) { return this; } + /** * Query for searching cards */ @@ -157,6 +164,7 @@ public SourceGuru withTeamId(String teamId) { return this; } + /** * Team ID received through response of /teams streams, make sure about access to the team */ @@ -172,7 +180,6 @@ public SourceGuru withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -183,23 +190,19 @@ public boolean equals(java.lang.Object o) { } SourceGuru other = (SourceGuru) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.searchCardsQuery, other.searchCardsQuery) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.teamId, other.teamId) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.searchCardsQuery, other.searchCardsQuery) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.teamId, other.teamId) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - searchCardsQuery, - sourceType, - startDate, - teamId, - username); + return Utils.enhancedHash( + password, searchCardsQuery, sourceType, + startDate, teamId, username); } @Override @@ -212,23 +215,25 @@ public String toString() { "teamId", teamId, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private Optional searchCardsQuery = Optional.empty(); - + private OffsetDateTime startDate; - + private Optional teamId = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -241,6 +246,7 @@ public Builder password(Optional password) { return this; } + /** * Query for searching cards */ @@ -259,12 +265,14 @@ public Builder searchCardsQuery(Optional searchCardsQuery) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * Team ID received through response of /teams streams, make sure about access to the team */ @@ -283,21 +291,21 @@ public Builder teamId(Optional teamId) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceGuru build() { + return new SourceGuru( - password, - searchCardsQuery, - startDate, - teamId, - username); + password, searchCardsQuery, startDate, + teamId, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceGutendex.java b/src/main/java/com/airbyte/api/models/shared/SourceGutendex.java index a7e037719..7310ab636 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceGutendex.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceGutendex.java @@ -13,53 +13,61 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceGutendex { +public class SourceGutendex { /** - * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year + * will not be returned. Supports both positive (CE) or negative (BCE) integer values */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("author_year_end") private Optional authorYearEnd; /** - * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start + * year will not be returned. Supports both positive (CE) or negative (BCE) integer values */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("author_year_start") private Optional authorYearStart; /** - * (Optional) Use this to find books with a certain copyright status - true for books with existing copyrights, false for books in the public domain in the USA, or null for books with no available copyright information. + * (Optional) Use this to find books with a certain copyright status - true for books with existing + * copyrights, false for books in the public domain in the USA, or null for books with no available + * copyright information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("copyright") private Optional copyright; /** - * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, two-character language codes. + * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, + * two-character language codes. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("languages") private Optional languages; /** - * (Optional) Use this to search author names and book titles with given words. They must be separated by a space (i.e. %20 in URL-encoded format) and are case-insensitive. + * (Optional) Use this to search author names and book titles with given words. They must be separated + * by a space (i.e. %20 in URL-encoded format) and are case-insensitive. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("search") private Optional search; /** - * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to highest, descending for IDs highest to lowest, or popular (the default) for most popular to least popular by number of downloads. + * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to + * highest, descending for IDs highest to lowest, or popular (the default) for most popular to least + * popular by number of downloads. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sort") private Optional sort; + @JsonProperty("sourceType") private Gutendex sourceType; @@ -97,11 +105,14 @@ public SourceGutendex( } public SourceGutendex() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year + * will not be returned. Supports both positive (CE) or negative (BCE) integer values */ @JsonIgnore public Optional authorYearEnd() { @@ -109,7 +120,8 @@ public Optional authorYearEnd() { } /** - * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start + * year will not be returned. Supports both positive (CE) or negative (BCE) integer values */ @JsonIgnore public Optional authorYearStart() { @@ -117,7 +129,9 @@ public Optional authorYearStart() { } /** - * (Optional) Use this to find books with a certain copyright status - true for books with existing copyrights, false for books in the public domain in the USA, or null for books with no available copyright information. + * (Optional) Use this to find books with a certain copyright status - true for books with existing + * copyrights, false for books in the public domain in the USA, or null for books with no available + * copyright information. */ @JsonIgnore public Optional copyright() { @@ -125,7 +139,8 @@ public Optional copyright() { } /** - * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, two-character language codes. + * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, + * two-character language codes. */ @JsonIgnore public Optional languages() { @@ -133,7 +148,8 @@ public Optional languages() { } /** - * (Optional) Use this to search author names and book titles with given words. They must be separated by a space (i.e. %20 in URL-encoded format) and are case-insensitive. + * (Optional) Use this to search author names and book titles with given words. They must be separated + * by a space (i.e. %20 in URL-encoded format) and are case-insensitive. */ @JsonIgnore public Optional search() { @@ -141,7 +157,9 @@ public Optional search() { } /** - * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to highest, descending for IDs highest to lowest, or popular (the default) for most popular to least popular by number of downloads. + * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to + * highest, descending for IDs highest to lowest, or popular (the default) for most popular to least + * popular by number of downloads. */ @JsonIgnore public Optional sort() { @@ -161,12 +179,14 @@ public Optional topic() { return topic; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year + * will not be returned. Supports both positive (CE) or negative (BCE) integer values */ public SourceGutendex withAuthorYearEnd(String authorYearEnd) { Utils.checkNotNull(authorYearEnd, "authorYearEnd"); @@ -174,8 +194,10 @@ public SourceGutendex withAuthorYearEnd(String authorYearEnd) { return this; } + /** - * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year + * will not be returned. Supports both positive (CE) or negative (BCE) integer values */ public SourceGutendex withAuthorYearEnd(Optional authorYearEnd) { Utils.checkNotNull(authorYearEnd, "authorYearEnd"); @@ -184,7 +206,8 @@ public SourceGutendex withAuthorYearEnd(Optional authorYearEnd) { } /** - * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start + * year will not be returned. Supports both positive (CE) or negative (BCE) integer values */ public SourceGutendex withAuthorYearStart(String authorYearStart) { Utils.checkNotNull(authorYearStart, "authorYearStart"); @@ -192,8 +215,10 @@ public SourceGutendex withAuthorYearStart(String authorYearStart) { return this; } + /** - * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start + * year will not be returned. Supports both positive (CE) or negative (BCE) integer values */ public SourceGutendex withAuthorYearStart(Optional authorYearStart) { Utils.checkNotNull(authorYearStart, "authorYearStart"); @@ -202,7 +227,9 @@ public SourceGutendex withAuthorYearStart(Optional authorYearStart) { } /** - * (Optional) Use this to find books with a certain copyright status - true for books with existing copyrights, false for books in the public domain in the USA, or null for books with no available copyright information. + * (Optional) Use this to find books with a certain copyright status - true for books with existing + * copyrights, false for books in the public domain in the USA, or null for books with no available + * copyright information. */ public SourceGutendex withCopyright(String copyright) { Utils.checkNotNull(copyright, "copyright"); @@ -210,8 +237,11 @@ public SourceGutendex withCopyright(String copyright) { return this; } + /** - * (Optional) Use this to find books with a certain copyright status - true for books with existing copyrights, false for books in the public domain in the USA, or null for books with no available copyright information. + * (Optional) Use this to find books with a certain copyright status - true for books with existing + * copyrights, false for books in the public domain in the USA, or null for books with no available + * copyright information. */ public SourceGutendex withCopyright(Optional copyright) { Utils.checkNotNull(copyright, "copyright"); @@ -220,7 +250,8 @@ public SourceGutendex withCopyright(Optional copyright) { } /** - * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, two-character language codes. + * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, + * two-character language codes. */ public SourceGutendex withLanguages(String languages) { Utils.checkNotNull(languages, "languages"); @@ -228,8 +259,10 @@ public SourceGutendex withLanguages(String languages) { return this; } + /** - * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, two-character language codes. + * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, + * two-character language codes. */ public SourceGutendex withLanguages(Optional languages) { Utils.checkNotNull(languages, "languages"); @@ -238,7 +271,8 @@ public SourceGutendex withLanguages(Optional languages) { } /** - * (Optional) Use this to search author names and book titles with given words. They must be separated by a space (i.e. %20 in URL-encoded format) and are case-insensitive. + * (Optional) Use this to search author names and book titles with given words. They must be separated + * by a space (i.e. %20 in URL-encoded format) and are case-insensitive. */ public SourceGutendex withSearch(String search) { Utils.checkNotNull(search, "search"); @@ -246,8 +280,10 @@ public SourceGutendex withSearch(String search) { return this; } + /** - * (Optional) Use this to search author names and book titles with given words. They must be separated by a space (i.e. %20 in URL-encoded format) and are case-insensitive. + * (Optional) Use this to search author names and book titles with given words. They must be separated + * by a space (i.e. %20 in URL-encoded format) and are case-insensitive. */ public SourceGutendex withSearch(Optional search) { Utils.checkNotNull(search, "search"); @@ -256,7 +292,9 @@ public SourceGutendex withSearch(Optional search) { } /** - * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to highest, descending for IDs highest to lowest, or popular (the default) for most popular to least popular by number of downloads. + * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to + * highest, descending for IDs highest to lowest, or popular (the default) for most popular to least + * popular by number of downloads. */ public SourceGutendex withSort(String sort) { Utils.checkNotNull(sort, "sort"); @@ -264,8 +302,11 @@ public SourceGutendex withSort(String sort) { return this; } + /** - * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to highest, descending for IDs highest to lowest, or popular (the default) for most popular to least popular by number of downloads. + * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to + * highest, descending for IDs highest to lowest, or popular (the default) for most popular to least + * popular by number of downloads. */ public SourceGutendex withSort(Optional sort) { Utils.checkNotNull(sort, "sort"); @@ -282,6 +323,7 @@ public SourceGutendex withTopic(String topic) { return this; } + /** * (Optional) Use this to search for a case-insensitive key-phrase in books' bookshelves or subjects. */ @@ -291,7 +333,6 @@ public SourceGutendex withTopic(Optional topic) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -302,27 +343,22 @@ public boolean equals(java.lang.Object o) { } SourceGutendex other = (SourceGutendex) o; return - Objects.deepEquals(this.authorYearEnd, other.authorYearEnd) && - Objects.deepEquals(this.authorYearStart, other.authorYearStart) && - Objects.deepEquals(this.copyright, other.copyright) && - Objects.deepEquals(this.languages, other.languages) && - Objects.deepEquals(this.search, other.search) && - Objects.deepEquals(this.sort, other.sort) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.topic, other.topic); + Utils.enhancedDeepEquals(this.authorYearEnd, other.authorYearEnd) && + Utils.enhancedDeepEquals(this.authorYearStart, other.authorYearStart) && + Utils.enhancedDeepEquals(this.copyright, other.copyright) && + Utils.enhancedDeepEquals(this.languages, other.languages) && + Utils.enhancedDeepEquals(this.search, other.search) && + Utils.enhancedDeepEquals(this.sort, other.sort) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.topic, other.topic); } @Override public int hashCode() { - return Objects.hash( - authorYearEnd, - authorYearStart, - copyright, - languages, - search, - sort, - sourceType, - topic); + return Utils.enhancedHash( + authorYearEnd, authorYearStart, copyright, + languages, search, sort, + sourceType, topic); } @Override @@ -337,29 +373,32 @@ public String toString() { "sourceType", sourceType, "topic", topic); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional authorYearEnd = Optional.empty(); - + private Optional authorYearStart = Optional.empty(); - + private Optional copyright = Optional.empty(); - + private Optional languages = Optional.empty(); - + private Optional search = Optional.empty(); - + private Optional sort = Optional.empty(); - + private Optional topic = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year + * will not be returned. Supports both positive (CE) or negative (BCE) integer values */ public Builder authorYearEnd(String authorYearEnd) { Utils.checkNotNull(authorYearEnd, "authorYearEnd"); @@ -368,7 +407,8 @@ public Builder authorYearEnd(String authorYearEnd) { } /** - * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the maximum birth year of the authors. Books by authors born after the end year + * will not be returned. Supports both positive (CE) or negative (BCE) integer values */ public Builder authorYearEnd(Optional authorYearEnd) { Utils.checkNotNull(authorYearEnd, "authorYearEnd"); @@ -376,8 +416,10 @@ public Builder authorYearEnd(Optional authorYearEnd) { return this; } + /** - * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start + * year will not be returned. Supports both positive (CE) or negative (BCE) integer values */ public Builder authorYearStart(String authorYearStart) { Utils.checkNotNull(authorYearStart, "authorYearStart"); @@ -386,7 +428,8 @@ public Builder authorYearStart(String authorYearStart) { } /** - * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start year will not be returned. Supports both positive (CE) or negative (BCE) integer values + * (Optional) Defines the minimum birth year of the authors. Books by authors born prior to the start + * year will not be returned. Supports both positive (CE) or negative (BCE) integer values */ public Builder authorYearStart(Optional authorYearStart) { Utils.checkNotNull(authorYearStart, "authorYearStart"); @@ -394,8 +437,11 @@ public Builder authorYearStart(Optional authorYearStart) { return this; } + /** - * (Optional) Use this to find books with a certain copyright status - true for books with existing copyrights, false for books in the public domain in the USA, or null for books with no available copyright information. + * (Optional) Use this to find books with a certain copyright status - true for books with existing + * copyrights, false for books in the public domain in the USA, or null for books with no available + * copyright information. */ public Builder copyright(String copyright) { Utils.checkNotNull(copyright, "copyright"); @@ -404,7 +450,9 @@ public Builder copyright(String copyright) { } /** - * (Optional) Use this to find books with a certain copyright status - true for books with existing copyrights, false for books in the public domain in the USA, or null for books with no available copyright information. + * (Optional) Use this to find books with a certain copyright status - true for books with existing + * copyrights, false for books in the public domain in the USA, or null for books with no available + * copyright information. */ public Builder copyright(Optional copyright) { Utils.checkNotNull(copyright, "copyright"); @@ -412,8 +460,10 @@ public Builder copyright(Optional copyright) { return this; } + /** - * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, two-character language codes. + * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, + * two-character language codes. */ public Builder languages(String languages) { Utils.checkNotNull(languages, "languages"); @@ -422,7 +472,8 @@ public Builder languages(String languages) { } /** - * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, two-character language codes. + * (Optional) Use this to find books in any of a list of languages. They must be comma-separated, + * two-character language codes. */ public Builder languages(Optional languages) { Utils.checkNotNull(languages, "languages"); @@ -430,8 +481,10 @@ public Builder languages(Optional languages) { return this; } + /** - * (Optional) Use this to search author names and book titles with given words. They must be separated by a space (i.e. %20 in URL-encoded format) and are case-insensitive. + * (Optional) Use this to search author names and book titles with given words. They must be separated + * by a space (i.e. %20 in URL-encoded format) and are case-insensitive. */ public Builder search(String search) { Utils.checkNotNull(search, "search"); @@ -440,7 +493,8 @@ public Builder search(String search) { } /** - * (Optional) Use this to search author names and book titles with given words. They must be separated by a space (i.e. %20 in URL-encoded format) and are case-insensitive. + * (Optional) Use this to search author names and book titles with given words. They must be separated + * by a space (i.e. %20 in URL-encoded format) and are case-insensitive. */ public Builder search(Optional search) { Utils.checkNotNull(search, "search"); @@ -448,8 +502,11 @@ public Builder search(Optional search) { return this; } + /** - * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to highest, descending for IDs highest to lowest, or popular (the default) for most popular to least popular by number of downloads. + * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to + * highest, descending for IDs highest to lowest, or popular (the default) for most popular to least + * popular by number of downloads. */ public Builder sort(String sort) { Utils.checkNotNull(sort, "sort"); @@ -458,7 +515,9 @@ public Builder sort(String sort) { } /** - * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to highest, descending for IDs highest to lowest, or popular (the default) for most popular to least popular by number of downloads. + * (Optional) Use this to sort books - ascending for Project Gutenberg ID numbers from lowest to + * highest, descending for IDs highest to lowest, or popular (the default) for most popular to least + * popular by number of downloads. */ public Builder sort(Optional sort) { Utils.checkNotNull(sort, "sort"); @@ -466,6 +525,7 @@ public Builder sort(Optional sort) { return this; } + /** * (Optional) Use this to search for a case-insensitive key-phrase in books' bookshelves or subjects. */ @@ -483,18 +543,16 @@ public Builder topic(Optional topic) { this.topic = topic; return this; } - + public SourceGutendex build() { + return new SourceGutendex( - authorYearEnd, - authorYearStart, - copyright, - languages, - search, - sort, + authorYearEnd, authorYearStart, copyright, + languages, search, sort, topic); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java b/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java index 1dd2a5c35..3ae58d33e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHardcodedRecords.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceHardcodedRecords { +public class SourceHardcodedRecords { /** * How many records per stream should be generated */ @@ -26,6 +25,7 @@ public class SourceHardcodedRecords { @JsonProperty("count") private Optional count; + @JsonProperty("sourceType") private HardcodedRecords sourceType; @@ -54,9 +54,10 @@ public HardcodedRecords sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * How many records per stream should be generated @@ -67,6 +68,7 @@ public SourceHardcodedRecords withCount(long count) { return this; } + /** * How many records per stream should be generated */ @@ -76,7 +78,6 @@ public SourceHardcodedRecords withCount(Optional count) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,15 +88,14 @@ public boolean equals(java.lang.Object o) { } SourceHardcodedRecords other = (SourceHardcodedRecords) o; return - Objects.deepEquals(this.count, other.count) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.count, other.count) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - count, - sourceType); + return Utils.enhancedHash( + count, sourceType); } @Override @@ -104,15 +104,17 @@ public String toString() { "count", count, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional count; - + private Builder() { // force use of static builder() method } + /** * How many records per stream should be generated */ @@ -130,15 +132,17 @@ public Builder count(Optional count) { this.count = count; return this; } - + public SourceHardcodedRecords build() { if (count == null) { count = _SINGLETON_VALUE_Count.value(); } + return new SourceHardcodedRecords( count); } + private static final LazySingletonValue> _SINGLETON_VALUE_Count = new LazySingletonValue<>( "count", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarness.java b/src/main/java/com/airbyte/api/models/shared/SourceHarness.java index c77832f96..ce138892c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarness.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarness.java @@ -13,17 +13,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceHarness { +public class SourceHarness { /** * Harness Account ID */ @JsonProperty("account_id") private String accountId; + @JsonProperty("api_key") private String apiKey; @@ -34,6 +34,7 @@ public class SourceHarness { @JsonProperty("api_url") private Optional apiUrl; + @JsonProperty("sourceType") private Harness sourceType; @@ -83,9 +84,10 @@ public Harness sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Harness Account ID @@ -111,6 +113,7 @@ public SourceHarness withApiUrl(String apiUrl) { return this; } + /** * The API URL for fetching data from Harness */ @@ -120,7 +123,6 @@ public SourceHarness withApiUrl(Optional apiUrl) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -131,18 +133,16 @@ public boolean equals(java.lang.Object o) { } SourceHarness other = (SourceHarness) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiUrl, other.apiUrl) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiUrl, other.apiUrl) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountId, - apiKey, - apiUrl, + return Utils.enhancedHash( + accountId, apiKey, apiUrl, sourceType); } @@ -154,19 +154,21 @@ public String toString() { "apiUrl", apiUrl, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private String apiKey; - + private Optional apiUrl; - + private Builder() { // force use of static builder() method } + /** * Harness Account ID */ @@ -176,12 +178,14 @@ public Builder accountId(String accountId) { return this; } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * The API URL for fetching data from Harness */ @@ -199,17 +203,17 @@ public Builder apiUrl(Optional apiUrl) { this.apiUrl = apiUrl; return this; } - + public SourceHarness build() { if (apiUrl == null) { apiUrl = _SINGLETON_VALUE_ApiUrl.value(); } + return new SourceHarness( - accountId, - apiKey, - apiUrl); + accountId, apiKey, apiUrl); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiUrl = new LazySingletonValue<>( "api_url", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarvest.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvest.java index 625982bbd..390c5559a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvest.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceHarvest { +public class SourceHarvest { /** * Harvest account ID. Required for all Harvest requests in pair with Personal Access Token */ @@ -34,11 +33,13 @@ public class SourceHarvest { private Optional credentials; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("replication_start_date") private OffsetDateTime replicationStartDate; + @JsonProperty("sourceType") private Harvest sourceType; @@ -80,7 +81,8 @@ public Optional credentials() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime replicationStartDate() { @@ -92,9 +94,10 @@ public Harvest sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Harvest account ID. Required for all Harvest requests in pair with Personal Access Token @@ -114,6 +117,7 @@ public SourceHarvest withCredentials(SourceHarvestAuthenticationMechanism creden return this; } + /** * Choose how to authenticate to Harvest. */ @@ -124,7 +128,8 @@ public SourceHarvest withCredentials(Optional credentials = Optional.empty(); - + private OffsetDateTime replicationStartDate; - + private Builder() { // force use of static builder() method } + /** * Harvest account ID. Required for all Harvest requests in pair with Personal Access Token */ @@ -188,6 +192,7 @@ public Builder accountId(String accountId) { return this; } + /** * Choose how to authenticate to Harvest. */ @@ -206,22 +211,24 @@ public Builder credentials(Optional _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthType.java index d38e79fff..f0a43ccad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthType.java @@ -14,7 +14,7 @@ public enum SourceHarvestAuthType { @JsonValue private final String value; - private SourceHarvestAuthType(String value) { + SourceHarvestAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticateWithPersonalAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticateWithPersonalAccessToken.java index 080ae787f..ba490efd2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticateWithPersonalAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticateWithPersonalAccessToken.java @@ -19,20 +19,22 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class SourceHarvestAuthenticateWithPersonalAccessToken { @JsonIgnore private Map additionalProperties; /** - * Log into Harvest and then create new <a href="https://id.getharvest.com/developers"> personal access token</a>. + * Log into Harvest and then create new personal access + * token. */ @JsonProperty("api_token") private String apiToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -52,7 +54,8 @@ public Map additionalProperties() { } /** - * Log into Harvest and then create new <a href="https://id.getharvest.com/developers"> personal access token</a>. + * Log into Harvest and then create new personal access + * token. */ @JsonIgnore public String apiToken() { @@ -65,9 +68,10 @@ public Optional authType() { return (Optional) authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceHarvestAuthenticateWithPersonalAccessToken withAdditionalProperty(String key, Object value) { @@ -75,8 +79,7 @@ public SourceHarvestAuthenticateWithPersonalAccessToken withAdditionalProperty(S Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceHarvestAuthenticateWithPersonalAccessToken withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -84,7 +87,8 @@ public SourceHarvestAuthenticateWithPersonalAccessToken withAdditionalProperties } /** - * Log into Harvest and then create new <a href="https://id.getharvest.com/developers"> personal access token</a>. + * Log into Harvest and then create new personal access + * token. */ public SourceHarvestAuthenticateWithPersonalAccessToken withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -92,7 +96,6 @@ public SourceHarvestAuthenticateWithPersonalAccessToken withApiToken(String apiT return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -103,17 +106,15 @@ public boolean equals(java.lang.Object o) { } SourceHarvestAuthenticateWithPersonalAccessToken other = (SourceHarvestAuthenticateWithPersonalAccessToken) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - apiToken, - authType); + return Utils.enhancedHash( + additionalProperties, apiToken, authType); } @Override @@ -123,13 +124,14 @@ public String toString() { "apiToken", apiToken, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String apiToken; - + private Builder() { // force use of static builder() method } @@ -150,21 +152,25 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * Log into Harvest and then create new <a href="https://id.getharvest.com/developers"> personal access token</a>. + * Log into Harvest and then create new personal access + * token. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); this.apiToken = apiToken; return this; } - + public SourceHarvestAuthenticateWithPersonalAccessToken build() { + return new SourceHarvestAuthenticateWithPersonalAccessToken( apiToken) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticationMechanism.java index bf6893174..67db75557 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvestAuthenticationMechanism.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceHarvestAuthenticationMechanism @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceHarvestAuthenticationMechanism other = (SourceHarvestAuthenticationMechanism) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java index 65a1c08e2..e267caf36 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHarvestSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceHarvestSchemasAuthType { @JsonValue private final String value; - private SourceHarvestSchemasAuthType(String value) { + SourceHarvestSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHeight.java b/src/main/java/com/airbyte/api/models/shared/SourceHeight.java index ad162a9ae..7c4ac29ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHeight.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHeight.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceHeight { @JsonProperty("api_key") @@ -29,9 +29,11 @@ public class SourceHeight { @JsonProperty("search_query") private Optional searchQuery; + @JsonProperty("sourceType") private Height sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -78,9 +80,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceHeight withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -97,6 +100,7 @@ public SourceHeight withSearchQuery(String searchQuery) { return this; } + /** * Search query to be used with search stream */ @@ -112,7 +116,6 @@ public SourceHeight withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -123,18 +126,16 @@ public boolean equals(java.lang.Object o) { } SourceHeight other = (SourceHeight) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.searchQuery, other.searchQuery) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.searchQuery, other.searchQuery) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - searchQuery, - sourceType, + return Utils.enhancedHash( + apiKey, searchQuery, sourceType, startDate); } @@ -146,25 +147,28 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional searchQuery; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Search query to be used with search stream */ @@ -183,22 +187,23 @@ public Builder searchQuery(Optional searchQuery) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceHeight build() { if (searchQuery == null) { searchQuery = _SINGLETON_VALUE_SearchQuery.value(); } + return new SourceHeight( - apiKey, - searchQuery, - startDate); + apiKey, searchQuery, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_SearchQuery = new LazySingletonValue<>( "search_query", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHellobaton.java b/src/main/java/com/airbyte/api/models/shared/SourceHellobaton.java index f685327e1..115e31b2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHellobaton.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHellobaton.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceHellobaton { +public class SourceHellobaton { /** * authentication key required to access the api endpoints */ @@ -27,6 +26,7 @@ public class SourceHellobaton { @JsonProperty("company") private String company; + @JsonProperty("sourceType") private Hellobaton sourceType; @@ -62,9 +62,10 @@ public Hellobaton sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * authentication key required to access the api endpoints @@ -84,7 +85,6 @@ public SourceHellobaton withCompany(String company) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceHellobaton other = (SourceHellobaton) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.company, other.company) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.company, other.company) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - company, - sourceType); + return Utils.enhancedHash( + apiKey, company, sourceType); } @Override @@ -115,17 +113,19 @@ public String toString() { "company", company, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String company; - + private Builder() { // force use of static builder() method } + /** * authentication key required to access the api endpoints */ @@ -135,6 +135,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Company name that generates your base api url */ @@ -143,13 +144,14 @@ public Builder company(String company) { this.company = company; return this; } - + public SourceHellobaton build() { + return new SourceHellobaton( - apiKey, - company); + apiKey, company); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHelpScout.java b/src/main/java/com/airbyte/api/models/shared/SourceHelpScout.java index 43862bf0e..903830fcc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHelpScout.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHelpScout.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceHelpScout { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private HelpScout sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -62,9 +65,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceHelpScout withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -84,7 +88,6 @@ public SourceHelpScout withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,18 +98,16 @@ public boolean equals(java.lang.Object o) { } SourceHelpScout other = (SourceHelpScout) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - sourceType, + return Utils.enhancedHash( + clientId, clientSecret, sourceType, startDate); } @@ -118,44 +119,48 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceHelpScout build() { + return new SourceHelpScout( - clientId, - clientSecret, - startDate); + clientId, clientSecret, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHibob.java b/src/main/java/com/airbyte/api/models/shared/SourceHibob.java index de07035b7..3f60ffa21 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHibob.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHibob.java @@ -14,24 +14,26 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceHibob { +public class SourceHibob { /** * Toggle true if this instance is a HiBob sandbox */ @JsonProperty("is_sandbox") private boolean isSandbox; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Hibob sourceType; + @JsonProperty("username") private String username; @@ -78,9 +80,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Toggle true if this instance is a HiBob sandbox @@ -97,6 +100,7 @@ public SourceHibob withPassword(String password) { return this; } + public SourceHibob withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -109,7 +113,6 @@ public SourceHibob withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +123,16 @@ public boolean equals(java.lang.Object o) { } SourceHibob other = (SourceHibob) o; return - Objects.deepEquals(this.isSandbox, other.isSandbox) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.isSandbox, other.isSandbox) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - isSandbox, - password, - sourceType, + return Utils.enhancedHash( + isSandbox, password, sourceType, username); } @@ -143,19 +144,21 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Boolean isSandbox; - + private Optional password = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Toggle true if this instance is a HiBob sandbox */ @@ -165,6 +168,7 @@ public Builder isSandbox(boolean isSandbox) { return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -177,19 +181,20 @@ public Builder password(Optional password) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceHibob build() { + return new SourceHibob( - isSandbox, - password, - username); + isSandbox, password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java b/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java index 65cb7ddd2..d43b9ab9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHighLevel.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceHighLevel { @JsonProperty("api_key") private String apiKey; + @JsonProperty("location_id") private String locationId; + @JsonProperty("sourceType") private HighLevel sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -62,9 +65,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceHighLevel withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -84,7 +88,6 @@ public SourceHighLevel withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,18 +98,16 @@ public boolean equals(java.lang.Object o) { } SourceHighLevel other = (SourceHighLevel) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.locationId, other.locationId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.locationId, other.locationId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - locationId, - sourceType, + return Utils.enhancedHash( + apiKey, locationId, sourceType, startDate); } @@ -118,44 +119,48 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String locationId; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder locationId(String locationId) { Utils.checkNotNull(locationId, "locationId"); this.locationId = locationId; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceHighLevel build() { + return new SourceHighLevel( - apiKey, - locationId, - startDate); + apiKey, locationId, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHoorayhr.java b/src/main/java/com/airbyte/api/models/shared/SourceHoorayhr.java index d99d5d55c..d4543f81f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHoorayhr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHoorayhr.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceHoorayhr { @JsonProperty("hoorayhrpassword") private String hoorayhrpassword; + @JsonProperty("hoorayhrusername") private String hoorayhrusername; + @JsonProperty("sourceType") private Hoorayhr sourceType; @@ -50,9 +52,10 @@ public Hoorayhr sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceHoorayhr withHoorayhrpassword(String hoorayhrpassword) { Utils.checkNotNull(hoorayhrpassword, "hoorayhrpassword"); @@ -66,7 +69,6 @@ public SourceHoorayhr withHoorayhrusername(String hoorayhrusername) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceHoorayhr other = (SourceHoorayhr) o; return - Objects.deepEquals(this.hoorayhrpassword, other.hoorayhrpassword) && - Objects.deepEquals(this.hoorayhrusername, other.hoorayhrusername) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.hoorayhrpassword, other.hoorayhrpassword) && + Utils.enhancedDeepEquals(this.hoorayhrusername, other.hoorayhrusername) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - hoorayhrpassword, - hoorayhrusername, - sourceType); + return Utils.enhancedHash( + hoorayhrpassword, hoorayhrusername, sourceType); } @Override @@ -97,35 +97,39 @@ public String toString() { "hoorayhrusername", hoorayhrusername, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String hoorayhrpassword; - + private String hoorayhrusername; - + private Builder() { // force use of static builder() method } + public Builder hoorayhrpassword(String hoorayhrpassword) { Utils.checkNotNull(hoorayhrpassword, "hoorayhrpassword"); this.hoorayhrpassword = hoorayhrpassword; return this; } + public Builder hoorayhrusername(String hoorayhrusername) { Utils.checkNotNull(hoorayhrusername, "hoorayhrusername"); this.hoorayhrusername = hoorayhrusername; return this; } - + public SourceHoorayhr build() { + return new SourceHoorayhr( - hoorayhrpassword, - hoorayhrusername); + hoorayhrpassword, hoorayhrusername); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubplanner.java b/src/main/java/com/airbyte/api/models/shared/SourceHubplanner.java index 77925ca13..0db67a7e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubplanner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubplanner.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceHubplanner { +public class SourceHubplanner { /** * Hubplanner API key. See https://github.com/hubplanner/API#authentication for more details. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Hubplanner sourceType; @@ -45,9 +45,10 @@ public Hubplanner sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hubplanner API key. See https://github.com/hubplanner/API#authentication for more details. @@ -58,7 +59,6 @@ public SourceHubplanner withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceHubplanner other = (SourceHubplanner) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * Hubplanner API key. See https://github.com/hubplanner/API#authentication for more details. */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceHubplanner build() { + return new SourceHubplanner( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspot.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspot.java index 49b208a85..ce30b6688 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspot.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspot.java @@ -12,14 +12,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Boolean; +import java.lang.Long; import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceHubspot { +public class SourceHubspot { /** * Choose how to authenticate to HubSpot. */ @@ -33,11 +33,22 @@ public class SourceHubspot { @JsonProperty("enable_experimental_streams") private Optional enableExperimentalStreams; + /** + * The number of worker threads to use for the sync. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("num_worker") + private Optional numWorker; + + @JsonProperty("sourceType") private SourceHubspotHubspot sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. It's recommended to provide relevant to your data start date value to optimize synchronization. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. + * + *

    It's recommended to provide relevant to your data start date value to optimize synchronization. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -47,19 +58,23 @@ public class SourceHubspot { public SourceHubspot( @JsonProperty("credentials") SourceHubspotAuthentication credentials, @JsonProperty("enable_experimental_streams") Optional enableExperimentalStreams, + @JsonProperty("num_worker") Optional numWorker, @JsonProperty("start_date") Optional startDate) { Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(enableExperimentalStreams, "enableExperimentalStreams"); + Utils.checkNotNull(numWorker, "numWorker"); Utils.checkNotNull(startDate, "startDate"); this.credentials = credentials; this.enableExperimentalStreams = enableExperimentalStreams; + this.numWorker = numWorker; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; } public SourceHubspot( SourceHubspotAuthentication credentials) { - this(credentials, Optional.empty(), Optional.empty()); + this(credentials, Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -78,22 +93,34 @@ public Optional enableExperimentalStreams() { return enableExperimentalStreams; } + /** + * The number of worker threads to use for the sync. + */ + @JsonIgnore + public Optional numWorker() { + return numWorker; + } + @JsonIgnore public SourceHubspotHubspot sourceType() { return sourceType; } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. It's recommended to provide relevant to your data start date value to optimize synchronization. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. + * + *

    It's recommended to provide relevant to your data start date value to optimize synchronization. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Choose how to authenticate to HubSpot. @@ -113,6 +140,7 @@ public SourceHubspot withEnableExperimentalStreams(boolean enableExperimentalStr return this; } + /** * If enabled then experimental streams become available for sync. */ @@ -123,7 +151,29 @@ public SourceHubspot withEnableExperimentalStreams(Optional enableExper } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. It's recommended to provide relevant to your data start date value to optimize synchronization. + * The number of worker threads to use for the sync. + */ + public SourceHubspot withNumWorker(long numWorker) { + Utils.checkNotNull(numWorker, "numWorker"); + this.numWorker = Optional.ofNullable(numWorker); + return this; + } + + + /** + * The number of worker threads to use for the sync. + */ + public SourceHubspot withNumWorker(Optional numWorker) { + Utils.checkNotNull(numWorker, "numWorker"); + this.numWorker = numWorker; + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. + * + *

    It's recommended to provide relevant to your data start date value to optimize synchronization. */ public SourceHubspot withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -131,8 +181,12 @@ public SourceHubspot withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. It's recommended to provide relevant to your data start date value to optimize synchronization. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. + * + *

    It's recommended to provide relevant to your data start date value to optimize synchronization. */ public SourceHubspot withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -140,7 +194,6 @@ public SourceHubspot withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -151,19 +204,18 @@ public boolean equals(java.lang.Object o) { } SourceHubspot other = (SourceHubspot) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.enableExperimentalStreams, other.enableExperimentalStreams) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.enableExperimentalStreams, other.enableExperimentalStreams) && + Utils.enhancedDeepEquals(this.numWorker, other.numWorker) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - credentials, - enableExperimentalStreams, - sourceType, - startDate); + return Utils.enhancedHash( + credentials, enableExperimentalStreams, numWorker, + sourceType, startDate); } @Override @@ -171,22 +223,27 @@ public String toString() { return Utils.toString(SourceHubspot.class, "credentials", credentials, "enableExperimentalStreams", enableExperimentalStreams, + "numWorker", numWorker, "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceHubspotAuthentication credentials; - + private Optional enableExperimentalStreams; - + + private Optional numWorker; + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Choose how to authenticate to HubSpot. */ @@ -196,6 +253,7 @@ public Builder credentials(SourceHubspotAuthentication credentials) { return this; } + /** * If enabled then experimental streams become available for sync. */ @@ -214,8 +272,31 @@ public Builder enableExperimentalStreams(Optional enableExperimentalStr return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. It's recommended to provide relevant to your data start date value to optimize synchronization. + * The number of worker threads to use for the sync. + */ + public Builder numWorker(long numWorker) { + Utils.checkNotNull(numWorker, "numWorker"); + this.numWorker = Optional.ofNullable(numWorker); + return this; + } + + /** + * The number of worker threads to use for the sync. + */ + public Builder numWorker(Optional numWorker) { + Utils.checkNotNull(numWorker, "numWorker"); + this.numWorker = numWorker; + return this; + } + + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. + * + *

    It's recommended to provide relevant to your data start date value to optimize synchronization. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -224,30 +305,43 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. It's recommended to provide relevant to your data start date value to optimize synchronization. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. If not set, "2006-06-01T00:00:00Z" (Hubspot creation date) will be used as start date. + * + *

    It's recommended to provide relevant to your data start date value to optimize synchronization. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceHubspot build() { if (enableExperimentalStreams == null) { enableExperimentalStreams = _SINGLETON_VALUE_EnableExperimentalStreams.value(); } + if (numWorker == null) { + numWorker = _SINGLETON_VALUE_NumWorker.value(); + } + return new SourceHubspot( - credentials, - enableExperimentalStreams, + credentials, enableExperimentalStreams, numWorker, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_EnableExperimentalStreams = new LazySingletonValue<>( "enable_experimental_streams", "false", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorker = + new LazySingletonValue<>( + "num_worker", + "3", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java index bf9c87abd..134c9a774 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthType.java @@ -19,7 +19,7 @@ public enum SourceHubspotAuthType { @JsonValue private final String value; - private SourceHubspotAuthType(String value) { + SourceHubspotAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthentication.java index 961c64413..2d1d2cc7f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceHubspotAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceHubspotAuthentication other = (SourceHubspotAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java index b7a25a3e5..4dca04584 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotHubspot.java @@ -14,7 +14,7 @@ public enum SourceHubspotHubspot { @JsonValue private final String value; - private SourceHubspotHubspot(String value) { + SourceHubspotHubspot(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspotOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotOAuth.java index 02f709222..59a8a5856 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotOAuth.java @@ -11,18 +11,21 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceHubspotOAuth { +public class SourceHubspotOAuth { /** - * The Client ID of your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this ID. + * The Client ID of your HubSpot developer application. See the Hubspot docs if you + * need help finding this ID. */ @JsonProperty("client_id") private String clientId; /** - * The client secret for your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this secret. + * The client secret for your HubSpot developer application. See the Hubspot docs if you + * need help finding this secret. */ @JsonProperty("client_secret") private String clientSecret; @@ -34,7 +37,9 @@ public class SourceHubspotOAuth { private SourceHubspotAuthType credentialsTitle; /** - * Refresh token to renew an expired access token. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this token. + * Refresh token to renew an expired access token. See the Hubspot docs if you + * need help finding this token. */ @JsonProperty("refresh_token") private String refreshToken; @@ -54,7 +59,9 @@ public SourceHubspotOAuth( } /** - * The Client ID of your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this ID. + * The Client ID of your HubSpot developer application. See the Hubspot docs if you + * need help finding this ID. */ @JsonIgnore public String clientId() { @@ -62,7 +69,9 @@ public String clientId() { } /** - * The client secret for your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this secret. + * The client secret for your HubSpot developer application. See the Hubspot docs if you + * need help finding this secret. */ @JsonIgnore public String clientSecret() { @@ -78,19 +87,24 @@ public SourceHubspotAuthType credentialsTitle() { } /** - * Refresh token to renew an expired access token. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this token. + * Refresh token to renew an expired access token. See the Hubspot docs if you + * need help finding this token. */ @JsonIgnore public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Client ID of your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this ID. + * The Client ID of your HubSpot developer application. See the Hubspot docs if you + * need help finding this ID. */ public SourceHubspotOAuth withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -99,7 +113,9 @@ public SourceHubspotOAuth withClientId(String clientId) { } /** - * The client secret for your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this secret. + * The client secret for your HubSpot developer application. See the Hubspot docs if you + * need help finding this secret. */ public SourceHubspotOAuth withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -108,7 +124,9 @@ public SourceHubspotOAuth withClientSecret(String clientSecret) { } /** - * Refresh token to renew an expired access token. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this token. + * Refresh token to renew an expired access token. See the Hubspot docs if you + * need help finding this token. */ public SourceHubspotOAuth withRefreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -116,7 +134,6 @@ public SourceHubspotOAuth withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,18 +144,16 @@ public boolean equals(java.lang.Object o) { } SourceHubspotOAuth other = (SourceHubspotOAuth) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.credentialsTitle, other.credentialsTitle) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.credentialsTitle, other.credentialsTitle) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - credentialsTitle, + return Utils.enhancedHash( + clientId, clientSecret, credentialsTitle, refreshToken); } @@ -150,21 +165,25 @@ public String toString() { "credentialsTitle", credentialsTitle, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** - * The Client ID of your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this ID. + * The Client ID of your HubSpot developer application. See the Hubspot docs if you + * need help finding this ID. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -172,8 +191,11 @@ public Builder clientId(String clientId) { return this; } + /** - * The client secret for your HubSpot developer application. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this secret. + * The client secret for your HubSpot developer application. See the Hubspot docs if you + * need help finding this secret. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -181,22 +203,25 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * Refresh token to renew an expired access token. See the <a href="https://legacydocs.hubspot.com/docs/methods/oauth2/oauth2-quickstart">Hubspot docs</a> if you need help finding this token. + * Refresh token to renew an expired access token. See the Hubspot docs if you + * need help finding this token. */ public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } - + public SourceHubspotOAuth build() { + return new SourceHubspotOAuth( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue _SINGLETON_VALUE_CredentialsTitle = new LazySingletonValue<>( "credentials_title", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java index 44f080dd0..a7d4595a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHubspotSchemasAuthType.java @@ -19,7 +19,7 @@ public enum SourceHubspotSchemasAuthType { @JsonValue private final String value; - private SourceHubspotSchemasAuthType(String value) { + SourceHubspotSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHuggingFaceDatasets.java b/src/main/java/com/airbyte/api/models/shared/SourceHuggingFaceDatasets.java index 1af7f30ac..2a75d52a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHuggingFaceDatasets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHuggingFaceDatasets.java @@ -16,28 +16,31 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceHuggingFaceDatasets { @JsonProperty("dataset_name") private String datasetName; /** - * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Splits to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("dataset_splits") private Optional> datasetSplits; /** - * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Dataset Subsets to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("dataset_subsets") private Optional> datasetSubsets; + @JsonProperty("sourceType") private HuggingFaceDatasets sourceType; @@ -66,7 +69,8 @@ public String datasetName() { } /** - * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Splits to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ @SuppressWarnings("unchecked") @JsonIgnore @@ -75,7 +79,8 @@ public Optional> datasetSplits() { } /** - * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Dataset Subsets to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ @SuppressWarnings("unchecked") @JsonIgnore @@ -88,9 +93,10 @@ public HuggingFaceDatasets sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceHuggingFaceDatasets withDatasetName(String datasetName) { Utils.checkNotNull(datasetName, "datasetName"); @@ -99,7 +105,8 @@ public SourceHuggingFaceDatasets withDatasetName(String datasetName) { } /** - * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Splits to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ public SourceHuggingFaceDatasets withDatasetSplits(List datasetSplits) { Utils.checkNotNull(datasetSplits, "datasetSplits"); @@ -107,8 +114,10 @@ public SourceHuggingFaceDatasets withDatasetSplits(List datasetSplits) { return this; } + /** - * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Splits to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ public SourceHuggingFaceDatasets withDatasetSplits(Optional> datasetSplits) { Utils.checkNotNull(datasetSplits, "datasetSplits"); @@ -117,7 +126,8 @@ public SourceHuggingFaceDatasets withDatasetSplits(Optional datasetSubsets) { Utils.checkNotNull(datasetSubsets, "datasetSubsets"); @@ -125,8 +135,10 @@ public SourceHuggingFaceDatasets withDatasetSubsets(List datasetSubsets) return this; } + /** - * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Dataset Subsets to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ public SourceHuggingFaceDatasets withDatasetSubsets(Optional> datasetSubsets) { Utils.checkNotNull(datasetSubsets, "datasetSubsets"); @@ -134,7 +146,6 @@ public SourceHuggingFaceDatasets withDatasetSubsets(Optional> datasetSplits = Optional.empty(); - + private Optional> datasetSubsets = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder datasetName(String datasetName) { Utils.checkNotNull(datasetName, "datasetName"); this.datasetName = datasetName; return this; } + /** - * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Splits to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ public Builder datasetSplits(List datasetSplits) { Utils.checkNotNull(datasetSplits, "datasetSplits"); @@ -197,7 +210,8 @@ public Builder datasetSplits(List datasetSplits) { } /** - * Splits to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Splits to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ public Builder datasetSplits(Optional> datasetSplits) { Utils.checkNotNull(datasetSplits, "datasetSplits"); @@ -205,8 +219,10 @@ public Builder datasetSplits(Optional> datasetSplits) { return this; } + /** - * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Dataset Subsets to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ public Builder datasetSubsets(List datasetSubsets) { Utils.checkNotNull(datasetSubsets, "datasetSubsets"); @@ -215,21 +231,22 @@ public Builder datasetSubsets(List datasetSubsets) { } /** - * Dataset Subsets to import. Will import all of them if nothing is provided (see https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) + * Dataset Subsets to import. Will import all of them if nothing is provided (see + * https://huggingface.co/docs/dataset-viewer/en/configs_and_splits for more details) */ public Builder datasetSubsets(Optional> datasetSubsets) { Utils.checkNotNull(datasetSubsets, "datasetSubsets"); this.datasetSubsets = datasetSubsets; return this; } - + public SourceHuggingFaceDatasets build() { + return new SourceHuggingFaceDatasets( - datasetName, - datasetSplits, - datasetSubsets); + datasetName, datasetSplits, datasetSubsets); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHumanitix.java b/src/main/java/com/airbyte/api/models/shared/SourceHumanitix.java index 343405c6f..52759cea2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHumanitix.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHumanitix.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceHumanitix { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Humanitix sourceType; @@ -39,9 +40,10 @@ public Humanitix sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceHumanitix withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceHumanitix withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceHumanitix other = (SourceHumanitix) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceHumanitix build() { + return new SourceHumanitix( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceHuntr.java b/src/main/java/com/airbyte/api/models/shared/SourceHuntr.java index a65d336ad..fff21ba03 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceHuntr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceHuntr.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceHuntr { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Huntr sourceType; @@ -39,9 +40,10 @@ public Huntr sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceHuntr withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceHuntr withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceHuntr other = (SourceHuntr) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceHuntr build() { + return new SourceHuntr( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIlluminaBasespace.java b/src/main/java/com/airbyte/api/models/shared/SourceIlluminaBasespace.java index e2e05ff22..96f718382 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIlluminaBasespace.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIlluminaBasespace.java @@ -13,13 +13,13 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceIlluminaBasespace { +public class SourceIlluminaBasespace { /** - * BaseSpace access token. Instructions for obtaining your access token can be found in the BaseSpace Developer Documentation. + * BaseSpace access token. Instructions for obtaining your access token can be found in the BaseSpace + * Developer Documentation. */ @JsonProperty("access_token") private String accessToken; @@ -30,11 +30,13 @@ public class SourceIlluminaBasespace { @JsonProperty("domain") private String domain; + @JsonProperty("sourceType") private IlluminaBasespace sourceType; /** - * Providing a user ID restricts the returned data to what that user can access. If you use the default ('current'), all data accessible to the user associated with the API key will be shown. + * Providing a user ID restricts the returned data to what that user can access. If you use the default + * ('current'), all data accessible to the user associated with the API key will be shown. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("user") @@ -61,7 +63,8 @@ public SourceIlluminaBasespace( } /** - * BaseSpace access token. Instructions for obtaining your access token can be found in the BaseSpace Developer Documentation. + * BaseSpace access token. Instructions for obtaining your access token can be found in the BaseSpace + * Developer Documentation. */ @JsonIgnore public String accessToken() { @@ -82,19 +85,22 @@ public IlluminaBasespace sourceType() { } /** - * Providing a user ID restricts the returned data to what that user can access. If you use the default ('current'), all data accessible to the user associated with the API key will be shown. + * Providing a user ID restricts the returned data to what that user can access. If you use the default + * ('current'), all data accessible to the user associated with the API key will be shown. */ @JsonIgnore public Optional user() { return user; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * BaseSpace access token. Instructions for obtaining your access token can be found in the BaseSpace Developer Documentation. + * BaseSpace access token. Instructions for obtaining your access token can be found in the BaseSpace + * Developer Documentation. */ public SourceIlluminaBasespace withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -112,7 +118,8 @@ public SourceIlluminaBasespace withDomain(String domain) { } /** - * Providing a user ID restricts the returned data to what that user can access. If you use the default ('current'), all data accessible to the user associated with the API key will be shown. + * Providing a user ID restricts the returned data to what that user can access. If you use the default + * ('current'), all data accessible to the user associated with the API key will be shown. */ public SourceIlluminaBasespace withUser(String user) { Utils.checkNotNull(user, "user"); @@ -120,8 +127,10 @@ public SourceIlluminaBasespace withUser(String user) { return this; } + /** - * Providing a user ID restricts the returned data to what that user can access. If you use the default ('current'), all data accessible to the user associated with the API key will be shown. + * Providing a user ID restricts the returned data to what that user can access. If you use the default + * ('current'), all data accessible to the user associated with the API key will be shown. */ public SourceIlluminaBasespace withUser(Optional user) { Utils.checkNotNull(user, "user"); @@ -129,7 +138,6 @@ public SourceIlluminaBasespace withUser(Optional user) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +148,16 @@ public boolean equals(java.lang.Object o) { } SourceIlluminaBasespace other = (SourceIlluminaBasespace) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.user, other.user); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.user, other.user); } @Override public int hashCode() { - return Objects.hash( - accessToken, - domain, - sourceType, + return Utils.enhancedHash( + accessToken, domain, sourceType, user); } @@ -163,21 +169,24 @@ public String toString() { "sourceType", sourceType, "user", user); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String domain; - + private Optional user; - + private Builder() { // force use of static builder() method } + /** - * BaseSpace access token. Instructions for obtaining your access token can be found in the BaseSpace Developer Documentation. + * BaseSpace access token. Instructions for obtaining your access token can be found in the BaseSpace + * Developer Documentation. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -185,6 +194,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * Domain name of the BaseSpace instance (e.g., euw2.sh.basespace.illumina.com) */ @@ -194,8 +204,10 @@ public Builder domain(String domain) { return this; } + /** - * Providing a user ID restricts the returned data to what that user can access. If you use the default ('current'), all data accessible to the user associated with the API key will be shown. + * Providing a user ID restricts the returned data to what that user can access. If you use the default + * ('current'), all data accessible to the user associated with the API key will be shown. */ public Builder user(String user) { Utils.checkNotNull(user, "user"); @@ -204,24 +216,25 @@ public Builder user(String user) { } /** - * Providing a user ID restricts the returned data to what that user can access. If you use the default ('current'), all data accessible to the user associated with the API key will be shown. + * Providing a user ID restricts the returned data to what that user can access. If you use the default + * ('current'), all data accessible to the user associated with the API key will be shown. */ public Builder user(Optional user) { Utils.checkNotNull(user, "user"); this.user = user; return this; } - + public SourceIlluminaBasespace build() { if (user == null) { user = _SINGLETON_VALUE_User.value(); } + return new SourceIlluminaBasespace( - accessToken, - domain, - user); + accessToken, domain, user); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceImagga.java b/src/main/java/com/airbyte/api/models/shared/SourceImagga.java index 9c52f3c93..6ab15226e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceImagga.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceImagga.java @@ -13,19 +13,20 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceImagga { +public class SourceImagga { /** - * Your Imagga API key, available in your Imagga dashboard. Could be found at `https://imagga.com/profile/dashboard` + * Your Imagga API key, available in your Imagga dashboard. Could be found at + * `https://imagga.com/profile/dashboard` */ @JsonProperty("api_key") private String apiKey; /** - * Your Imagga API secret, available in your Imagga dashboard. Could be found at `https://imagga.com/profile/dashboard` + * Your Imagga API secret, available in your Imagga dashboard. Could be found at + * `https://imagga.com/profile/dashboard` */ @JsonProperty("api_secret") private String apiSecret; @@ -37,6 +38,7 @@ public class SourceImagga { @JsonProperty("img_for_detection") private Optional imgForDetection; + @JsonProperty("sourceType") private Imagga sourceType; @@ -61,7 +63,8 @@ public SourceImagga( } /** - * Your Imagga API key, available in your Imagga dashboard. Could be found at `https://imagga.com/profile/dashboard` + * Your Imagga API key, available in your Imagga dashboard. Could be found at + * `https://imagga.com/profile/dashboard` */ @JsonIgnore public String apiKey() { @@ -69,7 +72,8 @@ public String apiKey() { } /** - * Your Imagga API secret, available in your Imagga dashboard. Could be found at `https://imagga.com/profile/dashboard` + * Your Imagga API secret, available in your Imagga dashboard. Could be found at + * `https://imagga.com/profile/dashboard` */ @JsonIgnore public String apiSecret() { @@ -89,12 +93,14 @@ public Imagga sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Imagga API key, available in your Imagga dashboard. Could be found at `https://imagga.com/profile/dashboard` + * Your Imagga API key, available in your Imagga dashboard. Could be found at + * `https://imagga.com/profile/dashboard` */ public SourceImagga withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -103,7 +109,8 @@ public SourceImagga withApiKey(String apiKey) { } /** - * Your Imagga API secret, available in your Imagga dashboard. Could be found at `https://imagga.com/profile/dashboard` + * Your Imagga API secret, available in your Imagga dashboard. Could be found at + * `https://imagga.com/profile/dashboard` */ public SourceImagga withApiSecret(String apiSecret) { Utils.checkNotNull(apiSecret, "apiSecret"); @@ -120,6 +127,7 @@ public SourceImagga withImgForDetection(String imgForDetection) { return this; } + /** * An image for detection endpoints */ @@ -129,7 +137,6 @@ public SourceImagga withImgForDetection(Optional imgForDetection) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +147,16 @@ public boolean equals(java.lang.Object o) { } SourceImagga other = (SourceImagga) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiSecret, other.apiSecret) && - Objects.deepEquals(this.imgForDetection, other.imgForDetection) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiSecret, other.apiSecret) && + Utils.enhancedDeepEquals(this.imgForDetection, other.imgForDetection) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiSecret, - imgForDetection, + return Utils.enhancedHash( + apiKey, apiSecret, imgForDetection, sourceType); } @@ -163,21 +168,24 @@ public String toString() { "imgForDetection", imgForDetection, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String apiSecret; - + private Optional imgForDetection; - + private Builder() { // force use of static builder() method } + /** - * Your Imagga API key, available in your Imagga dashboard. Could be found at `https://imagga.com/profile/dashboard` + * Your Imagga API key, available in your Imagga dashboard. Could be found at + * `https://imagga.com/profile/dashboard` */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -185,8 +193,10 @@ public Builder apiKey(String apiKey) { return this; } + /** - * Your Imagga API secret, available in your Imagga dashboard. Could be found at `https://imagga.com/profile/dashboard` + * Your Imagga API secret, available in your Imagga dashboard. Could be found at + * `https://imagga.com/profile/dashboard` */ public Builder apiSecret(String apiSecret) { Utils.checkNotNull(apiSecret, "apiSecret"); @@ -194,6 +204,7 @@ public Builder apiSecret(String apiSecret) { return this; } + /** * An image for detection endpoints */ @@ -211,17 +222,17 @@ public Builder imgForDetection(Optional imgForDetection) { this.imgForDetection = imgForDetection; return this; } - + public SourceImagga build() { if (imgForDetection == null) { imgForDetection = _SINGLETON_VALUE_ImgForDetection.value(); } + return new SourceImagga( - apiKey, - apiSecret, - imgForDetection); + apiKey, apiSecret, imgForDetection); } + private static final LazySingletonValue> _SINGLETON_VALUE_ImgForDetection = new LazySingletonValue<>( "img_for_detection", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIncidentIo.java b/src/main/java/com/airbyte/api/models/shared/SourceIncidentIo.java index 4f1e3dafd..538d02643 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIncidentIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIncidentIo.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceIncidentIo { +public class SourceIncidentIo { /** * API key to use. Find it at https://app.incident.io/settings/api-keys */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private IncidentIo sourceType; @@ -45,9 +45,10 @@ public IncidentIo sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it at https://app.incident.io/settings/api-keys @@ -58,7 +59,6 @@ public SourceIncidentIo withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceIncidentIo other = (SourceIncidentIo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it at https://app.incident.io/settings/api-keys */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceIncidentIo build() { + return new SourceIncidentIo( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInflowinventory.java b/src/main/java/com/airbyte/api/models/shared/SourceInflowinventory.java index cef1ebc1b..58d675623 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInflowinventory.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInflowinventory.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceInflowinventory { @JsonProperty("api_key") private String apiKey; + @JsonProperty("companyid") private String companyid; + @JsonProperty("sourceType") private Inflowinventory sourceType; @@ -50,9 +52,10 @@ public Inflowinventory sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceInflowinventory withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -66,7 +69,6 @@ public SourceInflowinventory withCompanyid(String companyid) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceInflowinventory other = (SourceInflowinventory) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.companyid, other.companyid) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.companyid, other.companyid) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - companyid, - sourceType); + return Utils.enhancedHash( + apiKey, companyid, sourceType); } @Override @@ -97,35 +97,39 @@ public String toString() { "companyid", companyid, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String companyid; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder companyid(String companyid) { Utils.checkNotNull(companyid, "companyid"); this.companyid = companyid; return this; } - + public SourceInflowinventory build() { + return new SourceInflowinventory( - apiKey, - companyid); + apiKey, companyid); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInsightful.java b/src/main/java/com/airbyte/api/models/shared/SourceInsightful.java index 1053799f2..9a8aa6bb3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInsightful.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInsightful.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceInsightful { +public class SourceInsightful { /** - * Your API token for accessing the Insightful API. Generate it by logging in as an Admin to your organization's account, navigating to the API page, and creating a new token. Note that this token will only be shown once, so store it securely. + * Your API token for accessing the Insightful API. Generate it by logging in as an Admin to your + * organization's account, navigating to the API page, and creating a new token. Note that this token + * will only be shown once, so store it securely. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Insightful sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +43,9 @@ public SourceInsightful( } /** - * Your API token for accessing the Insightful API. Generate it by logging in as an Admin to your organization's account, navigating to the API page, and creating a new token. Note that this token will only be shown once, so store it securely. + * Your API token for accessing the Insightful API. Generate it by logging in as an Admin to your + * organization's account, navigating to the API page, and creating a new token. Note that this token + * will only be shown once, so store it securely. */ @JsonIgnore public String apiToken() { @@ -57,12 +62,15 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API token for accessing the Insightful API. Generate it by logging in as an Admin to your organization's account, navigating to the API page, and creating a new token. Note that this token will only be shown once, so store it securely. + * Your API token for accessing the Insightful API. Generate it by logging in as an Admin to your + * organization's account, navigating to the API page, and creating a new token. Note that this token + * will only be shown once, so store it securely. */ public SourceInsightful withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -76,7 +84,6 @@ public SourceInsightful withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +94,15 @@ public boolean equals(java.lang.Object o) { } SourceInsightful other = (SourceInsightful) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType, - startDate); + return Utils.enhancedHash( + apiToken, sourceType, startDate); } @Override @@ -107,19 +112,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your API token for accessing the Insightful API. Generate it by logging in as an Admin to your organization's account, navigating to the API page, and creating a new token. Note that this token will only be shown once, so store it securely. + * Your API token for accessing the Insightful API. Generate it by logging in as an Admin to your + * organization's account, navigating to the API page, and creating a new token. Note that this token + * will only be shown once, so store it securely. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -127,18 +136,20 @@ public Builder apiToken(String apiToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceInsightful build() { + return new SourceInsightful( - apiToken, - startDate); + apiToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInsightly.java b/src/main/java/com/airbyte/api/models/shared/SourceInsightly.java index 436c139f6..bc14b42c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInsightly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInsightly.java @@ -14,16 +14,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceInsightly { @JsonProperty("sourceType") private Insightly sourceType; /** - * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams. + * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. Note that it will be used only for + * incremental streams. */ @JsonInclude(Include.ALWAYS) @JsonProperty("start_date") @@ -57,7 +59,9 @@ public Insightly sourceType() { } /** - * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams. + * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. Note that it will be used only for + * incremental streams. */ @JsonIgnore public Optional startDate() { @@ -72,12 +76,15 @@ public Optional token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams. + * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. Note that it will be used only for + * incremental streams. */ public SourceInsightly withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -85,8 +92,11 @@ public SourceInsightly withStartDate(OffsetDateTime startDate) { return this; } + /** - * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams. + * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. Note that it will be used only for + * incremental streams. */ public SourceInsightly withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -103,6 +113,7 @@ public SourceInsightly withToken(String token) { return this; } + /** * Your Insightly API token. */ @@ -112,7 +123,6 @@ public SourceInsightly withToken(Optional token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -123,17 +133,15 @@ public boolean equals(java.lang.Object o) { } SourceInsightly other = (SourceInsightly) o; return - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - sourceType, - startDate, - token); + return Utils.enhancedHash( + sourceType, startDate, token); } @Override @@ -143,19 +151,23 @@ public String toString() { "startDate", startDate, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional startDate = Optional.empty(); - + private Optional token = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams. + * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. Note that it will be used only for + * incremental streams. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -164,7 +176,9 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only for incremental streams. + * The date from which you'd like to replicate data for Insightly in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. Note that it will be used only for + * incremental streams. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -172,6 +186,7 @@ public Builder startDate(Optional startDate) { return this; } + /** * Your Insightly API token. */ @@ -189,13 +204,14 @@ public Builder token(Optional token) { this.token = token; return this; } - + public SourceInsightly build() { + return new SourceInsightly( - startDate, - token); + startDate, token); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInstagram.java b/src/main/java/com/airbyte/api/models/shared/SourceInstagram.java index a50eaf604..51f7d45c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInstagram.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInstagram.java @@ -15,13 +15,15 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceInstagram { +public class SourceInstagram { /** - * The value of the access token generated with <b>instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access</b> permissions. See the <a href="https://docs.airbyte.com/integrations/sources/instagram/#step-1-set-up-instagram">docs</a> for more information + * The value of the access token generated with instagram_basic, instagram_manage_insights, + * pages_show_list, pages_read_engagement, Instagram Public Content Access permissions. See the docs for + * more information */ @JsonProperty("access_token") private String accessToken; @@ -47,11 +49,14 @@ public class SourceInstagram { @JsonProperty("num_workers") private Optional numWorkers; + @JsonProperty("sourceType") private SourceInstagramInstagram sourceType; /** - * The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the start date will be set to 2 years before the present date. + * The date from which you'd like to replicate data for User Insights, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the + * start date will be set to 2 years before the present date. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -79,11 +84,15 @@ public SourceInstagram( public SourceInstagram( String accessToken) { - this(accessToken, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(accessToken, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** - * The value of the access token generated with <b>instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access</b> permissions. See the <a href="https://docs.airbyte.com/integrations/sources/instagram/#step-1-set-up-instagram">docs</a> for more information + * The value of the access token generated with instagram_basic, instagram_manage_insights, + * pages_show_list, pages_read_engagement, Instagram Public Content Access permissions. See the docs for + * more information */ @JsonIgnore public String accessToken() { @@ -120,19 +129,25 @@ public SourceInstagramInstagram sourceType() { } /** - * The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the start date will be set to 2 years before the present date. + * The date from which you'd like to replicate data for User Insights, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the + * start date will be set to 2 years before the present date. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The value of the access token generated with <b>instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access</b> permissions. See the <a href="https://docs.airbyte.com/integrations/sources/instagram/#step-1-set-up-instagram">docs</a> for more information + * The value of the access token generated with instagram_basic, instagram_manage_insights, + * pages_show_list, pages_read_engagement, Instagram Public Content Access permissions. See the docs for + * more information */ public SourceInstagram withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -149,6 +164,7 @@ public SourceInstagram withClientId(String clientId) { return this; } + /** * The Client ID for your Oauth application */ @@ -167,6 +183,7 @@ public SourceInstagram withClientSecret(String clientSecret) { return this; } + /** * The Client Secret for your Oauth application */ @@ -185,6 +202,7 @@ public SourceInstagram withNumWorkers(long numWorkers) { return this; } + /** * The number of worker threads to use for the sync. */ @@ -195,7 +213,9 @@ public SourceInstagram withNumWorkers(Optional numWorkers) { } /** - * The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the start date will be set to 2 years before the present date. + * The date from which you'd like to replicate data for User Insights, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the + * start date will be set to 2 years before the present date. */ public SourceInstagram withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -203,8 +223,11 @@ public SourceInstagram withStartDate(OffsetDateTime startDate) { return this; } + /** - * The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the start date will be set to 2 years before the present date. + * The date from which you'd like to replicate data for User Insights, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the + * start date will be set to 2 years before the present date. */ public SourceInstagram withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -212,7 +235,6 @@ public SourceInstagram withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -223,23 +245,19 @@ public boolean equals(java.lang.Object o) { } SourceInstagram other = (SourceInstagram) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.numWorkers, other.numWorkers) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - clientId, - clientSecret, - numWorkers, - sourceType, - startDate); + return Utils.enhancedHash( + accessToken, clientId, clientSecret, + numWorkers, sourceType, startDate); } @Override @@ -252,25 +270,30 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Optional numWorkers; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The value of the access token generated with <b>instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement, Instagram Public Content Access</b> permissions. See the <a href="https://docs.airbyte.com/integrations/sources/instagram/#step-1-set-up-instagram">docs</a> for more information + * The value of the access token generated with instagram_basic, instagram_manage_insights, + * pages_show_list, pages_read_engagement, Instagram Public Content Access permissions. See the docs for + * more information */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -278,6 +301,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Client ID for your Oauth application */ @@ -296,6 +320,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret for your Oauth application */ @@ -314,6 +339,7 @@ public Builder clientSecret(Optional clientSecret) { return this; } + /** * The number of worker threads to use for the sync. */ @@ -332,8 +358,11 @@ public Builder numWorkers(Optional numWorkers) { return this; } + /** - * The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the start date will be set to 2 years before the present date. + * The date from which you'd like to replicate data for User Insights, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the + * start date will be set to 2 years before the present date. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -342,26 +371,27 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date from which you'd like to replicate data for User Insights, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the start date will be set to 2 years before the present date. + * The date from which you'd like to replicate data for User Insights, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. If left blank, the + * start date will be set to 2 years before the present date. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceInstagram build() { if (numWorkers == null) { numWorkers = _SINGLETON_VALUE_NumWorkers.value(); } + return new SourceInstagram( - accessToken, - clientId, - clientSecret, - numWorkers, - startDate); + accessToken, clientId, clientSecret, + numWorkers, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = new LazySingletonValue<>( "num_workers", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java b/src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java index 602356411..4d92bcdf8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInstagramInstagram.java @@ -14,7 +14,7 @@ public enum SourceInstagramInstagram { @JsonValue private final String value; - private SourceInstagramInstagram(String value) { + SourceInstagramInstagram(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInstatus.java b/src/main/java/com/airbyte/api/models/shared/SourceInstatus.java index f58183c6d..d16ecd824 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInstatus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInstatus.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceInstatus { +public class SourceInstatus { /** * Instatus REST API key */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Instatus sourceType; @@ -45,9 +45,10 @@ public Instatus sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Instatus REST API key @@ -58,7 +59,6 @@ public SourceInstatus withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceInstatus other = (SourceInstatus) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * Instatus REST API key */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceInstatus build() { + return new SourceInstatus( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIntercom.java b/src/main/java/com/airbyte/api/models/shared/SourceIntercom.java index 53e3faaa6..1e7983b7f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIntercom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIntercom.java @@ -15,13 +15,14 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceIntercom { +public class SourceIntercom { /** - * Access token for making authenticated requests. See the <a href="https://developers.intercom.com/building-apps/docs/authentication-types#how-to-get-your-access-token">Intercom docs</a> for more information. + * Access token for making authenticated requests. See the Intercom + * docs for more information. */ @JsonProperty("access_token") private String accessToken; @@ -54,11 +55,13 @@ public class SourceIntercom { @JsonProperty("lookback_window") private Optional lookbackWindow; + @JsonProperty("sourceType") private Intercom sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -89,11 +92,14 @@ public SourceIntercom( public SourceIntercom( String accessToken, OffsetDateTime startDate) { - this(accessToken, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate); + this(accessToken, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), startDate); } /** - * Access token for making authenticated requests. See the <a href="https://developers.intercom.com/building-apps/docs/authentication-types#how-to-get-your-access-token">Intercom docs</a> for more information. + * Access token for making authenticated requests. See the Intercom + * docs for more information. */ @JsonIgnore public String accessToken() { @@ -138,19 +144,23 @@ public Intercom sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Access token for making authenticated requests. See the <a href="https://developers.intercom.com/building-apps/docs/authentication-types#how-to-get-your-access-token">Intercom docs</a> for more information. + * Access token for making authenticated requests. See the Intercom + * docs for more information. */ public SourceIntercom withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -167,6 +177,7 @@ public SourceIntercom withActivityLogsTimeStep(long activityLogsTimeStep) { return this; } + /** * Set lower value in case of failing long running sync of Activity Logs stream. */ @@ -185,6 +196,7 @@ public SourceIntercom withClientId(String clientId) { return this; } + /** * Client Id for your Intercom application. */ @@ -203,6 +215,7 @@ public SourceIntercom withClientSecret(String clientSecret) { return this; } + /** * Client Secret for your Intercom application. */ @@ -221,6 +234,7 @@ public SourceIntercom withLookbackWindow(long lookbackWindow) { return this; } + /** * The number of days to shift the state value backward for record sync */ @@ -231,7 +245,8 @@ public SourceIntercom withLookbackWindow(Optional lookbackWindow) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceIntercom withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -239,7 +254,6 @@ public SourceIntercom withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -250,24 +264,20 @@ public boolean equals(java.lang.Object o) { } SourceIntercom other = (SourceIntercom) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.activityLogsTimeStep, other.activityLogsTimeStep) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.lookbackWindow, other.lookbackWindow) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.activityLogsTimeStep, other.activityLogsTimeStep) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.lookbackWindow, other.lookbackWindow) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - activityLogsTimeStep, - clientId, - clientSecret, - lookbackWindow, - sourceType, + return Utils.enhancedHash( + accessToken, activityLogsTimeStep, clientId, + clientSecret, lookbackWindow, sourceType, startDate); } @@ -282,27 +292,31 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Optional activityLogsTimeStep; - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Optional lookbackWindow; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Access token for making authenticated requests. See the <a href="https://developers.intercom.com/building-apps/docs/authentication-types#how-to-get-your-access-token">Intercom docs</a> for more information. + * Access token for making authenticated requests. See the Intercom + * docs for more information. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -310,6 +324,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * Set lower value in case of failing long running sync of Activity Logs stream. */ @@ -328,6 +343,7 @@ public Builder activityLogsTimeStep(Optional activityLogsTimeStep) { return this; } + /** * Client Id for your Intercom application. */ @@ -346,6 +362,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * Client Secret for your Intercom application. */ @@ -364,6 +381,7 @@ public Builder clientSecret(Optional clientSecret) { return this; } + /** * The number of days to shift the state value backward for record sync */ @@ -382,15 +400,17 @@ public Builder lookbackWindow(Optional lookbackWindow) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceIntercom build() { if (activityLogsTimeStep == null) { activityLogsTimeStep = _SINGLETON_VALUE_ActivityLogsTimeStep.value(); @@ -398,15 +418,13 @@ public SourceIntercom build() { if (lookbackWindow == null) { lookbackWindow = _SINGLETON_VALUE_LookbackWindow.value(); } + return new SourceIntercom( - accessToken, - activityLogsTimeStep, - clientId, - clientSecret, - lookbackWindow, - startDate); + accessToken, activityLogsTimeStep, clientId, + clientSecret, lookbackWindow, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_ActivityLogsTimeStep = new LazySingletonValue<>( "activity_logs_time_step", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIntruder.java b/src/main/java/com/airbyte/api/models/shared/SourceIntruder.java index 5c368d5af..aaa70ec4c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIntruder.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIntruder.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceIntruder { +public class SourceIntruder { /** - * Your API Access token. See <a href="https://developers.intruder.io/docs/authentication">here</a>. + * Your API Access token. See here. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Intruder sourceType; @@ -33,7 +33,7 @@ public SourceIntruder( } /** - * Your API Access token. See <a href="https://developers.intruder.io/docs/authentication">here</a>. + * Your API Access token. See here. */ @JsonIgnore public String accessToken() { @@ -45,12 +45,13 @@ public Intruder sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Access token. See <a href="https://developers.intruder.io/docs/authentication">here</a>. + * Your API Access token. See here. */ public SourceIntruder withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -58,7 +59,6 @@ public SourceIntruder withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceIntruder other = (SourceIntruder) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType); + return Utils.enhancedHash( + accessToken, sourceType); } @Override @@ -86,29 +85,33 @@ public String toString() { "accessToken", accessToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * Your API Access token. See <a href="https://developers.intruder.io/docs/authentication">here</a>. + * Your API Access token. See here. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public SourceIntruder build() { + return new SourceIntruder( accessToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInvoiced.java b/src/main/java/com/airbyte/api/models/shared/SourceInvoiced.java index 51ecc387f..34a2deec5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInvoiced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInvoiced.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceInvoiced { +public class SourceInvoiced { /** * API key to use. Find it at https://invoiced.com/account */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Invoiced sourceType; @@ -45,9 +45,10 @@ public Invoiced sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it at https://invoiced.com/account @@ -58,7 +59,6 @@ public SourceInvoiced withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceInvoiced other = (SourceInvoiced) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it at https://invoiced.com/account */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceInvoiced build() { + return new SourceInvoiced( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceInvoiceninja.java b/src/main/java/com/airbyte/api/models/shared/SourceInvoiceninja.java index b2153ae7d..f513071c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceInvoiceninja.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceInvoiceninja.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceInvoiceninja { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Invoiceninja sourceType; @@ -39,9 +40,10 @@ public Invoiceninja sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceInvoiceninja withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceInvoiceninja withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceInvoiceninja other = (SourceInvoiceninja) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceInvoiceninja build() { + return new SourceInvoiceninja( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java b/src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java index be08ddf11..93d870fda 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIp2whois.java @@ -13,25 +13,25 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceIp2whois { +public class SourceIp2whois { /** - * Your API Key. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Your API Key. See here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("api_key") private Optional apiKey; /** - * Domain name. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Domain name. See here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("domain") private Optional domain; + @JsonProperty("sourceType") private Ip2whois sourceType; @@ -51,7 +51,7 @@ public SourceIp2whois() { } /** - * Your API Key. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Your API Key. See here. */ @JsonIgnore public Optional apiKey() { @@ -59,7 +59,7 @@ public Optional apiKey() { } /** - * Domain name. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Domain name. See here. */ @JsonIgnore public Optional domain() { @@ -71,12 +71,13 @@ public Ip2whois sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Key. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Your API Key. See here. */ public SourceIp2whois withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -84,8 +85,9 @@ public SourceIp2whois withApiKey(String apiKey) { return this; } + /** - * Your API Key. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Your API Key. See here. */ public SourceIp2whois withApiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -94,7 +96,7 @@ public SourceIp2whois withApiKey(Optional apiKey) { } /** - * Domain name. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Domain name. See here. */ public SourceIp2whois withDomain(String domain) { Utils.checkNotNull(domain, "domain"); @@ -102,8 +104,9 @@ public SourceIp2whois withDomain(String domain) { return this; } + /** - * Domain name. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Domain name. See here. */ public SourceIp2whois withDomain(Optional domain) { Utils.checkNotNull(domain, "domain"); @@ -111,7 +114,6 @@ public SourceIp2whois withDomain(Optional domain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,17 +124,15 @@ public boolean equals(java.lang.Object o) { } SourceIp2whois other = (SourceIp2whois) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - domain, - sourceType); + return Utils.enhancedHash( + apiKey, domain, sourceType); } @Override @@ -142,19 +142,21 @@ public String toString() { "domain", domain, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey = Optional.empty(); - + private Optional domain = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Your API Key. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Your API Key. See here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -163,7 +165,7 @@ public Builder apiKey(String apiKey) { } /** - * Your API Key. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Your API Key. See here. */ public Builder apiKey(Optional apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -171,8 +173,9 @@ public Builder apiKey(Optional apiKey) { return this; } + /** - * Domain name. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Domain name. See here. */ public Builder domain(String domain) { Utils.checkNotNull(domain, "domain"); @@ -181,20 +184,21 @@ public Builder domain(String domain) { } /** - * Domain name. See <a href="https://www.ip2whois.com/developers-api">here</a>. + * Domain name. See here. */ public Builder domain(Optional domain) { Utils.checkNotNull(domain, "domain"); this.domain = domain; return this; } - + public SourceIp2whois build() { + return new SourceIp2whois( - apiKey, - domain); + apiKey, domain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceIterable.java b/src/main/java/com/airbyte/api/models/shared/SourceIterable.java index d55c2126a..dd2b24749 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceIterable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceIterable.java @@ -12,21 +12,24 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceIterable { +public class SourceIterable { /** - * Iterable API Key. See the <a href=\"https://docs.airbyte.com/integrations/sources/iterable\">docs</a> for more information on how to obtain this key. + * Iterable API Key. See the <a + * href=\"https://docs.airbyte.com/integrations/sources/iterable\">docs</a> for more + * information on how to obtain this key. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Iterable sourceType; /** - * The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -43,7 +46,9 @@ public SourceIterable( } /** - * Iterable API Key. See the <a href=\"https://docs.airbyte.com/integrations/sources/iterable\">docs</a> for more information on how to obtain this key. + * Iterable API Key. See the <a + * href=\"https://docs.airbyte.com/integrations/sources/iterable\">docs</a> for more + * information on how to obtain this key. */ @JsonIgnore public String apiKey() { @@ -56,19 +61,23 @@ public Iterable sourceType() { } /** - * The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Iterable API Key. See the <a href=\"https://docs.airbyte.com/integrations/sources/iterable\">docs</a> for more information on how to obtain this key. + * Iterable API Key. See the <a + * href=\"https://docs.airbyte.com/integrations/sources/iterable\">docs</a> for more + * information on how to obtain this key. */ public SourceIterable withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -77,7 +86,8 @@ public SourceIterable withApiKey(String apiKey) { } /** - * The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. */ public SourceIterable withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -85,7 +95,6 @@ public SourceIterable withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -96,17 +105,15 @@ public boolean equals(java.lang.Object o) { } SourceIterable other = (SourceIterable) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -116,19 +123,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Iterable API Key. See the <a href=\"https://docs.airbyte.com/integrations/sources/iterable\">docs</a> for more information on how to obtain this key. + * Iterable API Key. See the <a + * href=\"https://docs.airbyte.com/integrations/sources/iterable\">docs</a> for more + * information on how to obtain this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -136,21 +147,24 @@ public Builder apiKey(String apiKey) { return this; } + /** - * The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Iterable, in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceIterable build() { + return new SourceIterable( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJamfPro.java b/src/main/java/com/airbyte/api/models/shared/SourceJamfPro.java index a06d8d960..7976c3c54 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJamfPro.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJamfPro.java @@ -13,15 +13,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceJamfPro { @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private JamfPro sourceType; @@ -31,6 +32,7 @@ public class SourceJamfPro { @JsonProperty("subdomain") private String subdomain; + @JsonProperty("username") private String username; @@ -77,9 +79,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceJamfPro withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -87,6 +90,7 @@ public SourceJamfPro withPassword(String password) { return this; } + public SourceJamfPro withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -108,7 +112,6 @@ public SourceJamfPro withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -119,18 +122,16 @@ public boolean equals(java.lang.Object o) { } SourceJamfPro other = (SourceJamfPro) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.subdomain, other.subdomain) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - subdomain, + return Utils.enhancedHash( + password, sourceType, subdomain, username); } @@ -142,19 +143,21 @@ public String toString() { "subdomain", subdomain, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private String subdomain; - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -167,6 +170,7 @@ public Builder password(Optional password) { return this; } + /** * The unique subdomain for your Jamf Pro instance. */ @@ -176,19 +180,20 @@ public Builder subdomain(String subdomain) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceJamfPro build() { + return new SourceJamfPro( - password, - subdomain, - username); + password, subdomain, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJira.java b/src/main/java/com/airbyte/api/models/shared/SourceJira.java index e2c75b4c9..db41ddfc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJira.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJira.java @@ -11,45 +11,41 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; -import java.lang.Boolean; import java.lang.Long; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceJira { +public class SourceJira { /** - * Jira API Token. See the <a href="https://docs.airbyte.com/integrations/sources/jira">docs</a> for more information on how to generate this key. API Token is used for Authorization to your account by BasicAuth. + * Jira API Token. See the docs for + * more information on how to generate this key. API Token is used for Authorization to your account by + * BasicAuth. */ @JsonProperty("api_token") private String apiToken; /** - * The Domain for your Jira account, e.g. airbyteio.atlassian.net, airbyteio.jira.com, jira.your-domain.com + * The Domain for your Jira account, e.g. airbyteio.atlassian.net, airbyteio.jira.com, + * jira.your-domain.com */ @JsonProperty("domain") private String domain; /** - * The user email for your Jira account which you used to generate the API token. This field is used for Authorization to your account by BasicAuth. + * The user email for your Jira account which you used to generate the API token. This field is used + * for Authorization to your account by BasicAuth. */ @JsonProperty("email") private String email; /** - * Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("enable_experimental_streams") - private Optional enableExperimentalStreams; - - /** - * When set to N, the connector will always refresh resources created within the past N minutes. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N minutes. By + * default, updated objects that are not newly created are not incrementally synced. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lookback_window_minutes") @@ -63,17 +59,24 @@ public class SourceJira { private Optional numWorkers; /** - * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects. + * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for + * all projects. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("projects") private Optional> projects; + @JsonProperty("sourceType") private Jira sourceType; /** - * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the <a href="https://docs.airbyte.com/integrations/sources/jira/">documentation</a>. + * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note + * that this field only applies to certain streams, and only data generated on or after the start date + * will be replicated. Or leave it empty if you want to replicate all data. + * + *

    For more information, refer to the documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -84,7 +87,6 @@ public SourceJira( @JsonProperty("api_token") String apiToken, @JsonProperty("domain") String domain, @JsonProperty("email") String email, - @JsonProperty("enable_experimental_streams") Optional enableExperimentalStreams, @JsonProperty("lookback_window_minutes") Optional lookbackWindowMinutes, @JsonProperty("num_workers") Optional numWorkers, @JsonProperty("projects") Optional> projects, @@ -92,7 +94,6 @@ public SourceJira( Utils.checkNotNull(apiToken, "apiToken"); Utils.checkNotNull(domain, "domain"); Utils.checkNotNull(email, "email"); - Utils.checkNotNull(enableExperimentalStreams, "enableExperimentalStreams"); Utils.checkNotNull(lookbackWindowMinutes, "lookbackWindowMinutes"); Utils.checkNotNull(numWorkers, "numWorkers"); Utils.checkNotNull(projects, "projects"); @@ -100,7 +101,6 @@ public SourceJira( this.apiToken = apiToken; this.domain = domain; this.email = email; - this.enableExperimentalStreams = enableExperimentalStreams; this.lookbackWindowMinutes = lookbackWindowMinutes; this.numWorkers = numWorkers; this.projects = projects; @@ -112,11 +112,15 @@ public SourceJira( String apiToken, String domain, String email) { - this(apiToken, domain, email, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(apiToken, domain, email, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * Jira API Token. See the <a href="https://docs.airbyte.com/integrations/sources/jira">docs</a> for more information on how to generate this key. API Token is used for Authorization to your account by BasicAuth. + * Jira API Token. See the docs for + * more information on how to generate this key. API Token is used for Authorization to your account by + * BasicAuth. */ @JsonIgnore public String apiToken() { @@ -124,7 +128,8 @@ public String apiToken() { } /** - * The Domain for your Jira account, e.g. airbyteio.atlassian.net, airbyteio.jira.com, jira.your-domain.com + * The Domain for your Jira account, e.g. airbyteio.atlassian.net, airbyteio.jira.com, + * jira.your-domain.com */ @JsonIgnore public String domain() { @@ -132,7 +137,8 @@ public String domain() { } /** - * The user email for your Jira account which you used to generate the API token. This field is used for Authorization to your account by BasicAuth. + * The user email for your Jira account which you used to generate the API token. This field is used + * for Authorization to your account by BasicAuth. */ @JsonIgnore public String email() { @@ -140,15 +146,8 @@ public String email() { } /** - * Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. - */ - @JsonIgnore - public Optional enableExperimentalStreams() { - return enableExperimentalStreams; - } - - /** - * When set to N, the connector will always refresh resources created within the past N minutes. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N minutes. By + * default, updated objects that are not newly created are not incrementally synced. */ @JsonIgnore public Optional lookbackWindowMinutes() { @@ -164,7 +163,8 @@ public Optional numWorkers() { } /** - * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects. + * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for + * all projects. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -178,19 +178,27 @@ public Jira sourceType() { } /** - * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the <a href="https://docs.airbyte.com/integrations/sources/jira/">documentation</a>. + * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note + * that this field only applies to certain streams, and only data generated on or after the start date + * will be replicated. Or leave it empty if you want to replicate all data. + * + *

    For more information, refer to the documentation. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Jira API Token. See the <a href="https://docs.airbyte.com/integrations/sources/jira">docs</a> for more information on how to generate this key. API Token is used for Authorization to your account by BasicAuth. + * Jira API Token. See the docs for + * more information on how to generate this key. API Token is used for Authorization to your account by + * BasicAuth. */ public SourceJira withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -199,7 +207,8 @@ public SourceJira withApiToken(String apiToken) { } /** - * The Domain for your Jira account, e.g. airbyteio.atlassian.net, airbyteio.jira.com, jira.your-domain.com + * The Domain for your Jira account, e.g. airbyteio.atlassian.net, airbyteio.jira.com, + * jira.your-domain.com */ public SourceJira withDomain(String domain) { Utils.checkNotNull(domain, "domain"); @@ -208,7 +217,8 @@ public SourceJira withDomain(String domain) { } /** - * The user email for your Jira account which you used to generate the API token. This field is used for Authorization to your account by BasicAuth. + * The user email for your Jira account which you used to generate the API token. This field is used + * for Authorization to your account by BasicAuth. */ public SourceJira withEmail(String email) { Utils.checkNotNull(email, "email"); @@ -217,25 +227,8 @@ public SourceJira withEmail(String email) { } /** - * Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. - */ - public SourceJira withEnableExperimentalStreams(boolean enableExperimentalStreams) { - Utils.checkNotNull(enableExperimentalStreams, "enableExperimentalStreams"); - this.enableExperimentalStreams = Optional.ofNullable(enableExperimentalStreams); - return this; - } - - /** - * Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. - */ - public SourceJira withEnableExperimentalStreams(Optional enableExperimentalStreams) { - Utils.checkNotNull(enableExperimentalStreams, "enableExperimentalStreams"); - this.enableExperimentalStreams = enableExperimentalStreams; - return this; - } - - /** - * When set to N, the connector will always refresh resources created within the past N minutes. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N minutes. By + * default, updated objects that are not newly created are not incrementally synced. */ public SourceJira withLookbackWindowMinutes(long lookbackWindowMinutes) { Utils.checkNotNull(lookbackWindowMinutes, "lookbackWindowMinutes"); @@ -243,8 +236,10 @@ public SourceJira withLookbackWindowMinutes(long lookbackWindowMinutes) { return this; } + /** - * When set to N, the connector will always refresh resources created within the past N minutes. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N minutes. By + * default, updated objects that are not newly created are not incrementally synced. */ public SourceJira withLookbackWindowMinutes(Optional lookbackWindowMinutes) { Utils.checkNotNull(lookbackWindowMinutes, "lookbackWindowMinutes"); @@ -261,6 +256,7 @@ public SourceJira withNumWorkers(long numWorkers) { return this; } + /** * The number of worker threads to use for the sync. */ @@ -271,7 +267,8 @@ public SourceJira withNumWorkers(Optional numWorkers) { } /** - * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects. + * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for + * all projects. */ public SourceJira withProjects(List projects) { Utils.checkNotNull(projects, "projects"); @@ -279,8 +276,10 @@ public SourceJira withProjects(List projects) { return this; } + /** - * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects. + * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for + * all projects. */ public SourceJira withProjects(Optional> projects) { Utils.checkNotNull(projects, "projects"); @@ -289,7 +288,12 @@ public SourceJira withProjects(Optional> projects) { } /** - * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the <a href="https://docs.airbyte.com/integrations/sources/jira/">documentation</a>. + * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note + * that this field only applies to certain streams, and only data generated on or after the start date + * will be replicated. Or leave it empty if you want to replicate all data. + * + *

    For more information, refer to the documentation. */ public SourceJira withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -297,8 +301,14 @@ public SourceJira withStartDate(OffsetDateTime startDate) { return this; } + /** - * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the <a href="https://docs.airbyte.com/integrations/sources/jira/">documentation</a>. + * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note + * that this field only applies to certain streams, and only data generated on or after the start date + * will be replicated. Or leave it empty if you want to replicate all data. + * + *

    For more information, refer to the documentation. */ public SourceJira withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -306,7 +316,6 @@ public SourceJira withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -317,29 +326,22 @@ public boolean equals(java.lang.Object o) { } SourceJira other = (SourceJira) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.enableExperimentalStreams, other.enableExperimentalStreams) && - Objects.deepEquals(this.lookbackWindowMinutes, other.lookbackWindowMinutes) && - Objects.deepEquals(this.numWorkers, other.numWorkers) && - Objects.deepEquals(this.projects, other.projects) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.lookbackWindowMinutes, other.lookbackWindowMinutes) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.projects, other.projects) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiToken, - domain, - email, - enableExperimentalStreams, - lookbackWindowMinutes, - numWorkers, - projects, - sourceType, - startDate); + return Utils.enhancedHash( + apiToken, domain, email, + lookbackWindowMinutes, numWorkers, projects, + sourceType, startDate); } @Override @@ -348,38 +350,39 @@ public String toString() { "apiToken", apiToken, "domain", domain, "email", email, - "enableExperimentalStreams", enableExperimentalStreams, "lookbackWindowMinutes", lookbackWindowMinutes, "numWorkers", numWorkers, "projects", projects, "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private String domain; - + private String email; - - private Optional enableExperimentalStreams; - + private Optional lookbackWindowMinutes; - + private Optional numWorkers; - + private Optional> projects = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Jira API Token. See the <a href="https://docs.airbyte.com/integrations/sources/jira">docs</a> for more information on how to generate this key. API Token is used for Authorization to your account by BasicAuth. + * Jira API Token. See the docs for + * more information on how to generate this key. API Token is used for Authorization to your account by + * BasicAuth. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -387,8 +390,10 @@ public Builder apiToken(String apiToken) { return this; } + /** - * The Domain for your Jira account, e.g. airbyteio.atlassian.net, airbyteio.jira.com, jira.your-domain.com + * The Domain for your Jira account, e.g. airbyteio.atlassian.net, airbyteio.jira.com, + * jira.your-domain.com */ public Builder domain(String domain) { Utils.checkNotNull(domain, "domain"); @@ -396,8 +401,10 @@ public Builder domain(String domain) { return this; } + /** - * The user email for your Jira account which you used to generate the API token. This field is used for Authorization to your account by BasicAuth. + * The user email for your Jira account which you used to generate the API token. This field is used + * for Authorization to your account by BasicAuth. */ public Builder email(String email) { Utils.checkNotNull(email, "email"); @@ -405,26 +412,10 @@ public Builder email(String email) { return this; } - /** - * Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. - */ - public Builder enableExperimentalStreams(boolean enableExperimentalStreams) { - Utils.checkNotNull(enableExperimentalStreams, "enableExperimentalStreams"); - this.enableExperimentalStreams = Optional.ofNullable(enableExperimentalStreams); - return this; - } - - /** - * Allow the use of experimental streams which rely on undocumented Jira API endpoints. See https://docs.airbyte.com/integrations/sources/jira#experimental-tables for more info. - */ - public Builder enableExperimentalStreams(Optional enableExperimentalStreams) { - Utils.checkNotNull(enableExperimentalStreams, "enableExperimentalStreams"); - this.enableExperimentalStreams = enableExperimentalStreams; - return this; - } /** - * When set to N, the connector will always refresh resources created within the past N minutes. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N minutes. By + * default, updated objects that are not newly created are not incrementally synced. */ public Builder lookbackWindowMinutes(long lookbackWindowMinutes) { Utils.checkNotNull(lookbackWindowMinutes, "lookbackWindowMinutes"); @@ -433,7 +424,8 @@ public Builder lookbackWindowMinutes(long lookbackWindowMinutes) { } /** - * When set to N, the connector will always refresh resources created within the past N minutes. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N minutes. By + * default, updated objects that are not newly created are not incrementally synced. */ public Builder lookbackWindowMinutes(Optional lookbackWindowMinutes) { Utils.checkNotNull(lookbackWindowMinutes, "lookbackWindowMinutes"); @@ -441,6 +433,7 @@ public Builder lookbackWindowMinutes(Optional lookbackWindowMinutes) { return this; } + /** * The number of worker threads to use for the sync. */ @@ -459,8 +452,10 @@ public Builder numWorkers(Optional numWorkers) { return this; } + /** - * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects. + * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for + * all projects. */ public Builder projects(List projects) { Utils.checkNotNull(projects, "projects"); @@ -469,7 +464,8 @@ public Builder projects(List projects) { } /** - * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for all projects. + * List of Jira project keys to replicate data for, or leave it empty if you want to replicate data for + * all projects. */ public Builder projects(Optional> projects) { Utils.checkNotNull(projects, "projects"); @@ -477,8 +473,14 @@ public Builder projects(Optional> projects) { return this; } + /** - * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the <a href="https://docs.airbyte.com/integrations/sources/jira/">documentation</a>. + * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note + * that this field only applies to certain streams, and only data generated on or after the start date + * will be replicated. Or leave it empty if you want to replicate all data. + * + *

    For more information, refer to the documentation. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -487,40 +489,33 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note that this field only applies to certain streams, and only data generated on or after the start date will be replicated. Or leave it empty if you want to replicate all data. For more information, refer to the <a href="https://docs.airbyte.com/integrations/sources/jira/">documentation</a>. + * The date from which you want to replicate data from Jira, use the format YYYY-MM-DDT00:00:00Z. Note + * that this field only applies to certain streams, and only data generated on or after the start date + * will be replicated. Or leave it empty if you want to replicate all data. + * + *

    For more information, refer to the documentation. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceJira build() { - if (enableExperimentalStreams == null) { - enableExperimentalStreams = _SINGLETON_VALUE_EnableExperimentalStreams.value(); - } if (lookbackWindowMinutes == null) { lookbackWindowMinutes = _SINGLETON_VALUE_LookbackWindowMinutes.value(); } if (numWorkers == null) { numWorkers = _SINGLETON_VALUE_NumWorkers.value(); } + return new SourceJira( - apiToken, - domain, - email, - enableExperimentalStreams, - lookbackWindowMinutes, - numWorkers, - projects, + apiToken, domain, email, + lookbackWindowMinutes, numWorkers, projects, startDate); } - private static final LazySingletonValue> _SINGLETON_VALUE_EnableExperimentalStreams = - new LazySingletonValue<>( - "enable_experimental_streams", - "false", - new TypeReference>() {}); private static final LazySingletonValue> _SINGLETON_VALUE_LookbackWindowMinutes = new LazySingletonValue<>( diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJobnimbus.java b/src/main/java/com/airbyte/api/models/shared/SourceJobnimbus.java index d2569320b..e85ca80d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJobnimbus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJobnimbus.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceJobnimbus { +public class SourceJobnimbus { /** - * API key to use. Find it by logging into your JobNimbus account, navigating to settings, and creating a new API key under the API section. + * API key to use. Find it by logging into your JobNimbus account, navigating to settings, and creating + * a new API key under the API section. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Jobnimbus sourceType; @@ -33,7 +34,8 @@ public SourceJobnimbus( } /** - * API key to use. Find it by logging into your JobNimbus account, navigating to settings, and creating a new API key under the API section. + * API key to use. Find it by logging into your JobNimbus account, navigating to settings, and creating + * a new API key under the API section. */ @JsonIgnore public String apiKey() { @@ -45,12 +47,14 @@ public Jobnimbus sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key to use. Find it by logging into your JobNimbus account, navigating to settings, and creating a new API key under the API section. + * API key to use. Find it by logging into your JobNimbus account, navigating to settings, and creating + * a new API key under the API section. */ public SourceJobnimbus withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +62,6 @@ public SourceJobnimbus withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceJobnimbus other = (SourceJobnimbus) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * API key to use. Find it by logging into your JobNimbus account, navigating to settings, and creating a new API key under the API section. + * API key to use. Find it by logging into your JobNimbus account, navigating to settings, and creating + * a new API key under the API section. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceJobnimbus build() { + return new SourceJobnimbus( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJotform.java b/src/main/java/com/airbyte/api/models/shared/SourceJotform.java index a52cc1e7a..48b2d51c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJotform.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJotform.java @@ -12,22 +12,26 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceJotform { @JsonProperty("api_endpoint") private APIEndpoint apiEndpoint; + @JsonProperty("api_key") private String apiKey; + @JsonProperty("end_date") private OffsetDateTime endDate; + @JsonProperty("sourceType") private Jotform sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -73,9 +77,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceJotform withApiEndpoint(APIEndpoint apiEndpoint) { Utils.checkNotNull(apiEndpoint, "apiEndpoint"); @@ -101,7 +106,6 @@ public SourceJotform withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -112,21 +116,18 @@ public boolean equals(java.lang.Object o) { } SourceJotform other = (SourceJotform) o; return - Objects.deepEquals(this.apiEndpoint, other.apiEndpoint) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiEndpoint, other.apiEndpoint) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiEndpoint, - apiKey, - endDate, - sourceType, - startDate); + return Utils.enhancedHash( + apiEndpoint, apiKey, endDate, + sourceType, startDate); } @Override @@ -138,53 +139,58 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private APIEndpoint apiEndpoint; - + private String apiKey; - + private OffsetDateTime endDate; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiEndpoint(APIEndpoint apiEndpoint) { Utils.checkNotNull(apiEndpoint, "apiEndpoint"); this.apiEndpoint = apiEndpoint; return this; } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder endDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceJotform build() { + return new SourceJotform( - apiEndpoint, - apiKey, - endDate, + apiEndpoint, apiKey, endDate, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java b/src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java index d1cf6a60e..0a76f4c7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJotformApiEndpoint.java @@ -14,7 +14,7 @@ public enum SourceJotformApiEndpoint { @JsonValue private final String value; - private SourceJotformApiEndpoint(String value) { + SourceJotformApiEndpoint(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java b/src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java index 1bbb3c990..102248cea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJotformSchemasApiEndpoint.java @@ -14,7 +14,7 @@ public enum SourceJotformSchemasApiEndpoint { @JsonValue private final String value; - private SourceJotformSchemasApiEndpoint(String value) { + SourceJotformSchemasApiEndpoint(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJudgeMeReviews.java b/src/main/java/com/airbyte/api/models/shared/SourceJudgeMeReviews.java new file mode 100644 index 000000000..ac3d907e1 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceJudgeMeReviews.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; + + +public class SourceJudgeMeReviews { + + @JsonProperty("api_key") + private String apiKey; + + /** + * example.myshopify.com + */ + @JsonProperty("shop_domain") + private String shopDomain; + + + @JsonProperty("sourceType") + private JudgeMeReviews sourceType; + + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + @JsonCreator + public SourceJudgeMeReviews( + @JsonProperty("api_key") String apiKey, + @JsonProperty("shop_domain") String shopDomain, + @JsonProperty("start_date") OffsetDateTime startDate) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(shopDomain, "shopDomain"); + Utils.checkNotNull(startDate, "startDate"); + this.apiKey = apiKey; + this.shopDomain = shopDomain; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + /** + * example.myshopify.com + */ + @JsonIgnore + public String shopDomain() { + return shopDomain; + } + + @JsonIgnore + public JudgeMeReviews sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + public static Builder builder() { + return new Builder(); + } + + + public SourceJudgeMeReviews withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + /** + * example.myshopify.com + */ + public SourceJudgeMeReviews withShopDomain(String shopDomain) { + Utils.checkNotNull(shopDomain, "shopDomain"); + this.shopDomain = shopDomain; + return this; + } + + public SourceJudgeMeReviews withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceJudgeMeReviews other = (SourceJudgeMeReviews) o; + return + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.shopDomain, other.shopDomain) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + apiKey, shopDomain, sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceJudgeMeReviews.class, + "apiKey", apiKey, + "shopDomain", shopDomain, + "sourceType", sourceType, + "startDate", startDate); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String apiKey; + + private String shopDomain; + + private OffsetDateTime startDate; + + private Builder() { + // force use of static builder() method + } + + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + + /** + * example.myshopify.com + */ + public Builder shopDomain(String shopDomain) { + Utils.checkNotNull(shopDomain, "shopDomain"); + this.shopDomain = shopDomain; + return this; + } + + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceJudgeMeReviews build() { + + return new SourceJudgeMeReviews( + apiKey, shopDomain, startDate); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"judge-me-reviews\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJustSift.java b/src/main/java/com/airbyte/api/models/shared/SourceJustSift.java index f31878e00..50c12f9d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJustSift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJustSift.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceJustSift { +public class SourceJustSift { /** * API token to use for accessing the Sift API. Obtain this token from your Sift account administrator. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private JustSift sourceType; @@ -45,9 +45,10 @@ public JustSift sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API token to use for accessing the Sift API. Obtain this token from your Sift account administrator. @@ -58,7 +59,6 @@ public SourceJustSift withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceJustSift other = (SourceJustSift) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * API token to use for accessing the Sift API. Obtain this token from your Sift account administrator. */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public SourceJustSift build() { + return new SourceJustSift( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceJustcall.java b/src/main/java/com/airbyte/api/models/shared/SourceJustcall.java index 53a21f357..78d97a06e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceJustcall.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceJustcall.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceJustcall { @JsonProperty("api_key_2") private String apiKey2; + @JsonProperty("sourceType") private Justcall sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceJustcall withApiKey2(String apiKey2) { Utils.checkNotNull(apiKey2, "apiKey2"); @@ -67,7 +70,6 @@ public SourceJustcall withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceJustcall other = (SourceJustcall) o; return - Objects.deepEquals(this.apiKey2, other.apiKey2) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey2, other.apiKey2) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey2, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey2, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey2; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey2(String apiKey2) { Utils.checkNotNull(apiKey2, "apiKey2"); this.apiKey2 = apiKey2; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceJustcall build() { + return new SourceJustcall( - apiKey2, - startDate); + apiKey2, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java b/src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java index 9018901c6..4983aab1d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceK6Cloud.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceK6Cloud { +public class SourceK6Cloud { /** - * Your API Token. See <a href="https://k6.io/docs/cloud/integrations/token/">here</a>. The key is case sensitive. + * Your API Token. See here. The key is case + * sensitive. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private K6Cloud sourceType; @@ -33,7 +34,8 @@ public SourceK6Cloud( } /** - * Your API Token. See <a href="https://k6.io/docs/cloud/integrations/token/">here</a>. The key is case sensitive. + * Your API Token. See here. The key is case + * sensitive. */ @JsonIgnore public String apiToken() { @@ -45,12 +47,14 @@ public K6Cloud sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Token. See <a href="https://k6.io/docs/cloud/integrations/token/">here</a>. The key is case sensitive. + * Your API Token. See here. The key is case + * sensitive. */ public SourceK6Cloud withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -58,7 +62,6 @@ public SourceK6Cloud withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceK6Cloud other = (SourceK6Cloud) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** - * Your API Token. See <a href="https://k6.io/docs/cloud/integrations/token/">here</a>. The key is case sensitive. + * Your API Token. See here. The key is case + * sensitive. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); this.apiToken = apiToken; return this; } - + public SourceK6Cloud build() { + return new SourceK6Cloud( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKatana.java b/src/main/java/com/airbyte/api/models/shared/SourceKatana.java index c9c53b97d..1131dd817 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKatana.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKatana.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceKatana { +public class SourceKatana { /** * API key to use. Find it at https://katanamrp.com/login/ */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Katana sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it at https://katanamrp.com/login/ @@ -76,7 +78,6 @@ public SourceKatana withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceKatana other = (SourceKatana) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it at https://katanamrp.com/login/ */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceKatana build() { + return new SourceKatana( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKeka.java b/src/main/java/com/airbyte/api/models/shared/SourceKeka.java index 6095fe2ff..93ba19b14 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKeka.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKeka.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceKeka { @@ -30,12 +30,15 @@ public class SourceKeka { @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("grant_type") private String grantType; + @JsonProperty("scope") private String scope; + @JsonProperty("sourceType") private Keka sourceType; @@ -95,9 +98,10 @@ public Keka sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceKeka withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -135,7 +139,6 @@ public SourceKeka withScope(String scope) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -146,23 +149,19 @@ public boolean equals(java.lang.Object o) { } SourceKeka other = (SourceKeka) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.grantType, other.grantType) && - Objects.deepEquals(this.scope, other.scope) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.grantType, other.grantType) && + Utils.enhancedDeepEquals(this.scope, other.scope) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - clientId, - clientSecret, - grantType, - scope, - sourceType); + return Utils.enhancedHash( + apiKey, clientId, clientSecret, + grantType, scope, sourceType); } @Override @@ -175,29 +174,32 @@ public String toString() { "scope", scope, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String clientId; - + private String clientSecret; - + private String grantType; - + private String scope; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Your client identifier for authentication. */ @@ -207,6 +209,7 @@ public Builder clientId(String clientId) { return this; } + /** * Your client secret for secure authentication. */ @@ -216,27 +219,28 @@ public Builder clientSecret(String clientSecret) { return this; } + public Builder grantType(String grantType) { Utils.checkNotNull(grantType, "grantType"); this.grantType = grantType; return this; } + public Builder scope(String scope) { Utils.checkNotNull(scope, "scope"); this.scope = scope; return this; } - + public SourceKeka build() { + return new SourceKeka( - apiKey, - clientId, - clientSecret, - grantType, - scope); + apiKey, clientId, clientSecret, + grantType, scope); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKisi.java b/src/main/java/com/airbyte/api/models/shared/SourceKisi.java index eda4c1fb7..227efefcd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKisi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKisi.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceKisi { +public class SourceKisi { /** * Your KISI API Key */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Kisi sourceType; @@ -45,9 +45,10 @@ public Kisi sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your KISI API Key @@ -58,7 +59,6 @@ public SourceKisi withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceKisi other = (SourceKisi) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * Your KISI API Key */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceKisi build() { + return new SourceKisi( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java b/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java index c31c2f305..3d637813a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKissmetrics.java @@ -13,18 +13,20 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceKissmetrics { @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Kissmetrics sourceType; + @JsonProperty("username") private String username; @@ -59,9 +61,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceKissmetrics withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -69,6 +72,7 @@ public SourceKissmetrics withPassword(String password) { return this; } + public SourceKissmetrics withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -81,7 +85,6 @@ public SourceKissmetrics withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -92,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceKissmetrics other = (SourceKissmetrics) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - username); + return Utils.enhancedHash( + password, sourceType, username); } @Override @@ -112,17 +113,19 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -135,18 +138,20 @@ public Builder password(Optional password) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceKissmetrics build() { + return new SourceKissmetrics( - password, - username); + password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKlarna.java b/src/main/java/com/airbyte/api/models/shared/SourceKlarna.java index 12478fc0a..98e3d96ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlarna.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlarna.java @@ -14,13 +14,13 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceKlarna { +public class SourceKlarna { /** - * A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs (https://developers.klarna.com/api/#authentication) + * A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs + * (https://developers.klarna.com/api/#authentication) */ @JsonProperty("password") private String password; @@ -33,16 +33,19 @@ public class SourceKlarna { private Optional playground; /** - * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' + * Base url region (For playground eu + * https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ @JsonProperty("region") private SourceKlarnaRegion region; + @JsonProperty("sourceType") private Klarna sourceType; /** - * Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication) + * Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a + * random string (https://developers.klarna.com/api/#authentication) */ @JsonProperty("username") private String username; @@ -68,11 +71,13 @@ public SourceKlarna( String password, SourceKlarnaRegion region, String username) { - this(password, Optional.empty(), region, username); + this(password, Optional.empty(), region, + username); } /** - * A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs (https://developers.klarna.com/api/#authentication) + * A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs + * (https://developers.klarna.com/api/#authentication) */ @JsonIgnore public String password() { @@ -88,7 +93,8 @@ public Optional playground() { } /** - * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' + * Base url region (For playground eu + * https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ @JsonIgnore public SourceKlarnaRegion region() { @@ -101,19 +107,22 @@ public Klarna sourceType() { } /** - * Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication) + * Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a + * random string (https://developers.klarna.com/api/#authentication) */ @JsonIgnore public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs (https://developers.klarna.com/api/#authentication) + * A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs + * (https://developers.klarna.com/api/#authentication) */ public SourceKlarna withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -130,6 +139,7 @@ public SourceKlarna withPlayground(boolean playground) { return this; } + /** * Propertie defining if connector is used against playground or production environment */ @@ -140,7 +150,8 @@ public SourceKlarna withPlayground(Optional playground) { } /** - * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' + * Base url region (For playground eu + * https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ public SourceKlarna withRegion(SourceKlarnaRegion region) { Utils.checkNotNull(region, "region"); @@ -149,7 +160,8 @@ public SourceKlarna withRegion(SourceKlarnaRegion region) { } /** - * Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication) + * Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a + * random string (https://developers.klarna.com/api/#authentication) */ public SourceKlarna withUsername(String username) { Utils.checkNotNull(username, "username"); @@ -157,7 +169,6 @@ public SourceKlarna withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -168,21 +179,18 @@ public boolean equals(java.lang.Object o) { } SourceKlarna other = (SourceKlarna) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.playground, other.playground) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.playground, other.playground) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - playground, - region, - sourceType, - username); + return Utils.enhancedHash( + password, playground, region, + sourceType, username); } @Override @@ -194,23 +202,26 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private Optional playground; - + private SourceKlarnaRegion region; - + private String username; - + private Builder() { // force use of static builder() method } + /** - * A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs (https://developers.klarna.com/api/#authentication) + * A string which is associated with your Merchant ID and is used to authorize use of Klarna's APIs + * (https://developers.klarna.com/api/#authentication) */ public Builder password(String password) { Utils.checkNotNull(password, "password"); @@ -218,6 +229,7 @@ public Builder password(String password) { return this; } + /** * Propertie defining if connector is used against playground or production environment */ @@ -236,8 +248,10 @@ public Builder playground(Optional playground) { return this; } + /** - * Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' + * Base url region (For playground eu + * https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ public Builder region(SourceKlarnaRegion region) { Utils.checkNotNull(region, "region"); @@ -245,26 +259,28 @@ public Builder region(SourceKlarnaRegion region) { return this; } + /** - * Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a random string (https://developers.klarna.com/api/#authentication) + * Consists of your Merchant ID (eid) - a unique number that identifies your e-store, combined with a + * random string (https://developers.klarna.com/api/#authentication) */ public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceKlarna build() { if (playground == null) { playground = _SINGLETON_VALUE_Playground.value(); } + return new SourceKlarna( - password, - playground, - region, + password, playground, region, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_Playground = new LazySingletonValue<>( "playground", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java index a56430dd1..cdb33aa08 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlarnaRegion.java @@ -11,7 +11,8 @@ /** * SourceKlarnaRegion * - *

    Base url region (For playground eu https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' + *

    Base url region (For playground eu + * https://docs.klarna.com/klarna-payments/api/payments-api/#tag/API-URLs). Supported 'eu', 'na', 'oc' */ public enum SourceKlarnaRegion { EU("eu"), @@ -21,7 +22,7 @@ public enum SourceKlarnaRegion { @JsonValue private final String value; - private SourceKlarnaRegion(String value) { + SourceKlarnaRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKlausApi.java b/src/main/java/com/airbyte/api/models/shared/SourceKlausApi.java index e5a9cef85..00eb6d3e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlausApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlausApi.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceKlausApi { +public class SourceKlausApi { /** * getting data by account */ @@ -32,6 +31,7 @@ public class SourceKlausApi { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private KlausApi sourceType; @@ -69,7 +69,8 @@ public SourceKlausApi( long account, String apiKey, long workspace) { - this(account, apiKey, Optional.empty(), workspace); + this(account, apiKey, Optional.empty(), + workspace); } /** @@ -109,9 +110,10 @@ public long workspace() { return workspace; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * getting data by account @@ -140,6 +142,7 @@ public SourceKlausApi withStartDate(OffsetDateTime startDate) { return this; } + /** * Start getting data from that date. */ @@ -158,7 +161,6 @@ public SourceKlausApi withWorkspace(long workspace) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -169,21 +171,18 @@ public boolean equals(java.lang.Object o) { } SourceKlausApi other = (SourceKlausApi) o; return - Objects.deepEquals(this.account, other.account) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.workspace, other.workspace); + Utils.enhancedDeepEquals(this.account, other.account) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.workspace, other.workspace); } @Override public int hashCode() { - return Objects.hash( - account, - apiKey, - sourceType, - startDate, - workspace); + return Utils.enhancedHash( + account, apiKey, sourceType, + startDate, workspace); } @Override @@ -195,21 +194,23 @@ public String toString() { "startDate", startDate, "workspace", workspace); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Long account; - + private String apiKey; - + private Optional startDate = Optional.empty(); - + private Long workspace; - + private Builder() { // force use of static builder() method } + /** * getting data by account */ @@ -219,6 +220,7 @@ public Builder account(long account) { return this; } + /** * API access key used to retrieve data from the KLAUS API. */ @@ -228,6 +230,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Start getting data from that date. */ @@ -246,6 +249,7 @@ public Builder startDate(Optional startDate) { return this; } + /** * getting data by workspace */ @@ -254,15 +258,15 @@ public Builder workspace(long workspace) { this.workspace = workspace; return this; } - + public SourceKlausApi build() { + return new SourceKlausApi( - account, - apiKey, - startDate, + account, apiKey, startDate, workspace); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKlaviyo.java b/src/main/java/com/airbyte/api/models/shared/SourceKlaviyo.java index 56fc1ffad..c2d1f697e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKlaviyo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKlaviyo.java @@ -16,36 +16,43 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceKlaviyo { +public class SourceKlaviyo { /** - * Klaviyo API Key. See our <a href="https://docs.airbyte.com/integrations/sources/klaviyo">docs</a> if you need help finding this key. + * Klaviyo API Key. See our docs if + * you need help finding this key. */ @JsonProperty("api_key") private String apiKey; /** - * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination. + * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. + * However, at high volume, this can lead to service availability issues on the API which can be + * improved by not fetching this field. WARNING: Enabling this setting will stop the + * "predictive_analytics" column from being populated in your downstream destination. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("disable_fetching_predictive_analytics") private Optional disableFetchingPredictiveAnalytics; /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API + * docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("num_workers") private Optional numWorkers; + @JsonProperty("sourceType") private Klaviyo sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This field is optional - if not provided, all data will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This field is optional - if not provided, all data will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -70,11 +77,13 @@ public SourceKlaviyo( public SourceKlaviyo( String apiKey) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * Klaviyo API Key. See our <a href="https://docs.airbyte.com/integrations/sources/klaviyo">docs</a> if you need help finding this key. + * Klaviyo API Key. See our docs if + * you need help finding this key. */ @JsonIgnore public String apiKey() { @@ -82,7 +91,10 @@ public String apiKey() { } /** - * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination. + * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. + * However, at high volume, this can lead to service availability issues on the API which can be + * improved by not fetching this field. WARNING: Enabling this setting will stop the + * "predictive_analytics" column from being populated in your downstream destination. */ @JsonIgnore public Optional disableFetchingPredictiveAnalytics() { @@ -90,7 +102,9 @@ public Optional disableFetchingPredictiveAnalytics() { } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API + * docs. */ @JsonIgnore public Optional numWorkers() { @@ -103,19 +117,22 @@ public Klaviyo sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This field is optional - if not provided, all data will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This field is optional - if not provided, all data will be replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Klaviyo API Key. See our <a href="https://docs.airbyte.com/integrations/sources/klaviyo">docs</a> if you need help finding this key. + * Klaviyo API Key. See our docs if + * you need help finding this key. */ public SourceKlaviyo withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -124,7 +141,10 @@ public SourceKlaviyo withApiKey(String apiKey) { } /** - * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination. + * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. + * However, at high volume, this can lead to service availability issues on the API which can be + * improved by not fetching this field. WARNING: Enabling this setting will stop the + * "predictive_analytics" column from being populated in your downstream destination. */ public SourceKlaviyo withDisableFetchingPredictiveAnalytics(boolean disableFetchingPredictiveAnalytics) { Utils.checkNotNull(disableFetchingPredictiveAnalytics, "disableFetchingPredictiveAnalytics"); @@ -132,8 +152,12 @@ public SourceKlaviyo withDisableFetchingPredictiveAnalytics(boolean disableFetch return this; } + /** - * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination. + * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. + * However, at high volume, this can lead to service availability issues on the API which can be + * improved by not fetching this field. WARNING: Enabling this setting will stop the + * "predictive_analytics" column from being populated in your downstream destination. */ public SourceKlaviyo withDisableFetchingPredictiveAnalytics(Optional disableFetchingPredictiveAnalytics) { Utils.checkNotNull(disableFetchingPredictiveAnalytics, "disableFetchingPredictiveAnalytics"); @@ -142,7 +166,9 @@ public SourceKlaviyo withDisableFetchingPredictiveAnalytics(Optional di } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API + * docs. */ public SourceKlaviyo withNumWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -150,8 +176,11 @@ public SourceKlaviyo withNumWorkers(long numWorkers) { return this; } + /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API + * docs. */ public SourceKlaviyo withNumWorkers(Optional numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -160,7 +189,8 @@ public SourceKlaviyo withNumWorkers(Optional numWorkers) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This field is optional - if not provided, all data will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This field is optional - if not provided, all data will be replicated. */ public SourceKlaviyo withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -168,8 +198,10 @@ public SourceKlaviyo withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This field is optional - if not provided, all data will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This field is optional - if not provided, all data will be replicated. */ public SourceKlaviyo withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -177,7 +209,6 @@ public SourceKlaviyo withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -188,21 +219,18 @@ public boolean equals(java.lang.Object o) { } SourceKlaviyo other = (SourceKlaviyo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.disableFetchingPredictiveAnalytics, other.disableFetchingPredictiveAnalytics) && - Objects.deepEquals(this.numWorkers, other.numWorkers) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.disableFetchingPredictiveAnalytics, other.disableFetchingPredictiveAnalytics) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - disableFetchingPredictiveAnalytics, - numWorkers, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, disableFetchingPredictiveAnalytics, numWorkers, + sourceType, startDate); } @Override @@ -214,23 +242,26 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional disableFetchingPredictiveAnalytics = Optional.empty(); - + private Optional numWorkers; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Klaviyo API Key. See our <a href="https://docs.airbyte.com/integrations/sources/klaviyo">docs</a> if you need help finding this key. + * Klaviyo API Key. See our docs if + * you need help finding this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -238,8 +269,12 @@ public Builder apiKey(String apiKey) { return this; } + /** - * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination. + * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. + * However, at high volume, this can lead to service availability issues on the API which can be + * improved by not fetching this field. WARNING: Enabling this setting will stop the + * "predictive_analytics" column from being populated in your downstream destination. */ public Builder disableFetchingPredictiveAnalytics(boolean disableFetchingPredictiveAnalytics) { Utils.checkNotNull(disableFetchingPredictiveAnalytics, "disableFetchingPredictiveAnalytics"); @@ -248,7 +283,10 @@ public Builder disableFetchingPredictiveAnalytics(boolean disableFetchingPredict } /** - * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. However, at high volume, this can lead to service availability issues on the API which can be improved by not fetching this field. WARNING: Enabling this setting will stop the "predictive_analytics" column from being populated in your downstream destination. + * Certain streams like the profiles stream can retrieve predictive analytics data from Klaviyo's API. + * However, at high volume, this can lead to service availability issues on the API which can be + * improved by not fetching this field. WARNING: Enabling this setting will stop the + * "predictive_analytics" column from being populated in your downstream destination. */ public Builder disableFetchingPredictiveAnalytics(Optional disableFetchingPredictiveAnalytics) { Utils.checkNotNull(disableFetchingPredictiveAnalytics, "disableFetchingPredictiveAnalytics"); @@ -256,8 +294,11 @@ public Builder disableFetchingPredictiveAnalytics(Optional disableFetch return this; } + /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API + * docs. */ public Builder numWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -266,7 +307,9 @@ public Builder numWorkers(long numWorkers) { } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API <a href="https://developers.klaviyo.com/en/docs/rate_limits_and_error_handling">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Klaviyo plan. More info about the rate limit plan tiers can be found on Klaviyo's API + * docs. */ public Builder numWorkers(Optional numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -274,8 +317,10 @@ public Builder numWorkers(Optional numWorkers) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This field is optional - if not provided, all data will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This field is optional - if not provided, all data will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -284,25 +329,26 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. This field is optional - if not provided, all data will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. This field is optional - if not provided, all data will be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceKlaviyo build() { if (numWorkers == null) { numWorkers = _SINGLETON_VALUE_NumWorkers.value(); } + return new SourceKlaviyo( - apiKey, - disableFetchingPredictiveAnalytics, - numWorkers, + apiKey, disableFetchingPredictiveAnalytics, numWorkers, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = new LazySingletonValue<>( "num_workers", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceKyve.java b/src/main/java/com/airbyte/api/models/shared/SourceKyve.java index 2b1e40a51..c2746fcc0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceKyve.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceKyve.java @@ -13,22 +13,23 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceKyve { +public class SourceKyve { /** * The IDs of the KYVE storage pool you want to archive. (Comma separated) */ @JsonProperty("pool_ids") private String poolIds; + @JsonProperty("sourceType") private Kyve sourceType; /** - * The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma separated) + * The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma + * separated) */ @JsonProperty("start_ids") private String startIds; @@ -74,7 +75,8 @@ public Kyve sourceType() { } /** - * The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma separated) + * The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma + * separated) */ @JsonIgnore public String startIds() { @@ -89,9 +91,10 @@ public Optional urlBase() { return urlBase; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The IDs of the KYVE storage pool you want to archive. (Comma separated) @@ -103,7 +106,8 @@ public SourceKyve withPoolIds(String poolIds) { } /** - * The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma separated) + * The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma + * separated) */ public SourceKyve withStartIds(String startIds) { Utils.checkNotNull(startIds, "startIds"); @@ -120,6 +124,7 @@ public SourceKyve withUrlBase(String urlBase) { return this; } + /** * URL to the KYVE Chain API. */ @@ -129,7 +134,6 @@ public SourceKyve withUrlBase(Optional urlBase) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +144,16 @@ public boolean equals(java.lang.Object o) { } SourceKyve other = (SourceKyve) o; return - Objects.deepEquals(this.poolIds, other.poolIds) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startIds, other.startIds) && - Objects.deepEquals(this.urlBase, other.urlBase); + Utils.enhancedDeepEquals(this.poolIds, other.poolIds) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startIds, other.startIds) && + Utils.enhancedDeepEquals(this.urlBase, other.urlBase); } @Override public int hashCode() { - return Objects.hash( - poolIds, - sourceType, - startIds, + return Utils.enhancedHash( + poolIds, sourceType, startIds, urlBase); } @@ -163,19 +165,21 @@ public String toString() { "startIds", startIds, "urlBase", urlBase); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String poolIds; - + private String startIds; - + private Optional urlBase; - + private Builder() { // force use of static builder() method } + /** * The IDs of the KYVE storage pool you want to archive. (Comma separated) */ @@ -185,8 +189,10 @@ public Builder poolIds(String poolIds) { return this; } + /** - * The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma separated) + * The start-id defines, from which bundle id the pipeline should start to extract the data. (Comma + * separated) */ public Builder startIds(String startIds) { Utils.checkNotNull(startIds, "startIds"); @@ -194,6 +200,7 @@ public Builder startIds(String startIds) { return this; } + /** * URL to the KYVE Chain API. */ @@ -211,17 +218,17 @@ public Builder urlBase(Optional urlBase) { this.urlBase = urlBase; return this; } - + public SourceKyve build() { if (urlBase == null) { urlBase = _SINGLETON_VALUE_UrlBase.value(); } + return new SourceKyve( - poolIds, - startIds, - urlBase); + poolIds, startIds, urlBase); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLaunchdarkly.java b/src/main/java/com/airbyte/api/models/shared/SourceLaunchdarkly.java index e6f3e8e1b..4e82e8c97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLaunchdarkly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLaunchdarkly.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceLaunchdarkly { +public class SourceLaunchdarkly { /** - * Your Access token. See <a href="https://apidocs.launchdarkly.com/#section/Overview/Authentication">here</a>. + * Your Access token. See here. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Launchdarkly sourceType; @@ -33,7 +34,8 @@ public SourceLaunchdarkly( } /** - * Your Access token. See <a href="https://apidocs.launchdarkly.com/#section/Overview/Authentication">here</a>. + * Your Access token. See here. */ @JsonIgnore public String accessToken() { @@ -45,12 +47,14 @@ public Launchdarkly sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Access token. See <a href="https://apidocs.launchdarkly.com/#section/Overview/Authentication">here</a>. + * Your Access token. See here. */ public SourceLaunchdarkly withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -58,7 +62,6 @@ public SourceLaunchdarkly withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceLaunchdarkly other = (SourceLaunchdarkly) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType); + return Utils.enhancedHash( + accessToken, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "accessToken", accessToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * Your Access token. See <a href="https://apidocs.launchdarkly.com/#section/Overview/Authentication">here</a>. + * Your Access token. See here. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public SourceLaunchdarkly build() { + return new SourceLaunchdarkly( accessToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java b/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java index 70b19a95a..afeb09743 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeadfeeder.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceLeadfeeder { @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Leadfeeder sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceLeadfeeder withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -67,7 +70,6 @@ public SourceLeadfeeder withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceLeadfeeder other = (SourceLeadfeeder) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType, - startDate); + return Utils.enhancedHash( + apiToken, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); this.apiToken = apiToken; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceLeadfeeder build() { + return new SourceLeadfeeder( - apiToken, - startDate); + apiToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLemlist.java b/src/main/java/com/airbyte/api/models/shared/SourceLemlist.java index 300097650..771365622 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLemlist.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLemlist.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceLemlist { +public class SourceLemlist { /** * Lemlist API key, */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Lemlist sourceType; @@ -45,9 +45,10 @@ public Lemlist sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Lemlist API key, @@ -58,7 +59,6 @@ public SourceLemlist withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceLemlist other = (SourceLemlist) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * Lemlist API key, */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceLemlist build() { + return new SourceLemlist( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLessAnnoyingCrm.java b/src/main/java/com/airbyte/api/models/shared/SourceLessAnnoyingCrm.java index 79d2a9370..20957ce03 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLessAnnoyingCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLessAnnoyingCrm.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceLessAnnoyingCrm { +public class SourceLessAnnoyingCrm { /** - * API key to use. Manage and create your API keys on the Programmer API settings page at https://account.lessannoyingcrm.com/app/Settings/Api. + * API key to use. Manage and create your API keys on the Programmer API settings page at + * https://account.lessannoyingcrm.com/app/Settings/Api. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private LessAnnoyingCrm sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public SourceLessAnnoyingCrm( } /** - * API key to use. Manage and create your API keys on the Programmer API settings page at https://account.lessannoyingcrm.com/app/Settings/Api. + * API key to use. Manage and create your API keys on the Programmer API settings page at + * https://account.lessannoyingcrm.com/app/Settings/Api. */ @JsonIgnore public String apiKey() { @@ -57,12 +60,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key to use. Manage and create your API keys on the Programmer API settings page at https://account.lessannoyingcrm.com/app/Settings/Api. + * API key to use. Manage and create your API keys on the Programmer API settings page at + * https://account.lessannoyingcrm.com/app/Settings/Api. */ public SourceLessAnnoyingCrm withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -76,7 +81,6 @@ public SourceLessAnnoyingCrm withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceLessAnnoyingCrm other = (SourceLessAnnoyingCrm) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,19 +109,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * API key to use. Manage and create your API keys on the Programmer API settings page at https://account.lessannoyingcrm.com/app/Settings/Api. + * API key to use. Manage and create your API keys on the Programmer API settings page at + * https://account.lessannoyingcrm.com/app/Settings/Api. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -127,18 +132,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceLessAnnoyingCrm build() { + return new SourceLessAnnoyingCrm( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiring.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiring.java index edfaef8bd..8132cd360 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiring.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiring.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceLeverHiring { +public class SourceLeverHiring { /** * Choose how to authenticate to Lever Hiring. */ @@ -27,17 +26,21 @@ public class SourceLeverHiring { private Optional credentials; /** - * The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use. + * The environment in which you'd like to replicate data for Lever. This is used to determine which + * Lever API endpoint to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("environment") private Optional environment; + @JsonProperty("sourceType") private SourceLeverHiringLeverHiring sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. Note that it will be used only in the following incremental streams: comments, commits, + * and issues. */ @JsonProperty("start_date") private String startDate; @@ -71,7 +74,8 @@ public Optional credentials() { } /** - * The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use. + * The environment in which you'd like to replicate data for Lever. This is used to determine which + * Lever API endpoint to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -85,16 +89,19 @@ public SourceLeverHiringLeverHiring sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. Note that it will be used only in the following incremental streams: comments, commits, + * and issues. */ @JsonIgnore public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Choose how to authenticate to Lever Hiring. @@ -105,6 +112,7 @@ public SourceLeverHiring withCredentials(SourceLeverHiringAuthenticationMechanis return this; } + /** * Choose how to authenticate to Lever Hiring. */ @@ -115,7 +123,8 @@ public SourceLeverHiring withCredentials(Optional environment) { Utils.checkNotNull(environment, "environment"); @@ -133,7 +144,9 @@ public SourceLeverHiring withEnvironment(Optional credentials = Optional.empty(); - + private Optional environment; - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * Choose how to authenticate to Lever Hiring. */ @@ -206,8 +218,10 @@ public Builder credentials(Optional environment) { Utils.checkNotNull(environment, "environment"); @@ -224,25 +239,28 @@ public Builder environment(Optional envi return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. Note that it will be used only in the following incremental streams: comments, commits, and issues. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. Note that it will be used only in the following incremental streams: comments, commits, + * and issues. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceLeverHiring build() { if (environment == null) { environment = _SINGLETON_VALUE_Environment.value(); } + return new SourceLeverHiring( - credentials, - environment, - startDate); + credentials, environment, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Environment = new LazySingletonValue<>( "environment", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java index eb38abb62..0428b864a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthType.java @@ -14,7 +14,7 @@ public enum SourceLeverHiringAuthType { @JsonValue private final String value; - private SourceLeverHiringAuthType(String value) { + SourceLeverHiringAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthenticationMechanism.java index fe5b3b98f..8b453632a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringAuthenticationMechanism.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceLeverHiringAuthenticationMechanism @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceLeverHiringAuthenticationMechanism other = (SourceLeverHiringAuthenticationMechanism) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java index 7cfc8ae71..0c698420e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringEnvironment.java @@ -11,7 +11,8 @@ /** * SourceLeverHiringEnvironment * - *

    The environment in which you'd like to replicate data for Lever. This is used to determine which Lever API endpoint to use. + *

    The environment in which you'd like to replicate data for Lever. This is used to determine which + * Lever API endpoint to use. */ public enum SourceLeverHiringEnvironment { PRODUCTION("Production"), @@ -20,7 +21,7 @@ public enum SourceLeverHiringEnvironment { @JsonValue private final String value; - private SourceLeverHiringEnvironment(String value) { + SourceLeverHiringEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java index 96e7c7476..468774e2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringLeverHiring.java @@ -14,7 +14,7 @@ public enum SourceLeverHiringLeverHiring { @JsonValue private final String value; - private SourceLeverHiringLeverHiring(String value) { + SourceLeverHiringLeverHiring(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java index 7bb79c17a..4fa56e385 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLeverHiringSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceLeverHiringSchemasAuthType { @JsonValue private final String value; - private SourceLeverHiringSchemasAuthType(String value) { + SourceLeverHiringSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLightspeedRetail.java b/src/main/java/com/airbyte/api/models/shared/SourceLightspeedRetail.java index 7b6db5895..44244bb3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLightspeedRetail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLightspeedRetail.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceLightspeedRetail { +public class SourceLightspeedRetail { /** * API key or access token */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private LightspeedRetail sourceType; @@ -62,9 +62,10 @@ public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key or access token @@ -84,7 +85,6 @@ public SourceLightspeedRetail withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceLightspeedRetail other = (SourceLightspeedRetail) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - subdomain); + return Utils.enhancedHash( + apiKey, sourceType, subdomain); } @Override @@ -115,17 +113,19 @@ public String toString() { "sourceType", sourceType, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String subdomain; - + private Builder() { // force use of static builder() method } + /** * API key or access token */ @@ -135,6 +135,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The subdomain for the retailer, e.g., 'example' in 'example.retail.lightspeed.app'. */ @@ -143,13 +144,14 @@ public Builder subdomain(String subdomain) { this.subdomain = subdomain; return this; } - + public SourceLightspeedRetail build() { + return new SourceLightspeedRetail( - apiKey, - subdomain); + apiKey, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinear.java b/src/main/java/com/airbyte/api/models/shared/SourceLinear.java new file mode 100644 index 000000000..bc82f864c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinear.java @@ -0,0 +1,110 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; + + +public class SourceLinear { + + @JsonProperty("api_key") + private String apiKey; + + + @JsonProperty("sourceType") + private Linear sourceType; + + @JsonCreator + public SourceLinear( + @JsonProperty("api_key") String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Linear sourceType() { + return sourceType; + } + + public static Builder builder() { + return new Builder(); + } + + + public SourceLinear withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceLinear other = (SourceLinear) o; + return + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + apiKey, sourceType); + } + + @Override + public String toString() { + return Utils.toString(SourceLinear.class, + "apiKey", apiKey, + "sourceType", sourceType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String apiKey; + + private Builder() { + // force use of static builder() method + } + + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceLinear build() { + + return new SourceLinear( + apiKey); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"linear\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAds.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAds.java index 03edf0633..42ffc4aef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAds.java @@ -17,22 +17,26 @@ import java.lang.SuppressWarnings; import java.time.LocalDate; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceLinkedinAds { +public class SourceLinkedinAds { /** - * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want to pull the data from all accounts accessible by the authenticated user. See the <a href="https://www.linkedin.com/help/linkedin/answer/a424270/find-linkedin-ads-account-details?lang=en">LinkedIn docs</a> to locate these IDs. + * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want + * to pull the data from all accounts accessible by the authenticated user. See the LinkedIn + * docs to locate these IDs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("account_ids") private Optional> accountIds; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("ad_analytics_reports") private Optional> adAnalyticsReports; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; @@ -44,6 +48,15 @@ public class SourceLinkedinAds { @JsonProperty("lookback_window") private Optional lookbackWindow; + /** + * The number of workers to use for the connector. This is used to limit the number of concurrent + * requests to the LinkedIn Ads API. If not set, the default is 3 workers. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("num_workers") + private Optional numWorkers; + + @JsonProperty("sourceType") private SourceLinkedinAdsLinkedinAds sourceType; @@ -59,27 +72,34 @@ public SourceLinkedinAds( @JsonProperty("ad_analytics_reports") Optional> adAnalyticsReports, @JsonProperty("credentials") Optional credentials, @JsonProperty("lookback_window") Optional lookbackWindow, + @JsonProperty("num_workers") Optional numWorkers, @JsonProperty("start_date") LocalDate startDate) { Utils.checkNotNull(accountIds, "accountIds"); Utils.checkNotNull(adAnalyticsReports, "adAnalyticsReports"); Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(lookbackWindow, "lookbackWindow"); + Utils.checkNotNull(numWorkers, "numWorkers"); Utils.checkNotNull(startDate, "startDate"); this.accountIds = accountIds; this.adAnalyticsReports = adAnalyticsReports; this.credentials = credentials; this.lookbackWindow = lookbackWindow; + this.numWorkers = numWorkers; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; } public SourceLinkedinAds( LocalDate startDate) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), startDate); } /** - * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want to pull the data from all accounts accessible by the authenticated user. See the <a href="https://www.linkedin.com/help/linkedin/answer/a424270/find-linkedin-ads-account-details?lang=en">LinkedIn docs</a> to locate these IDs. + * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want + * to pull the data from all accounts accessible by the authenticated user. See the LinkedIn + * docs to locate these IDs. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -107,6 +127,15 @@ public Optional lookbackWindow() { return lookbackWindow; } + /** + * The number of workers to use for the connector. This is used to limit the number of concurrent + * requests to the LinkedIn Ads API. If not set, the default is 3 workers. + */ + @JsonIgnore + public Optional numWorkers() { + return numWorkers; + } + @JsonIgnore public SourceLinkedinAdsLinkedinAds sourceType() { return sourceType; @@ -120,12 +149,16 @@ public LocalDate startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want to pull the data from all accounts accessible by the authenticated user. See the <a href="https://www.linkedin.com/help/linkedin/answer/a424270/find-linkedin-ads-account-details?lang=en">LinkedIn docs</a> to locate these IDs. + * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want + * to pull the data from all accounts accessible by the authenticated user. See the LinkedIn + * docs to locate these IDs. */ public SourceLinkedinAds withAccountIds(List accountIds) { Utils.checkNotNull(accountIds, "accountIds"); @@ -133,8 +166,12 @@ public SourceLinkedinAds withAccountIds(List accountIds) { return this; } + /** - * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want to pull the data from all accounts accessible by the authenticated user. See the <a href="https://www.linkedin.com/help/linkedin/answer/a424270/find-linkedin-ads-account-details?lang=en">LinkedIn docs</a> to locate these IDs. + * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want + * to pull the data from all accounts accessible by the authenticated user. See the LinkedIn + * docs to locate these IDs. */ public SourceLinkedinAds withAccountIds(Optional> accountIds) { Utils.checkNotNull(accountIds, "accountIds"); @@ -148,6 +185,7 @@ public SourceLinkedinAds withAdAnalyticsReports(List> adAnalyticsReports) { Utils.checkNotNull(adAnalyticsReports, "adAnalyticsReports"); this.adAnalyticsReports = adAnalyticsReports; @@ -160,6 +198,7 @@ public SourceLinkedinAds withCredentials(SourceLinkedinAdsAuthentication credent return this; } + public SourceLinkedinAds withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -175,6 +214,7 @@ public SourceLinkedinAds withLookbackWindow(long lookbackWindow) { return this; } + /** * How far into the past to look for records. (in days) */ @@ -184,6 +224,27 @@ public SourceLinkedinAds withLookbackWindow(Optional lookbackWindow) { return this; } + /** + * The number of workers to use for the connector. This is used to limit the number of concurrent + * requests to the LinkedIn Ads API. If not set, the default is 3 workers. + */ + public SourceLinkedinAds withNumWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + + /** + * The number of workers to use for the connector. This is used to limit the number of concurrent + * requests to the LinkedIn Ads API. If not set, the default is 3 workers. + */ + public SourceLinkedinAds withNumWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + /** * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. */ @@ -193,7 +254,6 @@ public SourceLinkedinAds withStartDate(LocalDate startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -204,22 +264,20 @@ public boolean equals(java.lang.Object o) { } SourceLinkedinAds other = (SourceLinkedinAds) o; return - Objects.deepEquals(this.accountIds, other.accountIds) && - Objects.deepEquals(this.adAnalyticsReports, other.adAnalyticsReports) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.lookbackWindow, other.lookbackWindow) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountIds, other.accountIds) && + Utils.enhancedDeepEquals(this.adAnalyticsReports, other.adAnalyticsReports) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.lookbackWindow, other.lookbackWindow) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountIds, - adAnalyticsReports, - credentials, - lookbackWindow, - sourceType, + return Utils.enhancedHash( + accountIds, adAnalyticsReports, credentials, + lookbackWindow, numWorkers, sourceType, startDate); } @@ -230,28 +288,36 @@ public String toString() { "adAnalyticsReports", adAnalyticsReports, "credentials", credentials, "lookbackWindow", lookbackWindow, + "numWorkers", numWorkers, "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> accountIds = Optional.empty(); - + private Optional> adAnalyticsReports = Optional.empty(); - + private Optional credentials = Optional.empty(); - + private Optional lookbackWindow; - + + private Optional numWorkers; + private LocalDate startDate; - + private Builder() { // force use of static builder() method } + /** - * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want to pull the data from all accounts accessible by the authenticated user. See the <a href="https://www.linkedin.com/help/linkedin/answer/a424270/find-linkedin-ads-account-details?lang=en">LinkedIn docs</a> to locate these IDs. + * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want + * to pull the data from all accounts accessible by the authenticated user. See the LinkedIn + * docs to locate these IDs. */ public Builder accountIds(List accountIds) { Utils.checkNotNull(accountIds, "accountIds"); @@ -260,7 +326,10 @@ public Builder accountIds(List accountIds) { } /** - * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want to pull the data from all accounts accessible by the authenticated user. See the <a href="https://www.linkedin.com/help/linkedin/answer/a424270/find-linkedin-ads-account-details?lang=en">LinkedIn docs</a> to locate these IDs. + * Specify the account IDs to pull data from, separated by a space. Leave this field empty if you want + * to pull the data from all accounts accessible by the authenticated user. See the LinkedIn + * docs to locate these IDs. */ public Builder accountIds(Optional> accountIds) { Utils.checkNotNull(accountIds, "accountIds"); @@ -268,6 +337,7 @@ public Builder accountIds(Optional> accountIds) { return this; } + public Builder adAnalyticsReports(List adAnalyticsReports) { Utils.checkNotNull(adAnalyticsReports, "adAnalyticsReports"); this.adAnalyticsReports = Optional.ofNullable(adAnalyticsReports); @@ -280,6 +350,7 @@ public Builder adAnalyticsReports(Optional c return this; } + /** * How far into the past to look for records. (in days) */ @@ -310,6 +382,28 @@ public Builder lookbackWindow(Optional lookbackWindow) { return this; } + + /** + * The number of workers to use for the connector. This is used to limit the number of concurrent + * requests to the LinkedIn Ads API. If not set, the default is 3 workers. + */ + public Builder numWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + /** + * The number of workers to use for the connector. This is used to limit the number of concurrent + * requests to the LinkedIn Ads API. If not set, the default is 3 workers. + */ + public Builder numWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + + /** * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. */ @@ -318,25 +412,33 @@ public Builder startDate(LocalDate startDate) { this.startDate = startDate; return this; } - + public SourceLinkedinAds build() { if (lookbackWindow == null) { lookbackWindow = _SINGLETON_VALUE_LookbackWindow.value(); } + if (numWorkers == null) { + numWorkers = _SINGLETON_VALUE_NumWorkers.value(); + } + return new SourceLinkedinAds( - accountIds, - adAnalyticsReports, - credentials, - lookbackWindow, - startDate); + accountIds, adAnalyticsReports, credentials, + lookbackWindow, numWorkers, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_LookbackWindow = new LazySingletonValue<>( "lookback_window", "0", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = + new LazySingletonValue<>( + "num_workers", + "3", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAccessToken.java index 9f4037bab..45426292f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAccessToken.java @@ -14,17 +14,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceLinkedinAdsAccessToken { +public class SourceLinkedinAdsAccessToken { /** - * The access token generated for your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The access token generated for your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_method") private Optional authMethod; @@ -38,7 +40,9 @@ public SourceLinkedinAdsAccessToken( } /** - * The access token generated for your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The access token generated for your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonIgnore public String accessToken() { @@ -51,12 +55,15 @@ public Optional authMethod() { return (Optional) authMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The access token generated for your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The access token generated for your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public SourceLinkedinAdsAccessToken withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -64,7 +71,6 @@ public SourceLinkedinAdsAccessToken withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +81,14 @@ public boolean equals(java.lang.Object o) { } SourceLinkedinAdsAccessToken other = (SourceLinkedinAdsAccessToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authMethod, other.authMethod); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authMethod, other.authMethod); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authMethod); + return Utils.enhancedHash( + accessToken, authMethod); } @Override @@ -92,29 +97,35 @@ public String toString() { "accessToken", accessToken, "authMethod", authMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * The access token generated for your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The access token generated for your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public SourceLinkedinAdsAccessToken build() { + return new SourceLinkedinAdsAccessToken( accessToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java index 25c42ddaa..b5b13d0f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceLinkedinAdsAuthMethod { @JsonValue private final String value; - private SourceLinkedinAdsAuthMethod(String value) { + SourceLinkedinAdsAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthentication.java index 4a16d7b6d..6cb938681 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceLinkedinAdsAuthentication._Deserializer.class) public class SourceLinkedinAdsAuthentication { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceLinkedinAdsAuthentication other = (SourceLinkedinAdsAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java index 6927ae874..887f12b56 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsLinkedinAds.java @@ -14,7 +14,7 @@ public enum SourceLinkedinAdsLinkedinAds { @JsonValue private final String value; - private SourceLinkedinAdsLinkedinAds(String value) { + SourceLinkedinAdsLinkedinAds(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsOAuth20.java index 8674e4a6a..a8a61615a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsOAuth20.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceLinkedinAdsOAuth20 { @JsonInclude(Include.NON_ABSENT) @@ -24,19 +24,25 @@ public class SourceLinkedinAdsOAuth20 { private Optional authMethod; /** - * The client ID of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client ID of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonProperty("client_id") private String clientId; /** - * The client secret of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client secret of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonProperty("client_secret") private String clientSecret; /** - * The key to refresh the expired access token. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The key to refresh the expired access token. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonProperty("refresh_token") private String refreshToken; @@ -62,7 +68,9 @@ public Optional authMethod() { } /** - * The client ID of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client ID of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonIgnore public String clientId() { @@ -70,7 +78,9 @@ public String clientId() { } /** - * The client secret of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client secret of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonIgnore public String clientSecret() { @@ -78,19 +88,24 @@ public String clientSecret() { } /** - * The key to refresh the expired access token. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The key to refresh the expired access token. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ @JsonIgnore public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The client ID of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client ID of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public SourceLinkedinAdsOAuth20 withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -99,7 +114,9 @@ public SourceLinkedinAdsOAuth20 withClientId(String clientId) { } /** - * The client secret of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client secret of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public SourceLinkedinAdsOAuth20 withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -108,7 +125,9 @@ public SourceLinkedinAdsOAuth20 withClientSecret(String clientSecret) { } /** - * The key to refresh the expired access token. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The key to refresh the expired access token. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public SourceLinkedinAdsOAuth20 withRefreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -116,7 +135,6 @@ public SourceLinkedinAdsOAuth20 withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,18 +145,16 @@ public boolean equals(java.lang.Object o) { } SourceLinkedinAdsOAuth20 other = (SourceLinkedinAdsOAuth20) o; return - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - authMethod, - clientId, - clientSecret, + return Utils.enhancedHash( + authMethod, clientId, clientSecret, refreshToken); } @@ -150,21 +166,25 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** - * The client ID of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client ID of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -172,8 +192,11 @@ public Builder clientId(String clientId) { return this; } + /** - * The client secret of your developer application. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The client secret of your developer application. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -181,22 +204,25 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * The key to refresh the expired access token. Refer to our <a href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> for more information. + * The key to refresh the expired access token. Refer to our <a + * href='https://docs.airbyte.com/integrations/sources/linkedin-ads#setup-guide'>documentation</a> + * for more information. */ public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } - + public SourceLinkedinAdsOAuth20 build() { + return new SourceLinkedinAdsOAuth20( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java index c060fe05c..349fa7784 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinAdsSchemasAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceLinkedinAdsSchemasAuthMethod { @JsonValue private final String value; - private SourceLinkedinAdsSchemasAuthMethod(String value) { + SourceLinkedinAdsSchemasAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java index 8a196bf40..06c104844 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPages.java @@ -15,9 +15,9 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceLinkedinPages { @JsonInclude(Include.NON_ABSENT) @@ -30,11 +30,14 @@ public class SourceLinkedinPages { @JsonProperty("org_id") private String orgId; + @JsonProperty("sourceType") private LinkedinPages sourceType; /** - * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + * Start date for getting metrics per time period. Must be atmost 12 months before the request date + * (UTC) and atleast 2 days prior to the request date (UTC). See + * https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -66,7 +69,8 @@ public SourceLinkedinPages( public SourceLinkedinPages( String orgId) { - this(Optional.empty(), orgId, Optional.empty(), Optional.empty()); + this(Optional.empty(), orgId, Optional.empty(), + Optional.empty()); } @SuppressWarnings("unchecked") @@ -89,7 +93,9 @@ public LinkedinPages sourceType() { } /** - * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + * Start date for getting metrics per time period. Must be atmost 12 months before the request date + * (UTC) and atleast 2 days prior to the request date (UTC). See + * https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} */ @JsonIgnore public Optional startDate() { @@ -105,9 +111,10 @@ public Optional timeGranularityType() { return (Optional) timeGranularityType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceLinkedinPages withCredentials(SourceLinkedinPagesAuthentication credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -115,6 +122,7 @@ public SourceLinkedinPages withCredentials(SourceLinkedinPagesAuthentication cre return this; } + public SourceLinkedinPages withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -131,7 +139,9 @@ public SourceLinkedinPages withOrgId(String orgId) { } /** - * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + * Start date for getting metrics per time period. Must be atmost 12 months before the request date + * (UTC) and atleast 2 days prior to the request date (UTC). See + * https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} */ public SourceLinkedinPages withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -139,8 +149,11 @@ public SourceLinkedinPages withStartDate(OffsetDateTime startDate) { return this; } + /** - * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + * Start date for getting metrics per time period. Must be atmost 12 months before the request date + * (UTC) and atleast 2 days prior to the request date (UTC). See + * https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} */ public SourceLinkedinPages withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -157,6 +170,7 @@ public SourceLinkedinPages withTimeGranularityType(TimeGranularityType timeGranu return this; } + /** * Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" */ @@ -166,7 +180,6 @@ public SourceLinkedinPages withTimeGranularityType(Optional credentials = Optional.empty(); - + private String orgId; - + private Optional startDate; - + private Optional timeGranularityType; - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceLinkedinPagesAuthentication credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -230,6 +242,7 @@ public Builder credentials(Optional return this; } + /** * Specify the Organization ID */ @@ -239,8 +252,11 @@ public Builder orgId(String orgId) { return this; } + /** - * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + * Start date for getting metrics per time period. Must be atmost 12 months before the request date + * (UTC) and atleast 2 days prior to the request date (UTC). See + * https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -249,7 +265,9 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * Start date for getting metrics per time period. Must be atmost 12 months before the request date (UTC) and atleast 2 days prior to the request date (UTC). See https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} + * Start date for getting metrics per time period. Must be atmost 12 months before the request date + * (UTC) and atleast 2 days prior to the request date (UTC). See + * https://bit.ly/linkedin-pages-date-rules {{ "\n" }} {{ response.errorDetails }} */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -257,6 +275,7 @@ public Builder startDate(Optional startDate) { return this; } + /** * Granularity of the statistics for metrics per time period. Must be either "DAY" or "MONTH" */ @@ -274,7 +293,7 @@ public Builder timeGranularityType(Optional timeG this.timeGranularityType = timeGranularityType; return this; } - + public SourceLinkedinPages build() { if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); @@ -282,13 +301,13 @@ public SourceLinkedinPages build() { if (timeGranularityType == null) { timeGranularityType = _SINGLETON_VALUE_TimeGranularityType.value(); } + return new SourceLinkedinPages( - credentials, - orgId, - startDate, + credentials, orgId, startDate, timeGranularityType); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAccessToken.java index 6154ee849..cfd850c51 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAccessToken.java @@ -14,17 +14,18 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceLinkedinPagesAccessToken { +public class SourceLinkedinPagesAccessToken { /** - * The token value generated using the LinkedIn Developers OAuth Token Tools. See the <a href="https://docs.airbyte.com/integrations/sources/linkedin-pages/">docs</a> to obtain yours. + * The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_method") private Optional authMethod; @@ -38,7 +39,8 @@ public SourceLinkedinPagesAccessToken( } /** - * The token value generated using the LinkedIn Developers OAuth Token Tools. See the <a href="https://docs.airbyte.com/integrations/sources/linkedin-pages/">docs</a> to obtain yours. + * The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours. */ @JsonIgnore public String accessToken() { @@ -51,12 +53,14 @@ public Optional authMethod() { return (Optional) authMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The token value generated using the LinkedIn Developers OAuth Token Tools. See the <a href="https://docs.airbyte.com/integrations/sources/linkedin-pages/">docs</a> to obtain yours. + * The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours. */ public SourceLinkedinPagesAccessToken withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -64,7 +68,6 @@ public SourceLinkedinPagesAccessToken withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +78,14 @@ public boolean equals(java.lang.Object o) { } SourceLinkedinPagesAccessToken other = (SourceLinkedinPagesAccessToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authMethod, other.authMethod); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authMethod, other.authMethod); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authMethod); + return Utils.enhancedHash( + accessToken, authMethod); } @Override @@ -92,29 +94,34 @@ public String toString() { "accessToken", accessToken, "authMethod", authMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * The token value generated using the LinkedIn Developers OAuth Token Tools. See the <a href="https://docs.airbyte.com/integrations/sources/linkedin-pages/">docs</a> to obtain yours. + * The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public SourceLinkedinPagesAccessToken build() { + return new SourceLinkedinPagesAccessToken( accessToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java index 0d0900076..dc5647a72 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceLinkedinPagesAuthMethod { @JsonValue private final String value; - private SourceLinkedinPagesAuthMethod(String value) { + SourceLinkedinPagesAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthentication.java index 18101cde4..c5f04505e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceLinkedinPagesAuthentication._Deserializer.class) public class SourceLinkedinPagesAuthentication { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceLinkedinPagesAuthentication other = (SourceLinkedinPagesAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesOAuth20.java index ddc3658a9..310f7a5a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesOAuth20.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceLinkedinPagesOAuth20 { @JsonInclude(Include.NON_ABSENT) @@ -36,7 +36,8 @@ public class SourceLinkedinPagesOAuth20 { private String clientSecret; /** - * The token value generated using the LinkedIn Developers OAuth Token Tools. See the <a href="https://docs.airbyte.com/integrations/sources/linkedin-pages/">docs</a> to obtain yours. + * The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours. */ @JsonProperty("refresh_token") private String refreshToken; @@ -78,16 +79,18 @@ public String clientSecret() { } /** - * The token value generated using the LinkedIn Developers OAuth Token Tools. See the <a href="https://docs.airbyte.com/integrations/sources/linkedin-pages/">docs</a> to obtain yours. + * The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours. */ @JsonIgnore public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The client ID of the LinkedIn developer application. @@ -108,7 +111,8 @@ public SourceLinkedinPagesOAuth20 withClientSecret(String clientSecret) { } /** - * The token value generated using the LinkedIn Developers OAuth Token Tools. See the <a href="https://docs.airbyte.com/integrations/sources/linkedin-pages/">docs</a> to obtain yours. + * The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours. */ public SourceLinkedinPagesOAuth20 withRefreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -116,7 +120,6 @@ public SourceLinkedinPagesOAuth20 withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,18 +130,16 @@ public boolean equals(java.lang.Object o) { } SourceLinkedinPagesOAuth20 other = (SourceLinkedinPagesOAuth20) o; return - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - authMethod, - clientId, - clientSecret, + return Utils.enhancedHash( + authMethod, clientId, clientSecret, refreshToken); } @@ -150,19 +151,21 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * The client ID of the LinkedIn developer application. */ @@ -172,6 +175,7 @@ public Builder clientId(String clientId) { return this; } + /** * The client secret of the LinkedIn developer application. */ @@ -181,22 +185,24 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * The token value generated using the LinkedIn Developers OAuth Token Tools. See the <a href="https://docs.airbyte.com/integrations/sources/linkedin-pages/">docs</a> to obtain yours. + * The token value generated using the LinkedIn Developers OAuth Token Tools. See the docs to obtain yours. */ public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } - + public SourceLinkedinPagesOAuth20 build() { + return new SourceLinkedinPagesOAuth20( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java index 7afc48239..2a0749c84 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinkedinPagesSchemasAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceLinkedinPagesSchemasAuthMethod { @JsonValue private final String value; - private SourceLinkedinPagesSchemasAuthMethod(String value) { + SourceLinkedinPagesSchemasAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLinnworks.java b/src/main/java/com/airbyte/api/models/shared/SourceLinnworks.java index ff34a4e1f..32736f899 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLinnworks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLinnworks.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceLinnworks { +public class SourceLinnworks { /** * Linnworks Application ID */ @@ -28,15 +27,18 @@ public class SourceLinnworks { @JsonProperty("application_secret") private String applicationSecret; + @JsonProperty("sourceType") private Linnworks sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonProperty("token") private String token; @@ -79,7 +81,8 @@ public Linnworks sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { @@ -91,9 +94,10 @@ public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Linnworks Application ID @@ -114,7 +118,8 @@ public SourceLinnworks withApplicationSecret(String applicationSecret) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceLinnworks withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -128,7 +133,6 @@ public SourceLinnworks withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -139,21 +143,18 @@ public boolean equals(java.lang.Object o) { } SourceLinnworks other = (SourceLinnworks) o; return - Objects.deepEquals(this.applicationId, other.applicationId) && - Objects.deepEquals(this.applicationSecret, other.applicationSecret) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.applicationId, other.applicationId) && + Utils.enhancedDeepEquals(this.applicationSecret, other.applicationSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - applicationId, - applicationSecret, - sourceType, - startDate, - token); + return Utils.enhancedHash( + applicationId, applicationSecret, sourceType, + startDate, token); } @Override @@ -165,21 +166,23 @@ public String toString() { "startDate", startDate, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String applicationId; - + private String applicationSecret; - + private OffsetDateTime startDate; - + private String token; - + private Builder() { // force use of static builder() method } + /** * Linnworks Application ID */ @@ -189,6 +192,7 @@ public Builder applicationId(String applicationId) { return this; } + /** * Linnworks Application Secret */ @@ -198,8 +202,10 @@ public Builder applicationSecret(String applicationSecret) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -207,20 +213,21 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + public Builder token(String token) { Utils.checkNotNull(token, "token"); this.token = token; return this; } - + public SourceLinnworks build() { + return new SourceLinnworks( - applicationId, - applicationSecret, - startDate, + applicationId, applicationSecret, startDate, token); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLob.java b/src/main/java/com/airbyte/api/models/shared/SourceLob.java index 48229660a..32ddbb458 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLob.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLob.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceLob { +public class SourceLob { /** - * API key to use for authentication. You can find your account's API keys in your Dashboard Settings at https://dashboard.lob.com/settings/api-keys. + * API key to use for authentication. You can find your account's API keys in your Dashboard Settings + * at https://dashboard.lob.com/settings/api-keys. */ @JsonProperty("api_key") private String apiKey; @@ -32,9 +32,11 @@ public class SourceLob { @JsonProperty("limit") private Optional limit; + @JsonProperty("sourceType") private Lob sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -59,7 +61,8 @@ public SourceLob( } /** - * API key to use for authentication. You can find your account's API keys in your Dashboard Settings at https://dashboard.lob.com/settings/api-keys. + * API key to use for authentication. You can find your account's API keys in your Dashboard Settings + * at https://dashboard.lob.com/settings/api-keys. */ @JsonIgnore public String apiKey() { @@ -84,12 +87,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key to use for authentication. You can find your account's API keys in your Dashboard Settings at https://dashboard.lob.com/settings/api-keys. + * API key to use for authentication. You can find your account's API keys in your Dashboard Settings + * at https://dashboard.lob.com/settings/api-keys. */ public SourceLob withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -106,6 +111,7 @@ public SourceLob withLimit(String limit) { return this; } + /** * Max records per page limit */ @@ -121,7 +127,6 @@ public SourceLob withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +137,16 @@ public boolean equals(java.lang.Object o) { } SourceLob other = (SourceLob) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - limit, - sourceType, + return Utils.enhancedHash( + apiKey, limit, sourceType, startDate); } @@ -155,21 +158,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional limit; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * API key to use for authentication. You can find your account's API keys in your Dashboard Settings at https://dashboard.lob.com/settings/api-keys. + * API key to use for authentication. You can find your account's API keys in your Dashboard Settings + * at https://dashboard.lob.com/settings/api-keys. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -177,6 +183,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Max records per page limit */ @@ -195,22 +202,23 @@ public Builder limit(Optional limit) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceLob build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } + return new SourceLob( - apiKey, - limit, - startDate); + apiKey, limit, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = new LazySingletonValue<>( "limit", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLokalise.java b/src/main/java/com/airbyte/api/models/shared/SourceLokalise.java index 7703374f1..4a9c0abda 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLokalise.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLokalise.java @@ -11,12 +11,12 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceLokalise { +public class SourceLokalise { /** - * Lokalise API Key with read-access. Available at Profile settings > API tokens. See <a href="https://docs.lokalise.com/en/articles/1929556-api-tokens">here</a>. + * Lokalise API Key with read-access. Available at Profile settings > API tokens. See here. */ @JsonProperty("api_key") private String apiKey; @@ -27,6 +27,7 @@ public class SourceLokalise { @JsonProperty("project_id") private String projectId; + @JsonProperty("sourceType") private Lokalise sourceType; @@ -42,7 +43,8 @@ public SourceLokalise( } /** - * Lokalise API Key with read-access. Available at Profile settings > API tokens. See <a href="https://docs.lokalise.com/en/articles/1929556-api-tokens">here</a>. + * Lokalise API Key with read-access. Available at Profile settings > API tokens. See here. */ @JsonIgnore public String apiKey() { @@ -62,12 +64,14 @@ public Lokalise sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Lokalise API Key with read-access. Available at Profile settings > API tokens. See <a href="https://docs.lokalise.com/en/articles/1929556-api-tokens">here</a>. + * Lokalise API Key with read-access. Available at Profile settings > API tokens. See here. */ public SourceLokalise withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -84,7 +88,6 @@ public SourceLokalise withProjectId(String projectId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +98,15 @@ public boolean equals(java.lang.Object o) { } SourceLokalise other = (SourceLokalise) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.projectId, other.projectId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.projectId, other.projectId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - projectId, - sourceType); + return Utils.enhancedHash( + apiKey, projectId, sourceType); } @Override @@ -115,19 +116,22 @@ public String toString() { "projectId", projectId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String projectId; - + private Builder() { // force use of static builder() method } + /** - * Lokalise API Key with read-access. Available at Profile settings > API tokens. See <a href="https://docs.lokalise.com/en/articles/1929556-api-tokens">here</a>. + * Lokalise API Key with read-access. Available at Profile settings > API tokens. See here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -135,6 +139,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Lokalise project ID. Available at Project Settings > General. */ @@ -143,13 +148,14 @@ public Builder projectId(String projectId) { this.projectId = projectId; return this; } - + public SourceLokalise build() { + return new SourceLokalise( - apiKey, - projectId); + apiKey, projectId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLooker.java b/src/main/java/com/airbyte/api/models/shared/SourceLooker.java index ad7c26bb6..5cd03f33f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLooker.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLooker.java @@ -15,13 +15,14 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceLooker { +public class SourceLooker { /** - * The Client ID is first part of an API3 key that is specific to each Looker user. See the <a href="https://docs.airbyte.com/integrations/sources/looker">docs</a> for more information on how to generate this key. + * The Client ID is first part of an API3 key that is specific to each Looker user. See the docs for more information on how to + * generate this key. */ @JsonProperty("client_id") private String clientId; @@ -45,6 +46,7 @@ public class SourceLooker { @JsonProperty("run_look_ids") private Optional> runLookIds; + @JsonProperty("sourceType") private Looker sourceType; @@ -69,11 +71,14 @@ public SourceLooker( String clientId, String clientSecret, String domain) { - this(clientId, clientSecret, domain, Optional.empty()); + this(clientId, clientSecret, domain, + Optional.empty()); } /** - * The Client ID is first part of an API3 key that is specific to each Looker user. See the <a href="https://docs.airbyte.com/integrations/sources/looker">docs</a> for more information on how to generate this key. + * The Client ID is first part of an API3 key that is specific to each Looker user. See the docs for more information on how to + * generate this key. */ @JsonIgnore public String clientId() { @@ -110,12 +115,15 @@ public Looker sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Client ID is first part of an API3 key that is specific to each Looker user. See the <a href="https://docs.airbyte.com/integrations/sources/looker">docs</a> for more information on how to generate this key. + * The Client ID is first part of an API3 key that is specific to each Looker user. See the docs for more information on how to + * generate this key. */ public SourceLooker withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -150,6 +158,7 @@ public SourceLooker withRunLookIds(List runLookIds) { return this; } + /** * The IDs of any Looks to run */ @@ -159,7 +168,6 @@ public SourceLooker withRunLookIds(Optional> runLookIds) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -170,21 +178,18 @@ public boolean equals(java.lang.Object o) { } SourceLooker other = (SourceLooker) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.runLookIds, other.runLookIds) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.runLookIds, other.runLookIds) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - domain, - runLookIds, - sourceType); + return Utils.enhancedHash( + clientId, clientSecret, domain, + runLookIds, sourceType); } @Override @@ -196,23 +201,27 @@ public String toString() { "runLookIds", runLookIds, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String domain; - + private Optional> runLookIds = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The Client ID is first part of an API3 key that is specific to each Looker user. See the <a href="https://docs.airbyte.com/integrations/sources/looker">docs</a> for more information on how to generate this key. + * The Client ID is first part of an API3 key that is specific to each Looker user. See the docs for more information on how to + * generate this key. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -220,6 +229,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret is second part of an API3 key. */ @@ -229,6 +239,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Domain for your Looker account, e.g. airbyte.cloud.looker.com,looker.[clientname].com,IP address */ @@ -238,6 +249,7 @@ public Builder domain(String domain) { return this; } + /** * The IDs of any Looks to run */ @@ -255,15 +267,15 @@ public Builder runLookIds(Optional> runLookIds) { this.runLookIds = runLookIds; return this; } - + public SourceLooker build() { + return new SourceLooker( - clientId, - clientSecret, - domain, + clientId, clientSecret, domain, runLookIds); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceLuma.java b/src/main/java/com/airbyte/api/models/shared/SourceLuma.java index b94b75a83..8348e34e9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceLuma.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceLuma.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceLuma { +public class SourceLuma { /** * Get your API key on lu.ma Calendars dashboard → Settings. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Luma sourceType; @@ -45,9 +45,10 @@ public Luma sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Get your API key on lu.ma Calendars dashboard → Settings. @@ -58,7 +59,6 @@ public SourceLuma withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceLuma other = (SourceLuma) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * Get your API key on lu.ma Calendars dashboard → Settings. */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceLuma build() { + return new SourceLuma( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimp.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimp.java index a8d72e99b..7095872c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimp.java @@ -15,20 +15,22 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceMailchimp { @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; + @JsonProperty("sourceType") private SourceMailchimpMailchimp sourceType; /** - * The date from which you want to start syncing data for Incremental streams. Only records that have been created or modified since this date will be synced. If left blank, all data will by synced. + * The date from which you want to start syncing data for Incremental streams. Only records that have + * been created or modified since this date will be synced. If left blank, all data will by synced. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -61,16 +63,18 @@ public SourceMailchimpMailchimp sourceType() { } /** - * The date from which you want to start syncing data for Incremental streams. Only records that have been created or modified since this date will be synced. If left blank, all data will by synced. + * The date from which you want to start syncing data for Incremental streams. Only records that have + * been created or modified since this date will be synced. If left blank, all data will by synced. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceMailchimp withCredentials(SourceMailchimpAuthentication credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -78,6 +82,7 @@ public SourceMailchimp withCredentials(SourceMailchimpAuthentication credentials return this; } + public SourceMailchimp withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -85,7 +90,8 @@ public SourceMailchimp withCredentials(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -102,7 +110,6 @@ public SourceMailchimp withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,17 +120,15 @@ public boolean equals(java.lang.Object o) { } SourceMailchimp other = (SourceMailchimp) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - credentials, - sourceType, - startDate); + return Utils.enhancedHash( + credentials, sourceType, startDate); } @Override @@ -133,17 +138,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceMailchimpAuthentication credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -156,8 +163,10 @@ public Builder credentials(Optional cre return this; } + /** - * The date from which you want to start syncing data for Incremental streams. Only records that have been created or modified since this date will be synced. If left blank, all data will by synced. + * The date from which you want to start syncing data for Incremental streams. Only records that have + * been created or modified since this date will be synced. If left blank, all data will by synced. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -166,20 +175,22 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date from which you want to start syncing data for Incremental streams. Only records that have been created or modified since this date will be synced. If left blank, all data will by synced. + * The date from which you want to start syncing data for Incremental streams. Only records that have + * been created or modified since this date will be synced. If left blank, all data will by synced. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceMailchimp build() { + return new SourceMailchimp( - credentials, - startDate); + credentials, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAPIKey.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAPIKey.java new file mode 100644 index 000000000..d15303b5b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAPIKey.java @@ -0,0 +1,129 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; + + +public class SourceMailchimpAPIKey { + /** + * Mailchimp API Key. See the docs for information on how to + * generate this key. + */ + @JsonProperty("apikey") + private String apikey; + + + @JsonProperty("auth_type") + private SourceMailchimpSchemasAuthType authType; + + @JsonCreator + public SourceMailchimpAPIKey( + @JsonProperty("apikey") String apikey) { + Utils.checkNotNull(apikey, "apikey"); + this.apikey = apikey; + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + } + + /** + * Mailchimp API Key. See the docs for information on how to + * generate this key. + */ + @JsonIgnore + public String apikey() { + return apikey; + } + + @JsonIgnore + public SourceMailchimpSchemasAuthType authType() { + return authType; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Mailchimp API Key. See the docs for information on how to + * generate this key. + */ + public SourceMailchimpAPIKey withApikey(String apikey) { + Utils.checkNotNull(apikey, "apikey"); + this.apikey = apikey; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceMailchimpAPIKey other = (SourceMailchimpAPIKey) o; + return + Utils.enhancedDeepEquals(this.apikey, other.apikey) && + Utils.enhancedDeepEquals(this.authType, other.authType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + apikey, authType); + } + + @Override + public String toString() { + return Utils.toString(SourceMailchimpAPIKey.class, + "apikey", apikey, + "authType", authType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String apikey; + + private Builder() { + // force use of static builder() method + } + + + /** + * Mailchimp API Key. See the docs for information on how to + * generate this key. + */ + public Builder apikey(String apikey) { + Utils.checkNotNull(apikey, "apikey"); + this.apikey = apikey; + return this; + } + + public SourceMailchimpAPIKey build() { + + return new SourceMailchimpAPIKey( + apikey); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"apikey\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java index 0e891d781..7191e3a13 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthType.java @@ -14,7 +14,7 @@ public enum SourceMailchimpAuthType { @JsonValue private final String value; - private SourceMailchimpAuthType(String value) { + SourceMailchimpAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthentication.java index be6cdb584..18c1b696a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceMailchimpAuthentication._Deserializer.class) public class SourceMailchimpAuthentication { @@ -31,16 +30,16 @@ public static SourceMailchimpAuthentication of(SourceMailchimpOAuth20 value) { return new SourceMailchimpAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } - public static SourceMailchimpAuthentication of(APIKey value) { + public static SourceMailchimpAuthentication of(SourceMailchimpAPIKey value) { Utils.checkNotNull(value, "value"); - return new SourceMailchimpAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + return new SourceMailchimpAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } /** * Returns an instance of one of these types: *

      *
    • {@code com.airbyte.api.models.shared.SourceMailchimpOAuth20}
    • - *
    • {@code com.airbyte.api.models.shared.APIKey}
    • + *
    • {@code com.airbyte.api.models.shared.SourceMailchimpAPIKey}
    • *
    * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMailchimpAuthentication other = (SourceMailchimpAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") @@ -81,7 +80,7 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java index 4a3e7453a..074e84d01 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpMailchimp.java @@ -14,7 +14,7 @@ public enum SourceMailchimpMailchimp { @JsonValue private final String value; - private SourceMailchimpMailchimp(String value) { + SourceMailchimpMailchimp(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpOAuth20.java index 8f1213338..3291c3922 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpOAuth20.java @@ -13,17 +13,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceMailchimpOAuth20 { +public class SourceMailchimpOAuth20 { /** * An access token generated using the above client ID and secret. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("auth_type") private SourceMailchimpAuthType authType; @@ -89,9 +89,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * An access token generated using the above client ID and secret. @@ -111,6 +112,7 @@ public SourceMailchimpOAuth20 withClientId(String clientId) { return this; } + /** * The Client ID of your OAuth application. */ @@ -129,6 +131,7 @@ public SourceMailchimpOAuth20 withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -138,7 +141,6 @@ public SourceMailchimpOAuth20 withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,18 +151,16 @@ public boolean equals(java.lang.Object o) { } SourceMailchimpOAuth20 other = (SourceMailchimpOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, + return Utils.enhancedHash( + accessToken, authType, clientId, clientSecret); } @@ -172,19 +172,21 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * An access token generated using the above client ID and secret. */ @@ -194,6 +196,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Client ID of your OAuth application. */ @@ -212,6 +215,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -229,14 +233,14 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public SourceMailchimpOAuth20 build() { + return new SourceMailchimpOAuth20( - accessToken, - clientId, - clientSecret); + accessToken, clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java index a96171888..bc99afada 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailchimpSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceMailchimpSchemasAuthType { @JsonValue private final String value; - private SourceMailchimpSchemasAuthType(String value) { + SourceMailchimpSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailerlite.java b/src/main/java/com/airbyte/api/models/shared/SourceMailerlite.java index 00071a68f..f57186182 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailerlite.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailerlite.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceMailerlite { +public class SourceMailerlite { /** - * Your API Token. See <a href="https://developers.mailerlite.com/docs/#authentication">here</a>. + * Your API Token. See here. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Mailerlite sourceType; @@ -33,7 +33,7 @@ public SourceMailerlite( } /** - * Your API Token. See <a href="https://developers.mailerlite.com/docs/#authentication">here</a>. + * Your API Token. See here. */ @JsonIgnore public String apiToken() { @@ -45,12 +45,13 @@ public Mailerlite sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Token. See <a href="https://developers.mailerlite.com/docs/#authentication">here</a>. + * Your API Token. See here. */ public SourceMailerlite withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -58,7 +59,6 @@ public SourceMailerlite withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceMailerlite other = (SourceMailerlite) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,29 +85,33 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** - * Your API Token. See <a href="https://developers.mailerlite.com/docs/#authentication">here</a>. + * Your API Token. See here. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); this.apiToken = apiToken; return this; } - + public SourceMailerlite build() { + return new SourceMailerlite( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailersend.java b/src/main/java/com/airbyte/api/models/shared/SourceMailersend.java index d22eb5429..a4636ce6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailersend.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailersend.java @@ -14,13 +14,12 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceMailersend { +public class SourceMailersend { /** - * Your API Token. See <a href="https://www.mailersend.com/help/managing-api-tokens">here</a>. + * Your API Token. See here. */ @JsonProperty("api_token") private String apiToken; @@ -31,6 +30,7 @@ public class SourceMailersend { @JsonProperty("domain_id") private String domainId; + @JsonProperty("sourceType") private Mailersend sourceType; @@ -62,7 +62,7 @@ public SourceMailersend( } /** - * Your API Token. See <a href="https://www.mailersend.com/help/managing-api-tokens">here</a>. + * Your API Token. See here. */ @JsonIgnore public String apiToken() { @@ -90,12 +90,13 @@ public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Token. See <a href="https://www.mailersend.com/help/managing-api-tokens">here</a>. + * Your API Token. See here. */ public SourceMailersend withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -121,6 +122,7 @@ public SourceMailersend withStartDate(double startDate) { return this; } + /** * Timestamp is assumed to be UTC. */ @@ -130,7 +132,6 @@ public SourceMailersend withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -141,18 +142,16 @@ public boolean equals(java.lang.Object o) { } SourceMailersend other = (SourceMailersend) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.domainId, other.domainId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.domainId, other.domainId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiToken, - domainId, - sourceType, + return Utils.enhancedHash( + apiToken, domainId, sourceType, startDate); } @@ -164,21 +163,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private String domainId; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Your API Token. See <a href="https://www.mailersend.com/help/managing-api-tokens">here</a>. + * Your API Token. See here. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -186,6 +187,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * The domain entity in mailersend */ @@ -195,6 +197,7 @@ public Builder domainId(String domainId) { return this; } + /** * Timestamp is assumed to be UTC. */ @@ -212,14 +215,14 @@ public Builder startDate(Optional startDate) { this.startDate = startDate; return this; } - + public SourceMailersend build() { + return new SourceMailersend( - apiToken, - domainId, - startDate); + apiToken, domainId, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailgun.java b/src/main/java/com/airbyte/api/models/shared/SourceMailgun.java index 806790782..d6bc526ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailgun.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailgun.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceMailgun { +public class SourceMailgun { /** * Domain region code. 'EU' or 'US' are possible values. The default is 'US'. */ @@ -33,11 +32,13 @@ public class SourceMailgun { @JsonProperty("private_key") private String privateKey; + @JsonProperty("sourceType") private Mailgun sourceType; /** - * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be replicated. If omitted, defaults to 3 days ago. + * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be + * replicated. If omitted, defaults to 3 days ago. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -85,16 +86,18 @@ public Mailgun sourceType() { } /** - * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be replicated. If omitted, defaults to 3 days ago. + * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be + * replicated. If omitted, defaults to 3 days ago. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Domain region code. 'EU' or 'US' are possible values. The default is 'US'. @@ -105,6 +108,7 @@ public SourceMailgun withDomainRegion(DomainRegionCode domainRegion) { return this; } + /** * Domain region code. 'EU' or 'US' are possible values. The default is 'US'. */ @@ -124,7 +128,8 @@ public SourceMailgun withPrivateKey(String privateKey) { } /** - * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be replicated. If omitted, defaults to 3 days ago. + * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be + * replicated. If omitted, defaults to 3 days ago. */ public SourceMailgun withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -132,8 +137,10 @@ public SourceMailgun withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be replicated. If omitted, defaults to 3 days ago. + * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be + * replicated. If omitted, defaults to 3 days ago. */ public SourceMailgun withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -141,7 +148,6 @@ public SourceMailgun withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -152,18 +158,16 @@ public boolean equals(java.lang.Object o) { } SourceMailgun other = (SourceMailgun) o; return - Objects.deepEquals(this.domainRegion, other.domainRegion) && - Objects.deepEquals(this.privateKey, other.privateKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.domainRegion, other.domainRegion) && + Utils.enhancedDeepEquals(this.privateKey, other.privateKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - domainRegion, - privateKey, - sourceType, + return Utils.enhancedHash( + domainRegion, privateKey, sourceType, startDate); } @@ -175,19 +179,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional domainRegion; - + private String privateKey; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Domain region code. 'EU' or 'US' are possible values. The default is 'US'. */ @@ -206,6 +212,7 @@ public Builder domainRegion(Optional domainRegion) { return this; } + /** * Primary account API key to access your Mailgun data. */ @@ -215,8 +222,10 @@ public Builder privateKey(String privateKey) { return this; } + /** - * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be replicated. If omitted, defaults to 3 days ago. + * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be + * replicated. If omitted, defaults to 3 days ago. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -225,24 +234,25 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be replicated. If omitted, defaults to 3 days ago. + * UTC date and time in the format 2020-10-01 00:00:00. Any data before this date will not be + * replicated. If omitted, defaults to 3 days ago. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceMailgun build() { if (domainRegion == null) { domainRegion = _SINGLETON_VALUE_DomainRegion.value(); } + return new SourceMailgun( - domainRegion, - privateKey, - startDate); + domainRegion, privateKey, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_DomainRegion = new LazySingletonValue<>( "domain_region", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailjetMail.java b/src/main/java/com/airbyte/api/models/shared/SourceMailjetMail.java index 030895817..7e15d29c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailjetMail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailjetMail.java @@ -11,22 +11,22 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceMailjetMail { +public class SourceMailjetMail { /** - * Your API Key. See <a href="https://dev.mailjet.com/email/guides/#authentication">here</a>. + * Your API Key. See here. */ @JsonProperty("api_key") private String apiKey; /** - * Your API Secret Key. See <a href="https://dev.mailjet.com/email/guides/#authentication">here</a>. + * Your API Secret Key. See here. */ @JsonProperty("api_key_secret") private String apiKeySecret; + @JsonProperty("sourceType") private MailjetMail sourceType; @@ -42,7 +42,7 @@ public SourceMailjetMail( } /** - * Your API Key. See <a href="https://dev.mailjet.com/email/guides/#authentication">here</a>. + * Your API Key. See here. */ @JsonIgnore public String apiKey() { @@ -50,7 +50,7 @@ public String apiKey() { } /** - * Your API Secret Key. See <a href="https://dev.mailjet.com/email/guides/#authentication">here</a>. + * Your API Secret Key. See here. */ @JsonIgnore public String apiKeySecret() { @@ -62,12 +62,13 @@ public MailjetMail sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Key. See <a href="https://dev.mailjet.com/email/guides/#authentication">here</a>. + * Your API Key. See here. */ public SourceMailjetMail withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -76,7 +77,7 @@ public SourceMailjetMail withApiKey(String apiKey) { } /** - * Your API Secret Key. See <a href="https://dev.mailjet.com/email/guides/#authentication">here</a>. + * Your API Secret Key. See here. */ public SourceMailjetMail withApiKeySecret(String apiKeySecret) { Utils.checkNotNull(apiKeySecret, "apiKeySecret"); @@ -84,7 +85,6 @@ public SourceMailjetMail withApiKeySecret(String apiKeySecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceMailjetMail other = (SourceMailjetMail) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiKeySecret, other.apiKeySecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiKeySecret, other.apiKeySecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiKeySecret, - sourceType); + return Utils.enhancedHash( + apiKey, apiKeySecret, sourceType); } @Override @@ -115,19 +113,21 @@ public String toString() { "apiKeySecret", apiKeySecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String apiKeySecret; - + private Builder() { // force use of static builder() method } + /** - * Your API Key. See <a href="https://dev.mailjet.com/email/guides/#authentication">here</a>. + * Your API Key. See here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -135,21 +135,23 @@ public Builder apiKey(String apiKey) { return this; } + /** - * Your API Secret Key. See <a href="https://dev.mailjet.com/email/guides/#authentication">here</a>. + * Your API Secret Key. See here. */ public Builder apiKeySecret(String apiKeySecret) { Utils.checkNotNull(apiKeySecret, "apiKeySecret"); this.apiKeySecret = apiKeySecret; return this; } - + public SourceMailjetMail build() { + return new SourceMailjetMail( - apiKey, - apiKeySecret); + apiKey, apiKeySecret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailjetSms.java b/src/main/java/com/airbyte/api/models/shared/SourceMailjetSms.java index 23b731ad1..b888b0510 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailjetSms.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailjetSms.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceMailjetSms { +public class SourceMailjetSms { /** * Retrieve SMS messages created before the specified timestamp. Required format - Unix timestamp. */ @@ -26,6 +25,7 @@ public class SourceMailjetSms { @JsonProperty("end_date") private Optional endDate; + @JsonProperty("sourceType") private MailjetSms sourceType; @@ -37,7 +37,8 @@ public class SourceMailjetSms { private Optional startDate; /** - * Your access token. See <a href="https://dev.mailjet.com/sms/reference/overview/authentication">here</a>. + * Your access token. See here. */ @JsonProperty("token") private String token; @@ -83,16 +84,18 @@ public Optional startDate() { } /** - * Your access token. See <a href="https://dev.mailjet.com/sms/reference/overview/authentication">here</a>. + * Your access token. See here. */ @JsonIgnore public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Retrieve SMS messages created before the specified timestamp. Required format - Unix timestamp. @@ -103,6 +106,7 @@ public SourceMailjetSms withEndDate(long endDate) { return this; } + /** * Retrieve SMS messages created before the specified timestamp. Required format - Unix timestamp. */ @@ -121,6 +125,7 @@ public SourceMailjetSms withStartDate(long startDate) { return this; } + /** * Retrieve SMS messages created after the specified timestamp. Required format - Unix timestamp. */ @@ -131,7 +136,8 @@ public SourceMailjetSms withStartDate(Optional startDate) { } /** - * Your access token. See <a href="https://dev.mailjet.com/sms/reference/overview/authentication">here</a>. + * Your access token. See here. */ public SourceMailjetSms withToken(String token) { Utils.checkNotNull(token, "token"); @@ -139,7 +145,6 @@ public SourceMailjetSms withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -150,18 +155,16 @@ public boolean equals(java.lang.Object o) { } SourceMailjetSms other = (SourceMailjetSms) o; return - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - endDate, - sourceType, - startDate, + return Utils.enhancedHash( + endDate, sourceType, startDate, token); } @@ -173,19 +176,21 @@ public String toString() { "startDate", startDate, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional endDate = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private String token; - + private Builder() { // force use of static builder() method } + /** * Retrieve SMS messages created before the specified timestamp. Required format - Unix timestamp. */ @@ -204,6 +209,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * Retrieve SMS messages created after the specified timestamp. Required format - Unix timestamp. */ @@ -222,22 +228,24 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Your access token. See <a href="https://dev.mailjet.com/sms/reference/overview/authentication">here</a>. + * Your access token. See here. */ public Builder token(String token) { Utils.checkNotNull(token, "token"); this.token = token; return this; } - + public SourceMailjetSms build() { + return new SourceMailjetSms( - endDate, - startDate, - token); + endDate, startDate, token); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailosaur.java b/src/main/java/com/airbyte/api/models/shared/SourceMailosaur.java index a562228cc..df0731f05 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailosaur.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailosaur.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceMailosaur { +public class SourceMailosaur { /** * Enter your api key here */ @@ -25,6 +24,7 @@ public class SourceMailosaur { @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Mailosaur sourceType; @@ -71,9 +71,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Enter your api key here @@ -84,6 +85,7 @@ public SourceMailosaur withPassword(String password) { return this; } + /** * Enter your api key here */ @@ -102,7 +104,6 @@ public SourceMailosaur withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,17 +114,15 @@ public boolean equals(java.lang.Object o) { } SourceMailosaur other = (SourceMailosaur) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - username); + return Utils.enhancedHash( + password, sourceType, username); } @Override @@ -133,17 +132,19 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Enter your api key here */ @@ -162,6 +163,7 @@ public Builder password(Optional password) { return this; } + /** * Enter "api" here */ @@ -170,13 +172,14 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceMailosaur build() { + return new SourceMailosaur( - password, - username); + password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMailtrap.java b/src/main/java/com/airbyte/api/models/shared/SourceMailtrap.java index a29337d98..e366afa85 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMailtrap.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMailtrap.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceMailtrap { +public class SourceMailtrap { /** * API token to use. Find it at https://mailtrap.io/account */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Mailtrap sourceType; @@ -45,9 +45,10 @@ public Mailtrap sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API token to use. Find it at https://mailtrap.io/account @@ -58,7 +59,6 @@ public SourceMailtrap withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceMailtrap other = (SourceMailtrap) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * API token to use. Find it at https://mailtrap.io/account */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public SourceMailtrap build() { + return new SourceMailtrap( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMarketo.java b/src/main/java/com/airbyte/api/models/shared/SourceMarketo.java index b8de474dd..fd4582fba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMarketo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMarketo.java @@ -12,33 +12,39 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceMarketo { +public class SourceMarketo { /** - * The Client ID of your Marketo developer application. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * The Client ID of your Marketo developer application. See the docs for info on how to + * obtain this. */ @JsonProperty("client_id") private String clientId; /** - * The Client Secret of your Marketo developer application. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * The Client Secret of your Marketo developer application. See the docs for info on how to + * obtain this. */ @JsonProperty("client_secret") private String clientSecret; /** - * Your Marketo Base URL. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * Your Marketo Base URL. See the docs + * for info on how to obtain this. */ @JsonProperty("domain_url") private String domainUrl; + @JsonProperty("sourceType") private Marketo sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -61,7 +67,9 @@ public SourceMarketo( } /** - * The Client ID of your Marketo developer application. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * The Client ID of your Marketo developer application. See the docs for info on how to + * obtain this. */ @JsonIgnore public String clientId() { @@ -69,7 +77,9 @@ public String clientId() { } /** - * The Client Secret of your Marketo developer application. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * The Client Secret of your Marketo developer application. See the docs for info on how to + * obtain this. */ @JsonIgnore public String clientSecret() { @@ -77,7 +87,8 @@ public String clientSecret() { } /** - * Your Marketo Base URL. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * Your Marketo Base URL. See the docs + * for info on how to obtain this. */ @JsonIgnore public String domainUrl() { @@ -90,19 +101,23 @@ public Marketo sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Client ID of your Marketo developer application. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * The Client ID of your Marketo developer application. See the docs for info on how to + * obtain this. */ public SourceMarketo withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -111,7 +126,9 @@ public SourceMarketo withClientId(String clientId) { } /** - * The Client Secret of your Marketo developer application. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * The Client Secret of your Marketo developer application. See the docs for info on how to + * obtain this. */ public SourceMarketo withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -120,7 +137,8 @@ public SourceMarketo withClientSecret(String clientSecret) { } /** - * Your Marketo Base URL. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * Your Marketo Base URL. See the docs + * for info on how to obtain this. */ public SourceMarketo withDomainUrl(String domainUrl) { Utils.checkNotNull(domainUrl, "domainUrl"); @@ -129,7 +147,8 @@ public SourceMarketo withDomainUrl(String domainUrl) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceMarketo withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -137,7 +156,6 @@ public SourceMarketo withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -148,21 +166,18 @@ public boolean equals(java.lang.Object o) { } SourceMarketo other = (SourceMarketo) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.domainUrl, other.domainUrl) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.domainUrl, other.domainUrl) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - domainUrl, - sourceType, - startDate); + return Utils.enhancedHash( + clientId, clientSecret, domainUrl, + sourceType, startDate); } @Override @@ -174,23 +189,27 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String domainUrl; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * The Client ID of your Marketo developer application. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * The Client ID of your Marketo developer application. See the docs for info on how to + * obtain this. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -198,8 +217,11 @@ public Builder clientId(String clientId) { return this; } + /** - * The Client Secret of your Marketo developer application. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * The Client Secret of your Marketo developer application. See the docs for info on how to + * obtain this. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -207,8 +229,10 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * Your Marketo Base URL. See <a href="https://docs.airbyte.com/integrations/sources/marketo"> the docs </a> for info on how to obtain this. + * Your Marketo Base URL. See the docs + * for info on how to obtain this. */ public Builder domainUrl(String domainUrl) { Utils.checkNotNull(domainUrl, "domainUrl"); @@ -216,23 +240,25 @@ public Builder domainUrl(String domainUrl) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceMarketo build() { + return new SourceMarketo( - clientId, - clientSecret, - domainUrl, + clientId, clientSecret, domainUrl, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMarketstack.java b/src/main/java/com/airbyte/api/models/shared/SourceMarketstack.java index d621a3374..a5de87fb8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMarketstack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMarketstack.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceMarketstack { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Marketstack sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceMarketstack withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceMarketstack withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceMarketstack other = (SourceMarketstack) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceMarketstack build() { + return new SourceMarketstack( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMendeley.java b/src/main/java/com/airbyte/api/models/shared/SourceMendeley.java index 818816689..e6b19e282 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMendeley.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMendeley.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceMendeley { +public class SourceMendeley { /** * Could be found at `https://dev.mendeley.com/myapps.html` */ @@ -26,7 +25,9 @@ public class SourceMendeley { private String clientId; /** - * Use cURL or Postman with the OAuth 2.0 Authorization tab. Set the Auth URL to https://api.mendeley.com/oauth/authorize, the Token URL to https://api.mendeley.com/oauth/token, and use all as the scope. + * Use cURL or Postman with the OAuth 2.0 Authorization tab. Set the Auth URL to + * https://api.mendeley.com/oauth/authorize, the Token URL to https://api.mendeley.com/oauth/token, and + * use all as the scope. */ @JsonProperty("client_refresh_token") private String clientRefreshToken; @@ -51,9 +52,11 @@ public class SourceMendeley { @JsonProperty("query_for_catalog") private Optional queryForCatalog; + @JsonProperty("sourceType") private Mendeley sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -85,7 +88,8 @@ public SourceMendeley( String clientRefreshToken, String clientSecret, OffsetDateTime startDate) { - this(clientId, clientRefreshToken, clientSecret, Optional.empty(), Optional.empty(), startDate); + this(clientId, clientRefreshToken, clientSecret, + Optional.empty(), Optional.empty(), startDate); } /** @@ -97,7 +101,9 @@ public String clientId() { } /** - * Use cURL or Postman with the OAuth 2.0 Authorization tab. Set the Auth URL to https://api.mendeley.com/oauth/authorize, the Token URL to https://api.mendeley.com/oauth/token, and use all as the scope. + * Use cURL or Postman with the OAuth 2.0 Authorization tab. Set the Auth URL to + * https://api.mendeley.com/oauth/authorize, the Token URL to https://api.mendeley.com/oauth/token, and + * use all as the scope. */ @JsonIgnore public String clientRefreshToken() { @@ -138,9 +144,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Could be found at `https://dev.mendeley.com/myapps.html` @@ -152,7 +159,9 @@ public SourceMendeley withClientId(String clientId) { } /** - * Use cURL or Postman with the OAuth 2.0 Authorization tab. Set the Auth URL to https://api.mendeley.com/oauth/authorize, the Token URL to https://api.mendeley.com/oauth/token, and use all as the scope. + * Use cURL or Postman with the OAuth 2.0 Authorization tab. Set the Auth URL to + * https://api.mendeley.com/oauth/authorize, the Token URL to https://api.mendeley.com/oauth/token, and + * use all as the scope. */ public SourceMendeley withClientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); @@ -178,6 +187,7 @@ public SourceMendeley withNameForInstitution(String nameForInstitution) { return this; } + /** * The name parameter for institutions search */ @@ -196,6 +206,7 @@ public SourceMendeley withQueryForCatalog(String queryForCatalog) { return this; } + /** * Query for catalog search */ @@ -211,7 +222,6 @@ public SourceMendeley withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -222,24 +232,20 @@ public boolean equals(java.lang.Object o) { } SourceMendeley other = (SourceMendeley) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken, other.clientRefreshToken) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.nameForInstitution, other.nameForInstitution) && - Objects.deepEquals(this.queryForCatalog, other.queryForCatalog) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.nameForInstitution, other.nameForInstitution) && + Utils.enhancedDeepEquals(this.queryForCatalog, other.queryForCatalog) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientRefreshToken, - clientSecret, - nameForInstitution, - queryForCatalog, - sourceType, + return Utils.enhancedHash( + clientId, clientRefreshToken, clientSecret, + nameForInstitution, queryForCatalog, sourceType, startDate); } @@ -254,25 +260,27 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientRefreshToken; - + private String clientSecret; - + private Optional nameForInstitution; - + private Optional queryForCatalog; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * Could be found at `https://dev.mendeley.com/myapps.html` */ @@ -282,8 +290,11 @@ public Builder clientId(String clientId) { return this; } + /** - * Use cURL or Postman with the OAuth 2.0 Authorization tab. Set the Auth URL to https://api.mendeley.com/oauth/authorize, the Token URL to https://api.mendeley.com/oauth/token, and use all as the scope. + * Use cURL or Postman with the OAuth 2.0 Authorization tab. Set the Auth URL to + * https://api.mendeley.com/oauth/authorize, the Token URL to https://api.mendeley.com/oauth/token, and + * use all as the scope. */ public Builder clientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); @@ -291,6 +302,7 @@ public Builder clientRefreshToken(String clientRefreshToken) { return this; } + /** * Could be found at `https://dev.mendeley.com/myapps.html` */ @@ -300,6 +312,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The name parameter for institutions search */ @@ -318,6 +331,7 @@ public Builder nameForInstitution(Optional nameForInstitution) { return this; } + /** * Query for catalog search */ @@ -336,12 +350,13 @@ public Builder queryForCatalog(Optional queryForCatalog) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceMendeley build() { if (nameForInstitution == null) { nameForInstitution = _SINGLETON_VALUE_NameForInstitution.value(); @@ -349,15 +364,13 @@ public SourceMendeley build() { if (queryForCatalog == null) { queryForCatalog = _SINGLETON_VALUE_QueryForCatalog.value(); } + return new SourceMendeley( - clientId, - clientRefreshToken, - clientSecret, - nameForInstitution, - queryForCatalog, - startDate); + clientId, clientRefreshToken, clientSecret, + nameForInstitution, queryForCatalog, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_NameForInstitution = new LazySingletonValue<>( "name_for_institution", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMention.java b/src/main/java/com/airbyte/api/models/shared/SourceMention.java index 3f15606c6..df9b5b4dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMention.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMention.java @@ -16,17 +16,19 @@ import java.lang.SuppressWarnings; import java.time.LocalDate; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceMention { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Mention sourceType; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("stats_end_date") private Optional statsEndDate; @@ -38,6 +40,7 @@ public class SourceMention { @JsonProperty("stats_interval") private Optional statsInterval; + @JsonProperty("stats_start_date") private OffsetDateTime statsStartDate; @@ -61,7 +64,8 @@ public SourceMention( public SourceMention( String apiKey, OffsetDateTime statsStartDate) { - this(apiKey, Optional.empty(), Optional.empty(), statsStartDate); + this(apiKey, Optional.empty(), Optional.empty(), + statsStartDate); } @JsonIgnore @@ -93,9 +97,10 @@ public OffsetDateTime statsStartDate() { return statsStartDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceMention withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -109,6 +114,7 @@ public SourceMention withStatsEndDate(LocalDate statsEndDate) { return this; } + public SourceMention withStatsEndDate(Optional statsEndDate) { Utils.checkNotNull(statsEndDate, "statsEndDate"); this.statsEndDate = statsEndDate; @@ -124,6 +130,7 @@ public SourceMention withStatsInterval(StatisticsInterval statsInterval) { return this; } + /** * Periodicity of statistics returned. it may be daily(P1D), weekly(P1W) or monthly(P1M). */ @@ -139,7 +146,6 @@ public SourceMention withStatsStartDate(OffsetDateTime statsStartDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -150,21 +156,18 @@ public boolean equals(java.lang.Object o) { } SourceMention other = (SourceMention) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.statsEndDate, other.statsEndDate) && - Objects.deepEquals(this.statsInterval, other.statsInterval) && - Objects.deepEquals(this.statsStartDate, other.statsStartDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.statsEndDate, other.statsEndDate) && + Utils.enhancedDeepEquals(this.statsInterval, other.statsInterval) && + Utils.enhancedDeepEquals(this.statsStartDate, other.statsStartDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - statsEndDate, - statsInterval, - statsStartDate); + return Utils.enhancedHash( + apiKey, sourceType, statsEndDate, + statsInterval, statsStartDate); } @Override @@ -176,27 +179,30 @@ public String toString() { "statsInterval", statsInterval, "statsStartDate", statsStartDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional statsEndDate = Optional.empty(); - + private Optional statsInterval; - + private OffsetDateTime statsStartDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder statsEndDate(LocalDate statsEndDate) { Utils.checkNotNull(statsEndDate, "statsEndDate"); this.statsEndDate = Optional.ofNullable(statsEndDate); @@ -209,6 +215,7 @@ public Builder statsEndDate(Optional statsEndDate) { return this; } + /** * Periodicity of statistics returned. it may be daily(P1D), weekly(P1W) or monthly(P1M). */ @@ -227,23 +234,24 @@ public Builder statsInterval(Optional statsInterva return this; } + public Builder statsStartDate(OffsetDateTime statsStartDate) { Utils.checkNotNull(statsStartDate, "statsStartDate"); this.statsStartDate = statsStartDate; return this; } - + public SourceMention build() { if (statsInterval == null) { statsInterval = _SINGLETON_VALUE_StatsInterval.value(); } + return new SourceMention( - apiKey, - statsEndDate, - statsInterval, + apiKey, statsEndDate, statsInterval, statsStartDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMercadoAds.java b/src/main/java/com/airbyte/api/models/shared/SourceMercadoAds.java new file mode 100644 index 000000000..42cbcbbeb --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceMercadoAds.java @@ -0,0 +1,362 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Double; +import java.lang.Override; +import java.lang.String; +import java.time.LocalDate; +import java.util.Optional; + + +public class SourceMercadoAds { + + @JsonProperty("client_id") + private String clientId; + + + @JsonProperty("client_refresh_token") + private String clientRefreshToken; + + + @JsonProperty("client_secret") + private String clientSecret; + + /** + * Cannot exceed 90 days from current day for Product Ads + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("end_date") + private Optional endDate; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("lookback_days") + private Optional lookbackDays; + + + @JsonProperty("sourceType") + private MercadoAds sourceType; + + /** + * Cannot exceed 90 days from current day for Product Ads, and 90 days from "End Date" on Brand and + * Display Ads + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("start_date") + private Optional startDate; + + @JsonCreator + public SourceMercadoAds( + @JsonProperty("client_id") String clientId, + @JsonProperty("client_refresh_token") String clientRefreshToken, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("end_date") Optional endDate, + @JsonProperty("lookback_days") Optional lookbackDays, + @JsonProperty("start_date") Optional startDate) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(endDate, "endDate"); + Utils.checkNotNull(lookbackDays, "lookbackDays"); + Utils.checkNotNull(startDate, "startDate"); + this.clientId = clientId; + this.clientRefreshToken = clientRefreshToken; + this.clientSecret = clientSecret; + this.endDate = endDate; + this.lookbackDays = lookbackDays; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + public SourceMercadoAds( + String clientId, + String clientRefreshToken, + String clientSecret) { + this(clientId, clientRefreshToken, clientSecret, + Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public String clientId() { + return clientId; + } + + @JsonIgnore + public String clientRefreshToken() { + return clientRefreshToken; + } + + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + /** + * Cannot exceed 90 days from current day for Product Ads + */ + @JsonIgnore + public Optional endDate() { + return endDate; + } + + @JsonIgnore + public Optional lookbackDays() { + return lookbackDays; + } + + @JsonIgnore + public MercadoAds sourceType() { + return sourceType; + } + + /** + * Cannot exceed 90 days from current day for Product Ads, and 90 days from "End Date" on Brand and + * Display Ads + */ + @JsonIgnore + public Optional startDate() { + return startDate; + } + + public static Builder builder() { + return new Builder(); + } + + + public SourceMercadoAds withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public SourceMercadoAds withClientRefreshToken(String clientRefreshToken) { + Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); + this.clientRefreshToken = clientRefreshToken; + return this; + } + + public SourceMercadoAds withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * Cannot exceed 90 days from current day for Product Ads + */ + public SourceMercadoAds withEndDate(LocalDate endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = Optional.ofNullable(endDate); + return this; + } + + + /** + * Cannot exceed 90 days from current day for Product Ads + */ + public SourceMercadoAds withEndDate(Optional endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + public SourceMercadoAds withLookbackDays(double lookbackDays) { + Utils.checkNotNull(lookbackDays, "lookbackDays"); + this.lookbackDays = Optional.ofNullable(lookbackDays); + return this; + } + + + public SourceMercadoAds withLookbackDays(Optional lookbackDays) { + Utils.checkNotNull(lookbackDays, "lookbackDays"); + this.lookbackDays = lookbackDays; + return this; + } + + /** + * Cannot exceed 90 days from current day for Product Ads, and 90 days from "End Date" on Brand and + * Display Ads + */ + public SourceMercadoAds withStartDate(LocalDate startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + + /** + * Cannot exceed 90 days from current day for Product Ads, and 90 days from "End Date" on Brand and + * Display Ads + */ + public SourceMercadoAds withStartDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceMercadoAds other = (SourceMercadoAds) o; + return + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.lookbackDays, other.lookbackDays) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + clientId, clientRefreshToken, clientSecret, + endDate, lookbackDays, sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceMercadoAds.class, + "clientId", clientId, + "clientRefreshToken", clientRefreshToken, + "clientSecret", clientSecret, + "endDate", endDate, + "lookbackDays", lookbackDays, + "sourceType", sourceType, + "startDate", startDate); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String clientId; + + private String clientRefreshToken; + + private String clientSecret; + + private Optional endDate = Optional.empty(); + + private Optional lookbackDays; + + private Optional startDate = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + + public Builder clientRefreshToken(String clientRefreshToken) { + Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); + this.clientRefreshToken = clientRefreshToken; + return this; + } + + + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + + /** + * Cannot exceed 90 days from current day for Product Ads + */ + public Builder endDate(LocalDate endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = Optional.ofNullable(endDate); + return this; + } + + /** + * Cannot exceed 90 days from current day for Product Ads + */ + public Builder endDate(Optional endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + + public Builder lookbackDays(double lookbackDays) { + Utils.checkNotNull(lookbackDays, "lookbackDays"); + this.lookbackDays = Optional.ofNullable(lookbackDays); + return this; + } + + public Builder lookbackDays(Optional lookbackDays) { + Utils.checkNotNull(lookbackDays, "lookbackDays"); + this.lookbackDays = lookbackDays; + return this; + } + + + /** + * Cannot exceed 90 days from current day for Product Ads, and 90 days from "End Date" on Brand and + * Display Ads + */ + public Builder startDate(LocalDate startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + /** + * Cannot exceed 90 days from current day for Product Ads, and 90 days from "End Date" on Brand and + * Display Ads + */ + public Builder startDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceMercadoAds build() { + if (lookbackDays == null) { + lookbackDays = _SINGLETON_VALUE_LookbackDays.value(); + } + + return new SourceMercadoAds( + clientId, clientRefreshToken, clientSecret, + endDate, lookbackDays, startDate); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_LookbackDays = + new LazySingletonValue<>( + "lookback_days", + "7", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"mercado-ads\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMerge.java b/src/main/java/com/airbyte/api/models/shared/SourceMerge.java index 662485230..b0dbcbeff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMerge.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMerge.java @@ -12,12 +12,12 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceMerge { +public class SourceMerge { /** - * Link your other integrations with account credentials on accounts section to get account token (ref - https://app.merge.dev/linked-accounts/accounts) + * Link your other integrations with account credentials on accounts section to get account token (ref + * - https://app.merge.dev/linked-accounts/accounts) */ @JsonProperty("account_token") private String accountToken; @@ -28,6 +28,7 @@ public class SourceMerge { @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Merge sourceType; @@ -52,7 +53,8 @@ public SourceMerge( } /** - * Link your other integrations with account credentials on accounts section to get account token (ref - https://app.merge.dev/linked-accounts/accounts) + * Link your other integrations with account credentials on accounts section to get account token (ref + * - https://app.merge.dev/linked-accounts/accounts) */ @JsonIgnore public String accountToken() { @@ -80,12 +82,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Link your other integrations with account credentials on accounts section to get account token (ref - https://app.merge.dev/linked-accounts/accounts) + * Link your other integrations with account credentials on accounts section to get account token (ref + * - https://app.merge.dev/linked-accounts/accounts) */ public SourceMerge withAccountToken(String accountToken) { Utils.checkNotNull(accountToken, "accountToken"); @@ -111,7 +115,6 @@ public SourceMerge withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,18 +125,16 @@ public boolean equals(java.lang.Object o) { } SourceMerge other = (SourceMerge) o; return - Objects.deepEquals(this.accountToken, other.accountToken) && - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountToken, other.accountToken) && + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountToken, - apiToken, - sourceType, + return Utils.enhancedHash( + accountToken, apiToken, sourceType, startDate); } @@ -145,21 +146,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountToken; - + private String apiToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Link your other integrations with account credentials on accounts section to get account token (ref - https://app.merge.dev/linked-accounts/accounts) + * Link your other integrations with account credentials on accounts section to get account token (ref + * - https://app.merge.dev/linked-accounts/accounts) */ public Builder accountToken(String accountToken) { Utils.checkNotNull(accountToken, "accountToken"); @@ -167,6 +171,7 @@ public Builder accountToken(String accountToken) { return this; } + /** * API token can be seen at https://app.merge.dev/keys */ @@ -176,6 +181,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * Date time filter for incremental filter, Specify which date to extract from. */ @@ -184,14 +190,14 @@ public Builder startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } - + public SourceMerge build() { + return new SourceMerge( - accountToken, - apiToken, - startDate); + accountToken, apiToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMetabase.java b/src/main/java/com/airbyte/api/models/shared/SourceMetabase.java index 831e85b48..23524664a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMetabase.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMetabase.java @@ -13,26 +13,26 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceMetabase { +public class SourceMetabase { /** * URL to your metabase instance API */ @JsonProperty("instance_api_url") private String instanceApiUrl; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; /** * To generate your session token, you need to run the following command: ``` curl -X POST \ - * -H "Content-Type: application/json" \ - * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ - * http://localhost:3000/api/session + * -H "Content-Type: application/json" \ + * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ + * http://localhost:3000/api/session * ``` Then copy the value of the `id` field returned by a successful call to that API. * Note that by default, sessions are good for 14 days and needs to be regenerated. */ @@ -40,9 +40,11 @@ public class SourceMetabase { @JsonProperty("session_token") private Optional sessionToken; + @JsonProperty("sourceType") private Metabase sourceType; + @JsonProperty("username") private String username; @@ -66,7 +68,8 @@ public SourceMetabase( public SourceMetabase( String instanceApiUrl, String username) { - this(instanceApiUrl, Optional.empty(), Optional.empty(), username); + this(instanceApiUrl, Optional.empty(), Optional.empty(), + username); } /** @@ -84,9 +87,9 @@ public Optional password() { /** * To generate your session token, you need to run the following command: ``` curl -X POST \ - * -H "Content-Type: application/json" \ - * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ - * http://localhost:3000/api/session + * -H "Content-Type: application/json" \ + * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ + * http://localhost:3000/api/session * ``` Then copy the value of the `id` field returned by a successful call to that API. * Note that by default, sessions are good for 14 days and needs to be regenerated. */ @@ -105,9 +108,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * URL to your metabase instance API @@ -124,6 +128,7 @@ public SourceMetabase withPassword(String password) { return this; } + public SourceMetabase withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -132,9 +137,9 @@ public SourceMetabase withPassword(Optional password) { /** * To generate your session token, you need to run the following command: ``` curl -X POST \ - * -H "Content-Type: application/json" \ - * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ - * http://localhost:3000/api/session + * -H "Content-Type: application/json" \ + * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ + * http://localhost:3000/api/session * ``` Then copy the value of the `id` field returned by a successful call to that API. * Note that by default, sessions are good for 14 days and needs to be regenerated. */ @@ -144,11 +149,12 @@ public SourceMetabase withSessionToken(String sessionToken) { return this; } + /** * To generate your session token, you need to run the following command: ``` curl -X POST \ - * -H "Content-Type: application/json" \ - * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ - * http://localhost:3000/api/session + * -H "Content-Type: application/json" \ + * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ + * http://localhost:3000/api/session * ``` Then copy the value of the `id` field returned by a successful call to that API. * Note that by default, sessions are good for 14 days and needs to be regenerated. */ @@ -164,7 +170,6 @@ public SourceMetabase withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -175,21 +180,18 @@ public boolean equals(java.lang.Object o) { } SourceMetabase other = (SourceMetabase) o; return - Objects.deepEquals(this.instanceApiUrl, other.instanceApiUrl) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sessionToken, other.sessionToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.instanceApiUrl, other.instanceApiUrl) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sessionToken, other.sessionToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - instanceApiUrl, - password, - sessionToken, - sourceType, - username); + return Utils.enhancedHash( + instanceApiUrl, password, sessionToken, + sourceType, username); } @Override @@ -201,21 +203,23 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String instanceApiUrl; - + private Optional password = Optional.empty(); - + private Optional sessionToken = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * URL to your metabase instance API */ @@ -225,6 +229,7 @@ public Builder instanceApiUrl(String instanceApiUrl) { return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -237,11 +242,12 @@ public Builder password(Optional password) { return this; } + /** * To generate your session token, you need to run the following command: ``` curl -X POST \ - * -H "Content-Type: application/json" \ - * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ - * http://localhost:3000/api/session + * -H "Content-Type: application/json" \ + * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ + * http://localhost:3000/api/session * ``` Then copy the value of the `id` field returned by a successful call to that API. * Note that by default, sessions are good for 14 days and needs to be regenerated. */ @@ -253,9 +259,9 @@ public Builder sessionToken(String sessionToken) { /** * To generate your session token, you need to run the following command: ``` curl -X POST \ - * -H "Content-Type: application/json" \ - * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ - * http://localhost:3000/api/session + * -H "Content-Type: application/json" \ + * -d '{"username": "person@metabase.com", "password": "fakepassword"}' \ + * http://localhost:3000/api/session * ``` Then copy the value of the `id` field returned by a successful call to that API. * Note that by default, sessions are good for 14 days and needs to be regenerated. */ @@ -265,20 +271,21 @@ public Builder sessionToken(Optional sessionToken) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceMetabase build() { + return new SourceMetabase( - instanceApiUrl, - password, - sessionToken, + instanceApiUrl, password, sessionToken, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftDataverse.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftDataverse.java index 9d56414cd..5286f6995 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftDataverse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftDataverse.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftDataverse { +public class SourceMicrosoftDataverse { /** * App Registration Client Id */ @@ -38,6 +37,7 @@ public class SourceMicrosoftDataverse { @JsonProperty("odata_maxpagesize") private Optional odataMaxpagesize; + @JsonProperty("sourceType") private MicrosoftDataverse sourceType; @@ -78,7 +78,8 @@ public SourceMicrosoftDataverse( String clientSecretValue, String tenantId, String url) { - this(clientId, clientSecretValue, Optional.empty(), tenantId, url); + this(clientId, clientSecretValue, Optional.empty(), + tenantId, url); } /** @@ -126,9 +127,10 @@ public String url() { return url; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * App Registration Client Id @@ -157,6 +159,7 @@ public SourceMicrosoftDataverse withOdataMaxpagesize(long odataMaxpagesize) { return this; } + /** * Max number of results per page. Default=5000 */ @@ -184,7 +187,6 @@ public SourceMicrosoftDataverse withUrl(String url) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -195,23 +197,19 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftDataverse other = (SourceMicrosoftDataverse) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecretValue, other.clientSecretValue) && - Objects.deepEquals(this.odataMaxpagesize, other.odataMaxpagesize) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tenantId, other.tenantId) && - Objects.deepEquals(this.url, other.url); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecretValue, other.clientSecretValue) && + Utils.enhancedDeepEquals(this.odataMaxpagesize, other.odataMaxpagesize) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId) && + Utils.enhancedDeepEquals(this.url, other.url); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecretValue, - odataMaxpagesize, - sourceType, - tenantId, - url); + return Utils.enhancedHash( + clientId, clientSecretValue, odataMaxpagesize, + sourceType, tenantId, url); } @Override @@ -224,23 +222,25 @@ public String toString() { "tenantId", tenantId, "url", url); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecretValue; - + private Optional odataMaxpagesize; - + private String tenantId; - + private String url; - + private Builder() { // force use of static builder() method } + /** * App Registration Client Id */ @@ -250,6 +250,7 @@ public Builder clientId(String clientId) { return this; } + /** * App Registration Client Secret */ @@ -259,6 +260,7 @@ public Builder clientSecretValue(String clientSecretValue) { return this; } + /** * Max number of results per page. Default=5000 */ @@ -277,6 +279,7 @@ public Builder odataMaxpagesize(Optional odataMaxpagesize) { return this; } + /** * Tenant Id of your Microsoft Dataverse Instance */ @@ -286,6 +289,7 @@ public Builder tenantId(String tenantId) { return this; } + /** * URL to Microsoft Dataverse API */ @@ -294,19 +298,18 @@ public Builder url(String url) { this.url = url; return this; } - + public SourceMicrosoftDataverse build() { if (odataMaxpagesize == null) { odataMaxpagesize = _SINGLETON_VALUE_OdataMaxpagesize.value(); } + return new SourceMicrosoftDataverse( - clientId, - clientSecretValue, - odataMaxpagesize, - tenantId, - url); + clientId, clientSecretValue, odataMaxpagesize, + tenantId, url); } + private static final LazySingletonValue> _SINGLETON_VALUE_OdataMaxpagesize = new LazySingletonValue<>( "odata_maxpagesize", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftEntraId.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftEntraId.java index 86c3697ff..093da4494 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftEntraId.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftEntraId.java @@ -11,22 +11,26 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceMicrosoftEntraId { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private MicrosoftEntraId sourceType; + @JsonProperty("tenant_id") private String tenantId; + @JsonProperty("user_id") private String userId; @@ -72,9 +76,10 @@ public String userId() { return userId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceMicrosoftEntraId withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -100,7 +105,6 @@ public SourceMicrosoftEntraId withUserId(String userId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,21 +115,18 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftEntraId other = (SourceMicrosoftEntraId) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tenantId, other.tenantId) && - Objects.deepEquals(this.userId, other.userId); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId) && + Utils.enhancedDeepEquals(this.userId, other.userId); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - sourceType, - tenantId, - userId); + return Utils.enhancedHash( + clientId, clientSecret, sourceType, + tenantId, userId); } @Override @@ -137,53 +138,58 @@ public String toString() { "tenantId", tenantId, "userId", userId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String tenantId; - + private String userId; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder tenantId(String tenantId) { Utils.checkNotNull(tenantId, "tenantId"); this.tenantId = tenantId; return this; } + public Builder userId(String userId) { Utils.checkNotNull(userId, "userId"); this.userId = userId; return this; } - + public SourceMicrosoftEntraId build() { + return new SourceMicrosoftEntraId( - clientId, - clientSecret, - tenantId, + clientId, clientSecret, tenantId, userId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftLists.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftLists.java index 9834a0aaa..19d7b5615 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftLists.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftLists.java @@ -11,28 +11,34 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceMicrosoftLists { @JsonProperty("application_id_uri") private String applicationIdUri; + @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("domain") private String domain; + @JsonProperty("site_id") private String siteId; + @JsonProperty("sourceType") private MicrosoftLists sourceType; + @JsonProperty("tenant_id") private String tenantId; @@ -94,9 +100,10 @@ public String tenantId() { return tenantId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceMicrosoftLists withApplicationIdUri(String applicationIdUri) { Utils.checkNotNull(applicationIdUri, "applicationIdUri"); @@ -134,7 +141,6 @@ public SourceMicrosoftLists withTenantId(String tenantId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -145,24 +151,20 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftLists other = (SourceMicrosoftLists) o; return - Objects.deepEquals(this.applicationIdUri, other.applicationIdUri) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.siteId, other.siteId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tenantId, other.tenantId); + Utils.enhancedDeepEquals(this.applicationIdUri, other.applicationIdUri) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.siteId, other.siteId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId); } @Override public int hashCode() { - return Objects.hash( - applicationIdUri, - clientId, - clientSecret, - domain, - siteId, - sourceType, + return Utils.enhancedHash( + applicationIdUri, clientId, clientSecret, + domain, siteId, sourceType, tenantId); } @@ -177,71 +179,76 @@ public String toString() { "sourceType", sourceType, "tenantId", tenantId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String applicationIdUri; - + private String clientId; - + private String clientSecret; - + private String domain; - + private String siteId; - + private String tenantId; - + private Builder() { // force use of static builder() method } + public Builder applicationIdUri(String applicationIdUri) { Utils.checkNotNull(applicationIdUri, "applicationIdUri"); this.applicationIdUri = applicationIdUri; return this; } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder domain(String domain) { Utils.checkNotNull(domain, "domain"); this.domain = domain; return this; } + public Builder siteId(String siteId) { Utils.checkNotNull(siteId, "siteId"); this.siteId = siteId; return this; } + public Builder tenantId(String tenantId) { Utils.checkNotNull(tenantId, "tenantId"); this.tenantId = tenantId; return this; } - + public SourceMicrosoftLists build() { + return new SourceMicrosoftLists( - applicationIdUri, - clientId, - clientSecret, - domain, - siteId, - tenantId); + applicationIdUri, clientId, clientSecret, + domain, siteId, tenantId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedrive.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedrive.java index 2b4a498f7..1c4d16e24 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedrive.java @@ -16,7 +16,6 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -26,7 +25,6 @@ * This class combines the authentication details with additional configuration for the OneDrive API. */ public class SourceMicrosoftOnedrive { - /** * Credentials for connecting to the One Drive API */ @@ -41,31 +39,39 @@ public class SourceMicrosoftOnedrive { private Optional driveName; /** - * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("folder_path") private Optional folderPath; /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in + * the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to + * search both. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("search_scope") private Optional searchScope; + @JsonProperty("sourceType") private SourceMicrosoftOnedriveMicrosoftOnedrive sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonProperty("streams") private List streams; @@ -96,7 +102,8 @@ public SourceMicrosoftOnedrive( public SourceMicrosoftOnedrive( SourceMicrosoftOnedriveAuthentication credentials, List streams) { - this(credentials, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), streams); + this(credentials, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), streams); } /** @@ -116,7 +123,8 @@ public Optional driveName() { } /** - * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. */ @JsonIgnore public Optional folderPath() { @@ -124,7 +132,9 @@ public Optional folderPath() { } /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in + * the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to + * search both. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -138,7 +148,8 @@ public SourceMicrosoftOnedriveMicrosoftOnedrive sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonIgnore public Optional startDate() { @@ -146,16 +157,20 @@ public Optional startDate() { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonIgnore public List streams() { return streams; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Credentials for connecting to the One Drive API @@ -175,6 +190,7 @@ public SourceMicrosoftOnedrive withDriveName(String driveName) { return this; } + /** * Name of the Microsoft OneDrive drive where the file(s) exist. */ @@ -185,7 +201,8 @@ public SourceMicrosoftOnedrive withDriveName(Optional driveName) { } /** - * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. */ public SourceMicrosoftOnedrive withFolderPath(String folderPath) { Utils.checkNotNull(folderPath, "folderPath"); @@ -193,8 +210,10 @@ public SourceMicrosoftOnedrive withFolderPath(String folderPath) { return this; } + /** - * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. */ public SourceMicrosoftOnedrive withFolderPath(Optional folderPath) { Utils.checkNotNull(folderPath, "folderPath"); @@ -203,7 +222,9 @@ public SourceMicrosoftOnedrive withFolderPath(Optional folderPath) { } /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in + * the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to + * search both. */ public SourceMicrosoftOnedrive withSearchScope(SearchScope searchScope) { Utils.checkNotNull(searchScope, "searchScope"); @@ -211,8 +232,11 @@ public SourceMicrosoftOnedrive withSearchScope(SearchScope searchScope) { return this; } + /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in + * the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to + * search both. */ public SourceMicrosoftOnedrive withSearchScope(Optional searchScope) { Utils.checkNotNull(searchScope, "searchScope"); @@ -221,7 +245,8 @@ public SourceMicrosoftOnedrive withSearchScope(Optional s } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceMicrosoftOnedrive withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -229,8 +254,10 @@ public SourceMicrosoftOnedrive withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceMicrosoftOnedrive withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -239,7 +266,10 @@ public SourceMicrosoftOnedrive withStartDate(Optional startDate) } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public SourceMicrosoftOnedrive withStreams(List streams) { Utils.checkNotNull(streams, "streams"); @@ -247,7 +277,6 @@ public SourceMicrosoftOnedrive withStreams(List driveName; - + private Optional folderPath; - + private Optional searchScope; - + private Optional startDate = Optional.empty(); - + private List streams; - + private Builder() { // force use of static builder() method } + /** * Credentials for connecting to the One Drive API */ @@ -318,6 +345,7 @@ public Builder credentials(SourceMicrosoftOnedriveAuthentication credentials) { return this; } + /** * Name of the Microsoft OneDrive drive where the file(s) exist. */ @@ -336,8 +364,10 @@ public Builder driveName(Optional driveName) { return this; } + /** - * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. */ public Builder folderPath(String folderPath) { Utils.checkNotNull(folderPath, "folderPath"); @@ -346,7 +376,8 @@ public Builder folderPath(String folderPath) { } /** - * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. */ public Builder folderPath(Optional folderPath) { Utils.checkNotNull(folderPath, "folderPath"); @@ -354,8 +385,11 @@ public Builder folderPath(Optional folderPath) { return this; } + /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in + * the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to + * search both. */ public Builder searchScope(SearchScope searchScope) { Utils.checkNotNull(searchScope, "searchScope"); @@ -364,7 +398,9 @@ public Builder searchScope(SearchScope searchScope) { } /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' to search in + * the selected OneDrive drive, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to + * search both. */ public Builder searchScope(Optional searchScope) { Utils.checkNotNull(searchScope, "searchScope"); @@ -372,8 +408,10 @@ public Builder searchScope(Optional searchScope) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -382,7 +420,8 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -390,15 +429,19 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public Builder streams(List streams) { Utils.checkNotNull(streams, "streams"); this.streams = streams; return this; } - + public SourceMicrosoftOnedrive build() { if (driveName == null) { driveName = _SINGLETON_VALUE_DriveName.value(); @@ -409,15 +452,13 @@ public SourceMicrosoftOnedrive build() { if (searchScope == null) { searchScope = _SINGLETON_VALUE_SearchScope.value(); } + return new SourceMicrosoftOnedrive( - credentials, - driveName, - folderPath, - searchScope, - startDate, - streams); + credentials, driveName, folderPath, + searchScope, startDate, streams); } + private static final LazySingletonValue> _SINGLETON_VALUE_DriveName = new LazySingletonValue<>( "drive_name", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java index f75d8dce0..7c62afebc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveAuthType { @JsonValue private final String value; - private SourceMicrosoftOnedriveAuthType(String value) { + SourceMicrosoftOnedriveAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthentication.java index 347e70492..63f94764c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMicrosoftOnedriveAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMicrosoftOnedriveAuthentication other = (SourceMicrosoftOnedriveAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAutogenerated.java index 2bfb07991..8f468c3cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAutogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAutogenerated.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceMicrosoftOnedriveAutogenerated { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceMicrosoftOnedriveAutogenerated { @JsonCreator public SourceMicrosoftOnedriveAutogenerated() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefini return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftOnedriveAutogenerated other = (SourceMicrosoftOnedriveAutogenerated) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceMicrosoftOnedriveAutogenerated.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMicrosoftOnedriveAutogenerated build() { + return new SourceMicrosoftOnedriveAutogenerated( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAvroFormat.java index 8ce655434..014070258 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveAvroFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftOnedriveAvroFormat { +public class SourceMicrosoftOnedriveAvroFormat { /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("double_as_string") private Optional doubleAsString; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceMicrosoftOnedriveAvroFormat() { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonIgnore public Optional doubleAsString() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceMicrosoftOnedriveAvroFormat withDoubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -70,8 +74,10 @@ public SourceMicrosoftOnedriveAvroFormat withDoubleAsString(boolean doubleAsStri return this; } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceMicrosoftOnedriveAvroFormat withDoubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -79,7 +85,6 @@ public SourceMicrosoftOnedriveAvroFormat withDoubleAsString(Optional do return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftOnedriveAvroFormat other = (SourceMicrosoftOnedriveAvroFormat) o; return - Objects.deepEquals(this.doubleAsString, other.doubleAsString) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.doubleAsString, other.doubleAsString) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - doubleAsString, - filetype); + return Utils.enhancedHash( + doubleAsString, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "doubleAsString", doubleAsString, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional doubleAsString; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -126,22 +133,25 @@ public Builder doubleAsString(boolean doubleAsString) { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); this.doubleAsString = doubleAsString; return this; } - + public SourceMicrosoftOnedriveAvroFormat build() { if (doubleAsString == null) { doubleAsString = _SINGLETON_VALUE_DoubleAsString.value(); } + return new SourceMicrosoftOnedriveAvroFormat( doubleAsString); } + private static final LazySingletonValue> _SINGLETON_VALUE_DoubleAsString = new LazySingletonValue<>( "double_as_string", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVFormat.java index 7ea205c68..03d56bc60 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVFormat.java @@ -17,13 +17,13 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftOnedriveCSVFormat { +public class SourceMicrosoftOnedriveCSVFormat { /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("delimiter") @@ -37,7 +37,9 @@ public class SourceMicrosoftOnedriveCSVFormat { private Optional doubleQuote; /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("encoding") @@ -57,26 +59,35 @@ public class SourceMicrosoftOnedriveCSVFormat { @JsonProperty("false_values") private Optional> falseValues; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition") private Optional headerDefinition; /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ignore_errors_on_fields_mismatch") private Optional ignoreErrorsOnFieldsMismatch; /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("null_values") @@ -97,14 +108,17 @@ public class SourceMicrosoftOnedriveCSVFormat { private Optional skipRowsAfterHeader; /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_rows_before_header") private Optional skipRowsBeforeHeader; /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strings_can_be_null") @@ -162,11 +176,16 @@ public SourceMicrosoftOnedriveCSVFormat( } public SourceMicrosoftOnedriveCSVFormat() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonIgnore public Optional delimiter() { @@ -182,7 +201,9 @@ public Optional doubleQuote() { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonIgnore public Optional encoding() { @@ -213,7 +234,13 @@ public Optional filetype() { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -222,7 +249,8 @@ public Optional headerDefinition() { } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonIgnore public Optional ignoreErrorsOnFieldsMismatch() { @@ -230,7 +258,8 @@ public Optional ignoreErrorsOnFieldsMismatch() { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -255,7 +284,8 @@ public Optional skipRowsAfterHeader() { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonIgnore public Optional skipRowsBeforeHeader() { @@ -263,7 +293,9 @@ public Optional skipRowsBeforeHeader() { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonIgnore public Optional stringsCanBeNull() { @@ -279,12 +311,14 @@ public Optional> trueValues() { return (Optional>) trueValues; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceMicrosoftOnedriveCSVFormat withDelimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -292,8 +326,10 @@ public SourceMicrosoftOnedriveCSVFormat withDelimiter(String delimiter) { return this; } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceMicrosoftOnedriveCSVFormat withDelimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -310,6 +346,7 @@ public SourceMicrosoftOnedriveCSVFormat withDoubleQuote(boolean doubleQuote) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -320,7 +357,9 @@ public SourceMicrosoftOnedriveCSVFormat withDoubleQuote(Optional double } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceMicrosoftOnedriveCSVFormat withEncoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -328,8 +367,11 @@ public SourceMicrosoftOnedriveCSVFormat withEncoding(String encoding) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceMicrosoftOnedriveCSVFormat withEncoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -346,6 +388,7 @@ public SourceMicrosoftOnedriveCSVFormat withEscapeChar(String escapeChar) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -364,6 +407,7 @@ public SourceMicrosoftOnedriveCSVFormat withFalseValues(List falseValues return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -374,7 +418,13 @@ public SourceMicrosoftOnedriveCSVFormat withFalseValues(OptionalIf a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceMicrosoftOnedriveCSVFormat withHeaderDefinition(SourceMicrosoftOnedriveCSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -382,8 +432,15 @@ public SourceMicrosoftOnedriveCSVFormat withHeaderDefinition(SourceMicrosoftOned return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceMicrosoftOnedriveCSVFormat withHeaderDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -392,7 +449,8 @@ public SourceMicrosoftOnedriveCSVFormat withHeaderDefinition(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -410,7 +470,8 @@ public SourceMicrosoftOnedriveCSVFormat withIgnoreErrorsOnFieldsMismatch(Optiona } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public SourceMicrosoftOnedriveCSVFormat withNullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -418,8 +479,10 @@ public SourceMicrosoftOnedriveCSVFormat withNullValues(List nullValues) return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public SourceMicrosoftOnedriveCSVFormat withNullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -436,6 +499,7 @@ public SourceMicrosoftOnedriveCSVFormat withQuoteChar(String quoteChar) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -454,6 +518,7 @@ public SourceMicrosoftOnedriveCSVFormat withSkipRowsAfterHeader(long skipRowsAft return this; } + /** * The number of rows to skip after the header row. */ @@ -464,7 +529,8 @@ public SourceMicrosoftOnedriveCSVFormat withSkipRowsAfterHeader(Optional s } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceMicrosoftOnedriveCSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -472,8 +538,10 @@ public SourceMicrosoftOnedriveCSVFormat withSkipRowsBeforeHeader(long skipRowsBe return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceMicrosoftOnedriveCSVFormat withSkipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -482,7 +550,9 @@ public SourceMicrosoftOnedriveCSVFormat withSkipRowsBeforeHeader(Optional } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public SourceMicrosoftOnedriveCSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -490,8 +560,11 @@ public SourceMicrosoftOnedriveCSVFormat withStringsCanBeNull(boolean stringsCanB return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public SourceMicrosoftOnedriveCSVFormat withStringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -508,6 +581,7 @@ public SourceMicrosoftOnedriveCSVFormat withTrueValues(List trueValues) return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -517,7 +591,6 @@ public SourceMicrosoftOnedriveCSVFormat withTrueValues(Optional delimiter; - + private Optional doubleQuote; - + private Optional encoding; - + private Optional escapeChar = Optional.empty(); - + private Optional> falseValues = Optional.empty(); - + private Optional headerDefinition = Optional.empty(); - + private Optional ignoreErrorsOnFieldsMismatch; - + private Optional> nullValues = Optional.empty(); - + private Optional quoteChar; - + private Optional skipRowsAfterHeader; - + private Optional skipRowsBeforeHeader; - + private Optional stringsCanBeNull; - + private Optional> trueValues = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -624,7 +691,8 @@ public Builder delimiter(String delimiter) { } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -632,6 +700,7 @@ public Builder delimiter(Optional delimiter) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -650,8 +719,11 @@ public Builder doubleQuote(Optional doubleQuote) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -660,7 +732,9 @@ public Builder encoding(String encoding) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -668,6 +742,7 @@ public Builder encoding(Optional encoding) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -686,6 +761,7 @@ public Builder escapeChar(Optional escapeChar) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -704,8 +780,15 @@ public Builder falseValues(Optional> falseValues) { return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(SourceMicrosoftOnedriveCSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -714,7 +797,13 @@ public Builder headerDefinition(SourceMicrosoftOnedriveCSVHeaderDefinition heade } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -722,8 +811,10 @@ public Builder headerDefinition(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -740,8 +832,10 @@ public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFiel return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -750,7 +844,8 @@ public Builder nullValues(List nullValues) { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -758,6 +853,7 @@ public Builder nullValues(Optional> nullValues) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -776,6 +872,7 @@ public Builder quoteChar(Optional quoteChar) { return this; } + /** * The number of rows to skip after the header row. */ @@ -794,8 +891,10 @@ public Builder skipRowsAfterHeader(Optional skipRowsAfterHeader) { return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -804,7 +903,8 @@ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -812,8 +912,11 @@ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -822,7 +925,9 @@ public Builder stringsCanBeNull(boolean stringsCanBeNull) { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -830,6 +935,7 @@ public Builder stringsCanBeNull(Optional stringsCanBeNull) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -847,7 +953,7 @@ public Builder trueValues(Optional> trueValues) { this.trueValues = trueValues; return this; } - + public SourceMicrosoftOnedriveCSVFormat build() { if (delimiter == null) { delimiter = _SINGLETON_VALUE_Delimiter.value(); @@ -873,22 +979,16 @@ public SourceMicrosoftOnedriveCSVFormat build() { if (stringsCanBeNull == null) { stringsCanBeNull = _SINGLETON_VALUE_StringsCanBeNull.value(); } + return new SourceMicrosoftOnedriveCSVFormat( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, + delimiter, doubleQuote, encoding, + escapeChar, falseValues, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, + skipRowsAfterHeader, skipRowsBeforeHeader, stringsCanBeNull, trueValues); } + private static final LazySingletonValue> _SINGLETON_VALUE_Delimiter = new LazySingletonValue<>( "delimiter", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVHeaderDefinition.java index e16680771..c5366a3ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveCSVHeaderDefinition.java @@ -14,12 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMicrosoftOnedriveCSVHeaderDefinition * - *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonDeserialize(using = SourceMicrosoftOnedriveCSVHeaderDefinition._Deserializer.class) public class SourceMicrosoftOnedriveCSVHeaderDefinition { @@ -78,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMicrosoftOnedriveCSVHeaderDefinition other = (SourceMicrosoftOnedriveCSVHeaderDefinition) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFileBasedStreamConfig.java index b57dbc944..3496625b1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFileBasedStreamConfig.java @@ -17,33 +17,37 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftOnedriveFileBasedStreamConfig { +public class SourceMicrosoftOnedriveFileBasedStreamConfig { /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("days_to_sync_if_history_is_full") private Optional daysToSyncIfHistoryIsFull; /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonProperty("format") private SourceMicrosoftOnedriveFormat format; /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("globs") private Optional> globs; /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("input_schema") @@ -63,7 +67,8 @@ public class SourceMicrosoftOnedriveFileBasedStreamConfig { private Optional schemaless; /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("validation_policy") @@ -97,11 +102,14 @@ public SourceMicrosoftOnedriveFileBasedStreamConfig( public SourceMicrosoftOnedriveFileBasedStreamConfig( SourceMicrosoftOnedriveFormat format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty()); } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonIgnore public Optional daysToSyncIfHistoryIsFull() { @@ -109,7 +117,8 @@ public Optional daysToSyncIfHistoryIsFull() { } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonIgnore public SourceMicrosoftOnedriveFormat format() { @@ -117,7 +126,9 @@ public SourceMicrosoftOnedriveFormat format() { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -126,7 +137,8 @@ public Optional> globs() { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonIgnore public Optional inputSchema() { @@ -150,7 +162,8 @@ public Optional schemaless() { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -158,12 +171,14 @@ public Optional validationPolicy() { return (Optional) validationPolicy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceMicrosoftOnedriveFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -171,8 +186,10 @@ public SourceMicrosoftOnedriveFileBasedStreamConfig withDaysToSyncIfHistoryIsFul return this; } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceMicrosoftOnedriveFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -181,7 +198,8 @@ public SourceMicrosoftOnedriveFileBasedStreamConfig withDaysToSyncIfHistoryIsFul } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public SourceMicrosoftOnedriveFileBasedStreamConfig withFormat(SourceMicrosoftOnedriveFormat format) { Utils.checkNotNull(format, "format"); @@ -190,7 +208,9 @@ public SourceMicrosoftOnedriveFileBasedStreamConfig withFormat(SourceMicrosoftOn } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public SourceMicrosoftOnedriveFileBasedStreamConfig withGlobs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -198,8 +218,11 @@ public SourceMicrosoftOnedriveFileBasedStreamConfig withGlobs(List globs return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public SourceMicrosoftOnedriveFileBasedStreamConfig withGlobs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -208,7 +231,8 @@ public SourceMicrosoftOnedriveFileBasedStreamConfig withGlobs(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -243,6 +269,7 @@ public SourceMicrosoftOnedriveFileBasedStreamConfig withSchemaless(boolean schem return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -253,7 +280,8 @@ public SourceMicrosoftOnedriveFileBasedStreamConfig withSchemaless(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -270,7 +300,6 @@ public SourceMicrosoftOnedriveFileBasedStreamConfig withValidationPolicy(Optiona return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -281,24 +310,20 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftOnedriveFileBasedStreamConfig other = (SourceMicrosoftOnedriveFileBasedStreamConfig) o; return - Objects.deepEquals(this.daysToSyncIfHistoryIsFull, other.daysToSyncIfHistoryIsFull) && - Objects.deepEquals(this.format, other.format) && - Objects.deepEquals(this.globs, other.globs) && - Objects.deepEquals(this.inputSchema, other.inputSchema) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.schemaless, other.schemaless) && - Objects.deepEquals(this.validationPolicy, other.validationPolicy); + Utils.enhancedDeepEquals(this.daysToSyncIfHistoryIsFull, other.daysToSyncIfHistoryIsFull) && + Utils.enhancedDeepEquals(this.format, other.format) && + Utils.enhancedDeepEquals(this.globs, other.globs) && + Utils.enhancedDeepEquals(this.inputSchema, other.inputSchema) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.schemaless, other.schemaless) && + Utils.enhancedDeepEquals(this.validationPolicy, other.validationPolicy); } @Override public int hashCode() { - return Objects.hash( - daysToSyncIfHistoryIsFull, - format, - globs, - inputSchema, - name, - schemaless, + return Utils.enhancedHash( + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, schemaless, validationPolicy); } @@ -313,29 +338,32 @@ public String toString() { "schemaless", schemaless, "validationPolicy", validationPolicy); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional daysToSyncIfHistoryIsFull; - + private SourceMicrosoftOnedriveFormat format; - + private Optional> globs = Optional.empty(); - + private Optional inputSchema = Optional.empty(); - + private String name; - + private Optional schemaless; - + private Optional validationPolicy; - + private Builder() { // force use of static builder() method } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -344,7 +372,8 @@ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -352,8 +381,10 @@ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFul return this; } + /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public Builder format(SourceMicrosoftOnedriveFormat format) { Utils.checkNotNull(format, "format"); @@ -361,8 +392,11 @@ public Builder format(SourceMicrosoftOnedriveFormat format) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -371,7 +405,9 @@ public Builder globs(List globs) { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -379,8 +415,10 @@ public Builder globs(Optional> globs) { return this; } + /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -389,7 +427,8 @@ public Builder inputSchema(String inputSchema) { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -397,6 +436,7 @@ public Builder inputSchema(Optional inputSchema) { return this; } + /** * The name of the stream. */ @@ -406,6 +446,7 @@ public Builder name(String name) { return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -424,8 +465,10 @@ public Builder schemaless(Optional schemaless) { return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(SourceMicrosoftOnedriveValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -434,14 +477,15 @@ public Builder validationPolicy(SourceMicrosoftOnedriveValidationPolicy validati } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); this.validationPolicy = validationPolicy; return this; } - + public SourceMicrosoftOnedriveFileBasedStreamConfig build() { if (daysToSyncIfHistoryIsFull == null) { daysToSyncIfHistoryIsFull = _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull.value(); @@ -452,16 +496,14 @@ public SourceMicrosoftOnedriveFileBasedStreamConfig build() { if (validationPolicy == null) { validationPolicy = _SINGLETON_VALUE_ValidationPolicy.value(); } + return new SourceMicrosoftOnedriveFileBasedStreamConfig( - daysToSyncIfHistoryIsFull, - format, - globs, - inputSchema, - name, - schemaless, + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, schemaless, validationPolicy); } + private static final LazySingletonValue> _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull = new LazySingletonValue<>( "days_to_sync_if_history_is_full", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java index 838a45608..241b7d0f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFiletype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveFiletype { @JsonValue private final String value; - private SourceMicrosoftOnedriveFiletype(String value) { + SourceMicrosoftOnedriveFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java index ab6b17b44..4dbb43660 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFormat.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMicrosoftOnedriveFormat * - *

    The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + *

    The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonDeserialize(using = SourceMicrosoftOnedriveFormat._Deserializer.class) public class SourceMicrosoftOnedriveFormat { @@ -90,12 +90,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMicrosoftOnedriveFormat other = (SourceMicrosoftOnedriveFormat) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFromCSV.java index 2121b98de..a8535ca1a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveFromCSV.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceMicrosoftOnedriveFromCSV { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceMicrosoftOnedriveFromCSV { @JsonCreator public SourceMicrosoftOnedriveFromCSV() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionTyp return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftOnedriveFromCSV other = (SourceMicrosoftOnedriveFromCSV) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceMicrosoftOnedriveFromCSV.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMicrosoftOnedriveFromCSV build() { + return new SourceMicrosoftOnedriveFromCSV( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java index a089cc783..0b904b7e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveHeaderDefinitionType { @JsonValue private final String value; - private SourceMicrosoftOnedriveHeaderDefinitionType(String value) { + SourceMicrosoftOnedriveHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveJsonlFormat.java index e62c4af67..6a2f78099 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveJsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveJsonlFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceMicrosoftOnedriveJsonlFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceMicrosoftOnedriveJsonlFormat { @JsonCreator public SourceMicrosoftOnedriveJsonlFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftOnedriveJsonlFormat other = (SourceMicrosoftOnedriveJsonlFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceMicrosoftOnedriveJsonlFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMicrosoftOnedriveJsonlFormat build() { + return new SourceMicrosoftOnedriveJsonlFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveLocal.java index 9c3f35c87..23a2ad477 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveLocal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveLocal.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class SourceMicrosoftOnedriveLocal { @JsonCreator public SourceMicrosoftOnedriveLocal() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftOnedriveLocal other = (SourceMicrosoftOnedriveLocal) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(SourceMicrosoftOnedriveLocal.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMicrosoftOnedriveLocal build() { + return new SourceMicrosoftOnedriveLocal( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java index fc784c9fa..e173568a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMicrosoftOnedrive.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveMicrosoftOnedrive { @JsonValue private final String value; - private SourceMicrosoftOnedriveMicrosoftOnedrive(String value) { + SourceMicrosoftOnedriveMicrosoftOnedrive(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMode.java index 92c18d484..398827d8a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveMode.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveMode { @JsonValue private final String value; - private SourceMicrosoftOnedriveMode(String value) { + SourceMicrosoftOnedriveMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParquetFormat.java index c1349fa21..c7ae23a4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParquetFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftOnedriveParquetFormat { +public class SourceMicrosoftOnedriveParquetFormat { /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("decimal_as_float") private Optional decimalAsFloat; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceMicrosoftOnedriveParquetFormat() { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonIgnore public Optional decimalAsFloat() { @@ -57,12 +59,14 @@ public Optional filetype() return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceMicrosoftOnedriveParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -70,8 +74,10 @@ public SourceMicrosoftOnedriveParquetFormat withDecimalAsFloat(boolean decimalAs return this; } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceMicrosoftOnedriveParquetFormat withDecimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -79,7 +85,6 @@ public SourceMicrosoftOnedriveParquetFormat withDecimalAsFloat(Optional return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftOnedriveParquetFormat other = (SourceMicrosoftOnedriveParquetFormat) o; return - Objects.deepEquals(this.decimalAsFloat, other.decimalAsFloat) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.decimalAsFloat, other.decimalAsFloat) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - decimalAsFloat, - filetype); + return Utils.enhancedHash( + decimalAsFloat, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "decimalAsFloat", decimalAsFloat, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional decimalAsFloat; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -126,22 +133,25 @@ public Builder decimalAsFloat(boolean decimalAsFloat) { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); this.decimalAsFloat = decimalAsFloat; return this; } - + public SourceMicrosoftOnedriveParquetFormat build() { if (decimalAsFloat == null) { decimalAsFloat = _SINGLETON_VALUE_DecimalAsFloat.value(); } + return new SourceMicrosoftOnedriveParquetFormat( decimalAsFloat); } + private static final LazySingletonValue> _SINGLETON_VALUE_DecimalAsFloat = new LazySingletonValue<>( "decimal_as_float", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java index 9e7a07729..22ebabbdf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveParsingStrategy.java @@ -11,7 +11,12 @@ /** * SourceMicrosoftOnedriveParsingStrategy * - *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public enum SourceMicrosoftOnedriveParsingStrategy { AUTO("auto"), @@ -22,7 +27,7 @@ public enum SourceMicrosoftOnedriveParsingStrategy { @JsonValue private final String value; - private SourceMicrosoftOnedriveParsingStrategy(String value) { + SourceMicrosoftOnedriveParsingStrategy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveProcessing.java index 296590d91..fd36e6ea7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveProcessing.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMicrosoftOnedriveProcessing @@ -66,12 +65,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMicrosoftOnedriveProcessing other = (SourceMicrosoftOnedriveProcessing) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java index 25a54f220..36feb05c8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveSchemasAuthType { @JsonValue private final String value; - private SourceMicrosoftOnedriveSchemasAuthType(String value) { + SourceMicrosoftOnedriveSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasFiletype.java index 1149d4a63..c37622f24 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasFiletype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveSchemasFiletype { @JsonValue private final String value; - private SourceMicrosoftOnedriveSchemasFiletype(String value) { + SourceMicrosoftOnedriveSchemasFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasHeaderDefinitionType.java index f458f0dab..45e542981 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveSchemasHeaderDefinitionType { @JsonValue private final String value; - private SourceMicrosoftOnedriveSchemasHeaderDefinitionType(String value) { + SourceMicrosoftOnedriveSchemasHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java index 4bf36d674..0490dbf29 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFiletype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveSchemasStreamsFiletype { @JsonValue private final String value; - private SourceMicrosoftOnedriveSchemasStreamsFiletype(String value) { + SourceMicrosoftOnedriveSchemasStreamsFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java index 628e45e41..d5d268af8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveSchemasStreamsFormatFiletype { @JsonValue private final String value; - private SourceMicrosoftOnedriveSchemasStreamsFormatFiletype(String value) { + SourceMicrosoftOnedriveSchemasStreamsFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.java index 8b12c201e..d1a4667f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype { @JsonValue private final String value; - private SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype(String value) { + SourceMicrosoftOnedriveSchemasStreamsFormatFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.java index 224e571fe..38397da9d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType { @JsonValue private final String value; - private SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType(String value) { + SourceMicrosoftOnedriveSchemasStreamsHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java index deffe19d9..51bc88a58 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUnstructuredDocumentFormat.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -37,14 +36,20 @@ public class SourceMicrosoftOnedriveUnstructuredDocumentFormat { private Optional processing; /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_unprocessable_files") private Optional skipUnprocessableFiles; /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strategy") @@ -84,7 +89,8 @@ public Optional processing() { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonIgnore public Optional skipUnprocessableFiles() { @@ -92,7 +98,12 @@ public Optional skipUnprocessableFiles() { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @SuppressWarnings("unchecked") @JsonIgnore @@ -100,9 +111,10 @@ public Optional strategy() { return (Optional) strategy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Processing configuration @@ -113,6 +125,7 @@ public SourceMicrosoftOnedriveUnstructuredDocumentFormat withProcessing(SourceMi return this; } + /** * Processing configuration */ @@ -123,7 +136,8 @@ public SourceMicrosoftOnedriveUnstructuredDocumentFormat withProcessing(Optional } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public SourceMicrosoftOnedriveUnstructuredDocumentFormat withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -131,8 +145,10 @@ public SourceMicrosoftOnedriveUnstructuredDocumentFormat withSkipUnprocessableFi return this; } + /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public SourceMicrosoftOnedriveUnstructuredDocumentFormat withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -141,7 +157,12 @@ public SourceMicrosoftOnedriveUnstructuredDocumentFormat withSkipUnprocessableFi } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceMicrosoftOnedriveUnstructuredDocumentFormat withStrategy(SourceMicrosoftOnedriveParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -149,8 +170,14 @@ public SourceMicrosoftOnedriveUnstructuredDocumentFormat withStrategy(SourceMicr return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceMicrosoftOnedriveUnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -158,7 +185,6 @@ public SourceMicrosoftOnedriveUnstructuredDocumentFormat withStrategy(Optional processing = Optional.empty(); - + private Optional skipUnprocessableFiles; - + private Optional strategy; - + private Builder() { // force use of static builder() method } + /** * Processing configuration */ @@ -223,8 +249,10 @@ public Builder processing(Optional return this; } + /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -233,7 +261,8 @@ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -241,8 +270,14 @@ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(SourceMicrosoftOnedriveParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -251,14 +286,19 @@ public Builder strategy(SourceMicrosoftOnedriveParsingStrategy strategy) { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; } - + public SourceMicrosoftOnedriveUnstructuredDocumentFormat build() { if (skipUnprocessableFiles == null) { skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); @@ -266,12 +306,12 @@ public SourceMicrosoftOnedriveUnstructuredDocumentFormat build() { if (strategy == null) { strategy = _SINGLETON_VALUE_Strategy.value(); } + return new SourceMicrosoftOnedriveUnstructuredDocumentFormat( - processing, - skipUnprocessableFiles, - strategy); + processing, skipUnprocessableFiles, strategy); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUserProvided.java index ed577508f..95eea49b6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveUserProvided.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftOnedriveUserProvided { +public class SourceMicrosoftOnedriveUserProvided { /** * The column names that will be used while emitting the CSV records */ @JsonProperty("column_names") private List columnNames; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition_type") private Optional headerDefinitionType; @@ -52,9 +52,10 @@ public Optional heade return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The column names that will be used while emitting the CSV records @@ -65,7 +66,6 @@ public SourceMicrosoftOnedriveUserProvided withColumnNames(List columnNa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -76,15 +76,14 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftOnedriveUserProvided other = (SourceMicrosoftOnedriveUserProvided) o; return - Objects.deepEquals(this.columnNames, other.columnNames) && - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.columnNames, other.columnNames) && + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( - columnNames, - headerDefinitionType); + return Utils.enhancedHash( + columnNames, headerDefinitionType); } @Override @@ -93,15 +92,17 @@ public String toString() { "columnNames", columnNames, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List columnNames; - + private Builder() { // force use of static builder() method } + /** * The column names that will be used while emitting the CSV records */ @@ -110,12 +111,14 @@ public Builder columnNames(List columnNames) { this.columnNames = columnNames; return this; } - + public SourceMicrosoftOnedriveUserProvided build() { + return new SourceMicrosoftOnedriveUserProvided( columnNames); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java index eed0b7565..823583bcd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftOnedriveValidationPolicy.java @@ -11,7 +11,8 @@ /** * SourceMicrosoftOnedriveValidationPolicy * - *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public enum SourceMicrosoftOnedriveValidationPolicy { EMIT_RECORD("Emit Record"), @@ -21,7 +22,7 @@ public enum SourceMicrosoftOnedriveValidationPolicy { @JsonValue private final String value; - private SourceMicrosoftOnedriveValidationPolicy(String value) { + SourceMicrosoftOnedriveValidationPolicy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepoint.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepoint.java index 8785d120d..69b5b42f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepoint.java @@ -16,7 +16,6 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -26,50 +25,59 @@ * This class combines the authentication details with additional configuration for the SharePoint API. */ public class SourceMicrosoftSharepoint { - /** * Credentials for connecting to the One Drive API */ @JsonProperty("credentials") private SourceMicrosoftSharepointAuthentication credentials; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("delivery_method") private Optional deliveryMethod; /** - * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("folder_path") private Optional folderPath; /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("search_scope") private Optional searchScope; /** - * Url of SharePoint site to search for files. Leave empty to search in the main site. Use 'https://<tenant_name>.sharepoint.com/sites/' to iterate over all sites. + * Url of SharePoint site to search for files. Leave empty to search in the main site. Use + * 'https://<tenant_name>.sharepoint.com/sites/' to iterate over all sites. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("site_url") private Optional siteUrl; + @JsonProperty("sourceType") private SourceMicrosoftSharepointMicrosoftSharepoint sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonProperty("streams") private List streams; @@ -103,7 +111,9 @@ public SourceMicrosoftSharepoint( public SourceMicrosoftSharepoint( SourceMicrosoftSharepointAuthentication credentials, List streams) { - this(credentials, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), streams); + this(credentials, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + streams); } /** @@ -121,7 +131,8 @@ public Optional deliveryMethod() { } /** - * Path to a specific folder within the drives to search for files. Leave empty to search all folders of the drives. This does not apply to shared items. + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. */ @JsonIgnore public Optional folderPath() { @@ -129,7 +140,9 @@ public Optional folderPath() { } /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -138,7 +151,8 @@ public Optional searchScope() { } /** - * Url of SharePoint site to search for files. Leave empty to search in the main site. Use 'https://<tenant_name>.sharepoint.com/sites/' to iterate over all sites. + * Url of SharePoint site to search for files. Leave empty to search in the main site. Use + * 'https://<tenant_name>.sharepoint.com/sites/' to iterate over all sites. */ @JsonIgnore public Optional siteUrl() { @@ -151,7 +165,8 @@ public SourceMicrosoftSharepointMicrosoftSharepoint sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonIgnore public Optional startDate() { @@ -159,16 +174,20 @@ public Optional startDate() { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonIgnore public List streams() { return streams; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Credentials for connecting to the One Drive API @@ -185,6 +204,7 @@ public SourceMicrosoftSharepoint withDeliveryMethod(SourceMicrosoftSharepointDel return this; } + public SourceMicrosoftSharepoint withDeliveryMethod(Optional deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = deliveryMethod; @@ -192,7 +212,8 @@ public SourceMicrosoftSharepoint withDeliveryMethod(Optional folderPath) { Utils.checkNotNull(folderPath, "folderPath"); @@ -210,7 +233,9 @@ public SourceMicrosoftSharepoint withFolderPath(Optional folderPath) { } /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. */ public SourceMicrosoftSharepoint withSearchScope(SourceMicrosoftSharepointSearchScope searchScope) { Utils.checkNotNull(searchScope, "searchScope"); @@ -218,8 +243,11 @@ public SourceMicrosoftSharepoint withSearchScope(SourceMicrosoftSharepointSearch return this; } + /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. */ public SourceMicrosoftSharepoint withSearchScope(Optional searchScope) { Utils.checkNotNull(searchScope, "searchScope"); @@ -228,7 +256,8 @@ public SourceMicrosoftSharepoint withSearchScope(Optional siteUrl) { Utils.checkNotNull(siteUrl, "siteUrl"); @@ -246,7 +277,8 @@ public SourceMicrosoftSharepoint withSiteUrl(Optional siteUrl) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceMicrosoftSharepoint withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -254,8 +286,10 @@ public SourceMicrosoftSharepoint withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceMicrosoftSharepoint withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -264,7 +298,10 @@ public SourceMicrosoftSharepoint withStartDate(Optional startDat } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public SourceMicrosoftSharepoint withStreams(List streams) { Utils.checkNotNull(streams, "streams"); @@ -272,7 +309,6 @@ public SourceMicrosoftSharepoint withStreams(List deliveryMethod = Optional.empty(); - + private Optional folderPath; - + private Optional searchScope; - + private Optional siteUrl; - + private Optional startDate = Optional.empty(); - + private List streams; - + private Builder() { // force use of static builder() method } + /** * Credentials for connecting to the One Drive API */ @@ -348,6 +381,7 @@ public Builder credentials(SourceMicrosoftSharepointAuthentication credentials) return this; } + public Builder deliveryMethod(SourceMicrosoftSharepointDeliveryMethod deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = Optional.ofNullable(deliveryMethod); @@ -360,8 +394,10 @@ public Builder deliveryMethod(Optional folderPath) { Utils.checkNotNull(folderPath, "folderPath"); @@ -378,8 +415,11 @@ public Builder folderPath(Optional folderPath) { return this; } + /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. */ public Builder searchScope(SourceMicrosoftSharepointSearchScope searchScope) { Utils.checkNotNull(searchScope, "searchScope"); @@ -388,7 +428,9 @@ public Builder searchScope(SourceMicrosoftSharepointSearchScope searchScope) { } /** - * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. */ public Builder searchScope(Optional searchScope) { Utils.checkNotNull(searchScope, "searchScope"); @@ -396,8 +438,10 @@ public Builder searchScope(Optional siteUrl) { Utils.checkNotNull(siteUrl, "siteUrl"); @@ -414,8 +459,10 @@ public Builder siteUrl(Optional siteUrl) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -424,7 +471,8 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -432,15 +480,19 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public Builder streams(List streams) { Utils.checkNotNull(streams, "streams"); this.streams = streams; return this; } - + public SourceMicrosoftSharepoint build() { if (folderPath == null) { folderPath = _SINGLETON_VALUE_FolderPath.value(); @@ -451,16 +503,14 @@ public SourceMicrosoftSharepoint build() { if (siteUrl == null) { siteUrl = _SINGLETON_VALUE_SiteUrl.value(); } + return new SourceMicrosoftSharepoint( - credentials, - deliveryMethod, - folderPath, - searchScope, - siteUrl, - startDate, + credentials, deliveryMethod, folderPath, + searchScope, siteUrl, startDate, streams); } + private static final LazySingletonValue> _SINGLETON_VALUE_FolderPath = new LazySingletonValue<>( "folder_path", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java index 807ee7f96..79babe399 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointAuthType { @JsonValue private final String value; - private SourceMicrosoftSharepointAuthType(String value) { + SourceMicrosoftSharepointAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth.java index 6f5d28b2a..acff24643 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -75,7 +74,8 @@ public SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth( String clientId, String clientSecret, String tenantId) { - this(clientId, clientSecret, Optional.empty(), tenantId); + this(clientId, clientSecret, Optional.empty(), + tenantId); } @SuppressWarnings("unchecked") @@ -116,9 +116,10 @@ public String tenantId() { return tenantId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID of your Microsoft developer application @@ -147,6 +148,7 @@ public SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth withRefreshToken(S return this; } + /** * Refresh Token of your Microsoft developer application */ @@ -165,7 +167,6 @@ public SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth withTenantId(Strin return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -176,21 +177,18 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth other = (SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tenantId, other.tenantId); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, - refreshToken, - tenantId); + return Utils.enhancedHash( + authType, clientId, clientSecret, + refreshToken, tenantId); } @Override @@ -202,21 +200,23 @@ public String toString() { "refreshToken", refreshToken, "tenantId", tenantId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional refreshToken = Optional.empty(); - + private String tenantId; - + private Builder() { // force use of static builder() method } + /** * Client ID of your Microsoft developer application */ @@ -226,6 +226,7 @@ public Builder clientId(String clientId) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -235,6 +236,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Refresh Token of your Microsoft developer application */ @@ -253,6 +255,7 @@ public Builder refreshToken(Optional refreshToken) { return this; } + /** * Tenant ID of the Microsoft SharePoint user */ @@ -261,15 +264,15 @@ public Builder tenantId(String tenantId) { this.tenantId = tenantId; return this; } - + public SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth build() { + return new SourceMicrosoftSharepointAuthenticateViaMicrosoftOAuth( - clientId, - clientSecret, - refreshToken, + clientId, clientSecret, refreshToken, tenantId); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthentication.java index b0a6f6f4e..d30ad542a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMicrosoftSharepointAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMicrosoftSharepointAuthentication other = (SourceMicrosoftSharepointAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAutogenerated.java index 0d031d613..c9fa23526 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAutogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAutogenerated.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceMicrosoftSharepointAutogenerated { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceMicrosoftSharepointAutogenerated { @JsonCreator public SourceMicrosoftSharepointAutogenerated() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefi return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointAutogenerated other = (SourceMicrosoftSharepointAutogenerated) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceMicrosoftSharepointAutogenerated.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMicrosoftSharepointAutogenerated build() { + return new SourceMicrosoftSharepointAutogenerated( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAvroFormat.java index 1eec1a6da..dfa02a416 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointAvroFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftSharepointAvroFormat { +public class SourceMicrosoftSharepointAvroFormat { /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("double_as_string") private Optional doubleAsString; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceMicrosoftSharepointAvroFormat() { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonIgnore public Optional doubleAsString() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceMicrosoftSharepointAvroFormat withDoubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -70,8 +74,10 @@ public SourceMicrosoftSharepointAvroFormat withDoubleAsString(boolean doubleAsSt return this; } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceMicrosoftSharepointAvroFormat withDoubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -79,7 +85,6 @@ public SourceMicrosoftSharepointAvroFormat withDoubleAsString(Optional return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointAvroFormat other = (SourceMicrosoftSharepointAvroFormat) o; return - Objects.deepEquals(this.doubleAsString, other.doubleAsString) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.doubleAsString, other.doubleAsString) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - doubleAsString, - filetype); + return Utils.enhancedHash( + doubleAsString, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "doubleAsString", doubleAsString, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional doubleAsString; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -126,22 +133,25 @@ public Builder doubleAsString(boolean doubleAsString) { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); this.doubleAsString = doubleAsString; return this; } - + public SourceMicrosoftSharepointAvroFormat build() { if (doubleAsString == null) { doubleAsString = _SINGLETON_VALUE_DoubleAsString.value(); } + return new SourceMicrosoftSharepointAvroFormat( doubleAsString); } + private static final LazySingletonValue> _SINGLETON_VALUE_DoubleAsString = new LazySingletonValue<>( "double_as_string", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVFormat.java index acf342ae5..1f550fbbb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVFormat.java @@ -17,13 +17,13 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftSharepointCSVFormat { +public class SourceMicrosoftSharepointCSVFormat { /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("delimiter") @@ -37,7 +37,9 @@ public class SourceMicrosoftSharepointCSVFormat { private Optional doubleQuote; /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("encoding") @@ -57,26 +59,35 @@ public class SourceMicrosoftSharepointCSVFormat { @JsonProperty("false_values") private Optional> falseValues; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition") private Optional headerDefinition; /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ignore_errors_on_fields_mismatch") private Optional ignoreErrorsOnFieldsMismatch; /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("null_values") @@ -97,14 +108,17 @@ public class SourceMicrosoftSharepointCSVFormat { private Optional skipRowsAfterHeader; /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_rows_before_header") private Optional skipRowsBeforeHeader; /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strings_can_be_null") @@ -162,11 +176,16 @@ public SourceMicrosoftSharepointCSVFormat( } public SourceMicrosoftSharepointCSVFormat() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonIgnore public Optional delimiter() { @@ -182,7 +201,9 @@ public Optional doubleQuote() { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonIgnore public Optional encoding() { @@ -213,7 +234,13 @@ public Optional filetype() { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -222,7 +249,8 @@ public Optional headerDefinition() } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonIgnore public Optional ignoreErrorsOnFieldsMismatch() { @@ -230,7 +258,8 @@ public Optional ignoreErrorsOnFieldsMismatch() { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -255,7 +284,8 @@ public Optional skipRowsAfterHeader() { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonIgnore public Optional skipRowsBeforeHeader() { @@ -263,7 +293,9 @@ public Optional skipRowsBeforeHeader() { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonIgnore public Optional stringsCanBeNull() { @@ -279,12 +311,14 @@ public Optional> trueValues() { return (Optional>) trueValues; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceMicrosoftSharepointCSVFormat withDelimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -292,8 +326,10 @@ public SourceMicrosoftSharepointCSVFormat withDelimiter(String delimiter) { return this; } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceMicrosoftSharepointCSVFormat withDelimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -310,6 +346,7 @@ public SourceMicrosoftSharepointCSVFormat withDoubleQuote(boolean doubleQuote) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -320,7 +357,9 @@ public SourceMicrosoftSharepointCSVFormat withDoubleQuote(Optional doub } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceMicrosoftSharepointCSVFormat withEncoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -328,8 +367,11 @@ public SourceMicrosoftSharepointCSVFormat withEncoding(String encoding) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceMicrosoftSharepointCSVFormat withEncoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -346,6 +388,7 @@ public SourceMicrosoftSharepointCSVFormat withEscapeChar(String escapeChar) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -364,6 +407,7 @@ public SourceMicrosoftSharepointCSVFormat withFalseValues(List falseValu return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -374,7 +418,13 @@ public SourceMicrosoftSharepointCSVFormat withFalseValues(OptionalIf a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceMicrosoftSharepointCSVFormat withHeaderDefinition(SourceMicrosoftSharepointCSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -382,8 +432,15 @@ public SourceMicrosoftSharepointCSVFormat withHeaderDefinition(SourceMicrosoftSh return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceMicrosoftSharepointCSVFormat withHeaderDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -392,7 +449,8 @@ public SourceMicrosoftSharepointCSVFormat withHeaderDefinition(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -410,7 +470,8 @@ public SourceMicrosoftSharepointCSVFormat withIgnoreErrorsOnFieldsMismatch(Optio } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public SourceMicrosoftSharepointCSVFormat withNullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -418,8 +479,10 @@ public SourceMicrosoftSharepointCSVFormat withNullValues(List nullValues return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public SourceMicrosoftSharepointCSVFormat withNullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -436,6 +499,7 @@ public SourceMicrosoftSharepointCSVFormat withQuoteChar(String quoteChar) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -454,6 +518,7 @@ public SourceMicrosoftSharepointCSVFormat withSkipRowsAfterHeader(long skipRowsA return this; } + /** * The number of rows to skip after the header row. */ @@ -464,7 +529,8 @@ public SourceMicrosoftSharepointCSVFormat withSkipRowsAfterHeader(Optional } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceMicrosoftSharepointCSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -472,8 +538,10 @@ public SourceMicrosoftSharepointCSVFormat withSkipRowsBeforeHeader(long skipRows return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceMicrosoftSharepointCSVFormat withSkipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -482,7 +550,9 @@ public SourceMicrosoftSharepointCSVFormat withSkipRowsBeforeHeader(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -508,6 +581,7 @@ public SourceMicrosoftSharepointCSVFormat withTrueValues(List trueValues return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -517,7 +591,6 @@ public SourceMicrosoftSharepointCSVFormat withTrueValues(Optional delimiter; - + private Optional doubleQuote; - + private Optional encoding; - + private Optional escapeChar = Optional.empty(); - + private Optional> falseValues = Optional.empty(); - + private Optional headerDefinition = Optional.empty(); - + private Optional ignoreErrorsOnFieldsMismatch; - + private Optional> nullValues = Optional.empty(); - + private Optional quoteChar; - + private Optional skipRowsAfterHeader; - + private Optional skipRowsBeforeHeader; - + private Optional stringsCanBeNull; - + private Optional> trueValues = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -624,7 +691,8 @@ public Builder delimiter(String delimiter) { } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -632,6 +700,7 @@ public Builder delimiter(Optional delimiter) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -650,8 +719,11 @@ public Builder doubleQuote(Optional doubleQuote) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -660,7 +732,9 @@ public Builder encoding(String encoding) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -668,6 +742,7 @@ public Builder encoding(Optional encoding) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -686,6 +761,7 @@ public Builder escapeChar(Optional escapeChar) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -704,8 +780,15 @@ public Builder falseValues(Optional> falseValues) { return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(SourceMicrosoftSharepointCSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -714,7 +797,13 @@ public Builder headerDefinition(SourceMicrosoftSharepointCSVHeaderDefinition hea } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -722,8 +811,10 @@ public Builder headerDefinition(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -740,8 +832,10 @@ public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFiel return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -750,7 +844,8 @@ public Builder nullValues(List nullValues) { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -758,6 +853,7 @@ public Builder nullValues(Optional> nullValues) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -776,6 +872,7 @@ public Builder quoteChar(Optional quoteChar) { return this; } + /** * The number of rows to skip after the header row. */ @@ -794,8 +891,10 @@ public Builder skipRowsAfterHeader(Optional skipRowsAfterHeader) { return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -804,7 +903,8 @@ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -812,8 +912,11 @@ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -822,7 +925,9 @@ public Builder stringsCanBeNull(boolean stringsCanBeNull) { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -830,6 +935,7 @@ public Builder stringsCanBeNull(Optional stringsCanBeNull) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -847,7 +953,7 @@ public Builder trueValues(Optional> trueValues) { this.trueValues = trueValues; return this; } - + public SourceMicrosoftSharepointCSVFormat build() { if (delimiter == null) { delimiter = _SINGLETON_VALUE_Delimiter.value(); @@ -873,22 +979,16 @@ public SourceMicrosoftSharepointCSVFormat build() { if (stringsCanBeNull == null) { stringsCanBeNull = _SINGLETON_VALUE_StringsCanBeNull.value(); } + return new SourceMicrosoftSharepointCSVFormat( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, + delimiter, doubleQuote, encoding, + escapeChar, falseValues, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, + skipRowsAfterHeader, skipRowsBeforeHeader, stringsCanBeNull, trueValues); } + private static final LazySingletonValue> _SINGLETON_VALUE_Delimiter = new LazySingletonValue<>( "delimiter", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVHeaderDefinition.java index cd9fef2ef..cf6cf09a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCSVHeaderDefinition.java @@ -14,12 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMicrosoftSharepointCSVHeaderDefinition * - *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonDeserialize(using = SourceMicrosoftSharepointCSVHeaderDefinition._Deserializer.class) public class SourceMicrosoftSharepointCSVHeaderDefinition { @@ -78,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMicrosoftSharepointCSVHeaderDefinition other = (SourceMicrosoftSharepointCSVHeaderDefinition) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCopyRawFiles.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCopyRawFiles.java index 403e181ba..08491ee95 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCopyRawFiles.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointCopyRawFiles.java @@ -15,13 +15,14 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * SourceMicrosoftSharepointCopyRawFiles * - *

    Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. + *

    Copy raw files without parsing their contents. Bits are copied into the destination exactly as they + * appeared in the source. Recommended for use with unstructured text data, non-text and compressed + * files. */ public class SourceMicrosoftSharepointCopyRawFiles { @@ -30,7 +31,9 @@ public class SourceMicrosoftSharepointCopyRawFiles { private Optional deliveryType; /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("preserve_directory_structure") @@ -55,19 +58,24 @@ public Optional deliveryType() { } /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ @JsonIgnore public Optional preserveDirectoryStructure() { return preserveDirectoryStructure; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public SourceMicrosoftSharepointCopyRawFiles withPreserveDirectoryStructure(boolean preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -75,8 +83,11 @@ public SourceMicrosoftSharepointCopyRawFiles withPreserveDirectoryStructure(bool return this; } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public SourceMicrosoftSharepointCopyRawFiles withPreserveDirectoryStructure(Optional preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -84,7 +95,6 @@ public SourceMicrosoftSharepointCopyRawFiles withPreserveDirectoryStructure(Opti return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +105,14 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointCopyRawFiles other = (SourceMicrosoftSharepointCopyRawFiles) o; return - Objects.deepEquals(this.deliveryType, other.deliveryType) && - Objects.deepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType) && + Utils.enhancedDeepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); } @Override public int hashCode() { - return Objects.hash( - deliveryType, - preserveDirectoryStructure); + return Utils.enhancedHash( + deliveryType, preserveDirectoryStructure); } @Override @@ -112,17 +121,21 @@ public String toString() { "deliveryType", deliveryType, "preserveDirectoryStructure", preserveDirectoryStructure); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional preserveDirectoryStructure; - + private Builder() { // force use of static builder() method } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -131,22 +144,26 @@ public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { } /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public Builder preserveDirectoryStructure(Optional preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); this.preserveDirectoryStructure = preserveDirectoryStructure; return this; } - + public SourceMicrosoftSharepointCopyRawFiles build() { if (preserveDirectoryStructure == null) { preserveDirectoryStructure = _SINGLETON_VALUE_PreserveDirectoryStructure.value(); } + return new SourceMicrosoftSharepointCopyRawFiles( preserveDirectoryStructure); } + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = new LazySingletonValue<>( "delivery_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryMethod.java index dba1bf306..c07f3fa84 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceMicrosoftSharepointDeliveryMethod._Deserializer.class) public class SourceMicrosoftSharepointDeliveryMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMicrosoftSharepointDeliveryMethod other = (SourceMicrosoftSharepointDeliveryMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryType.java index 23baa3ce3..715897854 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointDeliveryType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointDeliveryType { @JsonValue private final String value; - private SourceMicrosoftSharepointDeliveryType(String value) { + SourceMicrosoftSharepointDeliveryType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java index 2bc52958f..57ca9ce85 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointExcelFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceMicrosoftSharepointExcelFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceMicrosoftSharepointExcelFormat { @JsonCreator public SourceMicrosoftSharepointExcelFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional fi return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointExcelFormat other = (SourceMicrosoftSharepointExcelFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceMicrosoftSharepointExcelFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMicrosoftSharepointExcelFormat build() { + return new SourceMicrosoftSharepointExcelFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java index fe1ab2eae..042425d8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFileBasedStreamConfig.java @@ -17,33 +17,37 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftSharepointFileBasedStreamConfig { +public class SourceMicrosoftSharepointFileBasedStreamConfig { /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("days_to_sync_if_history_is_full") private Optional daysToSyncIfHistoryIsFull; /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonProperty("format") private SourceMicrosoftSharepointFormat format; /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("globs") private Optional> globs; /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("input_schema") @@ -70,7 +74,8 @@ public class SourceMicrosoftSharepointFileBasedStreamConfig { private Optional schemaless; /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("validation_policy") @@ -107,11 +112,14 @@ public SourceMicrosoftSharepointFileBasedStreamConfig( public SourceMicrosoftSharepointFileBasedStreamConfig( SourceMicrosoftSharepointFormat format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty(), Optional.empty()); } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonIgnore public Optional daysToSyncIfHistoryIsFull() { @@ -119,7 +127,8 @@ public Optional daysToSyncIfHistoryIsFull() { } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonIgnore public SourceMicrosoftSharepointFormat format() { @@ -127,7 +136,9 @@ public SourceMicrosoftSharepointFormat format() { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -136,7 +147,8 @@ public Optional> globs() { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonIgnore public Optional inputSchema() { @@ -168,7 +180,8 @@ public Optional schemaless() { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -176,12 +189,14 @@ public Optional validationPolicy() { return (Optional) validationPolicy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceMicrosoftSharepointFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -189,8 +204,10 @@ public SourceMicrosoftSharepointFileBasedStreamConfig withDaysToSyncIfHistoryIsF return this; } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceMicrosoftSharepointFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -199,7 +216,8 @@ public SourceMicrosoftSharepointFileBasedStreamConfig withDaysToSyncIfHistoryIsF } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public SourceMicrosoftSharepointFileBasedStreamConfig withFormat(SourceMicrosoftSharepointFormat format) { Utils.checkNotNull(format, "format"); @@ -208,7 +226,9 @@ public SourceMicrosoftSharepointFileBasedStreamConfig withFormat(SourceMicrosoft } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public SourceMicrosoftSharepointFileBasedStreamConfig withGlobs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -216,8 +236,11 @@ public SourceMicrosoftSharepointFileBasedStreamConfig withGlobs(List glo return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public SourceMicrosoftSharepointFileBasedStreamConfig withGlobs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -226,7 +249,8 @@ public SourceMicrosoftSharepointFileBasedStreamConfig withGlobs(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -261,6 +287,7 @@ public SourceMicrosoftSharepointFileBasedStreamConfig withRecentNFilesToReadForS return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -279,6 +306,7 @@ public SourceMicrosoftSharepointFileBasedStreamConfig withSchemaless(boolean sch return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -289,7 +317,8 @@ public SourceMicrosoftSharepointFileBasedStreamConfig withSchemaless(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -306,7 +337,6 @@ public SourceMicrosoftSharepointFileBasedStreamConfig withValidationPolicy(Optio return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -317,27 +347,22 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointFileBasedStreamConfig other = (SourceMicrosoftSharepointFileBasedStreamConfig) o; return - Objects.deepEquals(this.daysToSyncIfHistoryIsFull, other.daysToSyncIfHistoryIsFull) && - Objects.deepEquals(this.format, other.format) && - Objects.deepEquals(this.globs, other.globs) && - Objects.deepEquals(this.inputSchema, other.inputSchema) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.recentNFilesToReadForSchemaDiscovery, other.recentNFilesToReadForSchemaDiscovery) && - Objects.deepEquals(this.schemaless, other.schemaless) && - Objects.deepEquals(this.validationPolicy, other.validationPolicy); + Utils.enhancedDeepEquals(this.daysToSyncIfHistoryIsFull, other.daysToSyncIfHistoryIsFull) && + Utils.enhancedDeepEquals(this.format, other.format) && + Utils.enhancedDeepEquals(this.globs, other.globs) && + Utils.enhancedDeepEquals(this.inputSchema, other.inputSchema) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.recentNFilesToReadForSchemaDiscovery, other.recentNFilesToReadForSchemaDiscovery) && + Utils.enhancedDeepEquals(this.schemaless, other.schemaless) && + Utils.enhancedDeepEquals(this.validationPolicy, other.validationPolicy); } @Override public int hashCode() { - return Objects.hash( - daysToSyncIfHistoryIsFull, - format, - globs, - inputSchema, - name, - recentNFilesToReadForSchemaDiscovery, - schemaless, - validationPolicy); + return Utils.enhancedHash( + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, recentNFilesToReadForSchemaDiscovery, + schemaless, validationPolicy); } @Override @@ -352,31 +377,34 @@ public String toString() { "schemaless", schemaless, "validationPolicy", validationPolicy); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional daysToSyncIfHistoryIsFull; - + private SourceMicrosoftSharepointFormat format; - + private Optional> globs = Optional.empty(); - + private Optional inputSchema = Optional.empty(); - + private String name; - + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); - + private Optional schemaless; - + private Optional validationPolicy; - + private Builder() { // force use of static builder() method } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -385,7 +413,8 @@ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -393,8 +422,10 @@ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFul return this; } + /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public Builder format(SourceMicrosoftSharepointFormat format) { Utils.checkNotNull(format, "format"); @@ -402,8 +433,11 @@ public Builder format(SourceMicrosoftSharepointFormat format) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -412,7 +446,9 @@ public Builder globs(List globs) { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -420,8 +456,10 @@ public Builder globs(Optional> globs) { return this; } + /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -430,7 +468,8 @@ public Builder inputSchema(String inputSchema) { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -438,6 +477,7 @@ public Builder inputSchema(Optional inputSchema) { return this; } + /** * The name of the stream. */ @@ -447,6 +487,7 @@ public Builder name(String name) { return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -465,6 +506,7 @@ public Builder recentNFilesToReadForSchemaDiscovery(Optional recentNFilesT return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -483,8 +525,10 @@ public Builder schemaless(Optional schemaless) { return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(SourceMicrosoftSharepointValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -493,14 +537,15 @@ public Builder validationPolicy(SourceMicrosoftSharepointValidationPolicy valida } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); this.validationPolicy = validationPolicy; return this; } - + public SourceMicrosoftSharepointFileBasedStreamConfig build() { if (daysToSyncIfHistoryIsFull == null) { daysToSyncIfHistoryIsFull = _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull.value(); @@ -511,17 +556,14 @@ public SourceMicrosoftSharepointFileBasedStreamConfig build() { if (validationPolicy == null) { validationPolicy = _SINGLETON_VALUE_ValidationPolicy.value(); } + return new SourceMicrosoftSharepointFileBasedStreamConfig( - daysToSyncIfHistoryIsFull, - format, - globs, - inputSchema, - name, - recentNFilesToReadForSchemaDiscovery, - schemaless, - validationPolicy); + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, recentNFilesToReadForSchemaDiscovery, + schemaless, validationPolicy); } + private static final LazySingletonValue> _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull = new LazySingletonValue<>( "days_to_sync_if_history_is_full", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java index c91438b9d..7add03689 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFiletype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointFiletype { @JsonValue private final String value; - private SourceMicrosoftSharepointFiletype(String value) { + SourceMicrosoftSharepointFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java index dcfc86faf..24463f9f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFormat.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMicrosoftSharepointFormat * - *

    The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + *

    The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonDeserialize(using = SourceMicrosoftSharepointFormat._Deserializer.class) public class SourceMicrosoftSharepointFormat { @@ -96,12 +96,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMicrosoftSharepointFormat other = (SourceMicrosoftSharepointFormat) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFromCSV.java index dacd8447a..c61330ecd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointFromCSV.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceMicrosoftSharepointFromCSV { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceMicrosoftSharepointFromCSV { @JsonCreator public SourceMicrosoftSharepointFromCSV() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionT return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointFromCSV other = (SourceMicrosoftSharepointFromCSV) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceMicrosoftSharepointFromCSV.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMicrosoftSharepointFromCSV build() { + return new SourceMicrosoftSharepointFromCSV( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java index 5aa43b6b7..820d90b6c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointHeaderDefinitionType { @JsonValue private final String value; - private SourceMicrosoftSharepointHeaderDefinitionType(String value) { + SourceMicrosoftSharepointHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointJsonlFormat.java index 07e664be0..564bd6687 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointJsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointJsonlFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceMicrosoftSharepointJsonlFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceMicrosoftSharepointJsonlFormat { @JsonCreator public SourceMicrosoftSharepointJsonlFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointJsonlFormat other = (SourceMicrosoftSharepointJsonlFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceMicrosoftSharepointJsonlFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMicrosoftSharepointJsonlFormat build() { + return new SourceMicrosoftSharepointJsonlFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointLocal.java index a65cf7edc..37e6d599d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointLocal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointLocal.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class SourceMicrosoftSharepointLocal { @JsonCreator public SourceMicrosoftSharepointLocal() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointLocal other = (SourceMicrosoftSharepointLocal) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(SourceMicrosoftSharepointLocal.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMicrosoftSharepointLocal build() { + return new SourceMicrosoftSharepointLocal( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java index 212a6f269..e9bfd7394 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMicrosoftSharepoint.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointMicrosoftSharepoint { @JsonValue private final String value; - private SourceMicrosoftSharepointMicrosoftSharepoint(String value) { + SourceMicrosoftSharepointMicrosoftSharepoint(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java index 532e1f204..2be52b543 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointMode.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointMode { @JsonValue private final String value; - private SourceMicrosoftSharepointMode(String value) { + SourceMicrosoftSharepointMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParquetFormat.java index d7a0cfbd4..b16295db0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParquetFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftSharepointParquetFormat { +public class SourceMicrosoftSharepointParquetFormat { /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("decimal_as_float") private Optional decimalAsFloat; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceMicrosoftSharepointParquetFormat() { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonIgnore public Optional decimalAsFloat() { @@ -57,12 +59,14 @@ public Optional filetype( return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceMicrosoftSharepointParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -70,8 +74,10 @@ public SourceMicrosoftSharepointParquetFormat withDecimalAsFloat(boolean decimal return this; } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceMicrosoftSharepointParquetFormat withDecimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -79,7 +85,6 @@ public SourceMicrosoftSharepointParquetFormat withDecimalAsFloat(Optional decimalAsFloat; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -126,22 +133,25 @@ public Builder decimalAsFloat(boolean decimalAsFloat) { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); this.decimalAsFloat = decimalAsFloat; return this; } - + public SourceMicrosoftSharepointParquetFormat build() { if (decimalAsFloat == null) { decimalAsFloat = _SINGLETON_VALUE_DecimalAsFloat.value(); } + return new SourceMicrosoftSharepointParquetFormat( decimalAsFloat); } + private static final LazySingletonValue> _SINGLETON_VALUE_DecimalAsFloat = new LazySingletonValue<>( "decimal_as_float", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java index 33c669198..16df9a4a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointParsingStrategy.java @@ -11,7 +11,12 @@ /** * SourceMicrosoftSharepointParsingStrategy * - *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public enum SourceMicrosoftSharepointParsingStrategy { AUTO("auto"), @@ -22,7 +27,7 @@ public enum SourceMicrosoftSharepointParsingStrategy { @JsonValue private final String value; - private SourceMicrosoftSharepointParsingStrategy(String value) { + SourceMicrosoftSharepointParsingStrategy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointProcessing.java index 697b8b726..844ab37cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointProcessing.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMicrosoftSharepointProcessing @@ -66,12 +65,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMicrosoftSharepointProcessing other = (SourceMicrosoftSharepointProcessing) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointReplicateRecords.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointReplicateRecords.java index add35f114..3654607a0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointReplicateRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointReplicateRecords.java @@ -14,13 +14,16 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * SourceMicrosoftSharepointReplicateRecords * - *

    Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. + *

    Recommended - Extract and load structured records into your destination of choice. This is the + * classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or + * files from a structured schema. + * + *

    Data can be flattened, typed and deduped depending on the destination. */ public class SourceMicrosoftSharepointReplicateRecords { @@ -30,7 +33,6 @@ public class SourceMicrosoftSharepointReplicateRecords { @JsonCreator public SourceMicrosoftSharepointReplicateRecords() { - this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); } @@ -40,11 +42,11 @@ public Optional deliveryType() { return (Optional) deliveryType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +57,12 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointReplicateRecords other = (SourceMicrosoftSharepointReplicateRecords) o; return - Objects.deepEquals(this.deliveryType, other.deliveryType); + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( deliveryType); } @@ -69,18 +71,21 @@ public String toString() { return Utils.toString(SourceMicrosoftSharepointReplicateRecords.class, "deliveryType", deliveryType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMicrosoftSharepointReplicateRecords build() { + return new SourceMicrosoftSharepointReplicateRecords( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = new LazySingletonValue<>( "delivery_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java index aa23effdb..944172d75 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointSchemasAuthType { @JsonValue private final String value; - private SourceMicrosoftSharepointSchemasAuthType(String value) { + SourceMicrosoftSharepointSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.java index 0f9900887..628bc448f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasDeliveryType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointSchemasDeliveryType { @JsonValue private final String value; - private SourceMicrosoftSharepointSchemasDeliveryType(String value) { + SourceMicrosoftSharepointSchemasDeliveryType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java index b2748cb5b..3362d0f76 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasFiletype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointSchemasFiletype { @JsonValue private final String value; - private SourceMicrosoftSharepointSchemasFiletype(String value) { + SourceMicrosoftSharepointSchemasFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java index b60b551ef..3065b9100 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointSchemasHeaderDefinitionType { @JsonValue private final String value; - private SourceMicrosoftSharepointSchemasHeaderDefinitionType(String value) { + SourceMicrosoftSharepointSchemasHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java index 19b6fee7a..ae27c6c09 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFiletype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointSchemasStreamsFiletype { @JsonValue private final String value; - private SourceMicrosoftSharepointSchemasStreamsFiletype(String value) { + SourceMicrosoftSharepointSchemasStreamsFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java index 206a3931d..d0eb5120b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointSchemasStreamsFormatFiletype { @JsonValue private final String value; - private SourceMicrosoftSharepointSchemasStreamsFormatFiletype(String value) { + SourceMicrosoftSharepointSchemasStreamsFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java index 2a5ca782e..071b71ff0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype { @JsonValue private final String value; - private SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype(String value) { + SourceMicrosoftSharepointSchemasStreamsFormatFormat6Filetype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java index 181bc503c..8e1325cdb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype { @JsonValue private final String value; - private SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype(String value) { + SourceMicrosoftSharepointSchemasStreamsFormatFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.java index 2ed9b0447..98c4498d2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType { @JsonValue private final String value; - private SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType(String value) { + SourceMicrosoftSharepointSchemasStreamsHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java index 1dea723e5..07d13c4f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointSearchScope.java @@ -11,7 +11,9 @@ /** * SourceMicrosoftSharepointSearchScope * - *

    Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and 'ALL' to search both. + *

    Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. */ public enum SourceMicrosoftSharepointSearchScope { ACCESSIBLE_DRIVES("ACCESSIBLE_DRIVES"), @@ -21,7 +23,7 @@ public enum SourceMicrosoftSharepointSearchScope { @JsonValue private final String value; - private SourceMicrosoftSharepointSearchScope(String value) { + SourceMicrosoftSharepointSearchScope(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointServiceKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointServiceKeyAuthentication.java index c293da67b..af4812453 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointServiceKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointServiceKeyAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -48,7 +47,8 @@ public class SourceMicrosoftSharepointServiceKeyAuthentication { private String tenantId; /** - * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls */ @JsonProperty("user_principal_name") private String userPrincipalName; @@ -101,16 +101,18 @@ public String tenantId() { } /** - * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls */ @JsonIgnore public String userPrincipalName() { return userPrincipalName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID of your Microsoft developer application @@ -140,7 +142,8 @@ public SourceMicrosoftSharepointServiceKeyAuthentication withTenantId(String ten } /** - * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls */ public SourceMicrosoftSharepointServiceKeyAuthentication withUserPrincipalName(String userPrincipalName) { Utils.checkNotNull(userPrincipalName, "userPrincipalName"); @@ -148,7 +151,6 @@ public SourceMicrosoftSharepointServiceKeyAuthentication withUserPrincipalName(S return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -159,21 +161,18 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointServiceKeyAuthentication other = (SourceMicrosoftSharepointServiceKeyAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.tenantId, other.tenantId) && - Objects.deepEquals(this.userPrincipalName, other.userPrincipalName); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId) && + Utils.enhancedDeepEquals(this.userPrincipalName, other.userPrincipalName); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, - tenantId, - userPrincipalName); + return Utils.enhancedHash( + authType, clientId, clientSecret, + tenantId, userPrincipalName); } @Override @@ -185,21 +184,23 @@ public String toString() { "tenantId", tenantId, "userPrincipalName", userPrincipalName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String tenantId; - + private String userPrincipalName; - + private Builder() { // force use of static builder() method } + /** * Client ID of your Microsoft developer application */ @@ -209,6 +210,7 @@ public Builder clientId(String clientId) { return this; } + /** * Client Secret of your Microsoft developer application */ @@ -218,6 +220,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Tenant ID of the Microsoft SharePoint user */ @@ -227,23 +230,25 @@ public Builder tenantId(String tenantId) { return this; } + /** - * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls */ public Builder userPrincipalName(String userPrincipalName) { Utils.checkNotNull(userPrincipalName, "userPrincipalName"); this.userPrincipalName = userPrincipalName; return this; } - + public SourceMicrosoftSharepointServiceKeyAuthentication build() { + return new SourceMicrosoftSharepointServiceKeyAuthentication( - clientId, - clientSecret, - tenantId, + clientId, clientSecret, tenantId, userPrincipalName); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java index efd2248fa..5e05f14b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUnstructuredDocumentFormat.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -37,14 +36,20 @@ public class SourceMicrosoftSharepointUnstructuredDocumentFormat { private Optional processing; /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_unprocessable_files") private Optional skipUnprocessableFiles; /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strategy") @@ -84,7 +89,8 @@ public Optional processing() { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonIgnore public Optional skipUnprocessableFiles() { @@ -92,7 +98,12 @@ public Optional skipUnprocessableFiles() { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @SuppressWarnings("unchecked") @JsonIgnore @@ -100,9 +111,10 @@ public Optional strategy() { return (Optional) strategy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Processing configuration @@ -113,6 +125,7 @@ public SourceMicrosoftSharepointUnstructuredDocumentFormat withProcessing(Source return this; } + /** * Processing configuration */ @@ -123,7 +136,8 @@ public SourceMicrosoftSharepointUnstructuredDocumentFormat withProcessing(Option } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public SourceMicrosoftSharepointUnstructuredDocumentFormat withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -131,8 +145,10 @@ public SourceMicrosoftSharepointUnstructuredDocumentFormat withSkipUnprocessable return this; } + /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public SourceMicrosoftSharepointUnstructuredDocumentFormat withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -141,7 +157,12 @@ public SourceMicrosoftSharepointUnstructuredDocumentFormat withSkipUnprocessable } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceMicrosoftSharepointUnstructuredDocumentFormat withStrategy(SourceMicrosoftSharepointParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -149,8 +170,14 @@ public SourceMicrosoftSharepointUnstructuredDocumentFormat withStrategy(SourceMi return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceMicrosoftSharepointUnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -158,7 +185,6 @@ public SourceMicrosoftSharepointUnstructuredDocumentFormat withStrategy(Optional return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -169,18 +195,16 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointUnstructuredDocumentFormat other = (SourceMicrosoftSharepointUnstructuredDocumentFormat) o; return - Objects.deepEquals(this.filetype, other.filetype) && - Objects.deepEquals(this.processing, other.processing) && - Objects.deepEquals(this.skipUnprocessableFiles, other.skipUnprocessableFiles) && - Objects.deepEquals(this.strategy, other.strategy); + Utils.enhancedDeepEquals(this.filetype, other.filetype) && + Utils.enhancedDeepEquals(this.processing, other.processing) && + Utils.enhancedDeepEquals(this.skipUnprocessableFiles, other.skipUnprocessableFiles) && + Utils.enhancedDeepEquals(this.strategy, other.strategy); } @Override public int hashCode() { - return Objects.hash( - filetype, - processing, - skipUnprocessableFiles, + return Utils.enhancedHash( + filetype, processing, skipUnprocessableFiles, strategy); } @@ -192,19 +216,21 @@ public String toString() { "skipUnprocessableFiles", skipUnprocessableFiles, "strategy", strategy); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional processing = Optional.empty(); - + private Optional skipUnprocessableFiles; - + private Optional strategy; - + private Builder() { // force use of static builder() method } + /** * Processing configuration */ @@ -223,8 +249,10 @@ public Builder processing(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -241,8 +270,14 @@ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(SourceMicrosoftSharepointParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -251,14 +286,19 @@ public Builder strategy(SourceMicrosoftSharepointParsingStrategy strategy) { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; } - + public SourceMicrosoftSharepointUnstructuredDocumentFormat build() { if (skipUnprocessableFiles == null) { skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); @@ -266,12 +306,12 @@ public SourceMicrosoftSharepointUnstructuredDocumentFormat build() { if (strategy == null) { strategy = _SINGLETON_VALUE_Strategy.value(); } + return new SourceMicrosoftSharepointUnstructuredDocumentFormat( - processing, - skipUnprocessableFiles, - strategy); + processing, skipUnprocessableFiles, strategy); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUserProvided.java index b9ab4404f..1af31414d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointUserProvided.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftSharepointUserProvided { +public class SourceMicrosoftSharepointUserProvided { /** * The column names that will be used while emitting the CSV records */ @JsonProperty("column_names") private List columnNames; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition_type") private Optional headerDefinitionType; @@ -52,9 +52,10 @@ public Optional hea return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The column names that will be used while emitting the CSV records @@ -65,7 +66,6 @@ public SourceMicrosoftSharepointUserProvided withColumnNames(List column return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -76,15 +76,14 @@ public boolean equals(java.lang.Object o) { } SourceMicrosoftSharepointUserProvided other = (SourceMicrosoftSharepointUserProvided) o; return - Objects.deepEquals(this.columnNames, other.columnNames) && - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.columnNames, other.columnNames) && + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( - columnNames, - headerDefinitionType); + return Utils.enhancedHash( + columnNames, headerDefinitionType); } @Override @@ -93,15 +92,17 @@ public String toString() { "columnNames", columnNames, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List columnNames; - + private Builder() { // force use of static builder() method } + /** * The column names that will be used while emitting the CSV records */ @@ -110,12 +111,14 @@ public Builder columnNames(List columnNames) { this.columnNames = columnNames; return this; } - + public SourceMicrosoftSharepointUserProvided build() { + return new SourceMicrosoftSharepointUserProvided( columnNames); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java index 80946a170..b6e1e3618 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftSharepointValidationPolicy.java @@ -11,7 +11,8 @@ /** * SourceMicrosoftSharepointValidationPolicy * - *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public enum SourceMicrosoftSharepointValidationPolicy { EMIT_RECORD("Emit Record"), @@ -21,7 +22,7 @@ public enum SourceMicrosoftSharepointValidationPolicy { @JsonValue private final String value; - private SourceMicrosoftSharepointValidationPolicy(String value) { + SourceMicrosoftSharepointValidationPolicy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeams.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeams.java index 8d2d67565..9f844ad44 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeams.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeams.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceMicrosoftTeams { +public class SourceMicrosoftTeams { /** * Choose how to authenticate to Microsoft */ @@ -27,11 +26,13 @@ public class SourceMicrosoftTeams { private Optional credentials; /** - * Specifies the length of time over which the Team Device Report stream is aggregated. The supported values are: D7, D30, D90, and D180. + * Specifies the length of time over which the Team Device Report stream is aggregated. The supported + * values are: D7, D30, D90, and D180. */ @JsonProperty("period") private String period; + @JsonProperty("sourceType") private SourceMicrosoftTeamsMicrosoftTeams sourceType; @@ -61,7 +62,8 @@ public Optional credentials() { } /** - * Specifies the length of time over which the Team Device Report stream is aggregated. The supported values are: D7, D30, D90, and D180. + * Specifies the length of time over which the Team Device Report stream is aggregated. The supported + * values are: D7, D30, D90, and D180. */ @JsonIgnore public String period() { @@ -73,9 +75,10 @@ public SourceMicrosoftTeamsMicrosoftTeams sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Choose how to authenticate to Microsoft @@ -86,6 +89,7 @@ public SourceMicrosoftTeams withCredentials(SourceMicrosoftTeamsAuthenticationMe return this; } + /** * Choose how to authenticate to Microsoft */ @@ -96,7 +100,8 @@ public SourceMicrosoftTeams withCredentials(Optional credentials = Optional.empty(); - + private String period; - + private Builder() { // force use of static builder() method } + /** * Choose how to authenticate to Microsoft */ @@ -164,21 +168,24 @@ public Builder credentials(Optional _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java index 53f856cac..2ac0b854e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftTeamsAuthType { @JsonValue private final String value; - private SourceMicrosoftTeamsAuthType(String value) { + SourceMicrosoftTeamsAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthenticationMechanism.java index dabe6cf81..361e310dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsAuthenticationMechanism.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMicrosoftTeamsAuthenticationMechanism @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMicrosoftTeamsAuthenticationMechanism other = (SourceMicrosoftTeamsAuthenticationMechanism) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java index 69b1ac38b..400ece180 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsMicrosoftTeams.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftTeamsMicrosoftTeams { @JsonValue private final String value; - private SourceMicrosoftTeamsMicrosoftTeams(String value) { + SourceMicrosoftTeamsMicrosoftTeams(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsSchemasAuthType.java index 6ef8eb33d..77f725dfa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMicrosoftTeamsSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceMicrosoftTeamsSchemasAuthType { @JsonValue private final String value; - private SourceMicrosoftTeamsSchemasAuthType(String value) { + SourceMicrosoftTeamsSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMiro.java b/src/main/java/com/airbyte/api/models/shared/SourceMiro.java index 32c00c78e..d91194260 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMiro.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMiro.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceMiro { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Miro sourceType; @@ -39,9 +40,10 @@ public Miro sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceMiro withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceMiro withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceMiro other = (SourceMiro) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceMiro build() { + return new SourceMiro( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMissive.java b/src/main/java/com/airbyte/api/models/shared/SourceMissive.java index 0a13d2da2..8c466bcae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMissive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMissive.java @@ -15,9 +15,9 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceMissive { @JsonProperty("api_key") @@ -37,9 +37,11 @@ public class SourceMissive { @JsonProperty("limit") private Optional limit; + @JsonProperty("sourceType") private Missive sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -63,7 +65,8 @@ public SourceMissive( public SourceMissive( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), startDate); + this(apiKey, Optional.empty(), Optional.empty(), + startDate); } @JsonIgnore @@ -98,9 +101,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceMissive withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -117,6 +121,7 @@ public SourceMissive withKind(Kind kind) { return this; } + /** * Kind parameter for `contact_groups` stream */ @@ -135,6 +140,7 @@ public SourceMissive withLimit(String limit) { return this; } + /** * Max records per page limit */ @@ -150,7 +156,6 @@ public SourceMissive withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -161,21 +166,18 @@ public boolean equals(java.lang.Object o) { } SourceMissive other = (SourceMissive) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.kind, other.kind) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.kind, other.kind) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - kind, - limit, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, kind, limit, + sourceType, startDate); } @Override @@ -187,27 +189,30 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional kind; - + private Optional limit; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Kind parameter for `contact_groups` stream */ @@ -226,6 +231,7 @@ public Builder kind(Optional kind) { return this; } + /** * Max records per page limit */ @@ -244,12 +250,13 @@ public Builder limit(Optional limit) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceMissive build() { if (kind == null) { kind = _SINGLETON_VALUE_Kind.value(); @@ -257,13 +264,13 @@ public SourceMissive build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } + return new SourceMissive( - apiKey, - kind, - limit, + apiKey, kind, limit, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Kind = new LazySingletonValue<>( "kind", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMixmax.java b/src/main/java/com/airbyte/api/models/shared/SourceMixmax.java index 5d1eeeb29..c80b53111 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixmax.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixmax.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceMixmax { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Mixmax sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceMixmax withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceMixmax withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceMixmax other = (SourceMixmax) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceMixmax build() { + return new SourceMixmax( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMixpanel.java b/src/main/java/com/airbyte/api/models/shared/SourceMixpanel.java index 3efaea745..93e29e548 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanel.java @@ -17,13 +17,14 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceMixpanel { +public class SourceMixpanel { /** - * A period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted. Default attribution window is 5 days. (This value should be non-negative integer) + * A period of time for attributing results to ads and the lookback period after those actions occur + * during which ad results are counted. Default attribution window is 5 days. (This value should be + * non-negative integer) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("attribution_window") @@ -36,35 +37,45 @@ public class SourceMixpanel { private AuthenticationWildcard credentials; /** - * Defines window size in days, that used to slice through data. You can reduce it, if amount of data in each window is too big for your environment. (This value should be positive integer) + * Defines window size in days, that used to slice through data. You can reduce it, if amount of data + * in each window is too big for your environment. (This value should be positive integer) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("date_window_size") private Optional dateWindowSize; /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date + * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to + * always sync to most recent date */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") private Optional endDate; /** - * The number of seconds to look back from the last synced timestamp during incremental syncs of the Export stream. This ensures no data is missed due to delays in event recording. Default is 0 seconds. Must be a non-negative integer. + * The number of seconds to look back from the last synced timestamp during incremental syncs of the + * Export stream. This ensures no data is missed due to delays in event recording. Default is 0 + * seconds. + * + *

    Must be a non-negative integer. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("export_lookback_window") private Optional exportLookbackWindow; /** - * The number of records to fetch per request for the engage stream. Default is 1000. If you are experiencing long sync times with this stream, try increasing this value. + * The number of records to fetch per request for the engage stream. Default is 1000. If you are + * experiencing long sync times with this stream, try increasing this value. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("page_size") private Optional pageSize; /** - * Time zone in which integer date times are stored. The project timezone may be found in the project settings in the <a href="https://help.mixpanel.com/hc/en-us/articles/115004547203-Manage-Timezones-for-Projects-in-Mixpanel">Mixpanel console</a>. + * Time zone in which integer date times are stored. The project timezone may be found in the project + * settings in the Mixpanel + * console. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("project_timezone") @@ -78,17 +89,20 @@ public class SourceMixpanel { private Optional region; /** - * Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored. + * Setting this config parameter to TRUE ensures that new properties on events and engage records are + * captured. Otherwise new properties will be ignored. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("select_properties_by_default") private Optional selectPropertiesByDefault; + @JsonProperty("sourceType") private Mixpanel sourceType; /** - * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. + * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option + * is not set, the connector will replicate data from up to one year ago by default. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -131,11 +145,16 @@ public SourceMixpanel( public SourceMixpanel( AuthenticationWildcard credentials) { - this(Optional.empty(), credentials, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), credentials, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * A period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted. Default attribution window is 5 days. (This value should be non-negative integer) + * A period of time for attributing results to ads and the lookback period after those actions occur + * during which ad results are counted. Default attribution window is 5 days. (This value should be + * non-negative integer) */ @JsonIgnore public Optional attributionWindow() { @@ -151,7 +170,8 @@ public AuthenticationWildcard credentials() { } /** - * Defines window size in days, that used to slice through data. You can reduce it, if amount of data in each window is too big for your environment. (This value should be positive integer) + * Defines window size in days, that used to slice through data. You can reduce it, if amount of data + * in each window is too big for your environment. (This value should be positive integer) */ @JsonIgnore public Optional dateWindowSize() { @@ -159,7 +179,8 @@ public Optional dateWindowSize() { } /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date + * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to + * always sync to most recent date */ @JsonIgnore public Optional endDate() { @@ -167,7 +188,11 @@ public Optional endDate() { } /** - * The number of seconds to look back from the last synced timestamp during incremental syncs of the Export stream. This ensures no data is missed due to delays in event recording. Default is 0 seconds. Must be a non-negative integer. + * The number of seconds to look back from the last synced timestamp during incremental syncs of the + * Export stream. This ensures no data is missed due to delays in event recording. Default is 0 + * seconds. + * + *

    Must be a non-negative integer. */ @JsonIgnore public Optional exportLookbackWindow() { @@ -175,7 +200,8 @@ public Optional exportLookbackWindow() { } /** - * The number of records to fetch per request for the engage stream. Default is 1000. If you are experiencing long sync times with this stream, try increasing this value. + * The number of records to fetch per request for the engage stream. Default is 1000. If you are + * experiencing long sync times with this stream, try increasing this value. */ @JsonIgnore public Optional pageSize() { @@ -183,7 +209,10 @@ public Optional pageSize() { } /** - * Time zone in which integer date times are stored. The project timezone may be found in the project settings in the <a href="https://help.mixpanel.com/hc/en-us/articles/115004547203-Manage-Timezones-for-Projects-in-Mixpanel">Mixpanel console</a>. + * Time zone in which integer date times are stored. The project timezone may be found in the project + * settings in the Mixpanel + * console. */ @JsonIgnore public Optional projectTimezone() { @@ -200,7 +229,8 @@ public Optional region() { } /** - * Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored. + * Setting this config parameter to TRUE ensures that new properties on events and engage records are + * captured. Otherwise new properties will be ignored. */ @JsonIgnore public Optional selectPropertiesByDefault() { @@ -213,19 +243,23 @@ public Mixpanel sourceType() { } /** - * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. + * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option + * is not set, the connector will replicate data from up to one year ago by default. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * A period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted. Default attribution window is 5 days. (This value should be non-negative integer) + * A period of time for attributing results to ads and the lookback period after those actions occur + * during which ad results are counted. Default attribution window is 5 days. (This value should be + * non-negative integer) */ public SourceMixpanel withAttributionWindow(long attributionWindow) { Utils.checkNotNull(attributionWindow, "attributionWindow"); @@ -233,8 +267,11 @@ public SourceMixpanel withAttributionWindow(long attributionWindow) { return this; } + /** - * A period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted. Default attribution window is 5 days. (This value should be non-negative integer) + * A period of time for attributing results to ads and the lookback period after those actions occur + * during which ad results are counted. Default attribution window is 5 days. (This value should be + * non-negative integer) */ public SourceMixpanel withAttributionWindow(Optional attributionWindow) { Utils.checkNotNull(attributionWindow, "attributionWindow"); @@ -252,7 +289,8 @@ public SourceMixpanel withCredentials(AuthenticationWildcard credentials) { } /** - * Defines window size in days, that used to slice through data. You can reduce it, if amount of data in each window is too big for your environment. (This value should be positive integer) + * Defines window size in days, that used to slice through data. You can reduce it, if amount of data + * in each window is too big for your environment. (This value should be positive integer) */ public SourceMixpanel withDateWindowSize(long dateWindowSize) { Utils.checkNotNull(dateWindowSize, "dateWindowSize"); @@ -260,8 +298,10 @@ public SourceMixpanel withDateWindowSize(long dateWindowSize) { return this; } + /** - * Defines window size in days, that used to slice through data. You can reduce it, if amount of data in each window is too big for your environment. (This value should be positive integer) + * Defines window size in days, that used to slice through data. You can reduce it, if amount of data + * in each window is too big for your environment. (This value should be positive integer) */ public SourceMixpanel withDateWindowSize(Optional dateWindowSize) { Utils.checkNotNull(dateWindowSize, "dateWindowSize"); @@ -270,7 +310,8 @@ public SourceMixpanel withDateWindowSize(Optional dateWindowSize) { } /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date + * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to + * always sync to most recent date */ public SourceMixpanel withEndDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -278,8 +319,10 @@ public SourceMixpanel withEndDate(OffsetDateTime endDate) { return this; } + /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date + * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to + * always sync to most recent date */ public SourceMixpanel withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -288,7 +331,11 @@ public SourceMixpanel withEndDate(Optional endDate) { } /** - * The number of seconds to look back from the last synced timestamp during incremental syncs of the Export stream. This ensures no data is missed due to delays in event recording. Default is 0 seconds. Must be a non-negative integer. + * The number of seconds to look back from the last synced timestamp during incremental syncs of the + * Export stream. This ensures no data is missed due to delays in event recording. Default is 0 + * seconds. + * + *

    Must be a non-negative integer. */ public SourceMixpanel withExportLookbackWindow(long exportLookbackWindow) { Utils.checkNotNull(exportLookbackWindow, "exportLookbackWindow"); @@ -296,8 +343,13 @@ public SourceMixpanel withExportLookbackWindow(long exportLookbackWindow) { return this; } + /** - * The number of seconds to look back from the last synced timestamp during incremental syncs of the Export stream. This ensures no data is missed due to delays in event recording. Default is 0 seconds. Must be a non-negative integer. + * The number of seconds to look back from the last synced timestamp during incremental syncs of the + * Export stream. This ensures no data is missed due to delays in event recording. Default is 0 + * seconds. + * + *

    Must be a non-negative integer. */ public SourceMixpanel withExportLookbackWindow(Optional exportLookbackWindow) { Utils.checkNotNull(exportLookbackWindow, "exportLookbackWindow"); @@ -306,7 +358,8 @@ public SourceMixpanel withExportLookbackWindow(Optional exportLookbackWind } /** - * The number of records to fetch per request for the engage stream. Default is 1000. If you are experiencing long sync times with this stream, try increasing this value. + * The number of records to fetch per request for the engage stream. Default is 1000. If you are + * experiencing long sync times with this stream, try increasing this value. */ public SourceMixpanel withPageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -314,8 +367,10 @@ public SourceMixpanel withPageSize(long pageSize) { return this; } + /** - * The number of records to fetch per request for the engage stream. Default is 1000. If you are experiencing long sync times with this stream, try increasing this value. + * The number of records to fetch per request for the engage stream. Default is 1000. If you are + * experiencing long sync times with this stream, try increasing this value. */ public SourceMixpanel withPageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -324,7 +379,10 @@ public SourceMixpanel withPageSize(Optional pageSize) { } /** - * Time zone in which integer date times are stored. The project timezone may be found in the project settings in the <a href="https://help.mixpanel.com/hc/en-us/articles/115004547203-Manage-Timezones-for-Projects-in-Mixpanel">Mixpanel console</a>. + * Time zone in which integer date times are stored. The project timezone may be found in the project + * settings in the Mixpanel + * console. */ public SourceMixpanel withProjectTimezone(String projectTimezone) { Utils.checkNotNull(projectTimezone, "projectTimezone"); @@ -332,8 +390,12 @@ public SourceMixpanel withProjectTimezone(String projectTimezone) { return this; } + /** - * Time zone in which integer date times are stored. The project timezone may be found in the project settings in the <a href="https://help.mixpanel.com/hc/en-us/articles/115004547203-Manage-Timezones-for-Projects-in-Mixpanel">Mixpanel console</a>. + * Time zone in which integer date times are stored. The project timezone may be found in the project + * settings in the Mixpanel + * console. */ public SourceMixpanel withProjectTimezone(Optional projectTimezone) { Utils.checkNotNull(projectTimezone, "projectTimezone"); @@ -350,6 +412,7 @@ public SourceMixpanel withRegion(SourceMixpanelRegion region) { return this; } + /** * The region of mixpanel domain instance either US or EU. */ @@ -360,7 +423,8 @@ public SourceMixpanel withRegion(Optional region } /** - * Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored. + * Setting this config parameter to TRUE ensures that new properties on events and engage records are + * captured. Otherwise new properties will be ignored. */ public SourceMixpanel withSelectPropertiesByDefault(boolean selectPropertiesByDefault) { Utils.checkNotNull(selectPropertiesByDefault, "selectPropertiesByDefault"); @@ -368,8 +432,10 @@ public SourceMixpanel withSelectPropertiesByDefault(boolean selectPropertiesByDe return this; } + /** - * Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored. + * Setting this config parameter to TRUE ensures that new properties on events and engage records are + * captured. Otherwise new properties will be ignored. */ public SourceMixpanel withSelectPropertiesByDefault(Optional selectPropertiesByDefault) { Utils.checkNotNull(selectPropertiesByDefault, "selectPropertiesByDefault"); @@ -378,7 +444,8 @@ public SourceMixpanel withSelectPropertiesByDefault(Optional selectProp } /** - * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. + * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option + * is not set, the connector will replicate data from up to one year ago by default. */ public SourceMixpanel withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -386,8 +453,10 @@ public SourceMixpanel withStartDate(OffsetDateTime startDate) { return this; } + /** - * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. + * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option + * is not set, the connector will replicate data from up to one year ago by default. */ public SourceMixpanel withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -395,7 +464,6 @@ public SourceMixpanel withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -406,33 +474,26 @@ public boolean equals(java.lang.Object o) { } SourceMixpanel other = (SourceMixpanel) o; return - Objects.deepEquals(this.attributionWindow, other.attributionWindow) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.dateWindowSize, other.dateWindowSize) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.exportLookbackWindow, other.exportLookbackWindow) && - Objects.deepEquals(this.pageSize, other.pageSize) && - Objects.deepEquals(this.projectTimezone, other.projectTimezone) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.selectPropertiesByDefault, other.selectPropertiesByDefault) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.attributionWindow, other.attributionWindow) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.dateWindowSize, other.dateWindowSize) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.exportLookbackWindow, other.exportLookbackWindow) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.projectTimezone, other.projectTimezone) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.selectPropertiesByDefault, other.selectPropertiesByDefault) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - attributionWindow, - credentials, - dateWindowSize, - endDate, - exportLookbackWindow, - pageSize, - projectTimezone, - region, - selectPropertiesByDefault, - sourceType, - startDate); + return Utils.enhancedHash( + attributionWindow, credentials, dateWindowSize, + endDate, exportLookbackWindow, pageSize, + projectTimezone, region, selectPropertiesByDefault, + sourceType, startDate); } @Override @@ -450,35 +511,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional attributionWindow; - + private AuthenticationWildcard credentials; - + private Optional dateWindowSize; - + private Optional endDate = Optional.empty(); - + private Optional exportLookbackWindow; - + private Optional pageSize; - + private Optional projectTimezone; - + private Optional region; - + private Optional selectPropertiesByDefault; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * A period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted. Default attribution window is 5 days. (This value should be non-negative integer) + * A period of time for attributing results to ads and the lookback period after those actions occur + * during which ad results are counted. Default attribution window is 5 days. (This value should be + * non-negative integer) */ public Builder attributionWindow(long attributionWindow) { Utils.checkNotNull(attributionWindow, "attributionWindow"); @@ -487,7 +552,9 @@ public Builder attributionWindow(long attributionWindow) { } /** - * A period of time for attributing results to ads and the lookback period after those actions occur during which ad results are counted. Default attribution window is 5 days. (This value should be non-negative integer) + * A period of time for attributing results to ads and the lookback period after those actions occur + * during which ad results are counted. Default attribution window is 5 days. (This value should be + * non-negative integer) */ public Builder attributionWindow(Optional attributionWindow) { Utils.checkNotNull(attributionWindow, "attributionWindow"); @@ -495,6 +562,7 @@ public Builder attributionWindow(Optional attributionWindow) { return this; } + /** * Choose how to authenticate to Mixpanel */ @@ -504,8 +572,10 @@ public Builder credentials(AuthenticationWildcard credentials) { return this; } + /** - * Defines window size in days, that used to slice through data. You can reduce it, if amount of data in each window is too big for your environment. (This value should be positive integer) + * Defines window size in days, that used to slice through data. You can reduce it, if amount of data + * in each window is too big for your environment. (This value should be positive integer) */ public Builder dateWindowSize(long dateWindowSize) { Utils.checkNotNull(dateWindowSize, "dateWindowSize"); @@ -514,7 +584,8 @@ public Builder dateWindowSize(long dateWindowSize) { } /** - * Defines window size in days, that used to slice through data. You can reduce it, if amount of data in each window is too big for your environment. (This value should be positive integer) + * Defines window size in days, that used to slice through data. You can reduce it, if amount of data + * in each window is too big for your environment. (This value should be positive integer) */ public Builder dateWindowSize(Optional dateWindowSize) { Utils.checkNotNull(dateWindowSize, "dateWindowSize"); @@ -522,8 +593,10 @@ public Builder dateWindowSize(Optional dateWindowSize) { return this; } + /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date + * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to + * always sync to most recent date */ public Builder endDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -532,7 +605,8 @@ public Builder endDate(OffsetDateTime endDate) { } /** - * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to always sync to most recent date + * The date in the format YYYY-MM-DD. Any data after this date will not be replicated. Left empty to + * always sync to most recent date */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -540,8 +614,13 @@ public Builder endDate(Optional endDate) { return this; } + /** - * The number of seconds to look back from the last synced timestamp during incremental syncs of the Export stream. This ensures no data is missed due to delays in event recording. Default is 0 seconds. Must be a non-negative integer. + * The number of seconds to look back from the last synced timestamp during incremental syncs of the + * Export stream. This ensures no data is missed due to delays in event recording. Default is 0 + * seconds. + * + *

    Must be a non-negative integer. */ public Builder exportLookbackWindow(long exportLookbackWindow) { Utils.checkNotNull(exportLookbackWindow, "exportLookbackWindow"); @@ -550,7 +629,11 @@ public Builder exportLookbackWindow(long exportLookbackWindow) { } /** - * The number of seconds to look back from the last synced timestamp during incremental syncs of the Export stream. This ensures no data is missed due to delays in event recording. Default is 0 seconds. Must be a non-negative integer. + * The number of seconds to look back from the last synced timestamp during incremental syncs of the + * Export stream. This ensures no data is missed due to delays in event recording. Default is 0 + * seconds. + * + *

    Must be a non-negative integer. */ public Builder exportLookbackWindow(Optional exportLookbackWindow) { Utils.checkNotNull(exportLookbackWindow, "exportLookbackWindow"); @@ -558,8 +641,10 @@ public Builder exportLookbackWindow(Optional exportLookbackWindow) { return this; } + /** - * The number of records to fetch per request for the engage stream. Default is 1000. If you are experiencing long sync times with this stream, try increasing this value. + * The number of records to fetch per request for the engage stream. Default is 1000. If you are + * experiencing long sync times with this stream, try increasing this value. */ public Builder pageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -568,7 +653,8 @@ public Builder pageSize(long pageSize) { } /** - * The number of records to fetch per request for the engage stream. Default is 1000. If you are experiencing long sync times with this stream, try increasing this value. + * The number of records to fetch per request for the engage stream. Default is 1000. If you are + * experiencing long sync times with this stream, try increasing this value. */ public Builder pageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -576,8 +662,12 @@ public Builder pageSize(Optional pageSize) { return this; } + /** - * Time zone in which integer date times are stored. The project timezone may be found in the project settings in the <a href="https://help.mixpanel.com/hc/en-us/articles/115004547203-Manage-Timezones-for-Projects-in-Mixpanel">Mixpanel console</a>. + * Time zone in which integer date times are stored. The project timezone may be found in the project + * settings in the Mixpanel + * console. */ public Builder projectTimezone(String projectTimezone) { Utils.checkNotNull(projectTimezone, "projectTimezone"); @@ -586,7 +676,10 @@ public Builder projectTimezone(String projectTimezone) { } /** - * Time zone in which integer date times are stored. The project timezone may be found in the project settings in the <a href="https://help.mixpanel.com/hc/en-us/articles/115004547203-Manage-Timezones-for-Projects-in-Mixpanel">Mixpanel console</a>. + * Time zone in which integer date times are stored. The project timezone may be found in the project + * settings in the Mixpanel + * console. */ public Builder projectTimezone(Optional projectTimezone) { Utils.checkNotNull(projectTimezone, "projectTimezone"); @@ -594,6 +687,7 @@ public Builder projectTimezone(Optional projectTimezone) { return this; } + /** * The region of mixpanel domain instance either US or EU. */ @@ -612,8 +706,10 @@ public Builder region(Optional region) { return this; } + /** - * Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored. + * Setting this config parameter to TRUE ensures that new properties on events and engage records are + * captured. Otherwise new properties will be ignored. */ public Builder selectPropertiesByDefault(boolean selectPropertiesByDefault) { Utils.checkNotNull(selectPropertiesByDefault, "selectPropertiesByDefault"); @@ -622,7 +718,8 @@ public Builder selectPropertiesByDefault(boolean selectPropertiesByDefault) { } /** - * Setting this config parameter to TRUE ensures that new properties on events and engage records are captured. Otherwise new properties will be ignored. + * Setting this config parameter to TRUE ensures that new properties on events and engage records are + * captured. Otherwise new properties will be ignored. */ public Builder selectPropertiesByDefault(Optional selectPropertiesByDefault) { Utils.checkNotNull(selectPropertiesByDefault, "selectPropertiesByDefault"); @@ -630,8 +727,10 @@ public Builder selectPropertiesByDefault(Optional selectPropertiesByDef return this; } + /** - * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. + * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option + * is not set, the connector will replicate data from up to one year ago by default. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -640,14 +739,15 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option is not set, the connector will replicate data from up to one year ago by default. + * The date in the format YYYY-MM-DD. Any data before this date will not be replicated. If this option + * is not set, the connector will replicate data from up to one year ago by default. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceMixpanel build() { if (attributionWindow == null) { attributionWindow = _SINGLETON_VALUE_AttributionWindow.value(); @@ -670,19 +770,15 @@ public SourceMixpanel build() { if (selectPropertiesByDefault == null) { selectPropertiesByDefault = _SINGLETON_VALUE_SelectPropertiesByDefault.value(); } + return new SourceMixpanel( - attributionWindow, - credentials, - dateWindowSize, - endDate, - exportLookbackWindow, - pageSize, - projectTimezone, - region, - selectPropertiesByDefault, + attributionWindow, credentials, dateWindowSize, + endDate, exportLookbackWindow, pageSize, + projectTimezone, region, selectPropertiesByDefault, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AttributionWindow = new LazySingletonValue<>( "attribution_window", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java index 6b70f26d9..665ee01f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelOptionTitle.java @@ -14,7 +14,7 @@ public enum SourceMixpanelOptionTitle { @JsonValue private final String value; - private SourceMixpanelOptionTitle(String value) { + SourceMixpanelOptionTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java index eccee2dba..cbdcb4f42 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelRegion.java @@ -20,7 +20,7 @@ public enum SourceMixpanelRegion { @JsonValue private final String value; - private SourceMixpanelRegion(String value) { + SourceMixpanelRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java index 8a5119e3f..8d9e949cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMixpanelSchemasOptionTitle.java @@ -14,7 +14,7 @@ public enum SourceMixpanelSchemasOptionTitle { @JsonValue private final String value; - private SourceMixpanelSchemasOptionTitle(String value) { + SourceMixpanelSchemasOptionTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMode.java index 7c3169fe7..4ab53b86e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMode.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceMode { +public class SourceMode { /** * API secret to use as the password for Basic Authentication. */ @@ -27,9 +26,11 @@ public class SourceMode { @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private SourceModeMode sourceType; + @JsonProperty("workspace") private String workspace; @@ -73,9 +74,10 @@ public String workspace() { return workspace; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API secret to use as the password for Basic Authentication. @@ -101,7 +103,6 @@ public SourceMode withWorkspace(String workspace) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -112,18 +113,16 @@ public boolean equals(java.lang.Object o) { } SourceMode other = (SourceMode) o; return - Objects.deepEquals(this.apiSecret, other.apiSecret) && - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.workspace, other.workspace); + Utils.enhancedDeepEquals(this.apiSecret, other.apiSecret) && + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.workspace, other.workspace); } @Override public int hashCode() { - return Objects.hash( - apiSecret, - apiToken, - sourceType, + return Utils.enhancedHash( + apiSecret, apiToken, sourceType, workspace); } @@ -135,19 +134,21 @@ public String toString() { "sourceType", sourceType, "workspace", workspace); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiSecret; - + private String apiToken; - + private String workspace; - + private Builder() { // force use of static builder() method } + /** * API secret to use as the password for Basic Authentication. */ @@ -157,6 +158,7 @@ public Builder apiSecret(String apiSecret) { return this; } + /** * API token to use as the username for Basic Authentication. */ @@ -166,19 +168,20 @@ public Builder apiToken(String apiToken) { return this; } + public Builder workspace(String workspace) { Utils.checkNotNull(workspace, "workspace"); this.workspace = workspace; return this; } - + public SourceMode build() { + return new SourceMode( - apiSecret, - apiToken, - workspace); + apiSecret, apiToken, workspace); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceModeMode.java b/src/main/java/com/airbyte/api/models/shared/SourceModeMode.java index 300264380..c406eb1bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceModeMode.java @@ -14,7 +14,7 @@ public enum SourceModeMode { @JsonValue private final String value; - private SourceModeMode(String value) { + SourceModeMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMonday.java b/src/main/java/com/airbyte/api/models/shared/SourceMonday.java index b674859c9..2bdbcf191 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMonday.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMonday.java @@ -16,18 +16,19 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceMonday { +public class SourceMonday { /** - * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, streams will extract records from all boards that exist within the account. + * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, + * streams will extract records from all boards that exist within the account. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("board_ids") private Optional> boardIds; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; @@ -39,6 +40,7 @@ public class SourceMonday { @JsonProperty("num_workers") private Optional numWorkers; + @JsonProperty("sourceType") private SourceMondayMonday sourceType; @@ -61,7 +63,8 @@ public SourceMonday() { } /** - * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, streams will extract records from all boards that exist within the account. + * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, + * streams will extract records from all boards that exist within the account. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -88,12 +91,14 @@ public SourceMondayMonday sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, streams will extract records from all boards that exist within the account. + * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, + * streams will extract records from all boards that exist within the account. */ public SourceMonday withBoardIds(List boardIds) { Utils.checkNotNull(boardIds, "boardIds"); @@ -101,8 +106,10 @@ public SourceMonday withBoardIds(List boardIds) { return this; } + /** - * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, streams will extract records from all boards that exist within the account. + * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, + * streams will extract records from all boards that exist within the account. */ public SourceMonday withBoardIds(Optional> boardIds) { Utils.checkNotNull(boardIds, "boardIds"); @@ -116,6 +123,7 @@ public SourceMonday withCredentials(SourceMondayAuthorizationMethod credentials) return this; } + public SourceMonday withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -131,6 +139,7 @@ public SourceMonday withNumWorkers(long numWorkers) { return this; } + /** * The number of worker threads to use for the sync. */ @@ -140,7 +149,6 @@ public SourceMonday withNumWorkers(Optional numWorkers) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -151,18 +159,16 @@ public boolean equals(java.lang.Object o) { } SourceMonday other = (SourceMonday) o; return - Objects.deepEquals(this.boardIds, other.boardIds) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.numWorkers, other.numWorkers) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.boardIds, other.boardIds) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - boardIds, - credentials, - numWorkers, + return Utils.enhancedHash( + boardIds, credentials, numWorkers, sourceType); } @@ -174,21 +180,24 @@ public String toString() { "numWorkers", numWorkers, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> boardIds = Optional.empty(); - + private Optional credentials = Optional.empty(); - + private Optional numWorkers; - + private Builder() { // force use of static builder() method } + /** - * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, streams will extract records from all boards that exist within the account. + * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, + * streams will extract records from all boards that exist within the account. */ public Builder boardIds(List boardIds) { Utils.checkNotNull(boardIds, "boardIds"); @@ -197,7 +206,8 @@ public Builder boardIds(List boardIds) { } /** - * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, streams will extract records from all boards that exist within the account. + * The IDs of the boards that the Items and Boards streams will extract records from. When left empty, + * streams will extract records from all boards that exist within the account. */ public Builder boardIds(Optional> boardIds) { Utils.checkNotNull(boardIds, "boardIds"); @@ -205,6 +215,7 @@ public Builder boardIds(Optional> boardIds) { return this; } + public Builder credentials(SourceMondayAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -217,6 +228,7 @@ public Builder credentials(Optional c return this; } + /** * The number of worker threads to use for the sync. */ @@ -234,17 +246,17 @@ public Builder numWorkers(Optional numWorkers) { this.numWorkers = numWorkers; return this; } - + public SourceMonday build() { if (numWorkers == null) { numWorkers = _SINGLETON_VALUE_NumWorkers.value(); } + return new SourceMonday( - boardIds, - credentials, - numWorkers); + boardIds, credentials, numWorkers); } + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = new LazySingletonValue<>( "num_workers", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java index 3c7ff974a..22dad8ef3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthType.java @@ -14,7 +14,7 @@ public enum SourceMondayAuthType { @JsonValue private final String value; - private SourceMondayAuthType(String value) { + SourceMondayAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthorizationMethod.java index 279896fcb..fecdbaa89 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondayAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceMondayAuthorizationMethod._Deserializer.class) public class SourceMondayAuthorizationMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMondayAuthorizationMethod other = (SourceMondayAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java b/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java index 4afe29590..9b2b9ef35 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondayMonday.java @@ -14,7 +14,7 @@ public enum SourceMondayMonday { @JsonValue private final String value; - private SourceMondayMonday(String value) { + SourceMondayMonday(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMondayOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceMondayOAuth20.java index 461da79f1..d5ea60dce 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondayOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondayOAuth20.java @@ -13,17 +13,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceMondayOAuth20 { +public class SourceMondayOAuth20 { /** * Access Token for making authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("auth_type") private SourceMondayAuthType authType; @@ -67,7 +67,8 @@ public SourceMondayOAuth20( String accessToken, String clientId, String clientSecret) { - this(accessToken, clientId, clientSecret, Optional.empty()); + this(accessToken, clientId, clientSecret, + Optional.empty()); } /** @@ -107,9 +108,10 @@ public Optional subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -147,6 +149,7 @@ public SourceMondayOAuth20 withSubdomain(String subdomain) { return this; } + /** * Slug/subdomain of the account, or the first part of the URL that comes before .monday.com */ @@ -156,7 +159,6 @@ public SourceMondayOAuth20 withSubdomain(Optional subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -167,21 +169,18 @@ public boolean equals(java.lang.Object o) { } SourceMondayOAuth20 other = (SourceMondayOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - subdomain); + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, subdomain); } @Override @@ -193,21 +192,23 @@ public String toString() { "clientSecret", clientSecret, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private Optional subdomain; - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -217,6 +218,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Client ID of your OAuth application. */ @@ -226,6 +228,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -235,6 +238,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Slug/subdomain of the account, or the first part of the URL that comes before .monday.com */ @@ -252,18 +256,18 @@ public Builder subdomain(Optional subdomain) { this.subdomain = subdomain; return this; } - + public SourceMondayOAuth20 build() { if (subdomain == null) { subdomain = _SINGLETON_VALUE_Subdomain.value(); } + return new SourceMondayOAuth20( - accessToken, - clientId, - clientSecret, + accessToken, clientId, clientSecret, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java index 44409ac20..533c4aa25 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMondaySchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceMondaySchemasAuthType { @JsonValue private final String value; - private SourceMondaySchemasAuthType(String value) { + SourceMondaySchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2.java b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2.java index 8961f2057..0c6e78f75 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceMongodbV2 { +public class SourceMongodbV2 { /** * Configures the MongoDB cluster type. */ @@ -27,12 +26,21 @@ public class SourceMongodbV2 { private ClusterType databaseConfig; /** - * The maximum number of documents to sample when attempting to discover the unique fields for a collection. + * The maximum number of documents to sample when attempting to discover the unique fields for a + * collection. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("discover_sample_size") private Optional discoverSampleSize; + /** + * The amount of time the connector will wait when it discovers a document. Defaults to 600 seconds. + * Valid range: 5 seconds to 1200 seconds. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("discover_timeout_seconds") + private Optional discoverTimeoutSeconds; + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -41,31 +49,43 @@ public class SourceMongodbV2 { private Optional initialLoadTimeoutHours; /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("initial_waiting_seconds") private Optional initialWaitingSeconds; /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("invalid_cdc_cursor_position_behavior") private Optional invalidCdcCursorPositionBehavior; /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("queue_size") private Optional queueSize; + @JsonProperty("sourceType") private MongodbV2 sourceType; /** - * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current value of the document will be read. If 'Post Image' is chosen, then the version of the document immediately after an update will be read. WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not set on your Mongo instance : https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. + * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current + * value of the document will be read. If 'Post Image' is chosen, then the version of the document + * immediately after an update will be read. + * + *

    WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not + * set on your Mongo instance : + * https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("update_capture_mode") @@ -75,6 +95,7 @@ public class SourceMongodbV2 { public SourceMongodbV2( @JsonProperty("database_config") ClusterType databaseConfig, @JsonProperty("discover_sample_size") Optional discoverSampleSize, + @JsonProperty("discover_timeout_seconds") Optional discoverTimeoutSeconds, @JsonProperty("initial_load_timeout_hours") Optional initialLoadTimeoutHours, @JsonProperty("initial_waiting_seconds") Optional initialWaitingSeconds, @JsonProperty("invalid_cdc_cursor_position_behavior") Optional invalidCdcCursorPositionBehavior, @@ -82,6 +103,7 @@ public SourceMongodbV2( @JsonProperty("update_capture_mode") Optional updateCaptureMode) { Utils.checkNotNull(databaseConfig, "databaseConfig"); Utils.checkNotNull(discoverSampleSize, "discoverSampleSize"); + Utils.checkNotNull(discoverTimeoutSeconds, "discoverTimeoutSeconds"); Utils.checkNotNull(initialLoadTimeoutHours, "initialLoadTimeoutHours"); Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -89,6 +111,7 @@ public SourceMongodbV2( Utils.checkNotNull(updateCaptureMode, "updateCaptureMode"); this.databaseConfig = databaseConfig; this.discoverSampleSize = discoverSampleSize; + this.discoverTimeoutSeconds = discoverTimeoutSeconds; this.initialLoadTimeoutHours = initialLoadTimeoutHours; this.initialWaitingSeconds = initialWaitingSeconds; this.invalidCdcCursorPositionBehavior = invalidCdcCursorPositionBehavior; @@ -99,7 +122,9 @@ public SourceMongodbV2( public SourceMongodbV2( ClusterType databaseConfig) { - this(databaseConfig, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(databaseConfig, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -111,13 +136,23 @@ public ClusterType databaseConfig() { } /** - * The maximum number of documents to sample when attempting to discover the unique fields for a collection. + * The maximum number of documents to sample when attempting to discover the unique fields for a + * collection. */ @JsonIgnore public Optional discoverSampleSize() { return discoverSampleSize; } + /** + * The amount of time the connector will wait when it discovers a document. Defaults to 600 seconds. + * Valid range: 5 seconds to 1200 seconds. + */ + @JsonIgnore + public Optional discoverTimeoutSeconds() { + return discoverTimeoutSeconds; + } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -127,7 +162,8 @@ public Optional initialLoadTimeoutHours() { } /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. */ @JsonIgnore public Optional initialWaitingSeconds() { @@ -135,7 +171,10 @@ public Optional initialWaitingSeconds() { } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -144,7 +183,8 @@ public Optional invalidCdcCursorPositionBeha } /** - * The size of the internal queue. This may interfere with memory consumption and efficiency of the connector, please be careful. + * The size of the internal queue. This may interfere with memory consumption and efficiency of the + * connector, please be careful. */ @JsonIgnore public Optional queueSize() { @@ -157,7 +197,13 @@ public MongodbV2 sourceType() { } /** - * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current value of the document will be read. If 'Post Image' is chosen, then the version of the document immediately after an update will be read. WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not set on your Mongo instance : https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. + * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current + * value of the document will be read. If 'Post Image' is chosen, then the version of the document + * immediately after an update will be read. + * + *

    WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not + * set on your Mongo instance : + * https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -165,9 +211,10 @@ public Optional updateCaptureMode() { return (Optional) updateCaptureMode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Configures the MongoDB cluster type. @@ -179,7 +226,8 @@ public SourceMongodbV2 withDatabaseConfig(ClusterType databaseConfig) { } /** - * The maximum number of documents to sample when attempting to discover the unique fields for a collection. + * The maximum number of documents to sample when attempting to discover the unique fields for a + * collection. */ public SourceMongodbV2 withDiscoverSampleSize(long discoverSampleSize) { Utils.checkNotNull(discoverSampleSize, "discoverSampleSize"); @@ -187,8 +235,10 @@ public SourceMongodbV2 withDiscoverSampleSize(long discoverSampleSize) { return this; } + /** - * The maximum number of documents to sample when attempting to discover the unique fields for a collection. + * The maximum number of documents to sample when attempting to discover the unique fields for a + * collection. */ public SourceMongodbV2 withDiscoverSampleSize(Optional discoverSampleSize) { Utils.checkNotNull(discoverSampleSize, "discoverSampleSize"); @@ -196,6 +246,27 @@ public SourceMongodbV2 withDiscoverSampleSize(Optional discoverSampleSize) return this; } + /** + * The amount of time the connector will wait when it discovers a document. Defaults to 600 seconds. + * Valid range: 5 seconds to 1200 seconds. + */ + public SourceMongodbV2 withDiscoverTimeoutSeconds(long discoverTimeoutSeconds) { + Utils.checkNotNull(discoverTimeoutSeconds, "discoverTimeoutSeconds"); + this.discoverTimeoutSeconds = Optional.ofNullable(discoverTimeoutSeconds); + return this; + } + + + /** + * The amount of time the connector will wait when it discovers a document. Defaults to 600 seconds. + * Valid range: 5 seconds to 1200 seconds. + */ + public SourceMongodbV2 withDiscoverTimeoutSeconds(Optional discoverTimeoutSeconds) { + Utils.checkNotNull(discoverTimeoutSeconds, "discoverTimeoutSeconds"); + this.discoverTimeoutSeconds = discoverTimeoutSeconds; + return this; + } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -205,6 +276,7 @@ public SourceMongodbV2 withInitialLoadTimeoutHours(long initialLoadTimeoutHours) return this; } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -215,7 +287,8 @@ public SourceMongodbV2 withInitialLoadTimeoutHours(Optional initialLoadTim } /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. */ public SourceMongodbV2 withInitialWaitingSeconds(long initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -223,8 +296,10 @@ public SourceMongodbV2 withInitialWaitingSeconds(long initialWaitingSeconds) { return this; } + /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. */ public SourceMongodbV2 withInitialWaitingSeconds(Optional initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -233,7 +308,10 @@ public SourceMongodbV2 withInitialWaitingSeconds(Optional initialWaitingSe } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public SourceMongodbV2 withInvalidCdcCursorPositionBehavior(InvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -241,8 +319,12 @@ public SourceMongodbV2 withInvalidCdcCursorPositionBehavior(InvalidCDCPositionBe return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public SourceMongodbV2 withInvalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -251,7 +333,8 @@ public SourceMongodbV2 withInvalidCdcCursorPositionBehavior(Optional queueSize) { Utils.checkNotNull(queueSize, "queueSize"); @@ -269,7 +354,13 @@ public SourceMongodbV2 withQueueSize(Optional queueSize) { } /** - * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current value of the document will be read. If 'Post Image' is chosen, then the version of the document immediately after an update will be read. WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not set on your Mongo instance : https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. + * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current + * value of the document will be read. If 'Post Image' is chosen, then the version of the document + * immediately after an update will be read. + * + *

    WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not + * set on your Mongo instance : + * https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. */ public SourceMongodbV2 withUpdateCaptureMode(CaptureModeAdvanced updateCaptureMode) { Utils.checkNotNull(updateCaptureMode, "updateCaptureMode"); @@ -277,8 +368,15 @@ public SourceMongodbV2 withUpdateCaptureMode(CaptureModeAdvanced updateCaptureMo return this; } + /** - * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current value of the document will be read. If 'Post Image' is chosen, then the version of the document immediately after an update will be read. WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not set on your Mongo instance : https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. + * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current + * value of the document will be read. If 'Post Image' is chosen, then the version of the document + * immediately after an update will be read. + * + *

    WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not + * set on your Mongo instance : + * https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. */ public SourceMongodbV2 withUpdateCaptureMode(Optional updateCaptureMode) { Utils.checkNotNull(updateCaptureMode, "updateCaptureMode"); @@ -286,7 +384,6 @@ public SourceMongodbV2 withUpdateCaptureMode(Optional discoverSampleSize; - + + private Optional discoverTimeoutSeconds; + private Optional initialLoadTimeoutHours; - + private Optional initialWaitingSeconds; - + private Optional invalidCdcCursorPositionBehavior; - + private Optional queueSize; - + private Optional updateCaptureMode; - + private Builder() { // force use of static builder() method } + /** * Configures the MongoDB cluster type. */ @@ -362,8 +460,10 @@ public Builder databaseConfig(ClusterType databaseConfig) { return this; } + /** - * The maximum number of documents to sample when attempting to discover the unique fields for a collection. + * The maximum number of documents to sample when attempting to discover the unique fields for a + * collection. */ public Builder discoverSampleSize(long discoverSampleSize) { Utils.checkNotNull(discoverSampleSize, "discoverSampleSize"); @@ -372,7 +472,8 @@ public Builder discoverSampleSize(long discoverSampleSize) { } /** - * The maximum number of documents to sample when attempting to discover the unique fields for a collection. + * The maximum number of documents to sample when attempting to discover the unique fields for a + * collection. */ public Builder discoverSampleSize(Optional discoverSampleSize) { Utils.checkNotNull(discoverSampleSize, "discoverSampleSize"); @@ -380,6 +481,28 @@ public Builder discoverSampleSize(Optional discoverSampleSize) { return this; } + + /** + * The amount of time the connector will wait when it discovers a document. Defaults to 600 seconds. + * Valid range: 5 seconds to 1200 seconds. + */ + public Builder discoverTimeoutSeconds(long discoverTimeoutSeconds) { + Utils.checkNotNull(discoverTimeoutSeconds, "discoverTimeoutSeconds"); + this.discoverTimeoutSeconds = Optional.ofNullable(discoverTimeoutSeconds); + return this; + } + + /** + * The amount of time the connector will wait when it discovers a document. Defaults to 600 seconds. + * Valid range: 5 seconds to 1200 seconds. + */ + public Builder discoverTimeoutSeconds(Optional discoverTimeoutSeconds) { + Utils.checkNotNull(discoverTimeoutSeconds, "discoverTimeoutSeconds"); + this.discoverTimeoutSeconds = discoverTimeoutSeconds; + return this; + } + + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -398,8 +521,10 @@ public Builder initialLoadTimeoutHours(Optional initialLoadTimeoutHours) { return this; } + /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. */ public Builder initialWaitingSeconds(long initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -408,7 +533,8 @@ public Builder initialWaitingSeconds(long initialWaitingSeconds) { } /** - * The amount of time the connector will wait when it launches to determine if there is new data to sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. + * The amount of time the connector will wait when it launches to determine if there is new data to + * sync or not. Defaults to 300 seconds. Valid range: 120 seconds to 1200 seconds. */ public Builder initialWaitingSeconds(Optional initialWaitingSeconds) { Utils.checkNotNull(initialWaitingSeconds, "initialWaitingSeconds"); @@ -416,8 +542,12 @@ public Builder initialWaitingSeconds(Optional initialWaitingSeconds) { return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(InvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -426,7 +556,10 @@ public Builder invalidCdcCursorPositionBehavior(InvalidCDCPositionBehaviorAdvanc } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -434,8 +567,10 @@ public Builder invalidCdcCursorPositionBehavior(Optional queueSize) { Utils.checkNotNull(queueSize, "queueSize"); @@ -452,8 +588,15 @@ public Builder queueSize(Optional queueSize) { return this; } + /** - * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current value of the document will be read. If 'Post Image' is chosen, then the version of the document immediately after an update will be read. WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not set on your Mongo instance : https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. + * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current + * value of the document will be read. If 'Post Image' is chosen, then the version of the document + * immediately after an update will be read. + * + *

    WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not + * set on your Mongo instance : + * https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. */ public Builder updateCaptureMode(CaptureModeAdvanced updateCaptureMode) { Utils.checkNotNull(updateCaptureMode, "updateCaptureMode"); @@ -462,18 +605,27 @@ public Builder updateCaptureMode(CaptureModeAdvanced updateCaptureMode) { } /** - * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current value of the document will be read. If 'Post Image' is chosen, then the version of the document immediately after an update will be read. WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not set on your Mongo instance : https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. + * Determines how Airbyte looks up the value of an updated document. If 'Lookup' is chosen, the current + * value of the document will be read. If 'Post Image' is chosen, then the version of the document + * immediately after an update will be read. + * + *

    WARNING : Severe data loss will occur if this option is chosen and the appropriate settings are not + * set on your Mongo instance : + * https://www.mongodb.com/docs/manual/changeStreams/#change-streams-with-document-pre-and-post-images. */ public Builder updateCaptureMode(Optional updateCaptureMode) { Utils.checkNotNull(updateCaptureMode, "updateCaptureMode"); this.updateCaptureMode = updateCaptureMode; return this; } - + public SourceMongodbV2 build() { if (discoverSampleSize == null) { discoverSampleSize = _SINGLETON_VALUE_DiscoverSampleSize.value(); } + if (discoverTimeoutSeconds == null) { + discoverTimeoutSeconds = _SINGLETON_VALUE_DiscoverTimeoutSeconds.value(); + } if (initialLoadTimeoutHours == null) { initialLoadTimeoutHours = _SINGLETON_VALUE_InitialLoadTimeoutHours.value(); } @@ -489,22 +641,26 @@ public SourceMongodbV2 build() { if (updateCaptureMode == null) { updateCaptureMode = _SINGLETON_VALUE_UpdateCaptureMode.value(); } + return new SourceMongodbV2( - databaseConfig, - discoverSampleSize, - initialLoadTimeoutHours, - initialWaitingSeconds, - invalidCdcCursorPositionBehavior, - queueSize, - updateCaptureMode); + databaseConfig, discoverSampleSize, discoverTimeoutSeconds, + initialLoadTimeoutHours, initialWaitingSeconds, invalidCdcCursorPositionBehavior, + queueSize, updateCaptureMode); } + private static final LazySingletonValue> _SINGLETON_VALUE_DiscoverSampleSize = new LazySingletonValue<>( "discover_sample_size", "10000", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_DiscoverTimeoutSeconds = + new LazySingletonValue<>( + "discover_timeout_seconds", + "600", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_InitialLoadTimeoutHours = new LazySingletonValue<>( "initial_load_timeout_hours", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java index f44141b29..059f06930 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2ClusterType.java @@ -14,7 +14,7 @@ public enum SourceMongodbV2ClusterType { @JsonValue private final String value; - private SourceMongodbV2ClusterType(String value) { + SourceMongodbV2ClusterType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2SchemasClusterType.java b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2SchemasClusterType.java index 8dd721c90..d43f49564 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2SchemasClusterType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMongodbV2SchemasClusterType.java @@ -14,7 +14,7 @@ public enum SourceMongodbV2SchemasClusterType { @JsonValue private final String value; - private SourceMongodbV2SchemasClusterType(String value) { + SourceMongodbV2SchemasClusterType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssql.java b/src/main/java/com/airbyte/api/models/shared/SourceMssql.java index 42d1c445a..1e4204ad1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssql.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssql.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceMssql { +public class SourceMssql { /** * The name of the database. */ @@ -34,7 +33,9 @@ public class SourceMssql { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -66,6 +67,7 @@ public class SourceMssql { @JsonProperty("schemas") private Optional> schemas; + @JsonProperty("sourceType") private SourceMssqlMssql sourceType; @@ -77,7 +79,8 @@ public class SourceMssql { private Optional sslMethod; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -130,7 +133,10 @@ public SourceMssql( String password, long port, String username) { - this(database, host, Optional.empty(), password, port, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + this(database, host, Optional.empty(), + password, port, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + username); } /** @@ -150,7 +156,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -206,7 +214,8 @@ public Optional sslMethod() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -222,9 +231,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The name of the database. @@ -245,7 +255,9 @@ public SourceMssql withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceMssql withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -253,8 +265,11 @@ public SourceMssql withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceMssql withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -289,6 +304,7 @@ public SourceMssql withReplicationMethod(UpdateMethod replicationMethod) { return this; } + /** * Configures how data is extracted from the database. */ @@ -307,6 +323,7 @@ public SourceMssql withSchemas(List schemas) { return this; } + /** * The list of schemas to sync from. Defaults to user. Case sensitive. */ @@ -325,6 +342,7 @@ public SourceMssql withSslMethod(SourceMssqlSSLMethod sslMethod) { return this; } + /** * The encryption method which is used when communicating with the database. */ @@ -335,7 +353,8 @@ public SourceMssql withSslMethod(Optional sslMet } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceMssql withTunnelMethod(SourceMssqlSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -343,8 +362,10 @@ public SourceMssql withTunnelMethod(SourceMssqlSSHTunnelMethod tunnelMethod) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceMssql withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -361,7 +382,6 @@ public SourceMssql withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -372,33 +392,26 @@ public boolean equals(java.lang.Object o) { } SourceMssql other = (SourceMssql) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.replicationMethod, other.replicationMethod) && - Objects.deepEquals(this.schemas, other.schemas) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.sslMethod, other.sslMethod) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.replicationMethod, other.replicationMethod) && + Utils.enhancedDeepEquals(this.schemas, other.schemas) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.sslMethod, other.sslMethod) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - database, - host, - jdbcUrlParams, - password, - port, - replicationMethod, - schemas, - sourceType, - sslMethod, - tunnelMethod, - username); + return Utils.enhancedHash( + database, host, jdbcUrlParams, + password, port, replicationMethod, + schemas, sourceType, sslMethod, + tunnelMethod, username); } @Override @@ -416,33 +429,35 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String database; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private String password; - + private Long port; - + private Optional replicationMethod = Optional.empty(); - + private Optional> schemas = Optional.empty(); - + private Optional sslMethod = Optional.empty(); - + private Optional tunnelMethod = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * The name of the database. */ @@ -452,6 +467,7 @@ public Builder database(String database) { return this; } + /** * The hostname of the database. */ @@ -461,8 +477,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -471,7 +490,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -479,6 +500,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * The password associated with the username. */ @@ -488,6 +510,7 @@ public Builder password(String password) { return this; } + /** * The port of the database. */ @@ -497,6 +520,7 @@ public Builder port(long port) { return this; } + /** * Configures how data is extracted from the database. */ @@ -515,6 +539,7 @@ public Builder replicationMethod(Optional replicationMet return this; } + /** * The list of schemas to sync from. Defaults to user. Case sensitive. */ @@ -533,6 +558,7 @@ public Builder schemas(Optional> schemas) { return this; } + /** * The encryption method which is used when communicating with the database. */ @@ -551,8 +577,10 @@ public Builder sslMethod(Optional sslMethod) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(SourceMssqlSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -561,7 +589,8 @@ public Builder tunnelMethod(SourceMssqlSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -569,6 +598,7 @@ public Builder tunnelMethod(Optional tunne return this; } + /** * The username which is used to access the database. */ @@ -577,21 +607,17 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceMssql build() { + return new SourceMssql( - database, - host, - jdbcUrlParams, - password, - port, - replicationMethod, - schemas, - sslMethod, - tunnelMethod, + database, host, jdbcUrlParams, + password, port, replicationMethod, + schemas, sslMethod, tunnelMethod, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedTrustServerCertificate.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedTrustServerCertificate.java index ce992580b..f8ba13265 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedTrustServerCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedTrustServerCertificate.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * SourceMssqlEncryptedTrustServerCertificate @@ -25,7 +24,6 @@ public class SourceMssqlEncryptedTrustServerCertificate { @JsonCreator public SourceMssqlEncryptedTrustServerCertificate() { - this.sslMethod = Builder._SINGLETON_VALUE_SslMethod.value(); } @@ -34,11 +32,11 @@ public SourceMssqlSchemasSslMethod sslMethod() { return sslMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +47,12 @@ public boolean equals(java.lang.Object o) { } SourceMssqlEncryptedTrustServerCertificate other = (SourceMssqlEncryptedTrustServerCertificate) o; return - Objects.deepEquals(this.sslMethod, other.sslMethod); + Utils.enhancedDeepEquals(this.sslMethod, other.sslMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( sslMethod); } @@ -63,18 +61,21 @@ public String toString() { return Utils.toString(SourceMssqlEncryptedTrustServerCertificate.class, "sslMethod", sslMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMssqlEncryptedTrustServerCertificate build() { + return new SourceMssqlEncryptedTrustServerCertificate( ); } + private static final LazySingletonValue _SINGLETON_VALUE_SslMethod = new LazySingletonValue<>( "ssl_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedVerifyCertificate.java index ea5833b90..3388e270f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlEncryptedVerifyCertificate.java @@ -13,7 +13,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -22,7 +21,6 @@ *

    Verify and use the certificate provided by the server. */ public class SourceMssqlEncryptedVerifyCertificate { - /** * certificate of the server, or of the CA that signed the server certificate */ @@ -31,12 +29,14 @@ public class SourceMssqlEncryptedVerifyCertificate { private Optional certificate; /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("hostNameInCertificate") private Optional hostNameInCertificate; + @JsonProperty("ssl_method") private SourceMssqlSchemasSslMethodSslMethod sslMethod; @@ -64,7 +64,8 @@ public Optional certificate() { } /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ @JsonIgnore public Optional hostNameInCertificate() { @@ -76,9 +77,10 @@ public SourceMssqlSchemasSslMethodSslMethod sslMethod() { return sslMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * certificate of the server, or of the CA that signed the server certificate @@ -89,6 +91,7 @@ public SourceMssqlEncryptedVerifyCertificate withCertificate(String certificate) return this; } + /** * certificate of the server, or of the CA that signed the server certificate */ @@ -99,7 +102,8 @@ public SourceMssqlEncryptedVerifyCertificate withCertificate(Optional ce } /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public SourceMssqlEncryptedVerifyCertificate withHostNameInCertificate(String hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -107,8 +111,10 @@ public SourceMssqlEncryptedVerifyCertificate withHostNameInCertificate(String ho return this; } + /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public SourceMssqlEncryptedVerifyCertificate withHostNameInCertificate(Optional hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -116,7 +122,6 @@ public SourceMssqlEncryptedVerifyCertificate withHostNameInCertificate(Optional< return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,17 +132,15 @@ public boolean equals(java.lang.Object o) { } SourceMssqlEncryptedVerifyCertificate other = (SourceMssqlEncryptedVerifyCertificate) o; return - Objects.deepEquals(this.certificate, other.certificate) && - Objects.deepEquals(this.hostNameInCertificate, other.hostNameInCertificate) && - Objects.deepEquals(this.sslMethod, other.sslMethod); + Utils.enhancedDeepEquals(this.certificate, other.certificate) && + Utils.enhancedDeepEquals(this.hostNameInCertificate, other.hostNameInCertificate) && + Utils.enhancedDeepEquals(this.sslMethod, other.sslMethod); } @Override public int hashCode() { - return Objects.hash( - certificate, - hostNameInCertificate, - sslMethod); + return Utils.enhancedHash( + certificate, hostNameInCertificate, sslMethod); } @Override @@ -147,17 +150,19 @@ public String toString() { "hostNameInCertificate", hostNameInCertificate, "sslMethod", sslMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional certificate = Optional.empty(); - + private Optional hostNameInCertificate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * certificate of the server, or of the CA that signed the server certificate */ @@ -176,8 +181,10 @@ public Builder certificate(Optional certificate) { return this; } + /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public Builder hostNameInCertificate(String hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); @@ -186,20 +193,22 @@ public Builder hostNameInCertificate(String hostNameInCertificate) { } /** - * Specifies the host name of the server. The value of this property must match the subject property of the certificate. + * Specifies the host name of the server. The value of this property must match the subject property of + * the certificate. */ public Builder hostNameInCertificate(Optional hostNameInCertificate) { Utils.checkNotNull(hostNameInCertificate, "hostNameInCertificate"); this.hostNameInCertificate = hostNameInCertificate; return this; } - + public SourceMssqlEncryptedVerifyCertificate build() { + return new SourceMssqlEncryptedVerifyCertificate( - certificate, - hostNameInCertificate); + certificate, hostNameInCertificate); } + private static final LazySingletonValue _SINGLETON_VALUE_SslMethod = new LazySingletonValue<>( "ssl_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java index 792a4e26f..5835e8e98 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlInvalidCDCPositionBehaviorAdvanced.java @@ -11,7 +11,10 @@ /** * SourceMssqlInvalidCDCPositionBehaviorAdvanced * - *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public enum SourceMssqlInvalidCDCPositionBehaviorAdvanced { FAIL_SYNC("Fail sync"), @@ -20,7 +23,7 @@ public enum SourceMssqlInvalidCDCPositionBehaviorAdvanced { @JsonValue private final String value; - private SourceMssqlInvalidCDCPositionBehaviorAdvanced(String value) { + SourceMssqlInvalidCDCPositionBehaviorAdvanced(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlMethod.java index 1c12aece2..77dc6f96e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlMethod.java @@ -14,7 +14,7 @@ public enum SourceMssqlMethod { @JsonValue private final String value; - private SourceMssqlMethod(String value) { + SourceMssqlMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlMssql.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlMssql.java index a5cd6eed0..a0f59616b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlMssql.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlMssql.java @@ -14,7 +14,7 @@ public enum SourceMssqlMssql { @JsonValue private final String value; - private SourceMssqlMssql(String value) { + SourceMssqlMssql(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlNoTunnel.java index 563f257e6..28b0760df 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceMssqlNoTunnel { +public class SourceMssqlNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class SourceMssqlNoTunnel { @JsonCreator public SourceMssqlNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public SourceMssqlTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } SourceMssqlNoTunnel other = (SourceMssqlNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(SourceMssqlNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMssqlNoTunnel build() { + return new SourceMssqlNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlPasswordAuthentication.java index 7086f72f6..267f85b11 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlPasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceMssqlPasswordAuthentication { +public class SourceMssqlPasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public SourceMssqlPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public SourceMssqlPasswordAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public SourceMssqlPasswordAuthentication withTunnelUserPassword(String tunnelUse return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } SourceMssqlPasswordAuthentication other = (SourceMssqlPasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public SourceMssqlPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceMssqlPasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHKeyAuthentication.java index b1dafe6a3..04933b946 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceMssqlSSHKeyAuthentication { +public class SourceMssqlSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public SourceMssqlSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public SourceMssqlSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public SourceMssqlSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public SourceMssqlSSHKeyAuthentication withTunnelUser(String tunnelUser) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } SourceMssqlSSHKeyAuthentication other = (SourceMssqlSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public SourceMssqlSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceMssqlSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHTunnelMethod.java index 3ebdbc690..5fb714233 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMssqlSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = SourceMssqlSSHTunnelMethod._Deserializer.class) public class SourceMssqlSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMssqlSSHTunnelMethod other = (SourceMssqlSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSLMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSLMethod.java index 2b9fdffb3..303a799aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSLMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSSLMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMssqlSSLMethod @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMssqlSSLMethod other = (SourceMssqlSSLMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java index cf6f98fe8..62700757b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasMethod.java @@ -14,7 +14,7 @@ public enum SourceMssqlSchemasMethod { @JsonValue private final String value; - private SourceMssqlSchemasMethod(String value) { + SourceMssqlSchemasMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.java index 09723bae2..fc9b1dad1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSSLMethodSSLMethodSSLMethod.java @@ -14,7 +14,7 @@ public enum SourceMssqlSchemasSSLMethodSSLMethodSSLMethod { @JsonValue private final String value; - private SourceMssqlSchemasSSLMethodSSLMethodSSLMethod(String value) { + SourceMssqlSchemasSSLMethodSSLMethodSSLMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethod.java index 80c53006a..c0424ac98 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethod.java @@ -14,7 +14,7 @@ public enum SourceMssqlSchemasSslMethod { @JsonValue private final String value; - private SourceMssqlSchemasSslMethod(String value) { + SourceMssqlSchemasSslMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethodSslMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethodSslMethod.java index c16acb729..4727c65ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethodSslMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasSslMethodSslMethod.java @@ -14,7 +14,7 @@ public enum SourceMssqlSchemasSslMethodSslMethod { @JsonValue private final String value; - private SourceMssqlSchemasSslMethodSslMethod(String value) { + SourceMssqlSchemasSslMethodSslMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethod.java index 40cd942cd..6bd69739e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourceMssqlSchemasTunnelMethod { @JsonValue private final String value; - private SourceMssqlSchemasTunnelMethod(String value) { + SourceMssqlSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethodTunnelMethod.java index 7e89fc1f7..6309db95f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourceMssqlSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private SourceMssqlSchemasTunnelMethodTunnelMethod(String value) { + SourceMssqlSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlTunnelMethod.java index 068f21d7d..c9cf6c570 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourceMssqlTunnelMethod { @JsonValue private final String value; - private SourceMssqlTunnelMethod(String value) { + SourceMssqlTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMssqlUnencrypted.java b/src/main/java/com/airbyte/api/models/shared/SourceMssqlUnencrypted.java index 587ca3ace..60c373b26 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMssqlUnencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMssqlUnencrypted.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * SourceMssqlUnencrypted @@ -25,7 +24,6 @@ public class SourceMssqlUnencrypted { @JsonCreator public SourceMssqlUnencrypted() { - this.sslMethod = Builder._SINGLETON_VALUE_SslMethod.value(); } @@ -34,11 +32,11 @@ public SourceMssqlSchemasSSLMethodSSLMethodSSLMethod sslMethod() { return sslMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +47,12 @@ public boolean equals(java.lang.Object o) { } SourceMssqlUnencrypted other = (SourceMssqlUnencrypted) o; return - Objects.deepEquals(this.sslMethod, other.sslMethod); + Utils.enhancedDeepEquals(this.sslMethod, other.sslMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( sslMethod); } @@ -63,18 +61,21 @@ public String toString() { return Utils.toString(SourceMssqlUnencrypted.class, "sslMethod", sslMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceMssqlUnencrypted build() { + return new SourceMssqlUnencrypted( ); } + private static final LazySingletonValue _SINGLETON_VALUE_SslMethod = new LazySingletonValue<>( "ssl_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMux.java b/src/main/java/com/airbyte/api/models/shared/SourceMux.java index 67741bafe..2d019585b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMux.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMux.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceMux { @JsonInclude(Include.NON_ABSENT) @@ -30,12 +30,15 @@ public class SourceMux { @JsonProperty("playback_id") private Optional playbackId; + @JsonProperty("sourceType") private Mux sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonProperty("username") private String username; @@ -59,7 +62,8 @@ public SourceMux( public SourceMux( OffsetDateTime startDate, String username) { - this(Optional.empty(), Optional.empty(), startDate, username); + this(Optional.empty(), Optional.empty(), startDate, + username); } @JsonIgnore @@ -90,9 +94,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceMux withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -100,6 +105,7 @@ public SourceMux withPassword(String password) { return this; } + public SourceMux withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -115,6 +121,7 @@ public SourceMux withPlaybackId(String playbackId) { return this; } + /** * The playback id for your video asset shown in website details */ @@ -136,7 +143,6 @@ public SourceMux withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -147,21 +153,18 @@ public boolean equals(java.lang.Object o) { } SourceMux other = (SourceMux) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.playbackId, other.playbackId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.playbackId, other.playbackId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - playbackId, - sourceType, - startDate, - username); + return Utils.enhancedHash( + password, playbackId, sourceType, + startDate, username); } @Override @@ -173,21 +176,23 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private Optional playbackId = Optional.empty(); - + private OffsetDateTime startDate; - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -200,6 +205,7 @@ public Builder password(Optional password) { return this; } + /** * The playback id for your video asset shown in website details */ @@ -218,26 +224,28 @@ public Builder playbackId(Optional playbackId) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceMux build() { + return new SourceMux( - password, - playbackId, - startDate, + password, playbackId, startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMyHours.java b/src/main/java/com/airbyte/api/models/shared/SourceMyHours.java index bf93a6c48..4dbe703df 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMyHours.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMyHours.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceMyHours { +public class SourceMyHours { /** * Your My Hours username */ @@ -38,6 +37,7 @@ public class SourceMyHours { @JsonProperty("password") private String password; + @JsonProperty("sourceType") private MyHours sourceType; @@ -68,7 +68,8 @@ public SourceMyHours( String email, String password, String startDate) { - this(email, Optional.empty(), password, startDate); + this(email, Optional.empty(), password, + startDate); } /** @@ -108,9 +109,10 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your My Hours username @@ -130,6 +132,7 @@ public SourceMyHours withLogsBatchSize(long logsBatchSize) { return this; } + /** * Pagination size used for retrieving logs in days */ @@ -157,7 +160,6 @@ public SourceMyHours withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -168,21 +170,18 @@ public boolean equals(java.lang.Object o) { } SourceMyHours other = (SourceMyHours) o; return - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.logsBatchSize, other.logsBatchSize) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.logsBatchSize, other.logsBatchSize) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - email, - logsBatchSize, - password, - sourceType, - startDate); + return Utils.enhancedHash( + email, logsBatchSize, password, + sourceType, startDate); } @Override @@ -194,21 +193,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String email; - + private Optional logsBatchSize; - + private String password; - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * Your My Hours username */ @@ -218,6 +219,7 @@ public Builder email(String email) { return this; } + /** * Pagination size used for retrieving logs in days */ @@ -236,6 +238,7 @@ public Builder logsBatchSize(Optional logsBatchSize) { return this; } + /** * The password associated to the username */ @@ -245,6 +248,7 @@ public Builder password(String password) { return this; } + /** * Start date for collecting time logs */ @@ -253,18 +257,18 @@ public Builder startDate(String startDate) { this.startDate = startDate; return this; } - + public SourceMyHours build() { if (logsBatchSize == null) { logsBatchSize = _SINGLETON_VALUE_LogsBatchSize.value(); } + return new SourceMyHours( - email, - logsBatchSize, - password, + email, logsBatchSize, password, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_LogsBatchSize = new LazySingletonValue<>( "logs_batch_size", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysql.java b/src/main/java/com/airbyte/api/models/shared/SourceMysql.java index c276f4a57..c08011b2a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysql.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysql.java @@ -16,13 +16,15 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceMysql { +public class SourceMysql { /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("check_privileges") @@ -35,13 +37,6 @@ public class SourceMysql { @JsonProperty("checkpoint_target_interval_seconds") private Optional checkpointTargetIntervalSeconds; - /** - * Maximum number of concurrent queries to the database. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("concurrency") - private Optional concurrency; - /** * The database name. */ @@ -55,12 +50,22 @@ public class SourceMysql { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") private Optional jdbcUrlParams; + /** + * Maximum number of concurrent queries to the database. Leave empty to let Airbyte optimize + * performance. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("max_db_connections") + private Optional maxDbConnections; + /** * The password associated with the username. */ @@ -81,18 +86,20 @@ public class SourceMysql { @JsonProperty("replication_method") private SourceMysqlUpdateMethod replicationMethod; + @JsonProperty("sourceType") private SourceMysqlMysql sourceType; /** - * The encryption method with is used when communicating with the database. + * The encryption method which is used when communicating with the database. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl_mode") private Optional sslMode; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -108,10 +115,10 @@ public class SourceMysql { public SourceMysql( @JsonProperty("check_privileges") Optional checkPrivileges, @JsonProperty("checkpoint_target_interval_seconds") Optional checkpointTargetIntervalSeconds, - @JsonProperty("concurrency") Optional concurrency, @JsonProperty("database") String database, @JsonProperty("host") String host, @JsonProperty("jdbc_url_params") Optional jdbcUrlParams, + @JsonProperty("max_db_connections") Optional maxDbConnections, @JsonProperty("password") Optional password, @JsonProperty("port") Optional port, @JsonProperty("replication_method") SourceMysqlUpdateMethod replicationMethod, @@ -120,10 +127,10 @@ public SourceMysql( @JsonProperty("username") String username) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); - Utils.checkNotNull(concurrency, "concurrency"); Utils.checkNotNull(database, "database"); Utils.checkNotNull(host, "host"); Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); + Utils.checkNotNull(maxDbConnections, "maxDbConnections"); Utils.checkNotNull(password, "password"); Utils.checkNotNull(port, "port"); Utils.checkNotNull(replicationMethod, "replicationMethod"); @@ -132,10 +139,10 @@ public SourceMysql( Utils.checkNotNull(username, "username"); this.checkPrivileges = checkPrivileges; this.checkpointTargetIntervalSeconds = checkpointTargetIntervalSeconds; - this.concurrency = concurrency; this.database = database; this.host = host; this.jdbcUrlParams = jdbcUrlParams; + this.maxDbConnections = maxDbConnections; this.password = password; this.port = port; this.replicationMethod = replicationMethod; @@ -150,11 +157,17 @@ public SourceMysql( String host, SourceMysqlUpdateMethod replicationMethod, String username) { - this(Optional.empty(), Optional.empty(), Optional.empty(), database, host, Optional.empty(), Optional.empty(), Optional.empty(), replicationMethod, Optional.empty(), Optional.empty(), username); + this(Optional.empty(), Optional.empty(), database, + host, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), replicationMethod, + Optional.empty(), Optional.empty(), username); } /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ @JsonIgnore public Optional checkPrivileges() { @@ -169,14 +182,6 @@ public Optional checkpointTargetIntervalSeconds() { return checkpointTargetIntervalSeconds; } - /** - * Maximum number of concurrent queries to the database. - */ - @JsonIgnore - public Optional concurrency() { - return concurrency; - } - /** * The database name. */ @@ -194,13 +199,24 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { return jdbcUrlParams; } + /** + * Maximum number of concurrent queries to the database. Leave empty to let Airbyte optimize + * performance. + */ + @JsonIgnore + public Optional maxDbConnections() { + return maxDbConnections; + } + /** * The password associated with the username. */ @@ -231,7 +247,7 @@ public SourceMysqlMysql sourceType() { } /** - * The encryption method with is used when communicating with the database. + * The encryption method which is used when communicating with the database. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -240,7 +256,8 @@ public Optional sslMode() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -256,12 +273,16 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public SourceMysql withCheckPrivileges(boolean checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -269,8 +290,12 @@ public SourceMysql withCheckPrivileges(boolean checkPrivileges) { return this; } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public SourceMysql withCheckPrivileges(Optional checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -287,6 +312,7 @@ public SourceMysql withCheckpointTargetIntervalSeconds(long checkpointTargetInte return this; } + /** * How often (in seconds) a stream should checkpoint, when possible. */ @@ -296,24 +322,6 @@ public SourceMysql withCheckpointTargetIntervalSeconds(Optional checkpoint return this; } - /** - * Maximum number of concurrent queries to the database. - */ - public SourceMysql withConcurrency(long concurrency) { - Utils.checkNotNull(concurrency, "concurrency"); - this.concurrency = Optional.ofNullable(concurrency); - return this; - } - - /** - * Maximum number of concurrent queries to the database. - */ - public SourceMysql withConcurrency(Optional concurrency) { - Utils.checkNotNull(concurrency, "concurrency"); - this.concurrency = concurrency; - return this; - } - /** * The database name. */ @@ -333,7 +341,9 @@ public SourceMysql withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceMysql withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -341,8 +351,11 @@ public SourceMysql withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceMysql withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -350,6 +363,27 @@ public SourceMysql withJdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** + * Maximum number of concurrent queries to the database. Leave empty to let Airbyte optimize + * performance. + */ + public SourceMysql withMaxDbConnections(long maxDbConnections) { + Utils.checkNotNull(maxDbConnections, "maxDbConnections"); + this.maxDbConnections = Optional.ofNullable(maxDbConnections); + return this; + } + + + /** + * Maximum number of concurrent queries to the database. Leave empty to let Airbyte optimize + * performance. + */ + public SourceMysql withMaxDbConnections(Optional maxDbConnections) { + Utils.checkNotNull(maxDbConnections, "maxDbConnections"); + this.maxDbConnections = maxDbConnections; + return this; + } + /** * The password associated with the username. */ @@ -359,6 +393,7 @@ public SourceMysql withPassword(String password) { return this; } + /** * The password associated with the username. */ @@ -377,6 +412,7 @@ public SourceMysql withPort(long port) { return this; } + /** * Port of the database. */ @@ -396,7 +432,7 @@ public SourceMysql withReplicationMethod(SourceMysqlUpdateMethod replicationMeth } /** - * The encryption method with is used when communicating with the database. + * The encryption method which is used when communicating with the database. */ public SourceMysql withSslMode(SourceMysqlEncryption sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -404,8 +440,9 @@ public SourceMysql withSslMode(SourceMysqlEncryption sslMode) { return this; } + /** - * The encryption method with is used when communicating with the database. + * The encryption method which is used when communicating with the database. */ public SourceMysql withSslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -414,7 +451,8 @@ public SourceMysql withSslMode(Optional sslMode } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceMysql withTunnelMethod(SourceMysqlSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -422,8 +460,10 @@ public SourceMysql withTunnelMethod(SourceMysqlSSHTunnelMethod tunnelMethod) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceMysql withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -440,7 +480,6 @@ public SourceMysql withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -451,36 +490,28 @@ public boolean equals(java.lang.Object o) { } SourceMysql other = (SourceMysql) o; return - Objects.deepEquals(this.checkPrivileges, other.checkPrivileges) && - Objects.deepEquals(this.checkpointTargetIntervalSeconds, other.checkpointTargetIntervalSeconds) && - Objects.deepEquals(this.concurrency, other.concurrency) && - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.replicationMethod, other.replicationMethod) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.sslMode, other.sslMode) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.checkPrivileges, other.checkPrivileges) && + Utils.enhancedDeepEquals(this.checkpointTargetIntervalSeconds, other.checkpointTargetIntervalSeconds) && + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.maxDbConnections, other.maxDbConnections) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.replicationMethod, other.replicationMethod) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.sslMode, other.sslMode) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - checkPrivileges, - checkpointTargetIntervalSeconds, - concurrency, - database, - host, - jdbcUrlParams, - password, - port, - replicationMethod, - sourceType, - sslMode, - tunnelMethod, + return Utils.enhancedHash( + checkPrivileges, checkpointTargetIntervalSeconds, database, + host, jdbcUrlParams, maxDbConnections, + password, port, replicationMethod, + sourceType, sslMode, tunnelMethod, username); } @@ -489,10 +520,10 @@ public String toString() { return Utils.toString(SourceMysql.class, "checkPrivileges", checkPrivileges, "checkpointTargetIntervalSeconds", checkpointTargetIntervalSeconds, - "concurrency", concurrency, "database", database, "host", host, "jdbcUrlParams", jdbcUrlParams, + "maxDbConnections", maxDbConnections, "password", password, "port", port, "replicationMethod", replicationMethod, @@ -501,39 +532,44 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional checkPrivileges; - + private Optional checkpointTargetIntervalSeconds; - - private Optional concurrency; - + private String database; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + + private Optional maxDbConnections = Optional.empty(); + private Optional password = Optional.empty(); - + private Optional port; - + private SourceMysqlUpdateMethod replicationMethod; - + private Optional sslMode = Optional.empty(); - + private Optional tunnelMethod = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public Builder checkPrivileges(boolean checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -542,7 +578,10 @@ public Builder checkPrivileges(boolean checkPrivileges) { } /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public Builder checkPrivileges(Optional checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -550,6 +589,7 @@ public Builder checkPrivileges(Optional checkPrivileges) { return this; } + /** * How often (in seconds) a stream should checkpoint, when possible. */ @@ -568,23 +608,6 @@ public Builder checkpointTargetIntervalSeconds(Optional checkpointTargetIn return this; } - /** - * Maximum number of concurrent queries to the database. - */ - public Builder concurrency(long concurrency) { - Utils.checkNotNull(concurrency, "concurrency"); - this.concurrency = Optional.ofNullable(concurrency); - return this; - } - - /** - * Maximum number of concurrent queries to the database. - */ - public Builder concurrency(Optional concurrency) { - Utils.checkNotNull(concurrency, "concurrency"); - this.concurrency = concurrency; - return this; - } /** * The database name. @@ -595,6 +618,7 @@ public Builder database(String database) { return this; } + /** * Hostname of the database. */ @@ -604,8 +628,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -614,7 +641,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -622,6 +651,28 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + + /** + * Maximum number of concurrent queries to the database. Leave empty to let Airbyte optimize + * performance. + */ + public Builder maxDbConnections(long maxDbConnections) { + Utils.checkNotNull(maxDbConnections, "maxDbConnections"); + this.maxDbConnections = Optional.ofNullable(maxDbConnections); + return this; + } + + /** + * Maximum number of concurrent queries to the database. Leave empty to let Airbyte optimize + * performance. + */ + public Builder maxDbConnections(Optional maxDbConnections) { + Utils.checkNotNull(maxDbConnections, "maxDbConnections"); + this.maxDbConnections = maxDbConnections; + return this; + } + + /** * The password associated with the username. */ @@ -640,6 +691,7 @@ public Builder password(Optional password) { return this; } + /** * Port of the database. */ @@ -658,6 +710,7 @@ public Builder port(Optional port) { return this; } + /** * Configures how data is extracted from the database. */ @@ -667,8 +720,9 @@ public Builder replicationMethod(SourceMysqlUpdateMethod replicationMethod) { return this; } + /** - * The encryption method with is used when communicating with the database. + * The encryption method which is used when communicating with the database. */ public Builder sslMode(SourceMysqlEncryption sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -677,7 +731,7 @@ public Builder sslMode(SourceMysqlEncryption sslMode) { } /** - * The encryption method with is used when communicating with the database. + * The encryption method which is used when communicating with the database. */ public Builder sslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -685,8 +739,10 @@ public Builder sslMode(Optional sslMode) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(SourceMysqlSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -695,7 +751,8 @@ public Builder tunnelMethod(SourceMysqlSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -703,6 +760,7 @@ public Builder tunnelMethod(Optional tunne return this; } + /** * The username which is used to access the database. */ @@ -711,7 +769,7 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceMysql build() { if (checkPrivileges == null) { checkPrivileges = _SINGLETON_VALUE_CheckPrivileges.value(); @@ -719,27 +777,18 @@ public SourceMysql build() { if (checkpointTargetIntervalSeconds == null) { checkpointTargetIntervalSeconds = _SINGLETON_VALUE_CheckpointTargetIntervalSeconds.value(); } - if (concurrency == null) { - concurrency = _SINGLETON_VALUE_Concurrency.value(); - } if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SourceMysql( - checkPrivileges, - checkpointTargetIntervalSeconds, - concurrency, - database, - host, - jdbcUrlParams, - password, - port, - replicationMethod, - sslMode, - tunnelMethod, - username); + checkPrivileges, checkpointTargetIntervalSeconds, database, + host, jdbcUrlParams, maxDbConnections, + password, port, replicationMethod, + sslMode, tunnelMethod, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_CheckPrivileges = new LazySingletonValue<>( "check_privileges", @@ -752,12 +801,6 @@ public SourceMysql build() { "300", new TypeReference>() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_Concurrency = - new LazySingletonValue<>( - "concurrency", - "1", - new TypeReference>() {}); - private static final LazySingletonValue> _SINGLETON_VALUE_Port = new LazySingletonValue<>( "port", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlEncryption.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlEncryption.java index e9a19260f..e74234f6b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlEncryption.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlEncryption.java @@ -14,12 +14,11 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMysqlEncryption * - *

    The encryption method with is used when communicating with the database. + *

    The encryption method which is used when communicating with the database. */ @JsonDeserialize(using = SourceMysqlEncryption._Deserializer.class) public class SourceMysqlEncryption { @@ -84,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMysqlEncryption other = (SourceMysqlEncryption) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java index 40ce0ce47..5e16cf9f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlInvalidCDCPositionBehaviorAdvanced.java @@ -11,7 +11,10 @@ /** * SourceMysqlInvalidCDCPositionBehaviorAdvanced * - *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public enum SourceMysqlInvalidCDCPositionBehaviorAdvanced { FAIL_SYNC("Fail sync"), @@ -20,7 +23,7 @@ public enum SourceMysqlInvalidCDCPositionBehaviorAdvanced { @JsonValue private final String value; - private SourceMysqlInvalidCDCPositionBehaviorAdvanced(String value) { + SourceMysqlInvalidCDCPositionBehaviorAdvanced(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java index fcd5ada68..a75d96f1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMethod.java @@ -14,7 +14,7 @@ public enum SourceMysqlMethod { @JsonValue private final String value; - private SourceMysqlMethod(String value) { + SourceMysqlMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java index 575bf19d5..a89fbe53d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMode.java @@ -14,7 +14,7 @@ public enum SourceMysqlMode { @JsonValue private final String value; - private SourceMysqlMode(String value) { + SourceMysqlMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java index a555d8f95..20fed3d19 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlMysql.java @@ -14,7 +14,7 @@ public enum SourceMysqlMysql { @JsonValue private final String value; - private SourceMysqlMysql(String value) { + SourceMysqlMysql(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlNoTunnel.java index ed7196a44..a63b2f2b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlNoTunnel.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class SourceMysqlNoTunnel { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -59,9 +59,10 @@ public Optional tunnelMethod() { return (Optional) tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceMysqlNoTunnel withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public SourceMysqlNoTunnel withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceMysqlNoTunnel withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public SourceMysqlNoTunnel withTunnelMethod(SourceMysqlTunnelMethod tunnelMethod return this; } + public SourceMysqlNoTunnel withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } SourceMysqlNoTunnel other = (SourceMysqlNoTunnel) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - tunnelMethod); + return Utils.enhancedHash( + additionalProperties, tunnelMethod); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional tunnelMethod; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder tunnelMethod(SourceMysqlTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -155,16 +156,18 @@ public Builder tunnelMethod(Optional tunnelMe this.tunnelMethod = tunnelMethod; return this; } - + public SourceMysqlNoTunnel build() { if (tunnelMethod == null) { tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); } + return new SourceMysqlNoTunnel( tunnelMethod) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlPasswordAuthentication.java index 9030585ad..c9926c9fb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlPasswordAuthentication.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -39,6 +38,7 @@ public class SourceMysqlPasswordAuthentication { @JsonProperty("tunnel_host") private String tunnelHost; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -86,7 +86,8 @@ public SourceMysqlPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), Optional.empty(), + tunnelUser, tunnelUserPassword); } @JsonAnyGetter @@ -132,9 +133,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceMysqlPasswordAuthentication withAdditionalProperty(String key, Object value) { @@ -142,8 +144,7 @@ public SourceMysqlPasswordAuthentication withAdditionalProperty(String key, Obje Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceMysqlPasswordAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -165,6 +166,7 @@ public SourceMysqlPasswordAuthentication withTunnelMethod(SourceMysqlSchemasTunn return this; } + public SourceMysqlPasswordAuthentication withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; @@ -180,6 +182,7 @@ public SourceMysqlPasswordAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -207,7 +210,6 @@ public SourceMysqlPasswordAuthentication withTunnelUserPassword(String tunnelUse return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +220,19 @@ public boolean equals(java.lang.Object o) { } SourceMysqlPasswordAuthentication other = (SourceMysqlPasswordAuthentication) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + additionalProperties, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser, tunnelUserPassword); } @Override @@ -247,21 +245,22 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String tunnelHost; - + private Optional tunnelMethod; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } @@ -282,6 +281,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -291,6 +291,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + public Builder tunnelMethod(SourceMysqlSchemasTunnelMethodTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -303,6 +304,7 @@ public Builder tunnelMethod(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -330,6 +333,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -338,7 +342,7 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public SourceMysqlPasswordAuthentication build() { if (tunnelMethod == null) { tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); @@ -346,15 +350,14 @@ public SourceMysqlPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceMysqlPasswordAuthentication( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword) + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.java index a91a8c462..fcaedb99b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlReadChangesUsingChangeDataCaptureCDC.java @@ -20,13 +20,14 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * SourceMysqlReadChangesUsingChangeDataCaptureCDC * - *

    <i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using MySQL's <a href="https://docs.airbyte.com/integrations/sources/mssql/#change-data-capture-cdc"> change data capture feature</a>. This must be enabled on your database. + *

    Recommended - Incrementally reads new inserts, updates, and deletes using MySQL's change data + * capture feature. This must be enabled on your database. */ public class SourceMysqlReadChangesUsingChangeDataCaptureCDC { @@ -41,18 +42,23 @@ public class SourceMysqlReadChangesUsingChangeDataCaptureCDC { private Optional initialLoadTimeoutHours; /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("invalid_cdc_cursor_position_behavior") private Optional invalidCdcCursorPositionBehavior; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("method") private Optional method; /** - * Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. + * Enter the configured MySQL server timezone. This should only be done if the configured timezone in + * your MySQL instance does not conform to IANNA standard. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("server_timezone") @@ -76,7 +82,8 @@ public SourceMysqlReadChangesUsingChangeDataCaptureCDC( } public SourceMysqlReadChangesUsingChangeDataCaptureCDC() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonAnyGetter @@ -93,7 +100,10 @@ public Optional initialLoadTimeoutHours() { } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -108,16 +118,18 @@ public Optional method() { } /** - * Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. + * Enter the configured MySQL server timezone. This should only be done if the configured timezone in + * your MySQL instance does not conform to IANNA standard. */ @JsonIgnore public Optional serverTimezone() { return serverTimezone; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceMysqlReadChangesUsingChangeDataCaptureCDC withAdditionalProperty(String key, Object value) { @@ -125,8 +137,7 @@ public SourceMysqlReadChangesUsingChangeDataCaptureCDC withAdditionalProperty(St Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceMysqlReadChangesUsingChangeDataCaptureCDC withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -142,6 +153,7 @@ public SourceMysqlReadChangesUsingChangeDataCaptureCDC withInitialLoadTimeoutHou return this; } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -152,7 +164,10 @@ public SourceMysqlReadChangesUsingChangeDataCaptureCDC withInitialLoadTimeoutHou } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public SourceMysqlReadChangesUsingChangeDataCaptureCDC withInvalidCdcCursorPositionBehavior(SourceMysqlInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -160,8 +175,12 @@ public SourceMysqlReadChangesUsingChangeDataCaptureCDC withInvalidCdcCursorPosit return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public SourceMysqlReadChangesUsingChangeDataCaptureCDC withInvalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -175,6 +194,7 @@ public SourceMysqlReadChangesUsingChangeDataCaptureCDC withMethod(SourceMysqlSch return this; } + public SourceMysqlReadChangesUsingChangeDataCaptureCDC withMethod(Optional method) { Utils.checkNotNull(method, "method"); this.method = method; @@ -182,7 +202,8 @@ public SourceMysqlReadChangesUsingChangeDataCaptureCDC withMethod(Optional serverTimezone) { Utils.checkNotNull(serverTimezone, "serverTimezone"); @@ -199,7 +222,6 @@ public SourceMysqlReadChangesUsingChangeDataCaptureCDC withServerTimezone(Option return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -210,21 +232,18 @@ public boolean equals(java.lang.Object o) { } SourceMysqlReadChangesUsingChangeDataCaptureCDC other = (SourceMysqlReadChangesUsingChangeDataCaptureCDC) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && - Objects.deepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior) && - Objects.deepEquals(this.method, other.method) && - Objects.deepEquals(this.serverTimezone, other.serverTimezone); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && + Utils.enhancedDeepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior) && + Utils.enhancedDeepEquals(this.method, other.method) && + Utils.enhancedDeepEquals(this.serverTimezone, other.serverTimezone); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - initialLoadTimeoutHours, - invalidCdcCursorPositionBehavior, - method, - serverTimezone); + return Utils.enhancedHash( + additionalProperties, initialLoadTimeoutHours, invalidCdcCursorPositionBehavior, + method, serverTimezone); } @Override @@ -236,19 +255,20 @@ public String toString() { "method", method, "serverTimezone", serverTimezone); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional initialLoadTimeoutHours; - + private Optional invalidCdcCursorPositionBehavior; - + private Optional method; - + private Optional serverTimezone = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -269,6 +289,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC logs. */ @@ -287,8 +308,12 @@ public Builder initialLoadTimeoutHours(Optional initialLoadTimeoutHours) { return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(SourceMysqlInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -297,7 +322,10 @@ public Builder invalidCdcCursorPositionBehavior(SourceMysqlInvalidCDCPositionBeh } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -305,6 +333,7 @@ public Builder invalidCdcCursorPositionBehavior(Optional method) { return this; } + /** - * Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. + * Enter the configured MySQL server timezone. This should only be done if the configured timezone in + * your MySQL instance does not conform to IANNA standard. */ public Builder serverTimezone(String serverTimezone) { Utils.checkNotNull(serverTimezone, "serverTimezone"); @@ -327,14 +358,15 @@ public Builder serverTimezone(String serverTimezone) { } /** - * Enter the configured MySQL server timezone. This should only be done if the configured timezone in your MySQL instance does not conform to IANNA standard. + * Enter the configured MySQL server timezone. This should only be done if the configured timezone in + * your MySQL instance does not conform to IANNA standard. */ public Builder serverTimezone(Optional serverTimezone) { Utils.checkNotNull(serverTimezone, "serverTimezone"); this.serverTimezone = serverTimezone; return this; } - + public SourceMysqlReadChangesUsingChangeDataCaptureCDC build() { if (initialLoadTimeoutHours == null) { initialLoadTimeoutHours = _SINGLETON_VALUE_InitialLoadTimeoutHours.value(); @@ -345,14 +377,14 @@ public SourceMysqlReadChangesUsingChangeDataCaptureCDC build() { if (method == null) { method = _SINGLETON_VALUE_Method.value(); } + return new SourceMysqlReadChangesUsingChangeDataCaptureCDC( - initialLoadTimeoutHours, - invalidCdcCursorPositionBehavior, - method, + initialLoadTimeoutHours, invalidCdcCursorPositionBehavior, method, serverTimezone) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_InitialLoadTimeoutHours = new LazySingletonValue<>( "initial_load_timeout_hours", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHKeyAuthentication.java index 4c18e69b2..cc44c5224 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHKeyAuthentication.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -34,7 +33,8 @@ public class SourceMysqlSSHKeyAuthentication { private Map additionalProperties; /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -45,6 +45,7 @@ public class SourceMysqlSSHKeyAuthentication { @JsonProperty("tunnel_host") private String tunnelHost; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -86,7 +87,8 @@ public SourceMysqlSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + Optional.empty(), tunnelUser); } @JsonAnyGetter @@ -95,7 +97,8 @@ public Map additionalProperties() { } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -132,9 +135,10 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceMysqlSSHKeyAuthentication withAdditionalProperty(String key, Object value) { @@ -142,8 +146,7 @@ public SourceMysqlSSHKeyAuthentication withAdditionalProperty(String key, Object Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceMysqlSSHKeyAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -151,7 +154,8 @@ public SourceMysqlSSHKeyAuthentication withAdditionalProperties(Map tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; @@ -189,6 +194,7 @@ public SourceMysqlSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -207,7 +213,6 @@ public SourceMysqlSSHKeyAuthentication withTunnelUser(String tunnelUser) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +223,19 @@ public boolean equals(java.lang.Object o) { } SourceMysqlSSHKeyAuthentication other = (SourceMysqlSSHKeyAuthentication) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + additionalProperties, sshKey, tunnelHost, + tunnelMethod, tunnelPort, tunnelUser); } @Override @@ -247,21 +248,22 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelMethod; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } @@ -282,8 +284,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -291,6 +295,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -300,6 +305,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + public Builder tunnelMethod(SourceMysqlSchemasTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -312,6 +318,7 @@ public Builder tunnelMethod(Optional t return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -330,6 +337,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -338,7 +346,7 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public SourceMysqlSSHKeyAuthentication build() { if (tunnelMethod == null) { tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); @@ -346,15 +354,14 @@ public SourceMysqlSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceMysqlSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser) + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHTunnelMethod.java index bfe1d74d3..da27557c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMysqlSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = SourceMysqlSSHTunnelMethod._Deserializer.class) public class SourceMysqlSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMysqlSSHTunnelMethod other = (SourceMysqlSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.java index a9cdc0450..7b079e158 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlScanChangesWithUserDefinedCursor.java @@ -19,19 +19,21 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * SourceMysqlScanChangesWithUserDefinedCursor * - *

    Incrementally detects new inserts and updates using the <a href="https://docs.airbyte.com/understanding-airbyte/connections/incremental-append/#user-defined-cursor">cursor column</a> chosen when configuring a connection (e.g. created_at, updated_at). + *

    Incrementally detects new inserts and updates using the cursor + * column chosen when configuring a connection (e.g. created_at, updated_at). */ public class SourceMysqlScanChangesWithUserDefinedCursor { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("method") private Optional method; @@ -59,9 +61,10 @@ public Optional method() { return (Optional) method; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceMysqlScanChangesWithUserDefinedCursor withAdditionalProperty(String key, Object value) { @@ -69,8 +72,7 @@ public SourceMysqlScanChangesWithUserDefinedCursor withAdditionalProperty(String Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceMysqlScanChangesWithUserDefinedCursor withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +85,13 @@ public SourceMysqlScanChangesWithUserDefinedCursor withMethod(SourceMysqlMethod return this; } + public SourceMysqlScanChangesWithUserDefinedCursor withMethod(Optional method) { Utils.checkNotNull(method, "method"); this.method = method; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +102,14 @@ public boolean equals(java.lang.Object o) { } SourceMysqlScanChangesWithUserDefinedCursor other = (SourceMysqlScanChangesWithUserDefinedCursor) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.method, other.method); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.method, other.method); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - method); + return Utils.enhancedHash( + additionalProperties, method); } @Override @@ -117,13 +118,14 @@ public String toString() { "additionalProperties", additionalProperties, "method", method); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional method; - + private Builder() { // force use of static builder() method } @@ -144,6 +146,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder method(SourceMysqlMethod method) { Utils.checkNotNull(method, "method"); this.method = Optional.ofNullable(method); @@ -155,16 +158,18 @@ public Builder method(Optional method) { this.method = method; return this; } - + public SourceMysqlScanChangesWithUserDefinedCursor build() { if (method == null) { method = _SINGLETON_VALUE_Method.value(); } + return new SourceMysqlScanChangesWithUserDefinedCursor( method) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java index 4d7eed37b..f24cace3b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMethod.java @@ -14,7 +14,7 @@ public enum SourceMysqlSchemasMethod { @JsonValue private final String value; - private SourceMysqlSchemasMethod(String value) { + SourceMysqlSchemasMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java index 361eade60..578a50898 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasMode.java @@ -14,7 +14,7 @@ public enum SourceMysqlSchemasMode { @JsonValue private final String value; - private SourceMysqlSchemasMode(String value) { + SourceMysqlSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeEncryptionMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeEncryptionMode.java index a1548660b..551cec2d7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeEncryptionMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeEncryptionMode.java @@ -14,7 +14,7 @@ public enum SourceMysqlSchemasSslModeEncryptionMode { @JsonValue private final String value; - private SourceMysqlSchemasSslModeEncryptionMode(String value) { + SourceMysqlSchemasSslModeEncryptionMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java index a115dc048..778d21ecf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasSslModeMode.java @@ -14,7 +14,7 @@ public enum SourceMysqlSchemasSslModeMode { @JsonValue private final String value; - private SourceMysqlSchemasSslModeMode(String value) { + SourceMysqlSchemasSslModeMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java index 3c16e0041..6dbac7f70 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceMysqlSchemasTunnelMethod { @JsonValue private final String value; - private SourceMysqlSchemasTunnelMethod(String value) { + SourceMysqlSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java index 94d7f0956..6220284c4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlSchemasTunnelMethodTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceMysqlSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private SourceMysqlSchemasTunnelMethodTunnelMethod(String value) { + SourceMysqlSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java index f89d2fa6d..fd8552e63 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceMysqlTunnelMethod { @JsonValue private final String value; - private SourceMysqlTunnelMethod(String value) { + SourceMysqlTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlUpdateMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlUpdateMethod.java index 06b98bc5e..e87f9c838 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlUpdateMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlUpdateMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceMysqlUpdateMethod @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceMysqlUpdateMethod other = (SourceMysqlUpdateMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCa.java b/src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCa.java index 9aa1045ca..884defdbb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCa.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceMysqlVerifyCa.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -39,26 +38,30 @@ public class SourceMysqlVerifyCa { private String caCertificate; /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_certificate") private Optional clientCertificate; /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_key") private Optional clientKey; /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_key_password") private Optional clientKeyPassword; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -85,7 +88,8 @@ public SourceMysqlVerifyCa( public SourceMysqlVerifyCa( String caCertificate) { - this(caCertificate, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(caCertificate, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } @JsonAnyGetter @@ -102,7 +106,8 @@ public String caCertificate() { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ @JsonIgnore public Optional clientCertificate() { @@ -110,7 +115,8 @@ public Optional clientCertificate() { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ @JsonIgnore public Optional clientKey() { @@ -118,7 +124,8 @@ public Optional clientKey() { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonIgnore public Optional clientKeyPassword() { @@ -131,9 +138,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceMysqlVerifyCa withAdditionalProperty(String key, Object value) { @@ -141,8 +149,7 @@ public SourceMysqlVerifyCa withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceMysqlVerifyCa withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -159,7 +166,8 @@ public SourceMysqlVerifyCa withCaCertificate(String caCertificate) { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ public SourceMysqlVerifyCa withClientCertificate(String clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -167,8 +175,10 @@ public SourceMysqlVerifyCa withClientCertificate(String clientCertificate) { return this; } + /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ public SourceMysqlVerifyCa withClientCertificate(Optional clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -177,7 +187,8 @@ public SourceMysqlVerifyCa withClientCertificate(Optional clientCertific } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ public SourceMysqlVerifyCa withClientKey(String clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -185,8 +196,10 @@ public SourceMysqlVerifyCa withClientKey(String clientKey) { return this; } + /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ public SourceMysqlVerifyCa withClientKey(Optional clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -195,7 +208,8 @@ public SourceMysqlVerifyCa withClientKey(Optional clientKey) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public SourceMysqlVerifyCa withClientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -203,8 +217,10 @@ public SourceMysqlVerifyCa withClientKeyPassword(String clientKeyPassword) { return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public SourceMysqlVerifyCa withClientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -218,13 +234,13 @@ public SourceMysqlVerifyCa withMode(SourceMysqlSchemasSslModeMode mode) { return this; } + public SourceMysqlVerifyCa withMode(Optional mode) { Utils.checkNotNull(mode, "mode"); this.mode = mode; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -235,23 +251,19 @@ public boolean equals(java.lang.Object o) { } SourceMysqlVerifyCa other = (SourceMysqlVerifyCa) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.caCertificate, other.caCertificate) && - Objects.deepEquals(this.clientCertificate, other.clientCertificate) && - Objects.deepEquals(this.clientKey, other.clientKey) && - Objects.deepEquals(this.clientKeyPassword, other.clientKeyPassword) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.caCertificate, other.caCertificate) && + Utils.enhancedDeepEquals(this.clientCertificate, other.clientCertificate) && + Utils.enhancedDeepEquals(this.clientKey, other.clientKey) && + Utils.enhancedDeepEquals(this.clientKeyPassword, other.clientKeyPassword) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - caCertificate, - clientCertificate, - clientKey, - clientKeyPassword, - mode); + return Utils.enhancedHash( + additionalProperties, caCertificate, clientCertificate, + clientKey, clientKeyPassword, mode); } @Override @@ -264,21 +276,22 @@ public String toString() { "clientKeyPassword", clientKeyPassword, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String caCertificate; - + private Optional clientCertificate = Optional.empty(); - + private Optional clientKey = Optional.empty(); - + private Optional clientKeyPassword = Optional.empty(); - + private Optional mode; - + private Builder() { // force use of static builder() method } @@ -299,6 +312,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * CA certificate */ @@ -308,8 +322,10 @@ public Builder caCertificate(String caCertificate) { return this; } + /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ public Builder clientCertificate(String clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -318,7 +334,8 @@ public Builder clientCertificate(String clientCertificate) { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ public Builder clientCertificate(Optional clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -326,8 +343,10 @@ public Builder clientCertificate(Optional clientCertificate) { return this; } + /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ public Builder clientKey(String clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -336,7 +355,8 @@ public Builder clientKey(String clientKey) { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ public Builder clientKey(Optional clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -344,8 +364,10 @@ public Builder clientKey(Optional clientKey) { return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -354,7 +376,8 @@ public Builder clientKeyPassword(String clientKeyPassword) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -362,6 +385,7 @@ public Builder clientKeyPassword(Optional clientKeyPassword) { return this; } + public Builder mode(SourceMysqlSchemasSslModeMode mode) { Utils.checkNotNull(mode, "mode"); this.mode = Optional.ofNullable(mode); @@ -373,20 +397,19 @@ public Builder mode(Optional mode) { this.mode = mode; return this; } - + public SourceMysqlVerifyCa build() { if (mode == null) { mode = _SINGLETON_VALUE_Mode.value(); } + return new SourceMysqlVerifyCa( - caCertificate, - clientCertificate, - clientKey, - clientKeyPassword, - mode) + caCertificate, clientCertificate, clientKey, + clientKeyPassword, mode) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceN8n.java b/src/main/java/com/airbyte/api/models/shared/SourceN8n.java index df50cf684..701488512 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceN8n.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceN8n.java @@ -11,12 +11,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceN8n { +public class SourceN8n { /** - * Your API KEY. See <a href="https://docs.n8n.io/api/authentication">here</a> + * Your API KEY. See here */ @JsonProperty("api_key") private String apiKey; @@ -27,6 +26,7 @@ public class SourceN8n { @JsonProperty("host") private String host; + @JsonProperty("sourceType") private N8n sourceType; @@ -42,7 +42,7 @@ public SourceN8n( } /** - * Your API KEY. See <a href="https://docs.n8n.io/api/authentication">here</a> + * Your API KEY. See here */ @JsonIgnore public String apiKey() { @@ -62,12 +62,13 @@ public N8n sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API KEY. See <a href="https://docs.n8n.io/api/authentication">here</a> + * Your API KEY. See here */ public SourceN8n withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -84,7 +85,6 @@ public SourceN8n withHost(String host) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceN8n other = (SourceN8n) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - host, - sourceType); + return Utils.enhancedHash( + apiKey, host, sourceType); } @Override @@ -115,19 +113,21 @@ public String toString() { "host", host, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String host; - + private Builder() { // force use of static builder() method } + /** - * Your API KEY. See <a href="https://docs.n8n.io/api/authentication">here</a> + * Your API KEY. See here */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -135,6 +135,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Hostname of the n8n instance */ @@ -143,13 +144,14 @@ public Builder host(String host) { this.host = host; return this; } - + public SourceN8n build() { + return new SourceN8n( - apiKey, - host); + apiKey, host); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNasa.java b/src/main/java/com/airbyte/api/models/shared/SourceNasa.java index 445cecd82..ccc96259a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNasa.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNasa.java @@ -16,11 +16,10 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourceNasa { +public class SourceNasa { /** * API access key used to retrieve data from the NASA APOD API. */ @@ -28,38 +27,48 @@ public class SourceNasa { private String apiKey; /** - * Indicates whether concept tags should be returned with the rest of the response. The concept tags are not necessarily included in the explanation, but rather derived from common search tags that are associated with the description text. (Better than just pure text search.) Defaults to False. + * Indicates whether concept tags should be returned with the rest of the response. The concept tags + * are not necessarily included in the explanation, but rather derived from common search tags that are + * associated with the description text. (Better than just pure text search.) Defaults to False. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("concept_tags") private Optional conceptTags; /** - * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and `end_date`. + * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images + * will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and + * `end_date`. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("count") private Optional count; /** - * Indicates that end of a date range. If `start_date` is specified without an `end_date` then `end_date` defaults to the current date. + * Indicates that end of a date range. If `start_date` is specified without an `end_date` then + * `end_date` defaults to the current date. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") private Optional endDate; + @JsonProperty("sourceType") private Nasa sourceType; /** - * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. There are no images for tomorrow available through this API. + * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will + * be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. + * + *

    There are no images for tomorrow available through this API. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. + * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the + * API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("thumbs") @@ -90,7 +99,8 @@ public SourceNasa( public SourceNasa( String apiKey) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -102,7 +112,9 @@ public String apiKey() { } /** - * Indicates whether concept tags should be returned with the rest of the response. The concept tags are not necessarily included in the explanation, but rather derived from common search tags that are associated with the description text. (Better than just pure text search.) Defaults to False. + * Indicates whether concept tags should be returned with the rest of the response. The concept tags + * are not necessarily included in the explanation, but rather derived from common search tags that are + * associated with the description text. (Better than just pure text search.) Defaults to False. */ @JsonIgnore public Optional conceptTags() { @@ -110,7 +122,9 @@ public Optional conceptTags() { } /** - * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and `end_date`. + * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images + * will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and + * `end_date`. */ @JsonIgnore public Optional count() { @@ -118,7 +132,8 @@ public Optional count() { } /** - * Indicates that end of a date range. If `start_date` is specified without an `end_date` then `end_date` defaults to the current date. + * Indicates that end of a date range. If `start_date` is specified without an `end_date` then + * `end_date` defaults to the current date. */ @JsonIgnore public Optional endDate() { @@ -131,7 +146,10 @@ public Nasa sourceType() { } /** - * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. There are no images for tomorrow available through this API. + * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will + * be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. + * + *

    There are no images for tomorrow available through this API. */ @JsonIgnore public Optional startDate() { @@ -139,16 +157,18 @@ public Optional startDate() { } /** - * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. + * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the + * API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. */ @JsonIgnore public Optional thumbs() { return thumbs; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API access key used to retrieve data from the NASA APOD API. @@ -160,7 +180,9 @@ public SourceNasa withApiKey(String apiKey) { } /** - * Indicates whether concept tags should be returned with the rest of the response. The concept tags are not necessarily included in the explanation, but rather derived from common search tags that are associated with the description text. (Better than just pure text search.) Defaults to False. + * Indicates whether concept tags should be returned with the rest of the response. The concept tags + * are not necessarily included in the explanation, but rather derived from common search tags that are + * associated with the description text. (Better than just pure text search.) Defaults to False. */ public SourceNasa withConceptTags(boolean conceptTags) { Utils.checkNotNull(conceptTags, "conceptTags"); @@ -168,8 +190,11 @@ public SourceNasa withConceptTags(boolean conceptTags) { return this; } + /** - * Indicates whether concept tags should be returned with the rest of the response. The concept tags are not necessarily included in the explanation, but rather derived from common search tags that are associated with the description text. (Better than just pure text search.) Defaults to False. + * Indicates whether concept tags should be returned with the rest of the response. The concept tags + * are not necessarily included in the explanation, but rather derived from common search tags that are + * associated with the description text. (Better than just pure text search.) Defaults to False. */ public SourceNasa withConceptTags(Optional conceptTags) { Utils.checkNotNull(conceptTags, "conceptTags"); @@ -178,7 +203,9 @@ public SourceNasa withConceptTags(Optional conceptTags) { } /** - * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and `end_date`. + * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images + * will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and + * `end_date`. */ public SourceNasa withCount(long count) { Utils.checkNotNull(count, "count"); @@ -186,8 +213,11 @@ public SourceNasa withCount(long count) { return this; } + /** - * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and `end_date`. + * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images + * will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and + * `end_date`. */ public SourceNasa withCount(Optional count) { Utils.checkNotNull(count, "count"); @@ -196,7 +226,8 @@ public SourceNasa withCount(Optional count) { } /** - * Indicates that end of a date range. If `start_date` is specified without an `end_date` then `end_date` defaults to the current date. + * Indicates that end of a date range. If `start_date` is specified without an `end_date` then + * `end_date` defaults to the current date. */ public SourceNasa withEndDate(LocalDate endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -204,8 +235,10 @@ public SourceNasa withEndDate(LocalDate endDate) { return this; } + /** - * Indicates that end of a date range. If `start_date` is specified without an `end_date` then `end_date` defaults to the current date. + * Indicates that end of a date range. If `start_date` is specified without an `end_date` then + * `end_date` defaults to the current date. */ public SourceNasa withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -214,7 +247,10 @@ public SourceNasa withEndDate(Optional endDate) { } /** - * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. There are no images for tomorrow available through this API. + * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will + * be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. + * + *

    There are no images for tomorrow available through this API. */ public SourceNasa withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -222,8 +258,12 @@ public SourceNasa withStartDate(LocalDate startDate) { return this; } + /** - * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. There are no images for tomorrow available through this API. + * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will + * be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. + * + *

    There are no images for tomorrow available through this API. */ public SourceNasa withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -232,7 +272,8 @@ public SourceNasa withStartDate(Optional startDate) { } /** - * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. + * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the + * API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. */ public SourceNasa withThumbs(boolean thumbs) { Utils.checkNotNull(thumbs, "thumbs"); @@ -240,8 +281,10 @@ public SourceNasa withThumbs(boolean thumbs) { return this; } + /** - * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. + * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the + * API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. */ public SourceNasa withThumbs(Optional thumbs) { Utils.checkNotNull(thumbs, "thumbs"); @@ -249,7 +292,6 @@ public SourceNasa withThumbs(Optional thumbs) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -260,24 +302,20 @@ public boolean equals(java.lang.Object o) { } SourceNasa other = (SourceNasa) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.conceptTags, other.conceptTags) && - Objects.deepEquals(this.count, other.count) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.thumbs, other.thumbs); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.conceptTags, other.conceptTags) && + Utils.enhancedDeepEquals(this.count, other.count) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.thumbs, other.thumbs); } @Override public int hashCode() { - return Objects.hash( - apiKey, - conceptTags, - count, - endDate, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, conceptTags, count, + endDate, sourceType, startDate, thumbs); } @@ -292,25 +330,27 @@ public String toString() { "startDate", startDate, "thumbs", thumbs); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional conceptTags; - + private Optional count = Optional.empty(); - + private Optional endDate = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Optional thumbs; - + private Builder() { // force use of static builder() method } + /** * API access key used to retrieve data from the NASA APOD API. */ @@ -320,8 +360,11 @@ public Builder apiKey(String apiKey) { return this; } + /** - * Indicates whether concept tags should be returned with the rest of the response. The concept tags are not necessarily included in the explanation, but rather derived from common search tags that are associated with the description text. (Better than just pure text search.) Defaults to False. + * Indicates whether concept tags should be returned with the rest of the response. The concept tags + * are not necessarily included in the explanation, but rather derived from common search tags that are + * associated with the description text. (Better than just pure text search.) Defaults to False. */ public Builder conceptTags(boolean conceptTags) { Utils.checkNotNull(conceptTags, "conceptTags"); @@ -330,7 +373,9 @@ public Builder conceptTags(boolean conceptTags) { } /** - * Indicates whether concept tags should be returned with the rest of the response. The concept tags are not necessarily included in the explanation, but rather derived from common search tags that are associated with the description text. (Better than just pure text search.) Defaults to False. + * Indicates whether concept tags should be returned with the rest of the response. The concept tags + * are not necessarily included in the explanation, but rather derived from common search tags that are + * associated with the description text. (Better than just pure text search.) Defaults to False. */ public Builder conceptTags(Optional conceptTags) { Utils.checkNotNull(conceptTags, "conceptTags"); @@ -338,8 +383,11 @@ public Builder conceptTags(Optional conceptTags) { return this; } + /** - * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and `end_date`. + * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images + * will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and + * `end_date`. */ public Builder count(long count) { Utils.checkNotNull(count, "count"); @@ -348,7 +396,9 @@ public Builder count(long count) { } /** - * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and `end_date`. + * A positive integer, no greater than 100. If this is specified then `count` randomly chosen images + * will be returned in a JSON array. Cannot be used in conjunction with `date` or `start_date` and + * `end_date`. */ public Builder count(Optional count) { Utils.checkNotNull(count, "count"); @@ -356,8 +406,10 @@ public Builder count(Optional count) { return this; } + /** - * Indicates that end of a date range. If `start_date` is specified without an `end_date` then `end_date` defaults to the current date. + * Indicates that end of a date range. If `start_date` is specified without an `end_date` then + * `end_date` defaults to the current date. */ public Builder endDate(LocalDate endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -366,7 +418,8 @@ public Builder endDate(LocalDate endDate) { } /** - * Indicates that end of a date range. If `start_date` is specified without an `end_date` then `end_date` defaults to the current date. + * Indicates that end of a date range. If `start_date` is specified without an `end_date` then + * `end_date` defaults to the current date. */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -374,8 +427,12 @@ public Builder endDate(Optional endDate) { return this; } + /** - * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. There are no images for tomorrow available through this API. + * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will + * be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. + * + *

    There are no images for tomorrow available through this API. */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -384,7 +441,10 @@ public Builder startDate(LocalDate startDate) { } /** - * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. There are no images for tomorrow available through this API. + * Indicates the start of a date range. All images in the range from `start_date` to `end_date` will + * be returned in a JSON array. Must be after 1995-06-16, the first day an APOD picture was posted. + * + *

    There are no images for tomorrow available through this API. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -392,8 +452,10 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. + * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the + * API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. */ public Builder thumbs(boolean thumbs) { Utils.checkNotNull(thumbs, "thumbs"); @@ -402,14 +464,15 @@ public Builder thumbs(boolean thumbs) { } /** - * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. + * Indicates whether the API should return a thumbnail image URL for video files. If set to True, the + * API returns URL of video thumbnail. If an APOD is not a video, this parameter is ignored. */ public Builder thumbs(Optional thumbs) { Utils.checkNotNull(thumbs, "thumbs"); this.thumbs = thumbs; return this; } - + public SourceNasa build() { if (conceptTags == null) { conceptTags = _SINGLETON_VALUE_ConceptTags.value(); @@ -417,15 +480,13 @@ public SourceNasa build() { if (thumbs == null) { thumbs = _SINGLETON_VALUE_Thumbs.value(); } + return new SourceNasa( - apiKey, - conceptTags, - count, - endDate, - startDate, - thumbs); + apiKey, conceptTags, count, + endDate, startDate, thumbs); } + private static final LazySingletonValue> _SINGLETON_VALUE_ConceptTags = new LazySingletonValue<>( "concept_tags", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNavan.java b/src/main/java/com/airbyte/api/models/shared/SourceNavan.java index e010e1140..9745ab895 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNavan.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNavan.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceNavan { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private Navan sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -62,9 +65,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceNavan withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -84,7 +88,6 @@ public SourceNavan withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,18 +98,16 @@ public boolean equals(java.lang.Object o) { } SourceNavan other = (SourceNavan) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - sourceType, + return Utils.enhancedHash( + clientId, clientSecret, sourceType, startDate); } @@ -118,44 +119,48 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceNavan build() { + return new SourceNavan( - clientId, - clientSecret, - startDate); + clientId, clientSecret, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNebiusAi.java b/src/main/java/com/airbyte/api/models/shared/SourceNebiusAi.java index 705131606..aea0a7a06 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNebiusAi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNebiusAi.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceNebiusAi { +public class SourceNebiusAi { /** * API key or access token */ @@ -32,9 +31,11 @@ public class SourceNebiusAi { @JsonProperty("limit") private Optional limit; + @JsonProperty("sourceType") private NebiusAi sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -84,9 +85,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key or access token @@ -106,6 +108,7 @@ public SourceNebiusAi withLimit(String limit) { return this; } + /** * Limit for each response objects */ @@ -121,7 +124,6 @@ public SourceNebiusAi withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +134,16 @@ public boolean equals(java.lang.Object o) { } SourceNebiusAi other = (SourceNebiusAi) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - limit, - sourceType, + return Utils.enhancedHash( + apiKey, limit, sourceType, startDate); } @@ -155,19 +155,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional limit; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API key or access token */ @@ -177,6 +179,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Limit for each response objects */ @@ -195,22 +198,23 @@ public Builder limit(Optional limit) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceNebiusAi build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); } + return new SourceNebiusAi( - apiKey, - limit, - startDate); + apiKey, limit, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = new LazySingletonValue<>( "limit", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuite.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuite.java index f69bfcdda..6eb340637 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuite.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuite.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceNetsuite { +public class SourceNetsuite { /** * Consumer key associated with your integration */ @@ -34,7 +33,8 @@ public class SourceNetsuite { private String consumerSecret; /** - * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup process by limiting the number of schemas that need to be retrieved from Netsuite. + * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup + * process by limiting the number of schemas that need to be retrieved from Netsuite. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("object_types") @@ -46,6 +46,7 @@ public class SourceNetsuite { @JsonProperty("realm") private String realm; + @JsonProperty("sourceType") private Netsuite sourceType; @@ -68,7 +69,8 @@ public class SourceNetsuite { private String tokenSecret; /** - * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of data. + * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of + * data. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("window_in_days") @@ -110,7 +112,9 @@ public SourceNetsuite( String startDatetime, String tokenKey, String tokenSecret) { - this(consumerKey, consumerSecret, Optional.empty(), realm, startDatetime, tokenKey, tokenSecret, Optional.empty()); + this(consumerKey, consumerSecret, Optional.empty(), + realm, startDatetime, tokenKey, + tokenSecret, Optional.empty()); } /** @@ -130,7 +134,8 @@ public String consumerSecret() { } /** - * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup process by limiting the number of schemas that need to be retrieved from Netsuite. + * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup + * process by limiting the number of schemas that need to be retrieved from Netsuite. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -176,16 +181,18 @@ public String tokenSecret() { } /** - * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of data. + * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of + * data. */ @JsonIgnore public Optional windowInDays() { return windowInDays; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Consumer key associated with your integration @@ -206,7 +213,8 @@ public SourceNetsuite withConsumerSecret(String consumerSecret) { } /** - * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup process by limiting the number of schemas that need to be retrieved from Netsuite. + * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup + * process by limiting the number of schemas that need to be retrieved from Netsuite. */ public SourceNetsuite withObjectTypes(List objectTypes) { Utils.checkNotNull(objectTypes, "objectTypes"); @@ -214,8 +222,10 @@ public SourceNetsuite withObjectTypes(List objectTypes) { return this; } + /** - * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup process by limiting the number of schemas that need to be retrieved from Netsuite. + * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup + * process by limiting the number of schemas that need to be retrieved from Netsuite. */ public SourceNetsuite withObjectTypes(Optional> objectTypes) { Utils.checkNotNull(objectTypes, "objectTypes"); @@ -260,7 +270,8 @@ public SourceNetsuite withTokenSecret(String tokenSecret) { } /** - * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of data. + * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of + * data. */ public SourceNetsuite withWindowInDays(long windowInDays) { Utils.checkNotNull(windowInDays, "windowInDays"); @@ -268,8 +279,10 @@ public SourceNetsuite withWindowInDays(long windowInDays) { return this; } + /** - * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of data. + * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of + * data. */ public SourceNetsuite withWindowInDays(Optional windowInDays) { Utils.checkNotNull(windowInDays, "windowInDays"); @@ -277,7 +290,6 @@ public SourceNetsuite withWindowInDays(Optional windowInDays) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -288,29 +300,23 @@ public boolean equals(java.lang.Object o) { } SourceNetsuite other = (SourceNetsuite) o; return - Objects.deepEquals(this.consumerKey, other.consumerKey) && - Objects.deepEquals(this.consumerSecret, other.consumerSecret) && - Objects.deepEquals(this.objectTypes, other.objectTypes) && - Objects.deepEquals(this.realm, other.realm) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDatetime, other.startDatetime) && - Objects.deepEquals(this.tokenKey, other.tokenKey) && - Objects.deepEquals(this.tokenSecret, other.tokenSecret) && - Objects.deepEquals(this.windowInDays, other.windowInDays); + Utils.enhancedDeepEquals(this.consumerKey, other.consumerKey) && + Utils.enhancedDeepEquals(this.consumerSecret, other.consumerSecret) && + Utils.enhancedDeepEquals(this.objectTypes, other.objectTypes) && + Utils.enhancedDeepEquals(this.realm, other.realm) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDatetime, other.startDatetime) && + Utils.enhancedDeepEquals(this.tokenKey, other.tokenKey) && + Utils.enhancedDeepEquals(this.tokenSecret, other.tokenSecret) && + Utils.enhancedDeepEquals(this.windowInDays, other.windowInDays); } @Override public int hashCode() { - return Objects.hash( - consumerKey, - consumerSecret, - objectTypes, - realm, - sourceType, - startDatetime, - tokenKey, - tokenSecret, - windowInDays); + return Utils.enhancedHash( + consumerKey, consumerSecret, objectTypes, + realm, sourceType, startDatetime, + tokenKey, tokenSecret, windowInDays); } @Override @@ -326,29 +332,31 @@ public String toString() { "tokenSecret", tokenSecret, "windowInDays", windowInDays); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String consumerKey; - + private String consumerSecret; - + private Optional> objectTypes = Optional.empty(); - + private String realm; - + private String startDatetime; - + private String tokenKey; - + private String tokenSecret; - + private Optional windowInDays; - + private Builder() { // force use of static builder() method } + /** * Consumer key associated with your integration */ @@ -358,6 +366,7 @@ public Builder consumerKey(String consumerKey) { return this; } + /** * Consumer secret associated with your integration */ @@ -367,8 +376,10 @@ public Builder consumerSecret(String consumerSecret) { return this; } + /** - * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup process by limiting the number of schemas that need to be retrieved from Netsuite. + * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup + * process by limiting the number of schemas that need to be retrieved from Netsuite. */ public Builder objectTypes(List objectTypes) { Utils.checkNotNull(objectTypes, "objectTypes"); @@ -377,7 +388,8 @@ public Builder objectTypes(List objectTypes) { } /** - * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup process by limiting the number of schemas that need to be retrieved from Netsuite. + * The API names of the Netsuite objects you want to sync. Setting this speeds up the connection setup + * process by limiting the number of schemas that need to be retrieved from Netsuite. */ public Builder objectTypes(Optional> objectTypes) { Utils.checkNotNull(objectTypes, "objectTypes"); @@ -385,6 +397,7 @@ public Builder objectTypes(Optional> objectTypes) { return this; } + /** * Netsuite realm e.g. 2344535, as for `production` or 2344535_SB1, as for the `sandbox` */ @@ -394,6 +407,7 @@ public Builder realm(String realm) { return this; } + /** * Starting point for your data replication, in format of "YYYY-MM-DDTHH:mm:ssZ" */ @@ -403,6 +417,7 @@ public Builder startDatetime(String startDatetime) { return this; } + /** * Access token key */ @@ -412,6 +427,7 @@ public Builder tokenKey(String tokenKey) { return this; } + /** * Access token secret */ @@ -421,8 +437,10 @@ public Builder tokenSecret(String tokenSecret) { return this; } + /** - * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of data. + * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of + * data. */ public Builder windowInDays(long windowInDays) { Utils.checkNotNull(windowInDays, "windowInDays"); @@ -431,29 +449,27 @@ public Builder windowInDays(long windowInDays) { } /** - * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of data. + * The amount of days used to query the data with date chunks. Set smaller value, if you have lots of + * data. */ public Builder windowInDays(Optional windowInDays) { Utils.checkNotNull(windowInDays, "windowInDays"); this.windowInDays = windowInDays; return this; } - + public SourceNetsuite build() { if (windowInDays == null) { windowInDays = _SINGLETON_VALUE_WindowInDays.value(); } + return new SourceNetsuite( - consumerKey, - consumerSecret, - objectTypes, - realm, - startDatetime, - tokenKey, - tokenSecret, - windowInDays); + consumerKey, consumerSecret, objectTypes, + realm, startDatetime, tokenKey, + tokenSecret, windowInDays); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterprise.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterprise.java index 77d4271b9..f963025a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterprise.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterprise.java @@ -15,11 +15,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceNetsuiteEnterprise { +public class SourceNetsuiteEnterprise { /** * The username which is used to access the database. */ @@ -27,13 +26,17 @@ public class SourceNetsuiteEnterprise { private String accountId; /** - * Configure how to authenticate to Netsuite. Options include username/password or token-based authentication. + * Configure how to authenticate to Netsuite. Options include username/password or token-based + * authentication. */ @JsonProperty("authentication_method") private SourceNetsuiteEnterpriseAuthenticationMethod authenticationMethod; /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("check_privileges") @@ -66,7 +69,9 @@ public class SourceNetsuiteEnterprise { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -85,11 +90,13 @@ public class SourceNetsuiteEnterprise { @JsonProperty("role_id") private String roleId; + @JsonProperty("sourceType") private NetsuiteEnterprise sourceType; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonProperty("tunnel_method") private SourceNetsuiteEnterpriseSSHTunnelMethod tunnelMethod; @@ -149,7 +156,10 @@ public SourceNetsuiteEnterprise( String roleId, SourceNetsuiteEnterpriseSSHTunnelMethod tunnelMethod, String username) { - this(accountId, authenticationMethod, Optional.empty(), Optional.empty(), Optional.empty(), cursor, host, Optional.empty(), Optional.empty(), roleId, tunnelMethod, username); + this(accountId, authenticationMethod, Optional.empty(), + Optional.empty(), Optional.empty(), cursor, + host, Optional.empty(), Optional.empty(), + roleId, tunnelMethod, username); } /** @@ -161,7 +171,8 @@ public String accountId() { } /** - * Configure how to authenticate to Netsuite. Options include username/password or token-based authentication. + * Configure how to authenticate to Netsuite. Options include username/password or token-based + * authentication. */ @JsonIgnore public SourceNetsuiteEnterpriseAuthenticationMethod authenticationMethod() { @@ -169,7 +180,10 @@ public SourceNetsuiteEnterpriseAuthenticationMethod authenticationMethod() { } /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ @JsonIgnore public Optional checkPrivileges() { @@ -209,7 +223,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -238,7 +254,8 @@ public NetsuiteEnterprise sourceType() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonIgnore public SourceNetsuiteEnterpriseSSHTunnelMethod tunnelMethod() { @@ -253,9 +270,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The username which is used to access the database. @@ -267,7 +285,8 @@ public SourceNetsuiteEnterprise withAccountId(String accountId) { } /** - * Configure how to authenticate to Netsuite. Options include username/password or token-based authentication. + * Configure how to authenticate to Netsuite. Options include username/password or token-based + * authentication. */ public SourceNetsuiteEnterprise withAuthenticationMethod(SourceNetsuiteEnterpriseAuthenticationMethod authenticationMethod) { Utils.checkNotNull(authenticationMethod, "authenticationMethod"); @@ -276,7 +295,10 @@ public SourceNetsuiteEnterprise withAuthenticationMethod(SourceNetsuiteEnterpris } /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public SourceNetsuiteEnterprise withCheckPrivileges(boolean checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -284,8 +306,12 @@ public SourceNetsuiteEnterprise withCheckPrivileges(boolean checkPrivileges) { return this; } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public SourceNetsuiteEnterprise withCheckPrivileges(Optional checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -302,6 +328,7 @@ public SourceNetsuiteEnterprise withCheckpointTargetIntervalSeconds(long checkpo return this; } + /** * How often (in seconds) a stream should checkpoint, when possible. */ @@ -320,6 +347,7 @@ public SourceNetsuiteEnterprise withConcurrency(long concurrency) { return this; } + /** * Maximum number of concurrent queries to the database. */ @@ -348,7 +376,9 @@ public SourceNetsuiteEnterprise withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceNetsuiteEnterprise withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -356,8 +386,11 @@ public SourceNetsuiteEnterprise withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceNetsuiteEnterprise withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -374,6 +407,7 @@ public SourceNetsuiteEnterprise withPort(long port) { return this; } + /** * Port of the database. */ @@ -393,7 +427,8 @@ public SourceNetsuiteEnterprise withRoleId(String roleId) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceNetsuiteEnterprise withTunnelMethod(SourceNetsuiteEnterpriseSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -410,7 +445,6 @@ public SourceNetsuiteEnterprise withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -421,36 +455,28 @@ public boolean equals(java.lang.Object o) { } SourceNetsuiteEnterprise other = (SourceNetsuiteEnterprise) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.authenticationMethod, other.authenticationMethod) && - Objects.deepEquals(this.checkPrivileges, other.checkPrivileges) && - Objects.deepEquals(this.checkpointTargetIntervalSeconds, other.checkpointTargetIntervalSeconds) && - Objects.deepEquals(this.concurrency, other.concurrency) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.roleId, other.roleId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.authenticationMethod, other.authenticationMethod) && + Utils.enhancedDeepEquals(this.checkPrivileges, other.checkPrivileges) && + Utils.enhancedDeepEquals(this.checkpointTargetIntervalSeconds, other.checkpointTargetIntervalSeconds) && + Utils.enhancedDeepEquals(this.concurrency, other.concurrency) && + Utils.enhancedDeepEquals(this.cursor, other.cursor) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.roleId, other.roleId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - accountId, - authenticationMethod, - checkPrivileges, - checkpointTargetIntervalSeconds, - concurrency, - cursor, - host, - jdbcUrlParams, - port, - roleId, - sourceType, - tunnelMethod, + return Utils.enhancedHash( + accountId, authenticationMethod, checkPrivileges, + checkpointTargetIntervalSeconds, concurrency, cursor, + host, jdbcUrlParams, port, + roleId, sourceType, tunnelMethod, username); } @@ -471,37 +497,39 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private SourceNetsuiteEnterpriseAuthenticationMethod authenticationMethod; - + private Optional checkPrivileges; - + private Optional checkpointTargetIntervalSeconds; - + private Optional concurrency; - + private SourceNetsuiteEnterpriseUpdateMethod cursor; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional port; - + private String roleId; - + private SourceNetsuiteEnterpriseSSHTunnelMethod tunnelMethod; - + private String username; - + private Builder() { // force use of static builder() method } + /** * The username which is used to access the database. */ @@ -511,8 +539,10 @@ public Builder accountId(String accountId) { return this; } + /** - * Configure how to authenticate to Netsuite. Options include username/password or token-based authentication. + * Configure how to authenticate to Netsuite. Options include username/password or token-based + * authentication. */ public Builder authenticationMethod(SourceNetsuiteEnterpriseAuthenticationMethod authenticationMethod) { Utils.checkNotNull(authenticationMethod, "authenticationMethod"); @@ -520,8 +550,12 @@ public Builder authenticationMethod(SourceNetsuiteEnterpriseAuthenticationMethod return this; } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public Builder checkPrivileges(boolean checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -530,7 +564,10 @@ public Builder checkPrivileges(boolean checkPrivileges) { } /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public Builder checkPrivileges(Optional checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -538,6 +575,7 @@ public Builder checkPrivileges(Optional checkPrivileges) { return this; } + /** * How often (in seconds) a stream should checkpoint, when possible. */ @@ -556,6 +594,7 @@ public Builder checkpointTargetIntervalSeconds(Optional checkpointTargetIn return this; } + /** * Maximum number of concurrent queries to the database. */ @@ -574,6 +613,7 @@ public Builder concurrency(Optional concurrency) { return this; } + /** * Configures how data is extracted from the database. */ @@ -583,6 +623,7 @@ public Builder cursor(SourceNetsuiteEnterpriseUpdateMethod cursor) { return this; } + /** * Hostname of the database. */ @@ -592,8 +633,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -602,7 +646,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -610,6 +656,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * Port of the database. */ @@ -628,6 +675,7 @@ public Builder port(Optional port) { return this; } + /** * The username which is used to access the database. */ @@ -637,8 +685,10 @@ public Builder roleId(String roleId) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(SourceNetsuiteEnterpriseSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -646,6 +696,7 @@ public Builder tunnelMethod(SourceNetsuiteEnterpriseSSHTunnelMethod tunnelMethod return this; } + /** * The username which is used to access the database. */ @@ -654,7 +705,7 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceNetsuiteEnterprise build() { if (checkPrivileges == null) { checkPrivileges = _SINGLETON_VALUE_CheckPrivileges.value(); @@ -668,21 +719,15 @@ public SourceNetsuiteEnterprise build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SourceNetsuiteEnterprise( - accountId, - authenticationMethod, - checkPrivileges, - checkpointTargetIntervalSeconds, - concurrency, - cursor, - host, - jdbcUrlParams, - port, - roleId, - tunnelMethod, - username); + accountId, authenticationMethod, checkPrivileges, + checkpointTargetIntervalSeconds, concurrency, cursor, + host, jdbcUrlParams, port, + roleId, tunnelMethod, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_CheckPrivileges = new LazySingletonValue<>( "check_privileges", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseAuthenticationMethod.java index d6551a61c..ab038207a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseAuthenticationMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceNetsuiteEnterpriseAuthenticationMethod * - *

    Configure how to authenticate to Netsuite. Options include username/password or token-based authentication. + *

    Configure how to authenticate to Netsuite. Options include username/password or token-based + * authentication. */ @JsonDeserialize(using = SourceNetsuiteEnterpriseAuthenticationMethod._Deserializer.class) public class SourceNetsuiteEnterpriseAuthenticationMethod { @@ -40,12 +40,18 @@ public static SourceNetsuiteEnterpriseAuthenticationMethod of(TokenBasedAuthenti Utils.checkNotNull(value, "value"); return new SourceNetsuiteEnterpriseAuthenticationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); } + + public static SourceNetsuiteEnterpriseAuthenticationMethod of(OAuth2Authentication value) { + Utils.checkNotNull(value, "value"); + return new SourceNetsuiteEnterpriseAuthenticationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } /** * Returns an instance of one of these types: *

      *
    • {@code com.airbyte.api.models.shared.SourceNetsuiteEnterprisePasswordAuthentication}
    • *
    • {@code com.airbyte.api.models.shared.TokenBasedAuthentication}
    • + *
    • {@code com.airbyte.api.models.shared.OAuth2Authentication}
    • *
    * *

    Use {@code instanceof} to determine what type is returned. For example: @@ -72,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceNetsuiteEnterpriseAuthenticationMethod other = (SourceNetsuiteEnterpriseAuthenticationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") @@ -86,6 +92,7 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseNoTunnel.java index 93c969fd3..fa0620f80 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseNoTunnel.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class SourceNetsuiteEnterpriseNoTunnel { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -59,9 +59,10 @@ public Optional tunnelMethod() { return (Optional) tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceNetsuiteEnterpriseNoTunnel withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public SourceNetsuiteEnterpriseNoTunnel withAdditionalProperty(String key, Objec Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceNetsuiteEnterpriseNoTunnel withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public SourceNetsuiteEnterpriseNoTunnel withTunnelMethod(SourceNetsuiteEnterpris return this; } + public SourceNetsuiteEnterpriseNoTunnel withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } SourceNetsuiteEnterpriseNoTunnel other = (SourceNetsuiteEnterpriseNoTunnel) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - tunnelMethod); + return Utils.enhancedHash( + additionalProperties, tunnelMethod); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional tunnelMethod; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder tunnelMethod(SourceNetsuiteEnterpriseTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -155,16 +156,18 @@ public Builder tunnelMethod(Optional> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterprisePasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterprisePasswordAuthentication.java index e09b257c8..5c6d96e0f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterprisePasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterprisePasswordAuthentication.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,9 +31,10 @@ public class SourceNetsuiteEnterprisePasswordAuthentication { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("authentication_method") - private Optional authenticationMethod; + private Optional authenticationMethod; /** * The password associated with the username. @@ -44,7 +44,7 @@ public class SourceNetsuiteEnterprisePasswordAuthentication { @JsonCreator public SourceNetsuiteEnterprisePasswordAuthentication( - @JsonProperty("authentication_method") Optional authenticationMethod, + @JsonProperty("authentication_method") Optional authenticationMethod, @JsonProperty("password") String password) { Utils.checkNotNull(authenticationMethod, "authenticationMethod"); Utils.checkNotNull(password, "password"); @@ -65,8 +65,8 @@ public Map additionalProperties() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional authenticationMethod() { - return (Optional) authenticationMethod; + public Optional authenticationMethod() { + return (Optional) authenticationMethod; } /** @@ -77,9 +77,10 @@ public String password() { return password; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceNetsuiteEnterprisePasswordAuthentication withAdditionalProperty(String key, Object value) { @@ -87,21 +88,21 @@ public SourceNetsuiteEnterprisePasswordAuthentication withAdditionalProperty(Str Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceNetsuiteEnterprisePasswordAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; return this; } - public SourceNetsuiteEnterprisePasswordAuthentication withAuthenticationMethod(SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod authenticationMethod) { + public SourceNetsuiteEnterprisePasswordAuthentication withAuthenticationMethod(SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod authenticationMethod) { Utils.checkNotNull(authenticationMethod, "authenticationMethod"); this.authenticationMethod = Optional.ofNullable(authenticationMethod); return this; } - public SourceNetsuiteEnterprisePasswordAuthentication withAuthenticationMethod(Optional authenticationMethod) { + + public SourceNetsuiteEnterprisePasswordAuthentication withAuthenticationMethod(Optional authenticationMethod) { Utils.checkNotNull(authenticationMethod, "authenticationMethod"); this.authenticationMethod = authenticationMethod; return this; @@ -116,7 +117,6 @@ public SourceNetsuiteEnterprisePasswordAuthentication withPassword(String passwo return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,17 +127,15 @@ public boolean equals(java.lang.Object o) { } SourceNetsuiteEnterprisePasswordAuthentication other = (SourceNetsuiteEnterprisePasswordAuthentication) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.authenticationMethod, other.authenticationMethod) && - Objects.deepEquals(this.password, other.password); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.authenticationMethod, other.authenticationMethod) && + Utils.enhancedDeepEquals(this.password, other.password); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - authenticationMethod, - password); + return Utils.enhancedHash( + additionalProperties, authenticationMethod, password); } @Override @@ -147,15 +145,16 @@ public String toString() { "authenticationMethod", authenticationMethod, "password", password); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - - private Optional authenticationMethod; - + + private Optional authenticationMethod; + private String password; - + private Builder() { // force use of static builder() method } @@ -176,18 +175,20 @@ public Builder additionalProperties(Map additionalProperties) { return this; } - public Builder authenticationMethod(SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod authenticationMethod) { + + public Builder authenticationMethod(SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod authenticationMethod) { Utils.checkNotNull(authenticationMethod, "authenticationMethod"); this.authenticationMethod = Optional.ofNullable(authenticationMethod); return this; } - public Builder authenticationMethod(Optional authenticationMethod) { + public Builder authenticationMethod(Optional authenticationMethod) { Utils.checkNotNull(authenticationMethod, "authenticationMethod"); this.authenticationMethod = authenticationMethod; return this; } + /** * The password associated with the username. */ @@ -196,21 +197,22 @@ public Builder password(String password) { this.password = password; return this; } - + public SourceNetsuiteEnterprisePasswordAuthentication build() { if (authenticationMethod == null) { authenticationMethod = _SINGLETON_VALUE_AuthenticationMethod.value(); } + return new SourceNetsuiteEnterprisePasswordAuthentication( - authenticationMethod, - password) + authenticationMethod, password) .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue> _SINGLETON_VALUE_AuthenticationMethod = + + private static final LazySingletonValue> _SINGLETON_VALUE_AuthenticationMethod = new LazySingletonValue<>( "authentication_method", "\"password_authentication\"", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSSHKeyAuthentication.java index 96e4fe2d4..b76d4473c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSSHKeyAuthentication.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -34,7 +33,8 @@ public class SourceNetsuiteEnterpriseSSHKeyAuthentication { private Map additionalProperties; /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -45,6 +45,7 @@ public class SourceNetsuiteEnterpriseSSHKeyAuthentication { @JsonProperty("tunnel_host") private String tunnelHost; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -86,7 +87,8 @@ public SourceNetsuiteEnterpriseSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + Optional.empty(), tunnelUser); } @JsonAnyGetter @@ -95,7 +97,8 @@ public Map additionalProperties() { } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -132,9 +135,10 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceNetsuiteEnterpriseSSHKeyAuthentication withAdditionalProperty(String key, Object value) { @@ -142,8 +146,7 @@ public SourceNetsuiteEnterpriseSSHKeyAuthentication withAdditionalProperty(Strin Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceNetsuiteEnterpriseSSHKeyAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -151,7 +154,8 @@ public SourceNetsuiteEnterpriseSSHKeyAuthentication withAdditionalProperties(Map } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public SourceNetsuiteEnterpriseSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -174,6 +178,7 @@ public SourceNetsuiteEnterpriseSSHKeyAuthentication withTunnelMethod(SourceNetsu return this; } + public SourceNetsuiteEnterpriseSSHKeyAuthentication withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; @@ -189,6 +194,7 @@ public SourceNetsuiteEnterpriseSSHKeyAuthentication withTunnelPort(long tunnelPo return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -207,7 +213,6 @@ public SourceNetsuiteEnterpriseSSHKeyAuthentication withTunnelUser(String tunnel return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +223,19 @@ public boolean equals(java.lang.Object o) { } SourceNetsuiteEnterpriseSSHKeyAuthentication other = (SourceNetsuiteEnterpriseSSHKeyAuthentication) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + additionalProperties, sshKey, tunnelHost, + tunnelMethod, tunnelPort, tunnelUser); } @Override @@ -247,21 +248,22 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelMethod; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } @@ -282,8 +284,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -291,6 +295,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -300,6 +305,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + public Builder tunnelMethod(SourceNetsuiteEnterpriseSchemasTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -312,6 +318,7 @@ public Builder tunnelMethod(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -338,7 +346,7 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public SourceNetsuiteEnterpriseSSHKeyAuthentication build() { if (tunnelMethod == null) { tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); @@ -346,15 +354,14 @@ public SourceNetsuiteEnterpriseSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceNetsuiteEnterpriseSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser) + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSSHTunnelMethod.java index dcd2a88d4..6d2b181e2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceNetsuiteEnterpriseSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = SourceNetsuiteEnterpriseSSHTunnelMethod._Deserializer.class) public class SourceNetsuiteEnterpriseSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceNetsuiteEnterpriseSSHTunnelMethod other = (SourceNetsuiteEnterpriseSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor.java index e3329b5ec..71336c077 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor.java @@ -19,19 +19,21 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor * - *

    Incrementally detects new inserts and updates using the <a href="https://docs.airbyte.com/understanding-airbyte/connections/incremental-append/#user-defined-cursor">cursor column</a> chosen when configuring a connection (e.g. created_at, updated_at). + *

    Incrementally detects new inserts and updates using the cursor + * column chosen when configuring a connection (e.g. created_at, updated_at). */ public class SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor_method") private Optional cursorMethod; @@ -59,9 +61,10 @@ public Optional cursorMethod() { return (Optional) cursorMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor withAdditionalProperty(String key, Object value) { @@ -69,8 +72,7 @@ public SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor withAdditionalPr Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +85,13 @@ public SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor withCursorMethod return this; } + public SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor withCursorMethod(Optional cursorMethod) { Utils.checkNotNull(cursorMethod, "cursorMethod"); this.cursorMethod = cursorMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +102,14 @@ public boolean equals(java.lang.Object o) { } SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor other = (SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.cursorMethod, other.cursorMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.cursorMethod, other.cursorMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - cursorMethod); + return Utils.enhancedHash( + additionalProperties, cursorMethod); } @Override @@ -117,13 +118,14 @@ public String toString() { "additionalProperties", additionalProperties, "cursorMethod", cursorMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional cursorMethod; - + private Builder() { // force use of static builder() method } @@ -144,6 +146,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder cursorMethod(CursorMethod cursorMethod) { Utils.checkNotNull(cursorMethod, "cursorMethod"); this.cursorMethod = Optional.ofNullable(cursorMethod); @@ -155,16 +158,18 @@ public Builder cursorMethod(Optional cursorMethod) { this.cursorMethod = cursorMethod; return this; } - + public SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor build() { if (cursorMethod == null) { cursorMethod = _SINGLETON_VALUE_CursorMethod.value(); } + return new SourceNetsuiteEnterpriseScanChangesWithUserDefinedCursor( cursorMethod) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_CursorMethod = new LazySingletonValue<>( "cursor_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethod.java index 9b818aa53..4fcd13627 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethod.java @@ -14,7 +14,7 @@ public enum SourceNetsuiteEnterpriseSchemasAuthenticationMethod { @JsonValue private final String value; - private SourceNetsuiteEnterpriseSchemasAuthenticationMethod(String value) { + SourceNetsuiteEnterpriseSchemasAuthenticationMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.java index b385134d2..5a314004c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod.java @@ -9,12 +9,12 @@ import java.util.Optional; public enum SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod { - PASSWORD_AUTHENTICATION("password_authentication"); + OAUTH2_AUTHENTICATION("oauth2_authentication"); @JsonValue private final String value; - private SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod(String value) { + SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod.java new file mode 100644 index 000000000..22e86387c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod { + PASSWORD_AUTHENTICATION("password_authentication"); + + @JsonValue + private final String value; + + SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod o: SourceNetsuiteEnterpriseSchemasAuthenticationMethodAuthenticationMethodAuthenticationMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasPasswordAuthentication.java index 4212a0536..defa76b13 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasPasswordAuthentication.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -39,6 +38,7 @@ public class SourceNetsuiteEnterpriseSchemasPasswordAuthentication { @JsonProperty("tunnel_host") private String tunnelHost; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -86,7 +86,8 @@ public SourceNetsuiteEnterpriseSchemasPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), Optional.empty(), + tunnelUser, tunnelUserPassword); } @JsonAnyGetter @@ -132,9 +133,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceNetsuiteEnterpriseSchemasPasswordAuthentication withAdditionalProperty(String key, Object value) { @@ -142,8 +144,7 @@ public SourceNetsuiteEnterpriseSchemasPasswordAuthentication withAdditionalPrope Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceNetsuiteEnterpriseSchemasPasswordAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -165,6 +166,7 @@ public SourceNetsuiteEnterpriseSchemasPasswordAuthentication withTunnelMethod(So return this; } + public SourceNetsuiteEnterpriseSchemasPasswordAuthentication withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; @@ -180,6 +182,7 @@ public SourceNetsuiteEnterpriseSchemasPasswordAuthentication withTunnelPort(long return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -207,7 +210,6 @@ public SourceNetsuiteEnterpriseSchemasPasswordAuthentication withTunnelUserPassw return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +220,19 @@ public boolean equals(java.lang.Object o) { } SourceNetsuiteEnterpriseSchemasPasswordAuthentication other = (SourceNetsuiteEnterpriseSchemasPasswordAuthentication) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + additionalProperties, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser, tunnelUserPassword); } @Override @@ -247,21 +245,22 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String tunnelHost; - + private Optional tunnelMethod; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } @@ -282,6 +281,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -291,6 +291,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + public Builder tunnelMethod(SourceNetsuiteEnterpriseSchemasTunnelMethodTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -303,6 +304,7 @@ public Builder tunnelMethod(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -330,6 +333,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -338,7 +342,7 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public SourceNetsuiteEnterpriseSchemasPasswordAuthentication build() { if (tunnelMethod == null) { tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); @@ -346,15 +350,14 @@ public SourceNetsuiteEnterpriseSchemasPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceNetsuiteEnterpriseSchemasPasswordAuthentication( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword) + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethod.java index c5a194e6b..4126847ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceNetsuiteEnterpriseSchemasTunnelMethod { @JsonValue private final String value; - private SourceNetsuiteEnterpriseSchemasTunnelMethod(String value) { + SourceNetsuiteEnterpriseSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethodTunnelMethod.java index 8100f6806..702bd0f02 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseSchemasTunnelMethodTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceNetsuiteEnterpriseSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private SourceNetsuiteEnterpriseSchemasTunnelMethodTunnelMethod(String value) { + SourceNetsuiteEnterpriseSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseTunnelMethod.java index cb32f99e9..cdf71a543 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceNetsuiteEnterpriseTunnelMethod { @JsonValue private final String value; - private SourceNetsuiteEnterpriseTunnelMethod(String value) { + SourceNetsuiteEnterpriseTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseUpdateMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseUpdateMethod.java index 7c2f3963d..9e8bc5deb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseUpdateMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNetsuiteEnterpriseUpdateMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceNetsuiteEnterpriseUpdateMethod @@ -66,12 +65,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceNetsuiteEnterpriseUpdateMethod other = (SourceNetsuiteEnterpriseUpdateMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsApi.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsApi.java index 1cd51df05..467989a4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNewsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsApi.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceNewsApi { +public class SourceNewsApi { /** * API Key */ @@ -82,7 +81,7 @@ public class SourceNewsApi { private Optional> searchIn; /** - * Search query. See https://newsapi.org/docs/endpoints/everything for + * Search query. See https://newsapi.org/docs/endpoints/everything for * information. */ @JsonInclude(Include.NON_ABSENT) @@ -97,6 +96,7 @@ public class SourceNewsApi { @JsonProperty("sort_by") private Optional sortBy; + @JsonProperty("sourceType") private NewsApi sourceType; @@ -161,7 +161,10 @@ public SourceNewsApi( public SourceNewsApi( String apiKey) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** @@ -241,7 +244,7 @@ public Optional> searchIn() { } /** - * Search query. See https://newsapi.org/docs/endpoints/everything for + * Search query. See https://newsapi.org/docs/endpoints/everything for * information. */ @JsonIgnore @@ -285,9 +288,10 @@ public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -307,6 +311,7 @@ public SourceNewsApi withCategory(Category category) { return this; } + /** * The category you want to get top headlines for. */ @@ -326,6 +331,7 @@ public SourceNewsApi withCountry(Country country) { return this; } + /** * The 2-letter ISO 3166-1 code of the country you want to get headlines * for. You can't mix this with the sources parameter. @@ -346,6 +352,7 @@ public SourceNewsApi withDomains(List domains) { return this; } + /** * A comma-seperated string of domains (eg bbc.co.uk, techcrunch.com, * engadget.com) to restrict the search to. @@ -366,6 +373,7 @@ public SourceNewsApi withEndDate(String endDate) { return this; } + /** * A date and optional time for the newest article allowed. This should * be in ISO 8601 format. @@ -386,6 +394,7 @@ public SourceNewsApi withExcludeDomains(List excludeDomains) { return this; } + /** * A comma-seperated string of domains (eg bbc.co.uk, techcrunch.com, * engadget.com) to remove from the results. @@ -406,6 +415,7 @@ public SourceNewsApi withLanguage(Language language) { return this; } + /** * The 2-letter ISO-639-1 code of the language you want to get headlines * for. Possible options: ar de en es fr he it nl no pt ru se ud zh. @@ -426,6 +436,7 @@ public SourceNewsApi withSearchIn(List searchIn) { return this; } + /** * Where to apply search query. Possible values are: title, description, * content. @@ -437,7 +448,7 @@ public SourceNewsApi withSearchIn(Optional> searchIn) { } /** - * Search query. See https://newsapi.org/docs/endpoints/everything for + * Search query. See https://newsapi.org/docs/endpoints/everything for * information. */ public SourceNewsApi withSearchQuery(String searchQuery) { @@ -446,8 +457,9 @@ public SourceNewsApi withSearchQuery(String searchQuery) { return this; } + /** - * Search query. See https://newsapi.org/docs/endpoints/everything for + * Search query. See https://newsapi.org/docs/endpoints/everything for * information. */ public SourceNewsApi withSearchQuery(Optional searchQuery) { @@ -466,6 +478,7 @@ public SourceNewsApi withSortBy(SortBy sortBy) { return this; } + /** * The order to sort the articles in. Possible options: relevancy, * popularity, publishedAt. @@ -488,6 +501,7 @@ public SourceNewsApi withSources(List sources) { return this; } + /** * Identifiers (maximum 20) for the news sources or blogs you want * headlines from. Use the `/sources` endpoint to locate these @@ -510,6 +524,7 @@ public SourceNewsApi withStartDate(String startDate) { return this; } + /** * A date and optional time for the oldest article allowed. This should * be in ISO 8601 format. @@ -520,7 +535,6 @@ public SourceNewsApi withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -531,36 +545,28 @@ public boolean equals(java.lang.Object o) { } SourceNewsApi other = (SourceNewsApi) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.category, other.category) && - Objects.deepEquals(this.country, other.country) && - Objects.deepEquals(this.domains, other.domains) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.excludeDomains, other.excludeDomains) && - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.searchIn, other.searchIn) && - Objects.deepEquals(this.searchQuery, other.searchQuery) && - Objects.deepEquals(this.sortBy, other.sortBy) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.sources, other.sources) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.category, other.category) && + Utils.enhancedDeepEquals(this.country, other.country) && + Utils.enhancedDeepEquals(this.domains, other.domains) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.excludeDomains, other.excludeDomains) && + Utils.enhancedDeepEquals(this.language, other.language) && + Utils.enhancedDeepEquals(this.searchIn, other.searchIn) && + Utils.enhancedDeepEquals(this.searchQuery, other.searchQuery) && + Utils.enhancedDeepEquals(this.sortBy, other.sortBy) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.sources, other.sources) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - category, - country, - domains, - endDate, - excludeDomains, - language, - searchIn, - searchQuery, - sortBy, - sourceType, - sources, + return Utils.enhancedHash( + apiKey, category, country, + domains, endDate, excludeDomains, + language, searchIn, searchQuery, + sortBy, sourceType, sources, startDate); } @@ -581,37 +587,39 @@ public String toString() { "sources", sources, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional category; - + private Optional country; - + private Optional> domains = Optional.empty(); - + private Optional endDate = Optional.empty(); - + private Optional> excludeDomains = Optional.empty(); - + private Optional language = Optional.empty(); - + private Optional> searchIn = Optional.empty(); - + private Optional searchQuery = Optional.empty(); - + private Optional sortBy; - + private Optional> sources = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -621,6 +629,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The category you want to get top headlines for. */ @@ -639,6 +648,7 @@ public Builder category(Optional category) { return this; } + /** * The 2-letter ISO 3166-1 code of the country you want to get headlines * for. You can't mix this with the sources parameter. @@ -659,6 +669,7 @@ public Builder country(Optional country) { return this; } + /** * A comma-seperated string of domains (eg bbc.co.uk, techcrunch.com, * engadget.com) to restrict the search to. @@ -679,6 +690,7 @@ public Builder domains(Optional> domains) { return this; } + /** * A date and optional time for the newest article allowed. This should * be in ISO 8601 format. @@ -699,6 +711,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * A comma-seperated string of domains (eg bbc.co.uk, techcrunch.com, * engadget.com) to remove from the results. @@ -719,6 +732,7 @@ public Builder excludeDomains(Optional> excludeDomains) { return this; } + /** * The 2-letter ISO-639-1 code of the language you want to get headlines * for. Possible options: ar de en es fr he it nl no pt ru se ud zh. @@ -739,6 +753,7 @@ public Builder language(Optional language) { return this; } + /** * Where to apply search query. Possible values are: title, description, * content. @@ -759,8 +774,9 @@ public Builder searchIn(Optional> searchIn) { return this; } + /** - * Search query. See https://newsapi.org/docs/endpoints/everything for + * Search query. See https://newsapi.org/docs/endpoints/everything for * information. */ public Builder searchQuery(String searchQuery) { @@ -770,7 +786,7 @@ public Builder searchQuery(String searchQuery) { } /** - * Search query. See https://newsapi.org/docs/endpoints/everything for + * Search query. See https://newsapi.org/docs/endpoints/everything for * information. */ public Builder searchQuery(Optional searchQuery) { @@ -779,6 +795,7 @@ public Builder searchQuery(Optional searchQuery) { return this; } + /** * The order to sort the articles in. Possible options: relevancy, * popularity, publishedAt. @@ -799,6 +816,7 @@ public Builder sortBy(Optional sortBy) { return this; } + /** * Identifiers (maximum 20) for the news sources or blogs you want * headlines from. Use the `/sources` endpoint to locate these @@ -823,6 +841,7 @@ public Builder sources(Optional> sources) { return this; } + /** * A date and optional time for the oldest article allowed. This should * be in ISO 8601 format. @@ -842,7 +861,7 @@ public Builder startDate(Optional startDate) { this.startDate = startDate; return this; } - + public SourceNewsApi build() { if (category == null) { category = _SINGLETON_VALUE_Category.value(); @@ -853,21 +872,15 @@ public SourceNewsApi build() { if (sortBy == null) { sortBy = _SINGLETON_VALUE_SortBy.value(); } + return new SourceNewsApi( - apiKey, - category, - country, - domains, - endDate, - excludeDomains, - language, - searchIn, - searchQuery, - sortBy, - sources, - startDate); + apiKey, category, country, + domains, endDate, excludeDomains, + language, searchIn, searchQuery, + sortBy, sources, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Category = new LazySingletonValue<>( "category", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsdata.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsdata.java index c0293fc56..f027c8c60 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNewsdata.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsdata.java @@ -16,9 +16,9 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceNewsdata { @JsonInclude(Include.NON_ABSENT) @@ -59,6 +59,7 @@ public class SourceNewsdata { @JsonProperty("language") private Optional> language; + @JsonProperty("sourceType") private Newsdata sourceType; @@ -87,7 +88,8 @@ public SourceNewsdata( public SourceNewsdata( String apiKey) { - this(Optional.empty(), apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), apiKey, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } @SuppressWarnings("unchecked") @@ -145,9 +147,10 @@ public Newsdata sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceNewsdata withOneOf(Object oneOf) { Utils.checkNotNull(oneOf, "oneOf"); @@ -155,6 +158,7 @@ public SourceNewsdata withOneOf(Object oneOf) { return this; } + public SourceNewsdata withOneOf(Optional oneOf) { Utils.checkNotNull(oneOf, "oneOf"); this.oneOf = oneOf; @@ -179,6 +183,7 @@ public SourceNewsdata withCategory(List category) { return this; } + /** * Categories (maximum 5) to restrict the search to. */ @@ -197,6 +202,7 @@ public SourceNewsdata withCountry(List country) { return this; } + /** * 2-letter ISO 3166-1 countries (maximum 5) to restrict the search to. */ @@ -215,6 +221,7 @@ public SourceNewsdata withDomain(List domain) { return this; } + /** * Domains (maximum 5) to restrict the search to. Use the sources stream to find top sources id. */ @@ -233,6 +240,7 @@ public SourceNewsdata withLanguage(List language) { return this; } + /** * Languages (maximum 5) to restrict the search to. */ @@ -242,7 +250,6 @@ public SourceNewsdata withLanguage(Optional oneOf = Optional.empty(); - + private String apiKey; - + private Optional> category = Optional.empty(); - + private Optional> country = Optional.empty(); - + private Optional> domain = Optional.empty(); - + private Optional> language = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder oneOf(Object oneOf) { Utils.checkNotNull(oneOf, "oneOf"); this.oneOf = Optional.ofNullable(oneOf); @@ -316,6 +321,7 @@ public Builder oneOf(Optional oneOf) { return this; } + /** * API Key */ @@ -325,6 +331,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Categories (maximum 5) to restrict the search to. */ @@ -343,6 +350,7 @@ public Builder category(Optional> categor return this; } + /** * 2-letter ISO 3166-1 countries (maximum 5) to restrict the search to. */ @@ -361,6 +369,7 @@ public Builder country(Optional> country) return this; } + /** * Domains (maximum 5) to restrict the search to. Use the sources stream to find top sources id. */ @@ -379,6 +388,7 @@ public Builder domain(Optional> domain) { return this; } + /** * Languages (maximum 5) to restrict the search to. */ @@ -396,17 +406,15 @@ public Builder language(Optional> languag this.language = language; return this; } - + public SourceNewsdata build() { + return new SourceNewsdata( - oneOf, - apiKey, - category, - country, - domain, - language); + oneOf, apiKey, category, + country, domain, language); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCategory.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCategory.java index 778f72fba..66476dfff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCategory.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCategory.java @@ -24,7 +24,7 @@ public enum SourceNewsdataCategory { @JsonValue private final String value; - private SourceNewsdataCategory(String value) { + SourceNewsdataCategory(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCountry.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCountry.java index 7674ceda6..19b8f8a9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCountry.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataCountry.java @@ -89,7 +89,7 @@ public enum SourceNewsdataCountry { @JsonValue private final String value; - private SourceNewsdataCountry(String value) { + SourceNewsdataCountry(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataIo.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataIo.java index ef68e3ddd..205463624 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataIo.java @@ -18,9 +18,9 @@ import java.time.LocalDate; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceNewsdataIo { @JsonProperty("api_key") @@ -34,14 +34,16 @@ public class SourceNewsdataIo { private Optional> categories; /** - * Search the news articles from a specific country. You can add up to 5 countries in a single query. Example: au, jp, br + * Search the news articles from a specific country. You can add up to 5 countries in a single query. + * Example: au, jp, br */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("countries") private Optional> countries; /** - * Search the news articles for specific domains or news sources. You can add up to 5 domains in a single query. + * Search the news articles for specific domains or news sources. You can add up to 5 domains in a + * single query. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("domains") @@ -62,15 +64,18 @@ public class SourceNewsdataIo { private Optional> languages; /** - * Search news articles for specific keywords or phrases present in the news title, content, URL, meta keywords and meta description. + * Search news articles for specific keywords or phrases present in the news title, content, URL, meta + * keywords and meta description. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("search_query") private Optional searchQuery; + @JsonProperty("sourceType") private NewsdataIo sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -106,7 +111,9 @@ public SourceNewsdataIo( public SourceNewsdataIo( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), startDate); } @JsonIgnore @@ -124,7 +131,8 @@ public Optional> categories() { } /** - * Search the news articles from a specific country. You can add up to 5 countries in a single query. Example: au, jp, br + * Search the news articles from a specific country. You can add up to 5 countries in a single query. + * Example: au, jp, br */ @SuppressWarnings("unchecked") @JsonIgnore @@ -133,7 +141,8 @@ public Optional> countries() { } /** - * Search the news articles for specific domains or news sources. You can add up to 5 domains in a single query. + * Search the news articles for specific domains or news sources. You can add up to 5 domains in a + * single query. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -159,7 +168,8 @@ public Optional> languages() { } /** - * Search news articles for specific keywords or phrases present in the news title, content, URL, meta keywords and meta description. + * Search news articles for specific keywords or phrases present in the news title, content, URL, meta + * keywords and meta description. */ @JsonIgnore public Optional searchQuery() { @@ -176,9 +186,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceNewsdataIo withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -195,6 +206,7 @@ public SourceNewsdataIo withCategories(List categories) { return this; } + /** * Search the news articles for a specific category. You can add up to 5 categories in a single query. */ @@ -205,7 +217,8 @@ public SourceNewsdataIo withCategories(Optional> categori } /** - * Search the news articles from a specific country. You can add up to 5 countries in a single query. Example: au, jp, br + * Search the news articles from a specific country. You can add up to 5 countries in a single query. + * Example: au, jp, br */ public SourceNewsdataIo withCountries(List countries) { Utils.checkNotNull(countries, "countries"); @@ -213,8 +226,10 @@ public SourceNewsdataIo withCountries(List countries) { return this; } + /** - * Search the news articles from a specific country. You can add up to 5 countries in a single query. Example: au, jp, br + * Search the news articles from a specific country. You can add up to 5 countries in a single query. + * Example: au, jp, br */ public SourceNewsdataIo withCountries(Optional> countries) { Utils.checkNotNull(countries, "countries"); @@ -223,7 +238,8 @@ public SourceNewsdataIo withCountries(Optional> countries } /** - * Search the news articles for specific domains or news sources. You can add up to 5 domains in a single query. + * Search the news articles for specific domains or news sources. You can add up to 5 domains in a + * single query. */ public SourceNewsdataIo withDomains(List domains) { Utils.checkNotNull(domains, "domains"); @@ -231,8 +247,10 @@ public SourceNewsdataIo withDomains(List domains) { return this; } + /** - * Search the news articles for specific domains or news sources. You can add up to 5 domains in a single query. + * Search the news articles for specific domains or news sources. You can add up to 5 domains in a + * single query. */ public SourceNewsdataIo withDomains(Optional> domains) { Utils.checkNotNull(domains, "domains"); @@ -249,6 +267,7 @@ public SourceNewsdataIo withEndDate(LocalDate endDate) { return this; } + /** * Choose an end date. Now UTC is default value */ @@ -267,6 +286,7 @@ public SourceNewsdataIo withLanguages(List languages) { return this; } + /** * Search the news articles for a specific language. You can add up to 5 languages in a single query. */ @@ -277,7 +297,8 @@ public SourceNewsdataIo withLanguages(Optional> languages } /** - * Search news articles for specific keywords or phrases present in the news title, content, URL, meta keywords and meta description. + * Search news articles for specific keywords or phrases present in the news title, content, URL, meta + * keywords and meta description. */ public SourceNewsdataIo withSearchQuery(String searchQuery) { Utils.checkNotNull(searchQuery, "searchQuery"); @@ -285,8 +306,10 @@ public SourceNewsdataIo withSearchQuery(String searchQuery) { return this; } + /** - * Search news articles for specific keywords or phrases present in the news title, content, URL, meta keywords and meta description. + * Search news articles for specific keywords or phrases present in the news title, content, URL, meta + * keywords and meta description. */ public SourceNewsdataIo withSearchQuery(Optional searchQuery) { Utils.checkNotNull(searchQuery, "searchQuery"); @@ -300,7 +323,6 @@ public SourceNewsdataIo withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -311,29 +333,23 @@ public boolean equals(java.lang.Object o) { } SourceNewsdataIo other = (SourceNewsdataIo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.categories, other.categories) && - Objects.deepEquals(this.countries, other.countries) && - Objects.deepEquals(this.domains, other.domains) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.languages, other.languages) && - Objects.deepEquals(this.searchQuery, other.searchQuery) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.categories, other.categories) && + Utils.enhancedDeepEquals(this.countries, other.countries) && + Utils.enhancedDeepEquals(this.domains, other.domains) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.languages, other.languages) && + Utils.enhancedDeepEquals(this.searchQuery, other.searchQuery) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - categories, - countries, - domains, - endDate, - languages, - searchQuery, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, categories, countries, + domains, endDate, languages, + searchQuery, sourceType, startDate); } @Override @@ -349,35 +365,38 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional> categories = Optional.empty(); - + private Optional> countries = Optional.empty(); - + private Optional> domains = Optional.empty(); - + private Optional endDate = Optional.empty(); - + private Optional> languages = Optional.empty(); - + private Optional searchQuery = Optional.empty(); - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Search the news articles for a specific category. You can add up to 5 categories in a single query. */ @@ -396,8 +415,10 @@ public Builder categories(Optional> categories) { return this; } + /** - * Search the news articles from a specific country. You can add up to 5 countries in a single query. Example: au, jp, br + * Search the news articles from a specific country. You can add up to 5 countries in a single query. + * Example: au, jp, br */ public Builder countries(List countries) { Utils.checkNotNull(countries, "countries"); @@ -406,7 +427,8 @@ public Builder countries(List countries) { } /** - * Search the news articles from a specific country. You can add up to 5 countries in a single query. Example: au, jp, br + * Search the news articles from a specific country. You can add up to 5 countries in a single query. + * Example: au, jp, br */ public Builder countries(Optional> countries) { Utils.checkNotNull(countries, "countries"); @@ -414,8 +436,10 @@ public Builder countries(Optional> countries) { return this; } + /** - * Search the news articles for specific domains or news sources. You can add up to 5 domains in a single query. + * Search the news articles for specific domains or news sources. You can add up to 5 domains in a + * single query. */ public Builder domains(List domains) { Utils.checkNotNull(domains, "domains"); @@ -424,7 +448,8 @@ public Builder domains(List domains) { } /** - * Search the news articles for specific domains or news sources. You can add up to 5 domains in a single query. + * Search the news articles for specific domains or news sources. You can add up to 5 domains in a + * single query. */ public Builder domains(Optional> domains) { Utils.checkNotNull(domains, "domains"); @@ -432,6 +457,7 @@ public Builder domains(Optional> domains) { return this; } + /** * Choose an end date. Now UTC is default value */ @@ -450,6 +476,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * Search the news articles for a specific language. You can add up to 5 languages in a single query. */ @@ -468,8 +495,10 @@ public Builder languages(Optional> languages) { return this; } + /** - * Search news articles for specific keywords or phrases present in the news title, content, URL, meta keywords and meta description. + * Search news articles for specific keywords or phrases present in the news title, content, URL, meta + * keywords and meta description. */ public Builder searchQuery(String searchQuery) { Utils.checkNotNull(searchQuery, "searchQuery"); @@ -478,7 +507,8 @@ public Builder searchQuery(String searchQuery) { } /** - * Search news articles for specific keywords or phrases present in the news title, content, URL, meta keywords and meta description. + * Search news articles for specific keywords or phrases present in the news title, content, URL, meta + * keywords and meta description. */ public Builder searchQuery(Optional searchQuery) { Utils.checkNotNull(searchQuery, "searchQuery"); @@ -486,24 +516,22 @@ public Builder searchQuery(Optional searchQuery) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceNewsdataIo build() { + return new SourceNewsdataIo( - apiKey, - categories, - countries, - domains, - endDate, - languages, - searchQuery, - startDate); + apiKey, categories, countries, + domains, endDate, languages, + searchQuery, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataLanguage.java b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataLanguage.java index 28c4d0f30..12c7ccf67 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNewsdataLanguage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNewsdataLanguage.java @@ -58,7 +58,7 @@ public enum SourceNewsdataLanguage { @JsonValue private final String value; - private SourceNewsdataLanguage(String value) { + SourceNewsdataLanguage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNexiopay.java b/src/main/java/com/airbyte/api/models/shared/SourceNexiopay.java index 447df99d2..be325f8cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNexiopay.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNexiopay.java @@ -15,20 +15,22 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceNexiopay { +public class SourceNexiopay { /** - * Your Nexio API key (password). You can find it in the Nexio Dashboard under Settings > User Management. Select the API user and copy the API key. + * Your Nexio API key (password). You can find it in the Nexio Dashboard under Settings > User + * Management. Select the API user and copy the API key. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Nexiopay sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public class SourceNexiopay { private Optional subdomain; /** - * Your Nexio API username. You can find it in the Nexio Dashboard under Settings > User Management. Select the API user and copy the username. + * Your Nexio API username. You can find it in the Nexio Dashboard under Settings > User Management. + * Select the API user and copy the username. */ @JsonProperty("username") private String username; @@ -66,11 +69,13 @@ public SourceNexiopay( String apiKey, OffsetDateTime startDate, String username) { - this(apiKey, startDate, Optional.empty(), username); + this(apiKey, startDate, Optional.empty(), + username); } /** - * Your Nexio API key (password). You can find it in the Nexio Dashboard under Settings > User Management. Select the API user and copy the API key. + * Your Nexio API key (password). You can find it in the Nexio Dashboard under Settings > User + * Management. Select the API user and copy the API key. */ @JsonIgnore public String apiKey() { @@ -97,19 +102,22 @@ public Optional subdomain() { } /** - * Your Nexio API username. You can find it in the Nexio Dashboard under Settings > User Management. Select the API user and copy the username. + * Your Nexio API username. You can find it in the Nexio Dashboard under Settings > User Management. + * Select the API user and copy the username. */ @JsonIgnore public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Nexio API key (password). You can find it in the Nexio Dashboard under Settings > User Management. Select the API user and copy the API key. + * Your Nexio API key (password). You can find it in the Nexio Dashboard under Settings > User + * Management. Select the API user and copy the API key. */ public SourceNexiopay withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -132,6 +140,7 @@ public SourceNexiopay withSubdomain(Subdomain subdomain) { return this; } + /** * The subdomain for the Nexio API environment, such as 'nexiopaysandbox' or 'nexiopay'. */ @@ -142,7 +151,8 @@ public SourceNexiopay withSubdomain(Optional subdomain) { } /** - * Your Nexio API username. You can find it in the Nexio Dashboard under Settings > User Management. Select the API user and copy the username. + * Your Nexio API username. You can find it in the Nexio Dashboard under Settings > User Management. + * Select the API user and copy the username. */ public SourceNexiopay withUsername(String username) { Utils.checkNotNull(username, "username"); @@ -150,7 +160,6 @@ public SourceNexiopay withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -161,21 +170,18 @@ public boolean equals(java.lang.Object o) { } SourceNexiopay other = (SourceNexiopay) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.subdomain, other.subdomain) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate, - subdomain, - username); + return Utils.enhancedHash( + apiKey, sourceType, startDate, + subdomain, username); } @Override @@ -187,23 +193,26 @@ public String toString() { "subdomain", subdomain, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Optional subdomain; - + private String username; - + private Builder() { // force use of static builder() method } + /** - * Your Nexio API key (password). You can find it in the Nexio Dashboard under Settings > User Management. Select the API user and copy the API key. + * Your Nexio API key (password). You can find it in the Nexio Dashboard under Settings > User + * Management. Select the API user and copy the API key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -211,12 +220,14 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * The subdomain for the Nexio API environment, such as 'nexiopaysandbox' or 'nexiopay'. */ @@ -235,26 +246,28 @@ public Builder subdomain(Optional subdomain) { return this; } + /** - * Your Nexio API username. You can find it in the Nexio Dashboard under Settings > User Management. Select the API user and copy the username. + * Your Nexio API username. You can find it in the Nexio Dashboard under Settings > User Management. + * Select the API user and copy the username. */ public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceNexiopay build() { if (subdomain == null) { subdomain = _SINGLETON_VALUE_Subdomain.value(); } + return new SourceNexiopay( - apiKey, - startDate, - subdomain, + apiKey, startDate, subdomain, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNinjaoneRmm.java b/src/main/java/com/airbyte/api/models/shared/SourceNinjaoneRmm.java index 5a53580c9..6bbc8998c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNinjaoneRmm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNinjaoneRmm.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceNinjaoneRmm { +public class SourceNinjaoneRmm { /** - * Token could be generated natively by authorize section of NinjaOne swagger documentation `https://app.ninjarmm.com/apidocs/?links.active=authorization` + * Token could be generated natively by authorize section of NinjaOne swagger documentation + * `https://app.ninjarmm.com/apidocs/?links.active=authorization` */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private NinjaoneRmm sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public SourceNinjaoneRmm( } /** - * Token could be generated natively by authorize section of NinjaOne swagger documentation `https://app.ninjarmm.com/apidocs/?links.active=authorization` + * Token could be generated natively by authorize section of NinjaOne swagger documentation + * `https://app.ninjarmm.com/apidocs/?links.active=authorization` */ @JsonIgnore public String apiKey() { @@ -57,12 +60,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Token could be generated natively by authorize section of NinjaOne swagger documentation `https://app.ninjarmm.com/apidocs/?links.active=authorization` + * Token could be generated natively by authorize section of NinjaOne swagger documentation + * `https://app.ninjarmm.com/apidocs/?links.active=authorization` */ public SourceNinjaoneRmm withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -76,7 +81,6 @@ public SourceNinjaoneRmm withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceNinjaoneRmm other = (SourceNinjaoneRmm) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,19 +109,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Token could be generated natively by authorize section of NinjaOne swagger documentation `https://app.ninjarmm.com/apidocs/?links.active=authorization` + * Token could be generated natively by authorize section of NinjaOne swagger documentation + * `https://app.ninjarmm.com/apidocs/?links.active=authorization` */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -127,18 +132,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceNinjaoneRmm build() { + return new SourceNinjaoneRmm( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNocrm.java b/src/main/java/com/airbyte/api/models/shared/SourceNocrm.java index 391ca4c08..85b1609c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNocrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNocrm.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceNocrm { +public class SourceNocrm { /** * API key to use. Generate it from the admin section of your noCRM.io account. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Nocrm sourceType; @@ -62,9 +62,10 @@ public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Generate it from the admin section of your noCRM.io account. @@ -84,7 +85,6 @@ public SourceNocrm withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceNocrm other = (SourceNocrm) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - subdomain); + return Utils.enhancedHash( + apiKey, sourceType, subdomain); } @Override @@ -115,17 +113,19 @@ public String toString() { "sourceType", sourceType, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String subdomain; - + private Builder() { // force use of static builder() method } + /** * API key to use. Generate it from the admin section of your noCRM.io account. */ @@ -135,6 +135,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The subdomain specific to your noCRM.io account, e.g., 'yourcompany' in 'yourcompany.nocrm.io'. */ @@ -143,13 +144,14 @@ public Builder subdomain(String subdomain) { this.subdomain = subdomain; return this; } - + public SourceNocrm build() { + return new SourceNocrm( - apiKey, - subdomain); + apiKey, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java b/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java index fb4d5c910..a4b223d77 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNorthpassLms.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceNorthpassLms { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private NorthpassLms sourceType; @@ -39,9 +40,10 @@ public NorthpassLms sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceNorthpassLms withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceNorthpassLms withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceNorthpassLms other = (SourceNorthpassLms) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceNorthpassLms build() { + return new SourceNorthpassLms( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotion.java b/src/main/java/com/airbyte/api/models/shared/SourceNotion.java index c91192921..d09b08cff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotion.java @@ -15,24 +15,28 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceNotion { +public class SourceNotion { /** - * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more information. + * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more + * information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceType") private Optional sourceType; /** - * UTC date and time in the format YYYY-MM-DDTHH:MM:SS.000Z. During incremental sync, any data generated before this date will not be replicated. If left blank, the start date will be set to 2 years before the present date. + * UTC date and time in the format YYYY-MM-DDTHH:MM:SS.000Z. During incremental sync, any data + * generated before this date will not be replicated. If left blank, the start date will be set to 2 + * years before the present date. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -54,7 +58,9 @@ public SourceNotion() { } /** - * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more information. + * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more + * information. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -69,19 +75,24 @@ public Optional sourceType() { } /** - * UTC date and time in the format YYYY-MM-DDTHH:MM:SS.000Z. During incremental sync, any data generated before this date will not be replicated. If left blank, the start date will be set to 2 years before the present date. + * UTC date and time in the format YYYY-MM-DDTHH:MM:SS.000Z. During incremental sync, any data + * generated before this date will not be replicated. If left blank, the start date will be set to 2 + * years before the present date. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more information. + * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more + * information. */ public SourceNotion withCredentials(SourceNotionAuthenticationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -89,8 +100,11 @@ public SourceNotion withCredentials(SourceNotionAuthenticationMethod credentials return this; } + /** - * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more information. + * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more + * information. */ public SourceNotion withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -99,7 +113,9 @@ public SourceNotion withCredentials(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -116,7 +135,6 @@ public SourceNotion withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,17 +145,15 @@ public boolean equals(java.lang.Object o) { } SourceNotion other = (SourceNotion) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - credentials, - sourceType, - startDate); + return Utils.enhancedHash( + credentials, sourceType, startDate); } @Override @@ -147,19 +163,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more information. + * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more + * information. */ public Builder credentials(SourceNotionAuthenticationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -168,7 +188,9 @@ public Builder credentials(SourceNotionAuthenticationMethod credentials) { } /** - * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more information. + * Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more + * information. */ public Builder credentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -176,8 +198,11 @@ public Builder credentials(Optional return this; } + /** - * UTC date and time in the format YYYY-MM-DDTHH:MM:SS.000Z. During incremental sync, any data generated before this date will not be replicated. If left blank, the start date will be set to 2 years before the present date. + * UTC date and time in the format YYYY-MM-DDTHH:MM:SS.000Z. During incremental sync, any data + * generated before this date will not be replicated. If left blank, the start date will be set to 2 + * years before the present date. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -186,20 +211,23 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format YYYY-MM-DDTHH:MM:SS.000Z. During incremental sync, any data generated before this date will not be replicated. If left blank, the start date will be set to 2 years before the present date. + * UTC date and time in the format YYYY-MM-DDTHH:MM:SS.000Z. During incremental sync, any data + * generated before this date will not be replicated. If left blank, the start date will be set to 2 + * years before the present date. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceNotion build() { + return new SourceNotion( - credentials, - startDate); + credentials, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionAccessToken.java index 5aafb4516..7be5f5bf3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionAccessToken.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceNotionAccessToken { @@ -19,7 +19,9 @@ public class SourceNotionAccessToken { private SourceNotionSchemasAuthType authType; /** - * The Access Token for your private Notion integration. See the <a href='https://docs.airbyte.com/integrations/sources/notion#step-1-create-an-integration-in-notion'>docs</a> for more information on how to obtain this token. + * The Access Token for your private Notion integration. See the <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-1-create-an-integration-in-notion'>docs</a> + * for more information on how to obtain this token. */ @JsonProperty("token") private String token; @@ -38,19 +40,24 @@ public SourceNotionSchemasAuthType authType() { } /** - * The Access Token for your private Notion integration. See the <a href='https://docs.airbyte.com/integrations/sources/notion#step-1-create-an-integration-in-notion'>docs</a> for more information on how to obtain this token. + * The Access Token for your private Notion integration. See the <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-1-create-an-integration-in-notion'>docs</a> + * for more information on how to obtain this token. */ @JsonIgnore public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Access Token for your private Notion integration. See the <a href='https://docs.airbyte.com/integrations/sources/notion#step-1-create-an-integration-in-notion'>docs</a> for more information on how to obtain this token. + * The Access Token for your private Notion integration. See the <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-1-create-an-integration-in-notion'>docs</a> + * for more information on how to obtain this token. */ public SourceNotionAccessToken withToken(String token) { Utils.checkNotNull(token, "token"); @@ -58,7 +65,6 @@ public SourceNotionAccessToken withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +75,14 @@ public boolean equals(java.lang.Object o) { } SourceNotionAccessToken other = (SourceNotionAccessToken) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - authType, - token); + return Utils.enhancedHash( + authType, token); } @Override @@ -86,29 +91,35 @@ public String toString() { "authType", authType, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String token; - + private Builder() { // force use of static builder() method } + /** - * The Access Token for your private Notion integration. See the <a href='https://docs.airbyte.com/integrations/sources/notion#step-1-create-an-integration-in-notion'>docs</a> for more information on how to obtain this token. + * The Access Token for your private Notion integration. See the <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-1-create-an-integration-in-notion'>docs</a> + * for more information on how to obtain this token. */ public Builder token(String token) { Utils.checkNotNull(token, "token"); this.token = token; return this; } - + public SourceNotionAccessToken build() { + return new SourceNotionAccessToken( token); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java index abee7b539..fc9ce3d9a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthType.java @@ -14,7 +14,7 @@ public enum SourceNotionAuthType { @JsonValue private final String value; - private SourceNotionAuthType(String value) { + SourceNotionAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthenticationMethod.java index bab08e2fe..24b1433c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionAuthenticationMethod.java @@ -14,12 +14,13 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceNotionAuthenticationMethod * - *

    Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more information. + *

    Choose either OAuth (recommended for Airbyte Cloud) or Access Token. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#setup-guide'>docs</a> for more + * information. */ @JsonDeserialize(using = SourceNotionAuthenticationMethod._Deserializer.class) public class SourceNotionAuthenticationMethod { @@ -72,12 +73,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceNotionAuthenticationMethod other = (SourceNotionAuthenticationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java index e00a122d6..97d0ba002 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionNotion.java @@ -14,7 +14,7 @@ public enum SourceNotionNotion { @JsonValue private final String value; - private SourceNotionNotion(String value) { + SourceNotionNotion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionOAuth20.java index 11ae81f52..cd7f63a8e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionOAuth20.java @@ -11,27 +11,33 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceNotionOAuth20 { +public class SourceNotionOAuth20 { /** - * The Access Token received by completing the OAuth flow for your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Access Token received by completing the OAuth flow for your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("auth_type") private SourceNotionAuthType authType; /** - * The Client ID of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client ID of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ @JsonProperty("client_id") private String clientId; /** - * The Client Secret of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client Secret of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ @JsonProperty("client_secret") private String clientSecret; @@ -51,7 +57,9 @@ public SourceNotionOAuth20( } /** - * The Access Token received by completing the OAuth flow for your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Access Token received by completing the OAuth flow for your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ @JsonIgnore public String accessToken() { @@ -64,7 +72,9 @@ public SourceNotionAuthType authType() { } /** - * The Client ID of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client ID of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ @JsonIgnore public String clientId() { @@ -72,19 +82,24 @@ public String clientId() { } /** - * The Client Secret of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client Secret of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ @JsonIgnore public String clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Access Token received by completing the OAuth flow for your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Access Token received by completing the OAuth flow for your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public SourceNotionOAuth20 withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -93,7 +108,9 @@ public SourceNotionOAuth20 withAccessToken(String accessToken) { } /** - * The Client ID of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client ID of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public SourceNotionOAuth20 withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -102,7 +119,9 @@ public SourceNotionOAuth20 withClientId(String clientId) { } /** - * The Client Secret of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client Secret of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public SourceNotionOAuth20 withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -110,7 +129,6 @@ public SourceNotionOAuth20 withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +139,16 @@ public boolean equals(java.lang.Object o) { } SourceNotionOAuth20 other = (SourceNotionOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, + return Utils.enhancedHash( + accessToken, authType, clientId, clientSecret); } @@ -144,21 +160,25 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + /** - * The Access Token received by completing the OAuth flow for your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Access Token received by completing the OAuth flow for your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -166,8 +186,11 @@ public Builder accessToken(String accessToken) { return this; } + /** - * The Client ID of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client ID of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -175,22 +198,25 @@ public Builder clientId(String clientId) { return this; } + /** - * The Client Secret of your Notion integration. See our <a href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> for more information. + * The Client Secret of your Notion integration. See our <a + * href='https://docs.airbyte.com/integrations/sources/notion#step-2-set-permissions-and-acquire-authorization-credentials'>docs</a> + * for more information. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourceNotionOAuth20 build() { + return new SourceNotionOAuth20( - accessToken, - clientId, - clientSecret); + accessToken, clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java index f9a7dc0f4..884ecbc0f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNotionSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceNotionSchemasAuthType { @JsonValue private final String value; - private SourceNotionSchemasAuthType(String value) { + SourceNotionSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNutshell.java b/src/main/java/com/airbyte/api/models/shared/SourceNutshell.java index 2fbe2611a..93a7dfcc9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNutshell.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNutshell.java @@ -13,18 +13,20 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceNutshell { @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Nutshell sourceType; + @JsonProperty("username") private String username; @@ -59,9 +61,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceNutshell withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -69,6 +72,7 @@ public SourceNutshell withPassword(String password) { return this; } + public SourceNutshell withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -81,7 +85,6 @@ public SourceNutshell withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -92,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceNutshell other = (SourceNutshell) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - username); + return Utils.enhancedHash( + password, sourceType, username); } @Override @@ -112,17 +113,19 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -135,18 +138,20 @@ public Builder password(Optional password) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceNutshell build() { + return new SourceNutshell( - password, - username); + password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNylas.java b/src/main/java/com/airbyte/api/models/shared/SourceNylas.java index d0d7878af..30b99b4b0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNylas.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNylas.java @@ -12,22 +12,26 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceNylas { @JsonProperty("api_key") private String apiKey; + @JsonProperty("api_server") private APIServer apiServer; + @JsonProperty("end_date") private OffsetDateTime endDate; + @JsonProperty("sourceType") private Nylas sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -73,9 +77,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceNylas withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -101,7 +106,6 @@ public SourceNylas withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -112,21 +116,18 @@ public boolean equals(java.lang.Object o) { } SourceNylas other = (SourceNylas) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiServer, other.apiServer) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiServer, other.apiServer) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiServer, - endDate, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, apiServer, endDate, + sourceType, startDate); } @Override @@ -138,53 +139,58 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private APIServer apiServer; - + private OffsetDateTime endDate; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder apiServer(APIServer apiServer) { Utils.checkNotNull(apiServer, "apiServer"); this.apiServer = apiServer; return this; } + public Builder endDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceNylas build() { + return new SourceNylas( - apiKey, - apiServer, - endDate, + apiKey, apiServer, endDate, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceNytimes.java b/src/main/java/com/airbyte/api/models/shared/SourceNytimes.java index d1f1203f8..fe62c3fc1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceNytimes.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceNytimes.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceNytimes { +public class SourceNytimes { /** * API Key */ @@ -45,6 +44,7 @@ public class SourceNytimes { @JsonProperty("share_type") private Optional shareType; + @JsonProperty("sourceType") private Nytimes sourceType; @@ -78,7 +78,8 @@ public SourceNytimes( String apiKey, PeriodUsedForMostPopularStreams period, String startDate) { - this(apiKey, Optional.empty(), period, Optional.empty(), startDate); + this(apiKey, Optional.empty(), period, + Optional.empty(), startDate); } /** @@ -127,9 +128,10 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -149,6 +151,7 @@ public SourceNytimes withEndDate(String endDate) { return this; } + /** * End date to stop the article retrieval (format YYYY-MM) */ @@ -176,6 +179,7 @@ public SourceNytimes withShareType(ShareTypeUsedForMostPopularSharedStream share return this; } + /** * Share Type */ @@ -194,7 +198,6 @@ public SourceNytimes withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -205,23 +208,19 @@ public boolean equals(java.lang.Object o) { } SourceNytimes other = (SourceNytimes) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.period, other.period) && - Objects.deepEquals(this.shareType, other.shareType) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.period, other.period) && + Utils.enhancedDeepEquals(this.shareType, other.shareType) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - endDate, - period, - shareType, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, endDate, period, + shareType, sourceType, startDate); } @Override @@ -234,23 +233,25 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional endDate = Optional.empty(); - + private PeriodUsedForMostPopularStreams period; - + private Optional shareType = Optional.empty(); - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -260,6 +261,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * End date to stop the article retrieval (format YYYY-MM) */ @@ -278,6 +280,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * Period of time (in days) */ @@ -287,6 +290,7 @@ public Builder period(PeriodUsedForMostPopularStreams period) { return this; } + /** * Share Type */ @@ -305,6 +309,7 @@ public Builder shareType(Optional _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOkta.java b/src/main/java/com/airbyte/api/models/shared/SourceOkta.java index 1998d2c4a..bf2e08663 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOkta.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOkta.java @@ -15,9 +15,9 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceOkta { @JsonInclude(Include.NON_ABSENT) @@ -25,17 +25,20 @@ public class SourceOkta { private Optional credentials; /** - * The Okta domain. See the <a href="https://docs.airbyte.com/integrations/sources/okta">docs</a> for instructions on how to find it. + * The Okta domain. See the docs for + * instructions on how to find it. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("domain") private Optional domain; + @JsonProperty("sourceType") private Okta sourceType; /** - * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. + * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be + * replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -66,7 +69,8 @@ public Optional credentials() { } /** - * The Okta domain. See the <a href="https://docs.airbyte.com/integrations/sources/okta">docs</a> for instructions on how to find it. + * The Okta domain. See the docs for + * instructions on how to find it. */ @JsonIgnore public Optional domain() { @@ -79,16 +83,18 @@ public Okta sourceType() { } /** - * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. + * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be + * replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceOkta withCredentials(SourceOktaAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -96,6 +102,7 @@ public SourceOkta withCredentials(SourceOktaAuthorizationMethod credentials) { return this; } + public SourceOkta withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -103,7 +110,8 @@ public SourceOkta withCredentials(Optionaldocs for + * instructions on how to find it. */ public SourceOkta withDomain(String domain) { Utils.checkNotNull(domain, "domain"); @@ -111,8 +119,10 @@ public SourceOkta withDomain(String domain) { return this; } + /** - * The Okta domain. See the <a href="https://docs.airbyte.com/integrations/sources/okta">docs</a> for instructions on how to find it. + * The Okta domain. See the docs for + * instructions on how to find it. */ public SourceOkta withDomain(Optional domain) { Utils.checkNotNull(domain, "domain"); @@ -121,7 +131,8 @@ public SourceOkta withDomain(Optional domain) { } /** - * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. + * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be + * replicated. */ public SourceOkta withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -129,8 +140,10 @@ public SourceOkta withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. + * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be + * replicated. */ public SourceOkta withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -138,7 +151,6 @@ public SourceOkta withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,18 +161,16 @@ public boolean equals(java.lang.Object o) { } SourceOkta other = (SourceOkta) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - credentials, - domain, - sourceType, + return Utils.enhancedHash( + credentials, domain, sourceType, startDate); } @@ -172,19 +182,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Optional domain = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceOktaAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -197,8 +209,10 @@ public Builder credentials(Optional cre return this; } + /** - * The Okta domain. See the <a href="https://docs.airbyte.com/integrations/sources/okta">docs</a> for instructions on how to find it. + * The Okta domain. See the docs for + * instructions on how to find it. */ public Builder domain(String domain) { Utils.checkNotNull(domain, "domain"); @@ -207,7 +221,8 @@ public Builder domain(String domain) { } /** - * The Okta domain. See the <a href="https://docs.airbyte.com/integrations/sources/okta">docs</a> for instructions on how to find it. + * The Okta domain. See the docs for + * instructions on how to find it. */ public Builder domain(Optional domain) { Utils.checkNotNull(domain, "domain"); @@ -215,8 +230,10 @@ public Builder domain(Optional domain) { return this; } + /** - * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. + * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -225,21 +242,22 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be replicated. + * UTC date and time in the format YYYY-MM-DDTHH:MM:SSZ. Any data before this date will not be + * replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceOkta build() { + return new SourceOkta( - credentials, - domain, - startDate); + credentials, domain, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java index de6e5cb2d..21254f35b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaAPIToken.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceOktaAPIToken { +public class SourceOktaAPIToken { /** - * An Okta token. See the <a href="https://docs.airbyte.com/integrations/sources/okta">docs</a> for instructions on how to generate it. + * An Okta token. See the docs for + * instructions on how to generate it. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("auth_type") private SourceOktaSchemasCredentialsAuthType authType; @@ -33,7 +34,8 @@ public SourceOktaAPIToken( } /** - * An Okta token. See the <a href="https://docs.airbyte.com/integrations/sources/okta">docs</a> for instructions on how to generate it. + * An Okta token. See the docs for + * instructions on how to generate it. */ @JsonIgnore public String apiToken() { @@ -45,12 +47,14 @@ public SourceOktaSchemasCredentialsAuthType authType() { return authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * An Okta token. See the <a href="https://docs.airbyte.com/integrations/sources/okta">docs</a> for instructions on how to generate it. + * An Okta token. See the docs for + * instructions on how to generate it. */ public SourceOktaAPIToken withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -58,7 +62,6 @@ public SourceOktaAPIToken withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceOktaAPIToken other = (SourceOktaAPIToken) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - authType); + return Utils.enhancedHash( + apiToken, authType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiToken", apiToken, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** - * An Okta token. See the <a href="https://docs.airbyte.com/integrations/sources/okta">docs</a> for instructions on how to generate it. + * An Okta token. See the docs for + * instructions on how to generate it. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); this.apiToken = apiToken; return this; } - + public SourceOktaAPIToken build() { + return new SourceOktaAPIToken( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java index 3dcdc16a9..75ce22730 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthType.java @@ -14,7 +14,7 @@ public enum SourceOktaAuthType { @JsonValue private final String value; - private SourceOktaAuthType(String value) { + SourceOktaAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java index 3a64f8326..3c35af5a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceOktaAuthorizationMethod._Deserializer.class) public class SourceOktaAuthorizationMethod { @@ -73,12 +72,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceOktaAuthorizationMethod other = (SourceOktaAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaOAuth20.java index 7c195af87..a190186fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaOAuth20.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceOktaOAuth20 { @@ -79,9 +79,10 @@ public String refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your OAuth application. @@ -110,7 +111,6 @@ public SourceOktaOAuth20 withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +121,16 @@ public boolean equals(java.lang.Object o) { } SourceOktaOAuth20 other = (SourceOktaOAuth20) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId, - clientSecret, + return Utils.enhancedHash( + authType, clientId, clientSecret, refreshToken); } @@ -144,19 +142,21 @@ public String toString() { "clientSecret", clientSecret, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + /** * The Client ID of your OAuth application. */ @@ -166,6 +166,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -175,6 +176,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Refresh Token to obtain new Access Token, when it's expired. */ @@ -183,14 +185,14 @@ public Builder refreshToken(String refreshToken) { this.refreshToken = refreshToken; return this; } - + public SourceOktaOAuth20 build() { + return new SourceOktaOAuth20( - clientId, - clientSecret, - refreshToken); + clientId, clientSecret, refreshToken); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java index aa22708fd..2aafc5390 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceOktaSchemasAuthType { @JsonValue private final String value; - private SourceOktaSchemasAuthType(String value) { + SourceOktaSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java index 7dcafa826..daa434e0c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOktaSchemasCredentialsAuthType.java @@ -14,7 +14,7 @@ public enum SourceOktaSchemasCredentialsAuthType { @JsonValue private final String value; - private SourceOktaSchemasCredentialsAuthType(String value) { + SourceOktaSchemasCredentialsAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOmnisend.java b/src/main/java/com/airbyte/api/models/shared/SourceOmnisend.java index 91a3ce0c3..563a939fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOmnisend.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOmnisend.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceOmnisend { +public class SourceOmnisend { /** * API Key */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Omnisend sourceType; @@ -45,9 +45,10 @@ public Omnisend sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -58,7 +59,6 @@ public SourceOmnisend withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceOmnisend other = (SourceOmnisend) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceOmnisend build() { + return new SourceOmnisend( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOncehub.java b/src/main/java/com/airbyte/api/models/shared/SourceOncehub.java index c8d408fde..6e19d6c38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOncehub.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOncehub.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceOncehub { +public class SourceOncehub { /** * API key to use. Find it in your OnceHub account under the API & Webhooks Integration page. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Oncehub sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it in your OnceHub account under the API & Webhooks Integration page. @@ -76,7 +78,6 @@ public SourceOncehub withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceOncehub other = (SourceOncehub) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it in your OnceHub account under the API & Webhooks Integration page. */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceOncehub build() { + return new SourceOncehub( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOnepagecrm.java b/src/main/java/com/airbyte/api/models/shared/SourceOnepagecrm.java index 0862ec026..a2b62e40e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOnepagecrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOnepagecrm.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceOnepagecrm { +public class SourceOnepagecrm { /** * Enter your API Key of your API app */ @@ -25,6 +24,7 @@ public class SourceOnepagecrm { @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Onepagecrm sourceType; @@ -71,9 +71,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Enter your API Key of your API app @@ -84,6 +85,7 @@ public SourceOnepagecrm withPassword(String password) { return this; } + /** * Enter your API Key of your API app */ @@ -102,7 +104,6 @@ public SourceOnepagecrm withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,17 +114,15 @@ public boolean equals(java.lang.Object o) { } SourceOnepagecrm other = (SourceOnepagecrm) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - username); + return Utils.enhancedHash( + password, sourceType, username); } @Override @@ -133,17 +132,19 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Enter your API Key of your API app */ @@ -162,6 +163,7 @@ public Builder password(Optional password) { return this; } + /** * Enter the user ID of your API app */ @@ -170,13 +172,14 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceOnepagecrm build() { + return new SourceOnepagecrm( - password, - username); + password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOnesignal.java b/src/main/java/com/airbyte/api/models/shared/SourceOnesignal.java index ddaef04c3..0436ac203 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOnesignal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOnesignal.java @@ -13,33 +13,39 @@ import java.lang.String; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; -public class SourceOnesignal { +public class SourceOnesignal { /** - * Applications keys, see the <a href="https://documentation.onesignal.com/docs/accounts-and-keys">docs</a> for more information on how to obtain this data + * Applications keys, see the docs for more information on + * how to obtain this data */ @JsonProperty("applications") private List applications; /** - * Comma-separated list of names and the value (sum/count) for the returned outcome data. See the <a href="https://documentation.onesignal.com/reference/view-outcomes">docs</a> for more details + * Comma-separated list of names and the value (sum/count) for the returned outcome data. See the docs for more details */ @JsonProperty("outcome_names") private String outcomeNames; + @JsonProperty("sourceType") private Onesignal sourceType; /** - * The date from which you'd like to replicate data for OneSignal API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for OneSignal API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; /** - * OneSignal User Auth Key, see the <a href="https://documentation.onesignal.com/docs/accounts-and-keys#user-auth-key">docs</a> for more information on how to obtain this key. + * OneSignal User Auth Key, see the docs for more + * information on how to obtain this key. */ @JsonProperty("user_auth_key") private String userAuthKey; @@ -62,7 +68,9 @@ public SourceOnesignal( } /** - * Applications keys, see the <a href="https://documentation.onesignal.com/docs/accounts-and-keys">docs</a> for more information on how to obtain this data + * Applications keys, see the docs for more information on + * how to obtain this data */ @JsonIgnore public List applications() { @@ -70,7 +78,8 @@ public List applications() { } /** - * Comma-separated list of names and the value (sum/count) for the returned outcome data. See the <a href="https://documentation.onesignal.com/reference/view-outcomes">docs</a> for more details + * Comma-separated list of names and the value (sum/count) for the returned outcome data. See the docs for more details */ @JsonIgnore public String outcomeNames() { @@ -83,7 +92,8 @@ public Onesignal sourceType() { } /** - * The date from which you'd like to replicate data for OneSignal API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for OneSignal API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ @JsonIgnore public OffsetDateTime startDate() { @@ -91,19 +101,24 @@ public OffsetDateTime startDate() { } /** - * OneSignal User Auth Key, see the <a href="https://documentation.onesignal.com/docs/accounts-and-keys#user-auth-key">docs</a> for more information on how to obtain this key. + * OneSignal User Auth Key, see the docs for more + * information on how to obtain this key. */ @JsonIgnore public String userAuthKey() { return userAuthKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Applications keys, see the <a href="https://documentation.onesignal.com/docs/accounts-and-keys">docs</a> for more information on how to obtain this data + * Applications keys, see the docs for more information on + * how to obtain this data */ public SourceOnesignal withApplications(List applications) { Utils.checkNotNull(applications, "applications"); @@ -112,7 +127,8 @@ public SourceOnesignal withApplications(List applications) { } /** - * Comma-separated list of names and the value (sum/count) for the returned outcome data. See the <a href="https://documentation.onesignal.com/reference/view-outcomes">docs</a> for more details + * Comma-separated list of names and the value (sum/count) for the returned outcome data. See the docs for more details */ public SourceOnesignal withOutcomeNames(String outcomeNames) { Utils.checkNotNull(outcomeNames, "outcomeNames"); @@ -121,7 +137,8 @@ public SourceOnesignal withOutcomeNames(String outcomeNames) { } /** - * The date from which you'd like to replicate data for OneSignal API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for OneSignal API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ public SourceOnesignal withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -130,7 +147,9 @@ public SourceOnesignal withStartDate(OffsetDateTime startDate) { } /** - * OneSignal User Auth Key, see the <a href="https://documentation.onesignal.com/docs/accounts-and-keys#user-auth-key">docs</a> for more information on how to obtain this key. + * OneSignal User Auth Key, see the docs for more + * information on how to obtain this key. */ public SourceOnesignal withUserAuthKey(String userAuthKey) { Utils.checkNotNull(userAuthKey, "userAuthKey"); @@ -138,7 +157,6 @@ public SourceOnesignal withUserAuthKey(String userAuthKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,21 +167,18 @@ public boolean equals(java.lang.Object o) { } SourceOnesignal other = (SourceOnesignal) o; return - Objects.deepEquals(this.applications, other.applications) && - Objects.deepEquals(this.outcomeNames, other.outcomeNames) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.userAuthKey, other.userAuthKey); + Utils.enhancedDeepEquals(this.applications, other.applications) && + Utils.enhancedDeepEquals(this.outcomeNames, other.outcomeNames) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.userAuthKey, other.userAuthKey); } @Override public int hashCode() { - return Objects.hash( - applications, - outcomeNames, - sourceType, - startDate, - userAuthKey); + return Utils.enhancedHash( + applications, outcomeNames, sourceType, + startDate, userAuthKey); } @Override @@ -175,23 +190,27 @@ public String toString() { "startDate", startDate, "userAuthKey", userAuthKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List applications; - + private String outcomeNames; - + private OffsetDateTime startDate; - + private String userAuthKey; - + private Builder() { // force use of static builder() method } + /** - * Applications keys, see the <a href="https://documentation.onesignal.com/docs/accounts-and-keys">docs</a> for more information on how to obtain this data + * Applications keys, see the docs for more information on + * how to obtain this data */ public Builder applications(List applications) { Utils.checkNotNull(applications, "applications"); @@ -199,8 +218,10 @@ public Builder applications(List applications) { return this; } + /** - * Comma-separated list of names and the value (sum/count) for the returned outcome data. See the <a href="https://documentation.onesignal.com/reference/view-outcomes">docs</a> for more details + * Comma-separated list of names and the value (sum/count) for the returned outcome data. See the docs for more details */ public Builder outcomeNames(String outcomeNames) { Utils.checkNotNull(outcomeNames, "outcomeNames"); @@ -208,8 +229,10 @@ public Builder outcomeNames(String outcomeNames) { return this; } + /** - * The date from which you'd like to replicate data for OneSignal API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for OneSignal API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -217,23 +240,26 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** - * OneSignal User Auth Key, see the <a href="https://documentation.onesignal.com/docs/accounts-and-keys#user-auth-key">docs</a> for more information on how to obtain this key. + * OneSignal User Auth Key, see the docs for more + * information on how to obtain this key. */ public Builder userAuthKey(String userAuthKey) { Utils.checkNotNull(userAuthKey, "userAuthKey"); this.userAuthKey = userAuthKey; return this; } - + public SourceOnesignal build() { + return new SourceOnesignal( - applications, - outcomeNames, - startDate, + applications, outcomeNames, startDate, userAuthKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOnfleet.java b/src/main/java/com/airbyte/api/models/shared/SourceOnfleet.java index 98832f16a..f9fb8516c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOnfleet.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOnfleet.java @@ -13,13 +13,13 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceOnfleet { +public class SourceOnfleet { /** - * API key to use for authenticating requests. You can create and manage your API keys in the API section of the Onfleet dashboard. + * API key to use for authenticating requests. You can create and manage your API keys in the API + * section of the Onfleet dashboard. */ @JsonProperty("api_key") private String apiKey; @@ -31,6 +31,7 @@ public class SourceOnfleet { @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Onfleet sourceType; @@ -51,7 +52,8 @@ public SourceOnfleet( } /** - * API key to use for authenticating requests. You can create and manage your API keys in the API section of the Onfleet dashboard. + * API key to use for authenticating requests. You can create and manage your API keys in the API + * section of the Onfleet dashboard. */ @JsonIgnore public String apiKey() { @@ -71,12 +73,14 @@ public Onfleet sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key to use for authenticating requests. You can create and manage your API keys in the API section of the Onfleet dashboard. + * API key to use for authenticating requests. You can create and manage your API keys in the API + * section of the Onfleet dashboard. */ public SourceOnfleet withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -93,6 +97,7 @@ public SourceOnfleet withPassword(String password) { return this; } + /** * Placeholder for basic HTTP auth password - should be set to empty string */ @@ -102,7 +107,6 @@ public SourceOnfleet withPassword(Optional password) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,17 +117,15 @@ public boolean equals(java.lang.Object o) { } SourceOnfleet other = (SourceOnfleet) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - password, - sourceType); + return Utils.enhancedHash( + apiKey, password, sourceType); } @Override @@ -133,19 +135,22 @@ public String toString() { "password", password, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional password; - + private Builder() { // force use of static builder() method } + /** - * API key to use for authenticating requests. You can create and manage your API keys in the API section of the Onfleet dashboard. + * API key to use for authenticating requests. You can create and manage your API keys in the API + * section of the Onfleet dashboard. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -153,6 +158,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Placeholder for basic HTTP auth password - should be set to empty string */ @@ -170,16 +176,17 @@ public Builder password(Optional password) { this.password = password; return this; } - + public SourceOnfleet build() { if (password == null) { password = _SINGLETON_VALUE_Password.value(); } + return new SourceOnfleet( - apiKey, - password); + apiKey, password); } + private static final LazySingletonValue> _SINGLETON_VALUE_Password = new LazySingletonValue<>( "password", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpenDataDc.java b/src/main/java/com/airbyte/api/models/shared/SourceOpenDataDc.java index 4dc46e542..5139965d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpenDataDc.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpenDataDc.java @@ -13,9 +13,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceOpenDataDc { @JsonProperty("api_key") @@ -35,6 +35,7 @@ public class SourceOpenDataDc { @JsonProperty("marid") private Optional marid; + @JsonProperty("sourceType") private OpenDataDc sourceType; @@ -83,9 +84,10 @@ public OpenDataDc sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceOpenDataDc withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -102,6 +104,7 @@ public SourceOpenDataDc withLocation(String location) { return this; } + /** * address or place or block */ @@ -120,6 +123,7 @@ public SourceOpenDataDc withMarid(String marid) { return this; } + /** * A unique identifier (Master Address Repository). */ @@ -129,7 +133,6 @@ public SourceOpenDataDc withMarid(Optional marid) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +143,16 @@ public boolean equals(java.lang.Object o) { } SourceOpenDataDc other = (SourceOpenDataDc) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.location, other.location) && - Objects.deepEquals(this.marid, other.marid) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.location, other.location) && + Utils.enhancedDeepEquals(this.marid, other.marid) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - location, - marid, + return Utils.enhancedHash( + apiKey, location, marid, sourceType); } @@ -163,25 +164,28 @@ public String toString() { "marid", marid, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional location = Optional.empty(); - + private Optional marid = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * address or place or block */ @@ -200,6 +204,7 @@ public Builder location(Optional location) { return this; } + /** * A unique identifier (Master Address Repository). */ @@ -217,14 +222,14 @@ public Builder marid(Optional marid) { this.marid = marid; return this; } - + public SourceOpenDataDc build() { + return new SourceOpenDataDc( - apiKey, - location, - marid); + apiKey, location, marid); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpenExchangeRates.java b/src/main/java/com/airbyte/api/models/shared/SourceOpenExchangeRates.java new file mode 100644 index 000000000..3c185f9f6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpenExchangeRates.java @@ -0,0 +1,240 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class SourceOpenExchangeRates { + /** + * App ID provided by Open Exchange Rates + */ + @JsonProperty("app_id") + private String appId; + + /** + * Change base currency (3-letter code, default is USD - only modifiable in paid plans) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("base") + private Optional base; + + + @JsonProperty("sourceType") + private OpenExchangeRates sourceType; + + /** + * Start getting data from that date. + */ + @JsonProperty("start_date") + private String startDate; + + @JsonCreator + public SourceOpenExchangeRates( + @JsonProperty("app_id") String appId, + @JsonProperty("base") Optional base, + @JsonProperty("start_date") String startDate) { + Utils.checkNotNull(appId, "appId"); + Utils.checkNotNull(base, "base"); + Utils.checkNotNull(startDate, "startDate"); + this.appId = appId; + this.base = base; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + public SourceOpenExchangeRates( + String appId, + String startDate) { + this(appId, Optional.empty(), startDate); + } + + /** + * App ID provided by Open Exchange Rates + */ + @JsonIgnore + public String appId() { + return appId; + } + + /** + * Change base currency (3-letter code, default is USD - only modifiable in paid plans) + */ + @JsonIgnore + public Optional base() { + return base; + } + + @JsonIgnore + public OpenExchangeRates sourceType() { + return sourceType; + } + + /** + * Start getting data from that date. + */ + @JsonIgnore + public String startDate() { + return startDate; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * App ID provided by Open Exchange Rates + */ + public SourceOpenExchangeRates withAppId(String appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = appId; + return this; + } + + /** + * Change base currency (3-letter code, default is USD - only modifiable in paid plans) + */ + public SourceOpenExchangeRates withBase(String base) { + Utils.checkNotNull(base, "base"); + this.base = Optional.ofNullable(base); + return this; + } + + + /** + * Change base currency (3-letter code, default is USD - only modifiable in paid plans) + */ + public SourceOpenExchangeRates withBase(Optional base) { + Utils.checkNotNull(base, "base"); + this.base = base; + return this; + } + + /** + * Start getting data from that date. + */ + public SourceOpenExchangeRates withStartDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceOpenExchangeRates other = (SourceOpenExchangeRates) o; + return + Utils.enhancedDeepEquals(this.appId, other.appId) && + Utils.enhancedDeepEquals(this.base, other.base) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + appId, base, sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceOpenExchangeRates.class, + "appId", appId, + "base", base, + "sourceType", sourceType, + "startDate", startDate); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String appId; + + private Optional base; + + private String startDate; + + private Builder() { + // force use of static builder() method + } + + + /** + * App ID provided by Open Exchange Rates + */ + public Builder appId(String appId) { + Utils.checkNotNull(appId, "appId"); + this.appId = appId; + return this; + } + + + /** + * Change base currency (3-letter code, default is USD - only modifiable in paid plans) + */ + public Builder base(String base) { + Utils.checkNotNull(base, "base"); + this.base = Optional.ofNullable(base); + return this; + } + + /** + * Change base currency (3-letter code, default is USD - only modifiable in paid plans) + */ + public Builder base(Optional base) { + Utils.checkNotNull(base, "base"); + this.base = base; + return this; + } + + + /** + * Start getting data from that date. + */ + public Builder startDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceOpenExchangeRates build() { + if (base == null) { + base = _SINGLETON_VALUE_Base.value(); + } + + return new SourceOpenExchangeRates( + appId, base, startDate); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_Base = + new LazySingletonValue<>( + "base", + "\"USD\"", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"open-exchange-rates\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpenaq.java b/src/main/java/com/airbyte/api/models/shared/SourceOpenaq.java index 113715b4c..4a528f1f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpenaq.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpenaq.java @@ -13,7 +13,7 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class SourceOpenaq { @@ -21,11 +21,13 @@ public class SourceOpenaq { private String apiKey; /** - * The list of IDs of countries (comma separated) you need the data for, check more: https://docs.openaq.org/resources/countries + * The list of IDs of countries (comma separated) you need the data for, check more: + * https://docs.openaq.org/resources/countries */ @JsonProperty("country_ids") private List countryIds; + @JsonProperty("sourceType") private Openaq sourceType; @@ -46,7 +48,8 @@ public String apiKey() { } /** - * The list of IDs of countries (comma separated) you need the data for, check more: https://docs.openaq.org/resources/countries + * The list of IDs of countries (comma separated) you need the data for, check more: + * https://docs.openaq.org/resources/countries */ @JsonIgnore public List countryIds() { @@ -58,9 +61,10 @@ public Openaq sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceOpenaq withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -69,7 +73,8 @@ public SourceOpenaq withApiKey(String apiKey) { } /** - * The list of IDs of countries (comma separated) you need the data for, check more: https://docs.openaq.org/resources/countries + * The list of IDs of countries (comma separated) you need the data for, check more: + * https://docs.openaq.org/resources/countries */ public SourceOpenaq withCountryIds(List countryIds) { Utils.checkNotNull(countryIds, "countryIds"); @@ -77,7 +82,6 @@ public SourceOpenaq withCountryIds(List countryIds) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -88,17 +92,15 @@ public boolean equals(java.lang.Object o) { } SourceOpenaq other = (SourceOpenaq) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.countryIds, other.countryIds) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.countryIds, other.countryIds) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - countryIds, - sourceType); + return Utils.enhancedHash( + apiKey, countryIds, sourceType); } @Override @@ -108,38 +110,43 @@ public String toString() { "countryIds", countryIds, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private List countryIds; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** - * The list of IDs of countries (comma separated) you need the data for, check more: https://docs.openaq.org/resources/countries + * The list of IDs of countries (comma separated) you need the data for, check more: + * https://docs.openaq.org/resources/countries */ public Builder countryIds(List countryIds) { Utils.checkNotNull(countryIds, "countryIds"); this.countryIds = countryIds; return this; } - + public SourceOpenaq build() { + return new SourceOpenaq( - apiKey, - countryIds); + apiKey, countryIds); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpenfda.java b/src/main/java/com/airbyte/api/models/shared/SourceOpenfda.java index c5f2dbad0..c9d98353e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpenfda.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpenfda.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceOpenfda { @@ -20,7 +20,6 @@ public class SourceOpenfda { @JsonCreator public SourceOpenfda() { - this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); } @@ -29,11 +28,11 @@ public Openfda sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -44,12 +43,12 @@ public boolean equals(java.lang.Object o) { } SourceOpenfda other = (SourceOpenfda) o; return - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( sourceType); } @@ -58,18 +57,21 @@ public String toString() { return Utils.toString(SourceOpenfda.class, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceOpenfda build() { + return new SourceOpenfda( ); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpenweather.java b/src/main/java/com/airbyte/api/models/shared/SourceOpenweather.java index 460880295..e42fa4c00 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpenweather.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpenweather.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceOpenweather { +public class SourceOpenweather { /** * API KEY */ @@ -27,20 +26,24 @@ public class SourceOpenweather { private String appid; /** - * You can use lang parameter to get the output in your language. The contents of the description field will be translated. See <a href="https://openweathermap.org/api/one-call-api#multi">here</a> for the list of supported languages. + * You can use lang parameter to get the output in your language. The contents of the description field + * will be translated. See here for the + * list of supported languages. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lang") private Optional lang; /** - * Latitude, decimal (-90; 90). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API + * Latitude, decimal (-90; 90). If you need the geocoder to automatic convert city names and zip-codes + * to geo coordinates and the other way around, please use the OpenWeather Geocoding API */ @JsonProperty("lat") private String lat; /** - * Longitude, decimal (-180; 180). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API + * Longitude, decimal (-180; 180). If you need the geocoder to automatic convert city names and + * zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API */ @JsonProperty("lon") private String lon; @@ -52,11 +55,13 @@ public class SourceOpenweather { @JsonProperty("only_current") private Optional onlyCurrent; + @JsonProperty("sourceType") private Openweather sourceType; /** - * Units of measurement. standard, metric and imperial units are available. If you do not use the units parameter, standard units will be applied by default. + * Units of measurement. standard, metric and imperial units are available. If you do not use the units + * parameter, standard units will be applied by default. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("units") @@ -89,7 +94,8 @@ public SourceOpenweather( String appid, String lat, String lon) { - this(appid, Optional.empty(), lat, lon, Optional.empty(), Optional.empty()); + this(appid, Optional.empty(), lat, + lon, Optional.empty(), Optional.empty()); } /** @@ -101,7 +107,9 @@ public String appid() { } /** - * You can use lang parameter to get the output in your language. The contents of the description field will be translated. See <a href="https://openweathermap.org/api/one-call-api#multi">here</a> for the list of supported languages. + * You can use lang parameter to get the output in your language. The contents of the description field + * will be translated. See here for the + * list of supported languages. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -110,7 +118,8 @@ public Optional lang() { } /** - * Latitude, decimal (-90; 90). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API + * Latitude, decimal (-90; 90). If you need the geocoder to automatic convert city names and zip-codes + * to geo coordinates and the other way around, please use the OpenWeather Geocoding API */ @JsonIgnore public String lat() { @@ -118,7 +127,8 @@ public String lat() { } /** - * Longitude, decimal (-180; 180). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API + * Longitude, decimal (-180; 180). If you need the geocoder to automatic convert city names and + * zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API */ @JsonIgnore public String lon() { @@ -139,7 +149,8 @@ public Openweather sourceType() { } /** - * Units of measurement. standard, metric and imperial units are available. If you do not use the units parameter, standard units will be applied by default. + * Units of measurement. standard, metric and imperial units are available. If you do not use the units + * parameter, standard units will be applied by default. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -147,9 +158,10 @@ public Optional units() { return (Optional) units; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API KEY @@ -161,7 +173,9 @@ public SourceOpenweather withAppid(String appid) { } /** - * You can use lang parameter to get the output in your language. The contents of the description field will be translated. See <a href="https://openweathermap.org/api/one-call-api#multi">here</a> for the list of supported languages. + * You can use lang parameter to get the output in your language. The contents of the description field + * will be translated. See here for the + * list of supported languages. */ public SourceOpenweather withLang(Lang lang) { Utils.checkNotNull(lang, "lang"); @@ -169,8 +183,11 @@ public SourceOpenweather withLang(Lang lang) { return this; } + /** - * You can use lang parameter to get the output in your language. The contents of the description field will be translated. See <a href="https://openweathermap.org/api/one-call-api#multi">here</a> for the list of supported languages. + * You can use lang parameter to get the output in your language. The contents of the description field + * will be translated. See here for the + * list of supported languages. */ public SourceOpenweather withLang(Optional lang) { Utils.checkNotNull(lang, "lang"); @@ -179,7 +196,8 @@ public SourceOpenweather withLang(Optional lang) { } /** - * Latitude, decimal (-90; 90). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API + * Latitude, decimal (-90; 90). If you need the geocoder to automatic convert city names and zip-codes + * to geo coordinates and the other way around, please use the OpenWeather Geocoding API */ public SourceOpenweather withLat(String lat) { Utils.checkNotNull(lat, "lat"); @@ -188,7 +206,8 @@ public SourceOpenweather withLat(String lat) { } /** - * Longitude, decimal (-180; 180). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API + * Longitude, decimal (-180; 180). If you need the geocoder to automatic convert city names and + * zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API */ public SourceOpenweather withLon(String lon) { Utils.checkNotNull(lon, "lon"); @@ -205,6 +224,7 @@ public SourceOpenweather withOnlyCurrent(boolean onlyCurrent) { return this; } + /** * True for particular day */ @@ -215,7 +235,8 @@ public SourceOpenweather withOnlyCurrent(Optional onlyCurrent) { } /** - * Units of measurement. standard, metric and imperial units are available. If you do not use the units parameter, standard units will be applied by default. + * Units of measurement. standard, metric and imperial units are available. If you do not use the units + * parameter, standard units will be applied by default. */ public SourceOpenweather withUnits(Units units) { Utils.checkNotNull(units, "units"); @@ -223,8 +244,10 @@ public SourceOpenweather withUnits(Units units) { return this; } + /** - * Units of measurement. standard, metric and imperial units are available. If you do not use the units parameter, standard units will be applied by default. + * Units of measurement. standard, metric and imperial units are available. If you do not use the units + * parameter, standard units will be applied by default. */ public SourceOpenweather withUnits(Optional units) { Utils.checkNotNull(units, "units"); @@ -232,7 +255,6 @@ public SourceOpenweather withUnits(Optional units) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -243,24 +265,20 @@ public boolean equals(java.lang.Object o) { } SourceOpenweather other = (SourceOpenweather) o; return - Objects.deepEquals(this.appid, other.appid) && - Objects.deepEquals(this.lang, other.lang) && - Objects.deepEquals(this.lat, other.lat) && - Objects.deepEquals(this.lon, other.lon) && - Objects.deepEquals(this.onlyCurrent, other.onlyCurrent) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.units, other.units); + Utils.enhancedDeepEquals(this.appid, other.appid) && + Utils.enhancedDeepEquals(this.lang, other.lang) && + Utils.enhancedDeepEquals(this.lat, other.lat) && + Utils.enhancedDeepEquals(this.lon, other.lon) && + Utils.enhancedDeepEquals(this.onlyCurrent, other.onlyCurrent) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.units, other.units); } @Override public int hashCode() { - return Objects.hash( - appid, - lang, - lat, - lon, - onlyCurrent, - sourceType, + return Utils.enhancedHash( + appid, lang, lat, + lon, onlyCurrent, sourceType, units); } @@ -275,25 +293,27 @@ public String toString() { "sourceType", sourceType, "units", units); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String appid; - + private Optional lang = Optional.empty(); - + private String lat; - + private String lon; - + private Optional onlyCurrent = Optional.empty(); - + private Optional units = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * API KEY */ @@ -303,8 +323,11 @@ public Builder appid(String appid) { return this; } + /** - * You can use lang parameter to get the output in your language. The contents of the description field will be translated. See <a href="https://openweathermap.org/api/one-call-api#multi">here</a> for the list of supported languages. + * You can use lang parameter to get the output in your language. The contents of the description field + * will be translated. See here for the + * list of supported languages. */ public Builder lang(Lang lang) { Utils.checkNotNull(lang, "lang"); @@ -313,7 +336,9 @@ public Builder lang(Lang lang) { } /** - * You can use lang parameter to get the output in your language. The contents of the description field will be translated. See <a href="https://openweathermap.org/api/one-call-api#multi">here</a> for the list of supported languages. + * You can use lang parameter to get the output in your language. The contents of the description field + * will be translated. See here for the + * list of supported languages. */ public Builder lang(Optional lang) { Utils.checkNotNull(lang, "lang"); @@ -321,8 +346,10 @@ public Builder lang(Optional lang) { return this; } + /** - * Latitude, decimal (-90; 90). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API + * Latitude, decimal (-90; 90). If you need the geocoder to automatic convert city names and zip-codes + * to geo coordinates and the other way around, please use the OpenWeather Geocoding API */ public Builder lat(String lat) { Utils.checkNotNull(lat, "lat"); @@ -330,8 +357,10 @@ public Builder lat(String lat) { return this; } + /** - * Longitude, decimal (-180; 180). If you need the geocoder to automatic convert city names and zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API + * Longitude, decimal (-180; 180). If you need the geocoder to automatic convert city names and + * zip-codes to geo coordinates and the other way around, please use the OpenWeather Geocoding API */ public Builder lon(String lon) { Utils.checkNotNull(lon, "lon"); @@ -339,6 +368,7 @@ public Builder lon(String lon) { return this; } + /** * True for particular day */ @@ -357,8 +387,10 @@ public Builder onlyCurrent(Optional onlyCurrent) { return this; } + /** - * Units of measurement. standard, metric and imperial units are available. If you do not use the units parameter, standard units will be applied by default. + * Units of measurement. standard, metric and imperial units are available. If you do not use the units + * parameter, standard units will be applied by default. */ public Builder units(Units units) { Utils.checkNotNull(units, "units"); @@ -367,24 +399,23 @@ public Builder units(Units units) { } /** - * Units of measurement. standard, metric and imperial units are available. If you do not use the units parameter, standard units will be applied by default. + * Units of measurement. standard, metric and imperial units are available. If you do not use the units + * parameter, standard units will be applied by default. */ public Builder units(Optional units) { Utils.checkNotNull(units, "units"); this.units = units; return this; } - + public SourceOpenweather build() { + return new SourceOpenweather( - appid, - lang, - lat, - lon, - onlyCurrent, - units); + appid, lang, lat, + lon, onlyCurrent, units); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpinionStage.java b/src/main/java/com/airbyte/api/models/shared/SourceOpinionStage.java index 2cc68e3cd..5eff1549e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpinionStage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpinionStage.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceOpinionStage { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private OpinionStage sourceType; @@ -39,9 +40,10 @@ public OpinionStage sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceOpinionStage withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceOpinionStage withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceOpinionStage other = (SourceOpinionStage) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceOpinionStage build() { + return new SourceOpinionStage( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpsgenie.java b/src/main/java/com/airbyte/api/models/shared/SourceOpsgenie.java index f7dd95b98..86d4deda9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOpsgenie.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpsgenie.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceOpsgenie { +public class SourceOpsgenie { /** * API token used to access the Opsgenie platform */ @@ -31,11 +30,14 @@ public class SourceOpsgenie { @JsonProperty("endpoint") private Optional endpoint; + @JsonProperty("sourceType") private Opsgenie sourceType; /** - * The date from which you'd like to replicate data from Opsgenie in the format of YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only in the following incremental streams: issues. + * The date from which you'd like to replicate data from Opsgenie in the format of + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be + * used only in the following incremental streams: issues. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -82,16 +84,19 @@ public Opsgenie sourceType() { } /** - * The date from which you'd like to replicate data from Opsgenie in the format of YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only in the following incremental streams: issues. + * The date from which you'd like to replicate data from Opsgenie in the format of + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be + * used only in the following incremental streams: issues. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API token used to access the Opsgenie platform @@ -111,6 +116,7 @@ public SourceOpsgenie withEndpoint(String endpoint) { return this; } + /** * Service endpoint to use for API calls. */ @@ -121,7 +127,9 @@ public SourceOpsgenie withEndpoint(Optional endpoint) { } /** - * The date from which you'd like to replicate data from Opsgenie in the format of YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only in the following incremental streams: issues. + * The date from which you'd like to replicate data from Opsgenie in the format of + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be + * used only in the following incremental streams: issues. */ public SourceOpsgenie withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -129,8 +137,11 @@ public SourceOpsgenie withStartDate(String startDate) { return this; } + /** - * The date from which you'd like to replicate data from Opsgenie in the format of YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only in the following incremental streams: issues. + * The date from which you'd like to replicate data from Opsgenie in the format of + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be + * used only in the following incremental streams: issues. */ public SourceOpsgenie withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -138,7 +149,6 @@ public SourceOpsgenie withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,18 +159,16 @@ public boolean equals(java.lang.Object o) { } SourceOpsgenie other = (SourceOpsgenie) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.endpoint, other.endpoint) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.endpoint, other.endpoint) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiToken, - endpoint, - sourceType, + return Utils.enhancedHash( + apiToken, endpoint, sourceType, startDate); } @@ -172,19 +180,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Optional endpoint; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * API token used to access the Opsgenie platform */ @@ -194,6 +204,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * Service endpoint to use for API calls. */ @@ -212,8 +223,11 @@ public Builder endpoint(Optional endpoint) { return this; } + /** - * The date from which you'd like to replicate data from Opsgenie in the format of YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only in the following incremental streams: issues. + * The date from which you'd like to replicate data from Opsgenie in the format of + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be + * used only in the following incremental streams: issues. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -222,24 +236,26 @@ public Builder startDate(String startDate) { } /** - * The date from which you'd like to replicate data from Opsgenie in the format of YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be used only in the following incremental streams: issues. + * The date from which you'd like to replicate data from Opsgenie in the format of + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. Note that it will be + * used only in the following incremental streams: issues. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceOpsgenie build() { if (endpoint == null) { endpoint = _SINGLETON_VALUE_Endpoint.value(); } + return new SourceOpsgenie( - apiToken, - endpoint, - startDate); + apiToken, endpoint, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Endpoint = new LazySingletonValue<>( "endpoint", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOpuswatch.java b/src/main/java/com/airbyte/api/models/shared/SourceOpuswatch.java new file mode 100644 index 000000000..68088d0af --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceOpuswatch.java @@ -0,0 +1,170 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class SourceOpuswatch { + + @JsonProperty("api_key") + private String apiKey; + + + @JsonProperty("sourceType") + private Opuswatch sourceType; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("start_date") + private Optional startDate; + + @JsonCreator + public SourceOpuswatch( + @JsonProperty("api_key") String apiKey, + @JsonProperty("start_date") Optional startDate) { + Utils.checkNotNull(apiKey, "apiKey"); + Utils.checkNotNull(startDate, "startDate"); + this.apiKey = apiKey; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + public SourceOpuswatch( + String apiKey) { + this(apiKey, Optional.empty()); + } + + @JsonIgnore + public String apiKey() { + return apiKey; + } + + @JsonIgnore + public Opuswatch sourceType() { + return sourceType; + } + + @JsonIgnore + public Optional startDate() { + return startDate; + } + + public static Builder builder() { + return new Builder(); + } + + + public SourceOpuswatch withApiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + public SourceOpuswatch withStartDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + + public SourceOpuswatch withStartDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceOpuswatch other = (SourceOpuswatch) o; + return + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + apiKey, sourceType, startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceOpuswatch.class, + "apiKey", apiKey, + "sourceType", sourceType, + "startDate", startDate); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String apiKey; + + private Optional startDate; + + private Builder() { + // force use of static builder() method + } + + + public Builder apiKey(String apiKey) { + Utils.checkNotNull(apiKey, "apiKey"); + this.apiKey = apiKey; + return this; + } + + + public Builder startDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + public Builder startDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceOpuswatch build() { + if (startDate == null) { + startDate = _SINGLETON_VALUE_StartDate.value(); + } + + return new SourceOpuswatch( + apiKey, startDate); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"opuswatch\"", + new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StartDate = + new LazySingletonValue<>( + "start_date", + "\"20250101\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracle.java b/src/main/java/com/airbyte/api/models/shared/SourceOracle.java index 19b1f619f..6736796ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracle.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceOracle { +public class SourceOracle { /** * Connect data that will be used for DB connection */ @@ -42,7 +41,9 @@ public class SourceOracle { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -58,8 +59,9 @@ public class SourceOracle { /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") @@ -72,11 +74,13 @@ public class SourceOracle { @JsonProperty("schemas") private Optional> schemas; + @JsonProperty("sourceType") private SourceOracleOracle sourceType; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -123,7 +127,9 @@ public SourceOracle( public SourceOracle( String host, String username) { - this(Optional.empty(), Optional.empty(), host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + this(Optional.empty(), Optional.empty(), host, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), username); } /** @@ -153,7 +159,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -171,8 +179,9 @@ public Optional password() { /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL */ @JsonIgnore public Optional port() { @@ -194,7 +203,8 @@ public SourceOracleOracle sourceType() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -210,9 +220,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Connect data that will be used for DB connection @@ -223,6 +234,7 @@ public SourceOracle withConnectionData(ConnectBy connectionData) { return this; } + /** * Connect data that will be used for DB connection */ @@ -241,6 +253,7 @@ public SourceOracle withEncryption(SourceOracleEncryption encryption) { return this; } + /** * The encryption method with is used when communicating with the database. */ @@ -260,7 +273,9 @@ public SourceOracle withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceOracle withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -268,8 +283,11 @@ public SourceOracle withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceOracle withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -286,6 +304,7 @@ public SourceOracle withPassword(String password) { return this; } + /** * The password associated with the username. */ @@ -298,8 +317,9 @@ public SourceOracle withPassword(Optional password) { /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL */ public SourceOracle withPort(long port) { Utils.checkNotNull(port, "port"); @@ -307,11 +327,13 @@ public SourceOracle withPort(long port) { return this; } + /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL */ public SourceOracle withPort(Optional port) { Utils.checkNotNull(port, "port"); @@ -328,6 +350,7 @@ public SourceOracle withSchemas(List schemas) { return this; } + /** * The list of schemas to sync from. Defaults to user. Case sensitive. */ @@ -338,7 +361,8 @@ public SourceOracle withSchemas(Optional> schemas) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceOracle withTunnelMethod(SourceOracleSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -346,8 +370,10 @@ public SourceOracle withTunnelMethod(SourceOracleSSHTunnelMethod tunnelMethod) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceOracle withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -364,7 +390,6 @@ public SourceOracle withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -375,30 +400,24 @@ public boolean equals(java.lang.Object o) { } SourceOracle other = (SourceOracle) o; return - Objects.deepEquals(this.connectionData, other.connectionData) && - Objects.deepEquals(this.encryption, other.encryption) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.schemas, other.schemas) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.connectionData, other.connectionData) && + Utils.enhancedDeepEquals(this.encryption, other.encryption) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.schemas, other.schemas) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - connectionData, - encryption, - host, - jdbcUrlParams, - password, - port, - schemas, - sourceType, - tunnelMethod, + return Utils.enhancedHash( + connectionData, encryption, host, + jdbcUrlParams, password, port, + schemas, sourceType, tunnelMethod, username); } @@ -416,31 +435,33 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional connectionData = Optional.empty(); - + private Optional encryption = Optional.empty(); - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional password = Optional.empty(); - + private Optional port; - + private Optional> schemas = Optional.empty(); - + private Optional tunnelMethod = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Connect data that will be used for DB connection */ @@ -459,6 +480,7 @@ public Builder connectionData(Optional connectionData) { return this; } + /** * The encryption method with is used when communicating with the database. */ @@ -477,6 +499,7 @@ public Builder encryption(Optional encryption) return this; } + /** * Hostname of the database. */ @@ -486,8 +509,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -496,7 +522,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -504,6 +532,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * The password associated with the username. */ @@ -522,11 +551,13 @@ public Builder password(Optional password) { return this; } + /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL */ public Builder port(long port) { Utils.checkNotNull(port, "port"); @@ -537,8 +568,9 @@ public Builder port(long port) { /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL */ public Builder port(Optional port) { Utils.checkNotNull(port, "port"); @@ -546,6 +578,7 @@ public Builder port(Optional port) { return this; } + /** * The list of schemas to sync from. Defaults to user. Case sensitive. */ @@ -564,8 +597,10 @@ public Builder schemas(Optional> schemas) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(SourceOracleSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -574,7 +609,8 @@ public Builder tunnelMethod(SourceOracleSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -582,6 +618,7 @@ public Builder tunnelMethod(Optional tunn return this; } + /** * The username which is used to access the database. */ @@ -590,23 +627,19 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceOracle build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SourceOracle( - connectionData, - encryption, - host, - jdbcUrlParams, - password, - port, - schemas, - tunnelMethod, - username); + connectionData, encryption, host, + jdbcUrlParams, password, port, + schemas, tunnelMethod, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_Port = new LazySingletonValue<>( "port", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java index a1b8efa6b..a83a10c36 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleConnectionType.java @@ -14,7 +14,7 @@ public enum SourceOracleConnectionType { @JsonValue private final String value; - private SourceOracleConnectionType(String value) { + SourceOracleConnectionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryption.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryption.java index b7d325a16..3b795aa76 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryption.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryption.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceOracleEncryption @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceOracleEncryption other = (SourceOracleEncryption) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java index aedd986fd..7fce4fced 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionAlgorithm.java @@ -21,7 +21,7 @@ public enum SourceOracleEncryptionAlgorithm { @JsonValue private final String value; - private SourceOracleEncryptionAlgorithm(String value) { + SourceOracleEncryptionAlgorithm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionMethod.java index 83315396c..840df98ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEncryptionMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleEncryptionMethod { @JsonValue private final String value; - private SourceOracleEncryptionMethod(String value) { + SourceOracleEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterprise.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterprise.java index 8d45f1abc..cb0e6a9e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterprise.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterprise.java @@ -17,13 +17,15 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceOracleEnterprise { +public class SourceOracleEnterprise { /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("check_privileges") @@ -68,7 +70,9 @@ public class SourceOracleEnterprise { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -84,8 +88,9 @@ public class SourceOracleEnterprise { /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL. + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("port") @@ -98,11 +103,13 @@ public class SourceOracleEnterprise { @JsonProperty("schemas") private Optional> schemas; + @JsonProperty("sourceType") private OracleEnterprise sourceType; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonProperty("tunnel_method") private SourceOracleEnterpriseSSHTunnelMethod tunnelMethod; @@ -164,11 +171,18 @@ public SourceOracleEnterprise( String host, SourceOracleEnterpriseSSHTunnelMethod tunnelMethod, String username) { - this(Optional.empty(), Optional.empty(), Optional.empty(), connectionData, cursor, encryption, host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), tunnelMethod, username); + this(Optional.empty(), Optional.empty(), Optional.empty(), + connectionData, cursor, encryption, + host, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), tunnelMethod, + username); } /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ @JsonIgnore public Optional checkPrivileges() { @@ -224,7 +238,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -242,8 +258,9 @@ public Optional password() { /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL. + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL. */ @JsonIgnore public Optional port() { @@ -265,7 +282,8 @@ public OracleEnterprise sourceType() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonIgnore public SourceOracleEnterpriseSSHTunnelMethod tunnelMethod() { @@ -280,12 +298,16 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public SourceOracleEnterprise withCheckPrivileges(boolean checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -293,8 +315,12 @@ public SourceOracleEnterprise withCheckPrivileges(boolean checkPrivileges) { return this; } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public SourceOracleEnterprise withCheckPrivileges(Optional checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -311,6 +337,7 @@ public SourceOracleEnterprise withCheckpointTargetIntervalSeconds(long checkpoin return this; } + /** * How often (in seconds) a stream should checkpoint, when possible. */ @@ -329,6 +356,7 @@ public SourceOracleEnterprise withConcurrency(long concurrency) { return this; } + /** * Maximum number of concurrent queries to the database. */ @@ -375,7 +403,9 @@ public SourceOracleEnterprise withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceOracleEnterprise withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -383,8 +413,11 @@ public SourceOracleEnterprise withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceOracleEnterprise withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -401,6 +434,7 @@ public SourceOracleEnterprise withPassword(String password) { return this; } + /** * The password associated with the username. */ @@ -413,8 +447,9 @@ public SourceOracleEnterprise withPassword(Optional password) { /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL. + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL. */ public SourceOracleEnterprise withPort(long port) { Utils.checkNotNull(port, "port"); @@ -422,11 +457,13 @@ public SourceOracleEnterprise withPort(long port) { return this; } + /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL. + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL. */ public SourceOracleEnterprise withPort(Optional port) { Utils.checkNotNull(port, "port"); @@ -443,6 +480,7 @@ public SourceOracleEnterprise withSchemas(List schemas) { return this; } + /** * The list of schemas to sync from. Defaults to user. Case sensitive. */ @@ -453,7 +491,8 @@ public SourceOracleEnterprise withSchemas(Optional> schem } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceOracleEnterprise withTunnelMethod(SourceOracleEnterpriseSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -470,7 +509,6 @@ public SourceOracleEnterprise withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -481,39 +519,30 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterprise other = (SourceOracleEnterprise) o; return - Objects.deepEquals(this.checkPrivileges, other.checkPrivileges) && - Objects.deepEquals(this.checkpointTargetIntervalSeconds, other.checkpointTargetIntervalSeconds) && - Objects.deepEquals(this.concurrency, other.concurrency) && - Objects.deepEquals(this.connectionData, other.connectionData) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.encryption, other.encryption) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.schemas, other.schemas) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.checkPrivileges, other.checkPrivileges) && + Utils.enhancedDeepEquals(this.checkpointTargetIntervalSeconds, other.checkpointTargetIntervalSeconds) && + Utils.enhancedDeepEquals(this.concurrency, other.concurrency) && + Utils.enhancedDeepEquals(this.connectionData, other.connectionData) && + Utils.enhancedDeepEquals(this.cursor, other.cursor) && + Utils.enhancedDeepEquals(this.encryption, other.encryption) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.schemas, other.schemas) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - checkPrivileges, - checkpointTargetIntervalSeconds, - concurrency, - connectionData, - cursor, - encryption, - host, - jdbcUrlParams, - password, - port, - schemas, - sourceType, - tunnelMethod, - username); + return Utils.enhancedHash( + checkPrivileges, checkpointTargetIntervalSeconds, concurrency, + connectionData, cursor, encryption, + host, jdbcUrlParams, password, + port, schemas, sourceType, + tunnelMethod, username); } @Override @@ -534,41 +563,46 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional checkPrivileges; - + private Optional checkpointTargetIntervalSeconds; - + private Optional concurrency; - + private SourceOracleEnterpriseConnectBy connectionData; - + private SourceOracleEnterpriseUpdateMethod cursor; - + private SourceOracleEnterpriseEncryption encryption; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional password = Optional.empty(); - + private Optional port; - + private Optional> schemas = Optional.empty(); - + private SourceOracleEnterpriseSSHTunnelMethod tunnelMethod; - + private String username; - + private Builder() { // force use of static builder() method } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public Builder checkPrivileges(boolean checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -577,7 +611,10 @@ public Builder checkPrivileges(boolean checkPrivileges) { } /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public Builder checkPrivileges(Optional checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -585,6 +622,7 @@ public Builder checkPrivileges(Optional checkPrivileges) { return this; } + /** * How often (in seconds) a stream should checkpoint, when possible. */ @@ -603,6 +641,7 @@ public Builder checkpointTargetIntervalSeconds(Optional checkpointTargetIn return this; } + /** * Maximum number of concurrent queries to the database. */ @@ -621,6 +660,7 @@ public Builder concurrency(Optional concurrency) { return this; } + /** * The scheme by which to establish a database connection. */ @@ -630,6 +670,7 @@ public Builder connectionData(SourceOracleEnterpriseConnectBy connectionData) { return this; } + /** * Configures how data is extracted from the database. */ @@ -639,6 +680,7 @@ public Builder cursor(SourceOracleEnterpriseUpdateMethod cursor) { return this; } + /** * The encryption method with is used when communicating with the database. */ @@ -648,6 +690,7 @@ public Builder encryption(SourceOracleEnterpriseEncryption encryption) { return this; } + /** * Hostname of the database. */ @@ -657,8 +700,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -667,7 +713,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -675,6 +723,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * The password associated with the username. */ @@ -693,11 +742,13 @@ public Builder password(Optional password) { return this; } + /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL. + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL. */ public Builder port(long port) { Utils.checkNotNull(port, "port"); @@ -708,8 +759,9 @@ public Builder port(long port) { /** * Port of the database. * Oracle Corporations recommends the following port numbers: - * 1521 - Default listening port for client connections to the listener. - * 2484 - Recommended and officially registered listening port for client connections to the listener using TCP/IP with SSL. + * 1521 - Default listening port for client connections to the listener. + * 2484 - Recommended and officially registered listening port for client connections to the listener + * using TCP/IP with SSL. */ public Builder port(Optional port) { Utils.checkNotNull(port, "port"); @@ -717,6 +769,7 @@ public Builder port(Optional port) { return this; } + /** * The list of schemas to sync from. Defaults to user. Case sensitive. */ @@ -735,8 +788,10 @@ public Builder schemas(Optional> schemas) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(SourceOracleEnterpriseSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -744,6 +799,7 @@ public Builder tunnelMethod(SourceOracleEnterpriseSSHTunnelMethod tunnelMethod) return this; } + /** * The username which is used to access the database. */ @@ -752,7 +808,7 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceOracleEnterprise build() { if (checkPrivileges == null) { checkPrivileges = _SINGLETON_VALUE_CheckPrivileges.value(); @@ -766,22 +822,16 @@ public SourceOracleEnterprise build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SourceOracleEnterprise( - checkPrivileges, - checkpointTargetIntervalSeconds, - concurrency, - connectionData, - cursor, - encryption, - host, - jdbcUrlParams, - password, - port, - schemas, - tunnelMethod, + checkPrivileges, checkpointTargetIntervalSeconds, concurrency, + connectionData, cursor, encryption, + host, jdbcUrlParams, password, + port, schemas, tunnelMethod, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_CheckPrivileges = new LazySingletonValue<>( "check_privileges", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseConnectBy.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseConnectBy.java index 8ca284944..0726e5c33 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseConnectBy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseConnectBy.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceOracleEnterpriseConnectBy @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceOracleEnterpriseConnectBy other = (SourceOracleEnterpriseConnectBy) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseConnectionType.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseConnectionType.java index 75f79c615..51f96ac90 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseConnectionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseConnectionType.java @@ -14,7 +14,7 @@ public enum SourceOracleEnterpriseConnectionType { @JsonValue private final String value; - private SourceOracleEnterpriseConnectionType(String value) { + SourceOracleEnterpriseConnectionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseCursorMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseCursorMethod.java index e1ce2ceb8..9602f6a21 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseCursorMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseCursorMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleEnterpriseCursorMethod { @JsonValue private final String value; - private SourceOracleEnterpriseCursorMethod(String value) { + SourceOracleEnterpriseCursorMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryption.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryption.java index 38e8259f1..97c81c568 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryption.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryption.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceOracleEnterpriseEncryption @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceOracleEnterpriseEncryption other = (SourceOracleEnterpriseEncryption) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryptionAlgorithm.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryptionAlgorithm.java index 131296c88..a1100d55f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryptionAlgorithm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryptionAlgorithm.java @@ -24,7 +24,7 @@ public enum SourceOracleEnterpriseEncryptionAlgorithm { @JsonValue private final String value; - private SourceOracleEnterpriseEncryptionAlgorithm(String value) { + SourceOracleEnterpriseEncryptionAlgorithm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryptionMethod.java index b0b2ab220..339b01e7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseEncryptionMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleEnterpriseEncryptionMethod { @JsonValue private final String value; - private SourceOracleEnterpriseEncryptionMethod(String value) { + SourceOracleEnterpriseEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced.java index 3f3510328..01389cd68 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced.java @@ -11,7 +11,10 @@ /** * SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced * - *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public enum SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced { FAIL_SYNC("Fail sync"), @@ -20,7 +23,7 @@ public enum SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced { @JsonValue private final String value; - private SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced(String value) { + SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseNativeNetworkEncryptionNNE.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseNativeNetworkEncryptionNNE.java index eb02fee58..e122b85eb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseNativeNetworkEncryptionNNE.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseNativeNetworkEncryptionNNE.java @@ -19,13 +19,14 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * SourceOracleEnterpriseNativeNetworkEncryptionNNE * - *

    The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. + *

    The native network encryption gives you the ability to encrypt database connections, without the + * configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different + * ports. */ public class SourceOracleEnterpriseNativeNetworkEncryptionNNE { @@ -39,6 +40,7 @@ public class SourceOracleEnterpriseNativeNetworkEncryptionNNE { @JsonProperty("encryption_algorithm") private Optional encryptionAlgorithm; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption_method") private Optional encryptionMethod; @@ -78,9 +80,10 @@ public Optional encryptionMethod( return (Optional) encryptionMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceOracleEnterpriseNativeNetworkEncryptionNNE withAdditionalProperty(String key, Object value) { @@ -88,8 +91,7 @@ public SourceOracleEnterpriseNativeNetworkEncryptionNNE withAdditionalProperty(S Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceOracleEnterpriseNativeNetworkEncryptionNNE withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -105,6 +107,7 @@ public SourceOracleEnterpriseNativeNetworkEncryptionNNE withEncryptionAlgorithm( return this; } + /** * This parameter defines what encryption algorithm is used. */ @@ -120,13 +123,13 @@ public SourceOracleEnterpriseNativeNetworkEncryptionNNE withEncryptionMethod(Sou return this; } + public SourceOracleEnterpriseNativeNetworkEncryptionNNE withEncryptionMethod(Optional encryptionMethod) { Utils.checkNotNull(encryptionMethod, "encryptionMethod"); this.encryptionMethod = encryptionMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,17 +140,15 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterpriseNativeNetworkEncryptionNNE other = (SourceOracleEnterpriseNativeNetworkEncryptionNNE) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.encryptionAlgorithm, other.encryptionAlgorithm) && - Objects.deepEquals(this.encryptionMethod, other.encryptionMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.encryptionAlgorithm, other.encryptionAlgorithm) && + Utils.enhancedDeepEquals(this.encryptionMethod, other.encryptionMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - encryptionAlgorithm, - encryptionMethod); + return Utils.enhancedHash( + additionalProperties, encryptionAlgorithm, encryptionMethod); } @Override @@ -157,15 +158,16 @@ public String toString() { "encryptionAlgorithm", encryptionAlgorithm, "encryptionMethod", encryptionMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional encryptionAlgorithm; - + private Optional encryptionMethod; - + private Builder() { // force use of static builder() method } @@ -186,6 +188,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * This parameter defines what encryption algorithm is used. */ @@ -204,6 +207,7 @@ public Builder encryptionAlgorithm(Optional> _SINGLETON_VALUE_EncryptionAlgorithm = new LazySingletonValue<>( "encryption_algorithm", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseNoTunnel.java index ab70456ea..9d676bbf9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseNoTunnel.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class SourceOracleEnterpriseNoTunnel { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -59,9 +59,10 @@ public Optional tunnelMethod() { return (Optional) tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceOracleEnterpriseNoTunnel withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public SourceOracleEnterpriseNoTunnel withAdditionalProperty(String key, Object Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceOracleEnterpriseNoTunnel withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public SourceOracleEnterpriseNoTunnel withTunnelMethod(SourceOracleEnterpriseTun return this; } + public SourceOracleEnterpriseNoTunnel withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterpriseNoTunnel other = (SourceOracleEnterpriseNoTunnel) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - tunnelMethod); + return Utils.enhancedHash( + additionalProperties, tunnelMethod); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional tunnelMethod; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder tunnelMethod(SourceOracleEnterpriseTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -155,16 +156,18 @@ public Builder tunnelMethod(Optional> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterprisePasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterprisePasswordAuthentication.java index 0e943d662..c6cb7b937 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterprisePasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterprisePasswordAuthentication.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -39,6 +38,7 @@ public class SourceOracleEnterprisePasswordAuthentication { @JsonProperty("tunnel_host") private String tunnelHost; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -86,7 +86,8 @@ public SourceOracleEnterprisePasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), Optional.empty(), + tunnelUser, tunnelUserPassword); } @JsonAnyGetter @@ -132,9 +133,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceOracleEnterprisePasswordAuthentication withAdditionalProperty(String key, Object value) { @@ -142,8 +144,7 @@ public SourceOracleEnterprisePasswordAuthentication withAdditionalProperty(Strin Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceOracleEnterprisePasswordAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -165,6 +166,7 @@ public SourceOracleEnterprisePasswordAuthentication withTunnelMethod(SourceOracl return this; } + public SourceOracleEnterprisePasswordAuthentication withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; @@ -180,6 +182,7 @@ public SourceOracleEnterprisePasswordAuthentication withTunnelPort(long tunnelPo return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -207,7 +210,6 @@ public SourceOracleEnterprisePasswordAuthentication withTunnelUserPassword(Strin return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +220,19 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterprisePasswordAuthentication other = (SourceOracleEnterprisePasswordAuthentication) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + additionalProperties, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser, tunnelUserPassword); } @Override @@ -247,21 +245,22 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String tunnelHost; - + private Optional tunnelMethod; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } @@ -282,6 +281,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -291,6 +291,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + public Builder tunnelMethod(SourceOracleEnterpriseSchemasTunnelMethodTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -303,6 +304,7 @@ public Builder tunnelMethod(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -330,6 +333,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -338,7 +342,7 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public SourceOracleEnterprisePasswordAuthentication build() { if (tunnelMethod == null) { tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); @@ -346,15 +350,14 @@ public SourceOracleEnterprisePasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceOracleEnterprisePasswordAuthentication( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword) + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC.java index a82515fea..b97cbf86f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC.java @@ -20,19 +20,21 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC * - *

    <i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using Oracle's <a href="https://docs.airbyte.com/integrations/enterprise-connectors/source-oracle#getting-started"> change data capture feature</a>. This must be enabled on your database. + *

    Recommended - Incrementally reads new inserts, updates, and deletes using Oracle's + * change data capture feature. This must be enabled on your database. */ public class SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor_method") private Optional cursorMethod; @@ -52,7 +54,10 @@ public class SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC { private Optional initialLoadTimeoutHours; /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("invalid_cdc_cursor_position_behavior") @@ -76,7 +81,8 @@ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC( } public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonAnyGetter @@ -107,7 +113,10 @@ public Optional initialLoadTimeoutHours() { } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -115,9 +124,10 @@ public Optional invali return (Optional) invalidCdcCursorPositionBehavior; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withAdditionalProperty(String key, Object value) { @@ -125,8 +135,7 @@ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withAdditional Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -139,6 +148,7 @@ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withCursorMeth return this; } + public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withCursorMethod(Optional cursorMethod) { Utils.checkNotNull(cursorMethod, "cursorMethod"); this.cursorMethod = cursorMethod; @@ -154,6 +164,7 @@ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withDebeziumSh return this; } + /** * The amount of time to allow the Debezium Engine to shut down, in seconds. */ @@ -172,6 +183,7 @@ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withInitialLoa return this; } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC events. */ @@ -182,7 +194,10 @@ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withInitialLoa } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withInvalidCdcCursorPositionBehavior(SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -190,8 +205,12 @@ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withInvalidCdc return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withInvalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -199,7 +218,6 @@ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC withInvalidCdc return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -210,21 +228,18 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC other = (SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.cursorMethod, other.cursorMethod) && - Objects.deepEquals(this.debeziumShutdownTimeoutSeconds, other.debeziumShutdownTimeoutSeconds) && - Objects.deepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && - Objects.deepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.cursorMethod, other.cursorMethod) && + Utils.enhancedDeepEquals(this.debeziumShutdownTimeoutSeconds, other.debeziumShutdownTimeoutSeconds) && + Utils.enhancedDeepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && + Utils.enhancedDeepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - cursorMethod, - debeziumShutdownTimeoutSeconds, - initialLoadTimeoutHours, - invalidCdcCursorPositionBehavior); + return Utils.enhancedHash( + additionalProperties, cursorMethod, debeziumShutdownTimeoutSeconds, + initialLoadTimeoutHours, invalidCdcCursorPositionBehavior); } @Override @@ -236,19 +251,20 @@ public String toString() { "initialLoadTimeoutHours", initialLoadTimeoutHours, "invalidCdcCursorPositionBehavior", invalidCdcCursorPositionBehavior); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional cursorMethod; - + private Optional debeziumShutdownTimeoutSeconds; - + private Optional initialLoadTimeoutHours; - + private Optional invalidCdcCursorPositionBehavior; - + private Builder() { // force use of static builder() method } @@ -269,6 +285,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder cursorMethod(SourceOracleEnterpriseSchemasCursorMethod cursorMethod) { Utils.checkNotNull(cursorMethod, "cursorMethod"); this.cursorMethod = Optional.ofNullable(cursorMethod); @@ -281,6 +298,7 @@ public Builder cursorMethod(Optional debeziumShutdownTim return this; } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC events. */ @@ -317,8 +336,12 @@ public Builder initialLoadTimeoutHours(Optional initialLoadTimeoutHours) { return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(SourceOracleEnterpriseInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -327,14 +350,17 @@ public Builder invalidCdcCursorPositionBehavior(SourceOracleEnterpriseInvalidCDC } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); this.invalidCdcCursorPositionBehavior = invalidCdcCursorPositionBehavior; return this; } - + public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC build() { if (cursorMethod == null) { cursorMethod = _SINGLETON_VALUE_CursorMethod.value(); @@ -348,14 +374,14 @@ public SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC build() { if (invalidCdcCursorPositionBehavior == null) { invalidCdcCursorPositionBehavior = _SINGLETON_VALUE_InvalidCdcCursorPositionBehavior.value(); } + return new SourceOracleEnterpriseReadChangesUsingChangeDataCaptureCDC( - cursorMethod, - debeziumShutdownTimeoutSeconds, - initialLoadTimeoutHours, + cursorMethod, debeziumShutdownTimeoutSeconds, initialLoadTimeoutHours, invalidCdcCursorPositionBehavior) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_CursorMethod = new LazySingletonValue<>( "cursor_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSSHKeyAuthentication.java index e7ed14e39..d899acbbd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSSHKeyAuthentication.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -34,7 +33,8 @@ public class SourceOracleEnterpriseSSHKeyAuthentication { private Map additionalProperties; /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -45,6 +45,7 @@ public class SourceOracleEnterpriseSSHKeyAuthentication { @JsonProperty("tunnel_host") private String tunnelHost; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -86,7 +87,8 @@ public SourceOracleEnterpriseSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + Optional.empty(), tunnelUser); } @JsonAnyGetter @@ -95,7 +97,8 @@ public Map additionalProperties() { } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -132,9 +135,10 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceOracleEnterpriseSSHKeyAuthentication withAdditionalProperty(String key, Object value) { @@ -142,8 +146,7 @@ public SourceOracleEnterpriseSSHKeyAuthentication withAdditionalProperty(String Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceOracleEnterpriseSSHKeyAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -151,7 +154,8 @@ public SourceOracleEnterpriseSSHKeyAuthentication withAdditionalProperties(Map tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; @@ -189,6 +194,7 @@ public SourceOracleEnterpriseSSHKeyAuthentication withTunnelPort(long tunnelPort return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -207,7 +213,6 @@ public SourceOracleEnterpriseSSHKeyAuthentication withTunnelUser(String tunnelUs return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +223,19 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterpriseSSHKeyAuthentication other = (SourceOracleEnterpriseSSHKeyAuthentication) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + additionalProperties, sshKey, tunnelHost, + tunnelMethod, tunnelPort, tunnelUser); } @Override @@ -247,21 +248,22 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelMethod; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } @@ -282,8 +284,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -291,6 +295,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -300,6 +305,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + public Builder tunnelMethod(SourceOracleEnterpriseSchemasTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -312,6 +318,7 @@ public Builder tunnelMethod(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -338,7 +346,7 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public SourceOracleEnterpriseSSHKeyAuthentication build() { if (tunnelMethod == null) { tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); @@ -346,15 +354,14 @@ public SourceOracleEnterpriseSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceOracleEnterpriseSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser) + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSSHTunnelMethod.java index ac56f0b52..48929f685 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceOracleEnterpriseSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = SourceOracleEnterpriseSSHTunnelMethod._Deserializer.class) public class SourceOracleEnterpriseSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceOracleEnterpriseSSHTunnelMethod other = (SourceOracleEnterpriseSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseScanChangesWithUserDefinedCursor.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseScanChangesWithUserDefinedCursor.java index 611196fc8..89fb78078 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseScanChangesWithUserDefinedCursor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseScanChangesWithUserDefinedCursor.java @@ -19,19 +19,21 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * SourceOracleEnterpriseScanChangesWithUserDefinedCursor * - *

    Incrementally detects new inserts and updates using the <a href="https://docs.airbyte.com/understanding-airbyte/connections/incremental-append/#user-defined-cursor">cursor column</a> chosen when configuring a connection (e.g. created_at, updated_at). + *

    Incrementally detects new inserts and updates using the cursor + * column chosen when configuring a connection (e.g. created_at, updated_at). */ public class SourceOracleEnterpriseScanChangesWithUserDefinedCursor { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor_method") private Optional cursorMethod; @@ -59,9 +61,10 @@ public Optional cursorMethod() { return (Optional) cursorMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceOracleEnterpriseScanChangesWithUserDefinedCursor withAdditionalProperty(String key, Object value) { @@ -69,8 +72,7 @@ public SourceOracleEnterpriseScanChangesWithUserDefinedCursor withAdditionalProp Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceOracleEnterpriseScanChangesWithUserDefinedCursor withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +85,13 @@ public SourceOracleEnterpriseScanChangesWithUserDefinedCursor withCursorMethod(S return this; } + public SourceOracleEnterpriseScanChangesWithUserDefinedCursor withCursorMethod(Optional cursorMethod) { Utils.checkNotNull(cursorMethod, "cursorMethod"); this.cursorMethod = cursorMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +102,14 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterpriseScanChangesWithUserDefinedCursor other = (SourceOracleEnterpriseScanChangesWithUserDefinedCursor) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.cursorMethod, other.cursorMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.cursorMethod, other.cursorMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - cursorMethod); + return Utils.enhancedHash( + additionalProperties, cursorMethod); } @Override @@ -117,13 +118,14 @@ public String toString() { "additionalProperties", additionalProperties, "cursorMethod", cursorMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional cursorMethod; - + private Builder() { // force use of static builder() method } @@ -144,6 +146,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder cursorMethod(SourceOracleEnterpriseCursorMethod cursorMethod) { Utils.checkNotNull(cursorMethod, "cursorMethod"); this.cursorMethod = Optional.ofNullable(cursorMethod); @@ -155,16 +158,18 @@ public Builder cursorMethod(Optional> _SINGLETON_VALUE_CursorMethod = new LazySingletonValue<>( "cursor_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasConnectionType.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasConnectionType.java index eaebbf80b..91d2ce6f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasConnectionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasConnectionType.java @@ -14,7 +14,7 @@ public enum SourceOracleEnterpriseSchemasConnectionType { @JsonValue private final String value; - private SourceOracleEnterpriseSchemasConnectionType(String value) { + SourceOracleEnterpriseSchemasConnectionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasCursorMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasCursorMethod.java index b94768419..1c027bae9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasCursorMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasCursorMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleEnterpriseSchemasCursorMethod { @JsonValue private final String value; - private SourceOracleEnterpriseSchemasCursorMethod(String value) { + SourceOracleEnterpriseSchemasCursorMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasEncryptionEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasEncryptionEncryptionMethod.java index 8d3296e83..cc2b4826c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasEncryptionEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasEncryptionEncryptionMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleEnterpriseSchemasEncryptionEncryptionMethod { @JsonValue private final String value; - private SourceOracleEnterpriseSchemasEncryptionEncryptionMethod(String value) { + SourceOracleEnterpriseSchemasEncryptionEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasEncryptionMethod.java index c651301e9..76f52d9f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasEncryptionMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleEnterpriseSchemasEncryptionMethod { @JsonValue private final String value; - private SourceOracleEnterpriseSchemasEncryptionMethod(String value) { + SourceOracleEnterpriseSchemasEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasTunnelMethod.java index ea45220c0..465d3e8ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleEnterpriseSchemasTunnelMethod { @JsonValue private final String value; - private SourceOracleEnterpriseSchemasTunnelMethod(String value) { + SourceOracleEnterpriseSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasTunnelMethodTunnelMethod.java index 979cfc4e3..2e8f4029b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSchemasTunnelMethodTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleEnterpriseSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private SourceOracleEnterpriseSchemasTunnelMethodTunnelMethod(String value) { + SourceOracleEnterpriseSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseServiceName.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseServiceName.java index 1476a4f22..13b14ac05 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseServiceName.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseServiceName.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,10 +31,12 @@ public class SourceOracleEnterpriseServiceName { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("connection_type") private Optional connectionType; + @JsonProperty("service_name") private String serviceName; @@ -71,9 +72,10 @@ public String serviceName() { return serviceName; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceOracleEnterpriseServiceName withAdditionalProperty(String key, Object value) { @@ -81,8 +83,7 @@ public SourceOracleEnterpriseServiceName withAdditionalProperty(String key, Obje Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceOracleEnterpriseServiceName withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -95,6 +96,7 @@ public SourceOracleEnterpriseServiceName withConnectionType(SourceOracleEnterpri return this; } + public SourceOracleEnterpriseServiceName withConnectionType(Optional connectionType) { Utils.checkNotNull(connectionType, "connectionType"); this.connectionType = connectionType; @@ -107,7 +109,6 @@ public SourceOracleEnterpriseServiceName withServiceName(String serviceName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -118,17 +119,15 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterpriseServiceName other = (SourceOracleEnterpriseServiceName) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.connectionType, other.connectionType) && - Objects.deepEquals(this.serviceName, other.serviceName); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.connectionType, other.connectionType) && + Utils.enhancedDeepEquals(this.serviceName, other.serviceName); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - connectionType, - serviceName); + return Utils.enhancedHash( + additionalProperties, connectionType, serviceName); } @Override @@ -138,15 +137,16 @@ public String toString() { "connectionType", connectionType, "serviceName", serviceName); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional connectionType; - + private String serviceName; - + private Builder() { // force use of static builder() method } @@ -167,6 +167,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder connectionType(SourceOracleEnterpriseConnectionType connectionType) { Utils.checkNotNull(connectionType, "connectionType"); this.connectionType = Optional.ofNullable(connectionType); @@ -179,22 +180,24 @@ public Builder connectionType(Optional> _SINGLETON_VALUE_ConnectionType = new LazySingletonValue<>( "connection_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSystemIDSID.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSystemIDSID.java index 33b8b78ac..14f477753 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSystemIDSID.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseSystemIDSID.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,10 +31,12 @@ public class SourceOracleEnterpriseSystemIDSID { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("connection_type") private Optional connectionType; + @JsonProperty("sid") private String sid; @@ -71,9 +72,10 @@ public String sid() { return sid; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceOracleEnterpriseSystemIDSID withAdditionalProperty(String key, Object value) { @@ -81,8 +83,7 @@ public SourceOracleEnterpriseSystemIDSID withAdditionalProperty(String key, Obje Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceOracleEnterpriseSystemIDSID withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -95,6 +96,7 @@ public SourceOracleEnterpriseSystemIDSID withConnectionType(SourceOracleEnterpri return this; } + public SourceOracleEnterpriseSystemIDSID withConnectionType(Optional connectionType) { Utils.checkNotNull(connectionType, "connectionType"); this.connectionType = connectionType; @@ -107,7 +109,6 @@ public SourceOracleEnterpriseSystemIDSID withSid(String sid) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -118,17 +119,15 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterpriseSystemIDSID other = (SourceOracleEnterpriseSystemIDSID) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.connectionType, other.connectionType) && - Objects.deepEquals(this.sid, other.sid); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.connectionType, other.connectionType) && + Utils.enhancedDeepEquals(this.sid, other.sid); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - connectionType, - sid); + return Utils.enhancedHash( + additionalProperties, connectionType, sid); } @Override @@ -138,15 +137,16 @@ public String toString() { "connectionType", connectionType, "sid", sid); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional connectionType; - + private String sid; - + private Builder() { // force use of static builder() method } @@ -167,6 +167,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder connectionType(SourceOracleEnterpriseSchemasConnectionType connectionType) { Utils.checkNotNull(connectionType, "connectionType"); this.connectionType = Optional.ofNullable(connectionType); @@ -179,22 +180,24 @@ public Builder connectionType(Optional> _SINGLETON_VALUE_ConnectionType = new LazySingletonValue<>( "connection_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseTLSEncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseTLSEncryptedVerifyCertificate.java index 84e489fcc..cd239f00b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseTLSEncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseTLSEncryptedVerifyCertificate.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,12 +31,14 @@ public class SourceOracleEnterpriseTLSEncryptedVerifyCertificate { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption_method") private Optional encryptionMethod; /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ @JsonProperty("ssl_certificate") private String sslCertificate; @@ -70,16 +71,18 @@ public Optional encrypt } /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ @JsonIgnore public String sslCertificate() { return sslCertificate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceOracleEnterpriseTLSEncryptedVerifyCertificate withAdditionalProperty(String key, Object value) { @@ -87,8 +90,7 @@ public SourceOracleEnterpriseTLSEncryptedVerifyCertificate withAdditionalPropert Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceOracleEnterpriseTLSEncryptedVerifyCertificate withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -101,6 +103,7 @@ public SourceOracleEnterpriseTLSEncryptedVerifyCertificate withEncryptionMethod( return this; } + public SourceOracleEnterpriseTLSEncryptedVerifyCertificate withEncryptionMethod(Optional encryptionMethod) { Utils.checkNotNull(encryptionMethod, "encryptionMethod"); this.encryptionMethod = encryptionMethod; @@ -108,7 +111,8 @@ public SourceOracleEnterpriseTLSEncryptedVerifyCertificate withEncryptionMethod( } /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ public SourceOracleEnterpriseTLSEncryptedVerifyCertificate withSslCertificate(String sslCertificate) { Utils.checkNotNull(sslCertificate, "sslCertificate"); @@ -116,7 +120,6 @@ public SourceOracleEnterpriseTLSEncryptedVerifyCertificate withSslCertificate(St return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,17 +130,15 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterpriseTLSEncryptedVerifyCertificate other = (SourceOracleEnterpriseTLSEncryptedVerifyCertificate) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.encryptionMethod, other.encryptionMethod) && - Objects.deepEquals(this.sslCertificate, other.sslCertificate); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.encryptionMethod, other.encryptionMethod) && + Utils.enhancedDeepEquals(this.sslCertificate, other.sslCertificate); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - encryptionMethod, - sslCertificate); + return Utils.enhancedHash( + additionalProperties, encryptionMethod, sslCertificate); } @Override @@ -147,15 +148,16 @@ public String toString() { "encryptionMethod", encryptionMethod, "sslCertificate", sslCertificate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional encryptionMethod; - + private String sslCertificate; - + private Builder() { // force use of static builder() method } @@ -176,6 +178,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder encryptionMethod(SourceOracleEnterpriseSchemasEncryptionEncryptionMethod encryptionMethod) { Utils.checkNotNull(encryptionMethod, "encryptionMethod"); this.encryptionMethod = Optional.ofNullable(encryptionMethod); @@ -188,25 +191,28 @@ public Builder encryptionMethod(Optional> _SINGLETON_VALUE_EncryptionMethod = new LazySingletonValue<>( "encryption_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseTunnelMethod.java index 972e85a16..db04bdeef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleEnterpriseTunnelMethod { @JsonValue private final String value; - private SourceOracleEnterpriseTunnelMethod(String value) { + SourceOracleEnterpriseTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseUnencrypted.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseUnencrypted.java index bd84cc9ad..9a52517d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseUnencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseUnencrypted.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class SourceOracleEnterpriseUnencrypted { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption_method") private Optional encryptionMethod; @@ -59,9 +59,10 @@ public Optional encryptionMethod() { return (Optional) encryptionMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceOracleEnterpriseUnencrypted withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public SourceOracleEnterpriseUnencrypted withAdditionalProperty(String key, Obje Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceOracleEnterpriseUnencrypted withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public SourceOracleEnterpriseUnencrypted withEncryptionMethod(SourceOracleEnterp return this; } + public SourceOracleEnterpriseUnencrypted withEncryptionMethod(Optional encryptionMethod) { Utils.checkNotNull(encryptionMethod, "encryptionMethod"); this.encryptionMethod = encryptionMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } SourceOracleEnterpriseUnencrypted other = (SourceOracleEnterpriseUnencrypted) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.encryptionMethod, other.encryptionMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.encryptionMethod, other.encryptionMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - encryptionMethod); + return Utils.enhancedHash( + additionalProperties, encryptionMethod); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "encryptionMethod", encryptionMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional encryptionMethod; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder encryptionMethod(SourceOracleEnterpriseEncryptionMethod encryptionMethod) { Utils.checkNotNull(encryptionMethod, "encryptionMethod"); this.encryptionMethod = Optional.ofNullable(encryptionMethod); @@ -155,16 +156,18 @@ public Builder encryptionMethod(Optional> _SINGLETON_VALUE_EncryptionMethod = new LazySingletonValue<>( "encryption_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseUpdateMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseUpdateMethod.java index 523b4bcd9..0d0a96c86 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseUpdateMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleEnterpriseUpdateMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceOracleEnterpriseUpdateMethod @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceOracleEnterpriseUpdateMethod other = (SourceOracleEnterpriseUpdateMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleNativeNetworkEncryptionNNE.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleNativeNetworkEncryptionNNE.java index 39449def8..7b5a8d0d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleNativeNetworkEncryptionNNE.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleNativeNetworkEncryptionNNE.java @@ -14,16 +14,16 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * SourceOracleNativeNetworkEncryptionNNE * - *

    The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. + *

    The native network encryption gives you the ability to encrypt database connections, without the + * configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different + * ports. */ public class SourceOracleNativeNetworkEncryptionNNE { - /** * This parameter defines what encryption algorithm is used. */ @@ -31,6 +31,7 @@ public class SourceOracleNativeNetworkEncryptionNNE { @JsonProperty("encryption_algorithm") private Optional encryptionAlgorithm; + @JsonProperty("encryption_method") private SourceOracleSchemasEncryptionMethod encryptionMethod; @@ -60,9 +61,10 @@ public SourceOracleSchemasEncryptionMethod encryptionMethod() { return encryptionMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * This parameter defines what encryption algorithm is used. @@ -73,6 +75,7 @@ public SourceOracleNativeNetworkEncryptionNNE withEncryptionAlgorithm(SourceOrac return this; } + /** * This parameter defines what encryption algorithm is used. */ @@ -82,7 +85,6 @@ public SourceOracleNativeNetworkEncryptionNNE withEncryptionAlgorithm(Optional encryptionAlgorithm; - + private Builder() { // force use of static builder() method } + /** * This parameter defines what encryption algorithm is used. */ @@ -136,15 +139,17 @@ public Builder encryptionAlgorithm(Optional> _SINGLETON_VALUE_EncryptionAlgorithm = new LazySingletonValue<>( "encryption_algorithm", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleNoTunnel.java index 3f6f9e425..7a4535747 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceOracleNoTunnel { +public class SourceOracleNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class SourceOracleNoTunnel { @JsonCreator public SourceOracleNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public SourceOracleTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } SourceOracleNoTunnel other = (SourceOracleNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(SourceOracleNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceOracleNoTunnel build() { + return new SourceOracleNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java index 7b1422600..f14513946 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleOracle.java @@ -14,7 +14,7 @@ public enum SourceOracleOracle { @JsonValue private final String value; - private SourceOracleOracle(String value) { + SourceOracleOracle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOraclePasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceOraclePasswordAuthentication.java index 7241c8f03..12fedd4ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOraclePasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOraclePasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceOraclePasswordAuthentication { +public class SourceOraclePasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public SourceOraclePasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public SourceOraclePasswordAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public SourceOraclePasswordAuthentication withTunnelUserPassword(String tunnelUs return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } SourceOraclePasswordAuthentication other = (SourceOraclePasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public SourceOraclePasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceOraclePasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHKeyAuthentication.java index 3df117770..280d6d1bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceOracleSSHKeyAuthentication { +public class SourceOracleSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public SourceOracleSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public SourceOracleSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public SourceOracleSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public SourceOracleSSHKeyAuthentication withTunnelUser(String tunnelUser) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } SourceOracleSSHKeyAuthentication other = (SourceOracleSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public SourceOracleSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceOracleSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHTunnelMethod.java index 65530ea90..a9264fce6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceOracleSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = SourceOracleSSHTunnelMethod._Deserializer.class) public class SourceOracleSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceOracleSSHTunnelMethod other = (SourceOracleSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java index 0e5ce6da0..042a231c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionEncryptionMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleSchemasEncryptionEncryptionMethod { @JsonValue private final String value; - private SourceOracleSchemasEncryptionEncryptionMethod(String value) { + SourceOracleSchemasEncryptionEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionMethod.java index ee09f772f..7ff8fed96 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasEncryptionMethod.java @@ -14,7 +14,7 @@ public enum SourceOracleSchemasEncryptionMethod { @JsonValue private final String value; - private SourceOracleSchemasEncryptionMethod(String value) { + SourceOracleSchemasEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethod.java index e06100dbe..064cab24a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourceOracleSchemasTunnelMethod { @JsonValue private final String value; - private SourceOracleSchemasTunnelMethod(String value) { + SourceOracleSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethodTunnelMethod.java index 94d2d52de..57f6f4eb8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourceOracleSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private SourceOracleSchemasTunnelMethodTunnelMethod(String value) { + SourceOracleSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleTLSEncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleTLSEncryptedVerifyCertificate.java index 5012ba53b..76e6d151e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleTLSEncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleTLSEncryptedVerifyCertificate.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * SourceOracleTLSEncryptedVerifyCertificate @@ -24,7 +23,8 @@ public class SourceOracleTLSEncryptedVerifyCertificate { private SourceOracleSchemasEncryptionEncryptionMethod encryptionMethod; /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ @JsonProperty("ssl_certificate") private String sslCertificate; @@ -43,19 +43,22 @@ public SourceOracleSchemasEncryptionEncryptionMethod encryptionMethod() { } /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ @JsonIgnore public String sslCertificate() { return sslCertificate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ public SourceOracleTLSEncryptedVerifyCertificate withSslCertificate(String sslCertificate) { Utils.checkNotNull(sslCertificate, "sslCertificate"); @@ -63,7 +66,6 @@ public SourceOracleTLSEncryptedVerifyCertificate withSslCertificate(String sslCe return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -74,15 +76,14 @@ public boolean equals(java.lang.Object o) { } SourceOracleTLSEncryptedVerifyCertificate other = (SourceOracleTLSEncryptedVerifyCertificate) o; return - Objects.deepEquals(this.encryptionMethod, other.encryptionMethod) && - Objects.deepEquals(this.sslCertificate, other.sslCertificate); + Utils.enhancedDeepEquals(this.encryptionMethod, other.encryptionMethod) && + Utils.enhancedDeepEquals(this.sslCertificate, other.sslCertificate); } @Override public int hashCode() { - return Objects.hash( - encryptionMethod, - sslCertificate); + return Utils.enhancedHash( + encryptionMethod, sslCertificate); } @Override @@ -91,29 +92,34 @@ public String toString() { "encryptionMethod", encryptionMethod, "sslCertificate", sslCertificate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sslCertificate; - + private Builder() { // force use of static builder() method } + /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ public Builder sslCertificate(String sslCertificate) { Utils.checkNotNull(sslCertificate, "sslCertificate"); this.sslCertificate = sslCertificate; return this; } - + public SourceOracleTLSEncryptedVerifyCertificate build() { + return new SourceOracleTLSEncryptedVerifyCertificate( sslCertificate); } + private static final LazySingletonValue _SINGLETON_VALUE_EncryptionMethod = new LazySingletonValue<>( "encryption_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java index baa555a46..5d70b4974 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourceOracleTunnelMethod { @JsonValue private final String value; - private SourceOracleTunnelMethod(String value) { + SourceOracleTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOracleUnencrypted.java b/src/main/java/com/airbyte/api/models/shared/SourceOracleUnencrypted.java index a37797c73..81c19040b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOracleUnencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOracleUnencrypted.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * SourceOracleUnencrypted @@ -25,7 +24,6 @@ public class SourceOracleUnencrypted { @JsonCreator public SourceOracleUnencrypted() { - this.encryptionMethod = Builder._SINGLETON_VALUE_EncryptionMethod.value(); } @@ -34,11 +32,11 @@ public SourceOracleEncryptionMethod encryptionMethod() { return encryptionMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +47,12 @@ public boolean equals(java.lang.Object o) { } SourceOracleUnencrypted other = (SourceOracleUnencrypted) o; return - Objects.deepEquals(this.encryptionMethod, other.encryptionMethod); + Utils.enhancedDeepEquals(this.encryptionMethod, other.encryptionMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( encryptionMethod); } @@ -63,18 +61,21 @@ public String toString() { return Utils.toString(SourceOracleUnencrypted.class, "encryptionMethod", encryptionMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceOracleUnencrypted build() { + return new SourceOracleUnencrypted( ); } + private static final LazySingletonValue _SINGLETON_VALUE_EncryptionMethod = new LazySingletonValue<>( "encryption_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOrb.java b/src/main/java/com/airbyte/api/models/shared/SourceOrb.java index f78fe706b..3288babff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOrb.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOrb.java @@ -17,11 +17,10 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceOrb { +public class SourceOrb { /** * Orb API Key, issued from the Orb admin console. */ @@ -29,21 +28,24 @@ public class SourceOrb { private String apiKey; /** - * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. + * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will + * not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") private Optional endDate; /** - * When set to N, the connector will always refresh resources created within the past N days. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N days. By + * default, updated objects that are not newly created are not incrementally synced. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lookback_window_days") private Optional lookbackWindowDays; /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("numeric_event_properties_keys") @@ -56,17 +58,20 @@ public class SourceOrb { @JsonProperty("plan_id") private Optional planId; + @JsonProperty("sourceType") private Orb sourceType; /** - * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. + * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will + * not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ @JsonProperty("start_date") private OffsetDateTime startDate; /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("string_event_properties_keys") @@ -111,7 +116,9 @@ public SourceOrb( public SourceOrb( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate, Optional.empty(), Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), startDate, + Optional.empty(), Optional.empty()); } /** @@ -123,7 +130,8 @@ public String apiKey() { } /** - * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. + * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will + * not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ @JsonIgnore public Optional endDate() { @@ -131,7 +139,8 @@ public Optional endDate() { } /** - * When set to N, the connector will always refresh resources created within the past N days. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N days. By + * default, updated objects that are not newly created are not incrementally synced. */ @JsonIgnore public Optional lookbackWindowDays() { @@ -139,7 +148,8 @@ public Optional lookbackWindowDays() { } /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -161,7 +171,8 @@ public Orb sourceType() { } /** - * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. + * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will + * not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ @JsonIgnore public OffsetDateTime startDate() { @@ -169,7 +180,8 @@ public OffsetDateTime startDate() { } /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -185,9 +197,10 @@ public Optional subscriptionUsageGroupingKey() { return subscriptionUsageGroupingKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Orb API Key, issued from the Orb admin console. @@ -199,7 +212,8 @@ public SourceOrb withApiKey(String apiKey) { } /** - * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. + * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will + * not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ public SourceOrb withEndDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -207,8 +221,10 @@ public SourceOrb withEndDate(String endDate) { return this; } + /** - * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. + * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will + * not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ public SourceOrb withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -217,7 +233,8 @@ public SourceOrb withEndDate(Optional endDate) { } /** - * When set to N, the connector will always refresh resources created within the past N days. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N days. By + * default, updated objects that are not newly created are not incrementally synced. */ public SourceOrb withLookbackWindowDays(long lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -225,8 +242,10 @@ public SourceOrb withLookbackWindowDays(long lookbackWindowDays) { return this; } + /** - * When set to N, the connector will always refresh resources created within the past N days. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N days. By + * default, updated objects that are not newly created are not incrementally synced. */ public SourceOrb withLookbackWindowDays(Optional lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -235,7 +254,8 @@ public SourceOrb withLookbackWindowDays(Optional lookbackWindowDays) { } /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ public SourceOrb withNumericEventPropertiesKeys(List numericEventPropertiesKeys) { Utils.checkNotNull(numericEventPropertiesKeys, "numericEventPropertiesKeys"); @@ -243,8 +263,10 @@ public SourceOrb withNumericEventPropertiesKeys(List numericEventPropert return this; } + /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ public SourceOrb withNumericEventPropertiesKeys(Optional> numericEventPropertiesKeys) { Utils.checkNotNull(numericEventPropertiesKeys, "numericEventPropertiesKeys"); @@ -261,6 +283,7 @@ public SourceOrb withPlanId(String planId) { return this; } + /** * Orb Plan ID to filter subscriptions that should have usage fetched. */ @@ -271,7 +294,8 @@ public SourceOrb withPlanId(Optional planId) { } /** - * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. + * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will + * not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ public SourceOrb withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -280,7 +304,8 @@ public SourceOrb withStartDate(OffsetDateTime startDate) { } /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ public SourceOrb withStringEventPropertiesKeys(List stringEventPropertiesKeys) { Utils.checkNotNull(stringEventPropertiesKeys, "stringEventPropertiesKeys"); @@ -288,8 +313,10 @@ public SourceOrb withStringEventPropertiesKeys(List stringEventPropertie return this; } + /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ public SourceOrb withStringEventPropertiesKeys(Optional> stringEventPropertiesKeys) { Utils.checkNotNull(stringEventPropertiesKeys, "stringEventPropertiesKeys"); @@ -306,6 +333,7 @@ public SourceOrb withSubscriptionUsageGroupingKey(String subscriptionUsageGroupi return this; } + /** * Property key name to group subscription usage by. */ @@ -315,7 +343,6 @@ public SourceOrb withSubscriptionUsageGroupingKey(Optional subscriptionU return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -326,29 +353,23 @@ public boolean equals(java.lang.Object o) { } SourceOrb other = (SourceOrb) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.lookbackWindowDays, other.lookbackWindowDays) && - Objects.deepEquals(this.numericEventPropertiesKeys, other.numericEventPropertiesKeys) && - Objects.deepEquals(this.planId, other.planId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.stringEventPropertiesKeys, other.stringEventPropertiesKeys) && - Objects.deepEquals(this.subscriptionUsageGroupingKey, other.subscriptionUsageGroupingKey); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.lookbackWindowDays, other.lookbackWindowDays) && + Utils.enhancedDeepEquals(this.numericEventPropertiesKeys, other.numericEventPropertiesKeys) && + Utils.enhancedDeepEquals(this.planId, other.planId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.stringEventPropertiesKeys, other.stringEventPropertiesKeys) && + Utils.enhancedDeepEquals(this.subscriptionUsageGroupingKey, other.subscriptionUsageGroupingKey); } @Override public int hashCode() { - return Objects.hash( - apiKey, - endDate, - lookbackWindowDays, - numericEventPropertiesKeys, - planId, - sourceType, - startDate, - stringEventPropertiesKeys, - subscriptionUsageGroupingKey); + return Utils.enhancedHash( + apiKey, endDate, lookbackWindowDays, + numericEventPropertiesKeys, planId, sourceType, + startDate, stringEventPropertiesKeys, subscriptionUsageGroupingKey); } @Override @@ -364,29 +385,31 @@ public String toString() { "stringEventPropertiesKeys", stringEventPropertiesKeys, "subscriptionUsageGroupingKey", subscriptionUsageGroupingKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional endDate = Optional.empty(); - + private Optional lookbackWindowDays; - + private Optional> numericEventPropertiesKeys = Optional.empty(); - + private Optional planId = Optional.empty(); - + private OffsetDateTime startDate; - + private Optional> stringEventPropertiesKeys = Optional.empty(); - + private Optional subscriptionUsageGroupingKey = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Orb API Key, issued from the Orb admin console. */ @@ -396,8 +419,10 @@ public Builder apiKey(String apiKey) { return this; } + /** - * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. + * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will + * not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ public Builder endDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -406,7 +431,8 @@ public Builder endDate(String endDate) { } /** - * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. + * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at after this data will + * not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -414,8 +440,10 @@ public Builder endDate(Optional endDate) { return this; } + /** - * When set to N, the connector will always refresh resources created within the past N days. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N days. By + * default, updated objects that are not newly created are not incrementally synced. */ public Builder lookbackWindowDays(long lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -424,7 +452,8 @@ public Builder lookbackWindowDays(long lookbackWindowDays) { } /** - * When set to N, the connector will always refresh resources created within the past N days. By default, updated objects that are not newly created are not incrementally synced. + * When set to N, the connector will always refresh resources created within the past N days. By + * default, updated objects that are not newly created are not incrementally synced. */ public Builder lookbackWindowDays(Optional lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -432,8 +461,10 @@ public Builder lookbackWindowDays(Optional lookbackWindowDays) { return this; } + /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ public Builder numericEventPropertiesKeys(List numericEventPropertiesKeys) { Utils.checkNotNull(numericEventPropertiesKeys, "numericEventPropertiesKeys"); @@ -442,7 +473,8 @@ public Builder numericEventPropertiesKeys(List numericEventPropertiesKey } /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ public Builder numericEventPropertiesKeys(Optional> numericEventPropertiesKeys) { Utils.checkNotNull(numericEventPropertiesKeys, "numericEventPropertiesKeys"); @@ -450,6 +482,7 @@ public Builder numericEventPropertiesKeys(Optional> numer return this; } + /** * Orb Plan ID to filter subscriptions that should have usage fetched. */ @@ -468,8 +501,10 @@ public Builder planId(Optional planId) { return this; } + /** - * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. + * UTC date and time in the format 2022-03-01T00:00:00Z. Any data with created_at before this data will + * not be synced. For Subscription Usage, this becomes the `timeframe_start` API parameter. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -477,8 +512,10 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ public Builder stringEventPropertiesKeys(List stringEventPropertiesKeys) { Utils.checkNotNull(stringEventPropertiesKeys, "stringEventPropertiesKeys"); @@ -487,7 +524,8 @@ public Builder stringEventPropertiesKeys(List stringEventPropertiesKeys) } /** - * Property key names to extract from all events, in order to enrich ledger entries corresponding to an event deduction. + * Property key names to extract from all events, in order to enrich ledger entries corresponding to an + * event deduction. */ public Builder stringEventPropertiesKeys(Optional> stringEventPropertiesKeys) { Utils.checkNotNull(stringEventPropertiesKeys, "stringEventPropertiesKeys"); @@ -495,6 +533,7 @@ public Builder stringEventPropertiesKeys(Optional> string return this; } + /** * Property key name to group subscription usage by. */ @@ -512,22 +551,19 @@ public Builder subscriptionUsageGroupingKey(Optional subscriptionUsageGr this.subscriptionUsageGroupingKey = subscriptionUsageGroupingKey; return this; } - + public SourceOrb build() { if (lookbackWindowDays == null) { lookbackWindowDays = _SINGLETON_VALUE_LookbackWindowDays.value(); } + return new SourceOrb( - apiKey, - endDate, - lookbackWindowDays, - numericEventPropertiesKeys, - planId, - startDate, - stringEventPropertiesKeys, - subscriptionUsageGroupingKey); + apiKey, endDate, lookbackWindowDays, + numericEventPropertiesKeys, planId, startDate, + stringEventPropertiesKeys, subscriptionUsageGroupingKey); } + private static final LazySingletonValue> _SINGLETON_VALUE_LookbackWindowDays = new LazySingletonValue<>( "lookback_window_days", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOura.java b/src/main/java/com/airbyte/api/models/shared/SourceOura.java index 11dd5d94f..07f5219dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOura.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOura.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceOura { +public class SourceOura { /** * API Key */ @@ -32,6 +31,7 @@ public class SourceOura { @JsonProperty("end_datetime") private Optional endDatetime; + @JsonProperty("sourceType") private Oura sourceType; @@ -92,9 +92,10 @@ public Optional startDatetime() { return startDatetime; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -114,6 +115,7 @@ public SourceOura withEndDatetime(OffsetDateTime endDatetime) { return this; } + /** * End datetime to sync until. Default is current UTC datetime. */ @@ -133,6 +135,7 @@ public SourceOura withStartDatetime(OffsetDateTime startDatetime) { return this; } + /** * Start datetime to sync from. Default is current UTC datetime minus 1 * day. @@ -143,7 +146,6 @@ public SourceOura withStartDatetime(Optional startDatetime) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -154,18 +156,16 @@ public boolean equals(java.lang.Object o) { } SourceOura other = (SourceOura) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDatetime, other.endDatetime) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDatetime, other.startDatetime); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDatetime, other.endDatetime) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDatetime, other.startDatetime); } @Override public int hashCode() { - return Objects.hash( - apiKey, - endDatetime, - sourceType, + return Utils.enhancedHash( + apiKey, endDatetime, sourceType, startDatetime); } @@ -177,19 +177,21 @@ public String toString() { "sourceType", sourceType, "startDatetime", startDatetime); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional endDatetime = Optional.empty(); - + private Optional startDatetime = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -199,6 +201,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * End datetime to sync until. Default is current UTC datetime. */ @@ -217,6 +220,7 @@ public Builder endDatetime(Optional endDatetime) { return this; } + /** * Start datetime to sync from. Default is current UTC datetime minus 1 * day. @@ -236,14 +240,14 @@ public Builder startDatetime(Optional startDatetime) { this.startDatetime = startDatetime; return this; } - + public SourceOura build() { + return new SourceOura( - apiKey, - endDatetime, - startDatetime); + apiKey, endDatetime, startDatetime); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplify.java b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplify.java index 08d4ce366..53f25edc7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplify.java @@ -14,13 +14,14 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceOutbrainAmplify { +public class SourceOutbrainAmplify { /** - * The definition of conversion count in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + * The definition of conversion count in reports. See the + * docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("conversion_count") @@ -47,12 +48,15 @@ public class SourceOutbrainAmplify { private Optional geoLocationBreakdown; /** - * The granularity used for periodic data in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + * The granularity used for periodic data in reports. See the + * docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("report_granularity") private Optional reportGranularity; + @JsonProperty("sourceType") private OutbrainAmplify sourceType; @@ -88,11 +92,14 @@ public SourceOutbrainAmplify( public SourceOutbrainAmplify( SourceOutbrainAmplifyAuthenticationMethod credentials, String startDate) { - this(Optional.empty(), credentials, Optional.empty(), Optional.empty(), Optional.empty(), startDate); + this(Optional.empty(), credentials, Optional.empty(), + Optional.empty(), Optional.empty(), startDate); } /** - * The definition of conversion count in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + * The definition of conversion count in reports. See the + * docs. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -126,7 +133,9 @@ public Optional geoLocationBreakdown() { } /** - * The granularity used for periodic data in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + * The granularity used for periodic data in reports. See the + * docs. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -147,12 +156,15 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The definition of conversion count in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + * The definition of conversion count in reports. See the + * docs. */ public SourceOutbrainAmplify withConversionCount(DefinitionOfConversionCountInReports conversionCount) { Utils.checkNotNull(conversionCount, "conversionCount"); @@ -160,8 +172,11 @@ public SourceOutbrainAmplify withConversionCount(DefinitionOfConversionCountInRe return this; } + /** - * The definition of conversion count in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + * The definition of conversion count in reports. See the + * docs. */ public SourceOutbrainAmplify withConversionCount(Optional conversionCount) { Utils.checkNotNull(conversionCount, "conversionCount"); @@ -187,6 +202,7 @@ public SourceOutbrainAmplify withEndDate(String endDate) { return this; } + /** * Date in the format YYYY-MM-DD. */ @@ -205,6 +221,7 @@ public SourceOutbrainAmplify withGeoLocationBreakdown(GranularityForGeoLocationR return this; } + /** * The granularity used for geo location data in reports. */ @@ -215,7 +232,9 @@ public SourceOutbrainAmplify withGeoLocationBreakdown(Optionalthe + * docs. */ public SourceOutbrainAmplify withReportGranularity(GranularityForPeriodicReports reportGranularity) { Utils.checkNotNull(reportGranularity, "reportGranularity"); @@ -223,8 +242,11 @@ public SourceOutbrainAmplify withReportGranularity(GranularityForPeriodicReports return this; } + /** - * The granularity used for periodic data in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + * The granularity used for periodic data in reports. See the + * docs. */ public SourceOutbrainAmplify withReportGranularity(Optional reportGranularity) { Utils.checkNotNull(reportGranularity, "reportGranularity"); @@ -241,7 +263,6 @@ public SourceOutbrainAmplify withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -252,24 +273,20 @@ public boolean equals(java.lang.Object o) { } SourceOutbrainAmplify other = (SourceOutbrainAmplify) o; return - Objects.deepEquals(this.conversionCount, other.conversionCount) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.geoLocationBreakdown, other.geoLocationBreakdown) && - Objects.deepEquals(this.reportGranularity, other.reportGranularity) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.conversionCount, other.conversionCount) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.geoLocationBreakdown, other.geoLocationBreakdown) && + Utils.enhancedDeepEquals(this.reportGranularity, other.reportGranularity) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - conversionCount, - credentials, - endDate, - geoLocationBreakdown, - reportGranularity, - sourceType, + return Utils.enhancedHash( + conversionCount, credentials, endDate, + geoLocationBreakdown, reportGranularity, sourceType, startDate); } @@ -284,27 +301,31 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional conversionCount = Optional.empty(); - + private SourceOutbrainAmplifyAuthenticationMethod credentials; - + private Optional endDate = Optional.empty(); - + private Optional geoLocationBreakdown = Optional.empty(); - + private Optional reportGranularity = Optional.empty(); - + private String startDate; - + private Builder() { // force use of static builder() method } + /** - * The definition of conversion count in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + * The definition of conversion count in reports. See the + * docs. */ public Builder conversionCount(DefinitionOfConversionCountInReports conversionCount) { Utils.checkNotNull(conversionCount, "conversionCount"); @@ -313,7 +334,9 @@ public Builder conversionCount(DefinitionOfConversionCountInReports conversionCo } /** - * The definition of conversion count in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + * The definition of conversion count in reports. See the + * docs. */ public Builder conversionCount(Optional conversionCount) { Utils.checkNotNull(conversionCount, "conversionCount"); @@ -321,6 +344,7 @@ public Builder conversionCount(Optional endDate) { return this; } + /** * The granularity used for geo location data in reports. */ @@ -366,8 +392,11 @@ public Builder geoLocationBreakdown(Optionalthe + * docs. */ public Builder reportGranularity(GranularityForPeriodicReports reportGranularity) { Utils.checkNotNull(reportGranularity, "reportGranularity"); @@ -376,7 +405,9 @@ public Builder reportGranularity(GranularityForPeriodicReports reportGranularity } /** - * The granularity used for periodic data in reports. See <a href="https://amplifyv01.docs.apiary.io/#reference/performance-reporting/periodic/retrieve-performance-statistics-for-all-marketer-campaigns-by-periodic-breakdown">the docs</a>. + * The granularity used for periodic data in reports. See the + * docs. */ public Builder reportGranularity(Optional reportGranularity) { Utils.checkNotNull(reportGranularity, "reportGranularity"); @@ -384,6 +415,7 @@ public Builder reportGranularity(Optional _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAccessToken.java index e48bbaed6..e604e8067 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAccessToken.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceOutbrainAmplifyAccessToken { +public class SourceOutbrainAmplifyAccessToken { /** * Access Token for making authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("type") private AccessTokenIsRequiredForAuthenticationRequests type; @@ -45,9 +45,10 @@ public AccessTokenIsRequiredForAuthenticationRequests type() { return type; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -58,7 +59,6 @@ public SourceOutbrainAmplifyAccessToken withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceOutbrainAmplifyAccessToken other = (SourceOutbrainAmplifyAccessToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.type, other.type); } @Override public int hashCode() { - return Objects.hash( - accessToken, - type); + return Utils.enhancedHash( + accessToken, type); } @Override @@ -86,15 +85,17 @@ public String toString() { "accessToken", accessToken, "type", type); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -103,12 +104,14 @@ public Builder accessToken(String accessToken) { this.accessToken = accessToken; return this; } - + public SourceOutbrainAmplifyAccessToken build() { + return new SourceOutbrainAmplifyAccessToken( accessToken); } + private static final LazySingletonValue _SINGLETON_VALUE_Type = new LazySingletonValue<>( "type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAuthenticationMethod.java index 14e4727cf..aa9149369 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyAuthenticationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceOutbrainAmplifyAuthenticationMethod @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceOutbrainAmplifyAuthenticationMethod other = (SourceOutbrainAmplifyAuthenticationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyUsernamePassword.java b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyUsernamePassword.java index 3d83856d5..57e167cf0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyUsernamePassword.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOutbrainAmplifyUsernamePassword.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceOutbrainAmplifyUsernamePassword { +public class SourceOutbrainAmplifyUsernamePassword { /** * Add Password for authentication. */ @JsonProperty("password") private String password; + @JsonProperty("type") private BothUsernameAndPasswordIsRequiredForAuthenticationRequest type; @@ -62,9 +62,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Add Password for authentication. @@ -84,7 +85,6 @@ public SourceOutbrainAmplifyUsernamePassword withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceOutbrainAmplifyUsernamePassword other = (SourceOutbrainAmplifyUsernamePassword) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.type, other.type) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.type, other.type) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - type, - username); + return Utils.enhancedHash( + password, type, username); } @Override @@ -115,17 +113,19 @@ public String toString() { "type", type, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Add Password for authentication. */ @@ -135,6 +135,7 @@ public Builder password(String password) { return this; } + /** * Add Username for authentication. */ @@ -143,13 +144,14 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceOutbrainAmplifyUsernamePassword build() { + return new SourceOutbrainAmplifyUsernamePassword( - password, - username); + password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_Type = new LazySingletonValue<>( "type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOutreach.java b/src/main/java/com/airbyte/api/models/shared/SourceOutreach.java index 047827fa0..95d5407e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOutreach.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOutreach.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceOutreach { +public class SourceOutreach { /** * The Client ID of your Outreach developer application. */ @@ -29,7 +28,8 @@ public class SourceOutreach { private String clientSecret; /** - * A Redirect URI is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token. + * A Redirect URI is the location where the authorization server sends the user once the app has been + * successfully authorized and granted an authorization code or access token. */ @JsonProperty("redirect_uri") private String redirectUri; @@ -40,11 +40,13 @@ public class SourceOutreach { @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private Outreach sourceType; /** - * The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00.000Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Outreach API, in the format + * YYYY-MM-DDT00:00:00.000Z. All data generated after this date will be replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -86,7 +88,8 @@ public String clientSecret() { } /** - * A Redirect URI is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token. + * A Redirect URI is the location where the authorization server sends the user once the app has been + * successfully authorized and granted an authorization code or access token. */ @JsonIgnore public String redirectUri() { @@ -107,16 +110,18 @@ public Outreach sourceType() { } /** - * The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00.000Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Outreach API, in the format + * YYYY-MM-DDT00:00:00.000Z. All data generated after this date will be replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Outreach developer application. @@ -137,7 +142,8 @@ public SourceOutreach withClientSecret(String clientSecret) { } /** - * A Redirect URI is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token. + * A Redirect URI is the location where the authorization server sends the user once the app has been + * successfully authorized and granted an authorization code or access token. */ public SourceOutreach withRedirectUri(String redirectUri) { Utils.checkNotNull(redirectUri, "redirectUri"); @@ -155,7 +161,8 @@ public SourceOutreach withRefreshToken(String refreshToken) { } /** - * The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00.000Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Outreach API, in the format + * YYYY-MM-DDT00:00:00.000Z. All data generated after this date will be replicated. */ public SourceOutreach withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -163,7 +170,6 @@ public SourceOutreach withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,23 +180,19 @@ public boolean equals(java.lang.Object o) { } SourceOutreach other = (SourceOutreach) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.redirectUri, other.redirectUri) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.redirectUri, other.redirectUri) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - redirectUri, - refreshToken, - sourceType, - startDate); + return Utils.enhancedHash( + clientId, clientSecret, redirectUri, + refreshToken, sourceType, startDate); } @Override @@ -203,23 +205,25 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String redirectUri; - + private String refreshToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Outreach developer application. */ @@ -229,6 +233,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Outreach developer application. */ @@ -238,8 +243,10 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * A Redirect URI is the location where the authorization server sends the user once the app has been successfully authorized and granted an authorization code or access token. + * A Redirect URI is the location where the authorization server sends the user once the app has been + * successfully authorized and granted an authorization code or access token. */ public Builder redirectUri(String redirectUri) { Utils.checkNotNull(redirectUri, "redirectUri"); @@ -247,6 +254,7 @@ public Builder redirectUri(String redirectUri) { return this; } + /** * The token for obtaining the new access token. */ @@ -256,24 +264,25 @@ public Builder refreshToken(String refreshToken) { return this; } + /** - * The date from which you'd like to replicate data for Outreach API, in the format YYYY-MM-DDT00:00:00.000Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Outreach API, in the format + * YYYY-MM-DDT00:00:00.000Z. All data generated after this date will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceOutreach build() { + return new SourceOutreach( - clientId, - clientSecret, - redirectUri, - refreshToken, - startDate); + clientId, clientSecret, redirectUri, + refreshToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceOveit.java b/src/main/java/com/airbyte/api/models/shared/SourceOveit.java index 823b06c22..22efd010b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceOveit.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceOveit.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceOveit { +public class SourceOveit { /** * Oveit's login Email */ @@ -27,6 +26,7 @@ public class SourceOveit { @JsonProperty("password") private String password; + @JsonProperty("sourceType") private Oveit sourceType; @@ -62,9 +62,10 @@ public Oveit sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Oveit's login Email @@ -84,7 +85,6 @@ public SourceOveit withPassword(String password) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceOveit other = (SourceOveit) o; return - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - email, - password, - sourceType); + return Utils.enhancedHash( + email, password, sourceType); } @Override @@ -115,17 +113,19 @@ public String toString() { "password", password, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String email; - + private String password; - + private Builder() { // force use of static builder() method } + /** * Oveit's login Email */ @@ -135,6 +135,7 @@ public Builder email(String email) { return this; } + /** * Oveit's login Password */ @@ -143,13 +144,14 @@ public Builder password(String password) { this.password = password; return this; } - + public SourceOveit build() { + return new SourceOveit( - email, - password); + email, password); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePabblySubscriptionsBilling.java b/src/main/java/com/airbyte/api/models/shared/SourcePabblySubscriptionsBilling.java index 3f50dedcb..04efe0d7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePabblySubscriptionsBilling.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePabblySubscriptionsBilling.java @@ -13,18 +13,20 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourcePabblySubscriptionsBilling { @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private PabblySubscriptionsBilling sourceType; + @JsonProperty("username") private String username; @@ -59,9 +61,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourcePabblySubscriptionsBilling withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -69,6 +72,7 @@ public SourcePabblySubscriptionsBilling withPassword(String password) { return this; } + public SourcePabblySubscriptionsBilling withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -81,7 +85,6 @@ public SourcePabblySubscriptionsBilling withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -92,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourcePabblySubscriptionsBilling other = (SourcePabblySubscriptionsBilling) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - username); + return Utils.enhancedHash( + password, sourceType, username); } @Override @@ -112,17 +113,19 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -135,18 +138,20 @@ public Builder password(Optional password) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourcePabblySubscriptionsBilling build() { + return new SourcePabblySubscriptionsBilling( - password, - username); + password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePaddle.java b/src/main/java/com/airbyte/api/models/shared/SourcePaddle.java index 177011ba4..04419e720 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePaddle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePaddle.java @@ -15,13 +15,13 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourcePaddle { +public class SourcePaddle { /** - * Your Paddle API key. You can generate it by navigating to Paddle > Developer tools > Authentication > Generate API key. Treat this key like a password and keep it secure. + * Your Paddle API key. You can generate it by navigating to Paddle > Developer tools > + * Authentication > Generate API key. Treat this key like a password and keep it secure. */ @JsonProperty("api_key") private String apiKey; @@ -33,9 +33,11 @@ public class SourcePaddle { @JsonProperty("environment") private Optional environment; + @JsonProperty("sourceType") private Paddle sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -60,7 +62,8 @@ public SourcePaddle( } /** - * Your Paddle API key. You can generate it by navigating to Paddle > Developer tools > Authentication > Generate API key. Treat this key like a password and keep it secure. + * Your Paddle API key. You can generate it by navigating to Paddle > Developer tools > + * Authentication > Generate API key. Treat this key like a password and keep it secure. */ @JsonIgnore public String apiKey() { @@ -86,12 +89,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Paddle API key. You can generate it by navigating to Paddle > Developer tools > Authentication > Generate API key. Treat this key like a password and keep it secure. + * Your Paddle API key. You can generate it by navigating to Paddle > Developer tools > + * Authentication > Generate API key. Treat this key like a password and keep it secure. */ public SourcePaddle withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -108,6 +113,7 @@ public SourcePaddle withEnvironment(SourcePaddleEnvironment environment) { return this; } + /** * The environment for the Paddle API, either 'sandbox' or 'live'. */ @@ -123,7 +129,6 @@ public SourcePaddle withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -134,18 +139,16 @@ public boolean equals(java.lang.Object o) { } SourcePaddle other = (SourcePaddle) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.environment, other.environment) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.environment, other.environment) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - environment, - sourceType, + return Utils.enhancedHash( + apiKey, environment, sourceType, startDate); } @@ -157,21 +160,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional environment; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your Paddle API key. You can generate it by navigating to Paddle > Developer tools > Authentication > Generate API key. Treat this key like a password and keep it secure. + * Your Paddle API key. You can generate it by navigating to Paddle > Developer tools > + * Authentication > Generate API key. Treat this key like a password and keep it secure. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -179,6 +185,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The environment for the Paddle API, either 'sandbox' or 'live'. */ @@ -197,22 +204,23 @@ public Builder environment(Optional environme return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePaddle build() { if (environment == null) { environment = _SINGLETON_VALUE_Environment.value(); } + return new SourcePaddle( - apiKey, - environment, - startDate); + apiKey, environment, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Environment = new LazySingletonValue<>( "environment", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePaddleEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourcePaddleEnvironment.java index cc68624a1..ee35cda62 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePaddleEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePaddleEnvironment.java @@ -20,7 +20,7 @@ public enum SourcePaddleEnvironment { @JsonValue private final String value; - private SourcePaddleEnvironment(String value) { + SourcePaddleEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePagerduty.java b/src/main/java/com/airbyte/api/models/shared/SourcePagerduty.java index c1514d0a3..b166ed836 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePagerduty.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePagerduty.java @@ -17,11 +17,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourcePagerduty { +public class SourcePagerduty { /** * Fetch pipelines updated in the last number of days */ @@ -44,14 +43,16 @@ public class SourcePagerduty { private Optional> excludeServices; /** - * If true, will return a subset of log entries that show only the most important changes to the incident. + * If true, will return a subset of log entries that show only the most important changes to the + * incident. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("incident_log_entries_overview") private Optional incidentLogEntriesOverview; /** - * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will pause for an exponentially increasing number of seconds before retrying. + * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will + * pause for an exponentially increasing number of seconds before retrying. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("max_retries") @@ -71,6 +72,7 @@ public class SourcePagerduty { @JsonProperty("service_details") private Optional> serviceDetails; + @JsonProperty("sourceType") private Pagerduty sourceType; @@ -111,7 +113,9 @@ public SourcePagerduty( public SourcePagerduty( String token) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), token); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), token); } /** @@ -140,7 +144,8 @@ public Optional> excludeServices() { } /** - * If true, will return a subset of log entries that show only the most important changes to the incident. + * If true, will return a subset of log entries that show only the most important changes to the + * incident. */ @JsonIgnore public Optional incidentLogEntriesOverview() { @@ -148,7 +153,8 @@ public Optional incidentLogEntriesOverview() { } /** - * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will pause for an exponentially increasing number of seconds before retrying. + * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will + * pause for an exponentially increasing number of seconds before retrying. */ @JsonIgnore public Optional maxRetries() { @@ -185,9 +191,10 @@ public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Fetch pipelines updated in the last number of days @@ -198,6 +205,7 @@ public SourcePagerduty withCutoffDays(long cutoffDays) { return this; } + /** * Fetch pipelines updated in the last number of days */ @@ -216,6 +224,7 @@ public SourcePagerduty withDefaultSeverity(String defaultSeverity) { return this; } + /** * A default severity category if not present */ @@ -234,6 +243,7 @@ public SourcePagerduty withExcludeServices(List excludeServices) { return this; } + /** * List of PagerDuty service names to ignore incidents from. If not set, all incidents will be pulled. */ @@ -244,7 +254,8 @@ public SourcePagerduty withExcludeServices(Optional> excl } /** - * If true, will return a subset of log entries that show only the most important changes to the incident. + * If true, will return a subset of log entries that show only the most important changes to the + * incident. */ public SourcePagerduty withIncidentLogEntriesOverview(boolean incidentLogEntriesOverview) { Utils.checkNotNull(incidentLogEntriesOverview, "incidentLogEntriesOverview"); @@ -252,8 +263,10 @@ public SourcePagerduty withIncidentLogEntriesOverview(boolean incidentLogEntries return this; } + /** - * If true, will return a subset of log entries that show only the most important changes to the incident. + * If true, will return a subset of log entries that show only the most important changes to the + * incident. */ public SourcePagerduty withIncidentLogEntriesOverview(Optional incidentLogEntriesOverview) { Utils.checkNotNull(incidentLogEntriesOverview, "incidentLogEntriesOverview"); @@ -262,7 +275,8 @@ public SourcePagerduty withIncidentLogEntriesOverview(Optional incident } /** - * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will pause for an exponentially increasing number of seconds before retrying. + * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will + * pause for an exponentially increasing number of seconds before retrying. */ public SourcePagerduty withMaxRetries(long maxRetries) { Utils.checkNotNull(maxRetries, "maxRetries"); @@ -270,8 +284,10 @@ public SourcePagerduty withMaxRetries(long maxRetries) { return this; } + /** - * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will pause for an exponentially increasing number of seconds before retrying. + * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will + * pause for an exponentially increasing number of seconds before retrying. */ public SourcePagerduty withMaxRetries(Optional maxRetries) { Utils.checkNotNull(maxRetries, "maxRetries"); @@ -288,6 +304,7 @@ public SourcePagerduty withPageSize(long pageSize) { return this; } + /** * page size to use when querying PagerDuty API */ @@ -306,6 +323,7 @@ public SourcePagerduty withServiceDetails(List serviceDetails) { return this; } + /** * List of PagerDuty service additional details to include. */ @@ -324,7 +342,6 @@ public SourcePagerduty withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -335,29 +352,23 @@ public boolean equals(java.lang.Object o) { } SourcePagerduty other = (SourcePagerduty) o; return - Objects.deepEquals(this.cutoffDays, other.cutoffDays) && - Objects.deepEquals(this.defaultSeverity, other.defaultSeverity) && - Objects.deepEquals(this.excludeServices, other.excludeServices) && - Objects.deepEquals(this.incidentLogEntriesOverview, other.incidentLogEntriesOverview) && - Objects.deepEquals(this.maxRetries, other.maxRetries) && - Objects.deepEquals(this.pageSize, other.pageSize) && - Objects.deepEquals(this.serviceDetails, other.serviceDetails) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.cutoffDays, other.cutoffDays) && + Utils.enhancedDeepEquals(this.defaultSeverity, other.defaultSeverity) && + Utils.enhancedDeepEquals(this.excludeServices, other.excludeServices) && + Utils.enhancedDeepEquals(this.incidentLogEntriesOverview, other.incidentLogEntriesOverview) && + Utils.enhancedDeepEquals(this.maxRetries, other.maxRetries) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.serviceDetails, other.serviceDetails) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - cutoffDays, - defaultSeverity, - excludeServices, - incidentLogEntriesOverview, - maxRetries, - pageSize, - serviceDetails, - sourceType, - token); + return Utils.enhancedHash( + cutoffDays, defaultSeverity, excludeServices, + incidentLogEntriesOverview, maxRetries, pageSize, + serviceDetails, sourceType, token); } @Override @@ -373,29 +384,31 @@ public String toString() { "sourceType", sourceType, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional cutoffDays; - + private Optional defaultSeverity = Optional.empty(); - + private Optional> excludeServices = Optional.empty(); - + private Optional incidentLogEntriesOverview; - + private Optional maxRetries; - + private Optional pageSize; - + private Optional> serviceDetails = Optional.empty(); - + private String token; - + private Builder() { // force use of static builder() method } + /** * Fetch pipelines updated in the last number of days */ @@ -414,6 +427,7 @@ public Builder cutoffDays(Optional cutoffDays) { return this; } + /** * A default severity category if not present */ @@ -432,6 +446,7 @@ public Builder defaultSeverity(Optional defaultSeverity) { return this; } + /** * List of PagerDuty service names to ignore incidents from. If not set, all incidents will be pulled. */ @@ -450,8 +465,10 @@ public Builder excludeServices(Optional> excludeServices) return this; } + /** - * If true, will return a subset of log entries that show only the most important changes to the incident. + * If true, will return a subset of log entries that show only the most important changes to the + * incident. */ public Builder incidentLogEntriesOverview(boolean incidentLogEntriesOverview) { Utils.checkNotNull(incidentLogEntriesOverview, "incidentLogEntriesOverview"); @@ -460,7 +477,8 @@ public Builder incidentLogEntriesOverview(boolean incidentLogEntriesOverview) { } /** - * If true, will return a subset of log entries that show only the most important changes to the incident. + * If true, will return a subset of log entries that show only the most important changes to the + * incident. */ public Builder incidentLogEntriesOverview(Optional incidentLogEntriesOverview) { Utils.checkNotNull(incidentLogEntriesOverview, "incidentLogEntriesOverview"); @@ -468,8 +486,10 @@ public Builder incidentLogEntriesOverview(Optional incidentLogEntriesOv return this; } + /** - * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will pause for an exponentially increasing number of seconds before retrying. + * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will + * pause for an exponentially increasing number of seconds before retrying. */ public Builder maxRetries(long maxRetries) { Utils.checkNotNull(maxRetries, "maxRetries"); @@ -478,7 +498,8 @@ public Builder maxRetries(long maxRetries) { } /** - * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will pause for an exponentially increasing number of seconds before retrying. + * Maximum number of PagerDuty API request retries to perform upon connection errors. The source will + * pause for an exponentially increasing number of seconds before retrying. */ public Builder maxRetries(Optional maxRetries) { Utils.checkNotNull(maxRetries, "maxRetries"); @@ -486,6 +507,7 @@ public Builder maxRetries(Optional maxRetries) { return this; } + /** * page size to use when querying PagerDuty API */ @@ -504,6 +526,7 @@ public Builder pageSize(Optional pageSize) { return this; } + /** * List of PagerDuty service additional details to include. */ @@ -522,6 +545,7 @@ public Builder serviceDetails(Optional> serviceDe return this; } + /** * API key for PagerDuty API authentication */ @@ -530,7 +554,7 @@ public Builder token(String token) { this.token = token; return this; } - + public SourcePagerduty build() { if (cutoffDays == null) { cutoffDays = _SINGLETON_VALUE_CutoffDays.value(); @@ -544,17 +568,14 @@ public SourcePagerduty build() { if (pageSize == null) { pageSize = _SINGLETON_VALUE_PageSize.value(); } + return new SourcePagerduty( - cutoffDays, - defaultSeverity, - excludeServices, - incidentLogEntriesOverview, - maxRetries, - pageSize, - serviceDetails, - token); + cutoffDays, defaultSeverity, excludeServices, + incidentLogEntriesOverview, maxRetries, pageSize, + serviceDetails, token); } + private static final LazySingletonValue> _SINGLETON_VALUE_CutoffDays = new LazySingletonValue<>( "cutoff_days", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePandadoc.java b/src/main/java/com/airbyte/api/models/shared/SourcePandadoc.java index 9c240be51..593d1b905 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePandadoc.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePandadoc.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourcePandadoc { +public class SourcePandadoc { /** * API key to use. Find it at https://app.pandadoc.com/a/#/settings/api-dashboard/configuration */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Pandadoc sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it at https://app.pandadoc.com/a/#/settings/api-dashboard/configuration @@ -76,7 +78,6 @@ public SourcePandadoc withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourcePandadoc other = (SourcePandadoc) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it at https://app.pandadoc.com/a/#/settings/api-dashboard/configuration */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePandadoc build() { + return new SourcePandadoc( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePaperform.java b/src/main/java/com/airbyte/api/models/shared/SourcePaperform.java index 42112f9d9..11c2f21d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePaperform.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePaperform.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePaperform { +public class SourcePaperform { /** * API key to use. Generate it on your account page at https://paperform.co/account/developer. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Paperform sourceType; @@ -45,9 +45,10 @@ public Paperform sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Generate it on your account page at https://paperform.co/account/developer. @@ -58,7 +59,6 @@ public SourcePaperform withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourcePaperform other = (SourcePaperform) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key to use. Generate it on your account page at https://paperform.co/account/developer. */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourcePaperform build() { + return new SourcePaperform( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePapersign.java b/src/main/java/com/airbyte/api/models/shared/SourcePapersign.java index a8e37ac58..8b2bfadf3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePapersign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePapersign.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePapersign { +public class SourcePapersign { /** * API key to use. Generate it on your account page at https://paperform.co/account/developer. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Papersign sourceType; @@ -45,9 +45,10 @@ public Papersign sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Generate it on your account page at https://paperform.co/account/developer. @@ -58,7 +59,6 @@ public SourcePapersign withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourcePapersign other = (SourcePapersign) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key to use. Generate it on your account page at https://paperform.co/account/developer. */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourcePapersign build() { + return new SourcePapersign( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePardot.java b/src/main/java/com/airbyte/api/models/shared/SourcePardot.java index df7793573..a792b96cc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePardot.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePardot.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourcePardot { +public class SourcePardot { /** * The Consumer Key that can be found when viewing your app in Salesforce */ @@ -33,7 +32,8 @@ public class SourcePardot { private String clientSecret; /** - * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is false. + * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is + * false. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("is_sandbox") @@ -53,16 +53,21 @@ public class SourcePardot { private String pardotBusinessUnitId; /** - * Salesforce Refresh Token used for Airbyte to access your Salesforce account. If you don't know what this is, follow this <a href="https://medium.com/@bpmmendis94/obtain-access-refresh-tokens-from-salesforce-rest-api-a324fe4ccd9b">guide</a> to retrieve it. + * Salesforce Refresh Token used for Airbyte to access your Salesforce account. If you don't know what + * this is, follow this guide + * to retrieve it. */ @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private Pardot sourceType; /** - * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be + * replicated. Defaults to the year Pardot was released. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -99,7 +104,9 @@ public SourcePardot( String clientSecret, String pardotBusinessUnitId, String refreshToken) { - this(clientId, clientSecret, Optional.empty(), Optional.empty(), pardotBusinessUnitId, refreshToken, Optional.empty()); + this(clientId, clientSecret, Optional.empty(), + Optional.empty(), pardotBusinessUnitId, refreshToken, + Optional.empty()); } /** @@ -119,7 +126,8 @@ public String clientSecret() { } /** - * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is false. + * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is + * false. */ @JsonIgnore public Optional isSandbox() { @@ -143,7 +151,10 @@ public String pardotBusinessUnitId() { } /** - * Salesforce Refresh Token used for Airbyte to access your Salesforce account. If you don't know what this is, follow this <a href="https://medium.com/@bpmmendis94/obtain-access-refresh-tokens-from-salesforce-rest-api-a324fe4ccd9b">guide</a> to retrieve it. + * Salesforce Refresh Token used for Airbyte to access your Salesforce account. If you don't know what + * this is, follow this guide + * to retrieve it. */ @JsonIgnore public String refreshToken() { @@ -156,16 +167,18 @@ public Pardot sourceType() { } /** - * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be + * replicated. Defaults to the year Pardot was released. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Consumer Key that can be found when viewing your app in Salesforce @@ -186,7 +199,8 @@ public SourcePardot withClientSecret(String clientSecret) { } /** - * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is false. + * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is + * false. */ public SourcePardot withIsSandbox(boolean isSandbox) { Utils.checkNotNull(isSandbox, "isSandbox"); @@ -194,8 +208,10 @@ public SourcePardot withIsSandbox(boolean isSandbox) { return this; } + /** - * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is false. + * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is + * false. */ public SourcePardot withIsSandbox(Optional isSandbox) { Utils.checkNotNull(isSandbox, "isSandbox"); @@ -212,6 +228,7 @@ public SourcePardot withPageSize(String pageSize) { return this; } + /** * The maximum number of records to return per request */ @@ -231,7 +248,10 @@ public SourcePardot withPardotBusinessUnitId(String pardotBusinessUnitId) { } /** - * Salesforce Refresh Token used for Airbyte to access your Salesforce account. If you don't know what this is, follow this <a href="https://medium.com/@bpmmendis94/obtain-access-refresh-tokens-from-salesforce-rest-api-a324fe4ccd9b">guide</a> to retrieve it. + * Salesforce Refresh Token used for Airbyte to access your Salesforce account. If you don't know what + * this is, follow this guide + * to retrieve it. */ public SourcePardot withRefreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -240,7 +260,8 @@ public SourcePardot withRefreshToken(String refreshToken) { } /** - * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be + * replicated. Defaults to the year Pardot was released. */ public SourcePardot withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -248,8 +269,10 @@ public SourcePardot withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be + * replicated. Defaults to the year Pardot was released. */ public SourcePardot withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -257,7 +280,6 @@ public SourcePardot withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -268,27 +290,22 @@ public boolean equals(java.lang.Object o) { } SourcePardot other = (SourcePardot) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.isSandbox, other.isSandbox) && - Objects.deepEquals(this.pageSize, other.pageSize) && - Objects.deepEquals(this.pardotBusinessUnitId, other.pardotBusinessUnitId) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.isSandbox, other.isSandbox) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.pardotBusinessUnitId, other.pardotBusinessUnitId) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - isSandbox, - pageSize, - pardotBusinessUnitId, - refreshToken, - sourceType, - startDate); + return Utils.enhancedHash( + clientId, clientSecret, isSandbox, + pageSize, pardotBusinessUnitId, refreshToken, + sourceType, startDate); } @Override @@ -303,27 +320,29 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional isSandbox; - + private Optional pageSize; - + private String pardotBusinessUnitId; - + private String refreshToken; - + private Optional startDate; - + private Builder() { // force use of static builder() method } + /** * The Consumer Key that can be found when viewing your app in Salesforce */ @@ -333,6 +352,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Consumer Secret that can be found when viewing your app in Salesforce */ @@ -342,8 +362,10 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is false. + * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is + * false. */ public Builder isSandbox(boolean isSandbox) { Utils.checkNotNull(isSandbox, "isSandbox"); @@ -352,7 +374,8 @@ public Builder isSandbox(boolean isSandbox) { } /** - * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is false. + * Whether or not the the app is in a Salesforce sandbox. If you do not know what this, assume it is + * false. */ public Builder isSandbox(Optional isSandbox) { Utils.checkNotNull(isSandbox, "isSandbox"); @@ -360,6 +383,7 @@ public Builder isSandbox(Optional isSandbox) { return this; } + /** * The maximum number of records to return per request */ @@ -378,6 +402,7 @@ public Builder pageSize(Optional pageSize) { return this; } + /** * Pardot Business ID, can be found at Setup > Pardot > Pardot Account Setup */ @@ -387,8 +412,12 @@ public Builder pardotBusinessUnitId(String pardotBusinessUnitId) { return this; } + /** - * Salesforce Refresh Token used for Airbyte to access your Salesforce account. If you don't know what this is, follow this <a href="https://medium.com/@bpmmendis94/obtain-access-refresh-tokens-from-salesforce-rest-api-a324fe4ccd9b">guide</a> to retrieve it. + * Salesforce Refresh Token used for Airbyte to access your Salesforce account. If you don't know what + * this is, follow this guide + * to retrieve it. */ public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -396,8 +425,10 @@ public Builder refreshToken(String refreshToken) { return this; } + /** - * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be + * replicated. Defaults to the year Pardot was released. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -406,14 +437,15 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be replicated. Defaults to the year Pardot was released. + * UTC date and time in the format 2000-01-01T00:00:00Z. Any data before this date will not be + * replicated. Defaults to the year Pardot was released. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePardot build() { if (isSandbox == null) { isSandbox = _SINGLETON_VALUE_IsSandbox.value(); @@ -424,16 +456,14 @@ public SourcePardot build() { if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } + return new SourcePardot( - clientId, - clientSecret, - isSandbox, - pageSize, - pardotBusinessUnitId, - refreshToken, + clientId, clientSecret, isSandbox, + pageSize, pardotBusinessUnitId, refreshToken, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_IsSandbox = new LazySingletonValue<>( "is_sandbox", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePartnerize.java b/src/main/java/com/airbyte/api/models/shared/SourcePartnerize.java index d978b25c2..d443f7d39 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePartnerize.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePartnerize.java @@ -11,21 +11,23 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePartnerize { +public class SourcePartnerize { /** - * The application key identifies the network you are making the request against. Find it in your account settings under 'User Application Key' at https://console.partnerize.com. + * The application key identifies the network you are making the request against. Find it in your + * account settings under 'User Application Key' at https://console.partnerize.com. */ @JsonProperty("application_key") private String applicationKey; + @JsonProperty("sourceType") private Partnerize sourceType; /** - * The user API key identifies the user on whose behalf the request is made. Find it in your account settings under 'User API Key' at https://console.partnerize.com. + * The user API key identifies the user on whose behalf the request is made. Find it in your account + * settings under 'User API Key' at https://console.partnerize.com. */ @JsonProperty("user_api_key") private String userApiKey; @@ -42,7 +44,8 @@ public SourcePartnerize( } /** - * The application key identifies the network you are making the request against. Find it in your account settings under 'User Application Key' at https://console.partnerize.com. + * The application key identifies the network you are making the request against. Find it in your + * account settings under 'User Application Key' at https://console.partnerize.com. */ @JsonIgnore public String applicationKey() { @@ -55,19 +58,22 @@ public Partnerize sourceType() { } /** - * The user API key identifies the user on whose behalf the request is made. Find it in your account settings under 'User API Key' at https://console.partnerize.com. + * The user API key identifies the user on whose behalf the request is made. Find it in your account + * settings under 'User API Key' at https://console.partnerize.com. */ @JsonIgnore public String userApiKey() { return userApiKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The application key identifies the network you are making the request against. Find it in your account settings under 'User Application Key' at https://console.partnerize.com. + * The application key identifies the network you are making the request against. Find it in your + * account settings under 'User Application Key' at https://console.partnerize.com. */ public SourcePartnerize withApplicationKey(String applicationKey) { Utils.checkNotNull(applicationKey, "applicationKey"); @@ -76,7 +82,8 @@ public SourcePartnerize withApplicationKey(String applicationKey) { } /** - * The user API key identifies the user on whose behalf the request is made. Find it in your account settings under 'User API Key' at https://console.partnerize.com. + * The user API key identifies the user on whose behalf the request is made. Find it in your account + * settings under 'User API Key' at https://console.partnerize.com. */ public SourcePartnerize withUserApiKey(String userApiKey) { Utils.checkNotNull(userApiKey, "userApiKey"); @@ -84,7 +91,6 @@ public SourcePartnerize withUserApiKey(String userApiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +101,15 @@ public boolean equals(java.lang.Object o) { } SourcePartnerize other = (SourcePartnerize) o; return - Objects.deepEquals(this.applicationKey, other.applicationKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.userApiKey, other.userApiKey); + Utils.enhancedDeepEquals(this.applicationKey, other.applicationKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.userApiKey, other.userApiKey); } @Override public int hashCode() { - return Objects.hash( - applicationKey, - sourceType, - userApiKey); + return Utils.enhancedHash( + applicationKey, sourceType, userApiKey); } @Override @@ -115,19 +119,22 @@ public String toString() { "sourceType", sourceType, "userApiKey", userApiKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String applicationKey; - + private String userApiKey; - + private Builder() { // force use of static builder() method } + /** - * The application key identifies the network you are making the request against. Find it in your account settings under 'User Application Key' at https://console.partnerize.com. + * The application key identifies the network you are making the request against. Find it in your + * account settings under 'User Application Key' at https://console.partnerize.com. */ public Builder applicationKey(String applicationKey) { Utils.checkNotNull(applicationKey, "applicationKey"); @@ -135,21 +142,24 @@ public Builder applicationKey(String applicationKey) { return this; } + /** - * The user API key identifies the user on whose behalf the request is made. Find it in your account settings under 'User API Key' at https://console.partnerize.com. + * The user API key identifies the user on whose behalf the request is made. Find it in your account + * settings under 'User API Key' at https://console.partnerize.com. */ public Builder userApiKey(String userApiKey) { Utils.checkNotNull(userApiKey, "userApiKey"); this.userApiKey = userApiKey; return this; } - + public SourcePartnerize build() { + return new SourcePartnerize( - applicationKey, - userApiKey); + applicationKey, userApiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePartnerstack.java b/src/main/java/com/airbyte/api/models/shared/SourcePartnerstack.java index 3f8e9fdeb..b700ed780 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePartnerstack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePartnerstack.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourcePartnerstack { +public class SourcePartnerstack { /** * The Live Private Key for a Partnerstack account. */ @@ -30,11 +29,13 @@ public class SourcePartnerstack { @JsonProperty("public_key") private String publicKey; + @JsonProperty("sourceType") private Partnerstack sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -82,16 +83,18 @@ public Partnerstack sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Live Private Key for a Partnerstack account. @@ -112,7 +115,8 @@ public SourcePartnerstack withPublicKey(String publicKey) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourcePartnerstack withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -120,8 +124,10 @@ public SourcePartnerstack withStartDate(String startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourcePartnerstack withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -129,7 +135,6 @@ public SourcePartnerstack withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +145,16 @@ public boolean equals(java.lang.Object o) { } SourcePartnerstack other = (SourcePartnerstack) o; return - Objects.deepEquals(this.privateKey, other.privateKey) && - Objects.deepEquals(this.publicKey, other.publicKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.privateKey, other.privateKey) && + Utils.enhancedDeepEquals(this.publicKey, other.publicKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - privateKey, - publicKey, - sourceType, + return Utils.enhancedHash( + privateKey, publicKey, sourceType, startDate); } @@ -163,19 +166,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String privateKey; - + private String publicKey; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Live Private Key for a Partnerstack account. */ @@ -185,6 +190,7 @@ public Builder privateKey(String privateKey) { return this; } + /** * The Live Public Key for a Partnerstack account. */ @@ -194,8 +200,10 @@ public Builder publicKey(String publicKey) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -204,21 +212,22 @@ public Builder startDate(String startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePartnerstack build() { + return new SourcePartnerstack( - privateKey, - publicKey, - startDate); + privateKey, publicKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePatchRequest.java b/src/main/java/com/airbyte/api/models/shared/SourcePatchRequest.java index 01996d17b..0ba7444de 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePatchRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePatchRequest.java @@ -12,11 +12,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourcePatchRequest { +public class SourcePatchRequest { /** * The values required to configure the source. */ @@ -24,12 +23,18 @@ public class SourcePatchRequest { @JsonProperty("configuration") private Optional configuration; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") private Optional name; /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("resourceAllocation") @@ -42,6 +47,7 @@ public class SourcePatchRequest { @JsonProperty("secretId") private Optional secretId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("workspaceId") private Optional workspaceId; @@ -66,7 +72,8 @@ public SourcePatchRequest( } public SourcePatchRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -84,7 +91,12 @@ public Optional name() { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -105,9 +117,10 @@ public Optional workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The values required to configure the source. @@ -118,6 +131,7 @@ public SourcePatchRequest withConfiguration(SourceConfiguration configuration) { return this; } + /** * The values required to configure the source. */ @@ -133,6 +147,7 @@ public SourcePatchRequest withName(String name) { return this; } + public SourcePatchRequest withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -140,7 +155,12 @@ public SourcePatchRequest withName(Optional name) { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public SourcePatchRequest withResourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -148,8 +168,14 @@ public SourcePatchRequest withResourceAllocation(ScopedResourceRequirements reso return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public SourcePatchRequest withResourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -166,6 +192,7 @@ public SourcePatchRequest withSecretId(String secretId) { return this; } + /** * Optional secretID obtained through the OAuth redirect flow. */ @@ -181,13 +208,13 @@ public SourcePatchRequest withWorkspaceId(String workspaceId) { return this; } + public SourcePatchRequest withWorkspaceId(Optional workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -198,21 +225,18 @@ public boolean equals(java.lang.Object o) { } SourcePatchRequest other = (SourcePatchRequest) o; return - Objects.deepEquals(this.configuration, other.configuration) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.resourceAllocation, other.resourceAllocation) && - Objects.deepEquals(this.secretId, other.secretId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.configuration, other.configuration) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.resourceAllocation, other.resourceAllocation) && + Utils.enhancedDeepEquals(this.secretId, other.secretId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - configuration, - name, - resourceAllocation, - secretId, - workspaceId); + return Utils.enhancedHash( + configuration, name, resourceAllocation, + secretId, workspaceId); } @Override @@ -224,23 +248,25 @@ public String toString() { "secretId", secretId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional configuration = Optional.empty(); - + private Optional name = Optional.empty(); - + private Optional resourceAllocation = Optional.empty(); - + private Optional secretId = Optional.empty(); - + private Optional workspaceId = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The values required to configure the source. */ @@ -259,6 +285,7 @@ public Builder configuration(Optional configurati return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = Optional.ofNullable(name); @@ -271,8 +298,14 @@ public Builder name(Optional name) { return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -281,7 +314,12 @@ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -289,6 +327,7 @@ public Builder resourceAllocation(Optional return this; } + /** * Optional secretID obtained through the OAuth redirect flow. */ @@ -307,6 +346,7 @@ public Builder secretId(Optional secretId) { return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = Optional.ofNullable(workspaceId); @@ -318,14 +358,13 @@ public Builder workspaceId(Optional workspaceId) { this.workspaceId = workspaceId; return this; } - + public SourcePatchRequest build() { + return new SourcePatchRequest( - configuration, - name, - resourceAllocation, - secretId, - workspaceId); + configuration, name, resourceAllocation, + secretId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePayfit.java b/src/main/java/com/airbyte/api/models/shared/SourcePayfit.java index 7ffd1aa74..d737bcca8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePayfit.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePayfit.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourcePayfit { @JsonProperty("api_key") private String apiKey; + @JsonProperty("company_id") private String companyId; + @JsonProperty("sourceType") private Payfit sourceType; @@ -50,9 +52,10 @@ public Payfit sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourcePayfit withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -66,7 +69,6 @@ public SourcePayfit withCompanyId(String companyId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourcePayfit other = (SourcePayfit) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.companyId, other.companyId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - companyId, - sourceType); + return Utils.enhancedHash( + apiKey, companyId, sourceType); } @Override @@ -97,35 +97,39 @@ public String toString() { "companyId", companyId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String companyId; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder companyId(String companyId) { Utils.checkNotNull(companyId, "companyId"); this.companyId = companyId; return this; } - + public SourcePayfit build() { + return new SourcePayfit( - apiKey, - companyId); + apiKey, companyId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePaypalTransaction.java b/src/main/java/com/airbyte/api/models/shared/SourcePaypalTransaction.java index bae567d5d..2cbfe8124 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePaypalTransaction.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePaypalTransaction.java @@ -16,11 +16,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourcePaypalTransaction { +public class SourcePaypalTransaction { /** * The Client ID of your Paypal developer application. */ @@ -34,14 +33,23 @@ public class SourcePaypalTransaction { private String clientSecret; /** - * Start Date parameter for the list dispute endpoint in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This Start Date must be in range within 180 days before present time, and requires ONLY 3 miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in the past. + * Start Date parameter for the list dispute endpoint in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This + * Start Date must be in range within 180 days before present time, and requires ONLY 3 + * miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in + * the past. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("dispute_start_date") private Optional disputeStartDate; /** - * End Date for data extraction in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can be help you select specific range of time, mainly for test purposes or data integrity tests. When this is not used, now_utc() is used by the streams. This does not apply to Disputes and Product streams. + * End Date for data extraction in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can + * be help you select specific range of time, mainly for test purposes or data integrity tests. When + * this is not used, now_utc() is used by the streams. + * + *

    This does not apply to Disputes and Product streams. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") @@ -61,11 +69,14 @@ public class SourcePaypalTransaction { @JsonProperty("refresh_token") private Optional refreshToken; + @JsonProperty("sourceType") private PaypalTransaction sourceType; /** - * Start Date for data extraction in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. Date must be in range from 3 years till 12 hrs before present time. + * Start Date for data extraction in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. Date + * must be in range from 3 years till 12 hrs before present time. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -110,7 +121,9 @@ public SourcePaypalTransaction( String clientId, String clientSecret, OffsetDateTime startDate) { - this(clientId, clientSecret, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate, Optional.empty()); + this(clientId, clientSecret, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + startDate, Optional.empty()); } /** @@ -130,7 +143,11 @@ public String clientSecret() { } /** - * Start Date parameter for the list dispute endpoint in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This Start Date must be in range within 180 days before present time, and requires ONLY 3 miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in the past. + * Start Date parameter for the list dispute endpoint in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This + * Start Date must be in range within 180 days before present time, and requires ONLY 3 + * miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in + * the past. */ @JsonIgnore public Optional disputeStartDate() { @@ -138,7 +155,12 @@ public Optional disputeStartDate() { } /** - * End Date for data extraction in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can be help you select specific range of time, mainly for test purposes or data integrity tests. When this is not used, now_utc() is used by the streams. This does not apply to Disputes and Product streams. + * End Date for data extraction in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can + * be help you select specific range of time, mainly for test purposes or data integrity tests. When + * this is not used, now_utc() is used by the streams. + * + *

    This does not apply to Disputes and Product streams. */ @JsonIgnore public Optional endDate() { @@ -167,7 +189,9 @@ public PaypalTransaction sourceType() { } /** - * Start Date for data extraction in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. Date must be in range from 3 years till 12 hrs before present time. + * Start Date for data extraction in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. Date + * must be in range from 3 years till 12 hrs before present time. */ @JsonIgnore public OffsetDateTime startDate() { @@ -182,9 +206,10 @@ public Optional timeWindow() { return timeWindow; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your Paypal developer application. @@ -205,7 +230,11 @@ public SourcePaypalTransaction withClientSecret(String clientSecret) { } /** - * Start Date parameter for the list dispute endpoint in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This Start Date must be in range within 180 days before present time, and requires ONLY 3 miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in the past. + * Start Date parameter for the list dispute endpoint in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This + * Start Date must be in range within 180 days before present time, and requires ONLY 3 + * miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in + * the past. */ public SourcePaypalTransaction withDisputeStartDate(OffsetDateTime disputeStartDate) { Utils.checkNotNull(disputeStartDate, "disputeStartDate"); @@ -213,8 +242,13 @@ public SourcePaypalTransaction withDisputeStartDate(OffsetDateTime disputeStartD return this; } + /** - * Start Date parameter for the list dispute endpoint in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This Start Date must be in range within 180 days before present time, and requires ONLY 3 miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in the past. + * Start Date parameter for the list dispute endpoint in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This + * Start Date must be in range within 180 days before present time, and requires ONLY 3 + * miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in + * the past. */ public SourcePaypalTransaction withDisputeStartDate(Optional disputeStartDate) { Utils.checkNotNull(disputeStartDate, "disputeStartDate"); @@ -223,7 +257,12 @@ public SourcePaypalTransaction withDisputeStartDate(Optional dis } /** - * End Date for data extraction in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can be help you select specific range of time, mainly for test purposes or data integrity tests. When this is not used, now_utc() is used by the streams. This does not apply to Disputes and Product streams. + * End Date for data extraction in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can + * be help you select specific range of time, mainly for test purposes or data integrity tests. When + * this is not used, now_utc() is used by the streams. + * + *

    This does not apply to Disputes and Product streams. */ public SourcePaypalTransaction withEndDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -231,8 +270,14 @@ public SourcePaypalTransaction withEndDate(OffsetDateTime endDate) { return this; } + /** - * End Date for data extraction in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can be help you select specific range of time, mainly for test purposes or data integrity tests. When this is not used, now_utc() is used by the streams. This does not apply to Disputes and Product streams. + * End Date for data extraction in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can + * be help you select specific range of time, mainly for test purposes or data integrity tests. When + * this is not used, now_utc() is used by the streams. + * + *

    This does not apply to Disputes and Product streams. */ public SourcePaypalTransaction withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -249,6 +294,7 @@ public SourcePaypalTransaction withIsSandbox(boolean isSandbox) { return this; } + /** * Determines whether to use the sandbox or production environment. */ @@ -267,6 +313,7 @@ public SourcePaypalTransaction withRefreshToken(String refreshToken) { return this; } + /** * The key to refresh the expired access token. */ @@ -277,7 +324,9 @@ public SourcePaypalTransaction withRefreshToken(Optional refreshToken) { } /** - * Start Date for data extraction in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. Date must be in range from 3 years till 12 hrs before present time. + * Start Date for data extraction in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. Date + * must be in range from 3 years till 12 hrs before present time. */ public SourcePaypalTransaction withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -294,6 +343,7 @@ public SourcePaypalTransaction withTimeWindow(long timeWindow) { return this; } + /** * The number of days per request. Must be a number between 1 and 31. */ @@ -303,7 +353,6 @@ public SourcePaypalTransaction withTimeWindow(Optional timeWindow) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -314,29 +363,23 @@ public boolean equals(java.lang.Object o) { } SourcePaypalTransaction other = (SourcePaypalTransaction) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.disputeStartDate, other.disputeStartDate) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.isSandbox, other.isSandbox) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.timeWindow, other.timeWindow); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.disputeStartDate, other.disputeStartDate) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.isSandbox, other.isSandbox) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.timeWindow, other.timeWindow); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - disputeStartDate, - endDate, - isSandbox, - refreshToken, - sourceType, - startDate, - timeWindow); + return Utils.enhancedHash( + clientId, clientSecret, disputeStartDate, + endDate, isSandbox, refreshToken, + sourceType, startDate, timeWindow); } @Override @@ -352,29 +395,31 @@ public String toString() { "startDate", startDate, "timeWindow", timeWindow); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional disputeStartDate = Optional.empty(); - + private Optional endDate = Optional.empty(); - + private Optional isSandbox; - + private Optional refreshToken = Optional.empty(); - + private OffsetDateTime startDate; - + private Optional timeWindow; - + private Builder() { // force use of static builder() method } + /** * The Client ID of your Paypal developer application. */ @@ -384,6 +429,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Paypal developer application. */ @@ -393,8 +439,13 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * Start Date parameter for the list dispute endpoint in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This Start Date must be in range within 180 days before present time, and requires ONLY 3 miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in the past. + * Start Date parameter for the list dispute endpoint in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This + * Start Date must be in range within 180 days before present time, and requires ONLY 3 + * miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in + * the past. */ public Builder disputeStartDate(OffsetDateTime disputeStartDate) { Utils.checkNotNull(disputeStartDate, "disputeStartDate"); @@ -403,7 +454,11 @@ public Builder disputeStartDate(OffsetDateTime disputeStartDate) { } /** - * Start Date parameter for the list dispute endpoint in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This Start Date must be in range within 180 days before present time, and requires ONLY 3 miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in the past. + * Start Date parameter for the list dispute endpoint in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This + * Start Date must be in range within 180 days before present time, and requires ONLY 3 + * miliseconds(mandatory). If you don't use this option, it defaults to a start date set 180 days in + * the past. */ public Builder disputeStartDate(Optional disputeStartDate) { Utils.checkNotNull(disputeStartDate, "disputeStartDate"); @@ -411,8 +466,14 @@ public Builder disputeStartDate(Optional disputeStartDate) { return this; } + /** - * End Date for data extraction in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can be help you select specific range of time, mainly for test purposes or data integrity tests. When this is not used, now_utc() is used by the streams. This does not apply to Disputes and Product streams. + * End Date for data extraction in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can + * be help you select specific range of time, mainly for test purposes or data integrity tests. When + * this is not used, now_utc() is used by the streams. + * + *

    This does not apply to Disputes and Product streams. */ public Builder endDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -421,7 +482,12 @@ public Builder endDate(OffsetDateTime endDate) { } /** - * End Date for data extraction in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can be help you select specific range of time, mainly for test purposes or data integrity tests. When this is not used, now_utc() is used by the streams. This does not apply to Disputes and Product streams. + * End Date for data extraction in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. This can + * be help you select specific range of time, mainly for test purposes or data integrity tests. When + * this is not used, now_utc() is used by the streams. + * + *

    This does not apply to Disputes and Product streams. */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -429,6 +495,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * Determines whether to use the sandbox or production environment. */ @@ -447,6 +514,7 @@ public Builder isSandbox(Optional isSandbox) { return this; } + /** * The key to refresh the expired access token. */ @@ -465,8 +533,11 @@ public Builder refreshToken(Optional refreshToken) { return this; } + /** - * Start Date for data extraction in <a href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. Date must be in range from 3 years till 12 hrs before present time. + * Start Date for data extraction in <a + * href=\"https://datatracker.ietf.org/doc/html/rfc3339#section-5.6\">ISO format</a>. Date + * must be in range from 3 years till 12 hrs before present time. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -474,6 +545,7 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** * The number of days per request. Must be a number between 1 and 31. */ @@ -491,7 +563,7 @@ public Builder timeWindow(Optional timeWindow) { this.timeWindow = timeWindow; return this; } - + public SourcePaypalTransaction build() { if (isSandbox == null) { isSandbox = _SINGLETON_VALUE_IsSandbox.value(); @@ -499,17 +571,14 @@ public SourcePaypalTransaction build() { if (timeWindow == null) { timeWindow = _SINGLETON_VALUE_TimeWindow.value(); } + return new SourcePaypalTransaction( - clientId, - clientSecret, - disputeStartDate, - endDate, - isSandbox, - refreshToken, - startDate, - timeWindow); + clientId, clientSecret, disputeStartDate, + endDate, isSandbox, refreshToken, + startDate, timeWindow); } + private static final LazySingletonValue> _SINGLETON_VALUE_IsSandbox = new LazySingletonValue<>( "is_sandbox", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePaystack.java b/src/main/java/com/airbyte/api/models/shared/SourcePaystack.java index e6adeb326..cc09c1395 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePaystack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePaystack.java @@ -15,29 +15,32 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourcePaystack { +public class SourcePaystack { /** - * When set, the connector will always reload data from the past N days, where N is the value set here. This is useful if your data is updated after creation. + * When set, the connector will always reload data from the past N days, where N is the value set here. + * This is useful if your data is updated after creation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lookback_window_days") private Optional lookbackWindowDays; /** - * The Paystack API key (usually starts with 'sk_live_'; find yours <a href="https://dashboard.paystack.com/#/settings/developer">here</a>). + * The Paystack API key (usually starts with 'sk_live_'; find yours here). */ @JsonProperty("secret_key") private String secretKey; + @JsonProperty("sourceType") private Paystack sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -63,7 +66,8 @@ public SourcePaystack( } /** - * When set, the connector will always reload data from the past N days, where N is the value set here. This is useful if your data is updated after creation. + * When set, the connector will always reload data from the past N days, where N is the value set here. + * This is useful if your data is updated after creation. */ @JsonIgnore public Optional lookbackWindowDays() { @@ -71,7 +75,8 @@ public Optional lookbackWindowDays() { } /** - * The Paystack API key (usually starts with 'sk_live_'; find yours <a href="https://dashboard.paystack.com/#/settings/developer">here</a>). + * The Paystack API key (usually starts with 'sk_live_'; find yours here). */ @JsonIgnore public String secretKey() { @@ -84,19 +89,22 @@ public Paystack sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When set, the connector will always reload data from the past N days, where N is the value set here. This is useful if your data is updated after creation. + * When set, the connector will always reload data from the past N days, where N is the value set here. + * This is useful if your data is updated after creation. */ public SourcePaystack withLookbackWindowDays(long lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -104,8 +112,10 @@ public SourcePaystack withLookbackWindowDays(long lookbackWindowDays) { return this; } + /** - * When set, the connector will always reload data from the past N days, where N is the value set here. This is useful if your data is updated after creation. + * When set, the connector will always reload data from the past N days, where N is the value set here. + * This is useful if your data is updated after creation. */ public SourcePaystack withLookbackWindowDays(Optional lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -114,7 +124,8 @@ public SourcePaystack withLookbackWindowDays(Optional lookbackWindowDays) } /** - * The Paystack API key (usually starts with 'sk_live_'; find yours <a href="https://dashboard.paystack.com/#/settings/developer">here</a>). + * The Paystack API key (usually starts with 'sk_live_'; find yours here). */ public SourcePaystack withSecretKey(String secretKey) { Utils.checkNotNull(secretKey, "secretKey"); @@ -123,7 +134,8 @@ public SourcePaystack withSecretKey(String secretKey) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourcePaystack withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -131,7 +143,6 @@ public SourcePaystack withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -142,18 +153,16 @@ public boolean equals(java.lang.Object o) { } SourcePaystack other = (SourcePaystack) o; return - Objects.deepEquals(this.lookbackWindowDays, other.lookbackWindowDays) && - Objects.deepEquals(this.secretKey, other.secretKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.lookbackWindowDays, other.lookbackWindowDays) && + Utils.enhancedDeepEquals(this.secretKey, other.secretKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - lookbackWindowDays, - secretKey, - sourceType, + return Utils.enhancedHash( + lookbackWindowDays, secretKey, sourceType, startDate); } @@ -165,21 +174,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional lookbackWindowDays; - + private String secretKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * When set, the connector will always reload data from the past N days, where N is the value set here. This is useful if your data is updated after creation. + * When set, the connector will always reload data from the past N days, where N is the value set here. + * This is useful if your data is updated after creation. */ public Builder lookbackWindowDays(long lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -188,7 +200,8 @@ public Builder lookbackWindowDays(long lookbackWindowDays) { } /** - * When set, the connector will always reload data from the past N days, where N is the value set here. This is useful if your data is updated after creation. + * When set, the connector will always reload data from the past N days, where N is the value set here. + * This is useful if your data is updated after creation. */ public Builder lookbackWindowDays(Optional lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -196,8 +209,10 @@ public Builder lookbackWindowDays(Optional lookbackWindowDays) { return this; } + /** - * The Paystack API key (usually starts with 'sk_live_'; find yours <a href="https://dashboard.paystack.com/#/settings/developer">here</a>). + * The Paystack API key (usually starts with 'sk_live_'; find yours here). */ public Builder secretKey(String secretKey) { Utils.checkNotNull(secretKey, "secretKey"); @@ -205,25 +220,27 @@ public Builder secretKey(String secretKey) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePaystack build() { if (lookbackWindowDays == null) { lookbackWindowDays = _SINGLETON_VALUE_LookbackWindowDays.value(); } + return new SourcePaystack( - lookbackWindowDays, - secretKey, - startDate); + lookbackWindowDays, secretKey, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_LookbackWindowDays = new LazySingletonValue<>( "lookback_window_days", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePendo.java b/src/main/java/com/airbyte/api/models/shared/SourcePendo.java index 6fac912f2..87c84de1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePendo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePendo.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourcePendo { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Pendo sourceType; @@ -39,9 +40,10 @@ public Pendo sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourcePendo withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourcePendo withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourcePendo other = (SourcePendo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourcePendo build() { + return new SourcePendo( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java b/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java index 08fa4bc50..89319d156 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePennylane.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourcePennylane { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Pennylane sourceType; + @JsonProperty("start_time") private OffsetDateTime startTime; @@ -51,9 +53,10 @@ public OffsetDateTime startTime() { return startTime; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourcePennylane withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourcePennylane withStartTime(OffsetDateTime startTime) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourcePennylane other = (SourcePennylane) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startTime, other.startTime); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startTime, other.startTime); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startTime); + return Utils.enhancedHash( + apiKey, sourceType, startTime); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startTime", startTime); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startTime; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startTime(OffsetDateTime startTime) { Utils.checkNotNull(startTime, "startTime"); this.startTime = startTime; return this; } - + public SourcePennylane build() { + return new SourcePennylane( - apiKey, - startTime); + apiKey, startTime); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePerigon.java b/src/main/java/com/airbyte/api/models/shared/SourcePerigon.java index 798dca345..b9605057f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePerigon.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePerigon.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourcePerigon { +public class SourcePerigon { /** - * Your API key for authenticating with the Perigon API. Obtain it by creating an account at https://www.perigon.io/sign-up and verifying your email. The API key will be visible on your account dashboard. + * Your API key for authenticating with the Perigon API. Obtain it by creating an account at + * https://www.perigon.io/sign-up and verifying your email. The API key will be visible on your account + * dashboard. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Perigon sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +43,9 @@ public SourcePerigon( } /** - * Your API key for authenticating with the Perigon API. Obtain it by creating an account at https://www.perigon.io/sign-up and verifying your email. The API key will be visible on your account dashboard. + * Your API key for authenticating with the Perigon API. Obtain it by creating an account at + * https://www.perigon.io/sign-up and verifying your email. The API key will be visible on your account + * dashboard. */ @JsonIgnore public String apiKey() { @@ -57,12 +62,15 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API key for authenticating with the Perigon API. Obtain it by creating an account at https://www.perigon.io/sign-up and verifying your email. The API key will be visible on your account dashboard. + * Your API key for authenticating with the Perigon API. Obtain it by creating an account at + * https://www.perigon.io/sign-up and verifying your email. The API key will be visible on your account + * dashboard. */ public SourcePerigon withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -76,7 +84,6 @@ public SourcePerigon withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +94,15 @@ public boolean equals(java.lang.Object o) { } SourcePerigon other = (SourcePerigon) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,19 +112,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your API key for authenticating with the Perigon API. Obtain it by creating an account at https://www.perigon.io/sign-up and verifying your email. The API key will be visible on your account dashboard. + * Your API key for authenticating with the Perigon API. Obtain it by creating an account at + * https://www.perigon.io/sign-up and verifying your email. The API key will be visible on your account + * dashboard. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -127,18 +136,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePerigon build() { + return new SourcePerigon( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePersistiq.java b/src/main/java/com/airbyte/api/models/shared/SourcePersistiq.java index 14dd7a582..ddd67528d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePersistiq.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePersistiq.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePersistiq { +public class SourcePersistiq { /** - * PersistIq API Key. See the <a href="https://apidocs.persistiq.com/#authentication">docs</a> for more information on where to find that key. + * PersistIq API Key. See the docs for more + * information on where to find that key. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Persistiq sourceType; @@ -33,7 +34,8 @@ public SourcePersistiq( } /** - * PersistIq API Key. See the <a href="https://apidocs.persistiq.com/#authentication">docs</a> for more information on where to find that key. + * PersistIq API Key. See the docs for more + * information on where to find that key. */ @JsonIgnore public String apiKey() { @@ -45,12 +47,14 @@ public Persistiq sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * PersistIq API Key. See the <a href="https://apidocs.persistiq.com/#authentication">docs</a> for more information on where to find that key. + * PersistIq API Key. See the docs for more + * information on where to find that key. */ public SourcePersistiq withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +62,6 @@ public SourcePersistiq withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourcePersistiq other = (SourcePersistiq) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * PersistIq API Key. See the <a href="https://apidocs.persistiq.com/#authentication">docs</a> for more information on where to find that key. + * PersistIq API Key. See the docs for more + * information on where to find that key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourcePersistiq build() { + return new SourcePersistiq( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePersona.java b/src/main/java/com/airbyte/api/models/shared/SourcePersona.java index f9e91bf85..34471a31b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePersona.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePersona.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePersona { +public class SourcePersona { /** * API key or access token */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Persona sourceType; @@ -45,9 +45,10 @@ public Persona sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key or access token @@ -58,7 +59,6 @@ public SourcePersona withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourcePersona other = (SourcePersona) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key or access token */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourcePersona build() { + return new SourcePersona( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePexelsApi.java b/src/main/java/com/airbyte/api/models/shared/SourcePexelsApi.java index 7c73f6fd6..e478def6d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePexelsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePexelsApi.java @@ -13,33 +13,38 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourcePexelsApi { +public class SourcePexelsApi { /** - * API key is required to access pexels api, For getting your's goto https://www.pexels.com/api/documentation and create account for free. + * API key is required to access pexels api, For getting your's goto + * https://www.pexels.com/api/documentation and create account for free. */ @JsonProperty("api_key") private String apiKey; /** - * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white or any hexidecimal color code. + * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, + * pink, brown, black, gray, white or any hexidecimal color code. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("color") private Optional color; /** - * Optional, The locale of the search you are performing. The current supported locales are 'en-US' 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' 'sk-SK' 'tr-TR' 'ru-RU'. + * Optional, The locale of the search you are performing. The current supported locales are 'en-US' + * 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' + * 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' + * 'sk-SK' 'tr-TR' 'ru-RU'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("locale") private Optional locale; /** - * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or square + * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or + * square */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("orientation") @@ -52,12 +57,14 @@ public class SourcePexelsApi { private String query; /** - * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP). + * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or + * small(4MP). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("size") private Optional size; + @JsonProperty("sourceType") private PexelsApi sourceType; @@ -87,11 +94,13 @@ public SourcePexelsApi( public SourcePexelsApi( String apiKey, String query) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), query, Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), query, Optional.empty()); } /** - * API key is required to access pexels api, For getting your's goto https://www.pexels.com/api/documentation and create account for free. + * API key is required to access pexels api, For getting your's goto + * https://www.pexels.com/api/documentation and create account for free. */ @JsonIgnore public String apiKey() { @@ -99,7 +108,8 @@ public String apiKey() { } /** - * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white or any hexidecimal color code. + * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, + * pink, brown, black, gray, white or any hexidecimal color code. */ @JsonIgnore public Optional color() { @@ -107,7 +117,10 @@ public Optional color() { } /** - * Optional, The locale of the search you are performing. The current supported locales are 'en-US' 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' 'sk-SK' 'tr-TR' 'ru-RU'. + * Optional, The locale of the search you are performing. The current supported locales are 'en-US' + * 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' + * 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' + * 'sk-SK' 'tr-TR' 'ru-RU'. */ @JsonIgnore public Optional locale() { @@ -115,7 +128,8 @@ public Optional locale() { } /** - * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or square + * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or + * square */ @JsonIgnore public Optional orientation() { @@ -131,7 +145,8 @@ public String query() { } /** - * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP). + * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or + * small(4MP). */ @JsonIgnore public Optional size() { @@ -143,12 +158,14 @@ public PexelsApi sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key is required to access pexels api, For getting your's goto https://www.pexels.com/api/documentation and create account for free. + * API key is required to access pexels api, For getting your's goto + * https://www.pexels.com/api/documentation and create account for free. */ public SourcePexelsApi withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -157,7 +174,8 @@ public SourcePexelsApi withApiKey(String apiKey) { } /** - * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white or any hexidecimal color code. + * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, + * pink, brown, black, gray, white or any hexidecimal color code. */ public SourcePexelsApi withColor(String color) { Utils.checkNotNull(color, "color"); @@ -165,8 +183,10 @@ public SourcePexelsApi withColor(String color) { return this; } + /** - * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white or any hexidecimal color code. + * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, + * pink, brown, black, gray, white or any hexidecimal color code. */ public SourcePexelsApi withColor(Optional color) { Utils.checkNotNull(color, "color"); @@ -175,7 +195,10 @@ public SourcePexelsApi withColor(Optional color) { } /** - * Optional, The locale of the search you are performing. The current supported locales are 'en-US' 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' 'sk-SK' 'tr-TR' 'ru-RU'. + * Optional, The locale of the search you are performing. The current supported locales are 'en-US' + * 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' + * 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' + * 'sk-SK' 'tr-TR' 'ru-RU'. */ public SourcePexelsApi withLocale(String locale) { Utils.checkNotNull(locale, "locale"); @@ -183,8 +206,12 @@ public SourcePexelsApi withLocale(String locale) { return this; } + /** - * Optional, The locale of the search you are performing. The current supported locales are 'en-US' 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' 'sk-SK' 'tr-TR' 'ru-RU'. + * Optional, The locale of the search you are performing. The current supported locales are 'en-US' + * 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' + * 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' + * 'sk-SK' 'tr-TR' 'ru-RU'. */ public SourcePexelsApi withLocale(Optional locale) { Utils.checkNotNull(locale, "locale"); @@ -193,7 +220,8 @@ public SourcePexelsApi withLocale(Optional locale) { } /** - * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or square + * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or + * square */ public SourcePexelsApi withOrientation(String orientation) { Utils.checkNotNull(orientation, "orientation"); @@ -201,8 +229,10 @@ public SourcePexelsApi withOrientation(String orientation) { return this; } + /** - * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or square + * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or + * square */ public SourcePexelsApi withOrientation(Optional orientation) { Utils.checkNotNull(orientation, "orientation"); @@ -220,7 +250,8 @@ public SourcePexelsApi withQuery(String query) { } /** - * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP). + * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or + * small(4MP). */ public SourcePexelsApi withSize(String size) { Utils.checkNotNull(size, "size"); @@ -228,8 +259,10 @@ public SourcePexelsApi withSize(String size) { return this; } + /** - * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP). + * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or + * small(4MP). */ public SourcePexelsApi withSize(Optional size) { Utils.checkNotNull(size, "size"); @@ -237,7 +270,6 @@ public SourcePexelsApi withSize(Optional size) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -248,24 +280,20 @@ public boolean equals(java.lang.Object o) { } SourcePexelsApi other = (SourcePexelsApi) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.color, other.color) && - Objects.deepEquals(this.locale, other.locale) && - Objects.deepEquals(this.orientation, other.orientation) && - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.size, other.size) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.color, other.color) && + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.orientation, other.orientation) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.size, other.size) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - color, - locale, - orientation, - query, - size, + return Utils.enhancedHash( + apiKey, color, locale, + orientation, query, size, sourceType); } @@ -280,27 +308,30 @@ public String toString() { "size", size, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional color = Optional.empty(); - + private Optional locale = Optional.empty(); - + private Optional orientation = Optional.empty(); - + private String query; - + private Optional size = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * API key is required to access pexels api, For getting your's goto https://www.pexels.com/api/documentation and create account for free. + * API key is required to access pexels api, For getting your's goto + * https://www.pexels.com/api/documentation and create account for free. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -308,8 +339,10 @@ public Builder apiKey(String apiKey) { return this; } + /** - * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white or any hexidecimal color code. + * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, + * pink, brown, black, gray, white or any hexidecimal color code. */ public Builder color(String color) { Utils.checkNotNull(color, "color"); @@ -318,7 +351,8 @@ public Builder color(String color) { } /** - * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white or any hexidecimal color code. + * Optional, Desired photo color. Supported colors red, orange, yellow, green, turquoise, blue, violet, + * pink, brown, black, gray, white or any hexidecimal color code. */ public Builder color(Optional color) { Utils.checkNotNull(color, "color"); @@ -326,8 +360,12 @@ public Builder color(Optional color) { return this; } + /** - * Optional, The locale of the search you are performing. The current supported locales are 'en-US' 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' 'sk-SK' 'tr-TR' 'ru-RU'. + * Optional, The locale of the search you are performing. The current supported locales are 'en-US' + * 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' + * 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' + * 'sk-SK' 'tr-TR' 'ru-RU'. */ public Builder locale(String locale) { Utils.checkNotNull(locale, "locale"); @@ -336,7 +374,10 @@ public Builder locale(String locale) { } /** - * Optional, The locale of the search you are performing. The current supported locales are 'en-US' 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' 'sk-SK' 'tr-TR' 'ru-RU'. + * Optional, The locale of the search you are performing. The current supported locales are 'en-US' + * 'pt-BR' 'es-ES' 'ca-ES' 'de-DE' 'it-IT' 'fr-FR' 'sv-SE' 'id-ID' 'pl-PL' 'ja-JP' 'zh-TW' 'zh-CN' + * 'ko-KR' 'th-TH' 'nl-NL' 'hu-HU' 'vi-VN' 'cs-CZ' 'da-DK' 'fi-FI' 'uk-UA' 'el-GR' 'ro-RO' 'nb-NO' + * 'sk-SK' 'tr-TR' 'ru-RU'. */ public Builder locale(Optional locale) { Utils.checkNotNull(locale, "locale"); @@ -344,8 +385,10 @@ public Builder locale(Optional locale) { return this; } + /** - * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or square + * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or + * square */ public Builder orientation(String orientation) { Utils.checkNotNull(orientation, "orientation"); @@ -354,7 +397,8 @@ public Builder orientation(String orientation) { } /** - * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or square + * Optional, Desired photo orientation. The current supported orientations are landscape, portrait or + * square */ public Builder orientation(Optional orientation) { Utils.checkNotNull(orientation, "orientation"); @@ -362,6 +406,7 @@ public Builder orientation(Optional orientation) { return this; } + /** * Optional, the search query, Example Ocean, Tigers, Pears, etc. */ @@ -371,8 +416,10 @@ public Builder query(String query) { return this; } + /** - * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP). + * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or + * small(4MP). */ public Builder size(String size) { Utils.checkNotNull(size, "size"); @@ -381,24 +428,23 @@ public Builder size(String size) { } /** - * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or small(4MP). + * Optional, Minimum photo size. The current supported sizes are large(24MP), medium(12MP) or + * small(4MP). */ public Builder size(Optional size) { Utils.checkNotNull(size, "size"); this.size = size; return this; } - + public SourcePexelsApi build() { + return new SourcePexelsApi( - apiKey, - color, - locale, - orientation, - query, - size); + apiKey, color, locale, + orientation, query, size); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePhyllo.java b/src/main/java/com/airbyte/api/models/shared/SourcePhyllo.java index 9bfb3a5cf..77c1a1226 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePhyllo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePhyllo.java @@ -15,19 +15,20 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourcePhyllo { +public class SourcePhyllo { /** - * Your Client ID for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API credentials. + * Your Client ID for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API + * credentials. */ @JsonProperty("client_id") private String clientId; /** - * Your Client Secret for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API credentials. + * Your Client Secret for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API + * credentials. */ @JsonProperty("client_secret") private String clientSecret; @@ -39,9 +40,11 @@ public class SourcePhyllo { @JsonProperty("environment") private Optional environment; + @JsonProperty("sourceType") private Phyllo sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -66,11 +69,13 @@ public SourcePhyllo( String clientId, String clientSecret, OffsetDateTime startDate) { - this(clientId, clientSecret, Optional.empty(), startDate); + this(clientId, clientSecret, Optional.empty(), + startDate); } /** - * Your Client ID for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API credentials. + * Your Client ID for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API + * credentials. */ @JsonIgnore public String clientId() { @@ -78,7 +83,8 @@ public String clientId() { } /** - * Your Client Secret for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API credentials. + * Your Client Secret for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API + * credentials. */ @JsonIgnore public String clientSecret() { @@ -104,12 +110,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Client ID for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API credentials. + * Your Client ID for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API + * credentials. */ public SourcePhyllo withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -118,7 +126,8 @@ public SourcePhyllo withClientId(String clientId) { } /** - * Your Client Secret for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API credentials. + * Your Client Secret for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API + * credentials. */ public SourcePhyllo withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -135,6 +144,7 @@ public SourcePhyllo withEnvironment(SourcePhylloEnvironment environment) { return this; } + /** * The environment for the API (e.g., 'api.sandbox', 'api.staging', 'api') */ @@ -150,7 +160,6 @@ public SourcePhyllo withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -161,21 +170,18 @@ public boolean equals(java.lang.Object o) { } SourcePhyllo other = (SourcePhyllo) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.environment, other.environment) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.environment, other.environment) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - environment, - sourceType, - startDate); + return Utils.enhancedHash( + clientId, clientSecret, environment, + sourceType, startDate); } @Override @@ -187,23 +193,26 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional environment; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your Client ID for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API credentials. + * Your Client ID for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API + * credentials. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -211,8 +220,10 @@ public Builder clientId(String clientId) { return this; } + /** - * Your Client Secret for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API credentials. + * Your Client Secret for the Phyllo API. You can find this in the Phyllo Developer Dashboard under API + * credentials. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -220,6 +231,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The environment for the API (e.g., 'api.sandbox', 'api.staging', 'api') */ @@ -238,23 +250,24 @@ public Builder environment(Optional environme return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePhyllo build() { if (environment == null) { environment = _SINGLETON_VALUE_Environment.value(); } + return new SourcePhyllo( - clientId, - clientSecret, - environment, + clientId, clientSecret, environment, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Environment = new LazySingletonValue<>( "environment", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePhylloEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourcePhylloEnvironment.java index 990d74b10..d24fbe6a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePhylloEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePhylloEnvironment.java @@ -21,7 +21,7 @@ public enum SourcePhylloEnvironment { @JsonValue private final String value; - private SourcePhylloEnvironment(String value) { + SourcePhylloEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePicqer.java b/src/main/java/com/airbyte/api/models/shared/SourcePicqer.java index 744f8038e..2c9461e97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePicqer.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePicqer.java @@ -14,27 +14,30 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourcePicqer { +public class SourcePicqer { /** * The organization name which is used to login to picqer */ @JsonProperty("organization_name") private String organizationName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Picqer sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonProperty("username") private String username; @@ -59,7 +62,8 @@ public SourcePicqer( String organizationName, OffsetDateTime startDate, String username) { - this(organizationName, Optional.empty(), startDate, username); + this(organizationName, Optional.empty(), startDate, + username); } /** @@ -90,9 +94,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The organization name which is used to login to picqer @@ -109,6 +114,7 @@ public SourcePicqer withPassword(String password) { return this; } + public SourcePicqer withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -127,7 +133,6 @@ public SourcePicqer withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -138,21 +143,18 @@ public boolean equals(java.lang.Object o) { } SourcePicqer other = (SourcePicqer) o; return - Objects.deepEquals(this.organizationName, other.organizationName) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.organizationName, other.organizationName) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - organizationName, - password, - sourceType, - startDate, - username); + return Utils.enhancedHash( + organizationName, password, sourceType, + startDate, username); } @Override @@ -164,21 +166,23 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String organizationName; - + private Optional password = Optional.empty(); - + private OffsetDateTime startDate; - + private String username; - + private Builder() { // force use of static builder() method } + /** * The organization name which is used to login to picqer */ @@ -188,6 +192,7 @@ public Builder organizationName(String organizationName) { return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -200,26 +205,28 @@ public Builder password(Optional password) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourcePicqer build() { + return new SourcePicqer( - organizationName, - password, - startDate, + organizationName, password, startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePingdom.java b/src/main/java/com/airbyte/api/models/shared/SourcePingdom.java index a258eceaa..6d7fcb67b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePingdom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePingdom.java @@ -15,25 +15,29 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourcePingdom { @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("probes") private Optional probes; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("resolution") private Optional resolution; + @JsonProperty("sourceType") private Pingdom sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,7 +61,8 @@ public SourcePingdom( public SourcePingdom( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), startDate); + this(apiKey, Optional.empty(), Optional.empty(), + startDate); } @JsonIgnore @@ -86,9 +91,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourcePingdom withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -102,6 +108,7 @@ public SourcePingdom withProbes(String probes) { return this; } + public SourcePingdom withProbes(Optional probes) { Utils.checkNotNull(probes, "probes"); this.probes = probes; @@ -114,6 +121,7 @@ public SourcePingdom withResolution(Resolution resolution) { return this; } + public SourcePingdom withResolution(Optional resolution) { Utils.checkNotNull(resolution, "resolution"); this.resolution = resolution; @@ -126,7 +134,6 @@ public SourcePingdom withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,21 +144,18 @@ public boolean equals(java.lang.Object o) { } SourcePingdom other = (SourcePingdom) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.probes, other.probes) && - Objects.deepEquals(this.resolution, other.resolution) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.probes, other.probes) && + Utils.enhancedDeepEquals(this.resolution, other.resolution) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - probes, - resolution, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, probes, resolution, + sourceType, startDate); } @Override @@ -163,27 +167,30 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional probes = Optional.empty(); - + private Optional resolution; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder probes(String probes) { Utils.checkNotNull(probes, "probes"); this.probes = Optional.ofNullable(probes); @@ -196,6 +203,7 @@ public Builder probes(Optional probes) { return this; } + public Builder resolution(Resolution resolution) { Utils.checkNotNull(resolution, "resolution"); this.resolution = Optional.ofNullable(resolution); @@ -208,23 +216,24 @@ public Builder resolution(Optional resolution) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePingdom build() { if (resolution == null) { resolution = _SINGLETON_VALUE_Resolution.value(); } + return new SourcePingdom( - apiKey, - probes, - resolution, + apiKey, probes, resolution, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Resolution = new LazySingletonValue<>( "resolution", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterest.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterest.java index 89800344d..e1c8388d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterest.java @@ -16,43 +16,49 @@ import java.lang.SuppressWarnings; import java.time.LocalDate; import java.util.List; -import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; -public class SourcePinterest { +public class SourcePinterest { /** - * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for a specific account. + * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for + * a specific account. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("account_id") private Optional accountId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("custom_reports") private Optional> customReports; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceType") private Optional sourceType; /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by api (89 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by api (89 days from today). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do not match the specified ones. If a status is not specified, the source will default to records with a status of either ACTIVE or PAUSED. + * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do + * not match the specified ones. If a status is not specified, the source will default to records with + * a status of either ACTIVE or PAUSED. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("status") @@ -79,11 +85,13 @@ public SourcePinterest( } public SourcePinterest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), JsonNullable.undefined()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), JsonNullable.undefined()); } /** - * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for a specific account. + * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for + * a specific account. */ @JsonIgnore public Optional accountId() { @@ -97,7 +105,8 @@ public Optional credentials() { } /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -112,7 +121,8 @@ public Optional sourceType() { } /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by api (89 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by api (89 days from today). */ @JsonIgnore public Optional startDate() { @@ -120,7 +130,9 @@ public Optional startDate() { } /** - * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do not match the specified ones. If a status is not specified, the source will default to records with a status of either ACTIVE or PAUSED. + * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do + * not match the specified ones. If a status is not specified, the source will default to records with + * a status of either ACTIVE or PAUSED. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -128,12 +140,14 @@ public JsonNullable> status() { return (JsonNullable>) status; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for a specific account. + * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for + * a specific account. */ public SourcePinterest withAccountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -141,8 +155,10 @@ public SourcePinterest withAccountId(String accountId) { return this; } + /** - * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for a specific account. + * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for + * a specific account. */ public SourcePinterest withAccountId(Optional accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -156,6 +172,7 @@ public SourcePinterest withCredentials(OAuth20 credentials) { return this; } + public SourcePinterest withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -163,7 +180,8 @@ public SourcePinterest withCredentials(Optional credentials) } /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ public SourcePinterest withCustomReports(List customReports) { Utils.checkNotNull(customReports, "customReports"); @@ -171,8 +189,10 @@ public SourcePinterest withCustomReports(List customReports) { return this; } + /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ public SourcePinterest withCustomReports(Optional> customReports) { Utils.checkNotNull(customReports, "customReports"); @@ -181,7 +201,8 @@ public SourcePinterest withCustomReports(Optional> } /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by api (89 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by api (89 days from today). */ public SourcePinterest withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -189,8 +210,10 @@ public SourcePinterest withStartDate(LocalDate startDate) { return this; } + /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by api (89 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by api (89 days from today). */ public SourcePinterest withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -199,7 +222,9 @@ public SourcePinterest withStartDate(Optional startDate) { } /** - * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do not match the specified ones. If a status is not specified, the source will default to records with a status of either ACTIVE or PAUSED. + * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do + * not match the specified ones. If a status is not specified, the source will default to records with + * a status of either ACTIVE or PAUSED. */ public SourcePinterest withStatus(List status) { Utils.checkNotNull(status, "status"); @@ -208,7 +233,9 @@ public SourcePinterest withStatus(List status) { } /** - * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do not match the specified ones. If a status is not specified, the source will default to records with a status of either ACTIVE or PAUSED. + * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do + * not match the specified ones. If a status is not specified, the source will default to records with + * a status of either ACTIVE or PAUSED. */ public SourcePinterest withStatus(JsonNullable> status) { Utils.checkNotNull(status, "status"); @@ -216,7 +243,6 @@ public SourcePinterest withStatus(JsonNullable> status) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -227,23 +253,19 @@ public boolean equals(java.lang.Object o) { } SourcePinterest other = (SourcePinterest) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.customReports, other.customReports) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.status, other.status); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.customReports, other.customReports) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.status, other.status); } @Override public int hashCode() { - return Objects.hash( - accountId, - credentials, - customReports, - sourceType, - startDate, - status); + return Utils.enhancedHash( + accountId, credentials, customReports, + sourceType, startDate, status); } @Override @@ -256,25 +278,28 @@ public String toString() { "startDate", startDate, "status", status); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accountId = Optional.empty(); - + private Optional credentials = Optional.empty(); - + private Optional> customReports = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private JsonNullable> status = JsonNullable.undefined(); - + private Builder() { // force use of static builder() method } + /** - * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for a specific account. + * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for + * a specific account. */ public Builder accountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -283,7 +308,8 @@ public Builder accountId(String accountId) { } /** - * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for a specific account. + * The Pinterest account ID you want to fetch data for. This ID must be provided to filter the data for + * a specific account. */ public Builder accountId(Optional accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -291,6 +317,7 @@ public Builder accountId(Optional accountId) { return this; } + public Builder credentials(OAuth20 credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -303,8 +330,10 @@ public Builder credentials(Optional credentials) { return this; } + /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ public Builder customReports(List customReports) { Utils.checkNotNull(customReports, "customReports"); @@ -313,7 +342,8 @@ public Builder customReports(List customReports) { } /** - * A list which contains ad statistics entries, each entry must have a name and can contains fields, breakdowns or action_breakdowns. Click on "add" to fill this field. + * A list which contains ad statistics entries, each entry must have a name and can contains fields, + * breakdowns or action_breakdowns. Click on "add" to fill this field. */ public Builder customReports(Optional> customReports) { Utils.checkNotNull(customReports, "customReports"); @@ -321,8 +351,10 @@ public Builder customReports(Optional> customReport return this; } + /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by api (89 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by api (89 days from today). */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -331,7 +363,8 @@ public Builder startDate(LocalDate startDate) { } /** - * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed date by api (89 days from today). + * A date in the format YYYY-MM-DD. If you have not set a date, it would be defaulted to latest allowed + * date by api (89 days from today). */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -339,8 +372,11 @@ public Builder startDate(Optional startDate) { return this; } + /** - * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do not match the specified ones. If a status is not specified, the source will default to records with a status of either ACTIVE or PAUSED. + * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do + * not match the specified ones. If a status is not specified, the source will default to records with + * a status of either ACTIVE or PAUSED. */ public Builder status(List status) { Utils.checkNotNull(status, "status"); @@ -349,23 +385,24 @@ public Builder status(List status) { } /** - * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do not match the specified ones. If a status is not specified, the source will default to records with a status of either ACTIVE or PAUSED. + * For the ads, ad_groups, and campaigns streams, specifying a status will filter out records that do + * not match the specified ones. If a status is not specified, the source will default to records with + * a status of either ACTIVE or PAUSED. */ public Builder status(JsonNullable> status) { Utils.checkNotNull(status, "status"); this.status = status; return this; } - + public SourcePinterest build() { + return new SourcePinterest( - accountId, - credentials, - customReports, - startDate, - status); + accountId, credentials, customReports, + startDate, status); } + private static final LazySingletonValue> _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java index 51921089c..cafa017f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestAuthMethod.java @@ -14,7 +14,7 @@ public enum SourcePinterestAuthMethod { @JsonValue private final String value; - private SourcePinterestAuthMethod(String value) { + SourcePinterestAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java index cbd0a552b..09c732c18 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestLevel.java @@ -30,7 +30,7 @@ public enum SourcePinterestLevel { @JsonValue private final String value; - private SourcePinterestLevel(String value) { + SourcePinterestLevel(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterestPinterest.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterestPinterest.java index bee65dfe2..c5bf52d2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestPinterest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestPinterest.java @@ -14,7 +14,7 @@ public enum SourcePinterestPinterest { @JsonValue private final String value; - private SourcePinterestPinterest(String value) { + SourcePinterestPinterest(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterestSchemasValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterestSchemasValidEnums.java index bce3fea56..557f34a98 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestSchemasValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestSchemasValidEnums.java @@ -130,7 +130,7 @@ public enum SourcePinterestSchemasValidEnums { @JsonValue private final String value; - private SourcePinterestSchemasValidEnums(String value) { + SourcePinterestSchemasValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePinterestValidEnums.java b/src/main/java/com/airbyte/api/models/shared/SourcePinterestValidEnums.java index d67a3178e..7ec4922d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePinterestValidEnums.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePinterestValidEnums.java @@ -20,7 +20,7 @@ public enum SourcePinterestValidEnums { @JsonValue private final String value; - private SourcePinterestValidEnums(String value) { + SourcePinterestValidEnums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePipedrive.java b/src/main/java/com/airbyte/api/models/shared/SourcePipedrive.java index 8d32d4762..cd4584a27 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePipedrive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePipedrive.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePipedrive { +public class SourcePipedrive { /** * The Pipedrive API Token. */ @@ -22,11 +21,13 @@ public class SourcePipedrive { private String apiToken; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. When specified and not None, then stream will behave as incremental */ @JsonProperty("replication_start_date") private String replicationStartDate; + @JsonProperty("sourceType") private Pipedrive sourceType; @@ -50,7 +51,8 @@ public String apiToken() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. When specified and not None, then stream will behave as incremental */ @JsonIgnore public String replicationStartDate() { @@ -62,9 +64,10 @@ public Pipedrive sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Pipedrive API Token. @@ -76,7 +79,8 @@ public SourcePipedrive withApiToken(String apiToken) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. When specified and not None, then stream will behave as incremental */ public SourcePipedrive withReplicationStartDate(String replicationStartDate) { Utils.checkNotNull(replicationStartDate, "replicationStartDate"); @@ -84,7 +88,6 @@ public SourcePipedrive withReplicationStartDate(String replicationStartDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +98,15 @@ public boolean equals(java.lang.Object o) { } SourcePipedrive other = (SourcePipedrive) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.replicationStartDate, other.replicationStartDate) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.replicationStartDate, other.replicationStartDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - replicationStartDate, - sourceType); + return Utils.enhancedHash( + apiToken, replicationStartDate, sourceType); } @Override @@ -115,17 +116,19 @@ public String toString() { "replicationStartDate", replicationStartDate, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private String replicationStartDate; - + private Builder() { // force use of static builder() method } + /** * The Pipedrive API Token. */ @@ -135,21 +138,24 @@ public Builder apiToken(String apiToken) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. When specified and not None, then stream will behave as incremental */ public Builder replicationStartDate(String replicationStartDate) { Utils.checkNotNull(replicationStartDate, "replicationStartDate"); this.replicationStartDate = replicationStartDate; return this; } - + public SourcePipedrive build() { + return new SourcePipedrive( - apiToken, - replicationStartDate); + apiToken, replicationStartDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePipeliner.java b/src/main/java/com/airbyte/api/models/shared/SourcePipeliner.java index 9f6ef8580..c723b45b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePipeliner.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePipeliner.java @@ -13,24 +13,28 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourcePipeliner { @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("service") private DataCenter service; + @JsonProperty("sourceType") private Pipeliner sourceType; + @JsonProperty("spaceid") private String spaceid; + @JsonProperty("username") private String username; @@ -55,7 +59,8 @@ public SourcePipeliner( DataCenter service, String spaceid, String username) { - this(Optional.empty(), service, spaceid, username); + this(Optional.empty(), service, spaceid, + username); } @JsonIgnore @@ -83,9 +88,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourcePipeliner withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -93,6 +99,7 @@ public SourcePipeliner withPassword(String password) { return this; } + public SourcePipeliner withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -117,7 +124,6 @@ public SourcePipeliner withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -128,21 +134,18 @@ public boolean equals(java.lang.Object o) { } SourcePipeliner other = (SourcePipeliner) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.service, other.service) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.spaceid, other.spaceid) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.service, other.service) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.spaceid, other.spaceid) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - service, - sourceType, - spaceid, - username); + return Utils.enhancedHash( + password, service, sourceType, + spaceid, username); } @Override @@ -154,21 +157,23 @@ public String toString() { "spaceid", spaceid, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private DataCenter service; - + private String spaceid; - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -181,32 +186,35 @@ public Builder password(Optional password) { return this; } + public Builder service(DataCenter service) { Utils.checkNotNull(service, "service"); this.service = service; return this; } + public Builder spaceid(String spaceid) { Utils.checkNotNull(spaceid, "spaceid"); this.spaceid = spaceid; return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourcePipeliner build() { + return new SourcePipeliner( - password, - service, - spaceid, + password, service, spaceid, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePivotalTracker.java b/src/main/java/com/airbyte/api/models/shared/SourcePivotalTracker.java index d572e7d17..ba2b6309d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePivotalTracker.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePivotalTracker.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePivotalTracker { +public class SourcePivotalTracker { /** * Pivotal Tracker API token */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private PivotalTracker sourceType; @@ -45,9 +45,10 @@ public PivotalTracker sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Pivotal Tracker API token @@ -58,7 +59,6 @@ public SourcePivotalTracker withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourcePivotalTracker other = (SourcePivotalTracker) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * Pivotal Tracker API token */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public SourcePivotalTracker build() { + return new SourcePivotalTracker( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePiwik.java b/src/main/java/com/airbyte/api/models/shared/SourcePiwik.java index c857b646e..105a31f57 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePiwik.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePiwik.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourcePiwik { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; @@ -27,6 +28,7 @@ public class SourcePiwik { @JsonProperty("organization_id") private String organizationId; + @JsonProperty("sourceType") private Piwik sourceType; @@ -67,9 +69,10 @@ public Piwik sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourcePiwik withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -92,7 +95,6 @@ public SourcePiwik withOrganizationId(String organizationId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -103,18 +105,16 @@ public boolean equals(java.lang.Object o) { } SourcePiwik other = (SourcePiwik) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.organizationId, other.organizationId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - organizationId, + return Utils.enhancedHash( + clientId, clientSecret, organizationId, sourceType); } @@ -126,31 +126,35 @@ public String toString() { "organizationId", organizationId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String organizationId; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** * The organization id appearing at URL of your piwik website */ @@ -159,14 +163,14 @@ public Builder organizationId(String organizationId) { this.organizationId = organizationId; return this; } - + public SourcePiwik build() { + return new SourcePiwik( - clientId, - clientSecret, - organizationId); + clientId, clientSecret, organizationId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePlaid.java b/src/main/java/com/airbyte/api/models/shared/SourcePlaid.java index 49039ac85..de7e1d7af 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePlaid.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePlaid.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourcePlaid { +public class SourcePlaid { /** * The end-user's Link access token. */ @@ -43,11 +42,13 @@ public class SourcePlaid { @JsonProperty("plaid_env") private PlaidEnvironment plaidEnv; + @JsonProperty("sourceType") private Plaid sourceType; /** - * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data + * generated after this date will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -78,7 +79,8 @@ public SourcePlaid( String apiKey, String clientId, PlaidEnvironment plaidEnv) { - this(accessToken, apiKey, clientId, plaidEnv, Optional.empty()); + this(accessToken, apiKey, clientId, + plaidEnv, Optional.empty()); } /** @@ -119,16 +121,18 @@ public Plaid sourceType() { } /** - * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data + * generated after this date will be replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The end-user's Link access token. @@ -167,7 +171,8 @@ public SourcePlaid withPlaidEnv(PlaidEnvironment plaidEnv) { } /** - * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data + * generated after this date will be replicated. */ public SourcePlaid withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -175,8 +180,10 @@ public SourcePlaid withStartDate(LocalDate startDate) { return this; } + /** - * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data + * generated after this date will be replicated. */ public SourcePlaid withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -184,7 +191,6 @@ public SourcePlaid withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -195,23 +201,19 @@ public boolean equals(java.lang.Object o) { } SourcePlaid other = (SourcePlaid) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.plaidEnv, other.plaidEnv) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.plaidEnv, other.plaidEnv) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - apiKey, - clientId, - plaidEnv, - sourceType, - startDate); + return Utils.enhancedHash( + accessToken, apiKey, clientId, + plaidEnv, sourceType, startDate); } @Override @@ -224,23 +226,25 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String apiKey; - + private String clientId; - + private PlaidEnvironment plaidEnv; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The end-user's Link access token. */ @@ -250,6 +254,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Plaid API key to use to hit the API. */ @@ -259,6 +264,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The Plaid client id. */ @@ -268,6 +274,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Plaid environment. */ @@ -277,8 +284,10 @@ public Builder plaidEnv(PlaidEnvironment plaidEnv) { return this; } + /** - * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data + * generated after this date will be replicated. */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -287,23 +296,23 @@ public Builder startDate(LocalDate startDate) { } /** - * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Plaid in the format YYYY-MM-DD. All data + * generated after this date will be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePlaid build() { + return new SourcePlaid( - accessToken, - apiKey, - clientId, - plaidEnv, - startDate); + accessToken, apiKey, clientId, + plaidEnv, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java b/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java index 8777df5ec..02bc8e64b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePlanhat.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePlanhat { +public class SourcePlanhat { /** - * Your Planhat <a href="https://docs.planhat.com/#authentication">API Access Token</a> + * Your Planhat API Access Token */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Planhat sourceType; @@ -33,7 +33,7 @@ public SourcePlanhat( } /** - * Your Planhat <a href="https://docs.planhat.com/#authentication">API Access Token</a> + * Your Planhat API Access Token */ @JsonIgnore public String apiToken() { @@ -45,12 +45,13 @@ public Planhat sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Planhat <a href="https://docs.planhat.com/#authentication">API Access Token</a> + * Your Planhat API Access Token */ public SourcePlanhat withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -58,7 +59,6 @@ public SourcePlanhat withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourcePlanhat other = (SourcePlanhat) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,29 +85,33 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** - * Your Planhat <a href="https://docs.planhat.com/#authentication">API Access Token</a> + * Your Planhat API Access Token */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); this.apiToken = apiToken; return this; } - + public SourcePlanhat build() { + return new SourcePlanhat( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePlausible.java b/src/main/java/com/airbyte/api/models/shared/SourcePlausible.java index 237a69b07..1b4063642 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePlausible.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePlausible.java @@ -13,30 +13,34 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourcePlausible { +public class SourcePlausible { /** - * Plausible API Key. See the <a href="https://plausible.io/docs/stats-api">docs</a> for information on how to generate this key. + * Plausible API Key. See the docs for information on + * how to generate this key. */ @JsonProperty("api_key") private String apiKey; /** - * The API URL of your plausible instance. Change this if you self-host plausible. The default is https://plausible.io/api/v1/stats + * The API URL of your plausible instance. Change this if you self-host plausible. The default is + * https://plausible.io/api/v1/stats */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("api_url") private Optional apiUrl; /** - * The domain of the site you want to retrieve data for. Enter the name of your site as configured on Plausible, i.e., excluding "https://" and "www". Can be retrieved from the 'domain' field in your Plausible site settings. + * The domain of the site you want to retrieve data for. Enter the name of your site as configured on + * Plausible, i.e., excluding "https://" and "www". Can be retrieved from the 'domain' field in your + * Plausible site settings. */ @JsonProperty("site_id") private String siteId; + @JsonProperty("sourceType") private Plausible sourceType; @@ -67,11 +71,13 @@ public SourcePlausible( public SourcePlausible( String apiKey, String siteId) { - this(apiKey, Optional.empty(), siteId, Optional.empty()); + this(apiKey, Optional.empty(), siteId, + Optional.empty()); } /** - * Plausible API Key. See the <a href="https://plausible.io/docs/stats-api">docs</a> for information on how to generate this key. + * Plausible API Key. See the docs for information on + * how to generate this key. */ @JsonIgnore public String apiKey() { @@ -79,7 +85,8 @@ public String apiKey() { } /** - * The API URL of your plausible instance. Change this if you self-host plausible. The default is https://plausible.io/api/v1/stats + * The API URL of your plausible instance. Change this if you self-host plausible. The default is + * https://plausible.io/api/v1/stats */ @JsonIgnore public Optional apiUrl() { @@ -87,7 +94,9 @@ public Optional apiUrl() { } /** - * The domain of the site you want to retrieve data for. Enter the name of your site as configured on Plausible, i.e., excluding "https://" and "www". Can be retrieved from the 'domain' field in your Plausible site settings. + * The domain of the site you want to retrieve data for. Enter the name of your site as configured on + * Plausible, i.e., excluding "https://" and "www". Can be retrieved from the 'domain' field in your + * Plausible site settings. */ @JsonIgnore public String siteId() { @@ -107,12 +116,14 @@ public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Plausible API Key. See the <a href="https://plausible.io/docs/stats-api">docs</a> for information on how to generate this key. + * Plausible API Key. See the docs for information on + * how to generate this key. */ public SourcePlausible withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -121,7 +132,8 @@ public SourcePlausible withApiKey(String apiKey) { } /** - * The API URL of your plausible instance. Change this if you self-host plausible. The default is https://plausible.io/api/v1/stats + * The API URL of your plausible instance. Change this if you self-host plausible. The default is + * https://plausible.io/api/v1/stats */ public SourcePlausible withApiUrl(String apiUrl) { Utils.checkNotNull(apiUrl, "apiUrl"); @@ -129,8 +141,10 @@ public SourcePlausible withApiUrl(String apiUrl) { return this; } + /** - * The API URL of your plausible instance. Change this if you self-host plausible. The default is https://plausible.io/api/v1/stats + * The API URL of your plausible instance. Change this if you self-host plausible. The default is + * https://plausible.io/api/v1/stats */ public SourcePlausible withApiUrl(Optional apiUrl) { Utils.checkNotNull(apiUrl, "apiUrl"); @@ -139,7 +153,9 @@ public SourcePlausible withApiUrl(Optional apiUrl) { } /** - * The domain of the site you want to retrieve data for. Enter the name of your site as configured on Plausible, i.e., excluding "https://" and "www". Can be retrieved from the 'domain' field in your Plausible site settings. + * The domain of the site you want to retrieve data for. Enter the name of your site as configured on + * Plausible, i.e., excluding "https://" and "www". Can be retrieved from the 'domain' field in your + * Plausible site settings. */ public SourcePlausible withSiteId(String siteId) { Utils.checkNotNull(siteId, "siteId"); @@ -156,6 +172,7 @@ public SourcePlausible withStartDate(String startDate) { return this; } + /** * Start date for data to retrieve, in ISO-8601 format. */ @@ -165,7 +182,6 @@ public SourcePlausible withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -176,21 +192,18 @@ public boolean equals(java.lang.Object o) { } SourcePlausible other = (SourcePlausible) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiUrl, other.apiUrl) && - Objects.deepEquals(this.siteId, other.siteId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiUrl, other.apiUrl) && + Utils.enhancedDeepEquals(this.siteId, other.siteId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiUrl, - siteId, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, apiUrl, siteId, + sourceType, startDate); } @Override @@ -202,23 +215,26 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional apiUrl = Optional.empty(); - + private String siteId; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Plausible API Key. See the <a href="https://plausible.io/docs/stats-api">docs</a> for information on how to generate this key. + * Plausible API Key. See the docs for information on + * how to generate this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -226,8 +242,10 @@ public Builder apiKey(String apiKey) { return this; } + /** - * The API URL of your plausible instance. Change this if you self-host plausible. The default is https://plausible.io/api/v1/stats + * The API URL of your plausible instance. Change this if you self-host plausible. The default is + * https://plausible.io/api/v1/stats */ public Builder apiUrl(String apiUrl) { Utils.checkNotNull(apiUrl, "apiUrl"); @@ -236,7 +254,8 @@ public Builder apiUrl(String apiUrl) { } /** - * The API URL of your plausible instance. Change this if you self-host plausible. The default is https://plausible.io/api/v1/stats + * The API URL of your plausible instance. Change this if you self-host plausible. The default is + * https://plausible.io/api/v1/stats */ public Builder apiUrl(Optional apiUrl) { Utils.checkNotNull(apiUrl, "apiUrl"); @@ -244,8 +263,11 @@ public Builder apiUrl(Optional apiUrl) { return this; } + /** - * The domain of the site you want to retrieve data for. Enter the name of your site as configured on Plausible, i.e., excluding "https://" and "www". Can be retrieved from the 'domain' field in your Plausible site settings. + * The domain of the site you want to retrieve data for. Enter the name of your site as configured on + * Plausible, i.e., excluding "https://" and "www". Can be retrieved from the 'domain' field in your + * Plausible site settings. */ public Builder siteId(String siteId) { Utils.checkNotNull(siteId, "siteId"); @@ -253,6 +275,7 @@ public Builder siteId(String siteId) { return this; } + /** * Start date for data to retrieve, in ISO-8601 format. */ @@ -270,15 +293,15 @@ public Builder startDate(Optional startDate) { this.startDate = startDate; return this; } - + public SourcePlausible build() { + return new SourcePlausible( - apiKey, - apiUrl, - siteId, + apiKey, apiUrl, siteId, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePocket.java b/src/main/java/com/airbyte/api/models/shared/SourcePocket.java index e6d0c81b0..88db646bf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePocket.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePocket.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourcePocket { +public class SourcePocket { /** * The user's Pocket access token. */ @@ -81,6 +80,7 @@ public class SourcePocket { @JsonProperty("sort") private Optional sort; + @JsonProperty("sourceType") private Pocket sourceType; @@ -139,7 +139,10 @@ public SourcePocket( public SourcePocket( String accessToken, String consumerKey) { - this(accessToken, consumerKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(accessToken, consumerKey, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -239,9 +242,10 @@ public Optional tag() { return tag; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The user's Pocket access token. @@ -270,6 +274,7 @@ public SourcePocket withContentType(ContentType contentType) { return this; } + /** * Select the content type of the items to retrieve. */ @@ -288,6 +293,7 @@ public SourcePocket withDetailType(DetailType detailType) { return this; } + /** * Select the granularity of the information about each item. */ @@ -306,6 +312,7 @@ public SourcePocket withDomain(String domain) { return this; } + /** * Only return items from a particular `domain`. */ @@ -324,6 +331,7 @@ public SourcePocket withFavorite(boolean favorite) { return this; } + /** * Retrieve only favorited items. */ @@ -342,6 +350,7 @@ public SourcePocket withSearch(String search) { return this; } + /** * Only return items whose title or url contain the `search` string. */ @@ -360,6 +369,7 @@ public SourcePocket withSince(String since) { return this; } + /** * Only return items modified since the given timestamp. */ @@ -378,6 +388,7 @@ public SourcePocket withSort(SourcePocketSortBy sort) { return this; } + /** * Sort retrieved items by the given criteria. */ @@ -396,6 +407,7 @@ public SourcePocket withState(State state) { return this; } + /** * Select the state of the items to retrieve. */ @@ -414,6 +426,7 @@ public SourcePocket withTag(String tag) { return this; } + /** * Return only items tagged with this tag name. Use _untagged_ for retrieving only untagged items. */ @@ -423,7 +436,6 @@ public SourcePocket withTag(Optional tag) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -434,35 +446,27 @@ public boolean equals(java.lang.Object o) { } SourcePocket other = (SourcePocket) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.consumerKey, other.consumerKey) && - Objects.deepEquals(this.contentType, other.contentType) && - Objects.deepEquals(this.detailType, other.detailType) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.favorite, other.favorite) && - Objects.deepEquals(this.search, other.search) && - Objects.deepEquals(this.since, other.since) && - Objects.deepEquals(this.sort, other.sort) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.state, other.state) && - Objects.deepEquals(this.tag, other.tag); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.consumerKey, other.consumerKey) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.detailType, other.detailType) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.favorite, other.favorite) && + Utils.enhancedDeepEquals(this.search, other.search) && + Utils.enhancedDeepEquals(this.since, other.since) && + Utils.enhancedDeepEquals(this.sort, other.sort) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.state, other.state) && + Utils.enhancedDeepEquals(this.tag, other.tag); } @Override public int hashCode() { - return Objects.hash( - accessToken, - consumerKey, - contentType, - detailType, - domain, - favorite, - search, - since, - sort, - sourceType, - state, - tag); + return Utils.enhancedHash( + accessToken, consumerKey, contentType, + detailType, domain, favorite, + search, since, sort, + sourceType, state, tag); } @Override @@ -481,35 +485,37 @@ public String toString() { "state", state, "tag", tag); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String consumerKey; - + private Optional contentType = Optional.empty(); - + private Optional detailType = Optional.empty(); - + private Optional domain = Optional.empty(); - + private Optional favorite; - + private Optional search = Optional.empty(); - + private Optional since = Optional.empty(); - + private Optional sort = Optional.empty(); - + private Optional state = Optional.empty(); - + private Optional tag = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The user's Pocket access token. */ @@ -519,6 +525,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * Your application's Consumer Key. */ @@ -528,6 +535,7 @@ public Builder consumerKey(String consumerKey) { return this; } + /** * Select the content type of the items to retrieve. */ @@ -546,6 +554,7 @@ public Builder contentType(Optional contentType) { return this; } + /** * Select the granularity of the information about each item. */ @@ -564,6 +573,7 @@ public Builder detailType(Optional detailType) { return this; } + /** * Only return items from a particular `domain`. */ @@ -582,6 +592,7 @@ public Builder domain(Optional domain) { return this; } + /** * Retrieve only favorited items. */ @@ -600,6 +611,7 @@ public Builder favorite(Optional favorite) { return this; } + /** * Only return items whose title or url contain the `search` string. */ @@ -618,6 +630,7 @@ public Builder search(Optional search) { return this; } + /** * Only return items modified since the given timestamp. */ @@ -636,6 +649,7 @@ public Builder since(Optional since) { return this; } + /** * Sort retrieved items by the given criteria. */ @@ -654,6 +668,7 @@ public Builder sort(Optional sort) { return this; } + /** * Select the state of the items to retrieve. */ @@ -672,6 +687,7 @@ public Builder state(Optional state) { return this; } + /** * Return only items tagged with this tag name. Use _untagged_ for retrieving only untagged items. */ @@ -689,25 +705,20 @@ public Builder tag(Optional tag) { this.tag = tag; return this; } - + public SourcePocket build() { if (favorite == null) { favorite = _SINGLETON_VALUE_Favorite.value(); } + return new SourcePocket( - accessToken, - consumerKey, - contentType, - detailType, - domain, - favorite, - search, - since, - sort, - state, - tag); + accessToken, consumerKey, contentType, + detailType, domain, favorite, + search, since, sort, + state, tag); } + private static final LazySingletonValue> _SINGLETON_VALUE_Favorite = new LazySingletonValue<>( "favorite", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java b/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java index edc906340..7ef8018f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePocketSortBy.java @@ -22,7 +22,7 @@ public enum SourcePocketSortBy { @JsonValue private final String value; - private SourcePocketSortBy(String value) { + SourcePocketSortBy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePokeapi.java b/src/main/java/com/airbyte/api/models/shared/SourcePokeapi.java index 27e67a74d..bc49135cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePokeapi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePokeapi.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePokeapi { +public class SourcePokeapi { /** * Pokemon requested from the API. */ @JsonProperty("pokemon_name") private PokemonName pokemonName; + @JsonProperty("sourceType") private Pokeapi sourceType; @@ -45,9 +45,10 @@ public Pokeapi sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Pokemon requested from the API. @@ -58,7 +59,6 @@ public SourcePokeapi withPokemonName(PokemonName pokemonName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourcePokeapi other = (SourcePokeapi) o; return - Objects.deepEquals(this.pokemonName, other.pokemonName) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.pokemonName, other.pokemonName) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - pokemonName, - sourceType); + return Utils.enhancedHash( + pokemonName, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "pokemonName", pokemonName, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private PokemonName pokemonName; - + private Builder() { // force use of static builder() method } + /** * Pokemon requested from the API. */ @@ -103,12 +104,14 @@ public Builder pokemonName(PokemonName pokemonName) { this.pokemonName = pokemonName; return this; } - + public SourcePokeapi build() { + return new SourcePokeapi( pokemonName); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePolygonStockApi.java b/src/main/java/com/airbyte/api/models/shared/SourcePolygonStockApi.java index ddade36d6..1174ae94e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePolygonStockApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePolygonStockApi.java @@ -15,13 +15,13 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourcePolygonStockApi { +public class SourcePolygonStockApi { /** - * Determines whether or not the results are adjusted for splits. By default, results are adjusted and set to true. Set this to false to get results that are NOT adjusted for splits. + * Determines whether or not the results are adjusted for splits. By default, results are adjusted and + * set to true. Set this to false to get results that are NOT adjusted for splits. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("adjusted") @@ -53,12 +53,14 @@ public class SourcePolygonStockApi { private long multiplier; /** - * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc will return results in descending order (newest at the top). + * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc + * will return results in descending order (newest at the top). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sort") private Optional sort; + @JsonProperty("sourceType") private PolygonStockApi sourceType; @@ -119,11 +121,14 @@ public SourcePolygonStockApi( LocalDate startDate, String stocksTicker, String timespan) { - this(Optional.empty(), apiKey, endDate, Optional.empty(), multiplier, Optional.empty(), startDate, stocksTicker, timespan); + this(Optional.empty(), apiKey, endDate, + Optional.empty(), multiplier, Optional.empty(), + startDate, stocksTicker, timespan); } /** - * Determines whether or not the results are adjusted for splits. By default, results are adjusted and set to true. Set this to false to get results that are NOT adjusted for splits. + * Determines whether or not the results are adjusted for splits. By default, results are adjusted and + * set to true. Set this to false to get results that are NOT adjusted for splits. */ @JsonIgnore public Optional adjusted() { @@ -163,7 +168,8 @@ public long multiplier() { } /** - * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc will return results in descending order (newest at the top). + * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc + * will return results in descending order (newest at the top). */ @JsonIgnore public Optional sort() { @@ -199,12 +205,14 @@ public String timespan() { return timespan; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Determines whether or not the results are adjusted for splits. By default, results are adjusted and set to true. Set this to false to get results that are NOT adjusted for splits. + * Determines whether or not the results are adjusted for splits. By default, results are adjusted and + * set to true. Set this to false to get results that are NOT adjusted for splits. */ public SourcePolygonStockApi withAdjusted(String adjusted) { Utils.checkNotNull(adjusted, "adjusted"); @@ -212,8 +220,10 @@ public SourcePolygonStockApi withAdjusted(String adjusted) { return this; } + /** - * Determines whether or not the results are adjusted for splits. By default, results are adjusted and set to true. Set this to false to get results that are NOT adjusted for splits. + * Determines whether or not the results are adjusted for splits. By default, results are adjusted and + * set to true. Set this to false to get results that are NOT adjusted for splits. */ public SourcePolygonStockApi withAdjusted(Optional adjusted) { Utils.checkNotNull(adjusted, "adjusted"); @@ -248,6 +258,7 @@ public SourcePolygonStockApi withLimit(long limit) { return this; } + /** * The target date for the aggregate window. */ @@ -267,7 +278,8 @@ public SourcePolygonStockApi withMultiplier(long multiplier) { } /** - * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc will return results in descending order (newest at the top). + * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc + * will return results in descending order (newest at the top). */ public SourcePolygonStockApi withSort(String sort) { Utils.checkNotNull(sort, "sort"); @@ -275,8 +287,10 @@ public SourcePolygonStockApi withSort(String sort) { return this; } + /** - * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc will return results in descending order (newest at the top). + * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc + * will return results in descending order (newest at the top). */ public SourcePolygonStockApi withSort(Optional sort) { Utils.checkNotNull(sort, "sort"); @@ -311,7 +325,6 @@ public SourcePolygonStockApi withTimespan(String timespan) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -322,30 +335,24 @@ public boolean equals(java.lang.Object o) { } SourcePolygonStockApi other = (SourcePolygonStockApi) o; return - Objects.deepEquals(this.adjusted, other.adjusted) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.multiplier, other.multiplier) && - Objects.deepEquals(this.sort, other.sort) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.stocksTicker, other.stocksTicker) && - Objects.deepEquals(this.timespan, other.timespan); + Utils.enhancedDeepEquals(this.adjusted, other.adjusted) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.multiplier, other.multiplier) && + Utils.enhancedDeepEquals(this.sort, other.sort) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.stocksTicker, other.stocksTicker) && + Utils.enhancedDeepEquals(this.timespan, other.timespan); } @Override public int hashCode() { - return Objects.hash( - adjusted, - apiKey, - endDate, - limit, - multiplier, - sort, - sourceType, - startDate, - stocksTicker, + return Utils.enhancedHash( + adjusted, apiKey, endDate, + limit, multiplier, sort, + sourceType, startDate, stocksTicker, timespan); } @@ -363,33 +370,36 @@ public String toString() { "stocksTicker", stocksTicker, "timespan", timespan); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional adjusted = Optional.empty(); - + private String apiKey; - + private LocalDate endDate; - + private Optional limit = Optional.empty(); - + private Long multiplier; - + private Optional sort = Optional.empty(); - + private LocalDate startDate; - + private String stocksTicker; - + private String timespan; - + private Builder() { // force use of static builder() method } + /** - * Determines whether or not the results are adjusted for splits. By default, results are adjusted and set to true. Set this to false to get results that are NOT adjusted for splits. + * Determines whether or not the results are adjusted for splits. By default, results are adjusted and + * set to true. Set this to false to get results that are NOT adjusted for splits. */ public Builder adjusted(String adjusted) { Utils.checkNotNull(adjusted, "adjusted"); @@ -398,7 +408,8 @@ public Builder adjusted(String adjusted) { } /** - * Determines whether or not the results are adjusted for splits. By default, results are adjusted and set to true. Set this to false to get results that are NOT adjusted for splits. + * Determines whether or not the results are adjusted for splits. By default, results are adjusted and + * set to true. Set this to false to get results that are NOT adjusted for splits. */ public Builder adjusted(Optional adjusted) { Utils.checkNotNull(adjusted, "adjusted"); @@ -406,6 +417,7 @@ public Builder adjusted(Optional adjusted) { return this; } + /** * Your API ACCESS Key */ @@ -415,6 +427,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The target date for the aggregate window. */ @@ -424,6 +437,7 @@ public Builder endDate(LocalDate endDate) { return this; } + /** * The target date for the aggregate window. */ @@ -442,6 +456,7 @@ public Builder limit(Optional limit) { return this; } + /** * The size of the timespan multiplier. */ @@ -451,8 +466,10 @@ public Builder multiplier(long multiplier) { return this; } + /** - * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc will return results in descending order (newest at the top). + * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc + * will return results in descending order (newest at the top). */ public Builder sort(String sort) { Utils.checkNotNull(sort, "sort"); @@ -461,7 +478,8 @@ public Builder sort(String sort) { } /** - * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc will return results in descending order (newest at the top). + * Sort the results by timestamp. asc will return results in ascending order (oldest at the top), desc + * will return results in descending order (newest at the top). */ public Builder sort(Optional sort) { Utils.checkNotNull(sort, "sort"); @@ -469,6 +487,7 @@ public Builder sort(Optional sort) { return this; } + /** * The beginning date for the aggregate window. */ @@ -478,6 +497,7 @@ public Builder startDate(LocalDate startDate) { return this; } + /** * The exchange symbol that this item is traded under. */ @@ -487,6 +507,7 @@ public Builder stocksTicker(String stocksTicker) { return this; } + /** * The size of the time window. */ @@ -495,20 +516,16 @@ public Builder timespan(String timespan) { this.timespan = timespan; return this; } - + public SourcePolygonStockApi build() { + return new SourcePolygonStockApi( - adjusted, - apiKey, - endDate, - limit, - multiplier, - sort, - startDate, - stocksTicker, - timespan); + adjusted, apiKey, endDate, + limit, multiplier, sort, + startDate, stocksTicker, timespan); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePoplar.java b/src/main/java/com/airbyte/api/models/shared/SourcePoplar.java index ae140635c..33d77fbef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePoplar.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePoplar.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourcePoplar { +public class SourcePoplar { /** - * Your Poplar API Access Token. Generate it from the [API Credentials page](https://app.heypoplar.com/credentials) in your account. Use a production token for live data or a test token for testing purposes. + * Your Poplar API Access Token. Generate it from the [API Credentials + * page](https://app.heypoplar.com/credentials) in your account. Use a production token for live data + * or a test token for testing purposes. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Poplar sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +43,9 @@ public SourcePoplar( } /** - * Your Poplar API Access Token. Generate it from the [API Credentials page](https://app.heypoplar.com/credentials) in your account. Use a production token for live data or a test token for testing purposes. + * Your Poplar API Access Token. Generate it from the [API Credentials + * page](https://app.heypoplar.com/credentials) in your account. Use a production token for live data + * or a test token for testing purposes. */ @JsonIgnore public String accessToken() { @@ -57,12 +62,15 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Poplar API Access Token. Generate it from the [API Credentials page](https://app.heypoplar.com/credentials) in your account. Use a production token for live data or a test token for testing purposes. + * Your Poplar API Access Token. Generate it from the [API Credentials + * page](https://app.heypoplar.com/credentials) in your account. Use a production token for live data + * or a test token for testing purposes. */ public SourcePoplar withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -76,7 +84,6 @@ public SourcePoplar withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +94,15 @@ public boolean equals(java.lang.Object o) { } SourcePoplar other = (SourcePoplar) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType, - startDate); + return Utils.enhancedHash( + accessToken, sourceType, startDate); } @Override @@ -107,19 +112,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your Poplar API Access Token. Generate it from the [API Credentials page](https://app.heypoplar.com/credentials) in your account. Use a production token for live data or a test token for testing purposes. + * Your Poplar API Access Token. Generate it from the [API Credentials + * page](https://app.heypoplar.com/credentials) in your account. Use a production token for live data + * or a test token for testing purposes. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -127,18 +136,20 @@ public Builder accessToken(String accessToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePoplar build() { + return new SourcePoplar( - accessToken, - startDate); + accessToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgres.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgres.java index 619b51f67..cb0c8eca0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgres.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgres.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourcePostgres { +public class SourcePostgres { /** * Name of the database. */ @@ -34,7 +33,12 @@ public class SourcePostgres { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -68,19 +72,21 @@ public class SourcePostgres { @JsonProperty("schemas") private Optional> schemas; + @JsonProperty("sourceType") private SourcePostgresPostgres sourceType; /** - * SSL connection modes. - * Read more <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * Read more in the docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ssl_mode") private Optional sslMode; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") @@ -131,7 +137,10 @@ public SourcePostgres( String database, String host, String username) { - this(database, host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), username); + this(database, host, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + username); } /** @@ -151,7 +160,12 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ @JsonIgnore public Optional jdbcUrlParams() { @@ -198,8 +212,8 @@ public SourcePostgresPostgres sourceType() { } /** - * SSL connection modes. - * Read more <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * Read more in the docs. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -208,7 +222,8 @@ public Optional sslMode() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -224,9 +239,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the database. @@ -247,7 +263,12 @@ public SourcePostgres withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ public SourcePostgres withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -255,8 +276,14 @@ public SourcePostgres withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ public SourcePostgres withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -273,6 +300,7 @@ public SourcePostgres withPassword(String password) { return this; } + /** * Password associated with the username. */ @@ -291,6 +319,7 @@ public SourcePostgres withPort(long port) { return this; } + /** * Port of the database. */ @@ -309,6 +338,7 @@ public SourcePostgres withReplicationMethod(SourcePostgresUpdateMethod replicati return this; } + /** * Configures how data is extracted from the database. */ @@ -327,6 +357,7 @@ public SourcePostgres withSchemas(List schemas) { return this; } + /** * The list of schemas (case sensitive) to sync from. Defaults to public. */ @@ -337,8 +368,8 @@ public SourcePostgres withSchemas(Optional> schemas) { } /** - * SSL connection modes. - * Read more <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * Read more in the docs. */ public SourcePostgres withSslMode(SourcePostgresSSLModes sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -346,9 +377,10 @@ public SourcePostgres withSslMode(SourcePostgresSSLModes sslMode) { return this; } + /** - * SSL connection modes. - * Read more <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * Read more in the docs. */ public SourcePostgres withSslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -357,7 +389,8 @@ public SourcePostgres withSslMode(Optional ssl } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourcePostgres withTunnelMethod(SourcePostgresSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -365,8 +398,10 @@ public SourcePostgres withTunnelMethod(SourcePostgresSSHTunnelMethod tunnelMetho return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourcePostgres withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -383,7 +418,6 @@ public SourcePostgres withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -394,33 +428,26 @@ public boolean equals(java.lang.Object o) { } SourcePostgres other = (SourcePostgres) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.replicationMethod, other.replicationMethod) && - Objects.deepEquals(this.schemas, other.schemas) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.sslMode, other.sslMode) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.replicationMethod, other.replicationMethod) && + Utils.enhancedDeepEquals(this.schemas, other.schemas) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.sslMode, other.sslMode) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - database, - host, - jdbcUrlParams, - password, - port, - replicationMethod, - schemas, - sourceType, - sslMode, - tunnelMethod, - username); + return Utils.enhancedHash( + database, host, jdbcUrlParams, + password, port, replicationMethod, + schemas, sourceType, sslMode, + tunnelMethod, username); } @Override @@ -438,33 +465,35 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String database; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional password = Optional.empty(); - + private Optional port; - + private Optional replicationMethod = Optional.empty(); - + private Optional> schemas = Optional.empty(); - + private Optional sslMode = Optional.empty(); - + private Optional tunnelMethod = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Name of the database. */ @@ -474,6 +503,7 @@ public Builder database(String database) { return this; } + /** * Hostname of the database. */ @@ -483,8 +513,14 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -493,7 +529,12 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (Eg. key1=value1&key2=value2&key3=value3). For more information read about <a href="https://jdbc.postgresql.org/documentation/head/connect.html">JDBC URL parameters</a>. + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (Eg. + * key1=value1&key2=value2&key3=value3). + * + *

    For more information read about JDBC URL parameters. */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -501,6 +542,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * Password associated with the username. */ @@ -519,6 +561,7 @@ public Builder password(Optional password) { return this; } + /** * Port of the database. */ @@ -537,6 +580,7 @@ public Builder port(Optional port) { return this; } + /** * Configures how data is extracted from the database. */ @@ -555,6 +599,7 @@ public Builder replicationMethod(Optional return this; } + /** * The list of schemas (case sensitive) to sync from. Defaults to public. */ @@ -573,9 +618,10 @@ public Builder schemas(Optional> schemas) { return this; } + /** - * SSL connection modes. - * Read more <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * Read more in the docs. */ public Builder sslMode(SourcePostgresSSLModes sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -584,8 +630,8 @@ public Builder sslMode(SourcePostgresSSLModes sslMode) { } /** - * SSL connection modes. - * Read more <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + * SSL connection modes. + * Read more in the docs. */ public Builder sslMode(Optional sslMode) { Utils.checkNotNull(sslMode, "sslMode"); @@ -593,8 +639,10 @@ public Builder sslMode(Optional sslMode) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(SourcePostgresSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -603,7 +651,8 @@ public Builder tunnelMethod(SourcePostgresSSHTunnelMethod tunnelMethod) { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -611,6 +660,7 @@ public Builder tunnelMethod(Optional tu return this; } + /** * Username to access the database. */ @@ -619,24 +669,20 @@ public Builder username(String username) { this.username = username; return this; } - + public SourcePostgres build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SourcePostgres( - database, - host, - jdbcUrlParams, - password, - port, - replicationMethod, - schemas, - sslMode, - tunnelMethod, + database, host, jdbcUrlParams, + password, port, replicationMethod, + schemas, sslMode, tunnelMethod, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_Port = new LazySingletonValue<>( "port", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresAllow.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresAllow.java index 734658032..70f6b3fff 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresAllow.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresAllow.java @@ -16,7 +16,6 @@ import java.lang.String; import java.util.HashMap; import java.util.Map; -import java.util.Objects; /** * SourcePostgresAllow @@ -28,12 +27,12 @@ public class SourcePostgresAllow { @JsonIgnore private Map additionalProperties; + @JsonProperty("mode") private SourcePostgresSchemasMode mode; @JsonCreator public SourcePostgresAllow() { - this.additionalProperties = new HashMap<>(); this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -48,9 +47,10 @@ public SourcePostgresSchemasMode mode() { return mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourcePostgresAllow withAdditionalProperty(String key, Object value) { @@ -58,15 +58,13 @@ public SourcePostgresAllow withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourcePostgresAllow withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,15 +75,14 @@ public boolean equals(java.lang.Object o) { } SourcePostgresAllow other = (SourcePostgresAllow) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - mode); + return Utils.enhancedHash( + additionalProperties, mode); } @Override @@ -94,11 +91,12 @@ public String toString() { "additionalProperties", additionalProperties, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Builder() { // force use of static builder() method } @@ -118,13 +116,15 @@ public Builder additionalProperties(Map additionalProperties) { this.additionalProperties = additionalProperties; return this; } - + public SourcePostgresAllow build() { + return new SourcePostgresAllow( ) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresDisable.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresDisable.java index d18c506cd..985b2fad8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresDisable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresDisable.java @@ -16,7 +16,6 @@ import java.lang.String; import java.util.HashMap; import java.util.Map; -import java.util.Objects; /** * SourcePostgresDisable @@ -28,12 +27,12 @@ public class SourcePostgresDisable { @JsonIgnore private Map additionalProperties; + @JsonProperty("mode") private SourcePostgresMode mode; @JsonCreator public SourcePostgresDisable() { - this.additionalProperties = new HashMap<>(); this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -48,9 +47,10 @@ public SourcePostgresMode mode() { return mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourcePostgresDisable withAdditionalProperty(String key, Object value) { @@ -58,15 +58,13 @@ public SourcePostgresDisable withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourcePostgresDisable withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,15 +75,14 @@ public boolean equals(java.lang.Object o) { } SourcePostgresDisable other = (SourcePostgresDisable) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - mode); + return Utils.enhancedHash( + additionalProperties, mode); } @Override @@ -94,11 +91,12 @@ public String toString() { "additionalProperties", additionalProperties, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Builder() { // force use of static builder() method } @@ -118,13 +116,15 @@ public Builder additionalProperties(Map additionalProperties) { this.additionalProperties = additionalProperties; return this; } - + public SourcePostgresDisable build() { + return new SourcePostgresDisable( ) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java index e71033931..b5cf31d98 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresInvalidCDCPositionBehaviorAdvanced.java @@ -11,7 +11,10 @@ /** * SourcePostgresInvalidCDCPositionBehaviorAdvanced * - *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value into + * the WAL. If 'Fail sync' is chosen, a user will have to manually reset the connection before being + * able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a + * refresh but could lead to higher cloud costs and data loss. */ public enum SourcePostgresInvalidCDCPositionBehaviorAdvanced { FAIL_SYNC("Fail sync"), @@ -20,7 +23,7 @@ public enum SourcePostgresInvalidCDCPositionBehaviorAdvanced { @JsonValue private final String value; - private SourcePostgresInvalidCDCPositionBehaviorAdvanced(String value) { + SourcePostgresInvalidCDCPositionBehaviorAdvanced(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresMethod.java index 68c0838c1..f9fe0ea79 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresMethod.java @@ -14,7 +14,7 @@ public enum SourcePostgresMethod { @JsonValue private final String value; - private SourcePostgresMethod(String value) { + SourcePostgresMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresMode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresMode.java index 25f9ef815..f238672a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresMode.java @@ -14,7 +14,7 @@ public enum SourcePostgresMode { @JsonValue private final String value; - private SourcePostgresMode(String value) { + SourcePostgresMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresNoTunnel.java index e65c16fc7..b4029349f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresNoTunnel.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePostgresNoTunnel { +public class SourcePostgresNoTunnel { /** * No ssh tunnel needed to connect to database */ @@ -23,7 +22,6 @@ public class SourcePostgresNoTunnel { @JsonCreator public SourcePostgresNoTunnel() { - this.tunnelMethod = Builder._SINGLETON_VALUE_TunnelMethod.value(); } @@ -35,11 +33,11 @@ public SourcePostgresTunnelMethod tunnelMethod() { return tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +48,12 @@ public boolean equals(java.lang.Object o) { } SourcePostgresNoTunnel other = (SourcePostgresNoTunnel) o; return - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( tunnelMethod); } @@ -64,18 +62,21 @@ public String toString() { return Utils.toString(SourcePostgresNoTunnel.class, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourcePostgresNoTunnel build() { + return new SourcePostgresNoTunnel( ); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPasswordAuthentication.java index 477d3866f..18d984d67 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPasswordAuthentication.java @@ -14,11 +14,10 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourcePostgresPasswordAuthentication { +public class SourcePostgresPasswordAuthentication { /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -71,7 +70,8 @@ public SourcePostgresPasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), tunnelUser, + tunnelUserPassword); } /** @@ -114,9 +114,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Hostname of the jump server host that allows inbound ssh tunnel. @@ -136,6 +137,7 @@ public SourcePostgresPasswordAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +165,6 @@ public SourcePostgresPasswordAuthentication withTunnelUserPassword(String tunnel return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +175,18 @@ public boolean equals(java.lang.Object o) { } SourcePostgresPasswordAuthentication other = (SourcePostgresPasswordAuthentication) o; return - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword); } @Override @@ -200,21 +198,23 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -224,6 +224,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -242,6 +243,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -251,6 +253,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -259,18 +262,18 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public SourcePostgresPasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourcePostgresPasswordAuthentication( - tunnelHost, - tunnelPort, - tunnelUser, + tunnelHost, tunnelPort, tunnelUser, tunnelUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java index f383fbae8..1d0b2497e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPostgres.java @@ -14,7 +14,7 @@ public enum SourcePostgresPostgres { @JsonValue private final String value; - private SourcePostgresPostgres(String value) { + SourcePostgresPostgres(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPrefer.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPrefer.java index c8f3797d9..a768c3d38 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresPrefer.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresPrefer.java @@ -16,7 +16,6 @@ import java.lang.String; import java.util.HashMap; import java.util.Map; -import java.util.Objects; /** * SourcePostgresPrefer @@ -28,12 +27,12 @@ public class SourcePostgresPrefer { @JsonIgnore private Map additionalProperties; + @JsonProperty("mode") private SourcePostgresSchemasSslModeMode mode; @JsonCreator public SourcePostgresPrefer() { - this.additionalProperties = new HashMap<>(); this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -48,9 +47,10 @@ public SourcePostgresSchemasSslModeMode mode() { return mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourcePostgresPrefer withAdditionalProperty(String key, Object value) { @@ -58,15 +58,13 @@ public SourcePostgresPrefer withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourcePostgresPrefer withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,15 +75,14 @@ public boolean equals(java.lang.Object o) { } SourcePostgresPrefer other = (SourcePostgresPrefer) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - mode); + return Utils.enhancedHash( + additionalProperties, mode); } @Override @@ -94,11 +91,12 @@ public String toString() { "additionalProperties", additionalProperties, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Builder() { // force use of static builder() method } @@ -118,13 +116,15 @@ public Builder additionalProperties(Map additionalProperties) { this.additionalProperties = additionalProperties; return this; } - + public SourcePostgresPrefer build() { + return new SourcePostgresPrefer( ) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresRequire.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresRequire.java index 0c0e6e381..d3e2e80ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresRequire.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresRequire.java @@ -16,24 +16,24 @@ import java.lang.String; import java.util.HashMap; import java.util.Map; -import java.util.Objects; /** * SourcePostgresRequire * - *

    Always require encryption. If the source database server does not support encryption, connection will fail. + *

    Always require encryption. If the source database server does not support encryption, connection + * will fail. */ public class SourcePostgresRequire { @JsonIgnore private Map additionalProperties; + @JsonProperty("mode") private SourcePostgresSchemasSSLModeSSLModesMode mode; @JsonCreator public SourcePostgresRequire() { - this.additionalProperties = new HashMap<>(); this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -48,9 +48,10 @@ public SourcePostgresSchemasSSLModeSSLModesMode mode() { return mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourcePostgresRequire withAdditionalProperty(String key, Object value) { @@ -58,15 +59,13 @@ public SourcePostgresRequire withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourcePostgresRequire withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,15 +76,14 @@ public boolean equals(java.lang.Object o) { } SourcePostgresRequire other = (SourcePostgresRequire) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - mode); + return Utils.enhancedHash( + additionalProperties, mode); } @Override @@ -94,11 +92,12 @@ public String toString() { "additionalProperties", additionalProperties, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Builder() { // force use of static builder() method } @@ -118,13 +117,15 @@ public Builder additionalProperties(Map additionalProperties) { this.additionalProperties = additionalProperties; return this; } - + public SourcePostgresRequire build() { + return new SourcePostgresRequire( ) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHKeyAuthentication.java index b9e49b354..0ab01a2f7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHKeyAuthentication.java @@ -14,13 +14,13 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourcePostgresSSHKeyAuthentication { +public class SourcePostgresSSHKeyAuthentication { /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -71,11 +71,13 @@ public SourcePostgresSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + tunnelUser); } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -114,12 +116,14 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public SourcePostgresSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -145,6 +149,7 @@ public SourcePostgresSSHKeyAuthentication withTunnelPort(long tunnelPort) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -163,7 +168,6 @@ public SourcePostgresSSHKeyAuthentication withTunnelUser(String tunnelUser) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,21 +178,18 @@ public boolean equals(java.lang.Object o) { } SourcePostgresSSHKeyAuthentication other = (SourcePostgresSSHKeyAuthentication) o; return - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser); } @Override @@ -200,23 +201,26 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -224,6 +228,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -233,6 +238,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -251,6 +257,7 @@ public Builder tunnelPort(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host. */ @@ -259,18 +266,18 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public SourcePostgresSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourcePostgresSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelPort, + sshKey, tunnelHost, tunnelPort, tunnelUser); } + private static final LazySingletonValue _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHTunnelMethod.java index e87b063aa..7c8c49f55 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourcePostgresSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = SourcePostgresSSHTunnelMethod._Deserializer.class) public class SourcePostgresSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourcePostgresSSHTunnelMethod other = (SourcePostgresSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSLModes.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSLModes.java index 1839a8969..bdb3f210c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSLModes.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSSLModes.java @@ -14,13 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourcePostgresSSLModes * - *

    SSL connection modes. - * Read more <a href="https://jdbc.postgresql.org/documentation/head/ssl-client.html"> in the docs</a>. + *

    SSL connection modes. + * Read more in the docs. */ @JsonDeserialize(using = SourcePostgresSSLModes._Deserializer.class) public class SourcePostgresSSLModes { @@ -97,12 +96,12 @@ public boolean equals(java.lang.Object o) { return false; } SourcePostgresSSLModes other = (SourcePostgresSSLModes) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresScanChangesWithUserDefinedCursor.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresScanChangesWithUserDefinedCursor.java index 4ad521054..1ae5375fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresScanChangesWithUserDefinedCursor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresScanChangesWithUserDefinedCursor.java @@ -11,12 +11,13 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * SourcePostgresScanChangesWithUserDefinedCursor * - *

    Incrementally detects new inserts and updates using the <a href="https://docs.airbyte.com/understanding-airbyte/connections/incremental-append/#user-defined-cursor">cursor column</a> chosen when configuring a connection (e.g. created_at, updated_at). + *

    Incrementally detects new inserts and updates using the cursor + * column chosen when configuring a connection (e.g. created_at, updated_at). */ public class SourcePostgresScanChangesWithUserDefinedCursor { @@ -25,7 +26,6 @@ public class SourcePostgresScanChangesWithUserDefinedCursor { @JsonCreator public SourcePostgresScanChangesWithUserDefinedCursor() { - this.method = Builder._SINGLETON_VALUE_Method.value(); } @@ -34,11 +34,11 @@ public SourcePostgresSchemasReplicationMethodMethod method() { return method; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -49,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourcePostgresScanChangesWithUserDefinedCursor other = (SourcePostgresScanChangesWithUserDefinedCursor) o; return - Objects.deepEquals(this.method, other.method); + Utils.enhancedDeepEquals(this.method, other.method); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( method); } @@ -63,18 +63,21 @@ public String toString() { return Utils.toString(SourcePostgresScanChangesWithUserDefinedCursor.class, "method", method); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourcePostgresScanChangesWithUserDefinedCursor build() { + return new SourcePostgresScanChangesWithUserDefinedCursor( ); } + private static final LazySingletonValue _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java index 78a89d49a..2ab79dda1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMethod.java @@ -14,7 +14,7 @@ public enum SourcePostgresSchemasMethod { @JsonValue private final String value; - private SourcePostgresSchemasMethod(String value) { + SourcePostgresSchemasMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMode.java index 0565a5f0d..243c8d3f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasMode.java @@ -14,7 +14,7 @@ public enum SourcePostgresSchemasMode { @JsonValue private final String value; - private SourcePostgresSchemasMode(String value) { + SourcePostgresSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasReplicationMethodMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasReplicationMethodMethod.java index 78ae21bd3..f9f6c7a7d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasReplicationMethodMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasReplicationMethodMethod.java @@ -14,7 +14,7 @@ public enum SourcePostgresSchemasReplicationMethodMethod { @JsonValue private final String value; - private SourcePostgresSchemasReplicationMethodMethod(String value) { + SourcePostgresSchemasReplicationMethodMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes5Mode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes5Mode.java index 204f7a848..897670ea0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes5Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes5Mode.java @@ -14,7 +14,7 @@ public enum SourcePostgresSchemasSSLModeSSLModes5Mode { @JsonValue private final String value; - private SourcePostgresSchemasSSLModeSSLModes5Mode(String value) { + SourcePostgresSchemasSSLModeSSLModes5Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes6Mode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes6Mode.java index 201f4f3fa..a1bcb0209 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes6Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModes6Mode.java @@ -14,7 +14,7 @@ public enum SourcePostgresSchemasSSLModeSSLModes6Mode { @JsonValue private final String value; - private SourcePostgresSchemasSSLModeSSLModes6Mode(String value) { + SourcePostgresSchemasSSLModeSSLModes6Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModesMode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModesMode.java index b0cb0365c..7a8beb8ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModesMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSSLModeSSLModesMode.java @@ -14,7 +14,7 @@ public enum SourcePostgresSchemasSSLModeSSLModesMode { @JsonValue private final String value; - private SourcePostgresSchemasSSLModeSSLModesMode(String value) { + SourcePostgresSchemasSSLModeSSLModesMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSslModeMode.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSslModeMode.java index 987e9a377..d0bce43be 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSslModeMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasSslModeMode.java @@ -14,7 +14,7 @@ public enum SourcePostgresSchemasSslModeMode { @JsonValue private final String value; - private SourcePostgresSchemasSslModeMode(String value) { + SourcePostgresSchemasSslModeMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethod.java index 12266b51f..630e2fe20 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourcePostgresSchemasTunnelMethod { @JsonValue private final String value; - private SourcePostgresSchemasTunnelMethod(String value) { + SourcePostgresSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethodTunnelMethod.java index 7c3f458ab..2d96ce401 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresSchemasTunnelMethodTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourcePostgresSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private SourcePostgresSchemasTunnelMethodTunnelMethod(String value) { + SourcePostgresSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresTunnelMethod.java index 2c177085b..6f113d421 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresTunnelMethod.java @@ -19,7 +19,7 @@ public enum SourcePostgresTunnelMethod { @JsonValue private final String value; - private SourcePostgresTunnelMethod(String value) { + SourcePostgresTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresUpdateMethod.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresUpdateMethod.java index 83625d2e4..d70ebffe0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresUpdateMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresUpdateMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourcePostgresUpdateMethod @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } SourcePostgresUpdateMethod other = (SourcePostgresUpdateMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyCa.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyCa.java index d869c9f5f..9e9f17cf8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyCa.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyCa.java @@ -18,7 +18,6 @@ import java.lang.String; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -58,6 +57,7 @@ public class SourcePostgresVerifyCa { @JsonProperty("client_key_password") private Optional clientKeyPassword; + @JsonProperty("mode") private SourcePostgresSchemasSSLModeSSLModes5Mode mode; @@ -81,7 +81,8 @@ public SourcePostgresVerifyCa( public SourcePostgresVerifyCa( String caCertificate) { - this(caCertificate, Optional.empty(), Optional.empty(), Optional.empty()); + this(caCertificate, Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonAnyGetter @@ -126,9 +127,10 @@ public SourcePostgresSchemasSSLModeSSLModes5Mode mode() { return mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourcePostgresVerifyCa withAdditionalProperty(String key, Object value) { @@ -136,8 +138,7 @@ public SourcePostgresVerifyCa withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourcePostgresVerifyCa withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -162,6 +163,7 @@ public SourcePostgresVerifyCa withClientCertificate(String clientCertificate) { return this; } + /** * Client certificate */ @@ -180,6 +182,7 @@ public SourcePostgresVerifyCa withClientKey(String clientKey) { return this; } + /** * Client key */ @@ -198,6 +201,7 @@ public SourcePostgresVerifyCa withClientKeyPassword(String clientKeyPassword) { return this; } + /** * Password for keystorage. If you do not add it - the password will be generated automatically. */ @@ -207,7 +211,6 @@ public SourcePostgresVerifyCa withClientKeyPassword(Optional clientKeyPa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +221,19 @@ public boolean equals(java.lang.Object o) { } SourcePostgresVerifyCa other = (SourcePostgresVerifyCa) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.caCertificate, other.caCertificate) && - Objects.deepEquals(this.clientCertificate, other.clientCertificate) && - Objects.deepEquals(this.clientKey, other.clientKey) && - Objects.deepEquals(this.clientKeyPassword, other.clientKeyPassword) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.caCertificate, other.caCertificate) && + Utils.enhancedDeepEquals(this.clientCertificate, other.clientCertificate) && + Utils.enhancedDeepEquals(this.clientKey, other.clientKey) && + Utils.enhancedDeepEquals(this.clientKeyPassword, other.clientKeyPassword) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - caCertificate, - clientCertificate, - clientKey, - clientKeyPassword, - mode); + return Utils.enhancedHash( + additionalProperties, caCertificate, clientCertificate, + clientKey, clientKeyPassword, mode); } @Override @@ -247,19 +246,20 @@ public String toString() { "clientKeyPassword", clientKeyPassword, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String caCertificate; - + private Optional clientCertificate = Optional.empty(); - + private Optional clientKey = Optional.empty(); - + private Optional clientKeyPassword = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -280,6 +280,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * CA certificate */ @@ -289,6 +290,7 @@ public Builder caCertificate(String caCertificate) { return this; } + /** * Client certificate */ @@ -307,6 +309,7 @@ public Builder clientCertificate(Optional clientCertificate) { return this; } + /** * Client key */ @@ -325,6 +328,7 @@ public Builder clientKey(Optional clientKey) { return this; } + /** * Password for keystorage. If you do not add it - the password will be generated automatically. */ @@ -342,16 +346,16 @@ public Builder clientKeyPassword(Optional clientKeyPassword) { this.clientKeyPassword = clientKeyPassword; return this; } - + public SourcePostgresVerifyCa build() { + return new SourcePostgresVerifyCa( - caCertificate, - clientCertificate, - clientKey, + caCertificate, clientCertificate, clientKey, clientKeyPassword) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyFull.java b/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyFull.java index b98508edd..3746e57ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyFull.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostgresVerifyFull.java @@ -18,13 +18,13 @@ import java.lang.String; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * SourcePostgresVerifyFull * - *

    This is the most secure mode. Always require encryption and verifies the identity of the source database server. + *

    This is the most secure mode. Always require encryption and verifies the identity of the source + * database server. */ public class SourcePostgresVerifyFull { @@ -58,6 +58,7 @@ public class SourcePostgresVerifyFull { @JsonProperty("client_key_password") private Optional clientKeyPassword; + @JsonProperty("mode") private SourcePostgresSchemasSSLModeSSLModes6Mode mode; @@ -81,7 +82,8 @@ public SourcePostgresVerifyFull( public SourcePostgresVerifyFull( String caCertificate) { - this(caCertificate, Optional.empty(), Optional.empty(), Optional.empty()); + this(caCertificate, Optional.empty(), Optional.empty(), + Optional.empty()); } @JsonAnyGetter @@ -126,9 +128,10 @@ public SourcePostgresSchemasSSLModeSSLModes6Mode mode() { return mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourcePostgresVerifyFull withAdditionalProperty(String key, Object value) { @@ -136,8 +139,7 @@ public SourcePostgresVerifyFull withAdditionalProperty(String key, Object value) Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourcePostgresVerifyFull withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -162,6 +164,7 @@ public SourcePostgresVerifyFull withClientCertificate(String clientCertificate) return this; } + /** * Client certificate */ @@ -180,6 +183,7 @@ public SourcePostgresVerifyFull withClientKey(String clientKey) { return this; } + /** * Client key */ @@ -198,6 +202,7 @@ public SourcePostgresVerifyFull withClientKeyPassword(String clientKeyPassword) return this; } + /** * Password for keystorage. If you do not add it - the password will be generated automatically. */ @@ -207,7 +212,6 @@ public SourcePostgresVerifyFull withClientKeyPassword(Optional clientKey return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +222,19 @@ public boolean equals(java.lang.Object o) { } SourcePostgresVerifyFull other = (SourcePostgresVerifyFull) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.caCertificate, other.caCertificate) && - Objects.deepEquals(this.clientCertificate, other.clientCertificate) && - Objects.deepEquals(this.clientKey, other.clientKey) && - Objects.deepEquals(this.clientKeyPassword, other.clientKeyPassword) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.caCertificate, other.caCertificate) && + Utils.enhancedDeepEquals(this.clientCertificate, other.clientCertificate) && + Utils.enhancedDeepEquals(this.clientKey, other.clientKey) && + Utils.enhancedDeepEquals(this.clientKeyPassword, other.clientKeyPassword) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - caCertificate, - clientCertificate, - clientKey, - clientKeyPassword, - mode); + return Utils.enhancedHash( + additionalProperties, caCertificate, clientCertificate, + clientKey, clientKeyPassword, mode); } @Override @@ -247,19 +247,20 @@ public String toString() { "clientKeyPassword", clientKeyPassword, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String caCertificate; - + private Optional clientCertificate = Optional.empty(); - + private Optional clientKey = Optional.empty(); - + private Optional clientKeyPassword = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -280,6 +281,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * CA certificate */ @@ -289,6 +291,7 @@ public Builder caCertificate(String caCertificate) { return this; } + /** * Client certificate */ @@ -307,6 +310,7 @@ public Builder clientCertificate(Optional clientCertificate) { return this; } + /** * Client key */ @@ -325,6 +329,7 @@ public Builder clientKey(Optional clientKey) { return this; } + /** * Password for keystorage. If you do not add it - the password will be generated automatically. */ @@ -342,16 +347,16 @@ public Builder clientKeyPassword(Optional clientKeyPassword) { this.clientKeyPassword = clientKeyPassword; return this; } - + public SourcePostgresVerifyFull build() { + return new SourcePostgresVerifyFull( - caCertificate, - clientCertificate, - clientKey, + caCertificate, clientCertificate, clientKey, clientKeyPassword) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePosthog.java b/src/main/java/com/airbyte/api/models/shared/SourcePosthog.java index 9560169b6..e9e9d302d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePosthog.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePosthog.java @@ -15,13 +15,13 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourcePosthog { +public class SourcePosthog { /** - * API Key. See the <a href="https://docs.airbyte.com/integrations/sources/posthog">docs</a> for information on how to generate this key. + * API Key. See the docs for + * information on how to generate this key. */ @JsonProperty("api_key") private String apiKey; @@ -40,11 +40,13 @@ public class SourcePosthog { @JsonProperty("events_time_step") private Optional eventsTimeStep; + @JsonProperty("sourceType") private Posthog sourceType; /** - * The date from which you'd like to replicate the data. Any data before this date will not be replicated. + * The date from which you'd like to replicate the data. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -69,11 +71,13 @@ public SourcePosthog( public SourcePosthog( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), startDate); + this(apiKey, Optional.empty(), Optional.empty(), + startDate); } /** - * API Key. See the <a href="https://docs.airbyte.com/integrations/sources/posthog">docs</a> for information on how to generate this key. + * API Key. See the docs for + * information on how to generate this key. */ @JsonIgnore public String apiKey() { @@ -102,19 +106,22 @@ public Posthog sourceType() { } /** - * The date from which you'd like to replicate the data. Any data before this date will not be replicated. + * The date from which you'd like to replicate the data. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API Key. See the <a href="https://docs.airbyte.com/integrations/sources/posthog">docs</a> for information on how to generate this key. + * API Key. See the docs for + * information on how to generate this key. */ public SourcePosthog withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -131,6 +138,7 @@ public SourcePosthog withBaseUrl(String baseUrl) { return this; } + /** * Base PostHog url. Defaults to PostHog Cloud (https://app.posthog.com). */ @@ -149,6 +157,7 @@ public SourcePosthog withEventsTimeStep(long eventsTimeStep) { return this; } + /** * Set lower value in case of failing long running sync of events stream. */ @@ -159,7 +168,8 @@ public SourcePosthog withEventsTimeStep(Optional eventsTimeStep) { } /** - * The date from which you'd like to replicate the data. Any data before this date will not be replicated. + * The date from which you'd like to replicate the data. Any data before this date will not be + * replicated. */ public SourcePosthog withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -167,7 +177,6 @@ public SourcePosthog withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -178,21 +187,18 @@ public boolean equals(java.lang.Object o) { } SourcePosthog other = (SourcePosthog) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.eventsTimeStep, other.eventsTimeStep) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.eventsTimeStep, other.eventsTimeStep) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - baseUrl, - eventsTimeStep, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, baseUrl, eventsTimeStep, + sourceType, startDate); } @Override @@ -204,23 +210,26 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional baseUrl; - + private Optional eventsTimeStep; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * API Key. See the <a href="https://docs.airbyte.com/integrations/sources/posthog">docs</a> for information on how to generate this key. + * API Key. See the docs for + * information on how to generate this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -228,6 +237,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Base PostHog url. Defaults to PostHog Cloud (https://app.posthog.com). */ @@ -246,6 +256,7 @@ public Builder baseUrl(Optional baseUrl) { return this; } + /** * Set lower value in case of failing long running sync of events stream. */ @@ -264,15 +275,17 @@ public Builder eventsTimeStep(Optional eventsTimeStep) { return this; } + /** - * The date from which you'd like to replicate the data. Any data before this date will not be replicated. + * The date from which you'd like to replicate the data. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourcePosthog build() { if (baseUrl == null) { baseUrl = _SINGLETON_VALUE_BaseUrl.value(); @@ -280,13 +293,13 @@ public SourcePosthog build() { if (eventsTimeStep == null) { eventsTimeStep = _SINGLETON_VALUE_EventsTimeStep.value(); } + return new SourcePosthog( - apiKey, - baseUrl, - eventsTimeStep, + apiKey, baseUrl, eventsTimeStep, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_BaseUrl = new LazySingletonValue<>( "base_url", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePostmarkapp.java b/src/main/java/com/airbyte/api/models/shared/SourcePostmarkapp.java index 3deace45f..abafeecb2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePostmarkapp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePostmarkapp.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePostmarkapp { +public class SourcePostmarkapp { /** * API Key for account */ @@ -27,6 +26,7 @@ public class SourcePostmarkapp { @JsonProperty("X-Postmark-Server-Token") private String xPostmarkServerToken; + @JsonProperty("sourceType") private Postmarkapp sourceType; @@ -62,9 +62,10 @@ public Postmarkapp sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key for account @@ -84,7 +85,6 @@ public SourcePostmarkapp withXPostmarkServerToken(String xPostmarkServerToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourcePostmarkapp other = (SourcePostmarkapp) o; return - Objects.deepEquals(this.xPostmarkAccountToken, other.xPostmarkAccountToken) && - Objects.deepEquals(this.xPostmarkServerToken, other.xPostmarkServerToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.xPostmarkAccountToken, other.xPostmarkAccountToken) && + Utils.enhancedDeepEquals(this.xPostmarkServerToken, other.xPostmarkServerToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - xPostmarkAccountToken, - xPostmarkServerToken, - sourceType); + return Utils.enhancedHash( + xPostmarkAccountToken, xPostmarkServerToken, sourceType); } @Override @@ -115,17 +113,19 @@ public String toString() { "xPostmarkServerToken", xPostmarkServerToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String xPostmarkAccountToken; - + private String xPostmarkServerToken; - + private Builder() { // force use of static builder() method } + /** * API Key for account */ @@ -135,6 +135,7 @@ public Builder xPostmarkAccountToken(String xPostmarkAccountToken) { return this; } + /** * API Key for server */ @@ -143,13 +144,14 @@ public Builder xPostmarkServerToken(String xPostmarkServerToken) { this.xPostmarkServerToken = xPostmarkServerToken; return this; } - + public SourcePostmarkapp build() { + return new SourcePostmarkapp( - xPostmarkAccountToken, - xPostmarkServerToken); + xPostmarkAccountToken, xPostmarkServerToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePrestashop.java b/src/main/java/com/airbyte/api/models/shared/SourcePrestashop.java index d9937c46f..bdaf86adf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePrestashop.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePrestashop.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; -public class SourcePrestashop { +public class SourcePrestashop { /** - * Your PrestaShop access key. See <a href="https://devdocs.prestashop.com/1.7/webservice/tutorials/creating-access/#create-an-access-key"> the docs </a> for info on how to obtain this. + * Your PrestaShop access key. See + * the docs for info on how to obtain this. */ @JsonProperty("access_key") private String accessKey; + @JsonProperty("sourceType") private Prestashop sourceType; @@ -52,7 +54,9 @@ public SourcePrestashop( } /** - * Your PrestaShop access key. See <a href="https://devdocs.prestashop.com/1.7/webservice/tutorials/creating-access/#create-an-access-key"> the docs </a> for info on how to obtain this. + * Your PrestaShop access key. See + * the docs for info on how to obtain this. */ @JsonIgnore public String accessKey() { @@ -80,12 +84,15 @@ public String url() { return url; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your PrestaShop access key. See <a href="https://devdocs.prestashop.com/1.7/webservice/tutorials/creating-access/#create-an-access-key"> the docs </a> for info on how to obtain this. + * Your PrestaShop access key. See + * the docs for info on how to obtain this. */ public SourcePrestashop withAccessKey(String accessKey) { Utils.checkNotNull(accessKey, "accessKey"); @@ -111,7 +118,6 @@ public SourcePrestashop withUrl(String url) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,18 +128,16 @@ public boolean equals(java.lang.Object o) { } SourcePrestashop other = (SourcePrestashop) o; return - Objects.deepEquals(this.accessKey, other.accessKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.url, other.url); + Utils.enhancedDeepEquals(this.accessKey, other.accessKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.url, other.url); } @Override public int hashCode() { - return Objects.hash( - accessKey, - sourceType, - startDate, + return Utils.enhancedHash( + accessKey, sourceType, startDate, url); } @@ -145,21 +149,25 @@ public String toString() { "startDate", startDate, "url", url); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKey; - + private LocalDate startDate; - + private String url; - + private Builder() { // force use of static builder() method } + /** - * Your PrestaShop access key. See <a href="https://devdocs.prestashop.com/1.7/webservice/tutorials/creating-access/#create-an-access-key"> the docs </a> for info on how to obtain this. + * Your PrestaShop access key. See + * the docs for info on how to obtain this. */ public Builder accessKey(String accessKey) { Utils.checkNotNull(accessKey, "accessKey"); @@ -167,6 +175,7 @@ public Builder accessKey(String accessKey) { return this; } + /** * The Start date in the format YYYY-MM-DD. */ @@ -176,6 +185,7 @@ public Builder startDate(LocalDate startDate) { return this; } + /** * Shop URL without trailing slash. */ @@ -184,14 +194,14 @@ public Builder url(String url) { this.url = url; return this; } - + public SourcePrestashop build() { + return new SourcePrestashop( - accessKey, - startDate, - url); + accessKey, startDate, url); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePretix.java b/src/main/java/com/airbyte/api/models/shared/SourcePretix.java index 49773f081..7fadc6ff1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePretix.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePretix.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePretix { +public class SourcePretix { /** - * API token to use. Obtain it from the pretix web interface by creating a new token under your team settings. + * API token to use. Obtain it from the pretix web interface by creating a new token under your team + * settings. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Pretix sourceType; @@ -33,7 +34,8 @@ public SourcePretix( } /** - * API token to use. Obtain it from the pretix web interface by creating a new token under your team settings. + * API token to use. Obtain it from the pretix web interface by creating a new token under your team + * settings. */ @JsonIgnore public String apiToken() { @@ -45,12 +47,14 @@ public Pretix sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API token to use. Obtain it from the pretix web interface by creating a new token under your team settings. + * API token to use. Obtain it from the pretix web interface by creating a new token under your team + * settings. */ public SourcePretix withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -58,7 +62,6 @@ public SourcePretix withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourcePretix other = (SourcePretix) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** - * API token to use. Obtain it from the pretix web interface by creating a new token under your team settings. + * API token to use. Obtain it from the pretix web interface by creating a new token under your team + * settings. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); this.apiToken = apiToken; return this; } - + public SourcePretix build() { + return new SourcePretix( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePrimetric.java b/src/main/java/com/airbyte/api/models/shared/SourcePrimetric.java index 76d1e5d81..5cab665db 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePrimetric.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePrimetric.java @@ -11,22 +11,24 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePrimetric { +public class SourcePrimetric { /** - * The Client ID of your Primetric developer application. The Client ID is visible <a href=\"https://app.primetric.com/administrator/integrations">here</a>. + * The Client ID of your Primetric developer application. The Client ID is visible <a + * href=\"https://app.primetric.com/administrator/integrations">here</a>. */ @JsonProperty("client_id") private String clientId; /** - * The Client Secret of your Primetric developer application. You can manage your client's credentials <a href=\"https://app.primetric.com/administrator/integrations">here</a>. + * The Client Secret of your Primetric developer application. You can manage your client's credentials + * <a href=\"https://app.primetric.com/administrator/integrations">here</a>. */ @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private Primetric sourceType; @@ -42,7 +44,8 @@ public SourcePrimetric( } /** - * The Client ID of your Primetric developer application. The Client ID is visible <a href=\"https://app.primetric.com/administrator/integrations">here</a>. + * The Client ID of your Primetric developer application. The Client ID is visible <a + * href=\"https://app.primetric.com/administrator/integrations">here</a>. */ @JsonIgnore public String clientId() { @@ -50,7 +53,8 @@ public String clientId() { } /** - * The Client Secret of your Primetric developer application. You can manage your client's credentials <a href=\"https://app.primetric.com/administrator/integrations">here</a>. + * The Client Secret of your Primetric developer application. You can manage your client's credentials + * <a href=\"https://app.primetric.com/administrator/integrations">here</a>. */ @JsonIgnore public String clientSecret() { @@ -62,12 +66,14 @@ public Primetric sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The Client ID of your Primetric developer application. The Client ID is visible <a href=\"https://app.primetric.com/administrator/integrations">here</a>. + * The Client ID of your Primetric developer application. The Client ID is visible <a + * href=\"https://app.primetric.com/administrator/integrations">here</a>. */ public SourcePrimetric withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -76,7 +82,8 @@ public SourcePrimetric withClientId(String clientId) { } /** - * The Client Secret of your Primetric developer application. You can manage your client's credentials <a href=\"https://app.primetric.com/administrator/integrations">here</a>. + * The Client Secret of your Primetric developer application. You can manage your client's credentials + * <a href=\"https://app.primetric.com/administrator/integrations">here</a>. */ public SourcePrimetric withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -84,7 +91,6 @@ public SourcePrimetric withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +101,15 @@ public boolean equals(java.lang.Object o) { } SourcePrimetric other = (SourcePrimetric) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - sourceType); + return Utils.enhancedHash( + clientId, clientSecret, sourceType); } @Override @@ -115,19 +119,22 @@ public String toString() { "clientSecret", clientSecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + /** - * The Client ID of your Primetric developer application. The Client ID is visible <a href=\"https://app.primetric.com/administrator/integrations">here</a>. + * The Client ID of your Primetric developer application. The Client ID is visible <a + * href=\"https://app.primetric.com/administrator/integrations">here</a>. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -135,21 +142,24 @@ public Builder clientId(String clientId) { return this; } + /** - * The Client Secret of your Primetric developer application. You can manage your client's credentials <a href=\"https://app.primetric.com/administrator/integrations">here</a>. + * The Client Secret of your Primetric developer application. You can manage your client's credentials + * <a href=\"https://app.primetric.com/administrator/integrations">here</a>. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourcePrimetric build() { + return new SourcePrimetric( - clientId, - clientSecret); + clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePrintify.java b/src/main/java/com/airbyte/api/models/shared/SourcePrintify.java index 27d645d8d..49526e371 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePrintify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePrintify.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourcePrintify { +public class SourcePrintify { /** * Your Printify API token. Obtain it from your Printify account settings. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Printify sourceType; @@ -45,9 +45,10 @@ public Printify sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your Printify API token. Obtain it from your Printify account settings. @@ -58,7 +59,6 @@ public SourcePrintify withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourcePrintify other = (SourcePrintify) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * Your Printify API token. Obtain it from your Printify account settings. */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public SourcePrintify build() { + return new SourcePrintify( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceProductboard.java b/src/main/java/com/airbyte/api/models/shared/SourceProductboard.java index 3a9395bfa..2c1f69e60 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceProductboard.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceProductboard.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceProductboard { +public class SourceProductboard { /** - * Your Productboard access token. See https://developer.productboard.com/reference/authentication for steps to generate one. + * Your Productboard access token. See https://developer.productboard.com/reference/authentication for + * steps to generate one. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Productboard sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public SourceProductboard( } /** - * Your Productboard access token. See https://developer.productboard.com/reference/authentication for steps to generate one. + * Your Productboard access token. See https://developer.productboard.com/reference/authentication for + * steps to generate one. */ @JsonIgnore public String accessToken() { @@ -57,12 +60,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Productboard access token. See https://developer.productboard.com/reference/authentication for steps to generate one. + * Your Productboard access token. See https://developer.productboard.com/reference/authentication for + * steps to generate one. */ public SourceProductboard withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -76,7 +81,6 @@ public SourceProductboard withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceProductboard other = (SourceProductboard) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType, - startDate); + return Utils.enhancedHash( + accessToken, sourceType, startDate); } @Override @@ -107,19 +109,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your Productboard access token. See https://developer.productboard.com/reference/authentication for steps to generate one. + * Your Productboard access token. See https://developer.productboard.com/reference/authentication for + * steps to generate one. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -127,18 +132,20 @@ public Builder accessToken(String accessToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceProductboard build() { + return new SourceProductboard( - accessToken, - startDate); + accessToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceProductive.java b/src/main/java/com/airbyte/api/models/shared/SourceProductive.java index 618ed3983..e1dcdfff7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceProductive.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceProductive.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceProductive { @@ -19,11 +19,13 @@ public class SourceProductive { private String apiKey; /** - * The organization ID which could be seen from `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page + * The organization ID which could be seen from + * `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page */ @JsonProperty("organization_id") private String organizationId; + @JsonProperty("sourceType") private Productive sourceType; @@ -44,7 +46,8 @@ public String apiKey() { } /** - * The organization ID which could be seen from `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page + * The organization ID which could be seen from + * `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page */ @JsonIgnore public String organizationId() { @@ -56,9 +59,10 @@ public Productive sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceProductive withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +71,8 @@ public SourceProductive withApiKey(String apiKey) { } /** - * The organization ID which could be seen from `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page + * The organization ID which could be seen from + * `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page */ public SourceProductive withOrganizationId(String organizationId) { Utils.checkNotNull(organizationId, "organizationId"); @@ -75,7 +80,6 @@ public SourceProductive withOrganizationId(String organizationId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +90,15 @@ public boolean equals(java.lang.Object o) { } SourceProductive other = (SourceProductive) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.organizationId, other.organizationId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - organizationId, - sourceType); + return Utils.enhancedHash( + apiKey, organizationId, sourceType); } @Override @@ -106,38 +108,43 @@ public String toString() { "organizationId", organizationId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String organizationId; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** - * The organization ID which could be seen from `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page + * The organization ID which could be seen from + * `https://app.productive.io/xxxx-xxxx/settings/api-integrations` page */ public Builder organizationId(String organizationId) { Utils.checkNotNull(organizationId, "organizationId"); this.organizationId = organizationId; return this; } - + public SourceProductive build() { + return new SourceProductive( - apiKey, - organizationId); + apiKey, organizationId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePutRequest.java b/src/main/java/com/airbyte/api/models/shared/SourcePutRequest.java index 2cb0191ee..9d3ce3c14 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePutRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePutRequest.java @@ -12,22 +12,27 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourcePutRequest { +public class SourcePutRequest { /** * The values required to configure the source. */ @JsonProperty("configuration") private SourceConfiguration configuration; + @JsonProperty("name") private String name; /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("resourceAllocation") @@ -66,7 +71,12 @@ public String name() { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -74,9 +84,10 @@ public Optional resourceAllocation() { return (Optional) resourceAllocation; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The values required to configure the source. @@ -94,7 +105,12 @@ public SourcePutRequest withName(String name) { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public SourcePutRequest withResourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -102,8 +118,14 @@ public SourcePutRequest withResourceAllocation(ScopedResourceRequirements resour return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public SourcePutRequest withResourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -111,7 +133,6 @@ public SourcePutRequest withResourceAllocation(Optional resourceAllocation = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The values required to configure the source. */ @@ -164,14 +185,21 @@ public Builder configuration(SourceConfiguration configuration) { return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -180,19 +208,24 @@ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); this.resourceAllocation = resourceAllocation; return this; } - + public SourcePutRequest build() { + return new SourcePutRequest( - configuration, - name, - resourceAllocation); + configuration, name, resourceAllocation); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourcePypi.java b/src/main/java/com/airbyte/api/models/shared/SourcePypi.java index d603bdac3..c96ed7a6f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcePypi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcePypi.java @@ -13,22 +13,23 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourcePypi { +public class SourcePypi { /** - * Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip command for installing the package. + * Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip + * command for installing the package. */ @JsonProperty("project_name") private String projectName; + @JsonProperty("sourceType") private Pypi sourceType; /** - * Version of the project/package. Use it to find a particular release instead of all releases. + * Version of the project/package. Use it to find a particular release instead of all releases. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("version") @@ -51,7 +52,8 @@ public SourcePypi( } /** - * Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip command for installing the package. + * Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip + * command for installing the package. */ @JsonIgnore public String projectName() { @@ -64,19 +66,21 @@ public Pypi sourceType() { } /** - * Version of the project/package. Use it to find a particular release instead of all releases. + * Version of the project/package. Use it to find a particular release instead of all releases. */ @JsonIgnore public Optional version() { return version; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip command for installing the package. + * Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip + * command for installing the package. */ public SourcePypi withProjectName(String projectName) { Utils.checkNotNull(projectName, "projectName"); @@ -85,7 +89,7 @@ public SourcePypi withProjectName(String projectName) { } /** - * Version of the project/package. Use it to find a particular release instead of all releases. + * Version of the project/package. Use it to find a particular release instead of all releases. */ public SourcePypi withVersion(String version) { Utils.checkNotNull(version, "version"); @@ -93,8 +97,9 @@ public SourcePypi withVersion(String version) { return this; } + /** - * Version of the project/package. Use it to find a particular release instead of all releases. + * Version of the project/package. Use it to find a particular release instead of all releases. */ public SourcePypi withVersion(Optional version) { Utils.checkNotNull(version, "version"); @@ -102,7 +107,6 @@ public SourcePypi withVersion(Optional version) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,17 +117,15 @@ public boolean equals(java.lang.Object o) { } SourcePypi other = (SourcePypi) o; return - Objects.deepEquals(this.projectName, other.projectName) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.version, other.version); + Utils.enhancedDeepEquals(this.projectName, other.projectName) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.version, other.version); } @Override public int hashCode() { - return Objects.hash( - projectName, - sourceType, - version); + return Utils.enhancedHash( + projectName, sourceType, version); } @Override @@ -133,19 +135,22 @@ public String toString() { "sourceType", sourceType, "version", version); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String projectName; - + private Optional version = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip command for installing the package. + * Name of the project/package. Can only be in lowercase with hyphen. This is the name used using pip + * command for installing the package. */ public Builder projectName(String projectName) { Utils.checkNotNull(projectName, "projectName"); @@ -153,8 +158,9 @@ public Builder projectName(String projectName) { return this; } + /** - * Version of the project/package. Use it to find a particular release instead of all releases. + * Version of the project/package. Use it to find a particular release instead of all releases. */ public Builder version(String version) { Utils.checkNotNull(version, "version"); @@ -163,20 +169,21 @@ public Builder version(String version) { } /** - * Version of the project/package. Use it to find a particular release instead of all releases. + * Version of the project/package. Use it to find a particular release instead of all releases. */ public Builder version(Optional version) { Utils.checkNotNull(version, "version"); this.version = version; return this; } - + public SourcePypi build() { + return new SourcePypi( - projectName, - version); + projectName, version); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceQualaroo.java b/src/main/java/com/airbyte/api/models/shared/SourceQualaroo.java index 688524611..391521bcf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceQualaroo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceQualaroo.java @@ -15,35 +15,41 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceQualaroo { +public class SourceQualaroo { /** - * A Qualaroo token. See the <a href="https://help.qualaroo.com/hc/en-us/articles/201969438-The-REST-Reporting-API">docs</a> for instructions on how to generate it. + * A Qualaroo token. See the docs for + * instructions on how to generate it. */ @JsonProperty("key") private String key; + @JsonProperty("sourceType") private Qualaroo sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private String startDate; /** - * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to which you have access will be replicated. + * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to + * which you have access will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("survey_ids") private Optional> surveyIds; /** - * A Qualaroo token. See the <a href="https://help.qualaroo.com/hc/en-us/articles/201969438-The-REST-Reporting-API">docs</a> for instructions on how to generate it. + * A Qualaroo token. See the docs for + * instructions on how to generate it. */ @JsonProperty("token") private String token; @@ -69,11 +75,14 @@ public SourceQualaroo( String key, String startDate, String token) { - this(key, startDate, Optional.empty(), token); + this(key, startDate, Optional.empty(), + token); } /** - * A Qualaroo token. See the <a href="https://help.qualaroo.com/hc/en-us/articles/201969438-The-REST-Reporting-API">docs</a> for instructions on how to generate it. + * A Qualaroo token. See the docs for + * instructions on how to generate it. */ @JsonIgnore public String key() { @@ -86,7 +95,8 @@ public Qualaroo sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public String startDate() { @@ -94,7 +104,8 @@ public String startDate() { } /** - * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to which you have access will be replicated. + * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to + * which you have access will be replicated. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -103,19 +114,24 @@ public Optional> surveyIds() { } /** - * A Qualaroo token. See the <a href="https://help.qualaroo.com/hc/en-us/articles/201969438-The-REST-Reporting-API">docs</a> for instructions on how to generate it. + * A Qualaroo token. See the docs for + * instructions on how to generate it. */ @JsonIgnore public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * A Qualaroo token. See the <a href="https://help.qualaroo.com/hc/en-us/articles/201969438-The-REST-Reporting-API">docs</a> for instructions on how to generate it. + * A Qualaroo token. See the docs for + * instructions on how to generate it. */ public SourceQualaroo withKey(String key) { Utils.checkNotNull(key, "key"); @@ -124,7 +140,8 @@ public SourceQualaroo withKey(String key) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceQualaroo withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -133,7 +150,8 @@ public SourceQualaroo withStartDate(String startDate) { } /** - * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to which you have access will be replicated. + * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to + * which you have access will be replicated. */ public SourceQualaroo withSurveyIds(List surveyIds) { Utils.checkNotNull(surveyIds, "surveyIds"); @@ -141,8 +159,10 @@ public SourceQualaroo withSurveyIds(List surveyIds) { return this; } + /** - * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to which you have access will be replicated. + * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to + * which you have access will be replicated. */ public SourceQualaroo withSurveyIds(Optional> surveyIds) { Utils.checkNotNull(surveyIds, "surveyIds"); @@ -151,7 +171,9 @@ public SourceQualaroo withSurveyIds(Optional> surveyIds) } /** - * A Qualaroo token. See the <a href="https://help.qualaroo.com/hc/en-us/articles/201969438-The-REST-Reporting-API">docs</a> for instructions on how to generate it. + * A Qualaroo token. See the docs for + * instructions on how to generate it. */ public SourceQualaroo withToken(String token) { Utils.checkNotNull(token, "token"); @@ -159,7 +181,6 @@ public SourceQualaroo withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -170,21 +191,18 @@ public boolean equals(java.lang.Object o) { } SourceQualaroo other = (SourceQualaroo) o; return - Objects.deepEquals(this.key, other.key) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.surveyIds, other.surveyIds) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.key, other.key) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.surveyIds, other.surveyIds) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - key, - sourceType, - startDate, - surveyIds, - token); + return Utils.enhancedHash( + key, sourceType, startDate, + surveyIds, token); } @Override @@ -196,23 +214,27 @@ public String toString() { "surveyIds", surveyIds, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String key; - + private String startDate; - + private Optional> surveyIds = Optional.empty(); - + private String token; - + private Builder() { // force use of static builder() method } + /** - * A Qualaroo token. See the <a href="https://help.qualaroo.com/hc/en-us/articles/201969438-The-REST-Reporting-API">docs</a> for instructions on how to generate it. + * A Qualaroo token. See the docs for + * instructions on how to generate it. */ public Builder key(String key) { Utils.checkNotNull(key, "key"); @@ -220,8 +242,10 @@ public Builder key(String key) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -229,8 +253,10 @@ public Builder startDate(String startDate) { return this; } + /** - * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to which you have access will be replicated. + * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to + * which you have access will be replicated. */ public Builder surveyIds(List surveyIds) { Utils.checkNotNull(surveyIds, "surveyIds"); @@ -239,7 +265,8 @@ public Builder surveyIds(List surveyIds) { } /** - * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to which you have access will be replicated. + * IDs of the surveys from which you'd like to replicate data. If left empty, data from all surveys to + * which you have access will be replicated. */ public Builder surveyIds(Optional> surveyIds) { Utils.checkNotNull(surveyIds, "surveyIds"); @@ -247,23 +274,26 @@ public Builder surveyIds(Optional> surveyIds) { return this; } + /** - * A Qualaroo token. See the <a href="https://help.qualaroo.com/hc/en-us/articles/201969438-The-REST-Reporting-API">docs</a> for instructions on how to generate it. + * A Qualaroo token. See the docs for + * instructions on how to generate it. */ public Builder token(String token) { Utils.checkNotNull(token, "token"); this.token = token; return this; } - + public SourceQualaroo build() { + return new SourceQualaroo( - key, - startDate, - surveyIds, + key, startDate, surveyIds, token); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooks.java b/src/main/java/com/airbyte/api/models/shared/SourceQuickbooks.java index 35a0e1ca3..6f30613f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceQuickbooks.java @@ -16,35 +16,38 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceQuickbooks { +public class SourceQuickbooks { /** * Access token for making authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; /** - * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile + * via My Apps on the developer site. There are two versions of this key: development and production. */ @JsonProperty("client_id") private String clientId; /** - * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are + * two versions of this key: development and production. */ @JsonProperty("client_secret") private String clientSecret; /** - * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. + * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access + * token. */ @JsonProperty("realm_id") private String realmId; @@ -62,11 +65,13 @@ public class SourceQuickbooks { @JsonProperty("sandbox") private Optional sandbox; + @JsonProperty("sourceType") private Quickbooks sourceType; /** - * The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, 2021-03-20T00:00:00Z. Any data before this date will not be replicated. + * The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, + * 2021-03-20T00:00:00Z. Any data before this date will not be replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -115,7 +120,9 @@ public SourceQuickbooks( String refreshToken, OffsetDateTime startDate, OffsetDateTime tokenExpiryDate) { - this(accessToken, clientId, clientSecret, realmId, refreshToken, Optional.empty(), startDate, tokenExpiryDate); + this(accessToken, clientId, clientSecret, + realmId, refreshToken, Optional.empty(), + startDate, tokenExpiryDate); } /** @@ -133,7 +140,8 @@ public Optional authType() { } /** - * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile + * via My Apps on the developer site. There are two versions of this key: development and production. */ @JsonIgnore public String clientId() { @@ -141,7 +149,8 @@ public String clientId() { } /** - * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are + * two versions of this key: development and production. */ @JsonIgnore public String clientSecret() { @@ -149,7 +158,8 @@ public String clientSecret() { } /** - * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. + * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access + * token. */ @JsonIgnore public String realmId() { @@ -178,7 +188,8 @@ public Quickbooks sourceType() { } /** - * The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, 2021-03-20T00:00:00Z. Any data before this date will not be replicated. + * The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, + * 2021-03-20T00:00:00Z. Any data before this date will not be replicated. */ @JsonIgnore public OffsetDateTime startDate() { @@ -193,9 +204,10 @@ public OffsetDateTime tokenExpiryDate() { return tokenExpiryDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access token for making authenticated requests. @@ -207,7 +219,8 @@ public SourceQuickbooks withAccessToken(String accessToken) { } /** - * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile + * via My Apps on the developer site. There are two versions of this key: development and production. */ public SourceQuickbooks withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -216,7 +229,8 @@ public SourceQuickbooks withClientId(String clientId) { } /** - * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are + * two versions of this key: development and production. */ public SourceQuickbooks withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -225,7 +239,8 @@ public SourceQuickbooks withClientSecret(String clientSecret) { } /** - * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. + * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access + * token. */ public SourceQuickbooks withRealmId(String realmId) { Utils.checkNotNull(realmId, "realmId"); @@ -251,6 +266,7 @@ public SourceQuickbooks withSandbox(boolean sandbox) { return this; } + /** * Determines whether to use the sandbox or production environment. */ @@ -261,7 +277,8 @@ public SourceQuickbooks withSandbox(Optional sandbox) { } /** - * The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, 2021-03-20T00:00:00Z. Any data before this date will not be replicated. + * The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, + * 2021-03-20T00:00:00Z. Any data before this date will not be replicated. */ public SourceQuickbooks withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -278,7 +295,6 @@ public SourceQuickbooks withTokenExpiryDate(OffsetDateTime tokenExpiryDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -289,30 +305,24 @@ public boolean equals(java.lang.Object o) { } SourceQuickbooks other = (SourceQuickbooks) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.realmId, other.realmId) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sandbox, other.sandbox) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.tokenExpiryDate, other.tokenExpiryDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.realmId, other.realmId) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sandbox, other.sandbox) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.tokenExpiryDate, other.tokenExpiryDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - realmId, - refreshToken, - sandbox, - sourceType, - startDate, + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, realmId, refreshToken, + sandbox, sourceType, startDate, tokenExpiryDate); } @@ -330,29 +340,31 @@ public String toString() { "startDate", startDate, "tokenExpiryDate", tokenExpiryDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private String realmId; - + private String refreshToken; - + private Optional sandbox; - + private OffsetDateTime startDate; - + private OffsetDateTime tokenExpiryDate; - + private Builder() { // force use of static builder() method } + /** * Access token for making authenticated requests. */ @@ -362,8 +374,10 @@ public Builder accessToken(String accessToken) { return this; } + /** - * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + * Identifies which app is making the request. Obtain this value from the Keys tab on the app profile + * via My Apps on the developer site. There are two versions of this key: development and production. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -371,8 +385,10 @@ public Builder clientId(String clientId) { return this; } + /** - * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are two versions of this key: development and production. + * Obtain this value from the Keys tab on the app profile via My Apps on the developer site. There are + * two versions of this key: development and production. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -380,8 +396,10 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access token. + * Labeled Company ID. The Make API Calls panel is populated with the realm id and the current access + * token. */ public Builder realmId(String realmId) { Utils.checkNotNull(realmId, "realmId"); @@ -389,6 +407,7 @@ public Builder realmId(String realmId) { return this; } + /** * A token used when refreshing the access token. */ @@ -398,6 +417,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * Determines whether to use the sandbox or production environment. */ @@ -416,8 +436,10 @@ public Builder sandbox(Optional sandbox) { return this; } + /** - * The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, 2021-03-20T00:00:00Z. Any data before this date will not be replicated. + * The default value to use if no bookmark exists for an endpoint (rfc3339 date string). E.g, + * 2021-03-20T00:00:00Z. Any data before this date will not be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -425,6 +447,7 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** * The date-time when the access token should be refreshed. */ @@ -433,22 +456,19 @@ public Builder tokenExpiryDate(OffsetDateTime tokenExpiryDate) { this.tokenExpiryDate = tokenExpiryDate; return this; } - + public SourceQuickbooks build() { if (sandbox == null) { sandbox = _SINGLETON_VALUE_Sandbox.value(); } + return new SourceQuickbooks( - accessToken, - clientId, - clientSecret, - realmId, - refreshToken, - sandbox, - startDate, - tokenExpiryDate); + accessToken, clientId, clientSecret, + realmId, refreshToken, sandbox, + startDate, tokenExpiryDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java index 615b1ec39..5a3c96a8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceQuickbooksAuthType.java @@ -14,7 +14,7 @@ public enum SourceQuickbooksAuthType { @JsonValue private final String value; - private SourceQuickbooksAuthType(String value) { + SourceQuickbooksAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRailz.java b/src/main/java/com/airbyte/api/models/shared/SourceRailz.java index 11f97dd15..f114ffe3f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRailz.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRailz.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceRailz { +public class SourceRailz { /** * Client ID (client_id) */ @@ -27,6 +26,7 @@ public class SourceRailz { @JsonProperty("secret_key") private String secretKey; + @JsonProperty("sourceType") private Railz sourceType; @@ -79,9 +79,10 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID (client_id) @@ -110,7 +111,6 @@ public SourceRailz withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +121,16 @@ public boolean equals(java.lang.Object o) { } SourceRailz other = (SourceRailz) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.secretKey, other.secretKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.secretKey, other.secretKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - secretKey, - sourceType, + return Utils.enhancedHash( + clientId, secretKey, sourceType, startDate); } @@ -144,19 +142,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String secretKey; - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * Client ID (client_id) */ @@ -166,6 +166,7 @@ public Builder clientId(String clientId) { return this; } + /** * Secret key (secret_key) */ @@ -175,6 +176,7 @@ public Builder secretKey(String secretKey) { return this; } + /** * Start date */ @@ -183,14 +185,14 @@ public Builder startDate(String startDate) { this.startDate = startDate; return this; } - + public SourceRailz build() { + return new SourceRailz( - clientId, - secretKey, - startDate); + clientId, secretKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketing.java index b9003a19e..7c58a710b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketing.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceRdStationMarketing { +public class SourceRdStationMarketing { /** * Choose one of the possible authorization method */ @@ -26,11 +25,13 @@ public class SourceRdStationMarketing { @JsonProperty("authorization") private Optional authorization; + @JsonProperty("sourceType") private SourceRdStationMarketingRdStationMarketing sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. When specified and not None, then stream will behave as incremental */ @JsonProperty("start_date") private String startDate; @@ -66,16 +67,18 @@ public SourceRdStationMarketingRdStationMarketing sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. When specified and not None, then stream will behave as incremental + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. When specified and not None, then stream will behave as incremental */ @JsonIgnore public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Choose one of the possible authorization method @@ -86,6 +89,7 @@ public SourceRdStationMarketing withAuthorization(SourceRdStationMarketingAuthen return this; } + /** * Choose one of the possible authorization method */ @@ -96,7 +100,8 @@ public SourceRdStationMarketing withAuthorization(Optional authorization = Optional.empty(); - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * Choose one of the possible authorization method */ @@ -164,21 +168,24 @@ public Builder authorization(Optional _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java index 37441217d..296517423 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthType.java @@ -14,7 +14,7 @@ public enum SourceRdStationMarketingAuthType { @JsonValue private final String value; - private SourceRdStationMarketingAuthType(String value) { + SourceRdStationMarketingAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthenticationType.java b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthenticationType.java index 6c0e7b188..11fad9b8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthenticationType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingAuthenticationType.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceRdStationMarketingAuthenticationType @@ -66,12 +65,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceRdStationMarketingAuthenticationType other = (SourceRdStationMarketingAuthenticationType) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java index 1061734e4..fefabba95 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRdStationMarketingRdStationMarketing.java @@ -14,7 +14,7 @@ public enum SourceRdStationMarketingRdStationMarketing { @JsonValue private final String value; - private SourceRdStationMarketingRdStationMarketing(String value) { + SourceRdStationMarketingRdStationMarketing(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRecharge.java b/src/main/java/com/airbyte/api/models/shared/SourceRecharge.java index 5a95066b8..4829dd49a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRecharge.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRecharge.java @@ -12,31 +12,42 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Boolean; +import java.lang.Long; import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceRecharge { +public class SourceRecharge { /** - * The value of the Access Token generated. See the <a href="https://docs.airbyte.com/integrations/sources/recharge">docs</a> for more information. + * The value of the Access Token generated. See the docs for more information. */ @JsonProperty("access_token") private String accessToken; + /** + * Specifies how many days of historical data should be reloaded each time the recharge connector runs. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("lookback_window_days") + private Optional lookbackWindowDays; + + @JsonProperty("sourceType") private Recharge sourceType; /** - * The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated. + * The date from which you'd like to replicate data for Recharge API, in the format + * YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; /** - * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use `2021-11`, otherwise. + * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use + * `2021-11`, otherwise. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("use_orders_deprecated_api") @@ -45,12 +56,15 @@ public class SourceRecharge { @JsonCreator public SourceRecharge( @JsonProperty("access_token") String accessToken, + @JsonProperty("lookback_window_days") Optional lookbackWindowDays, @JsonProperty("start_date") OffsetDateTime startDate, @JsonProperty("use_orders_deprecated_api") Optional useOrdersDeprecatedApi) { Utils.checkNotNull(accessToken, "accessToken"); + Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); Utils.checkNotNull(startDate, "startDate"); Utils.checkNotNull(useOrdersDeprecatedApi, "useOrdersDeprecatedApi"); this.accessToken = accessToken; + this.lookbackWindowDays = lookbackWindowDays; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; this.useOrdersDeprecatedApi = useOrdersDeprecatedApi; @@ -59,24 +73,35 @@ public SourceRecharge( public SourceRecharge( String accessToken, OffsetDateTime startDate) { - this(accessToken, startDate, Optional.empty()); + this(accessToken, Optional.empty(), startDate, + Optional.empty()); } /** - * The value of the Access Token generated. See the <a href="https://docs.airbyte.com/integrations/sources/recharge">docs</a> for more information. + * The value of the Access Token generated. See the docs for more information. */ @JsonIgnore public String accessToken() { return accessToken; } + /** + * Specifies how many days of historical data should be reloaded each time the recharge connector runs. + */ + @JsonIgnore + public Optional lookbackWindowDays() { + return lookbackWindowDays; + } + @JsonIgnore public Recharge sourceType() { return sourceType; } /** - * The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated. + * The date from which you'd like to replicate data for Recharge API, in the format + * YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated. */ @JsonIgnore public OffsetDateTime startDate() { @@ -84,19 +109,22 @@ public OffsetDateTime startDate() { } /** - * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use `2021-11`, otherwise. + * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use + * `2021-11`, otherwise. */ @JsonIgnore public Optional useOrdersDeprecatedApi() { return useOrdersDeprecatedApi; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The value of the Access Token generated. See the <a href="https://docs.airbyte.com/integrations/sources/recharge">docs</a> for more information. + * The value of the Access Token generated. See the docs for more information. */ public SourceRecharge withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -105,7 +133,27 @@ public SourceRecharge withAccessToken(String accessToken) { } /** - * The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated. + * Specifies how many days of historical data should be reloaded each time the recharge connector runs. + */ + public SourceRecharge withLookbackWindowDays(long lookbackWindowDays) { + Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); + this.lookbackWindowDays = Optional.ofNullable(lookbackWindowDays); + return this; + } + + + /** + * Specifies how many days of historical data should be reloaded each time the recharge connector runs. + */ + public SourceRecharge withLookbackWindowDays(Optional lookbackWindowDays) { + Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); + this.lookbackWindowDays = lookbackWindowDays; + return this; + } + + /** + * The date from which you'd like to replicate data for Recharge API, in the format + * YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated. */ public SourceRecharge withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -114,7 +162,8 @@ public SourceRecharge withStartDate(OffsetDateTime startDate) { } /** - * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use `2021-11`, otherwise. + * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use + * `2021-11`, otherwise. */ public SourceRecharge withUseOrdersDeprecatedApi(boolean useOrdersDeprecatedApi) { Utils.checkNotNull(useOrdersDeprecatedApi, "useOrdersDeprecatedApi"); @@ -122,8 +171,10 @@ public SourceRecharge withUseOrdersDeprecatedApi(boolean useOrdersDeprecatedApi) return this; } + /** - * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use `2021-11`, otherwise. + * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use + * `2021-11`, otherwise. */ public SourceRecharge withUseOrdersDeprecatedApi(Optional useOrdersDeprecatedApi) { Utils.checkNotNull(useOrdersDeprecatedApi, "useOrdersDeprecatedApi"); @@ -131,7 +182,6 @@ public SourceRecharge withUseOrdersDeprecatedApi(Optional useOrdersDepr return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -142,44 +192,49 @@ public boolean equals(java.lang.Object o) { } SourceRecharge other = (SourceRecharge) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.useOrdersDeprecatedApi, other.useOrdersDeprecatedApi); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.lookbackWindowDays, other.lookbackWindowDays) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.useOrdersDeprecatedApi, other.useOrdersDeprecatedApi); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType, - startDate, - useOrdersDeprecatedApi); + return Utils.enhancedHash( + accessToken, lookbackWindowDays, sourceType, + startDate, useOrdersDeprecatedApi); } @Override public String toString() { return Utils.toString(SourceRecharge.class, "accessToken", accessToken, + "lookbackWindowDays", lookbackWindowDays, "sourceType", sourceType, "startDate", startDate, "useOrdersDeprecatedApi", useOrdersDeprecatedApi); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + + private Optional lookbackWindowDays; + private OffsetDateTime startDate; - + private Optional useOrdersDeprecatedApi; - + private Builder() { // force use of static builder() method } + /** - * The value of the Access Token generated. See the <a href="https://docs.airbyte.com/integrations/sources/recharge">docs</a> for more information. + * The value of the Access Token generated. See the docs for more information. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -187,8 +242,29 @@ public Builder accessToken(String accessToken) { return this; } + + /** + * Specifies how many days of historical data should be reloaded each time the recharge connector runs. + */ + public Builder lookbackWindowDays(long lookbackWindowDays) { + Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); + this.lookbackWindowDays = Optional.ofNullable(lookbackWindowDays); + return this; + } + /** - * The date from which you'd like to replicate data for Recharge API, in the format YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated. + * Specifies how many days of historical data should be reloaded each time the recharge connector runs. + */ + public Builder lookbackWindowDays(Optional lookbackWindowDays) { + Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); + this.lookbackWindowDays = lookbackWindowDays; + return this; + } + + + /** + * The date from which you'd like to replicate data for Recharge API, in the format + * YYYY-MM-DDT00:00:00Z. Any data before this date will not be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -196,8 +272,10 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** - * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use `2021-11`, otherwise. + * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use + * `2021-11`, otherwise. */ public Builder useOrdersDeprecatedApi(boolean useOrdersDeprecatedApi) { Utils.checkNotNull(useOrdersDeprecatedApi, "useOrdersDeprecatedApi"); @@ -206,24 +284,35 @@ public Builder useOrdersDeprecatedApi(boolean useOrdersDeprecatedApi) { } /** - * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use `2021-11`, otherwise. + * Define whether or not the `Orders` stream should use the deprecated `2021-01` API version, or use + * `2021-11`, otherwise. */ public Builder useOrdersDeprecatedApi(Optional useOrdersDeprecatedApi) { Utils.checkNotNull(useOrdersDeprecatedApi, "useOrdersDeprecatedApi"); this.useOrdersDeprecatedApi = useOrdersDeprecatedApi; return this; } - + public SourceRecharge build() { + if (lookbackWindowDays == null) { + lookbackWindowDays = _SINGLETON_VALUE_LookbackWindowDays.value(); + } if (useOrdersDeprecatedApi == null) { useOrdersDeprecatedApi = _SINGLETON_VALUE_UseOrdersDeprecatedApi.value(); } + return new SourceRecharge( - accessToken, - startDate, + accessToken, lookbackWindowDays, startDate, useOrdersDeprecatedApi); } + + private static final LazySingletonValue> _SINGLETON_VALUE_LookbackWindowDays = + new LazySingletonValue<>( + "lookback_window_days", + "0", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRecreation.java b/src/main/java/com/airbyte/api/models/shared/SourceRecreation.java index fe8bb1a03..6e6fef98a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRecreation.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRecreation.java @@ -13,21 +13,22 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceRecreation { +public class SourceRecreation { /** * API Key */ @JsonProperty("apikey") private String apikey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("query_campsites") private Optional queryCampsites; + @JsonProperty("sourceType") private Recreation sourceType; @@ -65,9 +66,10 @@ public Recreation sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -84,13 +86,13 @@ public SourceRecreation withQueryCampsites(String queryCampsites) { return this; } + public SourceRecreation withQueryCampsites(Optional queryCampsites) { Utils.checkNotNull(queryCampsites, "queryCampsites"); this.queryCampsites = queryCampsites; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,17 +103,15 @@ public boolean equals(java.lang.Object o) { } SourceRecreation other = (SourceRecreation) o; return - Objects.deepEquals(this.apikey, other.apikey) && - Objects.deepEquals(this.queryCampsites, other.queryCampsites) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apikey, other.apikey) && + Utils.enhancedDeepEquals(this.queryCampsites, other.queryCampsites) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apikey, - queryCampsites, - sourceType); + return Utils.enhancedHash( + apikey, queryCampsites, sourceType); } @Override @@ -121,17 +121,19 @@ public String toString() { "queryCampsites", queryCampsites, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apikey; - + private Optional queryCampsites = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -141,6 +143,7 @@ public Builder apikey(String apikey) { return this; } + public Builder queryCampsites(String queryCampsites) { Utils.checkNotNull(queryCampsites, "queryCampsites"); this.queryCampsites = Optional.ofNullable(queryCampsites); @@ -152,13 +155,14 @@ public Builder queryCampsites(Optional queryCampsites) { this.queryCampsites = queryCampsites; return this; } - + public SourceRecreation build() { + return new SourceRecreation( - apikey, - queryCampsites); + apikey, queryCampsites); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRecruitee.java b/src/main/java/com/airbyte/api/models/shared/SourceRecruitee.java index b20431b60..fa575571e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRecruitee.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRecruitee.java @@ -12,22 +12,24 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceRecruitee { +public class SourceRecruitee { /** - * Recruitee API Key. See <a href="https://docs.recruitee.com/reference/getting-started#generate-api-token">here</a>. + * Recruitee API Key. See here. */ @JsonProperty("api_key") private String apiKey; /** - * Recruitee Company ID. You can also find this ID on the <a href="https://app.recruitee.com/#/settings/api_tokens">Recruitee API tokens page</a>. + * Recruitee Company ID. You can also find this ID on the Recruitee API tokens page. */ @JsonProperty("company_id") private long companyId; + @JsonProperty("sourceType") private Recruitee sourceType; @@ -43,7 +45,8 @@ public SourceRecruitee( } /** - * Recruitee API Key. See <a href="https://docs.recruitee.com/reference/getting-started#generate-api-token">here</a>. + * Recruitee API Key. See here. */ @JsonIgnore public String apiKey() { @@ -51,7 +54,8 @@ public String apiKey() { } /** - * Recruitee Company ID. You can also find this ID on the <a href="https://app.recruitee.com/#/settings/api_tokens">Recruitee API tokens page</a>. + * Recruitee Company ID. You can also find this ID on the Recruitee API tokens page. */ @JsonIgnore public long companyId() { @@ -63,12 +67,14 @@ public Recruitee sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Recruitee API Key. See <a href="https://docs.recruitee.com/reference/getting-started#generate-api-token">here</a>. + * Recruitee API Key. See here. */ public SourceRecruitee withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -77,7 +83,8 @@ public SourceRecruitee withApiKey(String apiKey) { } /** - * Recruitee Company ID. You can also find this ID on the <a href="https://app.recruitee.com/#/settings/api_tokens">Recruitee API tokens page</a>. + * Recruitee Company ID. You can also find this ID on the Recruitee API tokens page. */ public SourceRecruitee withCompanyId(long companyId) { Utils.checkNotNull(companyId, "companyId"); @@ -85,7 +92,6 @@ public SourceRecruitee withCompanyId(long companyId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -96,17 +102,15 @@ public boolean equals(java.lang.Object o) { } SourceRecruitee other = (SourceRecruitee) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.companyId, other.companyId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.companyId, other.companyId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - companyId, - sourceType); + return Utils.enhancedHash( + apiKey, companyId, sourceType); } @Override @@ -116,19 +120,22 @@ public String toString() { "companyId", companyId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Long companyId; - + private Builder() { // force use of static builder() method } + /** - * Recruitee API Key. See <a href="https://docs.recruitee.com/reference/getting-started#generate-api-token">here</a>. + * Recruitee API Key. See here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -136,21 +143,24 @@ public Builder apiKey(String apiKey) { return this; } + /** - * Recruitee Company ID. You can also find this ID on the <a href="https://app.recruitee.com/#/settings/api_tokens">Recruitee API tokens page</a>. + * Recruitee Company ID. You can also find this ID on the Recruitee API tokens page. */ public Builder companyId(long companyId) { Utils.checkNotNull(companyId, "companyId"); this.companyId = companyId; return this; } - + public SourceRecruitee build() { + return new SourceRecruitee( - apiKey, - companyId); + apiKey, companyId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRecurly.java b/src/main/java/com/airbyte/api/models/shared/SourceRecurly.java index e2cb98402..e455c9ddf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRecurly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRecurly.java @@ -11,15 +11,25 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceRecurly { + /** + * Days in length for each API call to get data from the accounts stream. Smaller values will result in + * more API calls but better concurrency. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("accounts_step_days") + private Optional accountsStepDays; /** - * Recurly API Key. See the <a href="https://docs.airbyte.com/integrations/sources/recurly">docs</a> for more information on how to generate this key. + * Recurly API Key. See the docs + * for more information on how to generate this key. */ @JsonProperty("api_key") private String apiKey; @@ -32,36 +42,73 @@ public class SourceRecurly { private Optional beginTime; /** - * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported. + * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't + * be imported. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_time") private Optional endTime; + /** + * Set to true for sandbox accounts (400 requests/min, all types). Defaults to false for production + * accounts (1,000 GET requests/min). + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("is_sandbox") + private Optional isSandbox; + + /** + * The number of worker threads to use for the sync. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("num_workers") + private Optional numWorkers; + + @JsonProperty("sourceType") private Recurly sourceType; @JsonCreator public SourceRecurly( + @JsonProperty("accounts_step_days") Optional accountsStepDays, @JsonProperty("api_key") String apiKey, @JsonProperty("begin_time") Optional beginTime, - @JsonProperty("end_time") Optional endTime) { + @JsonProperty("end_time") Optional endTime, + @JsonProperty("is_sandbox") Optional isSandbox, + @JsonProperty("num_workers") Optional numWorkers) { + Utils.checkNotNull(accountsStepDays, "accountsStepDays"); Utils.checkNotNull(apiKey, "apiKey"); Utils.checkNotNull(beginTime, "beginTime"); Utils.checkNotNull(endTime, "endTime"); + Utils.checkNotNull(isSandbox, "isSandbox"); + Utils.checkNotNull(numWorkers, "numWorkers"); + this.accountsStepDays = accountsStepDays; this.apiKey = apiKey; this.beginTime = beginTime; this.endTime = endTime; + this.isSandbox = isSandbox; + this.numWorkers = numWorkers; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); } public SourceRecurly( String apiKey) { - this(apiKey, Optional.empty(), Optional.empty()); + this(Optional.empty(), apiKey, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); + } + + /** + * Days in length for each API call to get data from the accounts stream. Smaller values will result in + * more API calls but better concurrency. + */ + @JsonIgnore + public Optional accountsStepDays() { + return accountsStepDays; } /** - * Recurly API Key. See the <a href="https://docs.airbyte.com/integrations/sources/recurly">docs</a> for more information on how to generate this key. + * Recurly API Key. See the docs + * for more information on how to generate this key. */ @JsonIgnore public String apiKey() { @@ -77,24 +124,65 @@ public Optional beginTime() { } /** - * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported. + * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't + * be imported. */ @JsonIgnore public Optional endTime() { return endTime; } + /** + * Set to true for sandbox accounts (400 requests/min, all types). Defaults to false for production + * accounts (1,000 GET requests/min). + */ + @JsonIgnore + public Optional isSandbox() { + return isSandbox; + } + + /** + * The number of worker threads to use for the sync. + */ + @JsonIgnore + public Optional numWorkers() { + return numWorkers; + } + @JsonIgnore public Recurly sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Recurly API Key. See the <a href="https://docs.airbyte.com/integrations/sources/recurly">docs</a> for more information on how to generate this key. + * Days in length for each API call to get data from the accounts stream. Smaller values will result in + * more API calls but better concurrency. + */ + public SourceRecurly withAccountsStepDays(long accountsStepDays) { + Utils.checkNotNull(accountsStepDays, "accountsStepDays"); + this.accountsStepDays = Optional.ofNullable(accountsStepDays); + return this; + } + + + /** + * Days in length for each API call to get data from the accounts stream. Smaller values will result in + * more API calls but better concurrency. + */ + public SourceRecurly withAccountsStepDays(Optional accountsStepDays) { + Utils.checkNotNull(accountsStepDays, "accountsStepDays"); + this.accountsStepDays = accountsStepDays; + return this; + } + + /** + * Recurly API Key. See the docs + * for more information on how to generate this key. */ public SourceRecurly withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -111,6 +199,7 @@ public SourceRecurly withBeginTime(String beginTime) { return this; } + /** * ISO8601 timestamp from which the replication from Recurly API will start from. */ @@ -121,7 +210,8 @@ public SourceRecurly withBeginTime(Optional beginTime) { } /** - * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported. + * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't + * be imported. */ public SourceRecurly withEndTime(String endTime) { Utils.checkNotNull(endTime, "endTime"); @@ -129,8 +219,10 @@ public SourceRecurly withEndTime(String endTime) { return this; } + /** - * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported. + * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't + * be imported. */ public SourceRecurly withEndTime(Optional endTime) { Utils.checkNotNull(endTime, "endTime"); @@ -138,7 +230,46 @@ public SourceRecurly withEndTime(Optional endTime) { return this; } - + /** + * Set to true for sandbox accounts (400 requests/min, all types). Defaults to false for production + * accounts (1,000 GET requests/min). + */ + public SourceRecurly withIsSandbox(boolean isSandbox) { + Utils.checkNotNull(isSandbox, "isSandbox"); + this.isSandbox = Optional.ofNullable(isSandbox); + return this; + } + + + /** + * Set to true for sandbox accounts (400 requests/min, all types). Defaults to false for production + * accounts (1,000 GET requests/min). + */ + public SourceRecurly withIsSandbox(Optional isSandbox) { + Utils.checkNotNull(isSandbox, "isSandbox"); + this.isSandbox = isSandbox; + return this; + } + + /** + * The number of worker threads to use for the sync. + */ + public SourceRecurly withNumWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + + /** + * The number of worker threads to use for the sync. + */ + public SourceRecurly withNumWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,44 +280,79 @@ public boolean equals(java.lang.Object o) { } SourceRecurly other = (SourceRecurly) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.beginTime, other.beginTime) && - Objects.deepEquals(this.endTime, other.endTime) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountsStepDays, other.accountsStepDays) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.beginTime, other.beginTime) && + Utils.enhancedDeepEquals(this.endTime, other.endTime) && + Utils.enhancedDeepEquals(this.isSandbox, other.isSandbox) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - beginTime, - endTime, + return Utils.enhancedHash( + accountsStepDays, apiKey, beginTime, + endTime, isSandbox, numWorkers, sourceType); } @Override public String toString() { return Utils.toString(SourceRecurly.class, + "accountsStepDays", accountsStepDays, "apiKey", apiKey, "beginTime", beginTime, "endTime", endTime, + "isSandbox", isSandbox, + "numWorkers", numWorkers, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Optional accountsStepDays; + private String apiKey; - + private Optional beginTime = Optional.empty(); - + private Optional endTime = Optional.empty(); - + + private Optional isSandbox; + + private Optional numWorkers; + private Builder() { // force use of static builder() method } + + /** + * Days in length for each API call to get data from the accounts stream. Smaller values will result in + * more API calls but better concurrency. + */ + public Builder accountsStepDays(long accountsStepDays) { + Utils.checkNotNull(accountsStepDays, "accountsStepDays"); + this.accountsStepDays = Optional.ofNullable(accountsStepDays); + return this; + } + /** - * Recurly API Key. See the <a href="https://docs.airbyte.com/integrations/sources/recurly">docs</a> for more information on how to generate this key. + * Days in length for each API call to get data from the accounts stream. Smaller values will result in + * more API calls but better concurrency. + */ + public Builder accountsStepDays(Optional accountsStepDays) { + Utils.checkNotNull(accountsStepDays, "accountsStepDays"); + this.accountsStepDays = accountsStepDays; + return this; + } + + + /** + * Recurly API Key. See the docs + * for more information on how to generate this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -194,6 +360,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * ISO8601 timestamp from which the replication from Recurly API will start from. */ @@ -212,8 +379,10 @@ public Builder beginTime(Optional beginTime) { return this; } + /** - * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported. + * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't + * be imported. */ public Builder endTime(String endTime) { Utils.checkNotNull(endTime, "endTime"); @@ -222,21 +391,90 @@ public Builder endTime(String endTime) { } /** - * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't be imported. + * ISO8601 timestamp to which the replication from Recurly API will stop. Records after that date won't + * be imported. */ public Builder endTime(Optional endTime) { Utils.checkNotNull(endTime, "endTime"); this.endTime = endTime; return this; } - + + + /** + * Set to true for sandbox accounts (400 requests/min, all types). Defaults to false for production + * accounts (1,000 GET requests/min). + */ + public Builder isSandbox(boolean isSandbox) { + Utils.checkNotNull(isSandbox, "isSandbox"); + this.isSandbox = Optional.ofNullable(isSandbox); + return this; + } + + /** + * Set to true for sandbox accounts (400 requests/min, all types). Defaults to false for production + * accounts (1,000 GET requests/min). + */ + public Builder isSandbox(Optional isSandbox) { + Utils.checkNotNull(isSandbox, "isSandbox"); + this.isSandbox = isSandbox; + return this; + } + + + /** + * The number of worker threads to use for the sync. + */ + public Builder numWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + /** + * The number of worker threads to use for the sync. + */ + public Builder numWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + public SourceRecurly build() { + if (accountsStepDays == null) { + accountsStepDays = _SINGLETON_VALUE_AccountsStepDays.value(); + } + if (isSandbox == null) { + isSandbox = _SINGLETON_VALUE_IsSandbox.value(); + } + if (numWorkers == null) { + numWorkers = _SINGLETON_VALUE_NumWorkers.value(); + } + return new SourceRecurly( - apiKey, - beginTime, - endTime); + accountsStepDays, apiKey, beginTime, + endTime, isSandbox, numWorkers); } + + private static final LazySingletonValue> _SINGLETON_VALUE_AccountsStepDays = + new LazySingletonValue<>( + "accounts_step_days", + "30", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_IsSandbox = + new LazySingletonValue<>( + "is_sandbox", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = + new LazySingletonValue<>( + "num_workers", + "10", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceReddit.java b/src/main/java/com/airbyte/api/models/shared/SourceReddit.java index 96553046d..dd9e93fee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceReddit.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceReddit.java @@ -19,9 +19,9 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceReddit { @JsonProperty("api_key") @@ -55,9 +55,11 @@ public class SourceReddit { @JsonProperty("query") private Optional query; + @JsonProperty("sourceType") private Reddit sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -97,7 +99,9 @@ public SourceReddit( public SourceReddit( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate, Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), startDate, + Optional.empty()); } @JsonIgnore @@ -156,9 +160,10 @@ public Optional> subreddits() { return (Optional>) subreddits; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceReddit withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -175,6 +180,7 @@ public SourceReddit withExact(boolean exact) { return this; } + /** * Specifies exact keyword and reduces distractions */ @@ -193,6 +199,7 @@ public SourceReddit withIncludeOver18(boolean includeOver18) { return this; } + /** * Includes mature content */ @@ -211,6 +218,7 @@ public SourceReddit withLimit(double limit) { return this; } + /** * Max records per page limit */ @@ -229,6 +237,7 @@ public SourceReddit withQuery(String query) { return this; } + /** * Specifies the query for searching in reddits and subreddits */ @@ -253,6 +262,7 @@ public SourceReddit withSubreddits(List subreddits) { return this; } + /** * Subreddits for exploration */ @@ -262,7 +272,6 @@ public SourceReddit withSubreddits(Optional> subreddits) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -273,27 +282,22 @@ public boolean equals(java.lang.Object o) { } SourceReddit other = (SourceReddit) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.exact, other.exact) && - Objects.deepEquals(this.includeOver18, other.includeOver18) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.subreddits, other.subreddits); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.exact, other.exact) && + Utils.enhancedDeepEquals(this.includeOver18, other.includeOver18) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.subreddits, other.subreddits); } @Override public int hashCode() { - return Objects.hash( - apiKey, - exact, - includeOver18, - limit, - query, - sourceType, - startDate, - subreddits); + return Utils.enhancedHash( + apiKey, exact, includeOver18, + limit, query, sourceType, + startDate, subreddits); } @Override @@ -308,33 +312,36 @@ public String toString() { "startDate", startDate, "subreddits", subreddits); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional exact = Optional.empty(); - + private Optional includeOver18; - + private Optional limit; - + private Optional query; - + private OffsetDateTime startDate; - + private Optional> subreddits = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Specifies exact keyword and reduces distractions */ @@ -353,6 +360,7 @@ public Builder exact(Optional exact) { return this; } + /** * Includes mature content */ @@ -371,6 +379,7 @@ public Builder includeOver18(Optional includeOver18) { return this; } + /** * Max records per page limit */ @@ -389,6 +398,7 @@ public Builder limit(Optional limit) { return this; } + /** * Specifies the query for searching in reddits and subreddits */ @@ -407,12 +417,14 @@ public Builder query(Optional query) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * Subreddits for exploration */ @@ -430,7 +442,7 @@ public Builder subreddits(Optional> subreddits) { this.subreddits = subreddits; return this; } - + public SourceReddit build() { if (includeOver18 == null) { includeOver18 = _SINGLETON_VALUE_IncludeOver18.value(); @@ -441,16 +453,14 @@ public SourceReddit build() { if (query == null) { query = _SINGLETON_VALUE_Query.value(); } + return new SourceReddit( - apiKey, - exact, - includeOver18, - limit, - query, - startDate, + apiKey, exact, includeOver18, + limit, query, startDate, subreddits); } + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeOver18 = new LazySingletonValue<>( "include_over_18", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRedshift.java b/src/main/java/com/airbyte/api/models/shared/SourceRedshift.java index 80ca00386..cdaebe360 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRedshift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRedshift.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceRedshift { +public class SourceRedshift { /** * Name of the database. */ @@ -28,13 +27,16 @@ public class SourceRedshift { private String database; /** - * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com). + * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with + * .redshift.amazonaws.com). */ @JsonProperty("host") private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -54,12 +56,14 @@ public class SourceRedshift { private Optional port; /** - * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive. + * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all + * schemas. Schema names are case sensitive. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("schemas") private Optional> schemas; + @JsonProperty("sourceType") private SourceRedshiftRedshift sourceType; @@ -100,7 +104,9 @@ public SourceRedshift( String host, String password, String username) { - this(database, host, Optional.empty(), password, Optional.empty(), Optional.empty(), username); + this(database, host, Optional.empty(), + password, Optional.empty(), Optional.empty(), + username); } /** @@ -112,7 +118,8 @@ public String database() { } /** - * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com). + * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with + * .redshift.amazonaws.com). */ @JsonIgnore public String host() { @@ -120,7 +127,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -144,7 +153,8 @@ public Optional port() { } /** - * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive. + * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all + * schemas. Schema names are case sensitive. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -165,9 +175,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the database. @@ -179,7 +190,8 @@ public SourceRedshift withDatabase(String database) { } /** - * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com). + * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with + * .redshift.amazonaws.com). */ public SourceRedshift withHost(String host) { Utils.checkNotNull(host, "host"); @@ -188,7 +200,9 @@ public SourceRedshift withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceRedshift withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -196,8 +210,11 @@ public SourceRedshift withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceRedshift withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -223,6 +240,7 @@ public SourceRedshift withPort(long port) { return this; } + /** * Port of the database. */ @@ -233,7 +251,8 @@ public SourceRedshift withPort(Optional port) { } /** - * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive. + * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all + * schemas. Schema names are case sensitive. */ public SourceRedshift withSchemas(List schemas) { Utils.checkNotNull(schemas, "schemas"); @@ -241,8 +260,10 @@ public SourceRedshift withSchemas(List schemas) { return this; } + /** - * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive. + * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all + * schemas. Schema names are case sensitive. */ public SourceRedshift withSchemas(Optional> schemas) { Utils.checkNotNull(schemas, "schemas"); @@ -259,7 +280,6 @@ public SourceRedshift withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -270,27 +290,22 @@ public boolean equals(java.lang.Object o) { } SourceRedshift other = (SourceRedshift) o; return - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.schemas, other.schemas) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.schemas, other.schemas) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - database, - host, - jdbcUrlParams, - password, - port, - schemas, - sourceType, - username); + return Utils.enhancedHash( + database, host, jdbcUrlParams, + password, port, schemas, + sourceType, username); } @Override @@ -305,27 +320,29 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String database; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private String password; - + private Optional port; - + private Optional> schemas = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + /** * Name of the database. */ @@ -335,8 +352,10 @@ public Builder database(String database) { return this; } + /** - * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with .redshift.amazonaws.com). + * Host Endpoint of the Redshift Cluster (must include the cluster-id, region and end with + * .redshift.amazonaws.com). */ public Builder host(String host) { Utils.checkNotNull(host, "host"); @@ -344,8 +363,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -354,7 +376,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -362,6 +386,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * Password associated with the username. */ @@ -371,6 +396,7 @@ public Builder password(String password) { return this; } + /** * Port of the database. */ @@ -389,8 +415,10 @@ public Builder port(Optional port) { return this; } + /** - * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive. + * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all + * schemas. Schema names are case sensitive. */ public Builder schemas(List schemas) { Utils.checkNotNull(schemas, "schemas"); @@ -399,7 +427,8 @@ public Builder schemas(List schemas) { } /** - * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all schemas. Schema names are case sensitive. + * The list of schemas to sync from. Specify one or more explicitly or keep empty to process all + * schemas. Schema names are case sensitive. */ public Builder schemas(Optional> schemas) { Utils.checkNotNull(schemas, "schemas"); @@ -407,6 +436,7 @@ public Builder schemas(Optional> schemas) { return this; } + /** * Username to use to access the database. */ @@ -415,21 +445,19 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceRedshift build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SourceRedshift( - database, - host, - jdbcUrlParams, - password, - port, - schemas, + database, host, jdbcUrlParams, + password, port, schemas, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_Port = new LazySingletonValue<>( "port", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java b/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java index 11517f2ec..46ee76ab5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRedshiftRedshift.java @@ -14,7 +14,7 @@ public enum SourceRedshiftRedshift { @JsonValue private final String value; - private SourceRedshiftRedshift(String value) { + SourceRedshiftRedshift(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceReferralhero.java b/src/main/java/com/airbyte/api/models/shared/SourceReferralhero.java index 085821070..471a591f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceReferralhero.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceReferralhero.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceReferralhero { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Referralhero sourceType; @@ -39,9 +40,10 @@ public Referralhero sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceReferralhero withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceReferralhero withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceReferralhero other = (SourceReferralhero) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceReferralhero build() { + return new SourceReferralhero( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRentcast.java b/src/main/java/com/airbyte/api/models/shared/SourceRentcast.java index f9091548b..77a7f1ed0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRentcast.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRentcast.java @@ -15,37 +15,42 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceRentcast { +public class SourceRentcast { /** - * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data for a specific property, or together with the radius parameter to search for listings in a specific area + * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data + * for a specific property, or together with the radius parameter to search for listings in a specific + * area */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("address") private Optional address; + @JsonProperty("api_key") private String apiKey; /** - * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to indicate partial bathrooms + * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to + * indicate partial bathrooms */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("bath_rooms") private Optional bathRooms; /** - * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a studio layout + * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a + * studio layout */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("bedrooms") private Optional bedrooms; /** - * The name of the city, used to search for listings in a specific city. This parameter is case-sensitive + * The name of the city, used to search for listings in a specific city. This parameter is + * case-sensitive */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("city") @@ -59,7 +64,9 @@ public class SourceRentcast { private Optional dataType; /** - * The maximum number of days since a property was listed on the market, with a minimum of 1 or The maximum number of days since a property was last sold, with a minimum of 1. Used to search for properties that were sold within the specified date range + * The maximum number of days since a property was listed on the market, with a minimum of 1 or The + * maximum number of days since a property was last sold, with a minimum of 1. Used to search for + * properties that were sold within the specified date range */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("days_old") @@ -73,38 +80,44 @@ public class SourceRentcast { private Optional historyRange; /** - * The latitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The latitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("latitude") private Optional latitude; /** - * The longitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The longitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("longitude") private Optional longitude; /** - * The type of the property, used to search for listings matching this criteria : Single Family , Condo , Townhouse , Manufactured , Multi-Family , Apartment , Land , + * The type of the property, used to search for listings matching this criteria : Single Family , Condo + * , Townhouse , Manufactured , Multi-Family , Apartment , Land , */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("property_type") private Optional propertyType; /** - * The radius of the search area in miles, with a maximum of 100. Use in combination with the latitude/longitude or address parameters to search for listings in a specific area + * The radius of the search area in miles, with a maximum of 100. Use in combination with the + * latitude/longitude or address parameters to search for listings in a specific area */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("radius") private Optional radius; + @JsonProperty("sourceType") private Rentcast sourceType; /** - * The 2-character state abbreviation, used to search for listings in a specific state. This parameter is case-sensitive + * The 2-character state abbreviation, used to search for listings in a specific state. This parameter + * is case-sensitive */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("state") @@ -176,11 +189,17 @@ public SourceRentcast( public SourceRentcast( String apiKey) { - this(Optional.empty(), apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), apiKey, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** - * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data for a specific property, or together with the radius parameter to search for listings in a specific area + * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data + * for a specific property, or together with the radius parameter to search for listings in a specific + * area */ @JsonIgnore public Optional address() { @@ -193,7 +212,8 @@ public String apiKey() { } /** - * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to indicate partial bathrooms + * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to + * indicate partial bathrooms */ @JsonIgnore public Optional bathRooms() { @@ -201,7 +221,8 @@ public Optional bathRooms() { } /** - * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a studio layout + * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a + * studio layout */ @JsonIgnore public Optional bedrooms() { @@ -209,7 +230,8 @@ public Optional bedrooms() { } /** - * The name of the city, used to search for listings in a specific city. This parameter is case-sensitive + * The name of the city, used to search for listings in a specific city. This parameter is + * case-sensitive */ @JsonIgnore public Optional city() { @@ -225,7 +247,9 @@ public Optional dataType() { } /** - * The maximum number of days since a property was listed on the market, with a minimum of 1 or The maximum number of days since a property was last sold, with a minimum of 1. Used to search for properties that were sold within the specified date range + * The maximum number of days since a property was listed on the market, with a minimum of 1 or The + * maximum number of days since a property was last sold, with a minimum of 1. Used to search for + * properties that were sold within the specified date range */ @JsonIgnore public Optional daysOld() { @@ -241,7 +265,8 @@ public Optional historyRange() { } /** - * The latitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The latitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ @JsonIgnore public Optional latitude() { @@ -249,7 +274,8 @@ public Optional latitude() { } /** - * The longitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The longitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ @JsonIgnore public Optional longitude() { @@ -257,7 +283,8 @@ public Optional longitude() { } /** - * The type of the property, used to search for listings matching this criteria : Single Family , Condo , Townhouse , Manufactured , Multi-Family , Apartment , Land , + * The type of the property, used to search for listings matching this criteria : Single Family , Condo + * , Townhouse , Manufactured , Multi-Family , Apartment , Land , */ @JsonIgnore public Optional propertyType() { @@ -265,7 +292,8 @@ public Optional propertyType() { } /** - * The radius of the search area in miles, with a maximum of 100. Use in combination with the latitude/longitude or address parameters to search for listings in a specific area + * The radius of the search area in miles, with a maximum of 100. Use in combination with the + * latitude/longitude or address parameters to search for listings in a specific area */ @JsonIgnore public Optional radius() { @@ -278,7 +306,8 @@ public Rentcast sourceType() { } /** - * The 2-character state abbreviation, used to search for listings in a specific state. This parameter is case-sensitive + * The 2-character state abbreviation, used to search for listings in a specific state. This parameter + * is case-sensitive */ @JsonIgnore public Optional state() { @@ -301,12 +330,15 @@ public Optional zipcode() { return zipcode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data for a specific property, or together with the radius parameter to search for listings in a specific area + * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data + * for a specific property, or together with the radius parameter to search for listings in a specific + * area */ public SourceRentcast withAddress(String address) { Utils.checkNotNull(address, "address"); @@ -314,8 +346,11 @@ public SourceRentcast withAddress(String address) { return this; } + /** - * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data for a specific property, or together with the radius parameter to search for listings in a specific area + * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data + * for a specific property, or together with the radius parameter to search for listings in a specific + * area */ public SourceRentcast withAddress(Optional address) { Utils.checkNotNull(address, "address"); @@ -330,7 +365,8 @@ public SourceRentcast withApiKey(String apiKey) { } /** - * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to indicate partial bathrooms + * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to + * indicate partial bathrooms */ public SourceRentcast withBathRooms(long bathRooms) { Utils.checkNotNull(bathRooms, "bathRooms"); @@ -338,8 +374,10 @@ public SourceRentcast withBathRooms(long bathRooms) { return this; } + /** - * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to indicate partial bathrooms + * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to + * indicate partial bathrooms */ public SourceRentcast withBathRooms(Optional bathRooms) { Utils.checkNotNull(bathRooms, "bathRooms"); @@ -348,7 +386,8 @@ public SourceRentcast withBathRooms(Optional bathRooms) { } /** - * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a studio layout + * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a + * studio layout */ public SourceRentcast withBedrooms(double bedrooms) { Utils.checkNotNull(bedrooms, "bedrooms"); @@ -356,8 +395,10 @@ public SourceRentcast withBedrooms(double bedrooms) { return this; } + /** - * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a studio layout + * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a + * studio layout */ public SourceRentcast withBedrooms(Optional bedrooms) { Utils.checkNotNull(bedrooms, "bedrooms"); @@ -366,7 +407,8 @@ public SourceRentcast withBedrooms(Optional bedrooms) { } /** - * The name of the city, used to search for listings in a specific city. This parameter is case-sensitive + * The name of the city, used to search for listings in a specific city. This parameter is + * case-sensitive */ public SourceRentcast withCity(String city) { Utils.checkNotNull(city, "city"); @@ -374,8 +416,10 @@ public SourceRentcast withCity(String city) { return this; } + /** - * The name of the city, used to search for listings in a specific city. This parameter is case-sensitive + * The name of the city, used to search for listings in a specific city. This parameter is + * case-sensitive */ public SourceRentcast withCity(Optional city) { Utils.checkNotNull(city, "city"); @@ -392,6 +436,7 @@ public SourceRentcast withDataType(String dataType) { return this; } + /** * The type of aggregate market data to return. Defaults to "All" if not provided : All , Sale , Rental */ @@ -402,7 +447,9 @@ public SourceRentcast withDataType(Optional dataType) { } /** - * The maximum number of days since a property was listed on the market, with a minimum of 1 or The maximum number of days since a property was last sold, with a minimum of 1. Used to search for properties that were sold within the specified date range + * The maximum number of days since a property was listed on the market, with a minimum of 1 or The + * maximum number of days since a property was last sold, with a minimum of 1. Used to search for + * properties that were sold within the specified date range */ public SourceRentcast withDaysOld(String daysOld) { Utils.checkNotNull(daysOld, "daysOld"); @@ -410,8 +457,11 @@ public SourceRentcast withDaysOld(String daysOld) { return this; } + /** - * The maximum number of days since a property was listed on the market, with a minimum of 1 or The maximum number of days since a property was last sold, with a minimum of 1. Used to search for properties that were sold within the specified date range + * The maximum number of days since a property was listed on the market, with a minimum of 1 or The + * maximum number of days since a property was last sold, with a minimum of 1. Used to search for + * properties that were sold within the specified date range */ public SourceRentcast withDaysOld(Optional daysOld) { Utils.checkNotNull(daysOld, "daysOld"); @@ -428,6 +478,7 @@ public SourceRentcast withHistoryRange(String historyRange) { return this; } + /** * The time range for historical record entries, in months. Defaults to 12 if not provided */ @@ -438,7 +489,8 @@ public SourceRentcast withHistoryRange(Optional historyRange) { } /** - * The latitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The latitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ public SourceRentcast withLatitude(String latitude) { Utils.checkNotNull(latitude, "latitude"); @@ -446,8 +498,10 @@ public SourceRentcast withLatitude(String latitude) { return this; } + /** - * The latitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The latitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ public SourceRentcast withLatitude(Optional latitude) { Utils.checkNotNull(latitude, "latitude"); @@ -456,7 +510,8 @@ public SourceRentcast withLatitude(Optional latitude) { } /** - * The longitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The longitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ public SourceRentcast withLongitude(String longitude) { Utils.checkNotNull(longitude, "longitude"); @@ -464,8 +519,10 @@ public SourceRentcast withLongitude(String longitude) { return this; } + /** - * The longitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The longitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ public SourceRentcast withLongitude(Optional longitude) { Utils.checkNotNull(longitude, "longitude"); @@ -474,7 +531,8 @@ public SourceRentcast withLongitude(Optional longitude) { } /** - * The type of the property, used to search for listings matching this criteria : Single Family , Condo , Townhouse , Manufactured , Multi-Family , Apartment , Land , + * The type of the property, used to search for listings matching this criteria : Single Family , Condo + * , Townhouse , Manufactured , Multi-Family , Apartment , Land , */ public SourceRentcast withPropertyType(String propertyType) { Utils.checkNotNull(propertyType, "propertyType"); @@ -482,8 +540,10 @@ public SourceRentcast withPropertyType(String propertyType) { return this; } + /** - * The type of the property, used to search for listings matching this criteria : Single Family , Condo , Townhouse , Manufactured , Multi-Family , Apartment , Land , + * The type of the property, used to search for listings matching this criteria : Single Family , Condo + * , Townhouse , Manufactured , Multi-Family , Apartment , Land , */ public SourceRentcast withPropertyType(Optional propertyType) { Utils.checkNotNull(propertyType, "propertyType"); @@ -492,7 +552,8 @@ public SourceRentcast withPropertyType(Optional propertyType) { } /** - * The radius of the search area in miles, with a maximum of 100. Use in combination with the latitude/longitude or address parameters to search for listings in a specific area + * The radius of the search area in miles, with a maximum of 100. Use in combination with the + * latitude/longitude or address parameters to search for listings in a specific area */ public SourceRentcast withRadius(String radius) { Utils.checkNotNull(radius, "radius"); @@ -500,8 +561,10 @@ public SourceRentcast withRadius(String radius) { return this; } + /** - * The radius of the search area in miles, with a maximum of 100. Use in combination with the latitude/longitude or address parameters to search for listings in a specific area + * The radius of the search area in miles, with a maximum of 100. Use in combination with the + * latitude/longitude or address parameters to search for listings in a specific area */ public SourceRentcast withRadius(Optional radius) { Utils.checkNotNull(radius, "radius"); @@ -510,7 +573,8 @@ public SourceRentcast withRadius(Optional radius) { } /** - * The 2-character state abbreviation, used to search for listings in a specific state. This parameter is case-sensitive + * The 2-character state abbreviation, used to search for listings in a specific state. This parameter + * is case-sensitive */ public SourceRentcast withState(String state) { Utils.checkNotNull(state, "state"); @@ -518,8 +582,10 @@ public SourceRentcast withState(String state) { return this; } + /** - * The 2-character state abbreviation, used to search for listings in a specific state. This parameter is case-sensitive + * The 2-character state abbreviation, used to search for listings in a specific state. This parameter + * is case-sensitive */ public SourceRentcast withState(Optional state) { Utils.checkNotNull(state, "state"); @@ -536,6 +602,7 @@ public SourceRentcast withStatus(String status) { return this; } + /** * The current listing status, used to search for listings matching this criteria : Active or Inactive */ @@ -554,6 +621,7 @@ public SourceRentcast withZipcode(String zipcode) { return this; } + /** * The 5-digit zip code, used to search for listings in a specific zip code */ @@ -563,7 +631,6 @@ public SourceRentcast withZipcode(Optional zipcode) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -574,42 +641,32 @@ public boolean equals(java.lang.Object o) { } SourceRentcast other = (SourceRentcast) o; return - Objects.deepEquals(this.address, other.address) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.bathRooms, other.bathRooms) && - Objects.deepEquals(this.bedrooms, other.bedrooms) && - Objects.deepEquals(this.city, other.city) && - Objects.deepEquals(this.dataType, other.dataType) && - Objects.deepEquals(this.daysOld, other.daysOld) && - Objects.deepEquals(this.historyRange, other.historyRange) && - Objects.deepEquals(this.latitude, other.latitude) && - Objects.deepEquals(this.longitude, other.longitude) && - Objects.deepEquals(this.propertyType, other.propertyType) && - Objects.deepEquals(this.radius, other.radius) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.state, other.state) && - Objects.deepEquals(this.status, other.status) && - Objects.deepEquals(this.zipcode, other.zipcode); + Utils.enhancedDeepEquals(this.address, other.address) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.bathRooms, other.bathRooms) && + Utils.enhancedDeepEquals(this.bedrooms, other.bedrooms) && + Utils.enhancedDeepEquals(this.city, other.city) && + Utils.enhancedDeepEquals(this.dataType, other.dataType) && + Utils.enhancedDeepEquals(this.daysOld, other.daysOld) && + Utils.enhancedDeepEquals(this.historyRange, other.historyRange) && + Utils.enhancedDeepEquals(this.latitude, other.latitude) && + Utils.enhancedDeepEquals(this.longitude, other.longitude) && + Utils.enhancedDeepEquals(this.propertyType, other.propertyType) && + Utils.enhancedDeepEquals(this.radius, other.radius) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.state, other.state) && + Utils.enhancedDeepEquals(this.status, other.status) && + Utils.enhancedDeepEquals(this.zipcode, other.zipcode); } @Override public int hashCode() { - return Objects.hash( - address, - apiKey, - bathRooms, - bedrooms, - city, - dataType, - daysOld, - historyRange, - latitude, - longitude, - propertyType, - radius, - sourceType, - state, - status, + return Utils.enhancedHash( + address, apiKey, bathRooms, + bedrooms, city, dataType, + daysOld, historyRange, latitude, + longitude, propertyType, radius, + sourceType, state, status, zipcode); } @@ -633,45 +690,49 @@ public String toString() { "status", status, "zipcode", zipcode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional address = Optional.empty(); - + private String apiKey; - + private Optional bathRooms = Optional.empty(); - + private Optional bedrooms = Optional.empty(); - + private Optional city = Optional.empty(); - + private Optional dataType = Optional.empty(); - + private Optional daysOld = Optional.empty(); - + private Optional historyRange = Optional.empty(); - + private Optional latitude = Optional.empty(); - + private Optional longitude = Optional.empty(); - + private Optional propertyType = Optional.empty(); - + private Optional radius = Optional.empty(); - + private Optional state = Optional.empty(); - + private Optional status = Optional.empty(); - + private Optional zipcode = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data for a specific property, or together with the radius parameter to search for listings in a specific area + * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data + * for a specific property, or together with the radius parameter to search for listings in a specific + * area */ public Builder address(String address) { Utils.checkNotNull(address, "address"); @@ -680,7 +741,9 @@ public Builder address(String address) { } /** - * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data for a specific property, or together with the radius parameter to search for listings in a specific area + * The full address of the property, in the format of Street, City, State, Zip. Used to retrieve data + * for a specific property, or together with the radius parameter to search for listings in a specific + * area */ public Builder address(Optional address) { Utils.checkNotNull(address, "address"); @@ -688,14 +751,17 @@ public Builder address(Optional address) { return this; } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** - * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to indicate partial bathrooms + * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to + * indicate partial bathrooms */ public Builder bathRooms(long bathRooms) { Utils.checkNotNull(bathRooms, "bathRooms"); @@ -704,7 +770,8 @@ public Builder bathRooms(long bathRooms) { } /** - * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to indicate partial bathrooms + * The number of bathrooms, used to search for listings matching this criteria. Supports fractions to + * indicate partial bathrooms */ public Builder bathRooms(Optional bathRooms) { Utils.checkNotNull(bathRooms, "bathRooms"); @@ -712,8 +779,10 @@ public Builder bathRooms(Optional bathRooms) { return this; } + /** - * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a studio layout + * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a + * studio layout */ public Builder bedrooms(double bedrooms) { Utils.checkNotNull(bedrooms, "bedrooms"); @@ -722,7 +791,8 @@ public Builder bedrooms(double bedrooms) { } /** - * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a studio layout + * The number of bedrooms, used to search for listings matching this criteria. Use 0 to indicate a + * studio layout */ public Builder bedrooms(Optional bedrooms) { Utils.checkNotNull(bedrooms, "bedrooms"); @@ -730,8 +800,10 @@ public Builder bedrooms(Optional bedrooms) { return this; } + /** - * The name of the city, used to search for listings in a specific city. This parameter is case-sensitive + * The name of the city, used to search for listings in a specific city. This parameter is + * case-sensitive */ public Builder city(String city) { Utils.checkNotNull(city, "city"); @@ -740,7 +812,8 @@ public Builder city(String city) { } /** - * The name of the city, used to search for listings in a specific city. This parameter is case-sensitive + * The name of the city, used to search for listings in a specific city. This parameter is + * case-sensitive */ public Builder city(Optional city) { Utils.checkNotNull(city, "city"); @@ -748,6 +821,7 @@ public Builder city(Optional city) { return this; } + /** * The type of aggregate market data to return. Defaults to "All" if not provided : All , Sale , Rental */ @@ -766,8 +840,11 @@ public Builder dataType(Optional dataType) { return this; } + /** - * The maximum number of days since a property was listed on the market, with a minimum of 1 or The maximum number of days since a property was last sold, with a minimum of 1. Used to search for properties that were sold within the specified date range + * The maximum number of days since a property was listed on the market, with a minimum of 1 or The + * maximum number of days since a property was last sold, with a minimum of 1. Used to search for + * properties that were sold within the specified date range */ public Builder daysOld(String daysOld) { Utils.checkNotNull(daysOld, "daysOld"); @@ -776,7 +853,9 @@ public Builder daysOld(String daysOld) { } /** - * The maximum number of days since a property was listed on the market, with a minimum of 1 or The maximum number of days since a property was last sold, with a minimum of 1. Used to search for properties that were sold within the specified date range + * The maximum number of days since a property was listed on the market, with a minimum of 1 or The + * maximum number of days since a property was last sold, with a minimum of 1. Used to search for + * properties that were sold within the specified date range */ public Builder daysOld(Optional daysOld) { Utils.checkNotNull(daysOld, "daysOld"); @@ -784,6 +863,7 @@ public Builder daysOld(Optional daysOld) { return this; } + /** * The time range for historical record entries, in months. Defaults to 12 if not provided */ @@ -802,8 +882,10 @@ public Builder historyRange(Optional historyRange) { return this; } + /** - * The latitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The latitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ public Builder latitude(String latitude) { Utils.checkNotNull(latitude, "latitude"); @@ -812,7 +894,8 @@ public Builder latitude(String latitude) { } /** - * The latitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The latitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ public Builder latitude(Optional latitude) { Utils.checkNotNull(latitude, "latitude"); @@ -820,8 +903,10 @@ public Builder latitude(Optional latitude) { return this; } + /** - * The longitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The longitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ public Builder longitude(String longitude) { Utils.checkNotNull(longitude, "longitude"); @@ -830,7 +915,8 @@ public Builder longitude(String longitude) { } /** - * The longitude of the search area. Use the latitude/longitude and radius parameters to search for listings in a specific area + * The longitude of the search area. Use the latitude/longitude and radius parameters to search for + * listings in a specific area */ public Builder longitude(Optional longitude) { Utils.checkNotNull(longitude, "longitude"); @@ -838,8 +924,10 @@ public Builder longitude(Optional longitude) { return this; } + /** - * The type of the property, used to search for listings matching this criteria : Single Family , Condo , Townhouse , Manufactured , Multi-Family , Apartment , Land , + * The type of the property, used to search for listings matching this criteria : Single Family , Condo + * , Townhouse , Manufactured , Multi-Family , Apartment , Land , */ public Builder propertyType(String propertyType) { Utils.checkNotNull(propertyType, "propertyType"); @@ -848,7 +936,8 @@ public Builder propertyType(String propertyType) { } /** - * The type of the property, used to search for listings matching this criteria : Single Family , Condo , Townhouse , Manufactured , Multi-Family , Apartment , Land , + * The type of the property, used to search for listings matching this criteria : Single Family , Condo + * , Townhouse , Manufactured , Multi-Family , Apartment , Land , */ public Builder propertyType(Optional propertyType) { Utils.checkNotNull(propertyType, "propertyType"); @@ -856,8 +945,10 @@ public Builder propertyType(Optional propertyType) { return this; } + /** - * The radius of the search area in miles, with a maximum of 100. Use in combination with the latitude/longitude or address parameters to search for listings in a specific area + * The radius of the search area in miles, with a maximum of 100. Use in combination with the + * latitude/longitude or address parameters to search for listings in a specific area */ public Builder radius(String radius) { Utils.checkNotNull(radius, "radius"); @@ -866,7 +957,8 @@ public Builder radius(String radius) { } /** - * The radius of the search area in miles, with a maximum of 100. Use in combination with the latitude/longitude or address parameters to search for listings in a specific area + * The radius of the search area in miles, with a maximum of 100. Use in combination with the + * latitude/longitude or address parameters to search for listings in a specific area */ public Builder radius(Optional radius) { Utils.checkNotNull(radius, "radius"); @@ -874,8 +966,10 @@ public Builder radius(Optional radius) { return this; } + /** - * The 2-character state abbreviation, used to search for listings in a specific state. This parameter is case-sensitive + * The 2-character state abbreviation, used to search for listings in a specific state. This parameter + * is case-sensitive */ public Builder state(String state) { Utils.checkNotNull(state, "state"); @@ -884,7 +978,8 @@ public Builder state(String state) { } /** - * The 2-character state abbreviation, used to search for listings in a specific state. This parameter is case-sensitive + * The 2-character state abbreviation, used to search for listings in a specific state. This parameter + * is case-sensitive */ public Builder state(Optional state) { Utils.checkNotNull(state, "state"); @@ -892,6 +987,7 @@ public Builder state(Optional state) { return this; } + /** * The current listing status, used to search for listings matching this criteria : Active or Inactive */ @@ -910,6 +1006,7 @@ public Builder status(Optional status) { return this; } + /** * The 5-digit zip code, used to search for listings in a specific zip code */ @@ -927,26 +1024,18 @@ public Builder zipcode(Optional zipcode) { this.zipcode = zipcode; return this; } - + public SourceRentcast build() { + return new SourceRentcast( - address, - apiKey, - bathRooms, - bedrooms, - city, - dataType, - daysOld, - historyRange, - latitude, - longitude, - propertyType, - radius, - state, - status, - zipcode); + address, apiKey, bathRooms, + bedrooms, city, dataType, + daysOld, historyRange, latitude, + longitude, propertyType, radius, + state, status, zipcode); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRepairshopr.java b/src/main/java/com/airbyte/api/models/shared/SourceRepairshopr.java index 3d2f67f14..207854455 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRepairshopr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRepairshopr.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceRepairshopr { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Repairshopr sourceType; + @JsonProperty("subdomain") private String subdomain; @@ -50,9 +52,10 @@ public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceRepairshopr withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -66,7 +69,6 @@ public SourceRepairshopr withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceRepairshopr other = (SourceRepairshopr) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - subdomain); + return Utils.enhancedHash( + apiKey, sourceType, subdomain); } @Override @@ -97,35 +97,39 @@ public String toString() { "sourceType", sourceType, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String subdomain; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder subdomain(String subdomain) { Utils.checkNotNull(subdomain, "subdomain"); this.subdomain = subdomain; return this; } - + public SourceRepairshopr build() { + return new SourceRepairshopr( - apiKey, - subdomain); + apiKey, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceReplyIo.java b/src/main/java/com/airbyte/api/models/shared/SourceReplyIo.java index dbc4c3fa8..eab7c7bb6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceReplyIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceReplyIo.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceReplyIo { +public class SourceReplyIo { /** * The API Token for Reply */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private ReplyIo sourceType; @@ -45,9 +45,10 @@ public ReplyIo sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API Token for Reply @@ -58,7 +59,6 @@ public SourceReplyIo withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceReplyIo other = (SourceReplyIo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * The API Token for Reply */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceReplyIo build() { + return new SourceReplyIo( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceResponse.java b/src/main/java/com/airbyte/api/models/shared/SourceResponse.java index 5bc3e6160..03caac8f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceResponse.java @@ -13,7 +13,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -22,35 +21,45 @@ *

    Provides details of a single source. */ public class SourceResponse { - /** * The values required to configure the source. */ @JsonProperty("configuration") private SourceConfiguration configuration; + @JsonProperty("createdAt") private long createdAt; + @JsonProperty("definitionId") private String definitionId; + @JsonProperty("name") private String name; /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("resourceAllocation") private Optional resourceAllocation; + @JsonProperty("sourceId") private String sourceId; + @JsonProperty("sourceType") private String sourceType; + @JsonProperty("workspaceId") private String workspaceId; @@ -90,7 +99,9 @@ public SourceResponse( String sourceId, String sourceType, String workspaceId) { - this(configuration, createdAt, definitionId, name, Optional.empty(), sourceId, sourceType, workspaceId); + this(configuration, createdAt, definitionId, + name, Optional.empty(), sourceId, + sourceType, workspaceId); } /** @@ -117,7 +128,12 @@ public String name() { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -140,9 +156,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The values required to configure the source. @@ -172,7 +189,12 @@ public SourceResponse withName(String name) { } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public SourceResponse withResourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -180,8 +202,14 @@ public SourceResponse withResourceAllocation(ScopedResourceRequirements resource return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public SourceResponse withResourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -207,7 +235,6 @@ public SourceResponse withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,27 +245,22 @@ public boolean equals(java.lang.Object o) { } SourceResponse other = (SourceResponse) o; return - Objects.deepEquals(this.configuration, other.configuration) && - Objects.deepEquals(this.createdAt, other.createdAt) && - Objects.deepEquals(this.definitionId, other.definitionId) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.resourceAllocation, other.resourceAllocation) && - Objects.deepEquals(this.sourceId, other.sourceId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.configuration, other.configuration) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.definitionId, other.definitionId) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.resourceAllocation, other.resourceAllocation) && + Utils.enhancedDeepEquals(this.sourceId, other.sourceId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - configuration, - createdAt, - definitionId, - name, - resourceAllocation, - sourceId, - sourceType, - workspaceId); + return Utils.enhancedHash( + configuration, createdAt, definitionId, + name, resourceAllocation, sourceId, + sourceType, workspaceId); } @Override @@ -253,29 +275,31 @@ public String toString() { "sourceType", sourceType, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceConfiguration configuration; - + private Long createdAt; - + private String definitionId; - + private String name; - + private Optional resourceAllocation = Optional.empty(); - + private String sourceId; - + private String sourceType; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + /** * The values required to configure the source. */ @@ -285,26 +309,35 @@ public Builder configuration(SourceConfiguration configuration) { return this; } + public Builder createdAt(long createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; return this; } + public Builder definitionId(String definitionId) { Utils.checkNotNull(definitionId, "definitionId"); this.definitionId = definitionId; return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -313,7 +346,12 @@ public Builder resourceAllocation(ScopedResourceRequirements resourceAllocation) } /** - * actor or actor definition specific resource requirements. if default is set, these are the requirements that should be set for ALL jobs run for this actor definition. it is overriden by the job type specific configurations. if not set, the platform will use defaults. these values will be overriden by configuration at the connection level. + * actor or actor definition specific resource requirements. if default is set, these are the + * requirements that should be set for ALL jobs run for this actor definition. it is overriden by the + * job type specific configurations. + * + *

    if not set, the platform will use defaults. these values will be overriden by configuration at the + * connection level. */ public Builder resourceAllocation(Optional resourceAllocation) { Utils.checkNotNull(resourceAllocation, "resourceAllocation"); @@ -321,34 +359,34 @@ public Builder resourceAllocation(Optional return this; } + public Builder sourceId(String sourceId) { Utils.checkNotNull(sourceId, "sourceId"); this.sourceId = sourceId; return this; } + public Builder sourceType(String sourceType) { Utils.checkNotNull(sourceType, "sourceType"); this.sourceType = sourceType; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public SourceResponse build() { + return new SourceResponse( - configuration, - createdAt, - definitionId, - name, - resourceAllocation, - sourceId, - sourceType, - workspaceId); + configuration, createdAt, definitionId, + name, resourceAllocation, sourceId, + sourceType, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRetailexpressByMaropost.java b/src/main/java/com/airbyte/api/models/shared/SourceRetailexpressByMaropost.java index 03472a7a1..0e69f1888 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetailexpressByMaropost.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetailexpressByMaropost.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceRetailexpressByMaropost { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private RetailexpressByMaropost sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceRetailexpressByMaropost withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceRetailexpressByMaropost withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceRetailexpressByMaropost other = (SourceRetailexpressByMaropost) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceRetailexpressByMaropost build() { + return new SourceRetailexpressByMaropost( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRetently.java b/src/main/java/com/airbyte/api/models/shared/SourceRetently.java index 5a802d4e0..d6fa88b24 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetently.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetently.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceRetently { +public class SourceRetently { /** * Choose how to authenticate to Retently */ @@ -26,6 +25,7 @@ public class SourceRetently { @JsonProperty("credentials") private Optional credentials; + @JsonProperty("sourceType") private Retently sourceType; @@ -55,9 +55,10 @@ public Retently sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Choose how to authenticate to Retently @@ -68,6 +69,7 @@ public SourceRetently withCredentials(SourceRetentlyAuthenticationMechanism cred return this; } + /** * Choose how to authenticate to Retently */ @@ -77,7 +79,6 @@ public SourceRetently withCredentials(Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Choose how to authenticate to Retently */ @@ -131,12 +133,14 @@ public Builder credentials(Optional _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java index c07cb56ab..f88f2b4a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthType.java @@ -14,7 +14,7 @@ public enum SourceRetentlyAuthType { @JsonValue private final String value; - private SourceRetentlyAuthType(String value) { + SourceRetentlyAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthenticationMechanism.java index 117c88e2c..2606621dd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetentlyAuthenticationMechanism.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceRetentlyAuthenticationMechanism @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceRetentlyAuthenticationMechanism other = (SourceRetentlyAuthenticationMechanism) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java index 563c772b7..d0c34c2a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRetentlySchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceRetentlySchemasAuthType { @JsonValue private final String value; - private SourceRetentlySchemasAuthType(String value) { + SourceRetentlySchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRevenuecat.java b/src/main/java/com/airbyte/api/models/shared/SourceRevenuecat.java index 8d0932846..28b6595e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRevenuecat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRevenuecat.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceRevenuecat { +public class SourceRevenuecat { /** * API key or access token */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Revenuecat sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key or access token @@ -76,7 +78,6 @@ public SourceRevenuecat withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceRevenuecat other = (SourceRevenuecat) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API key or access token */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceRevenuecat build() { + return new SourceRevenuecat( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchant.java b/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchant.java index 6aef48e84..1e6031bb3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchant.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchant.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceRevolutMerchant { +public class SourceRevolutMerchant { /** * Specify the API version to use. This is required for certain API calls. Example: '2024-09-01'. */ @@ -29,14 +28,17 @@ public class SourceRevolutMerchant { private SourceRevolutMerchantEnvironment environment; /** - * Secret API key to use for authenticating with the Revolut Merchant API. Find it in your Revolut Business account under APIs > Merchant API. + * Secret API key to use for authenticating with the Revolut Merchant API. Find it in your Revolut + * Business account under APIs > Merchant API. */ @JsonProperty("secret_api_key") private String secretApiKey; + @JsonProperty("sourceType") private RevolutMerchant sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -74,7 +76,8 @@ public SourceRevolutMerchantEnvironment environment() { } /** - * Secret API key to use for authenticating with the Revolut Merchant API. Find it in your Revolut Business account under APIs > Merchant API. + * Secret API key to use for authenticating with the Revolut Merchant API. Find it in your Revolut + * Business account under APIs > Merchant API. */ @JsonIgnore public String secretApiKey() { @@ -91,9 +94,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Specify the API version to use. This is required for certain API calls. Example: '2024-09-01'. @@ -114,7 +118,8 @@ public SourceRevolutMerchant withEnvironment(SourceRevolutMerchantEnvironment en } /** - * Secret API key to use for authenticating with the Revolut Merchant API. Find it in your Revolut Business account under APIs > Merchant API. + * Secret API key to use for authenticating with the Revolut Merchant API. Find it in your Revolut + * Business account under APIs > Merchant API. */ public SourceRevolutMerchant withSecretApiKey(String secretApiKey) { Utils.checkNotNull(secretApiKey, "secretApiKey"); @@ -128,7 +133,6 @@ public SourceRevolutMerchant withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -139,21 +143,18 @@ public boolean equals(java.lang.Object o) { } SourceRevolutMerchant other = (SourceRevolutMerchant) o; return - Objects.deepEquals(this.apiVersion, other.apiVersion) && - Objects.deepEquals(this.environment, other.environment) && - Objects.deepEquals(this.secretApiKey, other.secretApiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiVersion, other.apiVersion) && + Utils.enhancedDeepEquals(this.environment, other.environment) && + Utils.enhancedDeepEquals(this.secretApiKey, other.secretApiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiVersion, - environment, - secretApiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiVersion, environment, secretApiKey, + sourceType, startDate); } @Override @@ -165,21 +166,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiVersion; - + private SourceRevolutMerchantEnvironment environment; - + private String secretApiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * Specify the API version to use. This is required for certain API calls. Example: '2024-09-01'. */ @@ -189,6 +192,7 @@ public Builder apiVersion(String apiVersion) { return this; } + /** * The base url of your environment. Either sandbox or production */ @@ -198,8 +202,10 @@ public Builder environment(SourceRevolutMerchantEnvironment environment) { return this; } + /** - * Secret API key to use for authenticating with the Revolut Merchant API. Find it in your Revolut Business account under APIs > Merchant API. + * Secret API key to use for authenticating with the Revolut Merchant API. Find it in your Revolut + * Business account under APIs > Merchant API. */ public Builder secretApiKey(String secretApiKey) { Utils.checkNotNull(secretApiKey, "secretApiKey"); @@ -207,20 +213,21 @@ public Builder secretApiKey(String secretApiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceRevolutMerchant build() { + return new SourceRevolutMerchant( - apiVersion, - environment, - secretApiKey, + apiVersion, environment, secretApiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java index 689f680f0..79f74c33d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRevolutMerchantEnvironment.java @@ -20,7 +20,7 @@ public enum SourceRevolutMerchantEnvironment { @JsonValue private final String value; - private SourceRevolutMerchantEnvironment(String value) { + SourceRevolutMerchantEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRingcentral.java b/src/main/java/com/airbyte/api/models/shared/SourceRingcentral.java index 5886abdc7..a5f1e2dfa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRingcentral.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRingcentral.java @@ -11,28 +11,31 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceRingcentral { +public class SourceRingcentral { /** - * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- + * (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) */ @JsonProperty("account_id") private String accountId; /** - * Token could be recieved by following instructions at https://developers.ringcentral.com/api-reference/authentication + * Token could be recieved by following instructions at + * https://developers.ringcentral.com/api-reference/authentication */ @JsonProperty("auth_token") private String authToken; /** - * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- + * (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) */ @JsonProperty("extension_id") private String extensionId; + @JsonProperty("sourceType") private Ringcentral sourceType; @@ -51,7 +54,8 @@ public SourceRingcentral( } /** - * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- + * (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) */ @JsonIgnore public String accountId() { @@ -59,7 +63,8 @@ public String accountId() { } /** - * Token could be recieved by following instructions at https://developers.ringcentral.com/api-reference/authentication + * Token could be recieved by following instructions at + * https://developers.ringcentral.com/api-reference/authentication */ @JsonIgnore public String authToken() { @@ -67,7 +72,8 @@ public String authToken() { } /** - * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- + * (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) */ @JsonIgnore public String extensionId() { @@ -79,12 +85,14 @@ public Ringcentral sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- + * (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) */ public SourceRingcentral withAccountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -93,7 +101,8 @@ public SourceRingcentral withAccountId(String accountId) { } /** - * Token could be recieved by following instructions at https://developers.ringcentral.com/api-reference/authentication + * Token could be recieved by following instructions at + * https://developers.ringcentral.com/api-reference/authentication */ public SourceRingcentral withAuthToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -102,7 +111,8 @@ public SourceRingcentral withAuthToken(String authToken) { } /** - * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- + * (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) */ public SourceRingcentral withExtensionId(String extensionId) { Utils.checkNotNull(extensionId, "extensionId"); @@ -110,7 +120,6 @@ public SourceRingcentral withExtensionId(String extensionId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +130,16 @@ public boolean equals(java.lang.Object o) { } SourceRingcentral other = (SourceRingcentral) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.authToken, other.authToken) && - Objects.deepEquals(this.extensionId, other.extensionId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.authToken, other.authToken) && + Utils.enhancedDeepEquals(this.extensionId, other.extensionId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountId, - authToken, - extensionId, + return Utils.enhancedHash( + accountId, authToken, extensionId, sourceType); } @@ -144,21 +151,24 @@ public String toString() { "extensionId", extensionId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private String authToken; - + private String extensionId; - + private Builder() { // force use of static builder() method } + /** - * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- + * (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) */ public Builder accountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -166,8 +176,10 @@ public Builder accountId(String accountId) { return this; } + /** - * Token could be recieved by following instructions at https://developers.ringcentral.com/api-reference/authentication + * Token could be recieved by following instructions at + * https://developers.ringcentral.com/api-reference/authentication */ public Builder authToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -175,22 +187,24 @@ public Builder authToken(String authToken) { return this; } + /** - * Could be seen at response to basic api call to an endpoint with ~ operator. Example- (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) + * Could be seen at response to basic api call to an endpoint with ~ operator. Example- + * (https://platform.devtest.ringcentral.com/restapi/v1.0/account/~/extension/~/business-hours) */ public Builder extensionId(String extensionId) { Utils.checkNotNull(extensionId, "extensionId"); this.extensionId = extensionId; return this; } - + public SourceRingcentral build() { + return new SourceRingcentral( - accountId, - authToken, - extensionId); + accountId, authToken, extensionId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRkiCovid.java b/src/main/java/com/airbyte/api/models/shared/SourceRkiCovid.java index ff192159d..384a588a3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRkiCovid.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRkiCovid.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceRkiCovid { @@ -45,9 +45,10 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * UTC date in the format 2017-01-25. Any data before this date will not be replicated. @@ -58,7 +59,6 @@ public SourceRkiCovid withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceRkiCovid other = (SourceRkiCovid) o; return - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - sourceType, - startDate); + return Utils.enhancedHash( + sourceType, startDate); } @Override @@ -86,15 +85,17 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * UTC date in the format 2017-01-25. Any data before this date will not be replicated. */ @@ -103,12 +104,14 @@ public Builder startDate(String startDate) { this.startDate = startDate; return this; } - + public SourceRkiCovid build() { + return new SourceRkiCovid( startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRocketChat.java b/src/main/java/com/airbyte/api/models/shared/SourceRocketChat.java index 1a18c08b1..5ecdb440f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRocketChat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRocketChat.java @@ -11,21 +11,23 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceRocketChat { +public class SourceRocketChat { /** * Your rocket.chat instance URL. */ @JsonProperty("endpoint") private String endpoint; + @JsonProperty("sourceType") private RocketChat sourceType; /** - * Your API Token. See <a href="https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/access-tokens-endpoints">here</a>. The token is case sensitive. + * Your API Token. See here. + * The token is case sensitive. */ @JsonProperty("token") private String token; @@ -64,7 +66,9 @@ public RocketChat sourceType() { } /** - * Your API Token. See <a href="https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/access-tokens-endpoints">here</a>. The token is case sensitive. + * Your API Token. See here. + * The token is case sensitive. */ @JsonIgnore public String token() { @@ -79,9 +83,10 @@ public String userId() { return userId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your rocket.chat instance URL. @@ -93,7 +98,9 @@ public SourceRocketChat withEndpoint(String endpoint) { } /** - * Your API Token. See <a href="https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/access-tokens-endpoints">here</a>. The token is case sensitive. + * Your API Token. See here. + * The token is case sensitive. */ public SourceRocketChat withToken(String token) { Utils.checkNotNull(token, "token"); @@ -110,7 +117,6 @@ public SourceRocketChat withUserId(String userId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +127,16 @@ public boolean equals(java.lang.Object o) { } SourceRocketChat other = (SourceRocketChat) o; return - Objects.deepEquals(this.endpoint, other.endpoint) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.token, other.token) && - Objects.deepEquals(this.userId, other.userId); + Utils.enhancedDeepEquals(this.endpoint, other.endpoint) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.token, other.token) && + Utils.enhancedDeepEquals(this.userId, other.userId); } @Override public int hashCode() { - return Objects.hash( - endpoint, - sourceType, - token, + return Utils.enhancedHash( + endpoint, sourceType, token, userId); } @@ -144,19 +148,21 @@ public String toString() { "token", token, "userId", userId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String endpoint; - + private String token; - + private String userId; - + private Builder() { // force use of static builder() method } + /** * Your rocket.chat instance URL. */ @@ -166,8 +172,11 @@ public Builder endpoint(String endpoint) { return this; } + /** - * Your API Token. See <a href="https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/access-tokens-endpoints">here</a>. The token is case sensitive. + * Your API Token. See here. + * The token is case sensitive. */ public Builder token(String token) { Utils.checkNotNull(token, "token"); @@ -175,6 +184,7 @@ public Builder token(String token) { return this; } + /** * Your User Id. */ @@ -183,14 +193,14 @@ public Builder userId(String userId) { this.userId = userId; return this; } - + public SourceRocketChat build() { + return new SourceRocketChat( - endpoint, - token, - userId); + endpoint, token, userId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRocketlane.java b/src/main/java/com/airbyte/api/models/shared/SourceRocketlane.java index 1792024b9..a933f7d95 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRocketlane.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRocketlane.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceRocketlane { +public class SourceRocketlane { /** * API key to use. Generate it from the API section in Settings of your Rocketlane account. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Rocketlane sourceType; @@ -45,9 +45,10 @@ public Rocketlane sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Generate it from the API section in Settings of your Rocketlane account. @@ -58,7 +59,6 @@ public SourceRocketlane withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceRocketlane other = (SourceRocketlane) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key to use. Generate it from the API section in Settings of your Rocketlane account. */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceRocketlane build() { + return new SourceRocketlane( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRollbar.java b/src/main/java/com/airbyte/api/models/shared/SourceRollbar.java index c4a5b736e..639495e25 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRollbar.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRollbar.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceRollbar { @JsonProperty("account_access_token") private String accountAccessToken; + @JsonProperty("project_access_token") private String projectAccessToken; + @JsonProperty("sourceType") private Rollbar sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -62,9 +65,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceRollbar withAccountAccessToken(String accountAccessToken) { Utils.checkNotNull(accountAccessToken, "accountAccessToken"); @@ -84,7 +88,6 @@ public SourceRollbar withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,18 +98,16 @@ public boolean equals(java.lang.Object o) { } SourceRollbar other = (SourceRollbar) o; return - Objects.deepEquals(this.accountAccessToken, other.accountAccessToken) && - Objects.deepEquals(this.projectAccessToken, other.projectAccessToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountAccessToken, other.accountAccessToken) && + Utils.enhancedDeepEquals(this.projectAccessToken, other.projectAccessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountAccessToken, - projectAccessToken, - sourceType, + return Utils.enhancedHash( + accountAccessToken, projectAccessToken, sourceType, startDate); } @@ -118,44 +119,48 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountAccessToken; - + private String projectAccessToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder accountAccessToken(String accountAccessToken) { Utils.checkNotNull(accountAccessToken, "accountAccessToken"); this.accountAccessToken = accountAccessToken; return this; } + public Builder projectAccessToken(String projectAccessToken) { Utils.checkNotNull(projectAccessToken, "projectAccessToken"); this.projectAccessToken = projectAccessToken; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceRollbar build() { + return new SourceRollbar( - accountAccessToken, - projectAccessToken, - startDate); + accountAccessToken, projectAccessToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRootly.java b/src/main/java/com/airbyte/api/models/shared/SourceRootly.java index f146d68f1..7edec70dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRootly.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRootly.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceRootly { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Rootly sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceRootly withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceRootly withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceRootly other = (SourceRootly) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceRootly build() { + return new SourceRootly( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRss.java b/src/main/java/com/airbyte/api/models/shared/SourceRss.java index d7afb0907..3160d072e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRss.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRss.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceRss { @@ -45,9 +45,10 @@ public String url() { return url; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * RSS Feed URL @@ -58,7 +59,6 @@ public SourceRss withUrl(String url) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceRss other = (SourceRss) o; return - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.url, other.url); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.url, other.url); } @Override public int hashCode() { - return Objects.hash( - sourceType, - url); + return Utils.enhancedHash( + sourceType, url); } @Override @@ -86,15 +85,17 @@ public String toString() { "sourceType", sourceType, "url", url); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String url; - + private Builder() { // force use of static builder() method } + /** * RSS Feed URL */ @@ -103,12 +104,14 @@ public Builder url(String url) { this.url = url; return this; } - + public SourceRss build() { + return new SourceRss( url); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceRuddr.java b/src/main/java/com/airbyte/api/models/shared/SourceRuddr.java index b39418bc4..b86e88a8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceRuddr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceRuddr.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceRuddr { +public class SourceRuddr { /** * API token to use. Generate it in the API Keys section of your Ruddr workspace settings. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Ruddr sourceType; @@ -45,9 +45,10 @@ public Ruddr sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API token to use. Generate it in the API Keys section of your Ruddr workspace settings. @@ -58,7 +59,6 @@ public SourceRuddr withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceRuddr other = (SourceRuddr) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * API token to use. Generate it in the API Keys section of your Ruddr workspace settings. */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public SourceRuddr build() { + return new SourceRuddr( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3.java b/src/main/java/com/airbyte/api/models/shared/SourceS3.java index 851243e4c..cbd019a7f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3.java @@ -16,26 +16,28 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * SourceS3 * - *

    NOTE: When this Spec is changed, legacy_config_transformer.py must also be modified to uptake the changes - * because it is responsible for converting legacy S3 v3 configs into v4 configs using the File-Based CDK. + *

    NOTE: When this Spec is changed, legacy_config_transformer.py must also be modified to uptake the + * changes + * because it is responsible for converting legacy S3 v3 configs into v4 configs using the File-Based + * CDK. */ public class SourceS3 { - /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("aws_access_key_id") private Optional awsAccessKeyId; /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("aws_secret_access_key") @@ -47,6 +49,7 @@ public class SourceS3 { @JsonProperty("bucket") private String bucket; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("delivery_method") private Optional deliveryMethod; @@ -59,31 +62,39 @@ public class SourceS3 { private Optional endpoint; /** - * AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. + * AWS region where the S3 bucket is located. If not provided, the region will be determined + * automatically. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("region_name") private Optional regionName; /** - * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. + * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations + * requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in + * the URL of this page. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("role_arn") private Optional roleArn; + @JsonProperty("sourceType") private SourceS3S3 sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonProperty("streams") private List streams; @@ -123,11 +134,14 @@ public SourceS3( public SourceS3( String bucket, List streams) { - this(Optional.empty(), Optional.empty(), bucket, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), streams); + this(Optional.empty(), Optional.empty(), bucket, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), streams); } /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ @JsonIgnore public Optional awsAccessKeyId() { @@ -135,7 +149,8 @@ public Optional awsAccessKeyId() { } /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ @JsonIgnore public Optional awsSecretAccessKey() { @@ -165,7 +180,8 @@ public Optional endpoint() { } /** - * AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. + * AWS region where the S3 bucket is located. If not provided, the region will be determined + * automatically. */ @JsonIgnore public Optional regionName() { @@ -173,7 +189,9 @@ public Optional regionName() { } /** - * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. + * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations + * requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in + * the URL of this page. */ @JsonIgnore public Optional roleArn() { @@ -186,7 +204,8 @@ public SourceS3S3 sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonIgnore public Optional startDate() { @@ -194,19 +213,24 @@ public Optional startDate() { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonIgnore public List streams() { return streams; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public SourceS3 withAwsAccessKeyId(String awsAccessKeyId) { Utils.checkNotNull(awsAccessKeyId, "awsAccessKeyId"); @@ -214,8 +238,10 @@ public SourceS3 withAwsAccessKeyId(String awsAccessKeyId) { return this; } + /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public SourceS3 withAwsAccessKeyId(Optional awsAccessKeyId) { Utils.checkNotNull(awsAccessKeyId, "awsAccessKeyId"); @@ -224,7 +250,8 @@ public SourceS3 withAwsAccessKeyId(Optional awsAccessKeyId) { } /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public SourceS3 withAwsSecretAccessKey(String awsSecretAccessKey) { Utils.checkNotNull(awsSecretAccessKey, "awsSecretAccessKey"); @@ -232,8 +259,10 @@ public SourceS3 withAwsSecretAccessKey(String awsSecretAccessKey) { return this; } + /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public SourceS3 withAwsSecretAccessKey(Optional awsSecretAccessKey) { Utils.checkNotNull(awsSecretAccessKey, "awsSecretAccessKey"); @@ -256,6 +285,7 @@ public SourceS3 withDeliveryMethod(SourceS3DeliveryMethod deliveryMethod) { return this; } + public SourceS3 withDeliveryMethod(Optional deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = deliveryMethod; @@ -271,6 +301,7 @@ public SourceS3 withEndpoint(String endpoint) { return this; } + /** * Endpoint to an S3 compatible service. Leave empty to use AWS. */ @@ -281,7 +312,8 @@ public SourceS3 withEndpoint(Optional endpoint) { } /** - * AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. + * AWS region where the S3 bucket is located. If not provided, the region will be determined + * automatically. */ public SourceS3 withRegionName(String regionName) { Utils.checkNotNull(regionName, "regionName"); @@ -289,8 +321,10 @@ public SourceS3 withRegionName(String regionName) { return this; } + /** - * AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. + * AWS region where the S3 bucket is located. If not provided, the region will be determined + * automatically. */ public SourceS3 withRegionName(Optional regionName) { Utils.checkNotNull(regionName, "regionName"); @@ -299,7 +333,9 @@ public SourceS3 withRegionName(Optional regionName) { } /** - * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. + * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations + * requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in + * the URL of this page. */ public SourceS3 withRoleArn(String roleArn) { Utils.checkNotNull(roleArn, "roleArn"); @@ -307,8 +343,11 @@ public SourceS3 withRoleArn(String roleArn) { return this; } + /** - * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. + * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations + * requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in + * the URL of this page. */ public SourceS3 withRoleArn(Optional roleArn) { Utils.checkNotNull(roleArn, "roleArn"); @@ -317,7 +356,8 @@ public SourceS3 withRoleArn(Optional roleArn) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceS3 withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -325,8 +365,10 @@ public SourceS3 withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceS3 withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -335,7 +377,10 @@ public SourceS3 withStartDate(Optional startDate) { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public SourceS3 withStreams(List streams) { Utils.checkNotNull(streams, "streams"); @@ -343,7 +388,6 @@ public SourceS3 withStreams(List streams) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -354,30 +398,24 @@ public boolean equals(java.lang.Object o) { } SourceS3 other = (SourceS3) o; return - Objects.deepEquals(this.awsAccessKeyId, other.awsAccessKeyId) && - Objects.deepEquals(this.awsSecretAccessKey, other.awsSecretAccessKey) && - Objects.deepEquals(this.bucket, other.bucket) && - Objects.deepEquals(this.deliveryMethod, other.deliveryMethod) && - Objects.deepEquals(this.endpoint, other.endpoint) && - Objects.deepEquals(this.regionName, other.regionName) && - Objects.deepEquals(this.roleArn, other.roleArn) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.streams, other.streams); + Utils.enhancedDeepEquals(this.awsAccessKeyId, other.awsAccessKeyId) && + Utils.enhancedDeepEquals(this.awsSecretAccessKey, other.awsSecretAccessKey) && + Utils.enhancedDeepEquals(this.bucket, other.bucket) && + Utils.enhancedDeepEquals(this.deliveryMethod, other.deliveryMethod) && + Utils.enhancedDeepEquals(this.endpoint, other.endpoint) && + Utils.enhancedDeepEquals(this.regionName, other.regionName) && + Utils.enhancedDeepEquals(this.roleArn, other.roleArn) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.streams, other.streams); } @Override public int hashCode() { - return Objects.hash( - awsAccessKeyId, - awsSecretAccessKey, - bucket, - deliveryMethod, - endpoint, - regionName, - roleArn, - sourceType, - startDate, + return Utils.enhancedHash( + awsAccessKeyId, awsSecretAccessKey, bucket, + deliveryMethod, endpoint, regionName, + roleArn, sourceType, startDate, streams); } @@ -395,33 +433,36 @@ public String toString() { "startDate", startDate, "streams", streams); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional awsAccessKeyId = Optional.empty(); - + private Optional awsSecretAccessKey = Optional.empty(); - + private String bucket; - + private Optional deliveryMethod = Optional.empty(); - + private Optional endpoint; - + private Optional regionName = Optional.empty(); - + private Optional roleArn = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private List streams; - + private Builder() { // force use of static builder() method } + /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public Builder awsAccessKeyId(String awsAccessKeyId) { Utils.checkNotNull(awsAccessKeyId, "awsAccessKeyId"); @@ -430,7 +471,8 @@ public Builder awsAccessKeyId(String awsAccessKeyId) { } /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public Builder awsAccessKeyId(Optional awsAccessKeyId) { Utils.checkNotNull(awsAccessKeyId, "awsAccessKeyId"); @@ -438,8 +480,10 @@ public Builder awsAccessKeyId(Optional awsAccessKeyId) { return this; } + /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public Builder awsSecretAccessKey(String awsSecretAccessKey) { Utils.checkNotNull(awsSecretAccessKey, "awsSecretAccessKey"); @@ -448,7 +492,8 @@ public Builder awsSecretAccessKey(String awsSecretAccessKey) { } /** - * In order to access private Buckets stored on AWS S3, this connector requires credentials with the proper permissions. If accessing publicly available data, this field is not necessary. + * In order to access private Buckets stored on AWS S3, this connector requires credentials with the + * proper permissions. If accessing publicly available data, this field is not necessary. */ public Builder awsSecretAccessKey(Optional awsSecretAccessKey) { Utils.checkNotNull(awsSecretAccessKey, "awsSecretAccessKey"); @@ -456,6 +501,7 @@ public Builder awsSecretAccessKey(Optional awsSecretAccessKey) { return this; } + /** * Name of the S3 bucket where the file(s) exist. */ @@ -465,6 +511,7 @@ public Builder bucket(String bucket) { return this; } + public Builder deliveryMethod(SourceS3DeliveryMethod deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = Optional.ofNullable(deliveryMethod); @@ -477,6 +524,7 @@ public Builder deliveryMethod(Optional deliver return this; } + /** * Endpoint to an S3 compatible service. Leave empty to use AWS. */ @@ -495,8 +543,10 @@ public Builder endpoint(Optional endpoint) { return this; } + /** - * AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. + * AWS region where the S3 bucket is located. If not provided, the region will be determined + * automatically. */ public Builder regionName(String regionName) { Utils.checkNotNull(regionName, "regionName"); @@ -505,7 +555,8 @@ public Builder regionName(String regionName) { } /** - * AWS region where the S3 bucket is located. If not provided, the region will be determined automatically. + * AWS region where the S3 bucket is located. If not provided, the region will be determined + * automatically. */ public Builder regionName(Optional regionName) { Utils.checkNotNull(regionName, "regionName"); @@ -513,8 +564,11 @@ public Builder regionName(Optional regionName) { return this; } + /** - * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. + * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations + * requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in + * the URL of this page. */ public Builder roleArn(String roleArn) { Utils.checkNotNull(roleArn, "roleArn"); @@ -523,7 +577,9 @@ public Builder roleArn(String roleArn) { } /** - * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in the URL of this page. + * Specifies the Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations + * requested using this profile. Set the External ID to the Airbyte workspace ID, which can be found in + * the URL of this page. */ public Builder roleArn(Optional roleArn) { Utils.checkNotNull(roleArn, "roleArn"); @@ -531,8 +587,10 @@ public Builder roleArn(Optional roleArn) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -541,7 +599,8 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -549,31 +608,31 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public Builder streams(List streams) { Utils.checkNotNull(streams, "streams"); this.streams = streams; return this; } - + public SourceS3 build() { if (endpoint == null) { endpoint = _SINGLETON_VALUE_Endpoint.value(); } + return new SourceS3( - awsAccessKeyId, - awsSecretAccessKey, - bucket, - deliveryMethod, - endpoint, - regionName, - roleArn, - startDate, - streams); + awsAccessKeyId, awsSecretAccessKey, bucket, + deliveryMethod, endpoint, regionName, + roleArn, startDate, streams); } + private static final LazySingletonValue> _SINGLETON_VALUE_Endpoint = new LazySingletonValue<>( "endpoint", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Autogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Autogenerated.java index b2c0b14f6..47ab4e0fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Autogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Autogenerated.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceS3Autogenerated { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceS3Autogenerated { @JsonCreator public SourceS3Autogenerated() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionType() { return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceS3Autogenerated other = (SourceS3Autogenerated) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceS3Autogenerated.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceS3Autogenerated build() { + return new SourceS3Autogenerated( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3AvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3AvroFormat.java index ed713d190..fa5e3351c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3AvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3AvroFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceS3AvroFormat { +public class SourceS3AvroFormat { /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("double_as_string") private Optional doubleAsString; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceS3AvroFormat() { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonIgnore public Optional doubleAsString() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceS3AvroFormat withDoubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -70,8 +74,10 @@ public SourceS3AvroFormat withDoubleAsString(boolean doubleAsString) { return this; } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceS3AvroFormat withDoubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -79,7 +85,6 @@ public SourceS3AvroFormat withDoubleAsString(Optional doubleAsString) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceS3AvroFormat other = (SourceS3AvroFormat) o; return - Objects.deepEquals(this.doubleAsString, other.doubleAsString) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.doubleAsString, other.doubleAsString) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - doubleAsString, - filetype); + return Utils.enhancedHash( + doubleAsString, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "doubleAsString", doubleAsString, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional doubleAsString; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -126,22 +133,25 @@ public Builder doubleAsString(boolean doubleAsString) { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); this.doubleAsString = doubleAsString; return this; } - + public SourceS3AvroFormat build() { if (doubleAsString == null) { doubleAsString = _SINGLETON_VALUE_DoubleAsString.value(); } + return new SourceS3AvroFormat( doubleAsString); } + private static final LazySingletonValue> _SINGLETON_VALUE_DoubleAsString = new LazySingletonValue<>( "double_as_string", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3CSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3CSVFormat.java index 2b9012fa8..1da5e34cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3CSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3CSVFormat.java @@ -17,13 +17,13 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceS3CSVFormat { +public class SourceS3CSVFormat { /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("delimiter") @@ -37,7 +37,9 @@ public class SourceS3CSVFormat { private Optional doubleQuote; /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("encoding") @@ -57,26 +59,35 @@ public class SourceS3CSVFormat { @JsonProperty("false_values") private Optional> falseValues; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition") private Optional headerDefinition; /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ignore_errors_on_fields_mismatch") private Optional ignoreErrorsOnFieldsMismatch; /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("null_values") @@ -97,14 +108,17 @@ public class SourceS3CSVFormat { private Optional skipRowsAfterHeader; /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_rows_before_header") private Optional skipRowsBeforeHeader; /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strings_can_be_null") @@ -162,11 +176,16 @@ public SourceS3CSVFormat( } public SourceS3CSVFormat() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonIgnore public Optional delimiter() { @@ -182,7 +201,9 @@ public Optional doubleQuote() { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonIgnore public Optional encoding() { @@ -213,7 +234,13 @@ public Optional filetype() { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -222,7 +249,8 @@ public Optional headerDefinition() { } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonIgnore public Optional ignoreErrorsOnFieldsMismatch() { @@ -230,7 +258,8 @@ public Optional ignoreErrorsOnFieldsMismatch() { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -255,7 +284,8 @@ public Optional skipRowsAfterHeader() { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonIgnore public Optional skipRowsBeforeHeader() { @@ -263,7 +293,9 @@ public Optional skipRowsBeforeHeader() { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonIgnore public Optional stringsCanBeNull() { @@ -279,12 +311,14 @@ public Optional> trueValues() { return (Optional>) trueValues; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceS3CSVFormat withDelimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -292,8 +326,10 @@ public SourceS3CSVFormat withDelimiter(String delimiter) { return this; } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceS3CSVFormat withDelimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -310,6 +346,7 @@ public SourceS3CSVFormat withDoubleQuote(boolean doubleQuote) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -320,7 +357,9 @@ public SourceS3CSVFormat withDoubleQuote(Optional doubleQuote) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceS3CSVFormat withEncoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -328,8 +367,11 @@ public SourceS3CSVFormat withEncoding(String encoding) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceS3CSVFormat withEncoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -346,6 +388,7 @@ public SourceS3CSVFormat withEscapeChar(String escapeChar) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -364,6 +407,7 @@ public SourceS3CSVFormat withFalseValues(List falseValues) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -374,7 +418,13 @@ public SourceS3CSVFormat withFalseValues(Optional> falseV } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceS3CSVFormat withHeaderDefinition(SourceS3CSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -382,8 +432,15 @@ public SourceS3CSVFormat withHeaderDefinition(SourceS3CSVHeaderDefinition header return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceS3CSVFormat withHeaderDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -392,7 +449,8 @@ public SourceS3CSVFormat withHeaderDefinition(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -410,7 +470,8 @@ public SourceS3CSVFormat withIgnoreErrorsOnFieldsMismatch(Optional igno } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public SourceS3CSVFormat withNullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -418,8 +479,10 @@ public SourceS3CSVFormat withNullValues(List nullValues) { return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public SourceS3CSVFormat withNullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -436,6 +499,7 @@ public SourceS3CSVFormat withQuoteChar(String quoteChar) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -454,6 +518,7 @@ public SourceS3CSVFormat withSkipRowsAfterHeader(long skipRowsAfterHeader) { return this; } + /** * The number of rows to skip after the header row. */ @@ -464,7 +529,8 @@ public SourceS3CSVFormat withSkipRowsAfterHeader(Optional skipRowsAfterHea } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceS3CSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -472,8 +538,10 @@ public SourceS3CSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceS3CSVFormat withSkipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -482,7 +550,9 @@ public SourceS3CSVFormat withSkipRowsBeforeHeader(Optional skipRowsBeforeH } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public SourceS3CSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -490,8 +560,11 @@ public SourceS3CSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public SourceS3CSVFormat withStringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -508,6 +581,7 @@ public SourceS3CSVFormat withTrueValues(List trueValues) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -517,7 +591,6 @@ public SourceS3CSVFormat withTrueValues(Optional> trueVal return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -528,39 +601,30 @@ public boolean equals(java.lang.Object o) { } SourceS3CSVFormat other = (SourceS3CSVFormat) o; return - Objects.deepEquals(this.delimiter, other.delimiter) && - Objects.deepEquals(this.doubleQuote, other.doubleQuote) && - Objects.deepEquals(this.encoding, other.encoding) && - Objects.deepEquals(this.escapeChar, other.escapeChar) && - Objects.deepEquals(this.falseValues, other.falseValues) && - Objects.deepEquals(this.filetype, other.filetype) && - Objects.deepEquals(this.headerDefinition, other.headerDefinition) && - Objects.deepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && - Objects.deepEquals(this.nullValues, other.nullValues) && - Objects.deepEquals(this.quoteChar, other.quoteChar) && - Objects.deepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && - Objects.deepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && - Objects.deepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && - Objects.deepEquals(this.trueValues, other.trueValues); + Utils.enhancedDeepEquals(this.delimiter, other.delimiter) && + Utils.enhancedDeepEquals(this.doubleQuote, other.doubleQuote) && + Utils.enhancedDeepEquals(this.encoding, other.encoding) && + Utils.enhancedDeepEquals(this.escapeChar, other.escapeChar) && + Utils.enhancedDeepEquals(this.falseValues, other.falseValues) && + Utils.enhancedDeepEquals(this.filetype, other.filetype) && + Utils.enhancedDeepEquals(this.headerDefinition, other.headerDefinition) && + Utils.enhancedDeepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && + Utils.enhancedDeepEquals(this.nullValues, other.nullValues) && + Utils.enhancedDeepEquals(this.quoteChar, other.quoteChar) && + Utils.enhancedDeepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && + Utils.enhancedDeepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && + Utils.enhancedDeepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && + Utils.enhancedDeepEquals(this.trueValues, other.trueValues); } @Override public int hashCode() { - return Objects.hash( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - filetype, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, - trueValues); + return Utils.enhancedHash( + delimiter, doubleQuote, encoding, + escapeChar, falseValues, filetype, + headerDefinition, ignoreErrorsOnFieldsMismatch, nullValues, + quoteChar, skipRowsAfterHeader, skipRowsBeforeHeader, + stringsCanBeNull, trueValues); } @Override @@ -581,41 +645,44 @@ public String toString() { "stringsCanBeNull", stringsCanBeNull, "trueValues", trueValues); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional delimiter; - + private Optional doubleQuote; - + private Optional encoding; - + private Optional escapeChar = Optional.empty(); - + private Optional> falseValues = Optional.empty(); - + private Optional headerDefinition = Optional.empty(); - + private Optional ignoreErrorsOnFieldsMismatch; - + private Optional> nullValues = Optional.empty(); - + private Optional quoteChar; - + private Optional skipRowsAfterHeader; - + private Optional skipRowsBeforeHeader; - + private Optional stringsCanBeNull; - + private Optional> trueValues = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -624,7 +691,8 @@ public Builder delimiter(String delimiter) { } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -632,6 +700,7 @@ public Builder delimiter(Optional delimiter) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -650,8 +719,11 @@ public Builder doubleQuote(Optional doubleQuote) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -660,7 +732,9 @@ public Builder encoding(String encoding) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -668,6 +742,7 @@ public Builder encoding(Optional encoding) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -686,6 +761,7 @@ public Builder escapeChar(Optional escapeChar) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -704,8 +780,15 @@ public Builder falseValues(Optional> falseValues) { return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(SourceS3CSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -714,7 +797,13 @@ public Builder headerDefinition(SourceS3CSVHeaderDefinition headerDefinition) { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -722,8 +811,10 @@ public Builder headerDefinition(Optional return this; } + /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ public Builder ignoreErrorsOnFieldsMismatch(boolean ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -732,7 +823,8 @@ public Builder ignoreErrorsOnFieldsMismatch(boolean ignoreErrorsOnFieldsMismatch } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -740,8 +832,10 @@ public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFiel return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -750,7 +844,8 @@ public Builder nullValues(List nullValues) { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -758,6 +853,7 @@ public Builder nullValues(Optional> nullValues) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -776,6 +872,7 @@ public Builder quoteChar(Optional quoteChar) { return this; } + /** * The number of rows to skip after the header row. */ @@ -794,8 +891,10 @@ public Builder skipRowsAfterHeader(Optional skipRowsAfterHeader) { return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -804,7 +903,8 @@ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -812,8 +912,11 @@ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -822,7 +925,9 @@ public Builder stringsCanBeNull(boolean stringsCanBeNull) { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -830,6 +935,7 @@ public Builder stringsCanBeNull(Optional stringsCanBeNull) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -847,7 +953,7 @@ public Builder trueValues(Optional> trueValues) { this.trueValues = trueValues; return this; } - + public SourceS3CSVFormat build() { if (delimiter == null) { delimiter = _SINGLETON_VALUE_Delimiter.value(); @@ -873,22 +979,16 @@ public SourceS3CSVFormat build() { if (stringsCanBeNull == null) { stringsCanBeNull = _SINGLETON_VALUE_StringsCanBeNull.value(); } + return new SourceS3CSVFormat( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, + delimiter, doubleQuote, encoding, + escapeChar, falseValues, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, + skipRowsAfterHeader, skipRowsBeforeHeader, stringsCanBeNull, trueValues); } + private static final LazySingletonValue> _SINGLETON_VALUE_Delimiter = new LazySingletonValue<>( "delimiter", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3CSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceS3CSVHeaderDefinition.java index 54a1cc34e..92a9e75ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3CSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3CSVHeaderDefinition.java @@ -14,12 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceS3CSVHeaderDefinition * - *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonDeserialize(using = SourceS3CSVHeaderDefinition._Deserializer.class) public class SourceS3CSVHeaderDefinition { @@ -78,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceS3CSVHeaderDefinition other = (SourceS3CSVHeaderDefinition) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3CopyRawFiles.java b/src/main/java/com/airbyte/api/models/shared/SourceS3CopyRawFiles.java index 317c50b2b..6e4f81b01 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3CopyRawFiles.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3CopyRawFiles.java @@ -15,13 +15,14 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * SourceS3CopyRawFiles * - *

    Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. + *

    Copy raw files without parsing their contents. Bits are copied into the destination exactly as they + * appeared in the source. Recommended for use with unstructured text data, non-text and compressed + * files. */ public class SourceS3CopyRawFiles { @@ -30,7 +31,9 @@ public class SourceS3CopyRawFiles { private Optional deliveryType; /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("preserve_directory_structure") @@ -55,19 +58,24 @@ public Optional deliveryType() { } /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ @JsonIgnore public Optional preserveDirectoryStructure() { return preserveDirectoryStructure; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public SourceS3CopyRawFiles withPreserveDirectoryStructure(boolean preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -75,8 +83,11 @@ public SourceS3CopyRawFiles withPreserveDirectoryStructure(boolean preserveDirec return this; } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public SourceS3CopyRawFiles withPreserveDirectoryStructure(Optional preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -84,7 +95,6 @@ public SourceS3CopyRawFiles withPreserveDirectoryStructure(Optional pre return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,15 +105,14 @@ public boolean equals(java.lang.Object o) { } SourceS3CopyRawFiles other = (SourceS3CopyRawFiles) o; return - Objects.deepEquals(this.deliveryType, other.deliveryType) && - Objects.deepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType) && + Utils.enhancedDeepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); } @Override public int hashCode() { - return Objects.hash( - deliveryType, - preserveDirectoryStructure); + return Utils.enhancedHash( + deliveryType, preserveDirectoryStructure); } @Override @@ -112,17 +121,21 @@ public String toString() { "deliveryType", deliveryType, "preserveDirectoryStructure", preserveDirectoryStructure); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional preserveDirectoryStructure; - + private Builder() { // force use of static builder() method } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -131,22 +144,26 @@ public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { } /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public Builder preserveDirectoryStructure(Optional preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); this.preserveDirectoryStructure = preserveDirectoryStructure; return this; } - + public SourceS3CopyRawFiles build() { if (preserveDirectoryStructure == null) { preserveDirectoryStructure = _SINGLETON_VALUE_PreserveDirectoryStructure.value(); } + return new SourceS3CopyRawFiles( preserveDirectoryStructure); } + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = new LazySingletonValue<>( "delivery_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryMethod.java index 5f7cf2e59..72f22f15f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceS3DeliveryMethod._Deserializer.class) public class SourceS3DeliveryMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceS3DeliveryMethod other = (SourceS3DeliveryMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java index a7ad70dd7..326b76c7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3DeliveryType.java @@ -14,7 +14,7 @@ public enum SourceS3DeliveryType { @JsonValue private final String value; - private SourceS3DeliveryType(String value) { + SourceS3DeliveryType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3ExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ExcelFormat.java index f4f62a1c5..f3659afcf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ExcelFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ExcelFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceS3ExcelFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceS3ExcelFormat { @JsonCreator public SourceS3ExcelFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceS3ExcelFormat other = (SourceS3ExcelFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceS3ExcelFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceS3ExcelFormat build() { + return new SourceS3ExcelFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java index 902065b68..2db614da0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3FileBasedStreamConfig.java @@ -17,33 +17,37 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceS3FileBasedStreamConfig { +public class SourceS3FileBasedStreamConfig { /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("days_to_sync_if_history_is_full") private Optional daysToSyncIfHistoryIsFull; /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonProperty("format") private SourceS3Format format; /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("globs") private Optional> globs; /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("input_schema") @@ -70,7 +74,8 @@ public class SourceS3FileBasedStreamConfig { private Optional schemaless; /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("validation_policy") @@ -107,11 +112,14 @@ public SourceS3FileBasedStreamConfig( public SourceS3FileBasedStreamConfig( SourceS3Format format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty(), Optional.empty()); } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonIgnore public Optional daysToSyncIfHistoryIsFull() { @@ -119,7 +127,8 @@ public Optional daysToSyncIfHistoryIsFull() { } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonIgnore public SourceS3Format format() { @@ -127,7 +136,9 @@ public SourceS3Format format() { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -136,7 +147,8 @@ public Optional> globs() { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonIgnore public Optional inputSchema() { @@ -168,7 +180,8 @@ public Optional schemaless() { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -176,12 +189,14 @@ public Optional validationPolicy() { return (Optional) validationPolicy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceS3FileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -189,8 +204,10 @@ public SourceS3FileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSy return this; } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceS3FileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -199,7 +216,8 @@ public SourceS3FileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optionalhere. */ public SourceS3FileBasedStreamConfig withGlobs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -216,8 +236,11 @@ public SourceS3FileBasedStreamConfig withGlobs(List globs) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public SourceS3FileBasedStreamConfig withGlobs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -226,7 +249,8 @@ public SourceS3FileBasedStreamConfig withGlobs(Optional> } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public SourceS3FileBasedStreamConfig withInputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -234,8 +258,10 @@ public SourceS3FileBasedStreamConfig withInputSchema(String inputSchema) { return this; } + /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public SourceS3FileBasedStreamConfig withInputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -261,6 +287,7 @@ public SourceS3FileBasedStreamConfig withRecentNFilesToReadForSchemaDiscovery(lo return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -279,6 +306,7 @@ public SourceS3FileBasedStreamConfig withSchemaless(boolean schemaless) { return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -289,7 +317,8 @@ public SourceS3FileBasedStreamConfig withSchemaless(Optional schemaless } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public SourceS3FileBasedStreamConfig withValidationPolicy(SourceS3ValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -297,8 +326,10 @@ public SourceS3FileBasedStreamConfig withValidationPolicy(SourceS3ValidationPoli return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public SourceS3FileBasedStreamConfig withValidationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -306,7 +337,6 @@ public SourceS3FileBasedStreamConfig withValidationPolicy(Optional daysToSyncIfHistoryIsFull; - + private SourceS3Format format; - + private Optional> globs = Optional.empty(); - + private Optional inputSchema = Optional.empty(); - + private String name; - + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); - + private Optional schemaless; - + private Optional validationPolicy; - + private Builder() { // force use of static builder() method } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -385,7 +413,8 @@ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -393,8 +422,10 @@ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFul return this; } + /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public Builder format(SourceS3Format format) { Utils.checkNotNull(format, "format"); @@ -402,8 +433,11 @@ public Builder format(SourceS3Format format) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -412,7 +446,9 @@ public Builder globs(List globs) { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -420,8 +456,10 @@ public Builder globs(Optional> globs) { return this; } + /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -430,7 +468,8 @@ public Builder inputSchema(String inputSchema) { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -438,6 +477,7 @@ public Builder inputSchema(Optional inputSchema) { return this; } + /** * The name of the stream. */ @@ -447,6 +487,7 @@ public Builder name(String name) { return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -465,6 +506,7 @@ public Builder recentNFilesToReadForSchemaDiscovery(Optional recentNFilesT return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -483,8 +525,10 @@ public Builder schemaless(Optional schemaless) { return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(SourceS3ValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -493,14 +537,15 @@ public Builder validationPolicy(SourceS3ValidationPolicy validationPolicy) { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); this.validationPolicy = validationPolicy; return this; } - + public SourceS3FileBasedStreamConfig build() { if (daysToSyncIfHistoryIsFull == null) { daysToSyncIfHistoryIsFull = _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull.value(); @@ -511,17 +556,14 @@ public SourceS3FileBasedStreamConfig build() { if (validationPolicy == null) { validationPolicy = _SINGLETON_VALUE_ValidationPolicy.value(); } + return new SourceS3FileBasedStreamConfig( - daysToSyncIfHistoryIsFull, - format, - globs, - inputSchema, - name, - recentNFilesToReadForSchemaDiscovery, - schemaless, - validationPolicy); + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, recentNFilesToReadForSchemaDiscovery, + schemaless, validationPolicy); } + private static final LazySingletonValue> _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull = new LazySingletonValue<>( "days_to_sync_if_history_is_full", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java index 581dc2971..42d5102f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Filetype.java @@ -14,7 +14,7 @@ public enum SourceS3Filetype { @JsonValue private final String value; - private SourceS3Filetype(String value) { + SourceS3Filetype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java index b8ede11ee..8dd19e372 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Format.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceS3Format * - *

    The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + *

    The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonDeserialize(using = SourceS3Format._Deserializer.class) public class SourceS3Format { @@ -96,12 +96,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceS3Format other = (SourceS3Format) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3FromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceS3FromCSV.java index 092b5efc9..713658ba3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3FromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3FromCSV.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceS3FromCSV { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceS3FromCSV { @JsonCreator public SourceS3FromCSV() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionType() { return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceS3FromCSV other = (SourceS3FromCSV) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceS3FromCSV.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceS3FromCSV build() { + return new SourceS3FromCSV( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java index d3146ac1f..04bb81781 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3HeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceS3HeaderDefinitionType { @JsonValue private final String value; - private SourceS3HeaderDefinitionType(String value) { + SourceS3HeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3JsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3JsonlFormat.java index 5cec36bb7..6c5cbbe94 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3JsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3JsonlFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceS3JsonlFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceS3JsonlFormat { @JsonCreator public SourceS3JsonlFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceS3JsonlFormat other = (SourceS3JsonlFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceS3JsonlFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceS3JsonlFormat build() { + return new SourceS3JsonlFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Local.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Local.java index fa1288db2..c9e263dfd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Local.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Local.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class SourceS3Local { @JsonCreator public SourceS3Local() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } SourceS3Local other = (SourceS3Local) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(SourceS3Local.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceS3Local build() { + return new SourceS3Local( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java index 3752a64fd..9c9bba454 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Mode.java @@ -14,7 +14,7 @@ public enum SourceS3Mode { @JsonValue private final String value; - private SourceS3Mode(String value) { + SourceS3Mode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3ParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ParquetFormat.java index 71d8150b2..cef9e1293 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ParquetFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceS3ParquetFormat { +public class SourceS3ParquetFormat { /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("decimal_as_float") private Optional decimalAsFloat; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceS3ParquetFormat() { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonIgnore public Optional decimalAsFloat() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceS3ParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -70,8 +74,10 @@ public SourceS3ParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { return this; } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceS3ParquetFormat withDecimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -79,7 +85,6 @@ public SourceS3ParquetFormat withDecimalAsFloat(Optional decimalAsFloat return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceS3ParquetFormat other = (SourceS3ParquetFormat) o; return - Objects.deepEquals(this.decimalAsFloat, other.decimalAsFloat) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.decimalAsFloat, other.decimalAsFloat) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - decimalAsFloat, - filetype); + return Utils.enhancedHash( + decimalAsFloat, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "decimalAsFloat", decimalAsFloat, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional decimalAsFloat; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -126,22 +133,25 @@ public Builder decimalAsFloat(boolean decimalAsFloat) { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); this.decimalAsFloat = decimalAsFloat; return this; } - + public SourceS3ParquetFormat build() { if (decimalAsFloat == null) { decimalAsFloat = _SINGLETON_VALUE_DecimalAsFloat.value(); } + return new SourceS3ParquetFormat( decimalAsFloat); } + private static final LazySingletonValue> _SINGLETON_VALUE_DecimalAsFloat = new LazySingletonValue<>( "decimal_as_float", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java index 9d6ce0f5f..a81a46d9b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ParsingStrategy.java @@ -11,7 +11,12 @@ /** * SourceS3ParsingStrategy * - *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public enum SourceS3ParsingStrategy { AUTO("auto"), @@ -22,7 +27,7 @@ public enum SourceS3ParsingStrategy { @JsonValue private final String value; - private SourceS3ParsingStrategy(String value) { + SourceS3ParsingStrategy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3Processing.java b/src/main/java/com/airbyte/api/models/shared/SourceS3Processing.java index bdf1b9341..fe98a6807 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3Processing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3Processing.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceS3Processing @@ -66,12 +65,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceS3Processing other = (SourceS3Processing) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3ReplicateRecords.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ReplicateRecords.java index d0d1a2abe..86e515bfd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ReplicateRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ReplicateRecords.java @@ -14,13 +14,16 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * SourceS3ReplicateRecords * - *

    Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. + *

    Recommended - Extract and load structured records into your destination of choice. This is the + * classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or + * files from a structured schema. + * + *

    Data can be flattened, typed and deduped depending on the destination. */ public class SourceS3ReplicateRecords { @@ -30,7 +33,6 @@ public class SourceS3ReplicateRecords { @JsonCreator public SourceS3ReplicateRecords() { - this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); } @@ -40,11 +42,11 @@ public Optional deliveryType() { return (Optional) deliveryType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +57,12 @@ public boolean equals(java.lang.Object o) { } SourceS3ReplicateRecords other = (SourceS3ReplicateRecords) o; return - Objects.deepEquals(this.deliveryType, other.deliveryType); + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( deliveryType); } @@ -69,18 +71,21 @@ public String toString() { return Utils.toString(SourceS3ReplicateRecords.class, "deliveryType", deliveryType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceS3ReplicateRecords build() { + return new SourceS3ReplicateRecords( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = new LazySingletonValue<>( "delivery_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java b/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java index b38f79be0..cb74ecaab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3S3.java @@ -14,7 +14,7 @@ public enum SourceS3S3 { @JsonValue private final String value; - private SourceS3S3(String value) { + SourceS3S3(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasDeliveryType.java index 26a733cf9..5553d76b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasDeliveryType.java @@ -14,7 +14,7 @@ public enum SourceS3SchemasDeliveryType { @JsonValue private final String value; - private SourceS3SchemasDeliveryType(String value) { + SourceS3SchemasDeliveryType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java index 233087f98..4cda58e25 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasFiletype.java @@ -14,7 +14,7 @@ public enum SourceS3SchemasFiletype { @JsonValue private final String value; - private SourceS3SchemasFiletype(String value) { + SourceS3SchemasFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java index 1ce0612b0..93a71923d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceS3SchemasHeaderDefinitionType { @JsonValue private final String value; - private SourceS3SchemasHeaderDefinitionType(String value) { + SourceS3SchemasHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java index b61fea534..eca1ca232 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFiletype.java @@ -14,7 +14,7 @@ public enum SourceS3SchemasStreamsFiletype { @JsonValue private final String value; - private SourceS3SchemasStreamsFiletype(String value) { + SourceS3SchemasStreamsFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFiletype.java index c3f678318..785122bcc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceS3SchemasStreamsFormatFiletype { @JsonValue private final String value; - private SourceS3SchemasStreamsFormatFiletype(String value) { + SourceS3SchemasStreamsFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat6Filetype.java index fad76e214..1b5d70d4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormat6Filetype.java @@ -14,7 +14,7 @@ public enum SourceS3SchemasStreamsFormatFormat6Filetype { @JsonValue private final String value; - private SourceS3SchemasStreamsFormatFormat6Filetype(String value) { + SourceS3SchemasStreamsFormatFormat6Filetype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java index e1f5099bc..aff7e24f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsFormatFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceS3SchemasStreamsFormatFormatFiletype { @JsonValue private final String value; - private SourceS3SchemasStreamsFormatFormatFiletype(String value) { + SourceS3SchemasStreamsFormatFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsHeaderDefinitionType.java index 6d49dd3ce..bdf8ea9c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3SchemasStreamsHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceS3SchemasStreamsHeaderDefinitionType { @JsonValue private final String value; - private SourceS3SchemasStreamsHeaderDefinitionType(String value) { + SourceS3SchemasStreamsHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java index 1c9a00097..2e8dac441 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3UnstructuredDocumentFormat.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -37,14 +36,20 @@ public class SourceS3UnstructuredDocumentFormat { private Optional processing; /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_unprocessable_files") private Optional skipUnprocessableFiles; /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strategy") @@ -84,7 +89,8 @@ public Optional processing() { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonIgnore public Optional skipUnprocessableFiles() { @@ -92,7 +98,12 @@ public Optional skipUnprocessableFiles() { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @SuppressWarnings("unchecked") @JsonIgnore @@ -100,9 +111,10 @@ public Optional strategy() { return (Optional) strategy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Processing configuration @@ -113,6 +125,7 @@ public SourceS3UnstructuredDocumentFormat withProcessing(SourceS3Processing proc return this; } + /** * Processing configuration */ @@ -123,7 +136,8 @@ public SourceS3UnstructuredDocumentFormat withProcessing(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -141,7 +157,12 @@ public SourceS3UnstructuredDocumentFormat withSkipUnprocessableFiles(Optional`hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceS3UnstructuredDocumentFormat withStrategy(SourceS3ParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -149,8 +170,14 @@ public SourceS3UnstructuredDocumentFormat withStrategy(SourceS3ParsingStrategy s return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceS3UnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -158,7 +185,6 @@ public SourceS3UnstructuredDocumentFormat withStrategy(Optional processing = Optional.empty(); - + private Optional skipUnprocessableFiles; - + private Optional strategy; - + private Builder() { // force use of static builder() method } + /** * Processing configuration */ @@ -223,8 +249,10 @@ public Builder processing(Optional processing) { return this; } + /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -233,7 +261,8 @@ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -241,8 +270,14 @@ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(SourceS3ParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -251,14 +286,19 @@ public Builder strategy(SourceS3ParsingStrategy strategy) { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; } - + public SourceS3UnstructuredDocumentFormat build() { if (skipUnprocessableFiles == null) { skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); @@ -266,12 +306,12 @@ public SourceS3UnstructuredDocumentFormat build() { if (strategy == null) { strategy = _SINGLETON_VALUE_Strategy.value(); } + return new SourceS3UnstructuredDocumentFormat( - processing, - skipUnprocessableFiles, - strategy); + processing, skipUnprocessableFiles, strategy); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3UserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceS3UserProvided.java index 466a543fd..86558a477 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3UserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3UserProvided.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceS3UserProvided { +public class SourceS3UserProvided { /** * The column names that will be used while emitting the CSV records */ @JsonProperty("column_names") private List columnNames; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition_type") private Optional headerDefinitionType; @@ -52,9 +52,10 @@ public Optional headerDefinitionType return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The column names that will be used while emitting the CSV records @@ -65,7 +66,6 @@ public SourceS3UserProvided withColumnNames(List columnNames) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -76,15 +76,14 @@ public boolean equals(java.lang.Object o) { } SourceS3UserProvided other = (SourceS3UserProvided) o; return - Objects.deepEquals(this.columnNames, other.columnNames) && - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.columnNames, other.columnNames) && + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( - columnNames, - headerDefinitionType); + return Utils.enhancedHash( + columnNames, headerDefinitionType); } @Override @@ -93,15 +92,17 @@ public String toString() { "columnNames", columnNames, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List columnNames; - + private Builder() { // force use of static builder() method } + /** * The column names that will be used while emitting the CSV records */ @@ -110,12 +111,14 @@ public Builder columnNames(List columnNames) { this.columnNames = columnNames; return this; } - + public SourceS3UserProvided build() { + return new SourceS3UserProvided( columnNames); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java index 0dd4ef7e4..fe9e2f082 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceS3ValidationPolicy.java @@ -11,7 +11,8 @@ /** * SourceS3ValidationPolicy * - *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public enum SourceS3ValidationPolicy { EMIT_RECORD("Emit Record"), @@ -21,7 +22,7 @@ public enum SourceS3ValidationPolicy { @JsonValue private final String value; - private SourceS3ValidationPolicy(String value) { + SourceS3ValidationPolicy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSafetyculture.java b/src/main/java/com/airbyte/api/models/shared/SourceSafetyculture.java index 14e1ca0b7..77354b076 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSafetyculture.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSafetyculture.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceSafetyculture { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Safetyculture sourceType; @@ -39,9 +40,10 @@ public Safetyculture sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSafetyculture withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceSafetyculture withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceSafetyculture other = (SourceSafetyculture) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceSafetyculture build() { + return new SourceSafetyculture( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSageHr.java b/src/main/java/com/airbyte/api/models/shared/SourceSageHr.java index 16b461c90..67edeeae1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSageHr.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSageHr.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceSageHr { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private SageHr sourceType; + @JsonProperty("subdomain") private String subdomain; @@ -50,9 +52,10 @@ public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSageHr withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -66,7 +69,6 @@ public SourceSageHr withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceSageHr other = (SourceSageHr) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - subdomain); + return Utils.enhancedHash( + apiKey, sourceType, subdomain); } @Override @@ -97,35 +97,39 @@ public String toString() { "sourceType", sourceType, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String subdomain; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder subdomain(String subdomain) { Utils.checkNotNull(subdomain, "subdomain"); this.subdomain = subdomain; return this; } - + public SourceSageHr build() { + return new SourceSageHr( - apiKey, - subdomain); + apiKey, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesflare.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesflare.java index 50eb29124..3085b3510 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesflare.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesflare.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSalesflare { +public class SourceSalesflare { /** * Enter you api key like this : Bearer YOUR_API_KEY */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Salesflare sourceType; @@ -45,9 +45,10 @@ public Salesflare sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Enter you api key like this : Bearer YOUR_API_KEY @@ -58,7 +59,6 @@ public SourceSalesflare withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceSalesflare other = (SourceSalesflare) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * Enter you api key like this : Bearer YOUR_API_KEY */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceSalesflare build() { + return new SourceSalesflare( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesforce.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesforce.java index fe274f297..0e2213913 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesforce.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesforce.java @@ -17,9 +17,9 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceSalesforce { @JsonInclude(Include.NON_ABSENT) @@ -27,13 +27,15 @@ public class SourceSalesforce { private Optional authType; /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> + * Enter your Salesforce developer application's Client ID */ @JsonProperty("client_id") private String clientId; /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> + * Enter your Salesforce developer application's Client secret */ @JsonProperty("client_secret") private String clientSecret; @@ -46,23 +48,30 @@ public class SourceSalesforce { private Optional forceUseBulkApi; /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> + * Toggle if you're using a Salesforce + * Sandbox */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("is_sandbox") private Optional isSandbox; /** - * Enter your application's <a href="https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_refresh_token_flow.htm">Salesforce Refresh Token</a> used for Airbyte to access your Salesforce account. + * Enter your application's Salesforce + * Refresh Token used for Airbyte to access your Salesforce account. */ @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private SourceSalesforceSalesforce sourceType; /** - * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will replicate the data updated on and after this date. If this field is blank, Airbyte will replicate the data for last two years. + * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will + * replicate the data updated on and after this date. If this field is blank, Airbyte will replicate + * the data for last two years. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -76,7 +85,10 @@ public class SourceSalesforce { private Optional streamSliceStep; /** - * Add filters to select only required stream based on `SObject` name. Use this field to filter which tables are displayed by this connector. This is useful if your Salesforce account has a large number of tables (>1000), in which case you may find it easier to navigate the UI and speed up the connector's performance if you restrict the tables displayed by this connector. + * Add filters to select only required stream based on `SObject` name. Use this field to filter which + * tables are displayed by this connector. This is useful if your Salesforce account has a large number + * of tables (>1000), in which case you may find it easier to navigate the UI and speed up the + * connector's performance if you restrict the tables displayed by this connector. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("streams_criteria") @@ -116,7 +128,9 @@ public SourceSalesforce( String clientId, String clientSecret, String refreshToken) { - this(clientId, clientSecret, Optional.empty(), Optional.empty(), refreshToken, Optional.empty(), Optional.empty(), Optional.empty()); + this(clientId, clientSecret, Optional.empty(), + Optional.empty(), refreshToken, Optional.empty(), + Optional.empty(), Optional.empty()); } @SuppressWarnings("unchecked") @@ -126,7 +140,8 @@ public Optional authType() { } /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> + * Enter your Salesforce developer application's Client ID */ @JsonIgnore public String clientId() { @@ -134,7 +149,8 @@ public String clientId() { } /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> + * Enter your Salesforce developer application's Client secret */ @JsonIgnore public String clientSecret() { @@ -150,7 +166,9 @@ public Optional forceUseBulkApi() { } /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> + * Toggle if you're using a Salesforce + * Sandbox */ @JsonIgnore public Optional isSandbox() { @@ -158,7 +176,9 @@ public Optional isSandbox() { } /** - * Enter your application's <a href="https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_refresh_token_flow.htm">Salesforce Refresh Token</a> used for Airbyte to access your Salesforce account. + * Enter your application's Salesforce + * Refresh Token used for Airbyte to access your Salesforce account. */ @JsonIgnore public String refreshToken() { @@ -171,7 +191,9 @@ public SourceSalesforceSalesforce sourceType() { } /** - * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will replicate the data updated on and after this date. If this field is blank, Airbyte will replicate the data for last two years. + * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will + * replicate the data updated on and after this date. If this field is blank, Airbyte will replicate + * the data for last two years. */ @JsonIgnore public Optional startDate() { @@ -187,7 +209,10 @@ public Optional streamSliceStep() { } /** - * Add filters to select only required stream based on `SObject` name. Use this field to filter which tables are displayed by this connector. This is useful if your Salesforce account has a large number of tables (>1000), in which case you may find it easier to navigate the UI and speed up the connector's performance if you restrict the tables displayed by this connector. + * Add filters to select only required stream based on `SObject` name. Use this field to filter which + * tables are displayed by this connector. This is useful if your Salesforce account has a large number + * of tables (>1000), in which case you may find it easier to navigate the UI and speed up the + * connector's performance if you restrict the tables displayed by this connector. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -195,12 +220,14 @@ public Optional> streamsCriteria() { return (Optional>) streamsCriteria; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> + * Enter your Salesforce developer application's Client ID */ public SourceSalesforce withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -209,7 +236,8 @@ public SourceSalesforce withClientId(String clientId) { } /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> + * Enter your Salesforce developer application's Client secret */ public SourceSalesforce withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -226,6 +254,7 @@ public SourceSalesforce withForceUseBulkApi(boolean forceUseBulkApi) { return this; } + /** * Toggle to use Bulk API (this might cause empty fields for some streams) */ @@ -236,7 +265,9 @@ public SourceSalesforce withForceUseBulkApi(Optional forceUseBulkApi) { } /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> + * Toggle if you're using a Salesforce + * Sandbox */ public SourceSalesforce withIsSandbox(boolean isSandbox) { Utils.checkNotNull(isSandbox, "isSandbox"); @@ -244,8 +275,11 @@ public SourceSalesforce withIsSandbox(boolean isSandbox) { return this; } + /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> + * Toggle if you're using a Salesforce + * Sandbox */ public SourceSalesforce withIsSandbox(Optional isSandbox) { Utils.checkNotNull(isSandbox, "isSandbox"); @@ -254,7 +288,9 @@ public SourceSalesforce withIsSandbox(Optional isSandbox) { } /** - * Enter your application's <a href="https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_refresh_token_flow.htm">Salesforce Refresh Token</a> used for Airbyte to access your Salesforce account. + * Enter your application's Salesforce + * Refresh Token used for Airbyte to access your Salesforce account. */ public SourceSalesforce withRefreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -263,7 +299,9 @@ public SourceSalesforce withRefreshToken(String refreshToken) { } /** - * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will replicate the data updated on and after this date. If this field is blank, Airbyte will replicate the data for last two years. + * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will + * replicate the data updated on and after this date. If this field is blank, Airbyte will replicate + * the data for last two years. */ public SourceSalesforce withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -271,8 +309,11 @@ public SourceSalesforce withStartDate(OffsetDateTime startDate) { return this; } + /** - * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will replicate the data updated on and after this date. If this field is blank, Airbyte will replicate the data for last two years. + * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will + * replicate the data updated on and after this date. If this field is blank, Airbyte will replicate + * the data for last two years. */ public SourceSalesforce withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -289,6 +330,7 @@ public SourceSalesforce withStreamSliceStep(String streamSliceStep) { return this; } + /** * The size of the time window (ISO8601 duration) to slice requests. */ @@ -299,7 +341,10 @@ public SourceSalesforce withStreamSliceStep(Optional streamSliceStep) { } /** - * Add filters to select only required stream based on `SObject` name. Use this field to filter which tables are displayed by this connector. This is useful if your Salesforce account has a large number of tables (>1000), in which case you may find it easier to navigate the UI and speed up the connector's performance if you restrict the tables displayed by this connector. + * Add filters to select only required stream based on `SObject` name. Use this field to filter which + * tables are displayed by this connector. This is useful if your Salesforce account has a large number + * of tables (>1000), in which case you may find it easier to navigate the UI and speed up the + * connector's performance if you restrict the tables displayed by this connector. */ public SourceSalesforce withStreamsCriteria(List streamsCriteria) { Utils.checkNotNull(streamsCriteria, "streamsCriteria"); @@ -307,8 +352,12 @@ public SourceSalesforce withStreamsCriteria(List streamsCriteri return this; } + /** - * Add filters to select only required stream based on `SObject` name. Use this field to filter which tables are displayed by this connector. This is useful if your Salesforce account has a large number of tables (>1000), in which case you may find it easier to navigate the UI and speed up the connector's performance if you restrict the tables displayed by this connector. + * Add filters to select only required stream based on `SObject` name. Use this field to filter which + * tables are displayed by this connector. This is useful if your Salesforce account has a large number + * of tables (>1000), in which case you may find it easier to navigate the UI and speed up the + * connector's performance if you restrict the tables displayed by this connector. */ public SourceSalesforce withStreamsCriteria(Optional> streamsCriteria) { Utils.checkNotNull(streamsCriteria, "streamsCriteria"); @@ -316,7 +365,6 @@ public SourceSalesforce withStreamsCriteria(Optional forceUseBulkApi; - + private Optional isSandbox; - + private String refreshToken; - + private Optional startDate = Optional.empty(); - + private Optional streamSliceStep; - + private Optional> streamsCriteria = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client ID</a> + * Enter your Salesforce developer application's Client ID */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -400,8 +445,10 @@ public Builder clientId(String clientId) { return this; } + /** - * Enter your Salesforce developer application's <a href="https://developer.salesforce.com/forums/?id=9062I000000DLgbQAG">Client secret</a> + * Enter your Salesforce developer application's Client secret */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -409,6 +456,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Toggle to use Bulk API (this might cause empty fields for some streams) */ @@ -427,8 +475,11 @@ public Builder forceUseBulkApi(Optional forceUseBulkApi) { return this; } + /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> + * Toggle if you're using a Salesforce + * Sandbox */ public Builder isSandbox(boolean isSandbox) { Utils.checkNotNull(isSandbox, "isSandbox"); @@ -437,7 +488,9 @@ public Builder isSandbox(boolean isSandbox) { } /** - * Toggle if you're using a <a href="https://help.salesforce.com/s/articleView?id=sf.deploy_sandboxes_parent.htm&type=5">Salesforce Sandbox</a> + * Toggle if you're using a Salesforce + * Sandbox */ public Builder isSandbox(Optional isSandbox) { Utils.checkNotNull(isSandbox, "isSandbox"); @@ -445,8 +498,11 @@ public Builder isSandbox(Optional isSandbox) { return this; } + /** - * Enter your application's <a href="https://developer.salesforce.com/docs/atlas.en-us.mobile_sdk.meta/mobile_sdk/oauth_refresh_token_flow.htm">Salesforce Refresh Token</a> used for Airbyte to access your Salesforce account. + * Enter your application's Salesforce + * Refresh Token used for Airbyte to access your Salesforce account. */ public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -454,8 +510,11 @@ public Builder refreshToken(String refreshToken) { return this; } + /** - * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will replicate the data updated on and after this date. If this field is blank, Airbyte will replicate the data for last two years. + * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will + * replicate the data updated on and after this date. If this field is blank, Airbyte will replicate + * the data for last two years. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -464,7 +523,9 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will replicate the data updated on and after this date. If this field is blank, Airbyte will replicate the data for last two years. + * Enter the date (or date-time) in the YYYY-MM-DD or YYYY-MM-DDTHH:mm:ssZ format. Airbyte will + * replicate the data updated on and after this date. If this field is blank, Airbyte will replicate + * the data for last two years. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -472,6 +533,7 @@ public Builder startDate(Optional startDate) { return this; } + /** * The size of the time window (ISO8601 duration) to slice requests. */ @@ -490,8 +552,12 @@ public Builder streamSliceStep(Optional streamSliceStep) { return this; } + /** - * Add filters to select only required stream based on `SObject` name. Use this field to filter which tables are displayed by this connector. This is useful if your Salesforce account has a large number of tables (>1000), in which case you may find it easier to navigate the UI and speed up the connector's performance if you restrict the tables displayed by this connector. + * Add filters to select only required stream based on `SObject` name. Use this field to filter which + * tables are displayed by this connector. This is useful if your Salesforce account has a large number + * of tables (>1000), in which case you may find it easier to navigate the UI and speed up the + * connector's performance if you restrict the tables displayed by this connector. */ public Builder streamsCriteria(List streamsCriteria) { Utils.checkNotNull(streamsCriteria, "streamsCriteria"); @@ -500,14 +566,17 @@ public Builder streamsCriteria(List streamsCriteria) { } /** - * Add filters to select only required stream based on `SObject` name. Use this field to filter which tables are displayed by this connector. This is useful if your Salesforce account has a large number of tables (>1000), in which case you may find it easier to navigate the UI and speed up the connector's performance if you restrict the tables displayed by this connector. + * Add filters to select only required stream based on `SObject` name. Use this field to filter which + * tables are displayed by this connector. This is useful if your Salesforce account has a large number + * of tables (>1000), in which case you may find it easier to navigate the UI and speed up the + * connector's performance if you restrict the tables displayed by this connector. */ public Builder streamsCriteria(Optional> streamsCriteria) { Utils.checkNotNull(streamsCriteria, "streamsCriteria"); this.streamsCriteria = streamsCriteria; return this; } - + public SourceSalesforce build() { if (forceUseBulkApi == null) { forceUseBulkApi = _SINGLETON_VALUE_ForceUseBulkApi.value(); @@ -518,17 +587,14 @@ public SourceSalesforce build() { if (streamSliceStep == null) { streamSliceStep = _SINGLETON_VALUE_StreamSliceStep.value(); } + return new SourceSalesforce( - clientId, - clientSecret, - forceUseBulkApi, - isSandbox, - refreshToken, - startDate, - streamSliceStep, - streamsCriteria); + clientId, clientSecret, forceUseBulkApi, + isSandbox, refreshToken, startDate, + streamSliceStep, streamsCriteria); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesforceAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesforceAuthType.java index bc662a10d..6bd220173 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesforceAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesforceAuthType.java @@ -14,7 +14,7 @@ public enum SourceSalesforceAuthType { @JsonValue private final String value; - private SourceSalesforceAuthType(String value) { + SourceSalesforceAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java index 0918ae227..7eb1b6dcc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesforceSalesforce.java @@ -14,7 +14,7 @@ public enum SourceSalesforceSalesforce { @JsonValue private final String value; - private SourceSalesforceSalesforce(String value) { + SourceSalesforceSalesforce(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesloft.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesloft.java index b360a15c5..e8578232a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesloft.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesloft.java @@ -12,18 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceSalesloft { @JsonProperty("credentials") private SourceSalesloftCredentials credentials; + @JsonProperty("sourceType") private Salesloft sourceType; /** - * The date from which you'd like to replicate data for Salesloft API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Salesloft API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -50,16 +52,18 @@ public Salesloft sourceType() { } /** - * The date from which you'd like to replicate data for Salesloft API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Salesloft API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSalesloft withCredentials(SourceSalesloftCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -68,7 +72,8 @@ public SourceSalesloft withCredentials(SourceSalesloftCredentials credentials) { } /** - * The date from which you'd like to replicate data for Salesloft API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Salesloft API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ public SourceSalesloft withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -76,7 +81,6 @@ public SourceSalesloft withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceSalesloft other = (SourceSalesloft) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - credentials, - sourceType, - startDate); + return Utils.enhancedHash( + credentials, sourceType, startDate); } @Override @@ -107,38 +109,43 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceSalesloftCredentials credentials; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceSalesloftCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } + /** - * The date from which you'd like to replicate data for Salesloft API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Salesloft API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSalesloft build() { + return new SourceSalesloft( - credentials, - startDate); + credentials, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java index 89dfee542..1fa6029b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftAuthType.java @@ -14,7 +14,7 @@ public enum SourceSalesloftAuthType { @JsonValue private final String value; - private SourceSalesloftAuthType(String value) { + SourceSalesloftAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftCredentials.java index 97019ec50..abb937407 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftCredentials.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceSalesloftCredentials._Deserializer.class) public class SourceSalesloftCredentials { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSalesloftCredentials other = (SourceSalesloftCredentials) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java index eeedbd70a..d433fb0cd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSalesloftSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceSalesloftSchemasAuthType { @JsonValue private final String value; - private SourceSalesloftSchemasAuthType(String value) { + SourceSalesloftSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapFieldglass.java b/src/main/java/com/airbyte/api/models/shared/SourceSapFieldglass.java index a558cf1bf..e15f73da8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapFieldglass.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapFieldglass.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSapFieldglass { +public class SourceSapFieldglass { /** * API Key */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private SapFieldglass sourceType; @@ -45,9 +45,10 @@ public SapFieldglass sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -58,7 +59,6 @@ public SourceSapFieldglass withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceSapFieldglass other = (SourceSapFieldglass) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceSapFieldglass build() { + return new SourceSapFieldglass( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterprise.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterprise.java index b035c43b2..bcd2133f6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterprise.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterprise.java @@ -17,13 +17,15 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSapHanaEnterprise { +public class SourceSapHanaEnterprise { /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("check_privileges") @@ -62,7 +64,9 @@ public class SourceSapHanaEnterprise { private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -91,11 +95,13 @@ public class SourceSapHanaEnterprise { @JsonProperty("schemas") private Optional> schemas; + @JsonProperty("sourceType") private SapHanaEnterprise sourceType; /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonProperty("tunnel_method") private SourceSapHanaEnterpriseSSHTunnelMethod tunnelMethod; @@ -153,11 +159,17 @@ public SourceSapHanaEnterprise( String host, SourceSapHanaEnterpriseSSHTunnelMethod tunnelMethod, String username) { - this(Optional.empty(), Optional.empty(), Optional.empty(), cursor, encryption, host, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), tunnelMethod, username); + this(Optional.empty(), Optional.empty(), Optional.empty(), + cursor, encryption, host, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), tunnelMethod, username); } /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ @JsonIgnore public Optional checkPrivileges() { @@ -205,7 +217,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -245,7 +259,8 @@ public SapHanaEnterprise sourceType() { } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonIgnore public SourceSapHanaEnterpriseSSHTunnelMethod tunnelMethod() { @@ -260,12 +275,16 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public SourceSapHanaEnterprise withCheckPrivileges(boolean checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -273,8 +292,12 @@ public SourceSapHanaEnterprise withCheckPrivileges(boolean checkPrivileges) { return this; } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public SourceSapHanaEnterprise withCheckPrivileges(Optional checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -291,6 +314,7 @@ public SourceSapHanaEnterprise withCheckpointTargetIntervalSeconds(long checkpoi return this; } + /** * How often (in seconds) a stream should checkpoint, when possible. */ @@ -309,6 +333,7 @@ public SourceSapHanaEnterprise withConcurrency(long concurrency) { return this; } + /** * Maximum number of concurrent queries to the database. */ @@ -346,7 +371,9 @@ public SourceSapHanaEnterprise withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceSapHanaEnterprise withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -354,8 +381,11 @@ public SourceSapHanaEnterprise withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceSapHanaEnterprise withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -372,6 +402,7 @@ public SourceSapHanaEnterprise withPassword(String password) { return this; } + /** * The password associated with the username. */ @@ -392,6 +423,7 @@ public SourceSapHanaEnterprise withPort(long port) { return this; } + /** * Port of the database. * SapHana Corporations recommends the following port numbers: @@ -412,6 +444,7 @@ public SourceSapHanaEnterprise withSchemas(List schemas) { return this; } + /** * The list of schemas to sync from. Defaults to user. Case sensitive. */ @@ -422,7 +455,8 @@ public SourceSapHanaEnterprise withSchemas(Optional> sche } /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public SourceSapHanaEnterprise withTunnelMethod(SourceSapHanaEnterpriseSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -439,7 +473,6 @@ public SourceSapHanaEnterprise withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -450,36 +483,28 @@ public boolean equals(java.lang.Object o) { } SourceSapHanaEnterprise other = (SourceSapHanaEnterprise) o; return - Objects.deepEquals(this.checkPrivileges, other.checkPrivileges) && - Objects.deepEquals(this.checkpointTargetIntervalSeconds, other.checkpointTargetIntervalSeconds) && - Objects.deepEquals(this.concurrency, other.concurrency) && - Objects.deepEquals(this.cursor, other.cursor) && - Objects.deepEquals(this.encryption, other.encryption) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.schemas, other.schemas) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.checkPrivileges, other.checkPrivileges) && + Utils.enhancedDeepEquals(this.checkpointTargetIntervalSeconds, other.checkpointTargetIntervalSeconds) && + Utils.enhancedDeepEquals(this.concurrency, other.concurrency) && + Utils.enhancedDeepEquals(this.cursor, other.cursor) && + Utils.enhancedDeepEquals(this.encryption, other.encryption) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.schemas, other.schemas) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - checkPrivileges, - checkpointTargetIntervalSeconds, - concurrency, - cursor, - encryption, - host, - jdbcUrlParams, - password, - port, - schemas, - sourceType, - tunnelMethod, + return Utils.enhancedHash( + checkPrivileges, checkpointTargetIntervalSeconds, concurrency, + cursor, encryption, host, + jdbcUrlParams, password, port, + schemas, sourceType, tunnelMethod, username); } @@ -500,39 +525,44 @@ public String toString() { "tunnelMethod", tunnelMethod, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional checkPrivileges; - + private Optional checkpointTargetIntervalSeconds; - + private Optional concurrency; - + private SourceSapHanaEnterpriseUpdateMethod cursor; - + private SourceSapHanaEnterpriseEncryption encryption; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private Optional password = Optional.empty(); - + private Optional port; - + private Optional> schemas = Optional.empty(); - + private SourceSapHanaEnterpriseSSHTunnelMethod tunnelMethod; - + private String username; - + private Builder() { // force use of static builder() method } + /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public Builder checkPrivileges(boolean checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -541,7 +571,10 @@ public Builder checkPrivileges(boolean checkPrivileges) { } /** - * When this feature is enabled, during schema discovery the connector will query each table or view individually to check access privileges and inaccessible tables, views, or columns therein will be removed. In large schemas, this might cause schema discovery to take too long, in which case it might be advisable to disable this feature. + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. */ public Builder checkPrivileges(Optional checkPrivileges) { Utils.checkNotNull(checkPrivileges, "checkPrivileges"); @@ -549,6 +582,7 @@ public Builder checkPrivileges(Optional checkPrivileges) { return this; } + /** * How often (in seconds) a stream should checkpoint, when possible. */ @@ -567,6 +601,7 @@ public Builder checkpointTargetIntervalSeconds(Optional checkpointTargetIn return this; } + /** * Maximum number of concurrent queries to the database. */ @@ -585,6 +620,7 @@ public Builder concurrency(Optional concurrency) { return this; } + /** * Configures how data is extracted from the database. */ @@ -594,6 +630,7 @@ public Builder cursor(SourceSapHanaEnterpriseUpdateMethod cursor) { return this; } + /** * The encryption method with is used when communicating with the database. */ @@ -603,6 +640,7 @@ public Builder encryption(SourceSapHanaEnterpriseEncryption encryption) { return this; } + /** * Hostname of the database. */ @@ -612,8 +650,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -622,7 +663,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -630,6 +673,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * The password associated with the username. */ @@ -648,6 +692,7 @@ public Builder password(Optional password) { return this; } + /** * Port of the database. * SapHana Corporations recommends the following port numbers: @@ -670,6 +715,7 @@ public Builder port(Optional port) { return this; } + /** * The list of schemas to sync from. Defaults to user. Case sensitive. */ @@ -688,8 +734,10 @@ public Builder schemas(Optional> schemas) { return this; } + /** - * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + * Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ public Builder tunnelMethod(SourceSapHanaEnterpriseSSHTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); @@ -697,6 +745,7 @@ public Builder tunnelMethod(SourceSapHanaEnterpriseSSHTunnelMethod tunnelMethod) return this; } + /** * The username which is used to access the database. */ @@ -705,7 +754,7 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceSapHanaEnterprise build() { if (checkPrivileges == null) { checkPrivileges = _SINGLETON_VALUE_CheckPrivileges.value(); @@ -719,21 +768,15 @@ public SourceSapHanaEnterprise build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SourceSapHanaEnterprise( - checkPrivileges, - checkpointTargetIntervalSeconds, - concurrency, - cursor, - encryption, - host, - jdbcUrlParams, - password, - port, - schemas, - tunnelMethod, - username); + checkPrivileges, checkpointTargetIntervalSeconds, concurrency, + cursor, encryption, host, + jdbcUrlParams, password, port, + schemas, tunnelMethod, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_CheckPrivileges = new LazySingletonValue<>( "check_privileges", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseCursorMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseCursorMethod.java index dfdb5b270..54dc92d2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseCursorMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseCursorMethod.java @@ -14,7 +14,7 @@ public enum SourceSapHanaEnterpriseCursorMethod { @JsonValue private final String value; - private SourceSapHanaEnterpriseCursorMethod(String value) { + SourceSapHanaEnterpriseCursorMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryption.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryption.java index a9c07718e..a9459037b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryption.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryption.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceSapHanaEnterpriseEncryption @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSapHanaEnterpriseEncryption other = (SourceSapHanaEnterpriseEncryption) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryptionAlgorithm.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryptionAlgorithm.java index 04cdb64d0..b41bdd9b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryptionAlgorithm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryptionAlgorithm.java @@ -21,7 +21,7 @@ public enum SourceSapHanaEnterpriseEncryptionAlgorithm { @JsonValue private final String value; - private SourceSapHanaEnterpriseEncryptionAlgorithm(String value) { + SourceSapHanaEnterpriseEncryptionAlgorithm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryptionMethod.java index b58221474..8e6ee1ff1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseEncryptionMethod.java @@ -14,7 +14,7 @@ public enum SourceSapHanaEnterpriseEncryptionMethod { @JsonValue private final String value; - private SourceSapHanaEnterpriseEncryptionMethod(String value) { + SourceSapHanaEnterpriseEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced.java index 13c95acd3..3471c7680 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced.java @@ -11,7 +11,10 @@ /** * SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced * - *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + *

    Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public enum SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced { FAIL_SYNC("Fail sync"), @@ -20,7 +23,7 @@ public enum SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced { @JsonValue private final String value; - private SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced(String value) { + SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseNativeNetworkEncryptionNNE.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseNativeNetworkEncryptionNNE.java index 847ce3df4..3a815c83c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseNativeNetworkEncryptionNNE.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseNativeNetworkEncryptionNNE.java @@ -19,13 +19,14 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * SourceSapHanaEnterpriseNativeNetworkEncryptionNNE * - *

    The native network encryption gives you the ability to encrypt database connections, without the configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different ports. + *

    The native network encryption gives you the ability to encrypt database connections, without the + * configuration overhead of TCP/IP and SSL/TLS and without the need to open and listen on different + * ports. */ public class SourceSapHanaEnterpriseNativeNetworkEncryptionNNE { @@ -39,6 +40,7 @@ public class SourceSapHanaEnterpriseNativeNetworkEncryptionNNE { @JsonProperty("encryption_algorithm") private Optional encryptionAlgorithm; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption_method") private Optional encryptionMethod; @@ -78,9 +80,10 @@ public Optional encryptionMethod return (Optional) encryptionMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceSapHanaEnterpriseNativeNetworkEncryptionNNE withAdditionalProperty(String key, Object value) { @@ -88,8 +91,7 @@ public SourceSapHanaEnterpriseNativeNetworkEncryptionNNE withAdditionalProperty( Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceSapHanaEnterpriseNativeNetworkEncryptionNNE withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -105,6 +107,7 @@ public SourceSapHanaEnterpriseNativeNetworkEncryptionNNE withEncryptionAlgorithm return this; } + /** * This parameter defines what encryption algorithm is used. */ @@ -120,13 +123,13 @@ public SourceSapHanaEnterpriseNativeNetworkEncryptionNNE withEncryptionMethod(So return this; } + public SourceSapHanaEnterpriseNativeNetworkEncryptionNNE withEncryptionMethod(Optional encryptionMethod) { Utils.checkNotNull(encryptionMethod, "encryptionMethod"); this.encryptionMethod = encryptionMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,17 +140,15 @@ public boolean equals(java.lang.Object o) { } SourceSapHanaEnterpriseNativeNetworkEncryptionNNE other = (SourceSapHanaEnterpriseNativeNetworkEncryptionNNE) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.encryptionAlgorithm, other.encryptionAlgorithm) && - Objects.deepEquals(this.encryptionMethod, other.encryptionMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.encryptionAlgorithm, other.encryptionAlgorithm) && + Utils.enhancedDeepEquals(this.encryptionMethod, other.encryptionMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - encryptionAlgorithm, - encryptionMethod); + return Utils.enhancedHash( + additionalProperties, encryptionAlgorithm, encryptionMethod); } @Override @@ -157,15 +158,16 @@ public String toString() { "encryptionAlgorithm", encryptionAlgorithm, "encryptionMethod", encryptionMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional encryptionAlgorithm; - + private Optional encryptionMethod; - + private Builder() { // force use of static builder() method } @@ -186,6 +188,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * This parameter defines what encryption algorithm is used. */ @@ -204,6 +207,7 @@ public Builder encryptionAlgorithm(Optional> _SINGLETON_VALUE_EncryptionAlgorithm = new LazySingletonValue<>( "encryption_algorithm", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseNoTunnel.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseNoTunnel.java index 064272366..f843b4697 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseNoTunnel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseNoTunnel.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class SourceSapHanaEnterpriseNoTunnel { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -59,9 +59,10 @@ public Optional tunnelMethod() { return (Optional) tunnelMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceSapHanaEnterpriseNoTunnel withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public SourceSapHanaEnterpriseNoTunnel withAdditionalProperty(String key, Object Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceSapHanaEnterpriseNoTunnel withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public SourceSapHanaEnterpriseNoTunnel withTunnelMethod(SourceSapHanaEnterpriseT return this; } + public SourceSapHanaEnterpriseNoTunnel withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } SourceSapHanaEnterpriseNoTunnel other = (SourceSapHanaEnterpriseNoTunnel) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - tunnelMethod); + return Utils.enhancedHash( + additionalProperties, tunnelMethod); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "tunnelMethod", tunnelMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional tunnelMethod; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder tunnelMethod(SourceSapHanaEnterpriseTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -155,16 +156,18 @@ public Builder tunnelMethod(Optional> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterprisePasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterprisePasswordAuthentication.java index 80e375cf8..9c7bf0c60 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterprisePasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterprisePasswordAuthentication.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -39,6 +38,7 @@ public class SourceSapHanaEnterprisePasswordAuthentication { @JsonProperty("tunnel_host") private String tunnelHost; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -86,7 +86,8 @@ public SourceSapHanaEnterprisePasswordAuthentication( String tunnelHost, String tunnelUser, String tunnelUserPassword) { - this(tunnelHost, Optional.empty(), Optional.empty(), tunnelUser, tunnelUserPassword); + this(tunnelHost, Optional.empty(), Optional.empty(), + tunnelUser, tunnelUserPassword); } @JsonAnyGetter @@ -132,9 +133,10 @@ public String tunnelUserPassword() { return tunnelUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceSapHanaEnterprisePasswordAuthentication withAdditionalProperty(String key, Object value) { @@ -142,8 +144,7 @@ public SourceSapHanaEnterprisePasswordAuthentication withAdditionalProperty(Stri Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceSapHanaEnterprisePasswordAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -165,6 +166,7 @@ public SourceSapHanaEnterprisePasswordAuthentication withTunnelMethod(SourceSapH return this; } + public SourceSapHanaEnterprisePasswordAuthentication withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; @@ -180,6 +182,7 @@ public SourceSapHanaEnterprisePasswordAuthentication withTunnelPort(long tunnelP return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -207,7 +210,6 @@ public SourceSapHanaEnterprisePasswordAuthentication withTunnelUserPassword(Stri return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +220,19 @@ public boolean equals(java.lang.Object o) { } SourceSapHanaEnterprisePasswordAuthentication other = (SourceSapHanaEnterprisePasswordAuthentication) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser) && - Objects.deepEquals(this.tunnelUserPassword, other.tunnelUserPassword); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser) && + Utils.enhancedDeepEquals(this.tunnelUserPassword, other.tunnelUserPassword); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword); + return Utils.enhancedHash( + additionalProperties, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser, tunnelUserPassword); } @Override @@ -247,21 +245,22 @@ public String toString() { "tunnelUser", tunnelUser, "tunnelUserPassword", tunnelUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String tunnelHost; - + private Optional tunnelMethod; - + private Optional tunnelPort; - + private String tunnelUser; - + private String tunnelUserPassword; - + private Builder() { // force use of static builder() method } @@ -282,6 +281,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -291,6 +291,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + public Builder tunnelMethod(SourceSapHanaEnterpriseSchemasTunnelMethodTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -303,6 +304,7 @@ public Builder tunnelMethod(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -330,6 +333,7 @@ public Builder tunnelUser(String tunnelUser) { return this; } + /** * OS-level password for logging into the jump server host */ @@ -338,7 +342,7 @@ public Builder tunnelUserPassword(String tunnelUserPassword) { this.tunnelUserPassword = tunnelUserPassword; return this; } - + public SourceSapHanaEnterprisePasswordAuthentication build() { if (tunnelMethod == null) { tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); @@ -346,15 +350,14 @@ public SourceSapHanaEnterprisePasswordAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceSapHanaEnterprisePasswordAuthentication( - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser, - tunnelUserPassword) + tunnelHost, tunnelMethod, tunnelPort, + tunnelUser, tunnelUserPassword) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC.java index e88996950..a085e3e6e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC.java @@ -20,19 +20,20 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC * - *

    <i>Recommended</i> - Incrementally reads new inserts, updates, and deletes using change data capture feature. This must be enabled on your database. + *

    Recommended - Incrementally reads new inserts, updates, and deletes using change data capture + * feature. This must be enabled on your database. */ public class SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor_method") private Optional cursorMethod; @@ -45,7 +46,10 @@ public class SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC { private Optional initialLoadTimeoutHours; /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("invalid_cdc_cursor_position_behavior") @@ -89,7 +93,10 @@ public Optional initialLoadTimeoutHours() { } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -97,9 +104,10 @@ public Optional inval return (Optional) invalidCdcCursorPositionBehavior; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withAdditionalProperty(String key, Object value) { @@ -107,8 +115,7 @@ public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withAdditiona Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -121,6 +128,7 @@ public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withCursorMet return this; } + public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withCursorMethod(Optional cursorMethod) { Utils.checkNotNull(cursorMethod, "cursorMethod"); this.cursorMethod = cursorMethod; @@ -136,6 +144,7 @@ public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withInitialLo return this; } + /** * The amount of time an initial load is allowed to continue for before catching up on CDC events. */ @@ -146,7 +155,10 @@ public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withInitialLo } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withInvalidCdcCursorPositionBehavior(SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -154,8 +166,12 @@ public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withInvalidCd return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withInvalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -163,7 +179,6 @@ public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC withInvalidCd return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,18 +189,16 @@ public boolean equals(java.lang.Object o) { } SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC other = (SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.cursorMethod, other.cursorMethod) && - Objects.deepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && - Objects.deepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.cursorMethod, other.cursorMethod) && + Utils.enhancedDeepEquals(this.initialLoadTimeoutHours, other.initialLoadTimeoutHours) && + Utils.enhancedDeepEquals(this.invalidCdcCursorPositionBehavior, other.invalidCdcCursorPositionBehavior); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - cursorMethod, - initialLoadTimeoutHours, + return Utils.enhancedHash( + additionalProperties, cursorMethod, initialLoadTimeoutHours, invalidCdcCursorPositionBehavior); } @@ -197,17 +210,18 @@ public String toString() { "initialLoadTimeoutHours", initialLoadTimeoutHours, "invalidCdcCursorPositionBehavior", invalidCdcCursorPositionBehavior); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional cursorMethod; - + private Optional initialLoadTimeoutHours; - + private Optional invalidCdcCursorPositionBehavior; - + private Builder() { // force use of static builder() method } @@ -228,6 +242,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder cursorMethod(SourceSapHanaEnterpriseSchemasCursorMethod cursorMethod) { Utils.checkNotNull(cursorMethod, "cursorMethod"); this.cursorMethod = Optional.ofNullable(cursorMethod); @@ -240,6 +255,7 @@ public Builder cursorMethod(Optional initialLoadTimeoutHours) { return this; } + /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(SourceSapHanaEnterpriseInvalidCDCPositionBehaviorAdvanced invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); @@ -268,14 +288,17 @@ public Builder invalidCdcCursorPositionBehavior(SourceSapHanaEnterpriseInvalidCD } /** - * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger a refresh but could lead to higher cloud costs and data loss. + * Determines whether Airbyte should fail or re-sync data in case of an stale/invalid cursor value in + * the mined logs. If 'Fail sync' is chosen, a user will have to manually reset the connection before + * being able to continue syncing data. If 'Re-sync data' is chosen, Airbyte will automatically trigger + * a refresh but could lead to higher cloud costs and data loss. */ public Builder invalidCdcCursorPositionBehavior(Optional invalidCdcCursorPositionBehavior) { Utils.checkNotNull(invalidCdcCursorPositionBehavior, "invalidCdcCursorPositionBehavior"); this.invalidCdcCursorPositionBehavior = invalidCdcCursorPositionBehavior; return this; } - + public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC build() { if (cursorMethod == null) { cursorMethod = _SINGLETON_VALUE_CursorMethod.value(); @@ -286,13 +309,13 @@ public SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC build() { if (invalidCdcCursorPositionBehavior == null) { invalidCdcCursorPositionBehavior = _SINGLETON_VALUE_InvalidCdcCursorPositionBehavior.value(); } + return new SourceSapHanaEnterpriseReadChangesUsingChangeDataCaptureCDC( - cursorMethod, - initialLoadTimeoutHours, - invalidCdcCursorPositionBehavior) + cursorMethod, initialLoadTimeoutHours, invalidCdcCursorPositionBehavior) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_CursorMethod = new LazySingletonValue<>( "cursor_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSSHKeyAuthentication.java index 6f1f74443..ac2f30495 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSSHKeyAuthentication.java @@ -20,7 +20,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -34,7 +33,8 @@ public class SourceSapHanaEnterpriseSSHKeyAuthentication { private Map additionalProperties; /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("ssh_key") private String sshKey; @@ -45,6 +45,7 @@ public class SourceSapHanaEnterpriseSSHKeyAuthentication { @JsonProperty("tunnel_host") private String tunnelHost; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("tunnel_method") private Optional tunnelMethod; @@ -86,7 +87,8 @@ public SourceSapHanaEnterpriseSSHKeyAuthentication( String sshKey, String tunnelHost, String tunnelUser) { - this(sshKey, tunnelHost, Optional.empty(), Optional.empty(), tunnelUser); + this(sshKey, tunnelHost, Optional.empty(), + Optional.empty(), tunnelUser); } @JsonAnyGetter @@ -95,7 +97,8 @@ public Map additionalProperties() { } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String sshKey() { @@ -132,9 +135,10 @@ public String tunnelUser() { return tunnelUser; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceSapHanaEnterpriseSSHKeyAuthentication withAdditionalProperty(String key, Object value) { @@ -142,8 +146,7 @@ public SourceSapHanaEnterpriseSSHKeyAuthentication withAdditionalProperty(String Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceSapHanaEnterpriseSSHKeyAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -151,7 +154,8 @@ public SourceSapHanaEnterpriseSSHKeyAuthentication withAdditionalProperties(Map< } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public SourceSapHanaEnterpriseSSHKeyAuthentication withSshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -174,6 +178,7 @@ public SourceSapHanaEnterpriseSSHKeyAuthentication withTunnelMethod(SourceSapHan return this; } + public SourceSapHanaEnterpriseSSHKeyAuthentication withTunnelMethod(Optional tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = tunnelMethod; @@ -189,6 +194,7 @@ public SourceSapHanaEnterpriseSSHKeyAuthentication withTunnelPort(long tunnelPor return this; } + /** * Port on the proxy/jump server that accepts inbound ssh connections. */ @@ -207,7 +213,6 @@ public SourceSapHanaEnterpriseSSHKeyAuthentication withTunnelUser(String tunnelU return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -218,23 +223,19 @@ public boolean equals(java.lang.Object o) { } SourceSapHanaEnterpriseSSHKeyAuthentication other = (SourceSapHanaEnterpriseSSHKeyAuthentication) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.sshKey, other.sshKey) && - Objects.deepEquals(this.tunnelHost, other.tunnelHost) && - Objects.deepEquals(this.tunnelMethod, other.tunnelMethod) && - Objects.deepEquals(this.tunnelPort, other.tunnelPort) && - Objects.deepEquals(this.tunnelUser, other.tunnelUser); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.sshKey, other.sshKey) && + Utils.enhancedDeepEquals(this.tunnelHost, other.tunnelHost) && + Utils.enhancedDeepEquals(this.tunnelMethod, other.tunnelMethod) && + Utils.enhancedDeepEquals(this.tunnelPort, other.tunnelPort) && + Utils.enhancedDeepEquals(this.tunnelUser, other.tunnelUser); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser); + return Utils.enhancedHash( + additionalProperties, sshKey, tunnelHost, + tunnelMethod, tunnelPort, tunnelUser); } @Override @@ -247,21 +248,22 @@ public String toString() { "tunnelPort", tunnelPort, "tunnelUser", tunnelUser); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String sshKey; - + private String tunnelHost; - + private Optional tunnelMethod; - + private Optional tunnelPort; - + private String tunnelUser; - + private Builder() { // force use of static builder() method } @@ -282,8 +284,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder sshKey(String sshKey) { Utils.checkNotNull(sshKey, "sshKey"); @@ -291,6 +295,7 @@ public Builder sshKey(String sshKey) { return this; } + /** * Hostname of the jump server host that allows inbound ssh tunnel. */ @@ -300,6 +305,7 @@ public Builder tunnelHost(String tunnelHost) { return this; } + public Builder tunnelMethod(SourceSapHanaEnterpriseSchemasTunnelMethod tunnelMethod) { Utils.checkNotNull(tunnelMethod, "tunnelMethod"); this.tunnelMethod = Optional.ofNullable(tunnelMethod); @@ -312,6 +318,7 @@ public Builder tunnelMethod(Optional tunnelPort) { return this; } + /** * OS-level username for logging into the jump server host */ @@ -338,7 +346,7 @@ public Builder tunnelUser(String tunnelUser) { this.tunnelUser = tunnelUser; return this; } - + public SourceSapHanaEnterpriseSSHKeyAuthentication build() { if (tunnelMethod == null) { tunnelMethod = _SINGLETON_VALUE_TunnelMethod.value(); @@ -346,15 +354,14 @@ public SourceSapHanaEnterpriseSSHKeyAuthentication build() { if (tunnelPort == null) { tunnelPort = _SINGLETON_VALUE_TunnelPort.value(); } + return new SourceSapHanaEnterpriseSSHKeyAuthentication( - sshKey, - tunnelHost, - tunnelMethod, - tunnelPort, - tunnelUser) + sshKey, tunnelHost, tunnelMethod, + tunnelPort, tunnelUser) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_TunnelMethod = new LazySingletonValue<>( "tunnel_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSSHTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSSHTunnelMethod.java index 790300be5..3cfd1f66c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSSHTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSSHTunnelMethod.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceSapHanaEnterpriseSSHTunnelMethod * - *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of authentication to use. + *

    Whether to initiate an SSH tunnel before connecting to the database, and if so, which kind of + * authentication to use. */ @JsonDeserialize(using = SourceSapHanaEnterpriseSSHTunnelMethod._Deserializer.class) public class SourceSapHanaEnterpriseSSHTunnelMethod { @@ -78,12 +78,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSapHanaEnterpriseSSHTunnelMethod other = (SourceSapHanaEnterpriseSSHTunnelMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor.java index 362435a8d..40142cb57 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor.java @@ -19,19 +19,21 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor * - *

    Incrementally detects new inserts and updates using the <a href="https://docs.airbyte.com/understanding-airbyte/connections/incremental-append/#user-defined-cursor">cursor column</a> chosen when configuring a connection (e.g. created_at, updated_at). + *

    Incrementally detects new inserts and updates using the cursor + * column chosen when configuring a connection (e.g. created_at, updated_at). */ public class SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor_method") private Optional cursorMethod; @@ -59,9 +61,10 @@ public Optional cursorMethod() { return (Optional) cursorMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor withAdditionalProperty(String key, Object value) { @@ -69,8 +72,7 @@ public SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor withAdditionalPro Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +85,13 @@ public SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor withCursorMethod( return this; } + public SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor withCursorMethod(Optional cursorMethod) { Utils.checkNotNull(cursorMethod, "cursorMethod"); this.cursorMethod = cursorMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +102,14 @@ public boolean equals(java.lang.Object o) { } SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor other = (SourceSapHanaEnterpriseScanChangesWithUserDefinedCursor) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.cursorMethod, other.cursorMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.cursorMethod, other.cursorMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - cursorMethod); + return Utils.enhancedHash( + additionalProperties, cursorMethod); } @Override @@ -117,13 +118,14 @@ public String toString() { "additionalProperties", additionalProperties, "cursorMethod", cursorMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional cursorMethod; - + private Builder() { // force use of static builder() method } @@ -144,6 +146,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder cursorMethod(SourceSapHanaEnterpriseCursorMethod cursorMethod) { Utils.checkNotNull(cursorMethod, "cursorMethod"); this.cursorMethod = Optional.ofNullable(cursorMethod); @@ -155,16 +158,18 @@ public Builder cursorMethod(Optional> _SINGLETON_VALUE_CursorMethod = new LazySingletonValue<>( "cursor_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasCursorMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasCursorMethod.java index 7d5f996ee..0179e86e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasCursorMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasCursorMethod.java @@ -14,7 +14,7 @@ public enum SourceSapHanaEnterpriseSchemasCursorMethod { @JsonValue private final String value; - private SourceSapHanaEnterpriseSchemasCursorMethod(String value) { + SourceSapHanaEnterpriseSchemasCursorMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasEncryptionEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasEncryptionEncryptionMethod.java index af79b2b6b..be38e0e73 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasEncryptionEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasEncryptionEncryptionMethod.java @@ -14,7 +14,7 @@ public enum SourceSapHanaEnterpriseSchemasEncryptionEncryptionMethod { @JsonValue private final String value; - private SourceSapHanaEnterpriseSchemasEncryptionEncryptionMethod(String value) { + SourceSapHanaEnterpriseSchemasEncryptionEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasEncryptionMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasEncryptionMethod.java index 3091514d8..e498eacd0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasEncryptionMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasEncryptionMethod.java @@ -14,7 +14,7 @@ public enum SourceSapHanaEnterpriseSchemasEncryptionMethod { @JsonValue private final String value; - private SourceSapHanaEnterpriseSchemasEncryptionMethod(String value) { + SourceSapHanaEnterpriseSchemasEncryptionMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasTunnelMethod.java index 9a371ff67..a87ca29c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceSapHanaEnterpriseSchemasTunnelMethod { @JsonValue private final String value; - private SourceSapHanaEnterpriseSchemasTunnelMethod(String value) { + SourceSapHanaEnterpriseSchemasTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasTunnelMethodTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasTunnelMethodTunnelMethod.java index 0541ae99a..e5ab2ebbb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasTunnelMethodTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseSchemasTunnelMethodTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceSapHanaEnterpriseSchemasTunnelMethodTunnelMethod { @JsonValue private final String value; - private SourceSapHanaEnterpriseSchemasTunnelMethodTunnelMethod(String value) { + SourceSapHanaEnterpriseSchemasTunnelMethodTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate.java index 094b76289..e44229968 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,12 +31,14 @@ public class SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption_method") private Optional encryptionMethod; /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ @JsonProperty("ssl_certificate") private String sslCertificate; @@ -70,16 +71,18 @@ public Optional encryp } /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ @JsonIgnore public String sslCertificate() { return sslCertificate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate withAdditionalProperty(String key, Object value) { @@ -87,8 +90,7 @@ public SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate withAdditionalProper Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -101,6 +103,7 @@ public SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate withEncryptionMethod return this; } + public SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate withEncryptionMethod(Optional encryptionMethod) { Utils.checkNotNull(encryptionMethod, "encryptionMethod"); this.encryptionMethod = encryptionMethod; @@ -108,7 +111,8 @@ public SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate withEncryptionMethod } /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ public SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate withSslCertificate(String sslCertificate) { Utils.checkNotNull(sslCertificate, "sslCertificate"); @@ -116,7 +120,6 @@ public SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate withSslCertificate(S return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,17 +130,15 @@ public boolean equals(java.lang.Object o) { } SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate other = (SourceSapHanaEnterpriseTLSEncryptedVerifyCertificate) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.encryptionMethod, other.encryptionMethod) && - Objects.deepEquals(this.sslCertificate, other.sslCertificate); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.encryptionMethod, other.encryptionMethod) && + Utils.enhancedDeepEquals(this.sslCertificate, other.sslCertificate); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - encryptionMethod, - sslCertificate); + return Utils.enhancedHash( + additionalProperties, encryptionMethod, sslCertificate); } @Override @@ -147,15 +148,16 @@ public String toString() { "encryptionMethod", encryptionMethod, "sslCertificate", sslCertificate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional encryptionMethod; - + private String sslCertificate; - + private Builder() { // force use of static builder() method } @@ -176,6 +178,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder encryptionMethod(SourceSapHanaEnterpriseSchemasEncryptionEncryptionMethod encryptionMethod) { Utils.checkNotNull(encryptionMethod, "encryptionMethod"); this.encryptionMethod = Optional.ofNullable(encryptionMethod); @@ -188,25 +191,28 @@ public Builder encryptionMethod(Optional> _SINGLETON_VALUE_EncryptionMethod = new LazySingletonValue<>( "encryption_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseTunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseTunnelMethod.java index 16f4c084a..93e912c31 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseTunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseTunnelMethod.java @@ -14,7 +14,7 @@ public enum SourceSapHanaEnterpriseTunnelMethod { @JsonValue private final String value; - private SourceSapHanaEnterpriseTunnelMethod(String value) { + SourceSapHanaEnterpriseTunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseUnencrypted.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseUnencrypted.java index 86cf3b7b1..3decf9b91 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseUnencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseUnencrypted.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class SourceSapHanaEnterpriseUnencrypted { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("encryption_method") private Optional encryptionMethod; @@ -59,9 +59,10 @@ public Optional encryptionMethod() { return (Optional) encryptionMethod; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceSapHanaEnterpriseUnencrypted withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public SourceSapHanaEnterpriseUnencrypted withAdditionalProperty(String key, Obj Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceSapHanaEnterpriseUnencrypted withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public SourceSapHanaEnterpriseUnencrypted withEncryptionMethod(SourceSapHanaEnte return this; } + public SourceSapHanaEnterpriseUnencrypted withEncryptionMethod(Optional encryptionMethod) { Utils.checkNotNull(encryptionMethod, "encryptionMethod"); this.encryptionMethod = encryptionMethod; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } SourceSapHanaEnterpriseUnencrypted other = (SourceSapHanaEnterpriseUnencrypted) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.encryptionMethod, other.encryptionMethod); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.encryptionMethod, other.encryptionMethod); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - encryptionMethod); + return Utils.enhancedHash( + additionalProperties, encryptionMethod); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "encryptionMethod", encryptionMethod); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional encryptionMethod; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder encryptionMethod(SourceSapHanaEnterpriseEncryptionMethod encryptionMethod) { Utils.checkNotNull(encryptionMethod, "encryptionMethod"); this.encryptionMethod = Optional.ofNullable(encryptionMethod); @@ -155,16 +156,18 @@ public Builder encryptionMethod(Optional> _SINGLETON_VALUE_EncryptionMethod = new LazySingletonValue<>( "encryption_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseUpdateMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseUpdateMethod.java index 6a14c485d..a1c6447ca 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseUpdateMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSapHanaEnterpriseUpdateMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceSapHanaEnterpriseUpdateMethod @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSapHanaEnterpriseUpdateMethod other = (SourceSapHanaEnterpriseUpdateMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java b/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java index 2a5a31240..b239c43e8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSavvycal.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSavvycal { +public class SourceSavvycal { /** - * Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private key. https://savvycal.com/developers + * Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private + * key. https://savvycal.com/developers */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Savvycal sourceType; @@ -33,7 +34,8 @@ public SourceSavvycal( } /** - * Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private key. https://savvycal.com/developers + * Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private + * key. https://savvycal.com/developers */ @JsonIgnore public String apiKey() { @@ -45,12 +47,14 @@ public Savvycal sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private key. https://savvycal.com/developers + * Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private + * key. https://savvycal.com/developers */ public SourceSavvycal withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +62,6 @@ public SourceSavvycal withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceSavvycal other = (SourceSavvycal) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private key. https://savvycal.com/developers + * Go to SavvyCal → Settings → Developer → Personal Tokens and make a new token. Then, copy the private + * key. https://savvycal.com/developers */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceSavvycal build() { + return new SourceSavvycal( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceScryfall.java b/src/main/java/com/airbyte/api/models/shared/SourceScryfall.java index 32935e452..9b312a7e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceScryfall.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceScryfall.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceScryfall { @@ -20,7 +20,6 @@ public class SourceScryfall { @JsonCreator public SourceScryfall() { - this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); } @@ -29,11 +28,11 @@ public Scryfall sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -44,12 +43,12 @@ public boolean equals(java.lang.Object o) { } SourceScryfall other = (SourceScryfall) o; return - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( sourceType); } @@ -58,18 +57,21 @@ public String toString() { return Utils.toString(SourceScryfall.class, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceScryfall build() { + return new SourceScryfall( ); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSecoda.java b/src/main/java/com/airbyte/api/models/shared/SourceSecoda.java index e02f85428..b18b0b6cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSecoda.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSecoda.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSecoda { +public class SourceSecoda { /** - * Your API Access Key. See <a href="https://docs.secoda.co/secoda-api/authentication">here</a>. The key is case sensitive. + * Your API Access Key. See here. The + * key is case sensitive. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Secoda sourceType; @@ -33,7 +34,8 @@ public SourceSecoda( } /** - * Your API Access Key. See <a href="https://docs.secoda.co/secoda-api/authentication">here</a>. The key is case sensitive. + * Your API Access Key. See here. The + * key is case sensitive. */ @JsonIgnore public String apiKey() { @@ -45,12 +47,14 @@ public Secoda sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Access Key. See <a href="https://docs.secoda.co/secoda-api/authentication">here</a>. The key is case sensitive. + * Your API Access Key. See here. The + * key is case sensitive. */ public SourceSecoda withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +62,6 @@ public SourceSecoda withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceSecoda other = (SourceSecoda) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * Your API Access Key. See <a href="https://docs.secoda.co/secoda-api/authentication">here</a>. The key is case sensitive. + * Your API Access Key. See here. The + * key is case sensitive. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceSecoda build() { + return new SourceSecoda( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSegment.java b/src/main/java/com/airbyte/api/models/shared/SourceSegment.java index c4b488ee3..1458c2115 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSegment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSegment.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceSegment { +public class SourceSegment { /** * API token to use. Generate it in Segment's Workspace settings. */ @@ -32,9 +31,11 @@ public class SourceSegment { @JsonProperty("region") private Optional region; + @JsonProperty("sourceType") private Segment sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -84,9 +85,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API token to use. Generate it in Segment's Workspace settings. @@ -106,6 +108,7 @@ public SourceSegment withRegion(String region) { return this; } + /** * The region for the API, e.g., 'api' for US or 'eu1' for EU */ @@ -121,7 +124,6 @@ public SourceSegment withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +134,16 @@ public boolean equals(java.lang.Object o) { } SourceSegment other = (SourceSegment) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiToken, - region, - sourceType, + return Utils.enhancedHash( + apiToken, region, sourceType, startDate); } @@ -155,19 +155,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Optional region; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API token to use. Generate it in Segment's Workspace settings. */ @@ -177,6 +179,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * The region for the API, e.g., 'api' for US or 'eu1' for EU */ @@ -195,22 +198,23 @@ public Builder region(Optional region) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSegment build() { if (region == null) { region = _SINGLETON_VALUE_Region.value(); } + return new SourceSegment( - apiToken, - region, - startDate); + apiToken, region, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Region = new LazySingletonValue<>( "region", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSendgrid.java b/src/main/java/com/airbyte/api/models/shared/SourceSendgrid.java index 4d1870fb9..fcd451934 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSendgrid.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSendgrid.java @@ -12,21 +12,23 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceSendgrid { +public class SourceSendgrid { /** - * Sendgrid API Key, use <a href=\"https://app.sendgrid.com/settings/api_keys/\">admin</a> to generate this key. + * Sendgrid API Key, use <a href=\"https://app.sendgrid.com/settings/api_keys/\">admin</a> + * to generate this key. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Sendgrid sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -43,7 +45,8 @@ public SourceSendgrid( } /** - * Sendgrid API Key, use <a href=\"https://app.sendgrid.com/settings/api_keys/\">admin</a> to generate this key. + * Sendgrid API Key, use <a href=\"https://app.sendgrid.com/settings/api_keys/\">admin</a> + * to generate this key. */ @JsonIgnore public String apiKey() { @@ -56,19 +59,22 @@ public Sendgrid sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Sendgrid API Key, use <a href=\"https://app.sendgrid.com/settings/api_keys/\">admin</a> to generate this key. + * Sendgrid API Key, use <a href=\"https://app.sendgrid.com/settings/api_keys/\">admin</a> + * to generate this key. */ public SourceSendgrid withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -77,7 +83,8 @@ public SourceSendgrid withApiKey(String apiKey) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceSendgrid withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -85,7 +92,6 @@ public SourceSendgrid withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -96,17 +102,15 @@ public boolean equals(java.lang.Object o) { } SourceSendgrid other = (SourceSendgrid) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -116,19 +120,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Sendgrid API Key, use <a href=\"https://app.sendgrid.com/settings/api_keys/\">admin</a> to generate this key. + * Sendgrid API Key, use <a href=\"https://app.sendgrid.com/settings/api_keys/\">admin</a> + * to generate this key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -136,21 +143,24 @@ public Builder apiKey(String apiKey) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSendgrid build() { + return new SourceSendgrid( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSendinblue.java b/src/main/java/com/airbyte/api/models/shared/SourceSendinblue.java index 7aef5f243..8165acede 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSendinblue.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSendinblue.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSendinblue { +public class SourceSendinblue { /** - * Your API Key. See <a href="https://developers.sendinblue.com/docs/getting-started">here</a>. + * Your API Key. See here. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Sendinblue sourceType; @@ -33,7 +33,7 @@ public SourceSendinblue( } /** - * Your API Key. See <a href="https://developers.sendinblue.com/docs/getting-started">here</a>. + * Your API Key. See here. */ @JsonIgnore public String apiKey() { @@ -45,12 +45,13 @@ public Sendinblue sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Key. See <a href="https://developers.sendinblue.com/docs/getting-started">here</a>. + * Your API Key. See here. */ public SourceSendinblue withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +59,6 @@ public SourceSendinblue withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceSendinblue other = (SourceSendinblue) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +85,33 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * Your API Key. See <a href="https://developers.sendinblue.com/docs/getting-started">here</a>. + * Your API Key. See here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceSendinblue build() { + return new SourceSendinblue( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSendowl.java b/src/main/java/com/airbyte/api/models/shared/SourceSendowl.java index c0d150adb..01935042b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSendowl.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSendowl.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceSendowl { +public class SourceSendowl { /** * Enter your API secret */ @@ -26,9 +25,11 @@ public class SourceSendowl { @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Sendowl sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -84,9 +85,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Enter your API secret @@ -97,6 +99,7 @@ public SourceSendowl withPassword(String password) { return this; } + /** * Enter your API secret */ @@ -121,7 +124,6 @@ public SourceSendowl withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +134,16 @@ public boolean equals(java.lang.Object o) { } SourceSendowl other = (SourceSendowl) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - startDate, + return Utils.enhancedHash( + password, sourceType, startDate, username); } @@ -155,19 +155,21 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private OffsetDateTime startDate; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Enter your API secret */ @@ -186,12 +188,14 @@ public Builder password(Optional password) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * Enter you API Key */ @@ -200,14 +204,14 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceSendowl build() { + return new SourceSendowl( - password, - startDate, - username); + password, startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSendpulse.java b/src/main/java/com/airbyte/api/models/shared/SourceSendpulse.java index 605cb1e5c..67a857c4b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSendpulse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSendpulse.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceSendpulse { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private Sendpulse sourceType; @@ -50,9 +52,10 @@ public Sendpulse sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSendpulse withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -66,7 +69,6 @@ public SourceSendpulse withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceSendpulse other = (SourceSendpulse) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - sourceType); + return Utils.enhancedHash( + clientId, clientSecret, sourceType); } @Override @@ -97,35 +97,39 @@ public String toString() { "clientSecret", clientSecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourceSendpulse build() { + return new SourceSendpulse( - clientId, - clientSecret); + clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSenseforce.java b/src/main/java/com/airbyte/api/models/shared/SourceSenseforce.java index 14392a992..7dc85313c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSenseforce.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSenseforce.java @@ -12,33 +12,49 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; -public class SourceSenseforce { +public class SourceSenseforce { /** - * Your API access token. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a>. The toke is case sensitive. + * Your API access token. See here. + * The toke is case sensitive. */ @JsonProperty("access_token") private String accessToken; /** - * Your Senseforce API backend URL. This is the URL shown during the Login screen. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a> for more details. (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR) + * Your Senseforce API backend URL. This is the URL shown during the Login screen. See here + * for more details. + * + *

    (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR) */ @JsonProperty("backend_url") private String backendUrl; /** - * The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a> for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source). + * The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the + * dataset. See here + * for more details. + * + *

    (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want + * to synchronize needs to be implemented as a separate airbyte source). */ @JsonProperty("dataset_id") private String datasetId; + @JsonProperty("sourceType") private Senseforce sourceType; /** - * UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later + * UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be + * replicated. Important note: This start date must be set to the first day of where your dataset + * provides data. + * + *

    If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later */ @JsonProperty("start_date") private LocalDate startDate; @@ -61,7 +77,9 @@ public SourceSenseforce( } /** - * Your API access token. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a>. The toke is case sensitive. + * Your API access token. See here. + * The toke is case sensitive. */ @JsonIgnore public String accessToken() { @@ -69,7 +87,11 @@ public String accessToken() { } /** - * Your Senseforce API backend URL. This is the URL shown during the Login screen. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a> for more details. (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR) + * Your Senseforce API backend URL. This is the URL shown during the Login screen. See here + * for more details. + * + *

    (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR) */ @JsonIgnore public String backendUrl() { @@ -77,7 +99,13 @@ public String backendUrl() { } /** - * The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a> for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source). + * The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the + * dataset. See here + * for more details. + * + *

    (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want + * to synchronize needs to be implemented as a separate airbyte source). */ @JsonIgnore public String datasetId() { @@ -90,19 +118,26 @@ public Senseforce sourceType() { } /** - * UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later + * UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be + * replicated. Important note: This start date must be set to the first day of where your dataset + * provides data. + * + *

    If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later */ @JsonIgnore public LocalDate startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API access token. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a>. The toke is case sensitive. + * Your API access token. See here. + * The toke is case sensitive. */ public SourceSenseforce withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -111,7 +146,11 @@ public SourceSenseforce withAccessToken(String accessToken) { } /** - * Your Senseforce API backend URL. This is the URL shown during the Login screen. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a> for more details. (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR) + * Your Senseforce API backend URL. This is the URL shown during the Login screen. See here + * for more details. + * + *

    (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR) */ public SourceSenseforce withBackendUrl(String backendUrl) { Utils.checkNotNull(backendUrl, "backendUrl"); @@ -120,7 +159,13 @@ public SourceSenseforce withBackendUrl(String backendUrl) { } /** - * The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a> for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source). + * The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the + * dataset. See here + * for more details. + * + *

    (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want + * to synchronize needs to be implemented as a separate airbyte source). */ public SourceSenseforce withDatasetId(String datasetId) { Utils.checkNotNull(datasetId, "datasetId"); @@ -129,7 +174,11 @@ public SourceSenseforce withDatasetId(String datasetId) { } /** - * UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later + * UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be + * replicated. Important note: This start date must be set to the first day of where your dataset + * provides data. + * + *

    If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later */ public SourceSenseforce withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -137,7 +186,6 @@ public SourceSenseforce withStartDate(LocalDate startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -148,21 +196,18 @@ public boolean equals(java.lang.Object o) { } SourceSenseforce other = (SourceSenseforce) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.backendUrl, other.backendUrl) && - Objects.deepEquals(this.datasetId, other.datasetId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.backendUrl, other.backendUrl) && + Utils.enhancedDeepEquals(this.datasetId, other.datasetId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - backendUrl, - datasetId, - sourceType, - startDate); + return Utils.enhancedHash( + accessToken, backendUrl, datasetId, + sourceType, startDate); } @Override @@ -174,23 +219,27 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String backendUrl; - + private String datasetId; - + private LocalDate startDate; - + private Builder() { // force use of static builder() method } + /** - * Your API access token. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a>. The toke is case sensitive. + * Your API access token. See here. + * The toke is case sensitive. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -198,8 +247,13 @@ public Builder accessToken(String accessToken) { return this; } + /** - * Your Senseforce API backend URL. This is the URL shown during the Login screen. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a> for more details. (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR) + * Your Senseforce API backend URL. This is the URL shown during the Login screen. See here + * for more details. + * + *

    (Note: Most Senseforce backend APIs have the term 'galaxy' in their ULR) */ public Builder backendUrl(String backendUrl) { Utils.checkNotNull(backendUrl, "backendUrl"); @@ -207,8 +261,15 @@ public Builder backendUrl(String backendUrl) { return this; } + /** - * The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the dataset. See <a href="https://manual.senseforce.io/manual/sf-platform/public-api/get-your-access-token/">here</a> for more details. (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want to synchronize needs to be implemented as a separate airbyte source). + * The ID of the dataset you want to synchronize. The ID can be found in the URL when opening the + * dataset. See here + * for more details. + * + *

    (Note: As the Senseforce API only allows to synchronize a specific dataset, each dataset you want + * to synchronize needs to be implemented as a separate airbyte source). */ public Builder datasetId(String datasetId) { Utils.checkNotNull(datasetId, "datasetId"); @@ -216,23 +277,28 @@ public Builder datasetId(String datasetId) { return this; } + /** - * UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be replicated. Important note: This start date must be set to the first day of where your dataset provides data. If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later + * UTC date and time in the format 2017-01-25. Only data with "Timestamp" after this date will be + * replicated. Important note: This start date must be set to the first day of where your dataset + * provides data. + * + *

    If your dataset has data from 2020-10-10 10:21:10, set the start_date to 2020-10-10 or later */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSenseforce build() { + return new SourceSenseforce( - accessToken, - backendUrl, - datasetId, + accessToken, backendUrl, datasetId, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSentry.java b/src/main/java/com/airbyte/api/models/shared/SourceSentry.java index 99d9d0612..64757bae0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSentry.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSentry.java @@ -16,13 +16,14 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSentry { +public class SourceSentry { /** - * Log into Sentry and then <a href="https://sentry.io/settings/account/api/auth-tokens/">create authentication tokens</a>.For self-hosted, you can find or create authentication tokens by visiting "{instance_url_prefix}/settings/account/api/auth-tokens/" + * Log into Sentry and then create + * authentication tokens.For self-hosted, you can find or create authentication tokens by visiting + * "{instance_url_prefix}/settings/account/api/auth-tokens/" */ @JsonProperty("auth_token") private String authToken; @@ -35,7 +36,8 @@ public class SourceSentry { private Optional> discoverFields; /** - * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it empty. + * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it + * empty. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("hostname") @@ -53,6 +55,7 @@ public class SourceSentry { @JsonProperty("project") private String project; + @JsonProperty("sourceType") private Sentry sourceType; @@ -80,11 +83,14 @@ public SourceSentry( String authToken, String organization, String project) { - this(authToken, Optional.empty(), Optional.empty(), organization, project); + this(authToken, Optional.empty(), Optional.empty(), + organization, project); } /** - * Log into Sentry and then <a href="https://sentry.io/settings/account/api/auth-tokens/">create authentication tokens</a>.For self-hosted, you can find or create authentication tokens by visiting "{instance_url_prefix}/settings/account/api/auth-tokens/" + * Log into Sentry and then create + * authentication tokens.For self-hosted, you can find or create authentication tokens by visiting + * "{instance_url_prefix}/settings/account/api/auth-tokens/" */ @JsonIgnore public String authToken() { @@ -101,7 +107,8 @@ public Optional> discoverFields() { } /** - * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it empty. + * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it + * empty. */ @JsonIgnore public Optional hostname() { @@ -129,12 +136,15 @@ public Sentry sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Log into Sentry and then <a href="https://sentry.io/settings/account/api/auth-tokens/">create authentication tokens</a>.For self-hosted, you can find or create authentication tokens by visiting "{instance_url_prefix}/settings/account/api/auth-tokens/" + * Log into Sentry and then create + * authentication tokens.For self-hosted, you can find or create authentication tokens by visiting + * "{instance_url_prefix}/settings/account/api/auth-tokens/" */ public SourceSentry withAuthToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -151,6 +161,7 @@ public SourceSentry withDiscoverFields(List discoverFields) { return this; } + /** * Fields to retrieve when fetching discover events */ @@ -161,7 +172,8 @@ public SourceSentry withDiscoverFields(Optional> discover } /** - * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it empty. + * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it + * empty. */ public SourceSentry withHostname(String hostname) { Utils.checkNotNull(hostname, "hostname"); @@ -169,8 +181,10 @@ public SourceSentry withHostname(String hostname) { return this; } + /** - * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it empty. + * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it + * empty. */ public SourceSentry withHostname(Optional hostname) { Utils.checkNotNull(hostname, "hostname"); @@ -196,7 +210,6 @@ public SourceSentry withProject(String project) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -207,23 +220,19 @@ public boolean equals(java.lang.Object o) { } SourceSentry other = (SourceSentry) o; return - Objects.deepEquals(this.authToken, other.authToken) && - Objects.deepEquals(this.discoverFields, other.discoverFields) && - Objects.deepEquals(this.hostname, other.hostname) && - Objects.deepEquals(this.organization, other.organization) && - Objects.deepEquals(this.project, other.project) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.authToken, other.authToken) && + Utils.enhancedDeepEquals(this.discoverFields, other.discoverFields) && + Utils.enhancedDeepEquals(this.hostname, other.hostname) && + Utils.enhancedDeepEquals(this.organization, other.organization) && + Utils.enhancedDeepEquals(this.project, other.project) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - authToken, - discoverFields, - hostname, - organization, - project, - sourceType); + return Utils.enhancedHash( + authToken, discoverFields, hostname, + organization, project, sourceType); } @Override @@ -236,25 +245,29 @@ public String toString() { "project", project, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String authToken; - + private Optional> discoverFields = Optional.empty(); - + private Optional hostname; - + private String organization; - + private String project; - + private Builder() { // force use of static builder() method } + /** - * Log into Sentry and then <a href="https://sentry.io/settings/account/api/auth-tokens/">create authentication tokens</a>.For self-hosted, you can find or create authentication tokens by visiting "{instance_url_prefix}/settings/account/api/auth-tokens/" + * Log into Sentry and then create + * authentication tokens.For self-hosted, you can find or create authentication tokens by visiting + * "{instance_url_prefix}/settings/account/api/auth-tokens/" */ public Builder authToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -262,6 +275,7 @@ public Builder authToken(String authToken) { return this; } + /** * Fields to retrieve when fetching discover events */ @@ -280,8 +294,10 @@ public Builder discoverFields(Optional> discoverFields) { return this; } + /** - * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it empty. + * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it + * empty. */ public Builder hostname(String hostname) { Utils.checkNotNull(hostname, "hostname"); @@ -290,7 +306,8 @@ public Builder hostname(String hostname) { } /** - * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it empty. + * Host name of Sentry API server.For self-hosted, specify your host name here. Otherwise, leave it + * empty. */ public Builder hostname(Optional hostname) { Utils.checkNotNull(hostname, "hostname"); @@ -298,6 +315,7 @@ public Builder hostname(Optional hostname) { return this; } + /** * The slug of the organization the groups belong to. */ @@ -307,6 +325,7 @@ public Builder organization(String organization) { return this; } + /** * The name (slug) of the Project you want to sync. */ @@ -315,19 +334,18 @@ public Builder project(String project) { this.project = project; return this; } - + public SourceSentry build() { if (hostname == null) { hostname = _SINGLETON_VALUE_Hostname.value(); } + return new SourceSentry( - authToken, - discoverFields, - hostname, - organization, - project); + authToken, discoverFields, hostname, + organization, project); } + private static final LazySingletonValue> _SINGLETON_VALUE_Hostname = new LazySingletonValue<>( "hostname", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSerpstat.java b/src/main/java/com/airbyte/api/models/shared/SourceSerpstat.java index 7be08475c..308f4f1f3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSerpstat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSerpstat.java @@ -17,11 +17,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSerpstat { +public class SourceSerpstat { /** * Serpstat API key can be found here: https://serpstat.com/users/profile/ */ @@ -43,54 +42,67 @@ public class SourceSerpstat { private Optional> domains; /** - * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be filtered. Filtering the results will result in fewer + * API credits spent. Each stream has different filtering options. + * + *

    See https://serpstat.com/api/ for more details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter_by") private Optional filterBy; /** - * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The value of the field to filter by. Each stream has different filtering options. See + * https://serpstat.com/api/ for more details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter_value") private Optional filterValue; /** - * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + * The number of data rows per page to be returned. Each data row can contain multiple data points. The + * max value is 1000. + * + *

    Reducing the size of the page will result in fewer API credits spent. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("page_size") private Optional pageSize; /** - * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the + * number of pages will result in fewer API credits spent. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("pages_to_fetch") private Optional pagesToFetch; /** - * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ + * prefix. See the list of supported region IDs here: + * https://serpstat.com/api/664-request-parameters-v4/. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("region_id") private Optional regionId; /** - * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be sorted. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sort_by") private Optional sortBy; /** - * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The value of the field to sort by. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("sort_value") private Optional sortValue; + @JsonProperty("sourceType") private Serpstat sourceType; @@ -131,7 +143,10 @@ public SourceSerpstat( public SourceSerpstat( String apiKey) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -160,7 +175,10 @@ public Optional> domains() { } /** - * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be filtered. Filtering the results will result in fewer + * API credits spent. Each stream has different filtering options. + * + *

    See https://serpstat.com/api/ for more details. */ @JsonIgnore public Optional filterBy() { @@ -168,7 +186,8 @@ public Optional filterBy() { } /** - * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The value of the field to filter by. Each stream has different filtering options. See + * https://serpstat.com/api/ for more details. */ @JsonIgnore public Optional filterValue() { @@ -176,7 +195,10 @@ public Optional filterValue() { } /** - * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + * The number of data rows per page to be returned. Each data row can contain multiple data points. The + * max value is 1000. + * + *

    Reducing the size of the page will result in fewer API credits spent. */ @JsonIgnore public Optional pageSize() { @@ -184,7 +206,8 @@ public Optional pageSize() { } /** - * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the + * number of pages will result in fewer API credits spent. */ @JsonIgnore public Optional pagesToFetch() { @@ -192,7 +215,9 @@ public Optional pagesToFetch() { } /** - * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ + * prefix. See the list of supported region IDs here: + * https://serpstat.com/api/664-request-parameters-v4/. */ @JsonIgnore public Optional regionId() { @@ -200,7 +225,8 @@ public Optional regionId() { } /** - * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be sorted. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ @JsonIgnore public Optional sortBy() { @@ -208,7 +234,8 @@ public Optional sortBy() { } /** - * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The value of the field to sort by. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ @JsonIgnore public Optional sortValue() { @@ -220,9 +247,10 @@ public Serpstat sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Serpstat API key can be found here: https://serpstat.com/users/profile/ @@ -242,6 +270,7 @@ public SourceSerpstat withDomain(String domain) { return this; } + /** * The domain name to get data for (ex. serpstat.com) */ @@ -260,6 +289,7 @@ public SourceSerpstat withDomains(List domains) { return this; } + /** * The list of domains that will be used in streams that support batch operations */ @@ -270,7 +300,10 @@ public SourceSerpstat withDomains(Optional> domains) { } /** - * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be filtered. Filtering the results will result in fewer + * API credits spent. Each stream has different filtering options. + * + *

    See https://serpstat.com/api/ for more details. */ public SourceSerpstat withFilterBy(String filterBy) { Utils.checkNotNull(filterBy, "filterBy"); @@ -278,8 +311,12 @@ public SourceSerpstat withFilterBy(String filterBy) { return this; } + /** - * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be filtered. Filtering the results will result in fewer + * API credits spent. Each stream has different filtering options. + * + *

    See https://serpstat.com/api/ for more details. */ public SourceSerpstat withFilterBy(Optional filterBy) { Utils.checkNotNull(filterBy, "filterBy"); @@ -288,7 +325,8 @@ public SourceSerpstat withFilterBy(Optional filterBy) { } /** - * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The value of the field to filter by. Each stream has different filtering options. See + * https://serpstat.com/api/ for more details. */ public SourceSerpstat withFilterValue(String filterValue) { Utils.checkNotNull(filterValue, "filterValue"); @@ -296,8 +334,10 @@ public SourceSerpstat withFilterValue(String filterValue) { return this; } + /** - * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The value of the field to filter by. Each stream has different filtering options. See + * https://serpstat.com/api/ for more details. */ public SourceSerpstat withFilterValue(Optional filterValue) { Utils.checkNotNull(filterValue, "filterValue"); @@ -306,7 +346,10 @@ public SourceSerpstat withFilterValue(Optional filterValue) { } /** - * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + * The number of data rows per page to be returned. Each data row can contain multiple data points. The + * max value is 1000. + * + *

    Reducing the size of the page will result in fewer API credits spent. */ public SourceSerpstat withPageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -314,8 +357,12 @@ public SourceSerpstat withPageSize(long pageSize) { return this; } + /** - * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + * The number of data rows per page to be returned. Each data row can contain multiple data points. The + * max value is 1000. + * + *

    Reducing the size of the page will result in fewer API credits spent. */ public SourceSerpstat withPageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -324,7 +371,8 @@ public SourceSerpstat withPageSize(Optional pageSize) { } /** - * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the + * number of pages will result in fewer API credits spent. */ public SourceSerpstat withPagesToFetch(long pagesToFetch) { Utils.checkNotNull(pagesToFetch, "pagesToFetch"); @@ -332,8 +380,10 @@ public SourceSerpstat withPagesToFetch(long pagesToFetch) { return this; } + /** - * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the + * number of pages will result in fewer API credits spent. */ public SourceSerpstat withPagesToFetch(Optional pagesToFetch) { Utils.checkNotNull(pagesToFetch, "pagesToFetch"); @@ -342,7 +392,9 @@ public SourceSerpstat withPagesToFetch(Optional pagesToFetch) { } /** - * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ + * prefix. See the list of supported region IDs here: + * https://serpstat.com/api/664-request-parameters-v4/. */ public SourceSerpstat withRegionId(String regionId) { Utils.checkNotNull(regionId, "regionId"); @@ -350,8 +402,11 @@ public SourceSerpstat withRegionId(String regionId) { return this; } + /** - * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ + * prefix. See the list of supported region IDs here: + * https://serpstat.com/api/664-request-parameters-v4/. */ public SourceSerpstat withRegionId(Optional regionId) { Utils.checkNotNull(regionId, "regionId"); @@ -360,7 +415,8 @@ public SourceSerpstat withRegionId(Optional regionId) { } /** - * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be sorted. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ public SourceSerpstat withSortBy(String sortBy) { Utils.checkNotNull(sortBy, "sortBy"); @@ -368,8 +424,10 @@ public SourceSerpstat withSortBy(String sortBy) { return this; } + /** - * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be sorted. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ public SourceSerpstat withSortBy(Optional sortBy) { Utils.checkNotNull(sortBy, "sortBy"); @@ -378,7 +436,8 @@ public SourceSerpstat withSortBy(Optional sortBy) { } /** - * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The value of the field to sort by. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ public SourceSerpstat withSortValue(String sortValue) { Utils.checkNotNull(sortValue, "sortValue"); @@ -386,8 +445,10 @@ public SourceSerpstat withSortValue(String sortValue) { return this; } + /** - * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The value of the field to sort by. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ public SourceSerpstat withSortValue(Optional sortValue) { Utils.checkNotNull(sortValue, "sortValue"); @@ -395,7 +456,6 @@ public SourceSerpstat withSortValue(Optional sortValue) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -406,33 +466,26 @@ public boolean equals(java.lang.Object o) { } SourceSerpstat other = (SourceSerpstat) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.domains, other.domains) && - Objects.deepEquals(this.filterBy, other.filterBy) && - Objects.deepEquals(this.filterValue, other.filterValue) && - Objects.deepEquals(this.pageSize, other.pageSize) && - Objects.deepEquals(this.pagesToFetch, other.pagesToFetch) && - Objects.deepEquals(this.regionId, other.regionId) && - Objects.deepEquals(this.sortBy, other.sortBy) && - Objects.deepEquals(this.sortValue, other.sortValue) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.domains, other.domains) && + Utils.enhancedDeepEquals(this.filterBy, other.filterBy) && + Utils.enhancedDeepEquals(this.filterValue, other.filterValue) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.pagesToFetch, other.pagesToFetch) && + Utils.enhancedDeepEquals(this.regionId, other.regionId) && + Utils.enhancedDeepEquals(this.sortBy, other.sortBy) && + Utils.enhancedDeepEquals(this.sortValue, other.sortValue) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - domain, - domains, - filterBy, - filterValue, - pageSize, - pagesToFetch, - regionId, - sortBy, - sortValue, - sourceType); + return Utils.enhancedHash( + apiKey, domain, domains, + filterBy, filterValue, pageSize, + pagesToFetch, regionId, sortBy, + sortValue, sourceType); } @Override @@ -450,33 +503,35 @@ public String toString() { "sortValue", sortValue, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional domain; - + private Optional> domains = Optional.empty(); - + private Optional filterBy = Optional.empty(); - + private Optional filterValue = Optional.empty(); - + private Optional pageSize; - + private Optional pagesToFetch; - + private Optional regionId; - + private Optional sortBy = Optional.empty(); - + private Optional sortValue = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Serpstat API key can be found here: https://serpstat.com/users/profile/ */ @@ -486,6 +541,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The domain name to get data for (ex. serpstat.com) */ @@ -504,6 +560,7 @@ public Builder domain(Optional domain) { return this; } + /** * The list of domains that will be used in streams that support batch operations */ @@ -522,8 +579,12 @@ public Builder domains(Optional> domains) { return this; } + /** - * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be filtered. Filtering the results will result in fewer + * API credits spent. Each stream has different filtering options. + * + *

    See https://serpstat.com/api/ for more details. */ public Builder filterBy(String filterBy) { Utils.checkNotNull(filterBy, "filterBy"); @@ -532,7 +593,10 @@ public Builder filterBy(String filterBy) { } /** - * The field name by which the results should be filtered. Filtering the results will result in fewer API credits spent. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be filtered. Filtering the results will result in fewer + * API credits spent. Each stream has different filtering options. + * + *

    See https://serpstat.com/api/ for more details. */ public Builder filterBy(Optional filterBy) { Utils.checkNotNull(filterBy, "filterBy"); @@ -540,8 +604,10 @@ public Builder filterBy(Optional filterBy) { return this; } + /** - * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The value of the field to filter by. Each stream has different filtering options. See + * https://serpstat.com/api/ for more details. */ public Builder filterValue(String filterValue) { Utils.checkNotNull(filterValue, "filterValue"); @@ -550,7 +616,8 @@ public Builder filterValue(String filterValue) { } /** - * The value of the field to filter by. Each stream has different filtering options. See https://serpstat.com/api/ for more details. + * The value of the field to filter by. Each stream has different filtering options. See + * https://serpstat.com/api/ for more details. */ public Builder filterValue(Optional filterValue) { Utils.checkNotNull(filterValue, "filterValue"); @@ -558,8 +625,12 @@ public Builder filterValue(Optional filterValue) { return this; } + /** - * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + * The number of data rows per page to be returned. Each data row can contain multiple data points. The + * max value is 1000. + * + *

    Reducing the size of the page will result in fewer API credits spent. */ public Builder pageSize(long pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -568,7 +639,10 @@ public Builder pageSize(long pageSize) { } /** - * The number of data rows per page to be returned. Each data row can contain multiple data points. The max value is 1000. Reducing the size of the page will result in fewer API credits spent. + * The number of data rows per page to be returned. Each data row can contain multiple data points. The + * max value is 1000. + * + *

    Reducing the size of the page will result in fewer API credits spent. */ public Builder pageSize(Optional pageSize) { Utils.checkNotNull(pageSize, "pageSize"); @@ -576,8 +650,10 @@ public Builder pageSize(Optional pageSize) { return this; } + /** - * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the + * number of pages will result in fewer API credits spent. */ public Builder pagesToFetch(long pagesToFetch) { Utils.checkNotNull(pagesToFetch, "pagesToFetch"); @@ -586,7 +662,8 @@ public Builder pagesToFetch(long pagesToFetch) { } /** - * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the number of pages will result in fewer API credits spent. + * The number of pages that should be fetched. All results will be obtained if left blank. Reducing the + * number of pages will result in fewer API credits spent. */ public Builder pagesToFetch(Optional pagesToFetch) { Utils.checkNotNull(pagesToFetch, "pagesToFetch"); @@ -594,8 +671,11 @@ public Builder pagesToFetch(Optional pagesToFetch) { return this; } + /** - * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ + * prefix. See the list of supported region IDs here: + * https://serpstat.com/api/664-request-parameters-v4/. */ public Builder regionId(String regionId) { Utils.checkNotNull(regionId, "regionId"); @@ -604,7 +684,9 @@ public Builder regionId(String regionId) { } /** - * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ prefix. See the list of supported region IDs here: https://serpstat.com/api/664-request-parameters-v4/. + * The ID of a region to get data from in the form of a two-letter country code prepended with the g_ + * prefix. See the list of supported region IDs here: + * https://serpstat.com/api/664-request-parameters-v4/. */ public Builder regionId(Optional regionId) { Utils.checkNotNull(regionId, "regionId"); @@ -612,8 +694,10 @@ public Builder regionId(Optional regionId) { return this; } + /** - * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be sorted. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ public Builder sortBy(String sortBy) { Utils.checkNotNull(sortBy, "sortBy"); @@ -622,7 +706,8 @@ public Builder sortBy(String sortBy) { } /** - * The field name by which the results should be sorted. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The field name by which the results should be sorted. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ public Builder sortBy(Optional sortBy) { Utils.checkNotNull(sortBy, "sortBy"); @@ -630,8 +715,10 @@ public Builder sortBy(Optional sortBy) { return this; } + /** - * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The value of the field to sort by. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ public Builder sortValue(String sortValue) { Utils.checkNotNull(sortValue, "sortValue"); @@ -640,14 +727,15 @@ public Builder sortValue(String sortValue) { } /** - * The value of the field to sort by. Each stream has different sorting options. See https://serpstat.com/api/ for more details. + * The value of the field to sort by. Each stream has different sorting options. See + * https://serpstat.com/api/ for more details. */ public Builder sortValue(Optional sortValue) { Utils.checkNotNull(sortValue, "sortValue"); this.sortValue = sortValue; return this; } - + public SourceSerpstat build() { if (domain == null) { domain = _SINGLETON_VALUE_Domain.value(); @@ -661,19 +749,15 @@ public SourceSerpstat build() { if (regionId == null) { regionId = _SINGLETON_VALUE_RegionId.value(); } + return new SourceSerpstat( - apiKey, - domain, - domains, - filterBy, - filterValue, - pageSize, - pagesToFetch, - regionId, - sortBy, + apiKey, domain, domains, + filterBy, filterValue, pageSize, + pagesToFetch, regionId, sortBy, sortValue); } + private static final LazySingletonValue> _SINGLETON_VALUE_Domain = new LazySingletonValue<>( "domain", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceServiceNow.java b/src/main/java/com/airbyte/api/models/shared/SourceServiceNow.java index b2d7f5ff6..0b0591636 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceServiceNow.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceServiceNow.java @@ -13,21 +13,24 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceServiceNow { @JsonProperty("base_url") private String baseUrl; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private ServiceNow sourceType; + @JsonProperty("username") private String username; @@ -71,9 +74,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceServiceNow withBaseUrl(String baseUrl) { Utils.checkNotNull(baseUrl, "baseUrl"); @@ -87,6 +91,7 @@ public SourceServiceNow withPassword(String password) { return this; } + public SourceServiceNow withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -99,7 +104,6 @@ public SourceServiceNow withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,18 +114,16 @@ public boolean equals(java.lang.Object o) { } SourceServiceNow other = (SourceServiceNow) o; return - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - baseUrl, - password, - sourceType, + return Utils.enhancedHash( + baseUrl, password, sourceType, username); } @@ -133,25 +135,28 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String baseUrl; - + private Optional password = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + public Builder baseUrl(String baseUrl) { Utils.checkNotNull(baseUrl, "baseUrl"); this.baseUrl = baseUrl; return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -164,19 +169,20 @@ public Builder password(Optional password) { return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceServiceNow build() { + return new SourceServiceNow( - baseUrl, - password, - username); + baseUrl, password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftp.java b/src/main/java/com/airbyte/api/models/shared/SourceSftp.java index 3f59469f4..3459d6a08 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftp.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceSftp { +public class SourceSftp { /** * The server authentication method */ @@ -61,6 +60,7 @@ public class SourceSftp { @JsonProperty("port") private Optional port; + @JsonProperty("sourceType") private Sftp sourceType; @@ -99,7 +99,9 @@ public SourceSftp( public SourceSftp( String host, String user) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), host, Optional.empty(), user); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), host, Optional.empty(), + user); } /** @@ -164,9 +166,10 @@ public String user() { return user; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The server authentication method @@ -177,6 +180,7 @@ public SourceSftp withCredentials(SourceSftpAuthentication credentials) { return this; } + /** * The server authentication method */ @@ -195,6 +199,7 @@ public SourceSftp withFilePattern(String filePattern) { return this; } + /** * The regular expression to specify files for sync in a chosen Folder Path */ @@ -213,6 +218,7 @@ public SourceSftp withFileTypes(String fileTypes) { return this; } + /** * Coma separated file types. Currently only 'csv' and 'json' types are supported. */ @@ -231,6 +237,7 @@ public SourceSftp withFolderPath(String folderPath) { return this; } + /** * The directory to search files for sync */ @@ -258,6 +265,7 @@ public SourceSftp withPort(long port) { return this; } + /** * The server port */ @@ -276,7 +284,6 @@ public SourceSftp withUser(String user) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -287,27 +294,22 @@ public boolean equals(java.lang.Object o) { } SourceSftp other = (SourceSftp) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.filePattern, other.filePattern) && - Objects.deepEquals(this.fileTypes, other.fileTypes) && - Objects.deepEquals(this.folderPath, other.folderPath) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.user, other.user); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.filePattern, other.filePattern) && + Utils.enhancedDeepEquals(this.fileTypes, other.fileTypes) && + Utils.enhancedDeepEquals(this.folderPath, other.folderPath) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.user, other.user); } @Override public int hashCode() { - return Objects.hash( - credentials, - filePattern, - fileTypes, - folderPath, - host, - port, - sourceType, - user); + return Utils.enhancedHash( + credentials, filePattern, fileTypes, + folderPath, host, port, + sourceType, user); } @Override @@ -322,27 +324,29 @@ public String toString() { "sourceType", sourceType, "user", user); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Optional filePattern; - + private Optional fileTypes; - + private Optional folderPath; - + private String host; - + private Optional port; - + private String user; - + private Builder() { // force use of static builder() method } + /** * The server authentication method */ @@ -361,6 +365,7 @@ public Builder credentials(Optional credenti return this; } + /** * The regular expression to specify files for sync in a chosen Folder Path */ @@ -379,6 +384,7 @@ public Builder filePattern(Optional filePattern) { return this; } + /** * Coma separated file types. Currently only 'csv' and 'json' types are supported. */ @@ -397,6 +403,7 @@ public Builder fileTypes(Optional fileTypes) { return this; } + /** * The directory to search files for sync */ @@ -415,6 +422,7 @@ public Builder folderPath(Optional folderPath) { return this; } + /** * The server host address */ @@ -424,6 +432,7 @@ public Builder host(String host) { return this; } + /** * The server port */ @@ -442,6 +451,7 @@ public Builder port(Optional port) { return this; } + /** * The server user */ @@ -450,7 +460,7 @@ public Builder user(String user) { this.user = user; return this; } - + public SourceSftp build() { if (filePattern == null) { filePattern = _SINGLETON_VALUE_FilePattern.value(); @@ -464,16 +474,14 @@ public SourceSftp build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SourceSftp( - credentials, - filePattern, - fileTypes, - folderPath, - host, - port, + credentials, filePattern, fileTypes, + folderPath, host, port, user); } + private static final LazySingletonValue> _SINGLETON_VALUE_FilePattern = new LazySingletonValue<>( "file_pattern", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java index d848b3bfc..7c253f1a4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthMethod.java @@ -19,7 +19,7 @@ public enum SourceSftpAuthMethod { @JsonValue private final String value; - private SourceSftpAuthMethod(String value) { + SourceSftpAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthentication.java index e3399d545..d0426e926 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceSftpAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSftpAuthentication other = (SourceSftpAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulk.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulk.java index 4b756f998..5e7164c97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulk.java @@ -17,7 +17,6 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -27,13 +26,13 @@ * that are needed when users configure a file-based source. */ public class SourceSftpBulk { - /** * Credentials for connecting to the SFTP Server */ @JsonProperty("credentials") private SourceSftpBulkAuthentication credentials; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("delivery_method") private Optional deliveryMethod; @@ -58,18 +57,23 @@ public class SourceSftpBulk { @JsonProperty("port") private Optional port; + @JsonProperty("sourceType") private SftpBulk sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonProperty("streams") private List streams; @@ -114,7 +118,9 @@ public SourceSftpBulk( String host, List streams, String username) { - this(credentials, Optional.empty(), Optional.empty(), host, Optional.empty(), Optional.empty(), streams, username); + this(credentials, Optional.empty(), Optional.empty(), + host, Optional.empty(), Optional.empty(), + streams, username); } /** @@ -161,7 +167,8 @@ public SftpBulk sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ @JsonIgnore public Optional startDate() { @@ -169,7 +176,10 @@ public Optional startDate() { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ @JsonIgnore public List streams() { @@ -184,9 +194,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Credentials for connecting to the SFTP Server @@ -203,6 +214,7 @@ public SourceSftpBulk withDeliveryMethod(SourceSftpBulkDeliveryMethod deliveryMe return this; } + public SourceSftpBulk withDeliveryMethod(Optional deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = deliveryMethod; @@ -218,6 +230,7 @@ public SourceSftpBulk withFolderPath(String folderPath) { return this; } + /** * The directory to search files for sync */ @@ -245,6 +258,7 @@ public SourceSftpBulk withPort(long port) { return this; } + /** * The server port */ @@ -255,7 +269,8 @@ public SourceSftpBulk withPort(Optional port) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceSftpBulk withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -263,8 +278,10 @@ public SourceSftpBulk withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public SourceSftpBulk withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -273,7 +290,10 @@ public SourceSftpBulk withStartDate(Optional startDate) { } /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public SourceSftpBulk withStreams(List streams) { Utils.checkNotNull(streams, "streams"); @@ -290,7 +310,6 @@ public SourceSftpBulk withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -301,29 +320,23 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulk other = (SourceSftpBulk) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.deliveryMethod, other.deliveryMethod) && - Objects.deepEquals(this.folderPath, other.folderPath) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.streams, other.streams) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.deliveryMethod, other.deliveryMethod) && + Utils.enhancedDeepEquals(this.folderPath, other.folderPath) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.streams, other.streams) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - credentials, - deliveryMethod, - folderPath, - host, - port, - sourceType, - startDate, - streams, - username); + return Utils.enhancedHash( + credentials, deliveryMethod, folderPath, + host, port, sourceType, + startDate, streams, username); } @Override @@ -339,29 +352,31 @@ public String toString() { "streams", streams, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceSftpBulkAuthentication credentials; - + private Optional deliveryMethod = Optional.empty(); - + private Optional folderPath; - + private String host; - + private Optional port; - + private Optional startDate = Optional.empty(); - + private List streams; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Credentials for connecting to the SFTP Server */ @@ -371,6 +386,7 @@ public Builder credentials(SourceSftpBulkAuthentication credentials) { return this; } + public Builder deliveryMethod(SourceSftpBulkDeliveryMethod deliveryMethod) { Utils.checkNotNull(deliveryMethod, "deliveryMethod"); this.deliveryMethod = Optional.ofNullable(deliveryMethod); @@ -383,6 +399,7 @@ public Builder deliveryMethod(Optional d return this; } + /** * The directory to search files for sync */ @@ -401,6 +418,7 @@ public Builder folderPath(Optional folderPath) { return this; } + /** * The server host address */ @@ -410,6 +428,7 @@ public Builder host(String host) { return this; } + /** * The server port */ @@ -428,8 +447,10 @@ public Builder port(Optional port) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -438,7 +459,8 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -446,8 +468,12 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Each instance of this configuration defines a <a href="https://docs.airbyte.com/cloud/core-concepts#stream">stream</a>. Use this to define which files belong in the stream, their format, and how they should be parsed and validated. When sending data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. */ public Builder streams(List streams) { Utils.checkNotNull(streams, "streams"); @@ -455,6 +481,7 @@ public Builder streams(List streams) { return this; } + /** * The server user */ @@ -463,7 +490,7 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceSftpBulk build() { if (folderPath == null) { folderPath = _SINGLETON_VALUE_FolderPath.value(); @@ -471,17 +498,14 @@ public SourceSftpBulk build() { if (port == null) { port = _SINGLETON_VALUE_Port.value(); } + return new SourceSftpBulk( - credentials, - deliveryMethod, - folderPath, - host, - port, - startDate, - streams, - username); + credentials, deliveryMethod, folderPath, + host, port, startDate, + streams, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_FolderPath = new LazySingletonValue<>( "folder_path", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java index e62d5bb81..228d02feb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAPIParameterConfigModel.java @@ -9,10 +9,9 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSftpBulkAPIParameterConfigModel { +public class SourceSftpBulkAPIParameterConfigModel { /** * The name of the unstructured API parameter to use */ @@ -51,9 +50,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The name of the unstructured API parameter to use @@ -73,7 +73,6 @@ public SourceSftpBulkAPIParameterConfigModel withValue(String value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -84,15 +83,14 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkAPIParameterConfigModel other = (SourceSftpBulkAPIParameterConfigModel) o; return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - name, - value); + return Utils.enhancedHash( + name, value); } @Override @@ -101,17 +99,19 @@ public String toString() { "name", name, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String name; - + private String value; - + private Builder() { // force use of static builder() method } + /** * The name of the unstructured API parameter to use */ @@ -121,6 +121,7 @@ public Builder name(String name) { return this; } + /** * The value of the parameter */ @@ -129,11 +130,12 @@ public Builder value(String value) { this.value = value; return this; } - + public SourceSftpBulkAPIParameterConfigModel build() { + return new SourceSftpBulkAPIParameterConfigModel( - name, - value); + name, value); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java index b6e0b746a..79600c44d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthType.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkAuthType { @JsonValue private final String value; - private SourceSftpBulkAuthType(String value) { + SourceSftpBulkAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthentication.java index e2ed4ce01..4ffc370ee 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceSftpBulkAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSftpBulkAuthentication other = (SourceSftpBulkAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAutogenerated.java index 4ad65d176..c8a12e599 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAutogenerated.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAutogenerated.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceSftpBulkAutogenerated { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceSftpBulkAutogenerated { @JsonCreator public SourceSftpBulkAutogenerated() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionType( return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkAutogenerated other = (SourceSftpBulkAutogenerated) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceSftpBulkAutogenerated.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceSftpBulkAutogenerated build() { + return new SourceSftpBulkAutogenerated( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAvroFormat.java index ef8a464ea..352791f10 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAvroFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkAvroFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceSftpBulkAvroFormat { +public class SourceSftpBulkAvroFormat { /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("double_as_string") private Optional doubleAsString; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceSftpBulkAvroFormat() { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ @JsonIgnore public Optional doubleAsString() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceSftpBulkAvroFormat withDoubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -70,8 +74,10 @@ public SourceSftpBulkAvroFormat withDoubleAsString(boolean doubleAsString) { return this; } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public SourceSftpBulkAvroFormat withDoubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -79,7 +85,6 @@ public SourceSftpBulkAvroFormat withDoubleAsString(Optional doubleAsStr return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkAvroFormat other = (SourceSftpBulkAvroFormat) o; return - Objects.deepEquals(this.doubleAsString, other.doubleAsString) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.doubleAsString, other.doubleAsString) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - doubleAsString, - filetype); + return Utils.enhancedHash( + doubleAsString, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "doubleAsString", doubleAsString, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional doubleAsString; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(boolean doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); @@ -126,22 +133,25 @@ public Builder doubleAsString(boolean doubleAsString) { } /** - * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a high degree of precision because there can be a loss precision when handling floating point numbers. + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. */ public Builder doubleAsString(Optional doubleAsString) { Utils.checkNotNull(doubleAsString, "doubleAsString"); this.doubleAsString = doubleAsString; return this; } - + public SourceSftpBulkAvroFormat build() { if (doubleAsString == null) { doubleAsString = _SINGLETON_VALUE_DoubleAsString.value(); } + return new SourceSftpBulkAvroFormat( doubleAsString); } + private static final LazySingletonValue> _SINGLETON_VALUE_DoubleAsString = new LazySingletonValue<>( "double_as_string", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVFormat.java index 2da05d7f5..902251dbd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVFormat.java @@ -17,13 +17,13 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSftpBulkCSVFormat { +public class SourceSftpBulkCSVFormat { /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("delimiter") @@ -37,7 +37,9 @@ public class SourceSftpBulkCSVFormat { private Optional doubleQuote; /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("encoding") @@ -57,26 +59,35 @@ public class SourceSftpBulkCSVFormat { @JsonProperty("false_values") private Optional> falseValues; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition") private Optional headerDefinition; /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("ignore_errors_on_fields_mismatch") private Optional ignoreErrorsOnFieldsMismatch; /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("null_values") @@ -97,14 +108,17 @@ public class SourceSftpBulkCSVFormat { private Optional skipRowsAfterHeader; /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_rows_before_header") private Optional skipRowsBeforeHeader; /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strings_can_be_null") @@ -162,11 +176,16 @@ public SourceSftpBulkCSVFormat( } public SourceSftpBulkCSVFormat() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ @JsonIgnore public Optional delimiter() { @@ -182,7 +201,9 @@ public Optional doubleQuote() { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ @JsonIgnore public Optional encoding() { @@ -213,7 +234,13 @@ public Optional filetype() { } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -222,7 +249,8 @@ public Optional headerDefinition() { } /** - * Whether to ignore errors that occur when the number of fields in the CSV does not match the number of columns in the schema. + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. */ @JsonIgnore public Optional ignoreErrorsOnFieldsMismatch() { @@ -230,7 +258,8 @@ public Optional ignoreErrorsOnFieldsMismatch() { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -255,7 +284,8 @@ public Optional skipRowsAfterHeader() { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ @JsonIgnore public Optional skipRowsBeforeHeader() { @@ -263,7 +293,9 @@ public Optional skipRowsBeforeHeader() { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ @JsonIgnore public Optional stringsCanBeNull() { @@ -279,12 +311,14 @@ public Optional> trueValues() { return (Optional>) trueValues; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceSftpBulkCSVFormat withDelimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -292,8 +326,10 @@ public SourceSftpBulkCSVFormat withDelimiter(String delimiter) { return this; } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public SourceSftpBulkCSVFormat withDelimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -310,6 +346,7 @@ public SourceSftpBulkCSVFormat withDoubleQuote(boolean doubleQuote) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -320,7 +357,9 @@ public SourceSftpBulkCSVFormat withDoubleQuote(Optional doubleQuote) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceSftpBulkCSVFormat withEncoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -328,8 +367,11 @@ public SourceSftpBulkCSVFormat withEncoding(String encoding) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public SourceSftpBulkCSVFormat withEncoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -346,6 +388,7 @@ public SourceSftpBulkCSVFormat withEscapeChar(String escapeChar) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -364,6 +407,7 @@ public SourceSftpBulkCSVFormat withFalseValues(List falseValues) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -374,7 +418,13 @@ public SourceSftpBulkCSVFormat withFalseValues(Optional> } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceSftpBulkCSVFormat withHeaderDefinition(SourceSftpBulkCSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -382,8 +432,15 @@ public SourceSftpBulkCSVFormat withHeaderDefinition(SourceSftpBulkCSVHeaderDefin return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public SourceSftpBulkCSVFormat withHeaderDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -392,7 +449,8 @@ public SourceSftpBulkCSVFormat withHeaderDefinition(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -410,7 +470,8 @@ public SourceSftpBulkCSVFormat withIgnoreErrorsOnFieldsMismatch(Optional nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -418,8 +479,10 @@ public SourceSftpBulkCSVFormat withNullValues(List nullValues) { return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public SourceSftpBulkCSVFormat withNullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -436,6 +499,7 @@ public SourceSftpBulkCSVFormat withQuoteChar(String quoteChar) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -454,6 +518,7 @@ public SourceSftpBulkCSVFormat withSkipRowsAfterHeader(long skipRowsAfterHeader) return this; } + /** * The number of rows to skip after the header row. */ @@ -464,7 +529,8 @@ public SourceSftpBulkCSVFormat withSkipRowsAfterHeader(Optional skipRowsAf } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceSftpBulkCSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -472,8 +538,10 @@ public SourceSftpBulkCSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeade return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public SourceSftpBulkCSVFormat withSkipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -482,7 +550,9 @@ public SourceSftpBulkCSVFormat withSkipRowsBeforeHeader(Optional skipRowsB } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public SourceSftpBulkCSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -490,8 +560,11 @@ public SourceSftpBulkCSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public SourceSftpBulkCSVFormat withStringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -508,6 +581,7 @@ public SourceSftpBulkCSVFormat withTrueValues(List trueValues) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -517,7 +591,6 @@ public SourceSftpBulkCSVFormat withTrueValues(Optional> t return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -528,39 +601,30 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkCSVFormat other = (SourceSftpBulkCSVFormat) o; return - Objects.deepEquals(this.delimiter, other.delimiter) && - Objects.deepEquals(this.doubleQuote, other.doubleQuote) && - Objects.deepEquals(this.encoding, other.encoding) && - Objects.deepEquals(this.escapeChar, other.escapeChar) && - Objects.deepEquals(this.falseValues, other.falseValues) && - Objects.deepEquals(this.filetype, other.filetype) && - Objects.deepEquals(this.headerDefinition, other.headerDefinition) && - Objects.deepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && - Objects.deepEquals(this.nullValues, other.nullValues) && - Objects.deepEquals(this.quoteChar, other.quoteChar) && - Objects.deepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && - Objects.deepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && - Objects.deepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && - Objects.deepEquals(this.trueValues, other.trueValues); + Utils.enhancedDeepEquals(this.delimiter, other.delimiter) && + Utils.enhancedDeepEquals(this.doubleQuote, other.doubleQuote) && + Utils.enhancedDeepEquals(this.encoding, other.encoding) && + Utils.enhancedDeepEquals(this.escapeChar, other.escapeChar) && + Utils.enhancedDeepEquals(this.falseValues, other.falseValues) && + Utils.enhancedDeepEquals(this.filetype, other.filetype) && + Utils.enhancedDeepEquals(this.headerDefinition, other.headerDefinition) && + Utils.enhancedDeepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && + Utils.enhancedDeepEquals(this.nullValues, other.nullValues) && + Utils.enhancedDeepEquals(this.quoteChar, other.quoteChar) && + Utils.enhancedDeepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && + Utils.enhancedDeepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && + Utils.enhancedDeepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && + Utils.enhancedDeepEquals(this.trueValues, other.trueValues); } @Override public int hashCode() { - return Objects.hash( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - filetype, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, - trueValues); + return Utils.enhancedHash( + delimiter, doubleQuote, encoding, + escapeChar, falseValues, filetype, + headerDefinition, ignoreErrorsOnFieldsMismatch, nullValues, + quoteChar, skipRowsAfterHeader, skipRowsBeforeHeader, + stringsCanBeNull, trueValues); } @Override @@ -581,41 +645,44 @@ public String toString() { "stringsCanBeNull", stringsCanBeNull, "trueValues", trueValues); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional delimiter; - + private Optional doubleQuote; - + private Optional encoding; - + private Optional escapeChar = Optional.empty(); - + private Optional> falseValues = Optional.empty(); - + private Optional headerDefinition = Optional.empty(); - + private Optional ignoreErrorsOnFieldsMismatch; - + private Optional> nullValues = Optional.empty(); - + private Optional quoteChar; - + private Optional skipRowsAfterHeader; - + private Optional skipRowsBeforeHeader; - + private Optional stringsCanBeNull; - + private Optional> trueValues = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(String delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -624,7 +691,8 @@ public Builder delimiter(String delimiter) { } /** - * The character delimiting individual cells in the CSV data. This may only be a 1-character string. For tab-delimited data enter '\t'. + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. */ public Builder delimiter(Optional delimiter) { Utils.checkNotNull(delimiter, "delimiter"); @@ -632,6 +700,7 @@ public Builder delimiter(Optional delimiter) { return this; } + /** * Whether two quotes in a quoted CSV value denote a single quote in the data. */ @@ -650,8 +719,11 @@ public Builder doubleQuote(Optional doubleQuote) { return this; } + /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(String encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -660,7 +732,9 @@ public Builder encoding(String encoding) { } /** - * The character encoding of the CSV data. Leave blank to default to <strong>UTF8</strong>. See <a href="https://docs.python.org/3/library/codecs.html#standard-encodings" target="_blank">list of python encodings</a> for allowable options. + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. */ public Builder encoding(Optional encoding) { Utils.checkNotNull(encoding, "encoding"); @@ -668,6 +742,7 @@ public Builder encoding(Optional encoding) { return this; } + /** * The character used for escaping special characters. To disallow escaping, leave this field blank. */ @@ -686,6 +761,7 @@ public Builder escapeChar(Optional escapeChar) { return this; } + /** * A set of case-sensitive strings that should be interpreted as false values. */ @@ -704,8 +780,15 @@ public Builder falseValues(Optional> falseValues) { return this; } + /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(SourceSftpBulkCSVHeaderDefinition headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -714,7 +797,13 @@ public Builder headerDefinition(SourceSftpBulkCSVHeaderDefinition headerDefiniti } /** - * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ public Builder headerDefinition(Optional headerDefinition) { Utils.checkNotNull(headerDefinition, "headerDefinition"); @@ -722,8 +811,10 @@ public Builder headerDefinition(Optional ignoreErrorsOnFieldsMismatch) { Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); @@ -740,8 +832,10 @@ public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFiel return this; } + /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(List nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -750,7 +844,8 @@ public Builder nullValues(List nullValues) { } /** - * A set of case-sensitive strings that should be interpreted as null values. For example, if the value 'NA' should be interpreted as null, enter 'NA' in this field. + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. */ public Builder nullValues(Optional> nullValues) { Utils.checkNotNull(nullValues, "nullValues"); @@ -758,6 +853,7 @@ public Builder nullValues(Optional> nullValues) { return this; } + /** * The character used for quoting CSV values. To disallow quoting, make this field blank. */ @@ -776,6 +872,7 @@ public Builder quoteChar(Optional quoteChar) { return this; } + /** * The number of rows to skip after the header row. */ @@ -794,8 +891,10 @@ public Builder skipRowsAfterHeader(Optional skipRowsAfterHeader) { return this; } + /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -804,7 +903,8 @@ public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { } /** - * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, enter 2 in this field. + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. */ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); @@ -812,8 +912,11 @@ public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { return this; } + /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(boolean stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -822,7 +925,9 @@ public Builder stringsCanBeNull(boolean stringsCanBeNull) { } /** - * Whether strings can be interpreted as null values. If true, strings that match the null_values set will be interpreted as null. If false, strings that match the null_values set will be interpreted as the string itself. + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. */ public Builder stringsCanBeNull(Optional stringsCanBeNull) { Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); @@ -830,6 +935,7 @@ public Builder stringsCanBeNull(Optional stringsCanBeNull) { return this; } + /** * A set of case-sensitive strings that should be interpreted as true values. */ @@ -847,7 +953,7 @@ public Builder trueValues(Optional> trueValues) { this.trueValues = trueValues; return this; } - + public SourceSftpBulkCSVFormat build() { if (delimiter == null) { delimiter = _SINGLETON_VALUE_Delimiter.value(); @@ -873,22 +979,16 @@ public SourceSftpBulkCSVFormat build() { if (stringsCanBeNull == null) { stringsCanBeNull = _SINGLETON_VALUE_StringsCanBeNull.value(); } + return new SourceSftpBulkCSVFormat( - delimiter, - doubleQuote, - encoding, - escapeChar, - falseValues, - headerDefinition, - ignoreErrorsOnFieldsMismatch, - nullValues, - quoteChar, - skipRowsAfterHeader, - skipRowsBeforeHeader, - stringsCanBeNull, + delimiter, doubleQuote, encoding, + escapeChar, falseValues, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, + skipRowsAfterHeader, skipRowsBeforeHeader, stringsCanBeNull, trueValues); } + private static final LazySingletonValue> _SINGLETON_VALUE_Delimiter = new LazySingletonValue<>( "delimiter", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVHeaderDefinition.java index d9ad06af7..0bf8826e3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVHeaderDefinition.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCSVHeaderDefinition.java @@ -14,12 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceSftpBulkCSVHeaderDefinition * - *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior is to use the header from the CSV file. If a user wants to autogenerate or provide column names for a CSV having headers, they can skip rows. + *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. */ @JsonDeserialize(using = SourceSftpBulkCSVHeaderDefinition._Deserializer.class) public class SourceSftpBulkCSVHeaderDefinition { @@ -78,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSftpBulkCSVHeaderDefinition other = (SourceSftpBulkCSVHeaderDefinition) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCopyRawFiles.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCopyRawFiles.java index 88c9c0abe..c87395e95 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCopyRawFiles.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkCopyRawFiles.java @@ -15,13 +15,14 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * SourceSftpBulkCopyRawFiles * - *

    Copy raw files without parsing their contents. Bits are copied into the destination exactly as they appeared in the source. Recommended for use with unstructured text data, non-text and compressed files. + *

    Copy raw files without parsing their contents. Bits are copied into the destination exactly as they + * appeared in the source. Recommended for use with unstructured text data, non-text and compressed + * files. */ public class SourceSftpBulkCopyRawFiles { @@ -30,7 +31,9 @@ public class SourceSftpBulkCopyRawFiles { private Optional deliveryType; /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("preserve_directory_structure") @@ -55,19 +58,24 @@ public Optional deliveryType() { } /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ @JsonIgnore public Optional preserveDirectoryStructure() { return preserveDirectoryStructure; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public SourceSftpBulkCopyRawFiles withPreserveDirectoryStructure(boolean preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -75,8 +83,11 @@ public SourceSftpBulkCopyRawFiles withPreserveDirectoryStructure(boolean preserv return this; } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public SourceSftpBulkCopyRawFiles withPreserveDirectoryStructure(Optional preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -84,7 +95,6 @@ public SourceSftpBulkCopyRawFiles withPreserveDirectoryStructure(Optional preserveDirectoryStructure; - + private Builder() { // force use of static builder() method } + /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); @@ -131,22 +144,26 @@ public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { } /** - * If enabled, sends subdirectory folder structure along with source file names to the destination. Otherwise, files will be synced by their names only. This option is ignored when file-based replication is not enabled. + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. */ public Builder preserveDirectoryStructure(Optional preserveDirectoryStructure) { Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); this.preserveDirectoryStructure = preserveDirectoryStructure; return this; } - + public SourceSftpBulkCopyRawFiles build() { if (preserveDirectoryStructure == null) { preserveDirectoryStructure = _SINGLETON_VALUE_PreserveDirectoryStructure.value(); } + return new SourceSftpBulkCopyRawFiles( preserveDirectoryStructure); } + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = new LazySingletonValue<>( "delivery_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryMethod.java index fc301e51b..4c92c0a79 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceSftpBulkDeliveryMethod._Deserializer.class) public class SourceSftpBulkDeliveryMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSftpBulkDeliveryMethod other = (SourceSftpBulkDeliveryMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java index cafd2b07e..40aecfccd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkDeliveryType.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkDeliveryType { @JsonValue private final String value; - private SourceSftpBulkDeliveryType(String value) { + SourceSftpBulkDeliveryType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkExcelFormat.java index 08753534e..58d479e2c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkExcelFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkExcelFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceSftpBulkExcelFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceSftpBulkExcelFormat { @JsonCreator public SourceSftpBulkExcelFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkExcelFormat other = (SourceSftpBulkExcelFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceSftpBulkExcelFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceSftpBulkExcelFormat build() { + return new SourceSftpBulkExcelFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFileBasedStreamConfig.java index 9c418264a..951349d96 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFileBasedStreamConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFileBasedStreamConfig.java @@ -17,33 +17,37 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSftpBulkFileBasedStreamConfig { +public class SourceSftpBulkFileBasedStreamConfig { /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("days_to_sync_if_history_is_full") private Optional daysToSyncIfHistoryIsFull; /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonProperty("format") private SourceSftpBulkFormat format; /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("globs") private Optional> globs; /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("input_schema") @@ -70,7 +74,8 @@ public class SourceSftpBulkFileBasedStreamConfig { private Optional schemaless; /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("validation_policy") @@ -107,11 +112,14 @@ public SourceSftpBulkFileBasedStreamConfig( public SourceSftpBulkFileBasedStreamConfig( SourceSftpBulkFormat format, String name) { - this(Optional.empty(), format, Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), format, Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty(), Optional.empty()); } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ @JsonIgnore public Optional daysToSyncIfHistoryIsFull() { @@ -119,7 +127,8 @@ public Optional daysToSyncIfHistoryIsFull() { } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonIgnore public SourceSftpBulkFormat format() { @@ -127,7 +136,9 @@ public SourceSftpBulkFormat format() { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -136,7 +147,8 @@ public Optional> globs() { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ @JsonIgnore public Optional inputSchema() { @@ -168,7 +180,8 @@ public Optional schemaless() { } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -176,12 +189,14 @@ public Optional validationPolicy() { return (Optional) validationPolicy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceSftpBulkFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -189,8 +204,10 @@ public SourceSftpBulkFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long da return this; } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public SourceSftpBulkFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -199,7 +216,8 @@ public SourceSftpBulkFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optiona } /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public SourceSftpBulkFileBasedStreamConfig withFormat(SourceSftpBulkFormat format) { Utils.checkNotNull(format, "format"); @@ -208,7 +226,9 @@ public SourceSftpBulkFileBasedStreamConfig withFormat(SourceSftpBulkFormat forma } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public SourceSftpBulkFileBasedStreamConfig withGlobs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -216,8 +236,11 @@ public SourceSftpBulkFileBasedStreamConfig withGlobs(List globs) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public SourceSftpBulkFileBasedStreamConfig withGlobs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -226,7 +249,8 @@ public SourceSftpBulkFileBasedStreamConfig withGlobs(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -261,6 +287,7 @@ public SourceSftpBulkFileBasedStreamConfig withRecentNFilesToReadForSchemaDiscov return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -279,6 +306,7 @@ public SourceSftpBulkFileBasedStreamConfig withSchemaless(boolean schemaless) { return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -289,7 +317,8 @@ public SourceSftpBulkFileBasedStreamConfig withSchemaless(Optional sche } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public SourceSftpBulkFileBasedStreamConfig withValidationPolicy(SourceSftpBulkValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -297,8 +326,10 @@ public SourceSftpBulkFileBasedStreamConfig withValidationPolicy(SourceSftpBulkVa return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public SourceSftpBulkFileBasedStreamConfig withValidationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -306,7 +337,6 @@ public SourceSftpBulkFileBasedStreamConfig withValidationPolicy(Optional daysToSyncIfHistoryIsFull; - + private SourceSftpBulkFormat format; - + private Optional> globs = Optional.empty(); - + private Optional inputSchema = Optional.empty(); - + private String name; - + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); - + private Optional schemaless; - + private Optional validationPolicy; - + private Builder() { // force use of static builder() method } + /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -385,7 +413,8 @@ public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { } /** - * When the state history of the file store is full, syncs will only read files that were last modified in the provided day range. + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. */ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); @@ -393,8 +422,10 @@ public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFul return this; } + /** - * The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ public Builder format(SourceSftpBulkFormat format) { Utils.checkNotNull(format, "format"); @@ -402,8 +433,11 @@ public Builder format(SourceSftpBulkFormat format) { return this; } + /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(List globs) { Utils.checkNotNull(globs, "globs"); @@ -412,7 +446,9 @@ public Builder globs(List globs) { } /** - * The pattern used to specify which files should be selected from the file system. For more information on glob pattern matching look <a href="https://en.wikipedia.org/wiki/Glob_(programming)">here</a>. + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. */ public Builder globs(Optional> globs) { Utils.checkNotNull(globs, "globs"); @@ -420,8 +456,10 @@ public Builder globs(Optional> globs) { return this; } + /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(String inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -430,7 +468,8 @@ public Builder inputSchema(String inputSchema) { } /** - * The schema that will be used to validate records extracted from the file. This will override the stream schema that is auto-detected from incoming files. + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. */ public Builder inputSchema(Optional inputSchema) { Utils.checkNotNull(inputSchema, "inputSchema"); @@ -438,6 +477,7 @@ public Builder inputSchema(Optional inputSchema) { return this; } + /** * The name of the stream. */ @@ -447,6 +487,7 @@ public Builder name(String name) { return this; } + /** * The number of resent files which will be used to discover the schema for this stream. */ @@ -465,6 +506,7 @@ public Builder recentNFilesToReadForSchemaDiscovery(Optional recentNFilesT return this; } + /** * When enabled, syncs will not validate or structure records against the stream's schema. */ @@ -483,8 +525,10 @@ public Builder schemaless(Optional schemaless) { return this; } + /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(SourceSftpBulkValidationPolicy validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); @@ -493,14 +537,15 @@ public Builder validationPolicy(SourceSftpBulkValidationPolicy validationPolicy) } /** - * The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public Builder validationPolicy(Optional validationPolicy) { Utils.checkNotNull(validationPolicy, "validationPolicy"); this.validationPolicy = validationPolicy; return this; } - + public SourceSftpBulkFileBasedStreamConfig build() { if (daysToSyncIfHistoryIsFull == null) { daysToSyncIfHistoryIsFull = _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull.value(); @@ -511,17 +556,14 @@ public SourceSftpBulkFileBasedStreamConfig build() { if (validationPolicy == null) { validationPolicy = _SINGLETON_VALUE_ValidationPolicy.value(); } + return new SourceSftpBulkFileBasedStreamConfig( - daysToSyncIfHistoryIsFull, - format, - globs, - inputSchema, - name, - recentNFilesToReadForSchemaDiscovery, - schemaless, - validationPolicy); + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, recentNFilesToReadForSchemaDiscovery, + schemaless, validationPolicy); } + private static final LazySingletonValue> _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull = new LazySingletonValue<>( "days_to_sync_if_history_is_full", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java index b1820a032..92c77fbc5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFiletype.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkFiletype { @JsonValue private final String value; - private SourceSftpBulkFiletype(String value) { + SourceSftpBulkFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFormat.java index 0fcba38dc..28854e9f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFormat.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceSftpBulkFormat * - *

    The configuration options that are used to alter how to read incoming files that deviate from the standard formatting. + *

    The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. */ @JsonDeserialize(using = SourceSftpBulkFormat._Deserializer.class) public class SourceSftpBulkFormat { @@ -96,12 +96,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSftpBulkFormat other = (SourceSftpBulkFormat) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFromCSV.java index 8a9df5b71..9d57402de 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFromCSV.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkFromCSV.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceSftpBulkFromCSV { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceSftpBulkFromCSV { @JsonCreator public SourceSftpBulkFromCSV() { - this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); } @@ -35,11 +34,11 @@ public Optional headerDefinitionType() { return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkFromCSV other = (SourceSftpBulkFromCSV) o; return - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( headerDefinitionType); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceSftpBulkFromCSV.class, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceSftpBulkFromCSV build() { + return new SourceSftpBulkFromCSV( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java index dab3bfc92..189cd1707 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkHeaderDefinitionType { @JsonValue private final String value; - private SourceSftpBulkHeaderDefinitionType(String value) { + SourceSftpBulkHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkJsonlFormat.java index be6e359b8..738ba5384 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkJsonlFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkJsonlFormat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceSftpBulkJsonlFormat { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,6 @@ public class SourceSftpBulkJsonlFormat { @JsonCreator public SourceSftpBulkJsonlFormat() { - this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); } @@ -35,11 +34,11 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +49,12 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkJsonlFormat other = (SourceSftpBulkJsonlFormat) o; return - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( filetype); } @@ -64,18 +63,21 @@ public String toString() { return Utils.toString(SourceSftpBulkJsonlFormat.class, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceSftpBulkJsonlFormat build() { + return new SourceSftpBulkJsonlFormat( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkLocal.java index b30bee8f0..1dae6ed36 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkLocal.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkLocal.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -30,7 +29,6 @@ public class SourceSftpBulkLocal { @JsonCreator public SourceSftpBulkLocal() { - this.mode = Builder._SINGLETON_VALUE_Mode.value(); } @@ -40,11 +38,11 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +53,12 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkLocal other = (SourceSftpBulkLocal) o; return - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( mode); } @@ -69,18 +67,21 @@ public String toString() { return Utils.toString(SourceSftpBulkLocal.class, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceSftpBulkLocal build() { + return new SourceSftpBulkLocal( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java index 64027c27c..1877e74c2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkMode.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkMode { @JsonValue private final String value; - private SourceSftpBulkMode(String value) { + SourceSftpBulkMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParquetFormat.java index 7b4e42cdb..26639bc43 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParquetFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParquetFormat.java @@ -15,18 +15,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceSftpBulkParquetFormat { +public class SourceSftpBulkParquetFormat { /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("decimal_as_float") private Optional decimalAsFloat; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filetype") private Optional filetype; @@ -44,7 +45,8 @@ public SourceSftpBulkParquetFormat() { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ @JsonIgnore public Optional decimalAsFloat() { @@ -57,12 +59,14 @@ public Optional filetype() { return (Optional) filetype; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceSftpBulkParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -70,8 +74,10 @@ public SourceSftpBulkParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { return this; } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public SourceSftpBulkParquetFormat withDecimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -79,7 +85,6 @@ public SourceSftpBulkParquetFormat withDecimalAsFloat(Optional decimalA return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -90,15 +95,14 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkParquetFormat other = (SourceSftpBulkParquetFormat) o; return - Objects.deepEquals(this.decimalAsFloat, other.decimalAsFloat) && - Objects.deepEquals(this.filetype, other.filetype); + Utils.enhancedDeepEquals(this.decimalAsFloat, other.decimalAsFloat) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); } @Override public int hashCode() { - return Objects.hash( - decimalAsFloat, - filetype); + return Utils.enhancedHash( + decimalAsFloat, filetype); } @Override @@ -107,17 +111,20 @@ public String toString() { "decimalAsFloat", decimalAsFloat, "filetype", filetype); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional decimalAsFloat; - + private Builder() { // force use of static builder() method } + /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(boolean decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); @@ -126,22 +133,25 @@ public Builder decimalAsFloat(boolean decimalAsFloat) { } /** - * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals to floats, so this is not recommended. + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. */ public Builder decimalAsFloat(Optional decimalAsFloat) { Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); this.decimalAsFloat = decimalAsFloat; return this; } - + public SourceSftpBulkParquetFormat build() { if (decimalAsFloat == null) { decimalAsFloat = _SINGLETON_VALUE_DecimalAsFloat.value(); } + return new SourceSftpBulkParquetFormat( decimalAsFloat); } + private static final LazySingletonValue> _SINGLETON_VALUE_DecimalAsFloat = new LazySingletonValue<>( "decimal_as_float", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java index 1f6b94e45..f78e1b368 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkParsingStrategy.java @@ -11,7 +11,12 @@ /** * SourceSftpBulkParsingStrategy * - *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public enum SourceSftpBulkParsingStrategy { AUTO("auto"), @@ -22,7 +27,7 @@ public enum SourceSftpBulkParsingStrategy { @JsonValue private final String value; - private SourceSftpBulkParsingStrategy(String value) { + SourceSftpBulkParsingStrategy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java index a6e061581..e9145b916 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkProcessing.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceSftpBulkProcessing @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSftpBulkProcessing other = (SourceSftpBulkProcessing) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkReplicateRecords.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkReplicateRecords.java index 72c615ccd..2c7d33a19 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkReplicateRecords.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkReplicateRecords.java @@ -14,13 +14,16 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * SourceSftpBulkReplicateRecords * - *

    Recommended - Extract and load structured records into your destination of choice. This is the classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or files from a structured schema. Data can be flattened, typed and deduped depending on the destination. + *

    Recommended - Extract and load structured records into your destination of choice. This is the + * classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or + * files from a structured schema. + * + *

    Data can be flattened, typed and deduped depending on the destination. */ public class SourceSftpBulkReplicateRecords { @@ -30,7 +33,6 @@ public class SourceSftpBulkReplicateRecords { @JsonCreator public SourceSftpBulkReplicateRecords() { - this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); } @@ -40,11 +42,11 @@ public Optional deliveryType() { return (Optional) deliveryType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +57,12 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkReplicateRecords other = (SourceSftpBulkReplicateRecords) o; return - Objects.deepEquals(this.deliveryType, other.deliveryType); + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( deliveryType); } @@ -69,18 +71,21 @@ public String toString() { return Utils.toString(SourceSftpBulkReplicateRecords.class, "deliveryType", deliveryType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceSftpBulkReplicateRecords build() { + return new SourceSftpBulkReplicateRecords( ); } + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = new LazySingletonValue<>( "delivery_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java index 7bbd3d2ed..52143670f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkSchemasAuthType { @JsonValue private final String value; - private SourceSftpBulkSchemasAuthType(String value) { + SourceSftpBulkSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasDeliveryType.java index 296213253..342e13f66 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasDeliveryType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasDeliveryType.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkSchemasDeliveryType { @JsonValue private final String value; - private SourceSftpBulkSchemasDeliveryType(String value) { + SourceSftpBulkSchemasDeliveryType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasFiletype.java index f09a4f19a..cb1f1fb7a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasFiletype.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkSchemasFiletype { @JsonValue private final String value; - private SourceSftpBulkSchemasFiletype(String value) { + SourceSftpBulkSchemasFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasHeaderDefinitionType.java index eb9db0980..827e9186e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkSchemasHeaderDefinitionType { @JsonValue private final String value; - private SourceSftpBulkSchemasHeaderDefinitionType(String value) { + SourceSftpBulkSchemasHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java index 704cbe04b..4e49a2fbe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasMode.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkSchemasMode { @JsonValue private final String value; - private SourceSftpBulkSchemasMode(String value) { + SourceSftpBulkSchemasMode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java index 3265526e5..feb279c32 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFiletype.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkSchemasStreamsFiletype { @JsonValue private final String value; - private SourceSftpBulkSchemasStreamsFiletype(String value) { + SourceSftpBulkSchemasStreamsFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java index 7e7366db8..6943a7db8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkSchemasStreamsFormatFiletype { @JsonValue private final String value; - private SourceSftpBulkSchemasStreamsFormatFiletype(String value) { + SourceSftpBulkSchemasStreamsFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java index 3884e255e..67d7316bc 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormat6Filetype.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkSchemasStreamsFormatFormat6Filetype { @JsonValue private final String value; - private SourceSftpBulkSchemasStreamsFormatFormat6Filetype(String value) { + SourceSftpBulkSchemasStreamsFormatFormat6Filetype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java index 84683f1ad..d7292e1bb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsFormatFormatFiletype.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkSchemasStreamsFormatFormatFiletype { @JsonValue private final String value; - private SourceSftpBulkSchemasStreamsFormatFormatFiletype(String value) { + SourceSftpBulkSchemasStreamsFormatFormatFiletype(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsHeaderDefinitionType.java index 6c639f501..669abf37d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsHeaderDefinitionType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkSchemasStreamsHeaderDefinitionType.java @@ -14,7 +14,7 @@ public enum SourceSftpBulkSchemasStreamsHeaderDefinitionType { @JsonValue private final String value; - private SourceSftpBulkSchemasStreamsHeaderDefinitionType(String value) { + SourceSftpBulkSchemasStreamsHeaderDefinitionType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java index eca71a3bd..a9618f504 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUnstructuredDocumentFormat.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -37,14 +36,20 @@ public class SourceSftpBulkUnstructuredDocumentFormat { private Optional processing; /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_unprocessable_files") private Optional skipUnprocessableFiles; /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strategy") @@ -84,7 +89,8 @@ public Optional processing() { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonIgnore public Optional skipUnprocessableFiles() { @@ -92,7 +98,12 @@ public Optional skipUnprocessableFiles() { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @SuppressWarnings("unchecked") @JsonIgnore @@ -100,9 +111,10 @@ public Optional strategy() { return (Optional) strategy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Processing configuration @@ -113,6 +125,7 @@ public SourceSftpBulkUnstructuredDocumentFormat withProcessing(SourceSftpBulkPro return this; } + /** * Processing configuration */ @@ -123,7 +136,8 @@ public SourceSftpBulkUnstructuredDocumentFormat withProcessing(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -141,7 +157,12 @@ public SourceSftpBulkUnstructuredDocumentFormat withSkipUnprocessableFiles(Optio } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceSftpBulkUnstructuredDocumentFormat withStrategy(SourceSftpBulkParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -149,8 +170,14 @@ public SourceSftpBulkUnstructuredDocumentFormat withStrategy(SourceSftpBulkParsi return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public SourceSftpBulkUnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -158,7 +185,6 @@ public SourceSftpBulkUnstructuredDocumentFormat withStrategy(Optional processing = Optional.empty(); - + private Optional skipUnprocessableFiles; - + private Optional strategy; - + private Builder() { // force use of static builder() method } + /** * Processing configuration */ @@ -223,8 +249,10 @@ public Builder processing(Optional processin return this; } + /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -233,7 +261,8 @@ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -241,8 +270,14 @@ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(SourceSftpBulkParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -251,14 +286,19 @@ public Builder strategy(SourceSftpBulkParsingStrategy strategy) { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; } - + public SourceSftpBulkUnstructuredDocumentFormat build() { if (skipUnprocessableFiles == null) { skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); @@ -266,12 +306,12 @@ public SourceSftpBulkUnstructuredDocumentFormat build() { if (strategy == null) { strategy = _SINGLETON_VALUE_Strategy.value(); } + return new SourceSftpBulkUnstructuredDocumentFormat( - processing, - skipUnprocessableFiles, - strategy); + processing, skipUnprocessableFiles, strategy); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUserProvided.java index 18728fb76..a29a148a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkUserProvided.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSftpBulkUserProvided { +public class SourceSftpBulkUserProvided { /** * The column names that will be used while emitting the CSV records */ @JsonProperty("column_names") private List columnNames; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition_type") private Optional headerDefinitionType; @@ -52,9 +52,10 @@ public Optional headerDefiniti return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The column names that will be used while emitting the CSV records @@ -65,7 +66,6 @@ public SourceSftpBulkUserProvided withColumnNames(List columnNames) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -76,15 +76,14 @@ public boolean equals(java.lang.Object o) { } SourceSftpBulkUserProvided other = (SourceSftpBulkUserProvided) o; return - Objects.deepEquals(this.columnNames, other.columnNames) && - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.columnNames, other.columnNames) && + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( - columnNames, - headerDefinitionType); + return Utils.enhancedHash( + columnNames, headerDefinitionType); } @Override @@ -93,15 +92,17 @@ public String toString() { "columnNames", columnNames, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List columnNames; - + private Builder() { // force use of static builder() method } + /** * The column names that will be used while emitting the CSV records */ @@ -110,12 +111,14 @@ public Builder columnNames(List columnNames) { this.columnNames = columnNames; return this; } - + public SourceSftpBulkUserProvided build() { + return new SourceSftpBulkUserProvided( columnNames); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java index b6d97815a..915c3449b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkValidationPolicy.java @@ -11,7 +11,8 @@ /** * SourceSftpBulkValidationPolicy * - *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public enum SourceSftpBulkValidationPolicy { EMIT_RECORD("Emit Record"), @@ -21,7 +22,7 @@ public enum SourceSftpBulkValidationPolicy { @JsonValue private final String value; - private SourceSftpBulkValidationPolicy(String value) { + SourceSftpBulkValidationPolicy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java index a70fac4b1..f73d4d353 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpBulkViaAPI.java @@ -15,16 +15,15 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * SourceSftpBulkViaAPI * - *

    Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. + *

    Process files via an API, using the `hi_res` mode. This option is useful for increased performance + * and accuracy, but requires an API key and a hosted instance of unstructured. */ public class SourceSftpBulkViaAPI { - /** * The API key to use matching the environment */ @@ -39,6 +38,7 @@ public class SourceSftpBulkViaAPI { @JsonProperty("api_url") private Optional apiUrl; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -99,9 +99,10 @@ public Optional> parameters() { return (Optional>) parameters; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API key to use matching the environment @@ -112,6 +113,7 @@ public SourceSftpBulkViaAPI withApiKey(String apiKey) { return this; } + /** * The API key to use matching the environment */ @@ -130,6 +132,7 @@ public SourceSftpBulkViaAPI withApiUrl(String apiUrl) { return this; } + /** * The URL of the unstructured API to use */ @@ -148,6 +151,7 @@ public SourceSftpBulkViaAPI withParameters(List apiKey; - + private Optional apiUrl; - + private Optional> parameters = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The API key to use matching the environment */ @@ -222,6 +225,7 @@ public Builder apiKey(Optional apiKey) { return this; } + /** * The URL of the unstructured API to use */ @@ -240,6 +244,7 @@ public Builder apiUrl(Optional apiUrl) { return this; } + /** * List of parameters send to the API */ @@ -257,7 +262,7 @@ public Builder parameters(Optional> _SINGLETON_VALUE_ApiKey = new LazySingletonValue<>( "api_key", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpPasswordAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpPasswordAuthentication.java index 4d65b653e..2b332945c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpPasswordAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpPasswordAuthentication.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSftpPasswordAuthentication { +public class SourceSftpPasswordAuthentication { /** * Connect through password authentication */ @@ -51,9 +50,10 @@ public String authUserPassword() { return authUserPassword; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * OS-level password for logging into the jump server host @@ -64,7 +64,6 @@ public SourceSftpPasswordAuthentication withAuthUserPassword(String authUserPass return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +74,14 @@ public boolean equals(java.lang.Object o) { } SourceSftpPasswordAuthentication other = (SourceSftpPasswordAuthentication) o; return - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.authUserPassword, other.authUserPassword); + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.authUserPassword, other.authUserPassword); } @Override public int hashCode() { - return Objects.hash( - authMethod, - authUserPassword); + return Utils.enhancedHash( + authMethod, authUserPassword); } @Override @@ -92,15 +90,17 @@ public String toString() { "authMethod", authMethod, "authUserPassword", authUserPassword); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String authUserPassword; - + private Builder() { // force use of static builder() method } + /** * OS-level password for logging into the jump server host */ @@ -109,12 +109,14 @@ public Builder authUserPassword(String authUserPassword) { this.authUserPassword = authUserPassword; return this; } - + public SourceSftpPasswordAuthentication build() { + return new SourceSftpPasswordAuthentication( authUserPassword); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpSSHKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpSSHKeyAuthentication.java index 634a25882..e3aed92d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpSSHKeyAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpSSHKeyAuthentication.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSftpSSHKeyAuthentication { +public class SourceSftpSSHKeyAuthentication { /** * Connect through ssh key */ @@ -22,7 +21,8 @@ public class SourceSftpSSHKeyAuthentication { private SourceSftpSchemasAuthMethod authMethod; /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonProperty("auth_ssh_key") private String authSshKey; @@ -44,19 +44,22 @@ public SourceSftpSchemasAuthMethod authMethod() { } /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ @JsonIgnore public String authSshKey() { return authSshKey; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public SourceSftpSSHKeyAuthentication withAuthSshKey(String authSshKey) { Utils.checkNotNull(authSshKey, "authSshKey"); @@ -64,7 +67,6 @@ public SourceSftpSSHKeyAuthentication withAuthSshKey(String authSshKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +77,14 @@ public boolean equals(java.lang.Object o) { } SourceSftpSSHKeyAuthentication other = (SourceSftpSSHKeyAuthentication) o; return - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.authSshKey, other.authSshKey); + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.authSshKey, other.authSshKey); } @Override public int hashCode() { - return Objects.hash( - authMethod, - authSshKey); + return Utils.enhancedHash( + authMethod, authSshKey); } @Override @@ -92,29 +93,34 @@ public String toString() { "authMethod", authMethod, "authSshKey", authSshKey); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String authSshKey; - + private Builder() { // force use of static builder() method } + /** - * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM -f myuser_rsa ) + * OS-level user account ssh key credentials in RSA PEM format ( created with ssh-keygen -t rsa -m PEM + * -f myuser_rsa ) */ public Builder authSshKey(String authSshKey) { Utils.checkNotNull(authSshKey, "authSshKey"); this.authSshKey = authSshKey; return this; } - + public SourceSftpSSHKeyAuthentication build() { + return new SourceSftpSSHKeyAuthentication( authSshKey); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java index bd58f1b45..7f77672e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSftpSchemasAuthMethod.java @@ -19,7 +19,7 @@ public enum SourceSftpSchemasAuthMethod { @JsonValue private final String value; - private SourceSftpSchemasAuthMethod(String value) { + SourceSftpSchemasAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterprise.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterprise.java new file mode 100644 index 000000000..f18bba74e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterprise.java @@ -0,0 +1,538 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Optional; + +/** + * SourceSharepointEnterprise + * + *

    SourceMicrosoftSharePointSpec class for Microsoft SharePoint Source Specification. + * This class combines the authentication details with additional configuration for the SharePoint API. + */ +public class SourceSharepointEnterprise { + /** + * Credentials for connecting to the One Drive API + */ + @JsonProperty("credentials") + private SourceSharepointEnterpriseAuthentication credentials; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_method") + private Optional deliveryMethod; + + /** + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("folder_path") + private Optional folderPath; + + /** + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("search_scope") + private Optional searchScope; + + /** + * Url of SharePoint site to search for files. Leave empty to search in the main site. Use + * 'https://<tenant_name>.sharepoint.com/sites/' to iterate over all sites. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("site_url") + private Optional siteUrl; + + + @JsonProperty("sourceType") + private SourceSharepointEnterpriseSharepointEnterprise sourceType; + + /** + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("start_date") + private Optional startDate; + + /** + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + */ + @JsonProperty("streams") + private List streams; + + @JsonCreator + public SourceSharepointEnterprise( + @JsonProperty("credentials") SourceSharepointEnterpriseAuthentication credentials, + @JsonProperty("delivery_method") Optional deliveryMethod, + @JsonProperty("folder_path") Optional folderPath, + @JsonProperty("search_scope") Optional searchScope, + @JsonProperty("site_url") Optional siteUrl, + @JsonProperty("start_date") Optional startDate, + @JsonProperty("streams") List streams) { + Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + Utils.checkNotNull(folderPath, "folderPath"); + Utils.checkNotNull(searchScope, "searchScope"); + Utils.checkNotNull(siteUrl, "siteUrl"); + Utils.checkNotNull(startDate, "startDate"); + Utils.checkNotNull(streams, "streams"); + this.credentials = credentials; + this.deliveryMethod = deliveryMethod; + this.folderPath = folderPath; + this.searchScope = searchScope; + this.siteUrl = siteUrl; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + this.streams = streams; + } + + public SourceSharepointEnterprise( + SourceSharepointEnterpriseAuthentication credentials, + List streams) { + this(credentials, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + streams); + } + + /** + * Credentials for connecting to the One Drive API + */ + @JsonIgnore + public SourceSharepointEnterpriseAuthentication credentials() { + return credentials; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional deliveryMethod() { + return (Optional) deliveryMethod; + } + + /** + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. + */ + @JsonIgnore + public Optional folderPath() { + return folderPath; + } + + /** + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional searchScope() { + return (Optional) searchScope; + } + + /** + * Url of SharePoint site to search for files. Leave empty to search in the main site. Use + * 'https://<tenant_name>.sharepoint.com/sites/' to iterate over all sites. + */ + @JsonIgnore + public Optional siteUrl() { + return siteUrl; + } + + @JsonIgnore + public SourceSharepointEnterpriseSharepointEnterprise sourceType() { + return sourceType; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. + */ + @JsonIgnore + public Optional startDate() { + return startDate; + } + + /** + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + */ + @JsonIgnore + public List streams() { + return streams; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Credentials for connecting to the One Drive API + */ + public SourceSharepointEnterprise withCredentials(SourceSharepointEnterpriseAuthentication credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + public SourceSharepointEnterprise withDeliveryMethod(SourceSharepointEnterpriseDeliveryMethod deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = Optional.ofNullable(deliveryMethod); + return this; + } + + + public SourceSharepointEnterprise withDeliveryMethod(Optional deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = deliveryMethod; + return this; + } + + /** + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. + */ + public SourceSharepointEnterprise withFolderPath(String folderPath) { + Utils.checkNotNull(folderPath, "folderPath"); + this.folderPath = Optional.ofNullable(folderPath); + return this; + } + + + /** + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. + */ + public SourceSharepointEnterprise withFolderPath(Optional folderPath) { + Utils.checkNotNull(folderPath, "folderPath"); + this.folderPath = folderPath; + return this; + } + + /** + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. + */ + public SourceSharepointEnterprise withSearchScope(SourceSharepointEnterpriseSearchScope searchScope) { + Utils.checkNotNull(searchScope, "searchScope"); + this.searchScope = Optional.ofNullable(searchScope); + return this; + } + + + /** + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. + */ + public SourceSharepointEnterprise withSearchScope(Optional searchScope) { + Utils.checkNotNull(searchScope, "searchScope"); + this.searchScope = searchScope; + return this; + } + + /** + * Url of SharePoint site to search for files. Leave empty to search in the main site. Use + * 'https://<tenant_name>.sharepoint.com/sites/' to iterate over all sites. + */ + public SourceSharepointEnterprise withSiteUrl(String siteUrl) { + Utils.checkNotNull(siteUrl, "siteUrl"); + this.siteUrl = Optional.ofNullable(siteUrl); + return this; + } + + + /** + * Url of SharePoint site to search for files. Leave empty to search in the main site. Use + * 'https://<tenant_name>.sharepoint.com/sites/' to iterate over all sites. + */ + public SourceSharepointEnterprise withSiteUrl(Optional siteUrl) { + Utils.checkNotNull(siteUrl, "siteUrl"); + this.siteUrl = siteUrl; + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. + */ + public SourceSharepointEnterprise withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + + /** + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. + */ + public SourceSharepointEnterprise withStartDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + */ + public SourceSharepointEnterprise withStreams(List streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = streams; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterprise other = (SourceSharepointEnterprise) o; + return + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.deliveryMethod, other.deliveryMethod) && + Utils.enhancedDeepEquals(this.folderPath, other.folderPath) && + Utils.enhancedDeepEquals(this.searchScope, other.searchScope) && + Utils.enhancedDeepEquals(this.siteUrl, other.siteUrl) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.streams, other.streams); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + credentials, deliveryMethod, folderPath, + searchScope, siteUrl, sourceType, + startDate, streams); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterprise.class, + "credentials", credentials, + "deliveryMethod", deliveryMethod, + "folderPath", folderPath, + "searchScope", searchScope, + "siteUrl", siteUrl, + "sourceType", sourceType, + "startDate", startDate, + "streams", streams); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private SourceSharepointEnterpriseAuthentication credentials; + + private Optional deliveryMethod = Optional.empty(); + + private Optional folderPath; + + private Optional searchScope; + + private Optional siteUrl; + + private Optional startDate = Optional.empty(); + + private List streams; + + private Builder() { + // force use of static builder() method + } + + + /** + * Credentials for connecting to the One Drive API + */ + public Builder credentials(SourceSharepointEnterpriseAuthentication credentials) { + Utils.checkNotNull(credentials, "credentials"); + this.credentials = credentials; + return this; + } + + + public Builder deliveryMethod(SourceSharepointEnterpriseDeliveryMethod deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = Optional.ofNullable(deliveryMethod); + return this; + } + + public Builder deliveryMethod(Optional deliveryMethod) { + Utils.checkNotNull(deliveryMethod, "deliveryMethod"); + this.deliveryMethod = deliveryMethod; + return this; + } + + + /** + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. + */ + public Builder folderPath(String folderPath) { + Utils.checkNotNull(folderPath, "folderPath"); + this.folderPath = Optional.ofNullable(folderPath); + return this; + } + + /** + * Path to a specific folder within the drives to search for files. Leave empty to search all folders + * of the drives. This does not apply to shared items. + */ + public Builder folderPath(Optional folderPath) { + Utils.checkNotNull(folderPath, "folderPath"); + this.folderPath = folderPath; + return this; + } + + + /** + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. + */ + public Builder searchScope(SourceSharepointEnterpriseSearchScope searchScope) { + Utils.checkNotNull(searchScope, "searchScope"); + this.searchScope = Optional.ofNullable(searchScope); + return this; + } + + /** + * Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. + */ + public Builder searchScope(Optional searchScope) { + Utils.checkNotNull(searchScope, "searchScope"); + this.searchScope = searchScope; + return this; + } + + + /** + * Url of SharePoint site to search for files. Leave empty to search in the main site. Use + * 'https://<tenant_name>.sharepoint.com/sites/' to iterate over all sites. + */ + public Builder siteUrl(String siteUrl) { + Utils.checkNotNull(siteUrl, "siteUrl"); + this.siteUrl = Optional.ofNullable(siteUrl); + return this; + } + + /** + * Url of SharePoint site to search for files. Leave empty to search in the main site. Use + * 'https://<tenant_name>.sharepoint.com/sites/' to iterate over all sites. + */ + public Builder siteUrl(Optional siteUrl) { + Utils.checkNotNull(siteUrl, "siteUrl"); + this.siteUrl = siteUrl; + return this; + } + + + /** + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. + */ + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00.000000Z. Any file modified before this date will + * not be replicated. + */ + public Builder startDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + + /** + * Each instance of this configuration defines a stream. Use this to define which + * files belong in the stream, their format, and how they should be parsed and validated. When sending + * data to warehouse destination such as Snowflake or BigQuery, each stream is a separate table. + */ + public Builder streams(List streams) { + Utils.checkNotNull(streams, "streams"); + this.streams = streams; + return this; + } + + public SourceSharepointEnterprise build() { + if (folderPath == null) { + folderPath = _SINGLETON_VALUE_FolderPath.value(); + } + if (searchScope == null) { + searchScope = _SINGLETON_VALUE_SearchScope.value(); + } + if (siteUrl == null) { + siteUrl = _SINGLETON_VALUE_SiteUrl.value(); + } + + return new SourceSharepointEnterprise( + credentials, deliveryMethod, folderPath, + searchScope, siteUrl, startDate, + streams); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_FolderPath = + new LazySingletonValue<>( + "folder_path", + "\".\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_SearchScope = + new LazySingletonValue<>( + "search_scope", + "\"ALL\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_SiteUrl = + new LazySingletonValue<>( + "site_url", + "\"\"", + new TypeReference>() {}); + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"sharepoint-enterprise\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthType.java new file mode 100644 index 000000000..6100d2b1a --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseAuthType { + CLIENT("Client"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseAuthType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseAuthType o: SourceSharepointEnterpriseAuthType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth.java similarity index 50% rename from src/main/java/com/airbyte/api/models/shared/SourceSnowflakeOAuth20.java rename to src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth.java index 4a247bb13..07daefc43 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth.java @@ -13,78 +13,79 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.lang.SuppressWarnings; import java.util.Optional; -public class SourceSnowflakeOAuth20 { +/** + * SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth + * + *

    OAuthCredentials class to hold authentication details for Microsoft OAuth authentication. + * This class uses pydantic for data validation and settings management. + */ +public class SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth { - /** - * Access Token for making authenticated requests. - */ @JsonInclude(Include.NON_ABSENT) - @JsonProperty("access_token") - private Optional accessToken; - @JsonProperty("auth_type") - private SourceSnowflakeAuthType authType; + private Optional authType; /** - * The Client ID of your Snowflake developer application. + * Client ID of your Microsoft developer application */ @JsonProperty("client_id") private String clientId; /** - * The Client Secret of your Snowflake developer application. + * Client Secret of your Microsoft developer application */ @JsonProperty("client_secret") private String clientSecret; /** - * Refresh Token for making authenticated requests. + * Refresh Token of your Microsoft developer application */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("refresh_token") private Optional refreshToken; + /** + * Tenant ID of the Microsoft SharePoint user + */ + @JsonProperty("tenant_id") + private String tenantId; + @JsonCreator - public SourceSnowflakeOAuth20( - @JsonProperty("access_token") Optional accessToken, + public SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth( @JsonProperty("client_id") String clientId, @JsonProperty("client_secret") String clientSecret, - @JsonProperty("refresh_token") Optional refreshToken) { - Utils.checkNotNull(accessToken, "accessToken"); + @JsonProperty("refresh_token") Optional refreshToken, + @JsonProperty("tenant_id") String tenantId) { Utils.checkNotNull(clientId, "clientId"); Utils.checkNotNull(clientSecret, "clientSecret"); Utils.checkNotNull(refreshToken, "refreshToken"); - this.accessToken = accessToken; + Utils.checkNotNull(tenantId, "tenantId"); this.authType = Builder._SINGLETON_VALUE_AuthType.value(); this.clientId = clientId; this.clientSecret = clientSecret; this.refreshToken = refreshToken; + this.tenantId = tenantId; } - public SourceSnowflakeOAuth20( + public SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth( String clientId, - String clientSecret) { - this(Optional.empty(), clientId, clientSecret, Optional.empty()); + String clientSecret, + String tenantId) { + this(clientId, clientSecret, Optional.empty(), + tenantId); } - /** - * Access Token for making authenticated requests. - */ + @SuppressWarnings("unchecked") @JsonIgnore - public Optional accessToken() { - return accessToken; - } - - @JsonIgnore - public SourceSnowflakeAuthType authType() { - return authType; + public Optional authType() { + return (Optional) authType; } /** - * The Client ID of your Snowflake developer application. + * Client ID of your Microsoft developer application */ @JsonIgnore public String clientId() { @@ -92,7 +93,7 @@ public String clientId() { } /** - * The Client Secret of your Snowflake developer application. + * Client Secret of your Microsoft developer application */ @JsonIgnore public String clientSecret() { @@ -100,72 +101,72 @@ public String clientSecret() { } /** - * Refresh Token for making authenticated requests. + * Refresh Token of your Microsoft developer application */ @JsonIgnore public Optional refreshToken() { return refreshToken; } - public final static Builder builder() { - return new Builder(); - } - /** - * Access Token for making authenticated requests. + * Tenant ID of the Microsoft SharePoint user */ - public SourceSnowflakeOAuth20 withAccessToken(String accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = Optional.ofNullable(accessToken); - return this; + @JsonIgnore + public String tenantId() { + return tenantId; } - /** - * Access Token for making authenticated requests. - */ - public SourceSnowflakeOAuth20 withAccessToken(Optional accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = accessToken; - return this; + public static Builder builder() { + return new Builder(); } + /** - * The Client ID of your Snowflake developer application. + * Client ID of your Microsoft developer application */ - public SourceSnowflakeOAuth20 withClientId(String clientId) { + public SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } /** - * The Client Secret of your Snowflake developer application. + * Client Secret of your Microsoft developer application */ - public SourceSnowflakeOAuth20 withClientSecret(String clientSecret) { + public SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } /** - * Refresh Token for making authenticated requests. + * Refresh Token of your Microsoft developer application */ - public SourceSnowflakeOAuth20 withRefreshToken(String refreshToken) { + public SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth withRefreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = Optional.ofNullable(refreshToken); return this; } + /** - * Refresh Token for making authenticated requests. + * Refresh Token of your Microsoft developer application */ - public SourceSnowflakeOAuth20 withRefreshToken(Optional refreshToken) { + public SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth withRefreshToken(Optional refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } - + /** + * Tenant ID of the Microsoft SharePoint user + */ + public SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth withTenantId(String tenantId) { + Utils.checkNotNull(tenantId, "tenantId"); + this.tenantId = tenantId; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,69 +175,50 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SourceSnowflakeOAuth20 other = (SourceSnowflakeOAuth20) o; + SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth other = (SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - refreshToken); + return Utils.enhancedHash( + authType, clientId, clientSecret, + refreshToken, tenantId); } @Override public String toString() { - return Utils.toString(SourceSnowflakeOAuth20.class, - "accessToken", accessToken, + return Utils.toString(SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth.class, "authType", authType, "clientId", clientId, "clientSecret", clientSecret, - "refreshToken", refreshToken); + "refreshToken", refreshToken, + "tenantId", tenantId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - - private Optional accessToken = Optional.empty(); - + private String clientId; - + private String clientSecret; - + private Optional refreshToken = Optional.empty(); - + + private String tenantId; + private Builder() { // force use of static builder() method } - /** - * Access Token for making authenticated requests. - */ - public Builder accessToken(String accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = Optional.ofNullable(accessToken); - return this; - } /** - * Access Token for making authenticated requests. - */ - public Builder accessToken(Optional accessToken) { - Utils.checkNotNull(accessToken, "accessToken"); - this.accessToken = accessToken; - return this; - } - - /** - * The Client ID of your Snowflake developer application. + * Client ID of your Microsoft developer application */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -244,8 +226,9 @@ public Builder clientId(String clientId) { return this; } + /** - * The Client Secret of your Snowflake developer application. + * Client Secret of your Microsoft developer application */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -253,8 +236,9 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * Refresh Token for making authenticated requests. + * Refresh Token of your Microsoft developer application */ public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); @@ -263,26 +247,36 @@ public Builder refreshToken(String refreshToken) { } /** - * Refresh Token for making authenticated requests. + * Refresh Token of your Microsoft developer application */ public Builder refreshToken(Optional refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } - - public SourceSnowflakeOAuth20 build() { - return new SourceSnowflakeOAuth20( - accessToken, - clientId, - clientSecret, - refreshToken); + + + /** + * Tenant ID of the Microsoft SharePoint user + */ + public Builder tenantId(String tenantId) { + Utils.checkNotNull(tenantId, "tenantId"); + this.tenantId = tenantId; + return this; + } + + public SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth build() { + + return new SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth( + clientId, clientSecret, refreshToken, + tenantId); } - private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", - "\"OAuth\"", - new TypeReference() {}); + "\"Client\"", + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthentication.java new file mode 100644 index 000000000..c81a1f11d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAuthentication.java @@ -0,0 +1,99 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +/** + * SourceSharepointEnterpriseAuthentication + * + *

    Credentials for connecting to the One Drive API + */ +@JsonDeserialize(using = SourceSharepointEnterpriseAuthentication._Deserializer.class) +public class SourceSharepointEnterpriseAuthentication { + + @JsonValue + private TypedObject value; + + private SourceSharepointEnterpriseAuthentication(TypedObject value) { + this.value = value; + } + + public static SourceSharepointEnterpriseAuthentication of(SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSharepointEnterpriseAuthentication of(SourceSharepointEnterpriseServiceKeyAuthentication value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseAuthentication(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseAuthenticateViaMicrosoftOAuth}
    • + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseServiceKeyAuthentication}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseAuthentication other = (SourceSharepointEnterpriseAuthentication) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(SourceSharepointEnterpriseAuthentication.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseAuthentication.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAutogenerated.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAutogenerated.java new file mode 100644 index 000000000..8b5ce60ec --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAutogenerated.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class SourceSharepointEnterpriseAutogenerated { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("header_definition_type") + private Optional headerDefinitionType; + + @JsonCreator + public SourceSharepointEnterpriseAutogenerated() { + this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional headerDefinitionType() { + return (Optional) headerDefinitionType; + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseAutogenerated other = (SourceSharepointEnterpriseAutogenerated) o; + return + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + headerDefinitionType); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseAutogenerated.class, + "headerDefinitionType", headerDefinitionType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SourceSharepointEnterpriseAutogenerated build() { + + return new SourceSharepointEnterpriseAutogenerated( + ); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = + new LazySingletonValue<>( + "header_definition_type", + "\"Autogenerated\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAvroFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAvroFormat.java new file mode 100644 index 000000000..9dcce39d7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseAvroFormat.java @@ -0,0 +1,167 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class SourceSharepointEnterpriseAvroFormat { + /** + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("double_as_string") + private Optional doubleAsString; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + @JsonCreator + public SourceSharepointEnterpriseAvroFormat( + @JsonProperty("double_as_string") Optional doubleAsString) { + Utils.checkNotNull(doubleAsString, "doubleAsString"); + this.doubleAsString = doubleAsString; + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + public SourceSharepointEnterpriseAvroFormat() { + this(Optional.empty()); + } + + /** + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. + */ + @JsonIgnore + public Optional doubleAsString() { + return doubleAsString; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. + */ + public SourceSharepointEnterpriseAvroFormat withDoubleAsString(boolean doubleAsString) { + Utils.checkNotNull(doubleAsString, "doubleAsString"); + this.doubleAsString = Optional.ofNullable(doubleAsString); + return this; + } + + + /** + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. + */ + public SourceSharepointEnterpriseAvroFormat withDoubleAsString(Optional doubleAsString) { + Utils.checkNotNull(doubleAsString, "doubleAsString"); + this.doubleAsString = doubleAsString; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseAvroFormat other = (SourceSharepointEnterpriseAvroFormat) o; + return + Utils.enhancedDeepEquals(this.doubleAsString, other.doubleAsString) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + doubleAsString, filetype); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseAvroFormat.class, + "doubleAsString", doubleAsString, + "filetype", filetype); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional doubleAsString; + + private Builder() { + // force use of static builder() method + } + + + /** + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. + */ + public Builder doubleAsString(boolean doubleAsString) { + Utils.checkNotNull(doubleAsString, "doubleAsString"); + this.doubleAsString = Optional.ofNullable(doubleAsString); + return this; + } + + /** + * Whether to convert double fields to strings. This is recommended if you have decimal numbers with a + * high degree of precision because there can be a loss precision when handling floating point numbers. + */ + public Builder doubleAsString(Optional doubleAsString) { + Utils.checkNotNull(doubleAsString, "doubleAsString"); + this.doubleAsString = doubleAsString; + return this; + } + + public SourceSharepointEnterpriseAvroFormat build() { + if (doubleAsString == null) { + doubleAsString = _SINGLETON_VALUE_DoubleAsString.value(); + } + + return new SourceSharepointEnterpriseAvroFormat( + doubleAsString); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_DoubleAsString = + new LazySingletonValue<>( + "double_as_string", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = + new LazySingletonValue<>( + "filetype", + "\"avro\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCSVFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCSVFormat.java new file mode 100644 index 000000000..94a29ae90 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCSVFormat.java @@ -0,0 +1,1046 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; + + +public class SourceSharepointEnterpriseCSVFormat { + /** + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delimiter") + private Optional delimiter; + + /** + * Whether two quotes in a quoted CSV value denote a single quote in the data. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("double_quote") + private Optional doubleQuote; + + /** + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("encoding") + private Optional encoding; + + /** + * The character used for escaping special characters. To disallow escaping, leave this field blank. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("escape_char") + private Optional escapeChar; + + /** + * A set of case-sensitive strings that should be interpreted as false values. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("false_values") + private Optional> falseValues; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + /** + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("header_definition") + private Optional headerDefinition; + + /** + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ignore_errors_on_fields_mismatch") + private Optional ignoreErrorsOnFieldsMismatch; + + /** + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("null_values") + private Optional> nullValues; + + /** + * The character used for quoting CSV values. To disallow quoting, make this field blank. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("quote_char") + private Optional quoteChar; + + /** + * The number of rows to skip after the header row. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("skip_rows_after_header") + private Optional skipRowsAfterHeader; + + /** + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("skip_rows_before_header") + private Optional skipRowsBeforeHeader; + + /** + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("strings_can_be_null") + private Optional stringsCanBeNull; + + /** + * A set of case-sensitive strings that should be interpreted as true values. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("true_values") + private Optional> trueValues; + + @JsonCreator + public SourceSharepointEnterpriseCSVFormat( + @JsonProperty("delimiter") Optional delimiter, + @JsonProperty("double_quote") Optional doubleQuote, + @JsonProperty("encoding") Optional encoding, + @JsonProperty("escape_char") Optional escapeChar, + @JsonProperty("false_values") Optional> falseValues, + @JsonProperty("header_definition") Optional headerDefinition, + @JsonProperty("ignore_errors_on_fields_mismatch") Optional ignoreErrorsOnFieldsMismatch, + @JsonProperty("null_values") Optional> nullValues, + @JsonProperty("quote_char") Optional quoteChar, + @JsonProperty("skip_rows_after_header") Optional skipRowsAfterHeader, + @JsonProperty("skip_rows_before_header") Optional skipRowsBeforeHeader, + @JsonProperty("strings_can_be_null") Optional stringsCanBeNull, + @JsonProperty("true_values") Optional> trueValues) { + Utils.checkNotNull(delimiter, "delimiter"); + Utils.checkNotNull(doubleQuote, "doubleQuote"); + Utils.checkNotNull(encoding, "encoding"); + Utils.checkNotNull(escapeChar, "escapeChar"); + Utils.checkNotNull(falseValues, "falseValues"); + Utils.checkNotNull(headerDefinition, "headerDefinition"); + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); + Utils.checkNotNull(nullValues, "nullValues"); + Utils.checkNotNull(quoteChar, "quoteChar"); + Utils.checkNotNull(skipRowsAfterHeader, "skipRowsAfterHeader"); + Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); + Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); + Utils.checkNotNull(trueValues, "trueValues"); + this.delimiter = delimiter; + this.doubleQuote = doubleQuote; + this.encoding = encoding; + this.escapeChar = escapeChar; + this.falseValues = falseValues; + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + this.headerDefinition = headerDefinition; + this.ignoreErrorsOnFieldsMismatch = ignoreErrorsOnFieldsMismatch; + this.nullValues = nullValues; + this.quoteChar = quoteChar; + this.skipRowsAfterHeader = skipRowsAfterHeader; + this.skipRowsBeforeHeader = skipRowsBeforeHeader; + this.stringsCanBeNull = stringsCanBeNull; + this.trueValues = trueValues; + } + + public SourceSharepointEnterpriseCSVFormat() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); + } + + /** + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. + */ + @JsonIgnore + public Optional delimiter() { + return delimiter; + } + + /** + * Whether two quotes in a quoted CSV value denote a single quote in the data. + */ + @JsonIgnore + public Optional doubleQuote() { + return doubleQuote; + } + + /** + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. + */ + @JsonIgnore + public Optional encoding() { + return encoding; + } + + /** + * The character used for escaping special characters. To disallow escaping, leave this field blank. + */ + @JsonIgnore + public Optional escapeChar() { + return escapeChar; + } + + /** + * A set of case-sensitive strings that should be interpreted as false values. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> falseValues() { + return (Optional>) falseValues; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + /** + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional headerDefinition() { + return (Optional) headerDefinition; + } + + /** + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. + */ + @JsonIgnore + public Optional ignoreErrorsOnFieldsMismatch() { + return ignoreErrorsOnFieldsMismatch; + } + + /** + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> nullValues() { + return (Optional>) nullValues; + } + + /** + * The character used for quoting CSV values. To disallow quoting, make this field blank. + */ + @JsonIgnore + public Optional quoteChar() { + return quoteChar; + } + + /** + * The number of rows to skip after the header row. + */ + @JsonIgnore + public Optional skipRowsAfterHeader() { + return skipRowsAfterHeader; + } + + /** + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. + */ + @JsonIgnore + public Optional skipRowsBeforeHeader() { + return skipRowsBeforeHeader; + } + + /** + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. + */ + @JsonIgnore + public Optional stringsCanBeNull() { + return stringsCanBeNull; + } + + /** + * A set of case-sensitive strings that should be interpreted as true values. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> trueValues() { + return (Optional>) trueValues; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. + */ + public SourceSharepointEnterpriseCSVFormat withDelimiter(String delimiter) { + Utils.checkNotNull(delimiter, "delimiter"); + this.delimiter = Optional.ofNullable(delimiter); + return this; + } + + + /** + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. + */ + public SourceSharepointEnterpriseCSVFormat withDelimiter(Optional delimiter) { + Utils.checkNotNull(delimiter, "delimiter"); + this.delimiter = delimiter; + return this; + } + + /** + * Whether two quotes in a quoted CSV value denote a single quote in the data. + */ + public SourceSharepointEnterpriseCSVFormat withDoubleQuote(boolean doubleQuote) { + Utils.checkNotNull(doubleQuote, "doubleQuote"); + this.doubleQuote = Optional.ofNullable(doubleQuote); + return this; + } + + + /** + * Whether two quotes in a quoted CSV value denote a single quote in the data. + */ + public SourceSharepointEnterpriseCSVFormat withDoubleQuote(Optional doubleQuote) { + Utils.checkNotNull(doubleQuote, "doubleQuote"); + this.doubleQuote = doubleQuote; + return this; + } + + /** + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. + */ + public SourceSharepointEnterpriseCSVFormat withEncoding(String encoding) { + Utils.checkNotNull(encoding, "encoding"); + this.encoding = Optional.ofNullable(encoding); + return this; + } + + + /** + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. + */ + public SourceSharepointEnterpriseCSVFormat withEncoding(Optional encoding) { + Utils.checkNotNull(encoding, "encoding"); + this.encoding = encoding; + return this; + } + + /** + * The character used for escaping special characters. To disallow escaping, leave this field blank. + */ + public SourceSharepointEnterpriseCSVFormat withEscapeChar(String escapeChar) { + Utils.checkNotNull(escapeChar, "escapeChar"); + this.escapeChar = Optional.ofNullable(escapeChar); + return this; + } + + + /** + * The character used for escaping special characters. To disallow escaping, leave this field blank. + */ + public SourceSharepointEnterpriseCSVFormat withEscapeChar(Optional escapeChar) { + Utils.checkNotNull(escapeChar, "escapeChar"); + this.escapeChar = escapeChar; + return this; + } + + /** + * A set of case-sensitive strings that should be interpreted as false values. + */ + public SourceSharepointEnterpriseCSVFormat withFalseValues(List falseValues) { + Utils.checkNotNull(falseValues, "falseValues"); + this.falseValues = Optional.ofNullable(falseValues); + return this; + } + + + /** + * A set of case-sensitive strings that should be interpreted as false values. + */ + public SourceSharepointEnterpriseCSVFormat withFalseValues(Optional> falseValues) { + Utils.checkNotNull(falseValues, "falseValues"); + this.falseValues = falseValues; + return this; + } + + /** + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. + */ + public SourceSharepointEnterpriseCSVFormat withHeaderDefinition(SourceSharepointEnterpriseCSVHeaderDefinition headerDefinition) { + Utils.checkNotNull(headerDefinition, "headerDefinition"); + this.headerDefinition = Optional.ofNullable(headerDefinition); + return this; + } + + + /** + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. + */ + public SourceSharepointEnterpriseCSVFormat withHeaderDefinition(Optional headerDefinition) { + Utils.checkNotNull(headerDefinition, "headerDefinition"); + this.headerDefinition = headerDefinition; + return this; + } + + /** + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. + */ + public SourceSharepointEnterpriseCSVFormat withIgnoreErrorsOnFieldsMismatch(boolean ignoreErrorsOnFieldsMismatch) { + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); + this.ignoreErrorsOnFieldsMismatch = Optional.ofNullable(ignoreErrorsOnFieldsMismatch); + return this; + } + + + /** + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. + */ + public SourceSharepointEnterpriseCSVFormat withIgnoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFieldsMismatch) { + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); + this.ignoreErrorsOnFieldsMismatch = ignoreErrorsOnFieldsMismatch; + return this; + } + + /** + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. + */ + public SourceSharepointEnterpriseCSVFormat withNullValues(List nullValues) { + Utils.checkNotNull(nullValues, "nullValues"); + this.nullValues = Optional.ofNullable(nullValues); + return this; + } + + + /** + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. + */ + public SourceSharepointEnterpriseCSVFormat withNullValues(Optional> nullValues) { + Utils.checkNotNull(nullValues, "nullValues"); + this.nullValues = nullValues; + return this; + } + + /** + * The character used for quoting CSV values. To disallow quoting, make this field blank. + */ + public SourceSharepointEnterpriseCSVFormat withQuoteChar(String quoteChar) { + Utils.checkNotNull(quoteChar, "quoteChar"); + this.quoteChar = Optional.ofNullable(quoteChar); + return this; + } + + + /** + * The character used for quoting CSV values. To disallow quoting, make this field blank. + */ + public SourceSharepointEnterpriseCSVFormat withQuoteChar(Optional quoteChar) { + Utils.checkNotNull(quoteChar, "quoteChar"); + this.quoteChar = quoteChar; + return this; + } + + /** + * The number of rows to skip after the header row. + */ + public SourceSharepointEnterpriseCSVFormat withSkipRowsAfterHeader(long skipRowsAfterHeader) { + Utils.checkNotNull(skipRowsAfterHeader, "skipRowsAfterHeader"); + this.skipRowsAfterHeader = Optional.ofNullable(skipRowsAfterHeader); + return this; + } + + + /** + * The number of rows to skip after the header row. + */ + public SourceSharepointEnterpriseCSVFormat withSkipRowsAfterHeader(Optional skipRowsAfterHeader) { + Utils.checkNotNull(skipRowsAfterHeader, "skipRowsAfterHeader"); + this.skipRowsAfterHeader = skipRowsAfterHeader; + return this; + } + + /** + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. + */ + public SourceSharepointEnterpriseCSVFormat withSkipRowsBeforeHeader(long skipRowsBeforeHeader) { + Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); + this.skipRowsBeforeHeader = Optional.ofNullable(skipRowsBeforeHeader); + return this; + } + + + /** + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. + */ + public SourceSharepointEnterpriseCSVFormat withSkipRowsBeforeHeader(Optional skipRowsBeforeHeader) { + Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); + this.skipRowsBeforeHeader = skipRowsBeforeHeader; + return this; + } + + /** + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. + */ + public SourceSharepointEnterpriseCSVFormat withStringsCanBeNull(boolean stringsCanBeNull) { + Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); + this.stringsCanBeNull = Optional.ofNullable(stringsCanBeNull); + return this; + } + + + /** + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. + */ + public SourceSharepointEnterpriseCSVFormat withStringsCanBeNull(Optional stringsCanBeNull) { + Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); + this.stringsCanBeNull = stringsCanBeNull; + return this; + } + + /** + * A set of case-sensitive strings that should be interpreted as true values. + */ + public SourceSharepointEnterpriseCSVFormat withTrueValues(List trueValues) { + Utils.checkNotNull(trueValues, "trueValues"); + this.trueValues = Optional.ofNullable(trueValues); + return this; + } + + + /** + * A set of case-sensitive strings that should be interpreted as true values. + */ + public SourceSharepointEnterpriseCSVFormat withTrueValues(Optional> trueValues) { + Utils.checkNotNull(trueValues, "trueValues"); + this.trueValues = trueValues; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseCSVFormat other = (SourceSharepointEnterpriseCSVFormat) o; + return + Utils.enhancedDeepEquals(this.delimiter, other.delimiter) && + Utils.enhancedDeepEquals(this.doubleQuote, other.doubleQuote) && + Utils.enhancedDeepEquals(this.encoding, other.encoding) && + Utils.enhancedDeepEquals(this.escapeChar, other.escapeChar) && + Utils.enhancedDeepEquals(this.falseValues, other.falseValues) && + Utils.enhancedDeepEquals(this.filetype, other.filetype) && + Utils.enhancedDeepEquals(this.headerDefinition, other.headerDefinition) && + Utils.enhancedDeepEquals(this.ignoreErrorsOnFieldsMismatch, other.ignoreErrorsOnFieldsMismatch) && + Utils.enhancedDeepEquals(this.nullValues, other.nullValues) && + Utils.enhancedDeepEquals(this.quoteChar, other.quoteChar) && + Utils.enhancedDeepEquals(this.skipRowsAfterHeader, other.skipRowsAfterHeader) && + Utils.enhancedDeepEquals(this.skipRowsBeforeHeader, other.skipRowsBeforeHeader) && + Utils.enhancedDeepEquals(this.stringsCanBeNull, other.stringsCanBeNull) && + Utils.enhancedDeepEquals(this.trueValues, other.trueValues); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + delimiter, doubleQuote, encoding, + escapeChar, falseValues, filetype, + headerDefinition, ignoreErrorsOnFieldsMismatch, nullValues, + quoteChar, skipRowsAfterHeader, skipRowsBeforeHeader, + stringsCanBeNull, trueValues); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseCSVFormat.class, + "delimiter", delimiter, + "doubleQuote", doubleQuote, + "encoding", encoding, + "escapeChar", escapeChar, + "falseValues", falseValues, + "filetype", filetype, + "headerDefinition", headerDefinition, + "ignoreErrorsOnFieldsMismatch", ignoreErrorsOnFieldsMismatch, + "nullValues", nullValues, + "quoteChar", quoteChar, + "skipRowsAfterHeader", skipRowsAfterHeader, + "skipRowsBeforeHeader", skipRowsBeforeHeader, + "stringsCanBeNull", stringsCanBeNull, + "trueValues", trueValues); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional delimiter; + + private Optional doubleQuote; + + private Optional encoding; + + private Optional escapeChar = Optional.empty(); + + private Optional> falseValues = Optional.empty(); + + private Optional headerDefinition = Optional.empty(); + + private Optional ignoreErrorsOnFieldsMismatch; + + private Optional> nullValues = Optional.empty(); + + private Optional quoteChar; + + private Optional skipRowsAfterHeader; + + private Optional skipRowsBeforeHeader; + + private Optional stringsCanBeNull; + + private Optional> trueValues = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. + */ + public Builder delimiter(String delimiter) { + Utils.checkNotNull(delimiter, "delimiter"); + this.delimiter = Optional.ofNullable(delimiter); + return this; + } + + /** + * The character delimiting individual cells in the CSV data. This may only be a 1-character string. + * For tab-delimited data enter '\t'. + */ + public Builder delimiter(Optional delimiter) { + Utils.checkNotNull(delimiter, "delimiter"); + this.delimiter = delimiter; + return this; + } + + + /** + * Whether two quotes in a quoted CSV value denote a single quote in the data. + */ + public Builder doubleQuote(boolean doubleQuote) { + Utils.checkNotNull(doubleQuote, "doubleQuote"); + this.doubleQuote = Optional.ofNullable(doubleQuote); + return this; + } + + /** + * Whether two quotes in a quoted CSV value denote a single quote in the data. + */ + public Builder doubleQuote(Optional doubleQuote) { + Utils.checkNotNull(doubleQuote, "doubleQuote"); + this.doubleQuote = doubleQuote; + return this; + } + + + /** + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. + */ + public Builder encoding(String encoding) { + Utils.checkNotNull(encoding, "encoding"); + this.encoding = Optional.ofNullable(encoding); + return this; + } + + /** + * The character encoding of the CSV data. Leave blank to default to UTF8. See list of python encodings + * for allowable options. + */ + public Builder encoding(Optional encoding) { + Utils.checkNotNull(encoding, "encoding"); + this.encoding = encoding; + return this; + } + + + /** + * The character used for escaping special characters. To disallow escaping, leave this field blank. + */ + public Builder escapeChar(String escapeChar) { + Utils.checkNotNull(escapeChar, "escapeChar"); + this.escapeChar = Optional.ofNullable(escapeChar); + return this; + } + + /** + * The character used for escaping special characters. To disallow escaping, leave this field blank. + */ + public Builder escapeChar(Optional escapeChar) { + Utils.checkNotNull(escapeChar, "escapeChar"); + this.escapeChar = escapeChar; + return this; + } + + + /** + * A set of case-sensitive strings that should be interpreted as false values. + */ + public Builder falseValues(List falseValues) { + Utils.checkNotNull(falseValues, "falseValues"); + this.falseValues = Optional.ofNullable(falseValues); + return this; + } + + /** + * A set of case-sensitive strings that should be interpreted as false values. + */ + public Builder falseValues(Optional> falseValues) { + Utils.checkNotNull(falseValues, "falseValues"); + this.falseValues = falseValues; + return this; + } + + + /** + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. + */ + public Builder headerDefinition(SourceSharepointEnterpriseCSVHeaderDefinition headerDefinition) { + Utils.checkNotNull(headerDefinition, "headerDefinition"); + this.headerDefinition = Optional.ofNullable(headerDefinition); + return this; + } + + /** + * How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. + */ + public Builder headerDefinition(Optional headerDefinition) { + Utils.checkNotNull(headerDefinition, "headerDefinition"); + this.headerDefinition = headerDefinition; + return this; + } + + + /** + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. + */ + public Builder ignoreErrorsOnFieldsMismatch(boolean ignoreErrorsOnFieldsMismatch) { + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); + this.ignoreErrorsOnFieldsMismatch = Optional.ofNullable(ignoreErrorsOnFieldsMismatch); + return this; + } + + /** + * Whether to ignore errors that occur when the number of fields in the CSV does not match the number + * of columns in the schema. + */ + public Builder ignoreErrorsOnFieldsMismatch(Optional ignoreErrorsOnFieldsMismatch) { + Utils.checkNotNull(ignoreErrorsOnFieldsMismatch, "ignoreErrorsOnFieldsMismatch"); + this.ignoreErrorsOnFieldsMismatch = ignoreErrorsOnFieldsMismatch; + return this; + } + + + /** + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. + */ + public Builder nullValues(List nullValues) { + Utils.checkNotNull(nullValues, "nullValues"); + this.nullValues = Optional.ofNullable(nullValues); + return this; + } + + /** + * A set of case-sensitive strings that should be interpreted as null values. For example, if the value + * 'NA' should be interpreted as null, enter 'NA' in this field. + */ + public Builder nullValues(Optional> nullValues) { + Utils.checkNotNull(nullValues, "nullValues"); + this.nullValues = nullValues; + return this; + } + + + /** + * The character used for quoting CSV values. To disallow quoting, make this field blank. + */ + public Builder quoteChar(String quoteChar) { + Utils.checkNotNull(quoteChar, "quoteChar"); + this.quoteChar = Optional.ofNullable(quoteChar); + return this; + } + + /** + * The character used for quoting CSV values. To disallow quoting, make this field blank. + */ + public Builder quoteChar(Optional quoteChar) { + Utils.checkNotNull(quoteChar, "quoteChar"); + this.quoteChar = quoteChar; + return this; + } + + + /** + * The number of rows to skip after the header row. + */ + public Builder skipRowsAfterHeader(long skipRowsAfterHeader) { + Utils.checkNotNull(skipRowsAfterHeader, "skipRowsAfterHeader"); + this.skipRowsAfterHeader = Optional.ofNullable(skipRowsAfterHeader); + return this; + } + + /** + * The number of rows to skip after the header row. + */ + public Builder skipRowsAfterHeader(Optional skipRowsAfterHeader) { + Utils.checkNotNull(skipRowsAfterHeader, "skipRowsAfterHeader"); + this.skipRowsAfterHeader = skipRowsAfterHeader; + return this; + } + + + /** + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. + */ + public Builder skipRowsBeforeHeader(long skipRowsBeforeHeader) { + Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); + this.skipRowsBeforeHeader = Optional.ofNullable(skipRowsBeforeHeader); + return this; + } + + /** + * The number of rows to skip before the header row. For example, if the header row is on the 3rd row, + * enter 2 in this field. + */ + public Builder skipRowsBeforeHeader(Optional skipRowsBeforeHeader) { + Utils.checkNotNull(skipRowsBeforeHeader, "skipRowsBeforeHeader"); + this.skipRowsBeforeHeader = skipRowsBeforeHeader; + return this; + } + + + /** + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. + */ + public Builder stringsCanBeNull(boolean stringsCanBeNull) { + Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); + this.stringsCanBeNull = Optional.ofNullable(stringsCanBeNull); + return this; + } + + /** + * Whether strings can be interpreted as null values. If true, strings that match the null_values set + * will be interpreted as null. If false, strings that match the null_values set will be interpreted as + * the string itself. + */ + public Builder stringsCanBeNull(Optional stringsCanBeNull) { + Utils.checkNotNull(stringsCanBeNull, "stringsCanBeNull"); + this.stringsCanBeNull = stringsCanBeNull; + return this; + } + + + /** + * A set of case-sensitive strings that should be interpreted as true values. + */ + public Builder trueValues(List trueValues) { + Utils.checkNotNull(trueValues, "trueValues"); + this.trueValues = Optional.ofNullable(trueValues); + return this; + } + + /** + * A set of case-sensitive strings that should be interpreted as true values. + */ + public Builder trueValues(Optional> trueValues) { + Utils.checkNotNull(trueValues, "trueValues"); + this.trueValues = trueValues; + return this; + } + + public SourceSharepointEnterpriseCSVFormat build() { + if (delimiter == null) { + delimiter = _SINGLETON_VALUE_Delimiter.value(); + } + if (doubleQuote == null) { + doubleQuote = _SINGLETON_VALUE_DoubleQuote.value(); + } + if (encoding == null) { + encoding = _SINGLETON_VALUE_Encoding.value(); + } + if (ignoreErrorsOnFieldsMismatch == null) { + ignoreErrorsOnFieldsMismatch = _SINGLETON_VALUE_IgnoreErrorsOnFieldsMismatch.value(); + } + if (quoteChar == null) { + quoteChar = _SINGLETON_VALUE_QuoteChar.value(); + } + if (skipRowsAfterHeader == null) { + skipRowsAfterHeader = _SINGLETON_VALUE_SkipRowsAfterHeader.value(); + } + if (skipRowsBeforeHeader == null) { + skipRowsBeforeHeader = _SINGLETON_VALUE_SkipRowsBeforeHeader.value(); + } + if (stringsCanBeNull == null) { + stringsCanBeNull = _SINGLETON_VALUE_StringsCanBeNull.value(); + } + + return new SourceSharepointEnterpriseCSVFormat( + delimiter, doubleQuote, encoding, + escapeChar, falseValues, headerDefinition, + ignoreErrorsOnFieldsMismatch, nullValues, quoteChar, + skipRowsAfterHeader, skipRowsBeforeHeader, stringsCanBeNull, + trueValues); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_Delimiter = + new LazySingletonValue<>( + "delimiter", + "\",\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_DoubleQuote = + new LazySingletonValue<>( + "double_quote", + "true", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Encoding = + new LazySingletonValue<>( + "encoding", + "\"utf8\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = + new LazySingletonValue<>( + "filetype", + "\"csv\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_IgnoreErrorsOnFieldsMismatch = + new LazySingletonValue<>( + "ignore_errors_on_fields_mismatch", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_QuoteChar = + new LazySingletonValue<>( + "quote_char", + "\"\\\"\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_SkipRowsAfterHeader = + new LazySingletonValue<>( + "skip_rows_after_header", + "0", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_SkipRowsBeforeHeader = + new LazySingletonValue<>( + "skip_rows_before_header", + "0", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StringsCanBeNull = + new LazySingletonValue<>( + "strings_can_be_null", + "true", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCSVHeaderDefinition.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCSVHeaderDefinition.java new file mode 100644 index 000000000..b11a6b2ab --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCSVHeaderDefinition.java @@ -0,0 +1,112 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +/** + * SourceSharepointEnterpriseCSVHeaderDefinition + * + *

    How headers will be defined. `User Provided` assumes the CSV does not have a header row and uses the + * headers provided and `Autogenerated` assumes the CSV does not have a header row and the CDK will + * generate headers using for `f{i}` where `i` is the index starting from 0. Else, the default behavior + * is to use the header from the CSV file. + * + *

    If a user wants to autogenerate or provide column names for a CSV having headers, they can skip + * rows. + */ +@JsonDeserialize(using = SourceSharepointEnterpriseCSVHeaderDefinition._Deserializer.class) +public class SourceSharepointEnterpriseCSVHeaderDefinition { + + @JsonValue + private TypedObject value; + + private SourceSharepointEnterpriseCSVHeaderDefinition(TypedObject value) { + this.value = value; + } + + public static SourceSharepointEnterpriseCSVHeaderDefinition of(SourceSharepointEnterpriseFromCSV value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseCSVHeaderDefinition(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSharepointEnterpriseCSVHeaderDefinition of(SourceSharepointEnterpriseAutogenerated value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseCSVHeaderDefinition(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSharepointEnterpriseCSVHeaderDefinition of(SourceSharepointEnterpriseUserProvided value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseCSVHeaderDefinition(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseFromCSV}
    • + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseAutogenerated}
    • + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseUserProvided}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseCSVHeaderDefinition other = (SourceSharepointEnterpriseCSVHeaderDefinition) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(SourceSharepointEnterpriseCSVHeaderDefinition.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseCSVHeaderDefinition.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCopyRawFiles.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCopyRawFiles.java new file mode 100644 index 000000000..82cd91316 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseCopyRawFiles.java @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + +/** + * SourceSharepointEnterpriseCopyRawFiles + * + *

    Copy raw files without parsing their contents. Bits are copied into the destination exactly as they + * appeared in the source. Recommended for use with unstructured text data, non-text and compressed + * files. + */ +public class SourceSharepointEnterpriseCopyRawFiles { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_type") + private Optional deliveryType; + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preserve_directory_structure") + private Optional preserveDirectoryStructure; + + @JsonCreator + public SourceSharepointEnterpriseCopyRawFiles( + @JsonProperty("preserve_directory_structure") Optional preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); + this.preserveDirectoryStructure = preserveDirectoryStructure; + } + + public SourceSharepointEnterpriseCopyRawFiles() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional deliveryType() { + return (Optional) deliveryType; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. + */ + @JsonIgnore + public Optional preserveDirectoryStructure() { + return preserveDirectoryStructure; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. + */ + public SourceSharepointEnterpriseCopyRawFiles withPreserveDirectoryStructure(boolean preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = Optional.ofNullable(preserveDirectoryStructure); + return this; + } + + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. + */ + public SourceSharepointEnterpriseCopyRawFiles withPreserveDirectoryStructure(Optional preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = preserveDirectoryStructure; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseCopyRawFiles other = (SourceSharepointEnterpriseCopyRawFiles) o; + return + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType) && + Utils.enhancedDeepEquals(this.preserveDirectoryStructure, other.preserveDirectoryStructure); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + deliveryType, preserveDirectoryStructure); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseCopyRawFiles.class, + "deliveryType", deliveryType, + "preserveDirectoryStructure", preserveDirectoryStructure); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional preserveDirectoryStructure; + + private Builder() { + // force use of static builder() method + } + + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. + */ + public Builder preserveDirectoryStructure(boolean preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = Optional.ofNullable(preserveDirectoryStructure); + return this; + } + + /** + * If enabled, sends subdirectory folder structure along with source file names to the destination. + * Otherwise, files will be synced by their names only. This option is ignored when file-based + * replication is not enabled. + */ + public Builder preserveDirectoryStructure(Optional preserveDirectoryStructure) { + Utils.checkNotNull(preserveDirectoryStructure, "preserveDirectoryStructure"); + this.preserveDirectoryStructure = preserveDirectoryStructure; + return this; + } + + public SourceSharepointEnterpriseCopyRawFiles build() { + if (preserveDirectoryStructure == null) { + preserveDirectoryStructure = _SINGLETON_VALUE_PreserveDirectoryStructure.value(); + } + + return new SourceSharepointEnterpriseCopyRawFiles( + preserveDirectoryStructure); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = + new LazySingletonValue<>( + "delivery_type", + "\"use_file_transfer\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_PreserveDirectoryStructure = + new LazySingletonValue<>( + "preserve_directory_structure", + "true", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseDeliveryMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseDeliveryMethod.java new file mode 100644 index 000000000..f78496648 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseDeliveryMethod.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = SourceSharepointEnterpriseDeliveryMethod._Deserializer.class) +public class SourceSharepointEnterpriseDeliveryMethod { + + @JsonValue + private TypedObject value; + + private SourceSharepointEnterpriseDeliveryMethod(TypedObject value) { + this.value = value; + } + + public static SourceSharepointEnterpriseDeliveryMethod of(SourceSharepointEnterpriseReplicateRecords value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseDeliveryMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSharepointEnterpriseDeliveryMethod of(SourceSharepointEnterpriseCopyRawFiles value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseDeliveryMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSharepointEnterpriseDeliveryMethod of(SourceSharepointEnterpriseReplicatePermissionsACL value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseDeliveryMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseReplicateRecords}
    • + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseCopyRawFiles}
    • + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseReplicatePermissionsACL}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseDeliveryMethod other = (SourceSharepointEnterpriseDeliveryMethod) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(SourceSharepointEnterpriseDeliveryMethod.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseDeliveryMethod.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseDeliveryType.java new file mode 100644 index 000000000..065fdb4e6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseDeliveryType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseDeliveryType { + USE_RECORDS_TRANSFER("use_records_transfer"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseDeliveryType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseDeliveryType o: SourceSharepointEnterpriseDeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseExcelFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseExcelFormat.java new file mode 100644 index 000000000..936213a29 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseExcelFormat.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class SourceSharepointEnterpriseExcelFormat { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + @JsonCreator + public SourceSharepointEnterpriseExcelFormat() { + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseExcelFormat other = (SourceSharepointEnterpriseExcelFormat) o; + return + Utils.enhancedDeepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + filetype); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseExcelFormat.class, + "filetype", filetype); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SourceSharepointEnterpriseExcelFormat build() { + + return new SourceSharepointEnterpriseExcelFormat( + ); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = + new LazySingletonValue<>( + "filetype", + "\"excel\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFileBasedStreamConfig.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFileBasedStreamConfig.java new file mode 100644 index 000000000..2d6793e71 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFileBasedStreamConfig.java @@ -0,0 +1,585 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; + + +public class SourceSharepointEnterpriseFileBasedStreamConfig { + /** + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("days_to_sync_if_history_is_full") + private Optional daysToSyncIfHistoryIsFull; + + /** + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. + */ + @JsonProperty("format") + private SourceSharepointEnterpriseFormat format; + + /** + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("globs") + private Optional> globs; + + /** + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("input_schema") + private Optional inputSchema; + + /** + * The name of the stream. + */ + @JsonProperty("name") + private String name; + + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("recent_n_files_to_read_for_schema_discovery") + private Optional recentNFilesToReadForSchemaDiscovery; + + /** + * When enabled, syncs will not validate or structure records against the stream's schema. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("schemaless") + private Optional schemaless; + + /** + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("validation_policy") + private Optional validationPolicy; + + @JsonCreator + public SourceSharepointEnterpriseFileBasedStreamConfig( + @JsonProperty("days_to_sync_if_history_is_full") Optional daysToSyncIfHistoryIsFull, + @JsonProperty("format") SourceSharepointEnterpriseFormat format, + @JsonProperty("globs") Optional> globs, + @JsonProperty("input_schema") Optional inputSchema, + @JsonProperty("name") String name, + @JsonProperty("recent_n_files_to_read_for_schema_discovery") Optional recentNFilesToReadForSchemaDiscovery, + @JsonProperty("schemaless") Optional schemaless, + @JsonProperty("validation_policy") Optional validationPolicy) { + Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); + Utils.checkNotNull(format, "format"); + Utils.checkNotNull(globs, "globs"); + Utils.checkNotNull(inputSchema, "inputSchema"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); + Utils.checkNotNull(schemaless, "schemaless"); + Utils.checkNotNull(validationPolicy, "validationPolicy"); + this.daysToSyncIfHistoryIsFull = daysToSyncIfHistoryIsFull; + this.format = format; + this.globs = globs; + this.inputSchema = inputSchema; + this.name = name; + this.recentNFilesToReadForSchemaDiscovery = recentNFilesToReadForSchemaDiscovery; + this.schemaless = schemaless; + this.validationPolicy = validationPolicy; + } + + public SourceSharepointEnterpriseFileBasedStreamConfig( + SourceSharepointEnterpriseFormat format, + String name) { + this(Optional.empty(), format, Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty(), Optional.empty()); + } + + /** + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. + */ + @JsonIgnore + public Optional daysToSyncIfHistoryIsFull() { + return daysToSyncIfHistoryIsFull; + } + + /** + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. + */ + @JsonIgnore + public SourceSharepointEnterpriseFormat format() { + return format; + } + + /** + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> globs() { + return (Optional>) globs; + } + + /** + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. + */ + @JsonIgnore + public Optional inputSchema() { + return inputSchema; + } + + /** + * The name of the stream. + */ + @JsonIgnore + public String name() { + return name; + } + + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + @JsonIgnore + public Optional recentNFilesToReadForSchemaDiscovery() { + return recentNFilesToReadForSchemaDiscovery; + } + + /** + * When enabled, syncs will not validate or structure records against the stream's schema. + */ + @JsonIgnore + public Optional schemaless() { + return schemaless; + } + + /** + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional validationPolicy() { + return (Optional) validationPolicy; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { + Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); + this.daysToSyncIfHistoryIsFull = Optional.ofNullable(daysToSyncIfHistoryIsFull); + return this; + } + + + /** + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withDaysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { + Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); + this.daysToSyncIfHistoryIsFull = daysToSyncIfHistoryIsFull; + return this; + } + + /** + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withFormat(SourceSharepointEnterpriseFormat format) { + Utils.checkNotNull(format, "format"); + this.format = format; + return this; + } + + /** + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withGlobs(List globs) { + Utils.checkNotNull(globs, "globs"); + this.globs = Optional.ofNullable(globs); + return this; + } + + + /** + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withGlobs(Optional> globs) { + Utils.checkNotNull(globs, "globs"); + this.globs = globs; + return this; + } + + /** + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withInputSchema(String inputSchema) { + Utils.checkNotNull(inputSchema, "inputSchema"); + this.inputSchema = Optional.ofNullable(inputSchema); + return this; + } + + + /** + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withInputSchema(Optional inputSchema) { + Utils.checkNotNull(inputSchema, "inputSchema"); + this.inputSchema = inputSchema; + return this; + } + + /** + * The name of the stream. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withRecentNFilesToReadForSchemaDiscovery(long recentNFilesToReadForSchemaDiscovery) { + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); + this.recentNFilesToReadForSchemaDiscovery = Optional.ofNullable(recentNFilesToReadForSchemaDiscovery); + return this; + } + + + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withRecentNFilesToReadForSchemaDiscovery(Optional recentNFilesToReadForSchemaDiscovery) { + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); + this.recentNFilesToReadForSchemaDiscovery = recentNFilesToReadForSchemaDiscovery; + return this; + } + + /** + * When enabled, syncs will not validate or structure records against the stream's schema. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withSchemaless(boolean schemaless) { + Utils.checkNotNull(schemaless, "schemaless"); + this.schemaless = Optional.ofNullable(schemaless); + return this; + } + + + /** + * When enabled, syncs will not validate or structure records against the stream's schema. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withSchemaless(Optional schemaless) { + Utils.checkNotNull(schemaless, "schemaless"); + this.schemaless = schemaless; + return this; + } + + /** + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withValidationPolicy(SourceSharepointEnterpriseValidationPolicy validationPolicy) { + Utils.checkNotNull(validationPolicy, "validationPolicy"); + this.validationPolicy = Optional.ofNullable(validationPolicy); + return this; + } + + + /** + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. + */ + public SourceSharepointEnterpriseFileBasedStreamConfig withValidationPolicy(Optional validationPolicy) { + Utils.checkNotNull(validationPolicy, "validationPolicy"); + this.validationPolicy = validationPolicy; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseFileBasedStreamConfig other = (SourceSharepointEnterpriseFileBasedStreamConfig) o; + return + Utils.enhancedDeepEquals(this.daysToSyncIfHistoryIsFull, other.daysToSyncIfHistoryIsFull) && + Utils.enhancedDeepEquals(this.format, other.format) && + Utils.enhancedDeepEquals(this.globs, other.globs) && + Utils.enhancedDeepEquals(this.inputSchema, other.inputSchema) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.recentNFilesToReadForSchemaDiscovery, other.recentNFilesToReadForSchemaDiscovery) && + Utils.enhancedDeepEquals(this.schemaless, other.schemaless) && + Utils.enhancedDeepEquals(this.validationPolicy, other.validationPolicy); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, recentNFilesToReadForSchemaDiscovery, + schemaless, validationPolicy); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseFileBasedStreamConfig.class, + "daysToSyncIfHistoryIsFull", daysToSyncIfHistoryIsFull, + "format", format, + "globs", globs, + "inputSchema", inputSchema, + "name", name, + "recentNFilesToReadForSchemaDiscovery", recentNFilesToReadForSchemaDiscovery, + "schemaless", schemaless, + "validationPolicy", validationPolicy); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional daysToSyncIfHistoryIsFull; + + private SourceSharepointEnterpriseFormat format; + + private Optional> globs = Optional.empty(); + + private Optional inputSchema = Optional.empty(); + + private String name; + + private Optional recentNFilesToReadForSchemaDiscovery = Optional.empty(); + + private Optional schemaless; + + private Optional validationPolicy; + + private Builder() { + // force use of static builder() method + } + + + /** + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. + */ + public Builder daysToSyncIfHistoryIsFull(long daysToSyncIfHistoryIsFull) { + Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); + this.daysToSyncIfHistoryIsFull = Optional.ofNullable(daysToSyncIfHistoryIsFull); + return this; + } + + /** + * When the state history of the file store is full, syncs will only read files that were last modified + * in the provided day range. + */ + public Builder daysToSyncIfHistoryIsFull(Optional daysToSyncIfHistoryIsFull) { + Utils.checkNotNull(daysToSyncIfHistoryIsFull, "daysToSyncIfHistoryIsFull"); + this.daysToSyncIfHistoryIsFull = daysToSyncIfHistoryIsFull; + return this; + } + + + /** + * The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. + */ + public Builder format(SourceSharepointEnterpriseFormat format) { + Utils.checkNotNull(format, "format"); + this.format = format; + return this; + } + + + /** + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. + */ + public Builder globs(List globs) { + Utils.checkNotNull(globs, "globs"); + this.globs = Optional.ofNullable(globs); + return this; + } + + /** + * The pattern used to specify which files should be selected from the file system. For more + * information on glob pattern matching look here. + */ + public Builder globs(Optional> globs) { + Utils.checkNotNull(globs, "globs"); + this.globs = globs; + return this; + } + + + /** + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. + */ + public Builder inputSchema(String inputSchema) { + Utils.checkNotNull(inputSchema, "inputSchema"); + this.inputSchema = Optional.ofNullable(inputSchema); + return this; + } + + /** + * The schema that will be used to validate records extracted from the file. This will override the + * stream schema that is auto-detected from incoming files. + */ + public Builder inputSchema(Optional inputSchema) { + Utils.checkNotNull(inputSchema, "inputSchema"); + this.inputSchema = inputSchema; + return this; + } + + + /** + * The name of the stream. + */ + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + public Builder recentNFilesToReadForSchemaDiscovery(long recentNFilesToReadForSchemaDiscovery) { + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); + this.recentNFilesToReadForSchemaDiscovery = Optional.ofNullable(recentNFilesToReadForSchemaDiscovery); + return this; + } + + /** + * The number of resent files which will be used to discover the schema for this stream. + */ + public Builder recentNFilesToReadForSchemaDiscovery(Optional recentNFilesToReadForSchemaDiscovery) { + Utils.checkNotNull(recentNFilesToReadForSchemaDiscovery, "recentNFilesToReadForSchemaDiscovery"); + this.recentNFilesToReadForSchemaDiscovery = recentNFilesToReadForSchemaDiscovery; + return this; + } + + + /** + * When enabled, syncs will not validate or structure records against the stream's schema. + */ + public Builder schemaless(boolean schemaless) { + Utils.checkNotNull(schemaless, "schemaless"); + this.schemaless = Optional.ofNullable(schemaless); + return this; + } + + /** + * When enabled, syncs will not validate or structure records against the stream's schema. + */ + public Builder schemaless(Optional schemaless) { + Utils.checkNotNull(schemaless, "schemaless"); + this.schemaless = schemaless; + return this; + } + + + /** + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. + */ + public Builder validationPolicy(SourceSharepointEnterpriseValidationPolicy validationPolicy) { + Utils.checkNotNull(validationPolicy, "validationPolicy"); + this.validationPolicy = Optional.ofNullable(validationPolicy); + return this; + } + + /** + * The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. + */ + public Builder validationPolicy(Optional validationPolicy) { + Utils.checkNotNull(validationPolicy, "validationPolicy"); + this.validationPolicy = validationPolicy; + return this; + } + + public SourceSharepointEnterpriseFileBasedStreamConfig build() { + if (daysToSyncIfHistoryIsFull == null) { + daysToSyncIfHistoryIsFull = _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull.value(); + } + if (schemaless == null) { + schemaless = _SINGLETON_VALUE_Schemaless.value(); + } + if (validationPolicy == null) { + validationPolicy = _SINGLETON_VALUE_ValidationPolicy.value(); + } + + return new SourceSharepointEnterpriseFileBasedStreamConfig( + daysToSyncIfHistoryIsFull, format, globs, + inputSchema, name, recentNFilesToReadForSchemaDiscovery, + schemaless, validationPolicy); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_DaysToSyncIfHistoryIsFull = + new LazySingletonValue<>( + "days_to_sync_if_history_is_full", + "3", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Schemaless = + new LazySingletonValue<>( + "schemaless", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_ValidationPolicy = + new LazySingletonValue<>( + "validation_policy", + "\"Emit Record\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFiletype.java new file mode 100644 index 000000000..288d96124 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFiletype.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseFiletype { + AVRO("avro"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseFiletype(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseFiletype o: SourceSharepointEnterpriseFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFormat.java new file mode 100644 index 000000000..3120ceabb --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFormat.java @@ -0,0 +1,128 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +/** + * SourceSharepointEnterpriseFormat + * + *

    The configuration options that are used to alter how to read incoming files that deviate from the + * standard formatting. + */ +@JsonDeserialize(using = SourceSharepointEnterpriseFormat._Deserializer.class) +public class SourceSharepointEnterpriseFormat { + + @JsonValue + private TypedObject value; + + private SourceSharepointEnterpriseFormat(TypedObject value) { + this.value = value; + } + + public static SourceSharepointEnterpriseFormat of(SourceSharepointEnterpriseAvroFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSharepointEnterpriseFormat of(SourceSharepointEnterpriseCSVFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSharepointEnterpriseFormat of(SourceSharepointEnterpriseJsonlFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSharepointEnterpriseFormat of(SourceSharepointEnterpriseParquetFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSharepointEnterpriseFormat of(SourceSharepointEnterpriseUnstructuredDocumentFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + public static SourceSharepointEnterpriseFormat of(SourceSharepointEnterpriseExcelFormat value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseFormat(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseAvroFormat}
    • + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseCSVFormat}
    • + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseJsonlFormat}
    • + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseParquetFormat}
    • + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseUnstructuredDocumentFormat}
    • + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseExcelFormat}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseFormat other = (SourceSharepointEnterpriseFormat) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(SourceSharepointEnterpriseFormat.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseFormat.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFromCSV.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFromCSV.java new file mode 100644 index 000000000..739c786ef --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseFromCSV.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class SourceSharepointEnterpriseFromCSV { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("header_definition_type") + private Optional headerDefinitionType; + + @JsonCreator + public SourceSharepointEnterpriseFromCSV() { + this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional headerDefinitionType() { + return (Optional) headerDefinitionType; + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseFromCSV other = (SourceSharepointEnterpriseFromCSV) o; + return + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + headerDefinitionType); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseFromCSV.class, + "headerDefinitionType", headerDefinitionType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SourceSharepointEnterpriseFromCSV build() { + + return new SourceSharepointEnterpriseFromCSV( + ); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = + new LazySingletonValue<>( + "header_definition_type", + "\"From CSV\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseHeaderDefinitionType.java new file mode 100644 index 000000000..a7c7f568b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseHeaderDefinitionType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseHeaderDefinitionType { + FROM_CSV("From CSV"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseHeaderDefinitionType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseHeaderDefinitionType o: SourceSharepointEnterpriseHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseJsonlFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseJsonlFormat.java new file mode 100644 index 000000000..9751cbfdc --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseJsonlFormat.java @@ -0,0 +1,87 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class SourceSharepointEnterpriseJsonlFormat { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + @JsonCreator + public SourceSharepointEnterpriseJsonlFormat() { + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseJsonlFormat other = (SourceSharepointEnterpriseJsonlFormat) o; + return + Utils.enhancedDeepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + filetype); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseJsonlFormat.class, + "filetype", filetype); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SourceSharepointEnterpriseJsonlFormat build() { + + return new SourceSharepointEnterpriseJsonlFormat( + ); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = + new LazySingletonValue<>( + "filetype", + "\"jsonl\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseLocal.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseLocal.java new file mode 100644 index 000000000..079d79dbf --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseLocal.java @@ -0,0 +1,91 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + +/** + * SourceSharepointEnterpriseLocal + * + *

    Process files locally, supporting `fast` and `ocr` modes. This is the default option. + */ +public class SourceSharepointEnterpriseLocal { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("mode") + private Optional mode; + + @JsonCreator + public SourceSharepointEnterpriseLocal() { + this.mode = Builder._SINGLETON_VALUE_Mode.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional mode() { + return (Optional) mode; + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseLocal other = (SourceSharepointEnterpriseLocal) o; + return + Utils.enhancedDeepEquals(this.mode, other.mode); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mode); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseLocal.class, + "mode", mode); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SourceSharepointEnterpriseLocal build() { + + return new SourceSharepointEnterpriseLocal( + ); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = + new LazySingletonValue<>( + "mode", + "\"local\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseMode.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseMode.java new file mode 100644 index 000000000..e0c4e132b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseMode.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseMode { + LOCAL("local"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseMode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseMode o: SourceSharepointEnterpriseMode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseParquetFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseParquetFormat.java new file mode 100644 index 000000000..23bfbfd18 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseParquetFormat.java @@ -0,0 +1,167 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class SourceSharepointEnterpriseParquetFormat { + /** + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("decimal_as_float") + private Optional decimalAsFloat; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + @JsonCreator + public SourceSharepointEnterpriseParquetFormat( + @JsonProperty("decimal_as_float") Optional decimalAsFloat) { + Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); + this.decimalAsFloat = decimalAsFloat; + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + } + + public SourceSharepointEnterpriseParquetFormat() { + this(Optional.empty()); + } + + /** + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. + */ + @JsonIgnore + public Optional decimalAsFloat() { + return decimalAsFloat; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. + */ + public SourceSharepointEnterpriseParquetFormat withDecimalAsFloat(boolean decimalAsFloat) { + Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); + this.decimalAsFloat = Optional.ofNullable(decimalAsFloat); + return this; + } + + + /** + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. + */ + public SourceSharepointEnterpriseParquetFormat withDecimalAsFloat(Optional decimalAsFloat) { + Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); + this.decimalAsFloat = decimalAsFloat; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseParquetFormat other = (SourceSharepointEnterpriseParquetFormat) o; + return + Utils.enhancedDeepEquals(this.decimalAsFloat, other.decimalAsFloat) && + Utils.enhancedDeepEquals(this.filetype, other.filetype); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + decimalAsFloat, filetype); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseParquetFormat.class, + "decimalAsFloat", decimalAsFloat, + "filetype", filetype); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional decimalAsFloat; + + private Builder() { + // force use of static builder() method + } + + + /** + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. + */ + public Builder decimalAsFloat(boolean decimalAsFloat) { + Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); + this.decimalAsFloat = Optional.ofNullable(decimalAsFloat); + return this; + } + + /** + * Whether to convert decimal fields to floats. There is a loss of precision when converting decimals + * to floats, so this is not recommended. + */ + public Builder decimalAsFloat(Optional decimalAsFloat) { + Utils.checkNotNull(decimalAsFloat, "decimalAsFloat"); + this.decimalAsFloat = decimalAsFloat; + return this; + } + + public SourceSharepointEnterpriseParquetFormat build() { + if (decimalAsFloat == null) { + decimalAsFloat = _SINGLETON_VALUE_DecimalAsFloat.value(); + } + + return new SourceSharepointEnterpriseParquetFormat( + decimalAsFloat); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_DecimalAsFloat = + new LazySingletonValue<>( + "decimal_as_float", + "false", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = + new LazySingletonValue<>( + "filetype", + "\"parquet\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseParsingStrategy.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseParsingStrategy.java new file mode 100644 index 000000000..db8be228d --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseParsingStrategy.java @@ -0,0 +1,47 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * SourceSharepointEnterpriseParsingStrategy + * + *

    The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + */ +public enum SourceSharepointEnterpriseParsingStrategy { + AUTO("auto"), + FAST("fast"), + OCR_ONLY("ocr_only"), + HI_RES("hi_res"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseParsingStrategy(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseParsingStrategy o: SourceSharepointEnterpriseParsingStrategy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseProcessing.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseProcessing.java new file mode 100644 index 000000000..be5d7d5ba --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseProcessing.java @@ -0,0 +1,92 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +/** + * SourceSharepointEnterpriseProcessing + * + *

    Processing configuration + */ +@JsonDeserialize(using = SourceSharepointEnterpriseProcessing._Deserializer.class) +public class SourceSharepointEnterpriseProcessing { + + @JsonValue + private TypedObject value; + + private SourceSharepointEnterpriseProcessing(TypedObject value) { + this.value = value; + } + + public static SourceSharepointEnterpriseProcessing of(SourceSharepointEnterpriseLocal value) { + Utils.checkNotNull(value, "value"); + return new SourceSharepointEnterpriseProcessing(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.SourceSharepointEnterpriseLocal}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseProcessing other = (SourceSharepointEnterpriseProcessing) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(SourceSharepointEnterpriseProcessing.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseProcessing.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseReplicatePermissionsACL.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseReplicatePermissionsACL.java new file mode 100644 index 000000000..64e7bc4f3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseReplicatePermissionsACL.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + +/** + * SourceSharepointEnterpriseReplicatePermissionsACL + * + *

    Sends one identity stream and one for more permissions (ACL) streams to the destination. This data + * can be used in downstream systems to recreate permission restrictions mirroring the original source. + */ +public class SourceSharepointEnterpriseReplicatePermissionsACL { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_type") + private Optional deliveryType; + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("include_identities_stream") + private Optional includeIdentitiesStream; + + @JsonCreator + public SourceSharepointEnterpriseReplicatePermissionsACL( + @JsonProperty("include_identities_stream") Optional includeIdentitiesStream) { + Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); + this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); + this.includeIdentitiesStream = includeIdentitiesStream; + } + + public SourceSharepointEnterpriseReplicatePermissionsACL() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional deliveryType() { + return (Optional) deliveryType; + } + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source + */ + @JsonIgnore + public Optional includeIdentitiesStream() { + return includeIdentitiesStream; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source + */ + public SourceSharepointEnterpriseReplicatePermissionsACL withIncludeIdentitiesStream(boolean includeIdentitiesStream) { + Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); + this.includeIdentitiesStream = Optional.ofNullable(includeIdentitiesStream); + return this; + } + + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source + */ + public SourceSharepointEnterpriseReplicatePermissionsACL withIncludeIdentitiesStream(Optional includeIdentitiesStream) { + Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); + this.includeIdentitiesStream = includeIdentitiesStream; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseReplicatePermissionsACL other = (SourceSharepointEnterpriseReplicatePermissionsACL) o; + return + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType) && + Utils.enhancedDeepEquals(this.includeIdentitiesStream, other.includeIdentitiesStream); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + deliveryType, includeIdentitiesStream); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseReplicatePermissionsACL.class, + "deliveryType", deliveryType, + "includeIdentitiesStream", includeIdentitiesStream); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional includeIdentitiesStream; + + private Builder() { + // force use of static builder() method + } + + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source + */ + public Builder includeIdentitiesStream(boolean includeIdentitiesStream) { + Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); + this.includeIdentitiesStream = Optional.ofNullable(includeIdentitiesStream); + return this; + } + + /** + * This data can be used in downstream systems to recreate permission restrictions mirroring the + * original source + */ + public Builder includeIdentitiesStream(Optional includeIdentitiesStream) { + Utils.checkNotNull(includeIdentitiesStream, "includeIdentitiesStream"); + this.includeIdentitiesStream = includeIdentitiesStream; + return this; + } + + public SourceSharepointEnterpriseReplicatePermissionsACL build() { + if (includeIdentitiesStream == null) { + includeIdentitiesStream = _SINGLETON_VALUE_IncludeIdentitiesStream.value(); + } + + return new SourceSharepointEnterpriseReplicatePermissionsACL( + includeIdentitiesStream); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = + new LazySingletonValue<>( + "delivery_type", + "\"use_permissions_transfer\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeIdentitiesStream = + new LazySingletonValue<>( + "include_identities_stream", + "true", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseReplicateRecords.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseReplicateRecords.java new file mode 100644 index 000000000..f98371295 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseReplicateRecords.java @@ -0,0 +1,95 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + +/** + * SourceSharepointEnterpriseReplicateRecords + * + *

    Recommended - Extract and load structured records into your destination of choice. This is the + * classic method of moving data in Airbyte. It allows for blocking and hashing individual fields or + * files from a structured schema. + * + *

    Data can be flattened, typed and deduped depending on the destination. + */ +public class SourceSharepointEnterpriseReplicateRecords { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("delivery_type") + private Optional deliveryType; + + @JsonCreator + public SourceSharepointEnterpriseReplicateRecords() { + this.deliveryType = Builder._SINGLETON_VALUE_DeliveryType.value(); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional deliveryType() { + return (Optional) deliveryType; + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseReplicateRecords other = (SourceSharepointEnterpriseReplicateRecords) o; + return + Utils.enhancedDeepEquals(this.deliveryType, other.deliveryType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + deliveryType); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseReplicateRecords.class, + "deliveryType", deliveryType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public SourceSharepointEnterpriseReplicateRecords build() { + + return new SourceSharepointEnterpriseReplicateRecords( + ); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_DeliveryType = + new LazySingletonValue<>( + "delivery_type", + "\"use_records_transfer\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasAuthType.java similarity index 62% rename from src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java rename to src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasAuthType.java index 0c97322e7..9c3b95171 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasCredentialsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasAuthType.java @@ -8,13 +8,13 @@ import java.util.Objects; import java.util.Optional; -public enum SourceSnowflakeSchemasCredentialsAuthType { - USERNAME_PASSWORD("username/password"); +public enum SourceSharepointEnterpriseSchemasAuthType { + SERVICE("Service"); @JsonValue private final String value; - private SourceSnowflakeSchemasCredentialsAuthType(String value) { + SourceSharepointEnterpriseSchemasAuthType(String value) { this.value = value; } @@ -22,8 +22,8 @@ public String value() { return value; } - public static Optional fromValue(String value) { - for (SourceSnowflakeSchemasCredentialsAuthType o: SourceSnowflakeSchemasCredentialsAuthType.values()) { + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSchemasAuthType o: SourceSharepointEnterpriseSchemasAuthType.values()) { if (Objects.deepEquals(o.value, value)) { return Optional.of(o); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType.java new file mode 100644 index 000000000..21370de53 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType { + USE_PERMISSIONS_TRANSFER("use_permissions_transfer"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType o: SourceSharepointEnterpriseSchemasDeliveryMethodDeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasDeliveryType.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasDeliveryType.java new file mode 100644 index 000000000..cca69d34e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasDeliveryType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseSchemasDeliveryType { + USE_FILE_TRANSFER("use_file_transfer"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSchemasDeliveryType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSchemasDeliveryType o: SourceSharepointEnterpriseSchemasDeliveryType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasFiletype.java new file mode 100644 index 000000000..b47b097f6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasFiletype.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseSchemasFiletype { + CSV("csv"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSchemasFiletype(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSchemasFiletype o: SourceSharepointEnterpriseSchemasFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasHeaderDefinitionType.java new file mode 100644 index 000000000..bc5dbb40b --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasHeaderDefinitionType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseSchemasHeaderDefinitionType { + AUTOGENERATED("Autogenerated"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSchemasHeaderDefinitionType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSchemasHeaderDefinitionType o: SourceSharepointEnterpriseSchemasHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFiletype.java new file mode 100644 index 000000000..3052883e8 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFiletype.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseSchemasStreamsFiletype { + JSONL("jsonl"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSchemasStreamsFiletype(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSchemasStreamsFiletype o: SourceSharepointEnterpriseSchemasStreamsFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFiletype.java new file mode 100644 index 000000000..4a2ec9b67 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFiletype.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseSchemasStreamsFormatFiletype { + PARQUET("parquet"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSchemasStreamsFormatFiletype(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSchemasStreamsFormatFiletype o: SourceSharepointEnterpriseSchemasStreamsFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype.java new file mode 100644 index 000000000..6844c5509 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype { + EXCEL("excel"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype o: SourceSharepointEnterpriseSchemasStreamsFormatFormat6Filetype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype.java new file mode 100644 index 000000000..a8b0492d2 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype { + UNSTRUCTURED("unstructured"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype o: SourceSharepointEnterpriseSchemasStreamsFormatFormatFiletype.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType.java new file mode 100644 index 000000000..5491bba18 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType { + USER_PROVIDED("User Provided"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType o: SourceSharepointEnterpriseSchemasStreamsHeaderDefinitionType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSearchScope.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSearchScope.java new file mode 100644 index 000000000..bffa44ed7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSearchScope.java @@ -0,0 +1,43 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * SourceSharepointEnterpriseSearchScope + * + *

    Specifies the location(s) to search for files. Valid options are 'ACCESSIBLE_DRIVES' for all + * SharePoint drives the user can access, 'SHARED_ITEMS' for shared items the user has access to, and + * 'ALL' to search both. + */ +public enum SourceSharepointEnterpriseSearchScope { + ACCESSIBLE_DRIVES("ACCESSIBLE_DRIVES"), + SHARED_ITEMS("SHARED_ITEMS"), + ALL("ALL"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSearchScope(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSearchScope o: SourceSharepointEnterpriseSearchScope.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseServiceKeyAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseServiceKeyAuthentication.java new file mode 100644 index 000000000..60c784adc --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseServiceKeyAuthentication.java @@ -0,0 +1,258 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + +/** + * SourceSharepointEnterpriseServiceKeyAuthentication + * + *

    ServiceCredentials class for service key authentication. + * This class is structured similarly to OAuthCredentials but for a different authentication method. + */ +public class SourceSharepointEnterpriseServiceKeyAuthentication { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("auth_type") + private Optional authType; + + /** + * Client ID of your Microsoft developer application + */ + @JsonProperty("client_id") + private String clientId; + + /** + * Client Secret of your Microsoft developer application + */ + @JsonProperty("client_secret") + private String clientSecret; + + /** + * Tenant ID of the Microsoft SharePoint user + */ + @JsonProperty("tenant_id") + private String tenantId; + + /** + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + */ + @JsonProperty("user_principal_name") + private String userPrincipalName; + + @JsonCreator + public SourceSharepointEnterpriseServiceKeyAuthentication( + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("tenant_id") String tenantId, + @JsonProperty("user_principal_name") String userPrincipalName) { + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(tenantId, "tenantId"); + Utils.checkNotNull(userPrincipalName, "userPrincipalName"); + this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.clientId = clientId; + this.clientSecret = clientSecret; + this.tenantId = tenantId; + this.userPrincipalName = userPrincipalName; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional authType() { + return (Optional) authType; + } + + /** + * Client ID of your Microsoft developer application + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * Client Secret of your Microsoft developer application + */ + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + /** + * Tenant ID of the Microsoft SharePoint user + */ + @JsonIgnore + public String tenantId() { + return tenantId; + } + + /** + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + */ + @JsonIgnore + public String userPrincipalName() { + return userPrincipalName; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Client ID of your Microsoft developer application + */ + public SourceSharepointEnterpriseServiceKeyAuthentication withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * Client Secret of your Microsoft developer application + */ + public SourceSharepointEnterpriseServiceKeyAuthentication withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * Tenant ID of the Microsoft SharePoint user + */ + public SourceSharepointEnterpriseServiceKeyAuthentication withTenantId(String tenantId) { + Utils.checkNotNull(tenantId, "tenantId"); + this.tenantId = tenantId; + return this; + } + + /** + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + */ + public SourceSharepointEnterpriseServiceKeyAuthentication withUserPrincipalName(String userPrincipalName) { + Utils.checkNotNull(userPrincipalName, "userPrincipalName"); + this.userPrincipalName = userPrincipalName; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseServiceKeyAuthentication other = (SourceSharepointEnterpriseServiceKeyAuthentication) o; + return + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId) && + Utils.enhancedDeepEquals(this.userPrincipalName, other.userPrincipalName); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + authType, clientId, clientSecret, + tenantId, userPrincipalName); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseServiceKeyAuthentication.class, + "authType", authType, + "clientId", clientId, + "clientSecret", clientSecret, + "tenantId", tenantId, + "userPrincipalName", userPrincipalName); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String clientId; + + private String clientSecret; + + private String tenantId; + + private String userPrincipalName; + + private Builder() { + // force use of static builder() method + } + + + /** + * Client ID of your Microsoft developer application + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + + /** + * Client Secret of your Microsoft developer application + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + + /** + * Tenant ID of the Microsoft SharePoint user + */ + public Builder tenantId(String tenantId) { + Utils.checkNotNull(tenantId, "tenantId"); + this.tenantId = tenantId; + return this; + } + + + /** + * Special characters such as a period, comma, space, and the at sign (@) are converted to underscores + * (_). More details: https://learn.microsoft.com/en-us/sharepoint/list-onedrive-urls + */ + public Builder userPrincipalName(String userPrincipalName) { + Utils.checkNotNull(userPrincipalName, "userPrincipalName"); + this.userPrincipalName = userPrincipalName; + return this; + } + + public SourceSharepointEnterpriseServiceKeyAuthentication build() { + + return new SourceSharepointEnterpriseServiceKeyAuthentication( + clientId, clientSecret, tenantId, + userPrincipalName); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = + new LazySingletonValue<>( + "auth_type", + "\"Service\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSharepointEnterprise.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSharepointEnterprise.java new file mode 100644 index 000000000..7fd1309c3 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseSharepointEnterprise.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSharepointEnterpriseSharepointEnterprise { + SHAREPOINT_ENTERPRISE("sharepoint-enterprise"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseSharepointEnterprise(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseSharepointEnterprise o: SourceSharepointEnterpriseSharepointEnterprise.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseUnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseUnstructuredDocumentFormat.java new file mode 100644 index 000000000..2e2bfafab --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseUnstructuredDocumentFormat.java @@ -0,0 +1,333 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + +/** + * SourceSharepointEnterpriseUnstructuredDocumentFormat + * + *

    Extract text from document formats (.pdf, .docx, .md, .pptx) and emit as one record per file. + */ +public class SourceSharepointEnterpriseUnstructuredDocumentFormat { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filetype") + private Optional filetype; + + /** + * Processing configuration + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("processing") + private Optional processing; + + /** + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("skip_unprocessable_files") + private Optional skipUnprocessableFiles; + + /** + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("strategy") + private Optional strategy; + + @JsonCreator + public SourceSharepointEnterpriseUnstructuredDocumentFormat( + @JsonProperty("processing") Optional processing, + @JsonProperty("skip_unprocessable_files") Optional skipUnprocessableFiles, + @JsonProperty("strategy") Optional strategy) { + Utils.checkNotNull(processing, "processing"); + Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); + Utils.checkNotNull(strategy, "strategy"); + this.filetype = Builder._SINGLETON_VALUE_Filetype.value(); + this.processing = processing; + this.skipUnprocessableFiles = skipUnprocessableFiles; + this.strategy = strategy; + } + + public SourceSharepointEnterpriseUnstructuredDocumentFormat() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional filetype() { + return (Optional) filetype; + } + + /** + * Processing configuration + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional processing() { + return (Optional) processing; + } + + /** + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. + */ + @JsonIgnore + public Optional skipUnprocessableFiles() { + return skipUnprocessableFiles; + } + + /** + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional strategy() { + return (Optional) strategy; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Processing configuration + */ + public SourceSharepointEnterpriseUnstructuredDocumentFormat withProcessing(SourceSharepointEnterpriseProcessing processing) { + Utils.checkNotNull(processing, "processing"); + this.processing = Optional.ofNullable(processing); + return this; + } + + + /** + * Processing configuration + */ + public SourceSharepointEnterpriseUnstructuredDocumentFormat withProcessing(Optional processing) { + Utils.checkNotNull(processing, "processing"); + this.processing = processing; + return this; + } + + /** + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. + */ + public SourceSharepointEnterpriseUnstructuredDocumentFormat withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { + Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); + this.skipUnprocessableFiles = Optional.ofNullable(skipUnprocessableFiles); + return this; + } + + + /** + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. + */ + public SourceSharepointEnterpriseUnstructuredDocumentFormat withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { + Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); + this.skipUnprocessableFiles = skipUnprocessableFiles; + return this; + } + + /** + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + */ + public SourceSharepointEnterpriseUnstructuredDocumentFormat withStrategy(SourceSharepointEnterpriseParsingStrategy strategy) { + Utils.checkNotNull(strategy, "strategy"); + this.strategy = Optional.ofNullable(strategy); + return this; + } + + + /** + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + */ + public SourceSharepointEnterpriseUnstructuredDocumentFormat withStrategy(Optional strategy) { + Utils.checkNotNull(strategy, "strategy"); + this.strategy = strategy; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseUnstructuredDocumentFormat other = (SourceSharepointEnterpriseUnstructuredDocumentFormat) o; + return + Utils.enhancedDeepEquals(this.filetype, other.filetype) && + Utils.enhancedDeepEquals(this.processing, other.processing) && + Utils.enhancedDeepEquals(this.skipUnprocessableFiles, other.skipUnprocessableFiles) && + Utils.enhancedDeepEquals(this.strategy, other.strategy); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + filetype, processing, skipUnprocessableFiles, + strategy); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseUnstructuredDocumentFormat.class, + "filetype", filetype, + "processing", processing, + "skipUnprocessableFiles", skipUnprocessableFiles, + "strategy", strategy); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional processing = Optional.empty(); + + private Optional skipUnprocessableFiles; + + private Optional strategy; + + private Builder() { + // force use of static builder() method + } + + + /** + * Processing configuration + */ + public Builder processing(SourceSharepointEnterpriseProcessing processing) { + Utils.checkNotNull(processing, "processing"); + this.processing = Optional.ofNullable(processing); + return this; + } + + /** + * Processing configuration + */ + public Builder processing(Optional processing) { + Utils.checkNotNull(processing, "processing"); + this.processing = processing; + return this; + } + + + /** + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. + */ + public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { + Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); + this.skipUnprocessableFiles = Optional.ofNullable(skipUnprocessableFiles); + return this; + } + + /** + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. + */ + public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) { + Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); + this.skipUnprocessableFiles = skipUnprocessableFiles; + return this; + } + + + /** + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + */ + public Builder strategy(SourceSharepointEnterpriseParsingStrategy strategy) { + Utils.checkNotNull(strategy, "strategy"); + this.strategy = Optional.ofNullable(strategy); + return this; + } + + /** + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + */ + public Builder strategy(Optional strategy) { + Utils.checkNotNull(strategy, "strategy"); + this.strategy = strategy; + return this; + } + + public SourceSharepointEnterpriseUnstructuredDocumentFormat build() { + if (skipUnprocessableFiles == null) { + skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); + } + if (strategy == null) { + strategy = _SINGLETON_VALUE_Strategy.value(); + } + + return new SourceSharepointEnterpriseUnstructuredDocumentFormat( + processing, skipUnprocessableFiles, strategy); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = + new LazySingletonValue<>( + "filetype", + "\"unstructured\"", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_SkipUnprocessableFiles = + new LazySingletonValue<>( + "skip_unprocessable_files", + "true", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Strategy = + new LazySingletonValue<>( + "strategy", + "\"auto\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseUserProvided.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseUserProvided.java new file mode 100644 index 000000000..62eae9763 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseUserProvided.java @@ -0,0 +1,128 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Optional; + + +public class SourceSharepointEnterpriseUserProvided { + /** + * The column names that will be used while emitting the CSV records + */ + @JsonProperty("column_names") + private List columnNames; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("header_definition_type") + private Optional headerDefinitionType; + + @JsonCreator + public SourceSharepointEnterpriseUserProvided( + @JsonProperty("column_names") List columnNames) { + Utils.checkNotNull(columnNames, "columnNames"); + this.columnNames = columnNames; + this.headerDefinitionType = Builder._SINGLETON_VALUE_HeaderDefinitionType.value(); + } + + /** + * The column names that will be used while emitting the CSV records + */ + @JsonIgnore + public List columnNames() { + return columnNames; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional headerDefinitionType() { + return (Optional) headerDefinitionType; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The column names that will be used while emitting the CSV records + */ + public SourceSharepointEnterpriseUserProvided withColumnNames(List columnNames) { + Utils.checkNotNull(columnNames, "columnNames"); + this.columnNames = columnNames; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSharepointEnterpriseUserProvided other = (SourceSharepointEnterpriseUserProvided) o; + return + Utils.enhancedDeepEquals(this.columnNames, other.columnNames) && + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + columnNames, headerDefinitionType); + } + + @Override + public String toString() { + return Utils.toString(SourceSharepointEnterpriseUserProvided.class, + "columnNames", columnNames, + "headerDefinitionType", headerDefinitionType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List columnNames; + + private Builder() { + // force use of static builder() method + } + + + /** + * The column names that will be used while emitting the CSV records + */ + public Builder columnNames(List columnNames) { + Utils.checkNotNull(columnNames, "columnNames"); + this.columnNames = columnNames; + return this; + } + + public SourceSharepointEnterpriseUserProvided build() { + + return new SourceSharepointEnterpriseUserProvided( + columnNames); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = + new LazySingletonValue<>( + "header_definition_type", + "\"User Provided\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseValidationPolicy.java new file mode 100644 index 000000000..81150713e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharepointEnterpriseValidationPolicy.java @@ -0,0 +1,42 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +/** + * SourceSharepointEnterpriseValidationPolicy + * + *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. + */ +public enum SourceSharepointEnterpriseValidationPolicy { + EMIT_RECORD("Emit Record"), + SKIP_RECORD("Skip Record"), + WAIT_FOR_DISCOVER("Wait for Discover"); + + @JsonValue + private final String value; + + SourceSharepointEnterpriseValidationPolicy(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSharepointEnterpriseValidationPolicy o: SourceSharepointEnterpriseValidationPolicy.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSharetribe.java b/src/main/java/com/airbyte/api/models/shared/SourceSharetribe.java index fd496a5c6..eec029a1c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSharetribe.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSharetribe.java @@ -14,34 +14,39 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceSharetribe { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("oauth_access_token") private Optional oauthAccessToken; /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("oauth_token_expiry_date") private Optional oauthTokenExpiryDate; + @JsonProperty("sourceType") private Sharetribe sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -69,7 +74,8 @@ public SourceSharetribe( String clientId, String clientSecret, OffsetDateTime startDate) { - this(clientId, clientSecret, Optional.empty(), Optional.empty(), startDate); + this(clientId, clientSecret, Optional.empty(), + Optional.empty(), startDate); } @JsonIgnore @@ -83,7 +89,8 @@ public String clientSecret() { } /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ @JsonIgnore public Optional oauthAccessToken() { @@ -91,7 +98,8 @@ public Optional oauthAccessToken() { } /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ @JsonIgnore public Optional oauthTokenExpiryDate() { @@ -108,9 +116,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSharetribe withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -125,7 +134,8 @@ public SourceSharetribe withClientSecret(String clientSecret) { } /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public SourceSharetribe withOauthAccessToken(String oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -133,8 +143,10 @@ public SourceSharetribe withOauthAccessToken(String oauthAccessToken) { return this; } + /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public SourceSharetribe withOauthAccessToken(Optional oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -143,7 +155,8 @@ public SourceSharetribe withOauthAccessToken(Optional oauthAccessToken) } /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public SourceSharetribe withOauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -151,8 +164,10 @@ public SourceSharetribe withOauthTokenExpiryDate(OffsetDateTime oauthTokenExpiry return this; } + /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public SourceSharetribe withOauthTokenExpiryDate(Optional oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -166,7 +181,6 @@ public SourceSharetribe withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -177,23 +191,19 @@ public boolean equals(java.lang.Object o) { } SourceSharetribe other = (SourceSharetribe) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.oauthAccessToken, other.oauthAccessToken) && - Objects.deepEquals(this.oauthTokenExpiryDate, other.oauthTokenExpiryDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.oauthAccessToken, other.oauthAccessToken) && + Utils.enhancedDeepEquals(this.oauthTokenExpiryDate, other.oauthTokenExpiryDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - oauthAccessToken, - oauthTokenExpiryDate, - sourceType, - startDate); + return Utils.enhancedHash( + clientId, clientSecret, oauthAccessToken, + oauthTokenExpiryDate, sourceType, startDate); } @Override @@ -206,37 +216,42 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional oauthAccessToken = Optional.empty(); - + private Optional oauthTokenExpiryDate = Optional.empty(); - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public Builder oauthAccessToken(String oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -245,7 +260,8 @@ public Builder oauthAccessToken(String oauthAccessToken) { } /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public Builder oauthAccessToken(Optional oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -253,8 +269,10 @@ public Builder oauthAccessToken(Optional oauthAccessToken) { return this; } + /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public Builder oauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -263,7 +281,8 @@ public Builder oauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { } /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public Builder oauthTokenExpiryDate(Optional oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -271,21 +290,21 @@ public Builder oauthTokenExpiryDate(Optional oauthTokenExpiryDat return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSharetribe build() { + return new SourceSharetribe( - clientId, - clientSecret, - oauthAccessToken, - oauthTokenExpiryDate, - startDate); + clientId, clientSecret, oauthAccessToken, + oauthTokenExpiryDate, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShippo.java b/src/main/java/com/airbyte/api/models/shared/SourceShippo.java index 70d849747..0c8f9e310 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShippo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShippo.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceShippo { +public class SourceShippo { /** * The bearer token used for making requests */ @JsonProperty("shippo_token") private String shippoToken; + @JsonProperty("sourceType") private Shippo sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The bearer token used for making requests @@ -76,7 +78,6 @@ public SourceShippo withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceShippo other = (SourceShippo) o; return - Objects.deepEquals(this.shippoToken, other.shippoToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.shippoToken, other.shippoToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - shippoToken, - sourceType, - startDate); + return Utils.enhancedHash( + shippoToken, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String shippoToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * The bearer token used for making requests */ @@ -127,18 +128,20 @@ public Builder shippoToken(String shippoToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceShippo build() { + return new SourceShippo( - shippoToken, - startDate); + shippoToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShipstation.java b/src/main/java/com/airbyte/api/models/shared/SourceShipstation.java index c5734a10c..c387147f9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShipstation.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShipstation.java @@ -14,21 +14,24 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceShipstation { @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Shipstation sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonProperty("username") private String username; @@ -72,9 +75,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceShipstation withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -82,6 +86,7 @@ public SourceShipstation withPassword(String password) { return this; } + public SourceShipstation withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -100,7 +105,6 @@ public SourceShipstation withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,18 +115,16 @@ public boolean equals(java.lang.Object o) { } SourceShipstation other = (SourceShipstation) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - sourceType, - startDate, + return Utils.enhancedHash( + password, sourceType, startDate, username); } @@ -134,19 +136,21 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private OffsetDateTime startDate; - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -159,25 +163,27 @@ public Builder password(Optional password) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceShipstation build() { + return new SourceShipstation( - password, - startDate, - username); + password, startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopify.java b/src/main/java/com/airbyte/api/models/shared/SourceShopify.java index 7aeda9e47..942a49b0d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopify.java @@ -17,11 +17,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourceShopify { +public class SourceShopify { /** * Defines what would be a date range per single BULK Job */ @@ -37,7 +36,8 @@ public class SourceShopify { private Optional credentials; /** - * Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` user, leave the default value to speed up the fetch. + * Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` + * user, leave the default value to speed up the fetch. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("fetch_transactions_user_id") @@ -51,30 +51,35 @@ public class SourceShopify { private Optional jobCheckpointInterval; /** - * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). + * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect + * the performance). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("job_product_variants_include_pres_prices") private Optional jobProductVariantsIncludePresPrices; /** - * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The + * bigger the value the longer the BULK Job is allowed to run. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("job_termination_threshold") private Optional jobTerminationThreshold; /** - * The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. + * The name of your Shopify store found in the URL. For example, if your URL was + * https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. */ @JsonProperty("shop") private String shop; + @JsonProperty("sourceType") private SourceShopifyShopify sourceType; /** - * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated. + * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will + * not be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -111,7 +116,9 @@ public SourceShopify( public SourceShopify( String shop) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), shop, Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + shop, Optional.empty()); } /** @@ -132,7 +139,8 @@ public Optional credentials() { } /** - * Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` user, leave the default value to speed up the fetch. + * Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` + * user, leave the default value to speed up the fetch. */ @JsonIgnore public Optional fetchTransactionsUserId() { @@ -148,7 +156,8 @@ public Optional jobCheckpointInterval() { } /** - * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). + * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect + * the performance). */ @JsonIgnore public Optional jobProductVariantsIncludePresPrices() { @@ -156,7 +165,8 @@ public Optional jobProductVariantsIncludePresPrices() { } /** - * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The + * bigger the value the longer the BULK Job is allowed to run. */ @JsonIgnore public Optional jobTerminationThreshold() { @@ -164,7 +174,8 @@ public Optional jobTerminationThreshold() { } /** - * The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. + * The name of your Shopify store found in the URL. For example, if your URL was + * https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. */ @JsonIgnore public String shop() { @@ -177,16 +188,18 @@ public SourceShopifyShopify sourceType() { } /** - * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated. + * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will + * not be replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Defines what would be a date range per single BULK Job @@ -197,6 +210,7 @@ public SourceShopify withBulkWindowInDays(long bulkWindowInDays) { return this; } + /** * Defines what would be a date range per single BULK Job */ @@ -215,6 +229,7 @@ public SourceShopify withCredentials(ShopifyAuthorizationMethod credentials) { return this; } + /** * The authorization method to use to retrieve data from Shopify */ @@ -225,7 +240,8 @@ public SourceShopify withCredentials(Optional fetchTransactionsUserId) { Utils.checkNotNull(fetchTransactionsUserId, "fetchTransactionsUserId"); @@ -251,6 +269,7 @@ public SourceShopify withJobCheckpointInterval(long jobCheckpointInterval) { return this; } + /** * The threshold, after which the single BULK Job should be checkpointed (min: 15k, max: 1M) */ @@ -261,7 +280,8 @@ public SourceShopify withJobCheckpointInterval(Optional jobCheckpointInter } /** - * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). + * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect + * the performance). */ public SourceShopify withJobProductVariantsIncludePresPrices(boolean jobProductVariantsIncludePresPrices) { Utils.checkNotNull(jobProductVariantsIncludePresPrices, "jobProductVariantsIncludePresPrices"); @@ -269,8 +289,10 @@ public SourceShopify withJobProductVariantsIncludePresPrices(boolean jobProductV return this; } + /** - * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). + * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect + * the performance). */ public SourceShopify withJobProductVariantsIncludePresPrices(Optional jobProductVariantsIncludePresPrices) { Utils.checkNotNull(jobProductVariantsIncludePresPrices, "jobProductVariantsIncludePresPrices"); @@ -279,7 +301,8 @@ public SourceShopify withJobProductVariantsIncludePresPrices(Optional j } /** - * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The + * bigger the value the longer the BULK Job is allowed to run. */ public SourceShopify withJobTerminationThreshold(long jobTerminationThreshold) { Utils.checkNotNull(jobTerminationThreshold, "jobTerminationThreshold"); @@ -287,8 +310,10 @@ public SourceShopify withJobTerminationThreshold(long jobTerminationThreshold) { return this; } + /** - * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The + * bigger the value the longer the BULK Job is allowed to run. */ public SourceShopify withJobTerminationThreshold(Optional jobTerminationThreshold) { Utils.checkNotNull(jobTerminationThreshold, "jobTerminationThreshold"); @@ -297,7 +322,8 @@ public SourceShopify withJobTerminationThreshold(Optional jobTerminationTh } /** - * The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. + * The name of your Shopify store found in the URL. For example, if your URL was + * https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. */ public SourceShopify withShop(String shop) { Utils.checkNotNull(shop, "shop"); @@ -306,7 +332,8 @@ public SourceShopify withShop(String shop) { } /** - * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated. + * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will + * not be replicated. */ public SourceShopify withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -314,8 +341,10 @@ public SourceShopify withStartDate(LocalDate startDate) { return this; } + /** - * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated. + * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will + * not be replicated. */ public SourceShopify withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -323,7 +352,6 @@ public SourceShopify withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -334,29 +362,23 @@ public boolean equals(java.lang.Object o) { } SourceShopify other = (SourceShopify) o; return - Objects.deepEquals(this.bulkWindowInDays, other.bulkWindowInDays) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.fetchTransactionsUserId, other.fetchTransactionsUserId) && - Objects.deepEquals(this.jobCheckpointInterval, other.jobCheckpointInterval) && - Objects.deepEquals(this.jobProductVariantsIncludePresPrices, other.jobProductVariantsIncludePresPrices) && - Objects.deepEquals(this.jobTerminationThreshold, other.jobTerminationThreshold) && - Objects.deepEquals(this.shop, other.shop) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.bulkWindowInDays, other.bulkWindowInDays) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.fetchTransactionsUserId, other.fetchTransactionsUserId) && + Utils.enhancedDeepEquals(this.jobCheckpointInterval, other.jobCheckpointInterval) && + Utils.enhancedDeepEquals(this.jobProductVariantsIncludePresPrices, other.jobProductVariantsIncludePresPrices) && + Utils.enhancedDeepEquals(this.jobTerminationThreshold, other.jobTerminationThreshold) && + Utils.enhancedDeepEquals(this.shop, other.shop) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - bulkWindowInDays, - credentials, - fetchTransactionsUserId, - jobCheckpointInterval, - jobProductVariantsIncludePresPrices, - jobTerminationThreshold, - shop, - sourceType, - startDate); + return Utils.enhancedHash( + bulkWindowInDays, credentials, fetchTransactionsUserId, + jobCheckpointInterval, jobProductVariantsIncludePresPrices, jobTerminationThreshold, + shop, sourceType, startDate); } @Override @@ -372,29 +394,31 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional bulkWindowInDays; - + private Optional credentials = Optional.empty(); - + private Optional fetchTransactionsUserId; - + private Optional jobCheckpointInterval; - + private Optional jobProductVariantsIncludePresPrices; - + private Optional jobTerminationThreshold; - + private String shop; - + private Optional startDate; - + private Builder() { // force use of static builder() method } + /** * Defines what would be a date range per single BULK Job */ @@ -413,6 +437,7 @@ public Builder bulkWindowInDays(Optional bulkWindowInDays) { return this; } + /** * The authorization method to use to retrieve data from Shopify */ @@ -431,8 +456,10 @@ public Builder credentials(Optional creden return this; } + /** - * Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` user, leave the default value to speed up the fetch. + * Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` + * user, leave the default value to speed up the fetch. */ public Builder fetchTransactionsUserId(boolean fetchTransactionsUserId) { Utils.checkNotNull(fetchTransactionsUserId, "fetchTransactionsUserId"); @@ -441,7 +468,8 @@ public Builder fetchTransactionsUserId(boolean fetchTransactionsUserId) { } /** - * Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` user, leave the default value to speed up the fetch. + * Defines which API type (REST/BULK) to use to fetch `Transactions` data. If you are a `Shopify Plus` + * user, leave the default value to speed up the fetch. */ public Builder fetchTransactionsUserId(Optional fetchTransactionsUserId) { Utils.checkNotNull(fetchTransactionsUserId, "fetchTransactionsUserId"); @@ -449,6 +477,7 @@ public Builder fetchTransactionsUserId(Optional fetchTransactionsUserId return this; } + /** * The threshold, after which the single BULK Job should be checkpointed (min: 15k, max: 1M) */ @@ -467,8 +496,10 @@ public Builder jobCheckpointInterval(Optional jobCheckpointInterval) { return this; } + /** - * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). + * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect + * the performance). */ public Builder jobProductVariantsIncludePresPrices(boolean jobProductVariantsIncludePresPrices) { Utils.checkNotNull(jobProductVariantsIncludePresPrices, "jobProductVariantsIncludePresPrices"); @@ -477,7 +508,8 @@ public Builder jobProductVariantsIncludePresPrices(boolean jobProductVariantsInc } /** - * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect the performance). + * If enabled, the `Product Variants` stream attempts to include `Presentment prices` field (may affect + * the performance). */ public Builder jobProductVariantsIncludePresPrices(Optional jobProductVariantsIncludePresPrices) { Utils.checkNotNull(jobProductVariantsIncludePresPrices, "jobProductVariantsIncludePresPrices"); @@ -485,8 +517,10 @@ public Builder jobProductVariantsIncludePresPrices(Optional jobProductV return this; } + /** - * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The + * bigger the value the longer the BULK Job is allowed to run. */ public Builder jobTerminationThreshold(long jobTerminationThreshold) { Utils.checkNotNull(jobTerminationThreshold, "jobTerminationThreshold"); @@ -495,7 +529,8 @@ public Builder jobTerminationThreshold(long jobTerminationThreshold) { } /** - * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The bigger the value the longer the BULK Job is allowed to run. + * The max time in seconds, after which the single BULK Job should be `CANCELED` and retried. The + * bigger the value the longer the BULK Job is allowed to run. */ public Builder jobTerminationThreshold(Optional jobTerminationThreshold) { Utils.checkNotNull(jobTerminationThreshold, "jobTerminationThreshold"); @@ -503,8 +538,10 @@ public Builder jobTerminationThreshold(Optional jobTerminationThreshold) { return this; } + /** - * The name of your Shopify store found in the URL. For example, if your URL was https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. + * The name of your Shopify store found in the URL. For example, if your URL was + * https://NAME.myshopify.com, then the name would be 'NAME' or 'NAME.myshopify.com'. */ public Builder shop(String shop) { Utils.checkNotNull(shop, "shop"); @@ -512,8 +549,10 @@ public Builder shop(String shop) { return this; } + /** - * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated. + * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will + * not be replicated. */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -522,14 +561,15 @@ public Builder startDate(LocalDate startDate) { } /** - * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will not be replicated. + * The date you would like to replicate data from. Format: YYYY-MM-DD. Any data before this date will + * not be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceShopify build() { if (bulkWindowInDays == null) { bulkWindowInDays = _SINGLETON_VALUE_BulkWindowInDays.value(); @@ -549,17 +589,14 @@ public SourceShopify build() { if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } + return new SourceShopify( - bulkWindowInDays, - credentials, - fetchTransactionsUserId, - jobCheckpointInterval, - jobProductVariantsIncludePresPrices, - jobTerminationThreshold, - shop, - startDate); + bulkWindowInDays, credentials, fetchTransactionsUserId, + jobCheckpointInterval, jobProductVariantsIncludePresPrices, jobTerminationThreshold, + shop, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_BulkWindowInDays = new LazySingletonValue<>( "bulk_window_in_days", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java index a80a5629f..34ca2d0c9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifyAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceShopifyAuthMethod { @JsonValue private final String value; - private SourceShopifyAuthMethod(String value) { + SourceShopifyAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopifyOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceShopifyOAuth20.java index 0280905c3..c73c82581 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifyOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifyOAuth20.java @@ -13,7 +13,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -22,7 +21,6 @@ *

    OAuth2.0 */ public class SourceShopifyOAuth20 { - /** * The Access Token for making authenticated requests. */ @@ -30,6 +28,7 @@ public class SourceShopifyOAuth20 { @JsonProperty("access_token") private Optional accessToken; + @JsonProperty("auth_method") private SourceShopifyAuthMethod authMethod; @@ -94,9 +93,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Access Token for making authenticated requests. @@ -107,6 +107,7 @@ public SourceShopifyOAuth20 withAccessToken(String accessToken) { return this; } + /** * The Access Token for making authenticated requests. */ @@ -125,6 +126,7 @@ public SourceShopifyOAuth20 withClientId(String clientId) { return this; } + /** * The Client ID of the Shopify developer application. */ @@ -143,6 +145,7 @@ public SourceShopifyOAuth20 withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of the Shopify developer application. */ @@ -152,7 +155,6 @@ public SourceShopifyOAuth20 withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -163,18 +165,16 @@ public boolean equals(java.lang.Object o) { } SourceShopifyOAuth20 other = (SourceShopifyOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authMethod, - clientId, + return Utils.enhancedHash( + accessToken, authMethod, clientId, clientSecret); } @@ -186,19 +186,21 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accessToken = Optional.empty(); - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Access Token for making authenticated requests. */ @@ -217,6 +219,7 @@ public Builder accessToken(Optional accessToken) { return this; } + /** * The Client ID of the Shopify developer application. */ @@ -235,6 +238,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of the Shopify developer application. */ @@ -252,14 +256,14 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public SourceShopifyOAuth20 build() { + return new SourceShopifyOAuth20( - accessToken, - clientId, - clientSecret); + accessToken, clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java index 80b60ed27..12570aac6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifySchemasAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceShopifySchemasAuthMethod { @JsonValue private final String value; - private SourceShopifySchemasAuthMethod(String value) { + SourceShopifySchemasAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopifyShopify.java b/src/main/java/com/airbyte/api/models/shared/SourceShopifyShopify.java index 1a178da32..f5f9977aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopifyShopify.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopifyShopify.java @@ -14,7 +14,7 @@ public enum SourceShopifyShopify { @JsonValue private final String value; - private SourceShopifyShopify(String value) { + SourceShopifyShopify(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShopwired.java b/src/main/java/com/airbyte/api/models/shared/SourceShopwired.java index 848c7c291..11ee8491c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShopwired.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShopwired.java @@ -12,25 +12,28 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceShopwired { +public class SourceShopwired { /** - * Your API Key, which acts as the username for Basic Authentication. You can find it in your ShopWired account under API settings. + * Your API Key, which acts as the username for Basic Authentication. You can find it in your ShopWired + * account under API settings. */ @JsonProperty("api_key") private String apiKey; /** - * Your API Secret, which acts as the password for Basic Authentication. You can find it in your ShopWired account under API settings. + * Your API Secret, which acts as the password for Basic Authentication. You can find it in your + * ShopWired account under API settings. */ @JsonProperty("api_secret") private String apiSecret; + @JsonProperty("sourceType") private Shopwired sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -49,7 +52,8 @@ public SourceShopwired( } /** - * Your API Key, which acts as the username for Basic Authentication. You can find it in your ShopWired account under API settings. + * Your API Key, which acts as the username for Basic Authentication. You can find it in your ShopWired + * account under API settings. */ @JsonIgnore public String apiKey() { @@ -57,7 +61,8 @@ public String apiKey() { } /** - * Your API Secret, which acts as the password for Basic Authentication. You can find it in your ShopWired account under API settings. + * Your API Secret, which acts as the password for Basic Authentication. You can find it in your + * ShopWired account under API settings. */ @JsonIgnore public String apiSecret() { @@ -74,12 +79,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Key, which acts as the username for Basic Authentication. You can find it in your ShopWired account under API settings. + * Your API Key, which acts as the username for Basic Authentication. You can find it in your ShopWired + * account under API settings. */ public SourceShopwired withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -88,7 +95,8 @@ public SourceShopwired withApiKey(String apiKey) { } /** - * Your API Secret, which acts as the password for Basic Authentication. You can find it in your ShopWired account under API settings. + * Your API Secret, which acts as the password for Basic Authentication. You can find it in your + * ShopWired account under API settings. */ public SourceShopwired withApiSecret(String apiSecret) { Utils.checkNotNull(apiSecret, "apiSecret"); @@ -102,7 +110,6 @@ public SourceShopwired withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,18 +120,16 @@ public boolean equals(java.lang.Object o) { } SourceShopwired other = (SourceShopwired) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiSecret, other.apiSecret) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiSecret, other.apiSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiSecret, - sourceType, + return Utils.enhancedHash( + apiKey, apiSecret, sourceType, startDate); } @@ -136,21 +141,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String apiSecret; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your API Key, which acts as the username for Basic Authentication. You can find it in your ShopWired account under API settings. + * Your API Key, which acts as the username for Basic Authentication. You can find it in your ShopWired + * account under API settings. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -158,8 +166,10 @@ public Builder apiKey(String apiKey) { return this; } + /** - * Your API Secret, which acts as the password for Basic Authentication. You can find it in your ShopWired account under API settings. + * Your API Secret, which acts as the password for Basic Authentication. You can find it in your + * ShopWired account under API settings. */ public Builder apiSecret(String apiSecret) { Utils.checkNotNull(apiSecret, "apiSecret"); @@ -167,19 +177,20 @@ public Builder apiSecret(String apiSecret) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceShopwired build() { + return new SourceShopwired( - apiKey, - apiSecret, - startDate); + apiKey, apiSecret, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShortcut.java b/src/main/java/com/airbyte/api/models/shared/SourceShortcut.java index 8d49cd72c..0cae4ef4b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShortcut.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShortcut.java @@ -14,24 +14,27 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceShortcut { @JsonProperty("api_key_2") private String apiKey2; /** - * Query for searching as defined in `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` + * Query for searching as defined in + * `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("query") private Optional query; + @JsonProperty("sourceType") private Shortcut sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -61,7 +64,8 @@ public String apiKey2() { } /** - * Query for searching as defined in `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` + * Query for searching as defined in + * `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` */ @JsonIgnore public Optional query() { @@ -78,9 +82,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceShortcut withApiKey2(String apiKey2) { Utils.checkNotNull(apiKey2, "apiKey2"); @@ -89,7 +94,8 @@ public SourceShortcut withApiKey2(String apiKey2) { } /** - * Query for searching as defined in `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` + * Query for searching as defined in + * `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` */ public SourceShortcut withQuery(String query) { Utils.checkNotNull(query, "query"); @@ -97,8 +103,10 @@ public SourceShortcut withQuery(String query) { return this; } + /** - * Query for searching as defined in `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` + * Query for searching as defined in + * `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` */ public SourceShortcut withQuery(Optional query) { Utils.checkNotNull(query, "query"); @@ -112,7 +120,6 @@ public SourceShortcut withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -123,18 +130,16 @@ public boolean equals(java.lang.Object o) { } SourceShortcut other = (SourceShortcut) o; return - Objects.deepEquals(this.apiKey2, other.apiKey2) && - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey2, other.apiKey2) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey2, - query, - sourceType, + return Utils.enhancedHash( + apiKey2, query, sourceType, startDate); } @@ -146,27 +151,31 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey2; - + private Optional query; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey2(String apiKey2) { Utils.checkNotNull(apiKey2, "apiKey2"); this.apiKey2 = apiKey2; return this; } + /** - * Query for searching as defined in `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` + * Query for searching as defined in + * `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` */ public Builder query(String query) { Utils.checkNotNull(query, "query"); @@ -175,7 +184,8 @@ public Builder query(String query) { } /** - * Query for searching as defined in `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` + * Query for searching as defined in + * `https://help.shortcut.com/hc/en-us/articles/360000046646-Searching-in-Shortcut-Using-Search-Operators` */ public Builder query(Optional query) { Utils.checkNotNull(query, "query"); @@ -183,22 +193,23 @@ public Builder query(Optional query) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceShortcut build() { if (query == null) { query = _SINGLETON_VALUE_Query.value(); } + return new SourceShortcut( - apiKey2, - query, - startDate); + apiKey2, query, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Query = new LazySingletonValue<>( "query", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShortio.java b/src/main/java/com/airbyte/api/models/shared/SourceShortio.java index 5ba077ff5..6f19364ec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShortio.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShortio.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceShortio { @@ -24,11 +24,13 @@ public class SourceShortio { @JsonProperty("secret_key") private String secretKey; + @JsonProperty("sourceType") private Shortio sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private String startDate; @@ -66,16 +68,18 @@ public Shortio sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceShortio withDomainId(String domainId) { Utils.checkNotNull(domainId, "domainId"); @@ -93,7 +97,8 @@ public SourceShortio withSecretKey(String secretKey) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceShortio withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -101,7 +106,6 @@ public SourceShortio withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -112,18 +116,16 @@ public boolean equals(java.lang.Object o) { } SourceShortio other = (SourceShortio) o; return - Objects.deepEquals(this.domainId, other.domainId) && - Objects.deepEquals(this.secretKey, other.secretKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.domainId, other.domainId) && + Utils.enhancedDeepEquals(this.secretKey, other.secretKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - domainId, - secretKey, - sourceType, + return Utils.enhancedHash( + domainId, secretKey, sourceType, startDate); } @@ -135,25 +137,28 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String domainId; - + private String secretKey; - + private String startDate; - + private Builder() { // force use of static builder() method } + public Builder domainId(String domainId) { Utils.checkNotNull(domainId, "domainId"); this.domainId = domainId; return this; } + /** * Short.io Secret Key */ @@ -163,22 +168,24 @@ public Builder secretKey(String secretKey) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceShortio build() { + return new SourceShortio( - domainId, - secretKey, - startDate); + domainId, secretKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceShutterstock.java b/src/main/java/com/airbyte/api/models/shared/SourceShutterstock.java index be3676f45..ff05580ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceShutterstock.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceShutterstock.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceShutterstock { +public class SourceShutterstock { /** - * Your OAuth 2.0 token for accessing the Shutterstock API. Obtain this token from your Shutterstock developer account. + * Your OAuth 2.0 token for accessing the Shutterstock API. Obtain this token from your Shutterstock + * developer account. */ @JsonProperty("api_token") private String apiToken; @@ -53,9 +53,11 @@ public class SourceShutterstock { @JsonProperty("query_for_video_search") private Optional queryForVideoSearch; + @JsonProperty("sourceType") private Shutterstock sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -85,11 +87,13 @@ public SourceShutterstock( public SourceShutterstock( String apiToken, OffsetDateTime startDate) { - this(apiToken, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate); + this(apiToken, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), startDate); } /** - * Your OAuth 2.0 token for accessing the Shutterstock API. Obtain this token from your Shutterstock developer account. + * Your OAuth 2.0 token for accessing the Shutterstock API. Obtain this token from your Shutterstock + * developer account. */ @JsonIgnore public String apiToken() { @@ -138,12 +142,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your OAuth 2.0 token for accessing the Shutterstock API. Obtain this token from your Shutterstock developer account. + * Your OAuth 2.0 token for accessing the Shutterstock API. Obtain this token from your Shutterstock + * developer account. */ public SourceShutterstock withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -160,6 +166,7 @@ public SourceShutterstock withQueryForAudioSearch(String queryForAudioSearch) { return this; } + /** * The query for image search */ @@ -178,6 +185,7 @@ public SourceShutterstock withQueryForCatalogSearch(String queryForCatalogSearch return this; } + /** * The query for catalog search */ @@ -196,6 +204,7 @@ public SourceShutterstock withQueryForImageSearch(String queryForImageSearch) { return this; } + /** * The query for image search */ @@ -214,6 +223,7 @@ public SourceShutterstock withQueryForVideoSearch(String queryForVideoSearch) { return this; } + /** * The Query for `videos_search` stream */ @@ -229,7 +239,6 @@ public SourceShutterstock withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -240,24 +249,20 @@ public boolean equals(java.lang.Object o) { } SourceShutterstock other = (SourceShutterstock) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.queryForAudioSearch, other.queryForAudioSearch) && - Objects.deepEquals(this.queryForCatalogSearch, other.queryForCatalogSearch) && - Objects.deepEquals(this.queryForImageSearch, other.queryForImageSearch) && - Objects.deepEquals(this.queryForVideoSearch, other.queryForVideoSearch) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.queryForAudioSearch, other.queryForAudioSearch) && + Utils.enhancedDeepEquals(this.queryForCatalogSearch, other.queryForCatalogSearch) && + Utils.enhancedDeepEquals(this.queryForImageSearch, other.queryForImageSearch) && + Utils.enhancedDeepEquals(this.queryForVideoSearch, other.queryForVideoSearch) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiToken, - queryForAudioSearch, - queryForCatalogSearch, - queryForImageSearch, - queryForVideoSearch, - sourceType, + return Utils.enhancedHash( + apiToken, queryForAudioSearch, queryForCatalogSearch, + queryForImageSearch, queryForVideoSearch, sourceType, startDate); } @@ -272,27 +277,30 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Optional queryForAudioSearch; - + private Optional queryForCatalogSearch; - + private Optional queryForImageSearch; - + private Optional queryForVideoSearch; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your OAuth 2.0 token for accessing the Shutterstock API. Obtain this token from your Shutterstock developer account. + * Your OAuth 2.0 token for accessing the Shutterstock API. Obtain this token from your Shutterstock + * developer account. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -300,6 +308,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * The query for image search */ @@ -318,6 +327,7 @@ public Builder queryForAudioSearch(Optional queryForAudioSearch) { return this; } + /** * The query for catalog search */ @@ -336,6 +346,7 @@ public Builder queryForCatalogSearch(Optional queryForCatalogSearch) { return this; } + /** * The query for image search */ @@ -354,6 +365,7 @@ public Builder queryForImageSearch(Optional queryForImageSearch) { return this; } + /** * The Query for `videos_search` stream */ @@ -372,12 +384,13 @@ public Builder queryForVideoSearch(Optional queryForVideoSearch) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceShutterstock build() { if (queryForAudioSearch == null) { queryForAudioSearch = _SINGLETON_VALUE_QueryForAudioSearch.value(); @@ -391,15 +404,13 @@ public SourceShutterstock build() { if (queryForVideoSearch == null) { queryForVideoSearch = _SINGLETON_VALUE_QueryForVideoSearch.value(); } + return new SourceShutterstock( - apiToken, - queryForAudioSearch, - queryForCatalogSearch, - queryForImageSearch, - queryForVideoSearch, - startDate); + apiToken, queryForAudioSearch, queryForCatalogSearch, + queryForImageSearch, queryForVideoSearch, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_QueryForAudioSearch = new LazySingletonValue<>( "query_for_audio_search", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSigmaComputing.java b/src/main/java/com/airbyte/api/models/shared/SourceSigmaComputing.java index d3200972b..b9d06b10e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSigmaComputing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSigmaComputing.java @@ -14,40 +14,45 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceSigmaComputing { +public class SourceSigmaComputing { /** * The base url of your sigma organization */ @JsonProperty("base_url") private String baseUrl; + @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token") private String clientRefreshToken; + @JsonProperty("client_secret") private String clientSecret; /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("oauth_access_token") private Optional oauthAccessToken; /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("oauth_token_expiry_date") private Optional oauthTokenExpiryDate; + @JsonProperty("sourceType") private SigmaComputing sourceType; @@ -79,7 +84,8 @@ public SourceSigmaComputing( String clientId, String clientRefreshToken, String clientSecret) { - this(baseUrl, clientId, clientRefreshToken, clientSecret, Optional.empty(), Optional.empty()); + this(baseUrl, clientId, clientRefreshToken, + clientSecret, Optional.empty(), Optional.empty()); } /** @@ -106,7 +112,8 @@ public String clientSecret() { } /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ @JsonIgnore public Optional oauthAccessToken() { @@ -114,7 +121,8 @@ public Optional oauthAccessToken() { } /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ @JsonIgnore public Optional oauthTokenExpiryDate() { @@ -126,9 +134,10 @@ public SigmaComputing sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The base url of your sigma organization @@ -158,7 +167,8 @@ public SourceSigmaComputing withClientSecret(String clientSecret) { } /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public SourceSigmaComputing withOauthAccessToken(String oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -166,8 +176,10 @@ public SourceSigmaComputing withOauthAccessToken(String oauthAccessToken) { return this; } + /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public SourceSigmaComputing withOauthAccessToken(Optional oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -176,7 +188,8 @@ public SourceSigmaComputing withOauthAccessToken(Optional oauthAccessTok } /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public SourceSigmaComputing withOauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -184,8 +197,10 @@ public SourceSigmaComputing withOauthTokenExpiryDate(OffsetDateTime oauthTokenEx return this; } + /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public SourceSigmaComputing withOauthTokenExpiryDate(Optional oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -193,7 +208,6 @@ public SourceSigmaComputing withOauthTokenExpiryDate(Optional oa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -204,24 +218,20 @@ public boolean equals(java.lang.Object o) { } SourceSigmaComputing other = (SourceSigmaComputing) o; return - Objects.deepEquals(this.baseUrl, other.baseUrl) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken, other.clientRefreshToken) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.oauthAccessToken, other.oauthAccessToken) && - Objects.deepEquals(this.oauthTokenExpiryDate, other.oauthTokenExpiryDate) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.oauthAccessToken, other.oauthAccessToken) && + Utils.enhancedDeepEquals(this.oauthTokenExpiryDate, other.oauthTokenExpiryDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - baseUrl, - clientId, - clientRefreshToken, - clientSecret, - oauthAccessToken, - oauthTokenExpiryDate, + return Utils.enhancedHash( + baseUrl, clientId, clientRefreshToken, + clientSecret, oauthAccessToken, oauthTokenExpiryDate, sourceType); } @@ -236,25 +246,27 @@ public String toString() { "oauthTokenExpiryDate", oauthTokenExpiryDate, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String baseUrl; - + private String clientId; - + private String clientRefreshToken; - + private String clientSecret; - + private Optional oauthAccessToken = Optional.empty(); - + private Optional oauthTokenExpiryDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The base url of your sigma organization */ @@ -264,26 +276,31 @@ public Builder baseUrl(String baseUrl) { return this; } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); this.clientRefreshToken = clientRefreshToken; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public Builder oauthAccessToken(String oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -292,7 +309,8 @@ public Builder oauthAccessToken(String oauthAccessToken) { } /** - * The current access token. This field might be overridden by the connector based on the token refresh endpoint response. + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. */ public Builder oauthAccessToken(Optional oauthAccessToken) { Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); @@ -300,8 +318,10 @@ public Builder oauthAccessToken(Optional oauthAccessToken) { return this; } + /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public Builder oauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); @@ -310,24 +330,23 @@ public Builder oauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { } /** - * The date the current access token expires in. This field might be overridden by the connector based on the token refresh endpoint response. + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. */ public Builder oauthTokenExpiryDate(Optional oauthTokenExpiryDate) { Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); this.oauthTokenExpiryDate = oauthTokenExpiryDate; return this; } - + public SourceSigmaComputing build() { + return new SourceSigmaComputing( - baseUrl, - clientId, - clientRefreshToken, - clientSecret, - oauthAccessToken, - oauthTokenExpiryDate); + baseUrl, clientId, clientRefreshToken, + clientSecret, oauthAccessToken, oauthTokenExpiryDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSignnow.java b/src/main/java/com/airbyte/api/models/shared/SourceSignnow.java index f3e6e040d..3e34c6214 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSignnow.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSignnow.java @@ -17,11 +17,10 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSignnow { +public class SourceSignnow { /** * Api key which could be found in API section after enlarging keys section */ @@ -29,7 +28,8 @@ public class SourceSignnow { private String apiKeyId; /** - * The authorization token is needed for `signing_links` stream which could be seen from enlarged view of `https://app.signnow.com/webapp/api-dashboard/keys` + * The authorization token is needed for `signing_links` stream which could be seen from enlarged view + * of `https://app.signnow.com/webapp/api-dashboard/keys` */ @JsonProperty("auth_token") private String authToken; @@ -41,9 +41,11 @@ public class SourceSignnow { @JsonProperty("name_filter_for_documents") private Optional> nameFilterForDocuments; + @JsonProperty("sourceType") private Signnow sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -68,7 +70,8 @@ public SourceSignnow( String apiKeyId, String authToken, OffsetDateTime startDate) { - this(apiKeyId, authToken, Optional.empty(), startDate); + this(apiKeyId, authToken, Optional.empty(), + startDate); } /** @@ -80,7 +83,8 @@ public String apiKeyId() { } /** - * The authorization token is needed for `signing_links` stream which could be seen from enlarged view of `https://app.signnow.com/webapp/api-dashboard/keys` + * The authorization token is needed for `signing_links` stream which could be seen from enlarged view + * of `https://app.signnow.com/webapp/api-dashboard/keys` */ @JsonIgnore public String authToken() { @@ -106,9 +110,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Api key which could be found in API section after enlarging keys section @@ -120,7 +125,8 @@ public SourceSignnow withApiKeyId(String apiKeyId) { } /** - * The authorization token is needed for `signing_links` stream which could be seen from enlarged view of `https://app.signnow.com/webapp/api-dashboard/keys` + * The authorization token is needed for `signing_links` stream which could be seen from enlarged view + * of `https://app.signnow.com/webapp/api-dashboard/keys` */ public SourceSignnow withAuthToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -137,6 +143,7 @@ public SourceSignnow withNameFilterForDocuments(List nameFilterForDocume return this; } + /** * Name filter for documents stream */ @@ -152,7 +159,6 @@ public SourceSignnow withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -163,21 +169,18 @@ public boolean equals(java.lang.Object o) { } SourceSignnow other = (SourceSignnow) o; return - Objects.deepEquals(this.apiKeyId, other.apiKeyId) && - Objects.deepEquals(this.authToken, other.authToken) && - Objects.deepEquals(this.nameFilterForDocuments, other.nameFilterForDocuments) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKeyId, other.apiKeyId) && + Utils.enhancedDeepEquals(this.authToken, other.authToken) && + Utils.enhancedDeepEquals(this.nameFilterForDocuments, other.nameFilterForDocuments) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKeyId, - authToken, - nameFilterForDocuments, - sourceType, - startDate); + return Utils.enhancedHash( + apiKeyId, authToken, nameFilterForDocuments, + sourceType, startDate); } @Override @@ -189,21 +192,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKeyId; - + private String authToken; - + private Optional> nameFilterForDocuments = Optional.empty(); - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * Api key which could be found in API section after enlarging keys section */ @@ -213,8 +218,10 @@ public Builder apiKeyId(String apiKeyId) { return this; } + /** - * The authorization token is needed for `signing_links` stream which could be seen from enlarged view of `https://app.signnow.com/webapp/api-dashboard/keys` + * The authorization token is needed for `signing_links` stream which could be seen from enlarged view + * of `https://app.signnow.com/webapp/api-dashboard/keys` */ public Builder authToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -222,6 +229,7 @@ public Builder authToken(String authToken) { return this; } + /** * Name filter for documents stream */ @@ -240,20 +248,21 @@ public Builder nameFilterForDocuments(Optional> nameFilte return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSignnow build() { + return new SourceSignnow( - apiKeyId, - authToken, - nameFilterForDocuments, + apiKeyId, authToken, nameFilterForDocuments, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSimfin.java b/src/main/java/com/airbyte/api/models/shared/SourceSimfin.java index 0f8837d92..cdfc9cf53 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSimfin.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSimfin.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceSimfin { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Simfin sourceType; @@ -39,9 +40,10 @@ public Simfin sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSimfin withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceSimfin withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceSimfin other = (SourceSimfin) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceSimfin build() { + return new SourceSimfin( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSimplecast.java b/src/main/java/com/airbyte/api/models/shared/SourceSimplecast.java index 350e8f104..baa51f4cf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSimplecast.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSimplecast.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSimplecast { +public class SourceSimplecast { /** * API token to use. Find it at your Private Apps page on the Simplecast dashboard. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Simplecast sourceType; @@ -45,9 +45,10 @@ public Simplecast sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API token to use. Find it at your Private Apps page on the Simplecast dashboard. @@ -58,7 +59,6 @@ public SourceSimplecast withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceSimplecast other = (SourceSimplecast) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * API token to use. Find it at your Private Apps page on the Simplecast dashboard. */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public SourceSimplecast build() { + return new SourceSimplecast( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSimplesat.java b/src/main/java/com/airbyte/api/models/shared/SourceSimplesat.java index 97d261917..568a60624 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSimplesat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSimplesat.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceSimplesat { @JsonProperty("api_key") @@ -29,6 +29,7 @@ public class SourceSimplesat { @JsonProperty("end_date") private Optional endDate; + @JsonProperty("sourceType") private Simplesat sourceType; @@ -84,9 +85,10 @@ public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSimplesat withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -103,6 +105,7 @@ public SourceSimplesat withEndDate(OffsetDateTime endDate) { return this; } + /** * Date till when the sync should end */ @@ -121,6 +124,7 @@ public SourceSimplesat withStartDate(OffsetDateTime startDate) { return this; } + /** * Date from when the sync should start */ @@ -130,7 +134,6 @@ public SourceSimplesat withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -141,18 +144,16 @@ public boolean equals(java.lang.Object o) { } SourceSimplesat other = (SourceSimplesat) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - endDate, - sourceType, + return Utils.enhancedHash( + apiKey, endDate, sourceType, startDate); } @@ -164,25 +165,28 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional endDate = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Date till when the sync should end */ @@ -201,6 +205,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * Date from when the sync should start */ @@ -218,14 +223,14 @@ public Builder startDate(Optional startDate) { this.startDate = startDate; return this; } - + public SourceSimplesat build() { + return new SourceSimplesat( - apiKey, - endDate, - startDate); + apiKey, endDate, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlack.java b/src/main/java/com/airbyte/api/models/shared/SourceSlack.java index 2b006e9cb..7348b5a2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlack.java @@ -18,18 +18,27 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSlack { +public class SourceSlack { /** - * A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter. + * A channel name list (without leading '#' char) which limit the channels from which you'd like to + * sync. Empty list means no filter. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("channel_filter") private Optional> channelFilter; + /** + * The size (in days) of the date window that will be used while syncing data from the channel messages + * stream. A smaller window will allow for greater parallelization when syncing records, but can lead + * to rate limiting errors. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("channel_messages_window_size") + private Optional channelMessagesWindowSize; + /** * Choose how to authenticate into Slack */ @@ -38,14 +47,16 @@ public class SourceSlack { private Optional credentials; /** - * Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. + * Whether to read information from private channels that the bot is already in. If false, only public + * channels will be read. If true, the bot must be manually added to private channels. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("include_private_channels") private Optional includePrivateChannels; /** - * Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. + * Whether to join all channels or to sync data only from channels the bot is already in. If false, + * you'll need to manually add the bot to all the channels from which you'd like to sync messages. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("join_channels") @@ -58,11 +69,20 @@ public class SourceSlack { @JsonProperty("lookback_window") private Optional lookbackWindow; + /** + * The number of worker threads to use for the sync. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("num_workers") + private Optional numWorkers; + + @JsonProperty("sourceType") private SourceSlackSlack sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -70,33 +90,42 @@ public class SourceSlack { @JsonCreator public SourceSlack( @JsonProperty("channel_filter") Optional> channelFilter, + @JsonProperty("channel_messages_window_size") Optional channelMessagesWindowSize, @JsonProperty("credentials") Optional credentials, @JsonProperty("include_private_channels") Optional includePrivateChannels, @JsonProperty("join_channels") Optional joinChannels, @JsonProperty("lookback_window") Optional lookbackWindow, + @JsonProperty("num_workers") Optional numWorkers, @JsonProperty("start_date") OffsetDateTime startDate) { Utils.checkNotNull(channelFilter, "channelFilter"); + Utils.checkNotNull(channelMessagesWindowSize, "channelMessagesWindowSize"); Utils.checkNotNull(credentials, "credentials"); Utils.checkNotNull(includePrivateChannels, "includePrivateChannels"); Utils.checkNotNull(joinChannels, "joinChannels"); Utils.checkNotNull(lookbackWindow, "lookbackWindow"); + Utils.checkNotNull(numWorkers, "numWorkers"); Utils.checkNotNull(startDate, "startDate"); this.channelFilter = channelFilter; + this.channelMessagesWindowSize = channelMessagesWindowSize; this.credentials = credentials; this.includePrivateChannels = includePrivateChannels; this.joinChannels = joinChannels; this.lookbackWindow = lookbackWindow; + this.numWorkers = numWorkers; this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); this.startDate = startDate; } public SourceSlack( OffsetDateTime startDate) { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), startDate); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), startDate); } /** - * A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter. + * A channel name list (without leading '#' char) which limit the channels from which you'd like to + * sync. Empty list means no filter. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -104,6 +133,16 @@ public Optional> channelFilter() { return (Optional>) channelFilter; } + /** + * The size (in days) of the date window that will be used while syncing data from the channel messages + * stream. A smaller window will allow for greater parallelization when syncing records, but can lead + * to rate limiting errors. + */ + @JsonIgnore + public Optional channelMessagesWindowSize() { + return channelMessagesWindowSize; + } + /** * Choose how to authenticate into Slack */ @@ -114,7 +153,8 @@ public Optional credentials() { } /** - * Whether to read information from private channels that the bot is already in. If false, only public channels will be read. If true, the bot must be manually added to private channels. + * Whether to read information from private channels that the bot is already in. If false, only public + * channels will be read. If true, the bot must be manually added to private channels. */ @JsonIgnore public Optional includePrivateChannels() { @@ -122,7 +162,8 @@ public Optional includePrivateChannels() { } /** - * Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. + * Whether to join all channels or to sync data only from channels the bot is already in. If false, + * you'll need to manually add the bot to all the channels from which you'd like to sync messages. */ @JsonIgnore public Optional joinChannels() { @@ -137,25 +178,36 @@ public Optional lookbackWindow() { return lookbackWindow; } + /** + * The number of worker threads to use for the sync. + */ + @JsonIgnore + public Optional numWorkers() { + return numWorkers; + } + @JsonIgnore public SourceSlackSlack sourceType() { return sourceType; } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter. + * A channel name list (without leading '#' char) which limit the channels from which you'd like to + * sync. Empty list means no filter. */ public SourceSlack withChannelFilter(List channelFilter) { Utils.checkNotNull(channelFilter, "channelFilter"); @@ -163,8 +215,10 @@ public SourceSlack withChannelFilter(List channelFilter) { return this; } + /** - * A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter. + * A channel name list (without leading '#' char) which limit the channels from which you'd like to + * sync. Empty list means no filter. */ public SourceSlack withChannelFilter(Optional> channelFilter) { Utils.checkNotNull(channelFilter, "channelFilter"); @@ -172,6 +226,29 @@ public SourceSlack withChannelFilter(Optional> channelFil return this; } + /** + * The size (in days) of the date window that will be used while syncing data from the channel messages + * stream. A smaller window will allow for greater parallelization when syncing records, but can lead + * to rate limiting errors. + */ + public SourceSlack withChannelMessagesWindowSize(long channelMessagesWindowSize) { + Utils.checkNotNull(channelMessagesWindowSize, "channelMessagesWindowSize"); + this.channelMessagesWindowSize = Optional.ofNullable(channelMessagesWindowSize); + return this; + } + + + /** + * The size (in days) of the date window that will be used while syncing data from the channel messages + * stream. A smaller window will allow for greater parallelization when syncing records, but can lead + * to rate limiting errors. + */ + public SourceSlack withChannelMessagesWindowSize(Optional channelMessagesWindowSize) { + Utils.checkNotNull(channelMessagesWindowSize, "channelMessagesWindowSize"); + this.channelMessagesWindowSize = channelMessagesWindowSize; + return this; + } + /** * Choose how to authenticate into Slack */ @@ -181,6 +258,7 @@ public SourceSlack withCredentials(SourceSlackAuthenticationMechanism credential return this; } + /** * Choose how to authenticate into Slack */ @@ -191,7 +269,8 @@ public SourceSlack withCredentials(Optional includePrivateChannels) { Utils.checkNotNull(includePrivateChannels, "includePrivateChannels"); @@ -209,7 +290,8 @@ public SourceSlack withIncludePrivateChannels(Optional includePrivateCh } /** - * Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. + * Whether to join all channels or to sync data only from channels the bot is already in. If false, + * you'll need to manually add the bot to all the channels from which you'd like to sync messages. */ public SourceSlack withJoinChannels(boolean joinChannels) { Utils.checkNotNull(joinChannels, "joinChannels"); @@ -217,8 +299,10 @@ public SourceSlack withJoinChannels(boolean joinChannels) { return this; } + /** - * Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. + * Whether to join all channels or to sync data only from channels the bot is already in. If false, + * you'll need to manually add the bot to all the channels from which you'd like to sync messages. */ public SourceSlack withJoinChannels(Optional joinChannels) { Utils.checkNotNull(joinChannels, "joinChannels"); @@ -235,6 +319,7 @@ public SourceSlack withLookbackWindow(long lookbackWindow) { return this; } + /** * How far into the past to look for messages in threads, default is 0 days */ @@ -245,7 +330,27 @@ public SourceSlack withLookbackWindow(Optional lookbackWindow) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * The number of worker threads to use for the sync. + */ + public SourceSlack withNumWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + + /** + * The number of worker threads to use for the sync. + */ + public SourceSlack withNumWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceSlack withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -253,7 +358,6 @@ public SourceSlack withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -264,59 +368,66 @@ public boolean equals(java.lang.Object o) { } SourceSlack other = (SourceSlack) o; return - Objects.deepEquals(this.channelFilter, other.channelFilter) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.includePrivateChannels, other.includePrivateChannels) && - Objects.deepEquals(this.joinChannels, other.joinChannels) && - Objects.deepEquals(this.lookbackWindow, other.lookbackWindow) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.channelFilter, other.channelFilter) && + Utils.enhancedDeepEquals(this.channelMessagesWindowSize, other.channelMessagesWindowSize) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.includePrivateChannels, other.includePrivateChannels) && + Utils.enhancedDeepEquals(this.joinChannels, other.joinChannels) && + Utils.enhancedDeepEquals(this.lookbackWindow, other.lookbackWindow) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - channelFilter, - credentials, - includePrivateChannels, - joinChannels, - lookbackWindow, - sourceType, - startDate); + return Utils.enhancedHash( + channelFilter, channelMessagesWindowSize, credentials, + includePrivateChannels, joinChannels, lookbackWindow, + numWorkers, sourceType, startDate); } @Override public String toString() { return Utils.toString(SourceSlack.class, "channelFilter", channelFilter, + "channelMessagesWindowSize", channelMessagesWindowSize, "credentials", credentials, "includePrivateChannels", includePrivateChannels, "joinChannels", joinChannels, "lookbackWindow", lookbackWindow, + "numWorkers", numWorkers, "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> channelFilter = Optional.empty(); - + + private Optional channelMessagesWindowSize; + private Optional credentials = Optional.empty(); - + private Optional includePrivateChannels; - + private Optional joinChannels; - + private Optional lookbackWindow; - + + private Optional numWorkers; + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter. + * A channel name list (without leading '#' char) which limit the channels from which you'd like to + * sync. Empty list means no filter. */ public Builder channelFilter(List channelFilter) { Utils.checkNotNull(channelFilter, "channelFilter"); @@ -325,7 +436,8 @@ public Builder channelFilter(List channelFilter) { } /** - * A channel name list (without leading '#' char) which limit the channels from which you'd like to sync. Empty list means no filter. + * A channel name list (without leading '#' char) which limit the channels from which you'd like to + * sync. Empty list means no filter. */ public Builder channelFilter(Optional> channelFilter) { Utils.checkNotNull(channelFilter, "channelFilter"); @@ -333,6 +445,30 @@ public Builder channelFilter(Optional> channelFilter) { return this; } + + /** + * The size (in days) of the date window that will be used while syncing data from the channel messages + * stream. A smaller window will allow for greater parallelization when syncing records, but can lead + * to rate limiting errors. + */ + public Builder channelMessagesWindowSize(long channelMessagesWindowSize) { + Utils.checkNotNull(channelMessagesWindowSize, "channelMessagesWindowSize"); + this.channelMessagesWindowSize = Optional.ofNullable(channelMessagesWindowSize); + return this; + } + + /** + * The size (in days) of the date window that will be used while syncing data from the channel messages + * stream. A smaller window will allow for greater parallelization when syncing records, but can lead + * to rate limiting errors. + */ + public Builder channelMessagesWindowSize(Optional channelMessagesWindowSize) { + Utils.checkNotNull(channelMessagesWindowSize, "channelMessagesWindowSize"); + this.channelMessagesWindowSize = channelMessagesWindowSize; + return this; + } + + /** * Choose how to authenticate into Slack */ @@ -351,8 +487,10 @@ public Builder credentials(Optional includePrivateChannels) { Utils.checkNotNull(includePrivateChannels, "includePrivateChannels"); @@ -369,8 +508,10 @@ public Builder includePrivateChannels(Optional includePrivateChannels) return this; } + /** - * Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. + * Whether to join all channels or to sync data only from channels the bot is already in. If false, + * you'll need to manually add the bot to all the channels from which you'd like to sync messages. */ public Builder joinChannels(boolean joinChannels) { Utils.checkNotNull(joinChannels, "joinChannels"); @@ -379,7 +520,8 @@ public Builder joinChannels(boolean joinChannels) { } /** - * Whether to join all channels or to sync data only from channels the bot is already in. If false, you'll need to manually add the bot to all the channels from which you'd like to sync messages. + * Whether to join all channels or to sync data only from channels the bot is already in. If false, + * you'll need to manually add the bot to all the channels from which you'd like to sync messages. */ public Builder joinChannels(Optional joinChannels) { Utils.checkNotNull(joinChannels, "joinChannels"); @@ -387,6 +529,7 @@ public Builder joinChannels(Optional joinChannels) { return this; } + /** * How far into the past to look for messages in threads, default is 0 days */ @@ -405,16 +548,40 @@ public Builder lookbackWindow(Optional lookbackWindow) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * The number of worker threads to use for the sync. + */ + public Builder numWorkers(long numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = Optional.ofNullable(numWorkers); + return this; + } + + /** + * The number of worker threads to use for the sync. + */ + public Builder numWorkers(Optional numWorkers) { + Utils.checkNotNull(numWorkers, "numWorkers"); + this.numWorkers = numWorkers; + return this; + } + + + /** + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSlack build() { + if (channelMessagesWindowSize == null) { + channelMessagesWindowSize = _SINGLETON_VALUE_ChannelMessagesWindowSize.value(); + } if (includePrivateChannels == null) { includePrivateChannels = _SINGLETON_VALUE_IncludePrivateChannels.value(); } @@ -424,15 +591,23 @@ public SourceSlack build() { if (lookbackWindow == null) { lookbackWindow = _SINGLETON_VALUE_LookbackWindow.value(); } + if (numWorkers == null) { + numWorkers = _SINGLETON_VALUE_NumWorkers.value(); + } + return new SourceSlack( - channelFilter, - credentials, - includePrivateChannels, - joinChannels, - lookbackWindow, - startDate); + channelFilter, channelMessagesWindowSize, credentials, + includePrivateChannels, joinChannels, lookbackWindow, + numWorkers, startDate); } + + private static final LazySingletonValue> _SINGLETON_VALUE_ChannelMessagesWindowSize = + new LazySingletonValue<>( + "channel_messages_window_size", + "100", + new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_IncludePrivateChannels = new LazySingletonValue<>( "include_private_channels", @@ -451,6 +626,12 @@ public SourceSlack build() { "0", new TypeReference>() {}); + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = + new LazySingletonValue<>( + "num_workers", + "2", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlackAPIToken.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackAPIToken.java index 4bfe4f43d..c27c54f67 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackAPIToken.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSlackAPIToken { +public class SourceSlackAPIToken { /** - * A Slack bot token. See the <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> for instructions on how to generate it. + * A Slack bot token. See the docs + * for instructions on how to generate it. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("option_title") private SourceSlackSchemasOptionTitle optionTitle; @@ -33,7 +34,8 @@ public SourceSlackAPIToken( } /** - * A Slack bot token. See the <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> for instructions on how to generate it. + * A Slack bot token. See the docs + * for instructions on how to generate it. */ @JsonIgnore public String apiToken() { @@ -45,12 +47,14 @@ public SourceSlackSchemasOptionTitle optionTitle() { return optionTitle; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * A Slack bot token. See the <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> for instructions on how to generate it. + * A Slack bot token. See the docs + * for instructions on how to generate it. */ public SourceSlackAPIToken withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -58,7 +62,6 @@ public SourceSlackAPIToken withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceSlackAPIToken other = (SourceSlackAPIToken) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.optionTitle, other.optionTitle); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.optionTitle, other.optionTitle); } @Override public int hashCode() { - return Objects.hash( - apiToken, - optionTitle); + return Utils.enhancedHash( + apiToken, optionTitle); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiToken", apiToken, "optionTitle", optionTitle); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** - * A Slack bot token. See the <a href="https://docs.airbyte.com/integrations/sources/slack">docs</a> for instructions on how to generate it. + * A Slack bot token. See the docs + * for instructions on how to generate it. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); this.apiToken = apiToken; return this; } - + public SourceSlackAPIToken build() { + return new SourceSlackAPIToken( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_OptionTitle = new LazySingletonValue<>( "option_title", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlackAuthenticationMechanism.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackAuthenticationMechanism.java index a8a42a4e5..6ea56b60f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackAuthenticationMechanism.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackAuthenticationMechanism.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceSlackAuthenticationMechanism @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSlackAuthenticationMechanism other = (SourceSlackAuthenticationMechanism) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java index f0181e38f..efeb04ccd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackOptionTitle.java @@ -14,7 +14,7 @@ public enum SourceSlackOptionTitle { @JsonValue private final String value; - private SourceSlackOptionTitle(String value) { + SourceSlackOptionTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlackSchemasOptionTitle.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackSchemasOptionTitle.java index ebe83366c..2b4e5d428 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackSchemasOptionTitle.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackSchemasOptionTitle.java @@ -14,7 +14,7 @@ public enum SourceSlackSchemasOptionTitle { @JsonValue private final String value; - private SourceSlackSchemasOptionTitle(String value) { + SourceSlackSchemasOptionTitle(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSlackSlack.java b/src/main/java/com/airbyte/api/models/shared/SourceSlackSlack.java index b023691d4..c8dbbc16f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSlackSlack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSlackSlack.java @@ -14,7 +14,7 @@ public enum SourceSlackSlack { @JsonValue private final String value; - private SourceSlackSlack(String value) { + SourceSlackSlack(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmaily.java b/src/main/java/com/airbyte/api/models/shared/SourceSmaily.java index 314df12c8..1c9f46d82 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmaily.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmaily.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSmaily { +public class SourceSmaily { /** * API user password. See https://smaily.com/help/api/general/create-api-user/ */ @@ -33,6 +32,7 @@ public class SourceSmaily { @JsonProperty("api_username") private String apiUsername; + @JsonProperty("sourceType") private Smaily sourceType; @@ -79,9 +79,10 @@ public Smaily sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API user password. See https://smaily.com/help/api/general/create-api-user/ @@ -110,7 +111,6 @@ public SourceSmaily withApiUsername(String apiUsername) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +121,16 @@ public boolean equals(java.lang.Object o) { } SourceSmaily other = (SourceSmaily) o; return - Objects.deepEquals(this.apiPassword, other.apiPassword) && - Objects.deepEquals(this.apiSubdomain, other.apiSubdomain) && - Objects.deepEquals(this.apiUsername, other.apiUsername) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiPassword, other.apiPassword) && + Utils.enhancedDeepEquals(this.apiSubdomain, other.apiSubdomain) && + Utils.enhancedDeepEquals(this.apiUsername, other.apiUsername) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiPassword, - apiSubdomain, - apiUsername, + return Utils.enhancedHash( + apiPassword, apiSubdomain, apiUsername, sourceType); } @@ -144,19 +142,21 @@ public String toString() { "apiUsername", apiUsername, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiPassword; - + private String apiSubdomain; - + private String apiUsername; - + private Builder() { // force use of static builder() method } + /** * API user password. See https://smaily.com/help/api/general/create-api-user/ */ @@ -166,6 +166,7 @@ public Builder apiPassword(String apiPassword) { return this; } + /** * API Subdomain. See https://smaily.com/help/api/general/create-api-user/ */ @@ -175,6 +176,7 @@ public Builder apiSubdomain(String apiSubdomain) { return this; } + /** * API user username. See https://smaily.com/help/api/general/create-api-user/ */ @@ -183,14 +185,14 @@ public Builder apiUsername(String apiUsername) { this.apiUsername = apiUsername; return this; } - + public SourceSmaily build() { + return new SourceSmaily( - apiPassword, - apiSubdomain, - apiUsername); + apiPassword, apiSubdomain, apiUsername); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartengage.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartengage.java index 630e549b8..4f80cce92 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartengage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartengage.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSmartengage { +public class SourceSmartengage { /** * API Key */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Smartengage sourceType; @@ -45,9 +45,10 @@ public Smartengage sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key @@ -58,7 +59,6 @@ public SourceSmartengage withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceSmartengage other = (SourceSmartengage) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API Key */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceSmartengage build() { + return new SourceSmartengage( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartreach.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartreach.java index 5114d1ab1..ec9495918 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartreach.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartreach.java @@ -12,16 +12,18 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceSmartreach { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Smartreach sourceType; + @JsonProperty("teamid") private double teamid; @@ -51,9 +53,10 @@ public double teamid() { return teamid; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSmartreach withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceSmartreach withTeamid(double teamid) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceSmartreach other = (SourceSmartreach) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.teamid, other.teamid); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.teamid, other.teamid); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - teamid); + return Utils.enhancedHash( + apiKey, sourceType, teamid); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "teamid", teamid); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Double teamid; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder teamid(double teamid) { Utils.checkNotNull(teamid, "teamid"); this.teamid = teamid; return this; } - + public SourceSmartreach build() { + return new SourceSmartreach( - apiKey, - teamid); + apiKey, teamid); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheets.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheets.java index 8821fc0ad..24a7e3ca5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheets.java @@ -16,16 +16,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceSmartsheets { @JsonProperty("credentials") private SourceSmartsheetsAuthorizationMethod credentials; /** - * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat + * the provided sheet_id as a sheet. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("is_report") @@ -38,6 +39,7 @@ public class SourceSmartsheets { @JsonProperty("metadata_fields") private Optional> metadataFields; + @JsonProperty("sourceType") private SourceSmartsheetsSmartsheets sourceType; @@ -67,7 +69,8 @@ public SourceSmartsheets( public SourceSmartsheets( SourceSmartsheetsAuthorizationMethod credentials, String spreadsheetId) { - this(credentials, Optional.empty(), Optional.empty(), spreadsheetId); + this(credentials, Optional.empty(), Optional.empty(), + spreadsheetId); } @JsonIgnore @@ -76,7 +79,8 @@ public SourceSmartsheetsAuthorizationMethod credentials() { } /** - * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat + * the provided sheet_id as a sheet. */ @JsonIgnore public Optional isReport() { @@ -105,9 +109,10 @@ public String spreadsheetId() { return spreadsheetId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSmartsheets withCredentials(SourceSmartsheetsAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -116,7 +121,8 @@ public SourceSmartsheets withCredentials(SourceSmartsheetsAuthorizationMethod cr } /** - * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat + * the provided sheet_id as a sheet. */ public SourceSmartsheets withIsReport(boolean isReport) { Utils.checkNotNull(isReport, "isReport"); @@ -124,8 +130,10 @@ public SourceSmartsheets withIsReport(boolean isReport) { return this; } + /** - * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat + * the provided sheet_id as a sheet. */ public SourceSmartsheets withIsReport(Optional isReport) { Utils.checkNotNull(isReport, "isReport"); @@ -142,6 +150,7 @@ public SourceSmartsheets withMetadataFields(List metadataFields) { return this; } + /** * A List of available columns which metadata can be pulled from. */ @@ -160,7 +169,6 @@ public SourceSmartsheets withSpreadsheetId(String spreadsheetId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -171,21 +179,18 @@ public boolean equals(java.lang.Object o) { } SourceSmartsheets other = (SourceSmartsheets) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.isReport, other.isReport) && - Objects.deepEquals(this.metadataFields, other.metadataFields) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.spreadsheetId, other.spreadsheetId); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.isReport, other.isReport) && + Utils.enhancedDeepEquals(this.metadataFields, other.metadataFields) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.spreadsheetId, other.spreadsheetId); } @Override public int hashCode() { - return Objects.hash( - credentials, - isReport, - metadataFields, - sourceType, - spreadsheetId); + return Utils.enhancedHash( + credentials, isReport, metadataFields, + sourceType, spreadsheetId); } @Override @@ -197,29 +202,33 @@ public String toString() { "sourceType", sourceType, "spreadsheetId", spreadsheetId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceSmartsheetsAuthorizationMethod credentials; - + private Optional isReport; - + private Optional> metadataFields = Optional.empty(); - + private String spreadsheetId; - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceSmartsheetsAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } + /** - * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat + * the provided sheet_id as a sheet. */ public Builder isReport(boolean isReport) { Utils.checkNotNull(isReport, "isReport"); @@ -228,7 +237,8 @@ public Builder isReport(boolean isReport) { } /** - * If true, the source will treat the provided sheet_id as a report. If false, the source will treat the provided sheet_id as a sheet. + * If true, the source will treat the provided sheet_id as a report. If false, the source will treat + * the provided sheet_id as a sheet. */ public Builder isReport(Optional isReport) { Utils.checkNotNull(isReport, "isReport"); @@ -236,6 +246,7 @@ public Builder isReport(Optional isReport) { return this; } + /** * A List of available columns which metadata can be pulled from. */ @@ -254,6 +265,7 @@ public Builder metadataFields(Optional> metadataField return this; } + /** * The spreadsheet ID. Find it by opening the spreadsheet then navigating to File > Properties */ @@ -262,18 +274,18 @@ public Builder spreadsheetId(String spreadsheetId) { this.spreadsheetId = spreadsheetId; return this; } - + public SourceSmartsheets build() { if (isReport == null) { isReport = _SINGLETON_VALUE_IsReport.value(); } + return new SourceSmartsheets( - credentials, - isReport, - metadataFields, + credentials, isReport, metadataFields, spreadsheetId); } + private static final LazySingletonValue> _SINGLETON_VALUE_IsReport = new LazySingletonValue<>( "is_report", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java index 48ba42666..72580d5fe 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthType.java @@ -14,7 +14,7 @@ public enum SourceSmartsheetsAuthType { @JsonValue private final String value; - private SourceSmartsheetsAuthType(String value) { + SourceSmartsheetsAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthorizationMethod.java index 663457c24..58ae08e03 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceSmartsheetsAuthorizationMethod._Deserializer.class) public class SourceSmartsheetsAuthorizationMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSmartsheetsAuthorizationMethod other = (SourceSmartsheetsAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsOAuth20.java index 3cfa80482..748ebb8d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsOAuth20.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceSmartsheetsOAuth20 { +public class SourceSmartsheetsOAuth20 { /** * Access Token for making authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -120,9 +120,10 @@ public OffsetDateTime tokenExpiryDate() { return tokenExpiryDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -169,7 +170,6 @@ public SourceSmartsheetsOAuth20 withTokenExpiryDate(OffsetDateTime tokenExpiryDa return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -180,23 +180,19 @@ public boolean equals(java.lang.Object o) { } SourceSmartsheetsOAuth20 other = (SourceSmartsheetsOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tokenExpiryDate, other.tokenExpiryDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tokenExpiryDate, other.tokenExpiryDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, refreshToken, tokenExpiryDate); } @Override @@ -209,23 +205,25 @@ public String toString() { "refreshToken", refreshToken, "tokenExpiryDate", tokenExpiryDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private OffsetDateTime tokenExpiryDate; - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -235,6 +233,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The API ID of the SmartSheets developer application. */ @@ -244,6 +243,7 @@ public Builder clientId(String clientId) { return this; } + /** * The API Secret the SmartSheets developer application. */ @@ -253,6 +253,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The key to refresh the expired access_token. */ @@ -262,6 +263,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * The date-time when the access token should be refreshed. */ @@ -270,16 +272,15 @@ public Builder tokenExpiryDate(OffsetDateTime tokenExpiryDate) { this.tokenExpiryDate = tokenExpiryDate; return this; } - + public SourceSmartsheetsOAuth20 build() { + return new SourceSmartsheetsOAuth20( - accessToken, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + accessToken, clientId, clientSecret, + refreshToken, tokenExpiryDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java index a499609f8..ca2d9e071 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceSmartsheetsSchemasAuthType { @JsonValue private final String value; - private SourceSmartsheetsSchemasAuthType(String value) { + SourceSmartsheetsSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSmartsheets.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSmartsheets.java index c72d8ed65..4b93411e6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSmartsheets.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartsheetsSmartsheets.java @@ -14,7 +14,7 @@ public enum SourceSmartsheetsSmartsheets { @JsonValue private final String value; - private SourceSmartsheetsSmartsheets(String value) { + SourceSmartsheetsSmartsheets(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSmartwaiver.java b/src/main/java/com/airbyte/api/models/shared/SourceSmartwaiver.java index 53ccc31f3..e4fadcbe4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSmartwaiver.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSmartwaiver.java @@ -14,24 +14,27 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceSmartwaiver { +public class SourceSmartwaiver { /** - * You can retrieve your token by visiting your dashboard then click on My Account then click on API keys. + * You can retrieve your token by visiting your dashboard then click on My Account then click on API + * keys. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Smartwaiver sourceType; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; + @JsonProperty("start_date_2") private OffsetDateTime startDate2; @@ -56,7 +59,8 @@ public SourceSmartwaiver( } /** - * You can retrieve your token by visiting your dashboard then click on My Account then click on API keys. + * You can retrieve your token by visiting your dashboard then click on My Account then click on API + * keys. */ @JsonIgnore public String apiKey() { @@ -78,12 +82,14 @@ public OffsetDateTime startDate2() { return startDate2; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * You can retrieve your token by visiting your dashboard then click on My Account then click on API keys. + * You can retrieve your token by visiting your dashboard then click on My Account then click on API + * keys. */ public SourceSmartwaiver withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -97,6 +103,7 @@ public SourceSmartwaiver withStartDate(String startDate) { return this; } + public SourceSmartwaiver withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; @@ -109,7 +116,6 @@ public SourceSmartwaiver withStartDate2(OffsetDateTime startDate2) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +126,16 @@ public boolean equals(java.lang.Object o) { } SourceSmartwaiver other = (SourceSmartwaiver) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.startDate2, other.startDate2); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.startDate2, other.startDate2); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, sourceType, startDate, startDate2); } @@ -143,21 +147,24 @@ public String toString() { "startDate", startDate, "startDate2", startDate2); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional startDate; - + private OffsetDateTime startDate2; - + private Builder() { // force use of static builder() method } + /** - * You can retrieve your token by visiting your dashboard then click on My Account then click on API keys. + * You can retrieve your token by visiting your dashboard then click on My Account then click on API + * keys. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -165,6 +172,7 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = Optional.ofNullable(startDate); @@ -177,22 +185,23 @@ public Builder startDate(Optional startDate) { return this; } + public Builder startDate2(OffsetDateTime startDate2) { Utils.checkNotNull(startDate2, "startDate2"); this.startDate2 = startDate2; return this; } - + public SourceSmartwaiver build() { if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } + return new SourceSmartwaiver( - apiKey, - startDate, - startDate2); + apiKey, startDate, startDate2); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketing.java index e2c649f59..5d607432a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketing.java @@ -17,11 +17,10 @@ import java.lang.SuppressWarnings; import java.time.LocalDate; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSnapchatMarketing { +public class SourceSnapchatMarketing { /** * Specifies the principle for conversion reporting. */ @@ -68,6 +67,7 @@ public class SourceSnapchatMarketing { @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private SourceSnapchatMarketingSnapchatMarketing sourceType; @@ -131,7 +131,10 @@ public SourceSnapchatMarketing( String clientId, String clientSecret, String refreshToken) { - this(Optional.empty(), Optional.empty(), clientId, clientSecret, Optional.empty(), Optional.empty(), refreshToken, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), clientId, + clientSecret, Optional.empty(), Optional.empty(), + refreshToken, Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -224,9 +227,10 @@ public Optional viewAttributionWindow() { return (Optional) viewAttributionWindow; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Specifies the principle for conversion reporting. @@ -237,6 +241,7 @@ public SourceSnapchatMarketing withActionReportTime(ActionReportTime actionRepor return this; } + /** * Specifies the principle for conversion reporting. */ @@ -255,6 +260,7 @@ public SourceSnapchatMarketing withAdAccountIds(List adAccountIds) { return this; } + /** * Ad Account IDs of the ad accounts to retrieve */ @@ -291,6 +297,7 @@ public SourceSnapchatMarketing withEndDate(LocalDate endDate) { return this; } + /** * Date in the format 2017-01-25. Any data after this date will not be replicated. */ @@ -309,6 +316,7 @@ public SourceSnapchatMarketing withOrganizationIds(List organizationIds) return this; } + /** * The IDs of the organizations to retrieve */ @@ -336,6 +344,7 @@ public SourceSnapchatMarketing withStartDate(LocalDate startDate) { return this; } + /** * Date in the format 2022-01-01. Any data before this date will not be replicated. */ @@ -354,6 +363,7 @@ public SourceSnapchatMarketing withSwipeUpAttributionWindow(SwipeUpAttributionWi return this; } + /** * Attribution window for swipe ups. */ @@ -372,6 +382,7 @@ public SourceSnapchatMarketing withViewAttributionWindow(ViewAttributionWindow v return this; } + /** * Attribution window for views. */ @@ -381,7 +392,6 @@ public SourceSnapchatMarketing withViewAttributionWindow(Optional actionReportTime; - + private Optional> adAccountIds = Optional.empty(); - + private String clientId; - + private String clientSecret; - + private Optional endDate = Optional.empty(); - + private Optional> organizationIds = Optional.empty(); - + private String refreshToken; - + private Optional startDate; - + private Optional swipeUpAttributionWindow; - + private Optional viewAttributionWindow; - + private Builder() { // force use of static builder() method } + /** * Specifies the principle for conversion reporting. */ @@ -481,6 +486,7 @@ public Builder actionReportTime(Optional actionRepor return this; } + /** * Ad Account IDs of the ad accounts to retrieve */ @@ -499,6 +505,7 @@ public Builder adAccountIds(Optional> adAccountIds) { return this; } + /** * The Client ID of your Snapchat developer application. */ @@ -508,6 +515,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Snapchat developer application. */ @@ -517,6 +525,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * Date in the format 2017-01-25. Any data after this date will not be replicated. */ @@ -535,6 +544,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * The IDs of the organizations to retrieve */ @@ -553,6 +563,7 @@ public Builder organizationIds(Optional> organizationIds) return this; } + /** * Refresh Token to renew the expired Access Token. */ @@ -562,6 +573,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * Date in the format 2022-01-01. Any data before this date will not be replicated. */ @@ -580,6 +592,7 @@ public Builder startDate(Optional startDate) { return this; } + /** * Attribution window for swipe ups. */ @@ -598,6 +611,7 @@ public Builder swipeUpAttributionWindow(Optional v this.viewAttributionWindow = viewAttributionWindow; return this; } - + public SourceSnapchatMarketing build() { if (actionReportTime == null) { actionReportTime = _SINGLETON_VALUE_ActionReportTime.value(); @@ -629,19 +643,15 @@ public SourceSnapchatMarketing build() { if (viewAttributionWindow == null) { viewAttributionWindow = _SINGLETON_VALUE_ViewAttributionWindow.value(); } + return new SourceSnapchatMarketing( - actionReportTime, - adAccountIds, - clientId, - clientSecret, - endDate, - organizationIds, - refreshToken, - startDate, - swipeUpAttributionWindow, + actionReportTime, adAccountIds, clientId, + clientSecret, endDate, organizationIds, + refreshToken, startDate, swipeUpAttributionWindow, viewAttributionWindow); } + private static final LazySingletonValue> _SINGLETON_VALUE_ActionReportTime = new LazySingletonValue<>( "action_report_time", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java index 3d14a43d0..8157eaa83 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnapchatMarketingSnapchatMarketing.java @@ -14,7 +14,7 @@ public enum SourceSnapchatMarketingSnapchatMarketing { @JsonValue private final String value; - private SourceSnapchatMarketingSnapchatMarketing(String value) { + SourceSnapchatMarketingSnapchatMarketing(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflake.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflake.java index 9b4d197e9..977b6a995 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflake.java @@ -11,18 +11,51 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Boolean; +import java.lang.Long; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceSnowflake { + /** + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("check_privileges") + private Optional checkPrivileges; + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("checkpoint_target_interval_seconds") + private Optional checkpointTargetIntervalSeconds; + + /** + * Maximum number of concurrent queries to the database. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("concurrency") + private Optional concurrency; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; + /** + * Configures how data is extracted from the database. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("cursor") + private Optional cursor; + /** * The database you created for Airbyte to access data. */ @@ -30,13 +63,16 @@ public class SourceSnowflake { private String database; /** - * The host domain of the snowflake instance (must include the account, region, cloud environment, and end with snowflakecomputing.com). + * The host domain of the snowflake instance (must include the account, region, cloud environment, and + * end with snowflakecomputing.com). */ @JsonProperty("host") private String host; /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("jdbc_url_params") @@ -55,6 +91,7 @@ public class SourceSnowflake { @JsonProperty("schema") private Optional schema; + @JsonProperty("sourceType") private SourceSnowflakeSnowflake sourceType; @@ -66,21 +103,33 @@ public class SourceSnowflake { @JsonCreator public SourceSnowflake( + @JsonProperty("check_privileges") Optional checkPrivileges, + @JsonProperty("checkpoint_target_interval_seconds") Optional checkpointTargetIntervalSeconds, + @JsonProperty("concurrency") Optional concurrency, @JsonProperty("credentials") Optional credentials, + @JsonProperty("cursor") Optional cursor, @JsonProperty("database") String database, @JsonProperty("host") String host, @JsonProperty("jdbc_url_params") Optional jdbcUrlParams, @JsonProperty("role") String role, @JsonProperty("schema") Optional schema, @JsonProperty("warehouse") String warehouse) { + Utils.checkNotNull(checkPrivileges, "checkPrivileges"); + Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); + Utils.checkNotNull(concurrency, "concurrency"); Utils.checkNotNull(credentials, "credentials"); + Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(database, "database"); Utils.checkNotNull(host, "host"); Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); Utils.checkNotNull(role, "role"); Utils.checkNotNull(schema, "schema"); Utils.checkNotNull(warehouse, "warehouse"); + this.checkPrivileges = checkPrivileges; + this.checkpointTargetIntervalSeconds = checkpointTargetIntervalSeconds; + this.concurrency = concurrency; this.credentials = credentials; + this.cursor = cursor; this.database = database; this.host = host; this.jdbcUrlParams = jdbcUrlParams; @@ -95,7 +144,37 @@ public SourceSnowflake( String host, String role, String warehouse) { - this(Optional.empty(), database, host, Optional.empty(), role, Optional.empty(), warehouse); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), database, + host, Optional.empty(), role, + Optional.empty(), warehouse); + } + + /** + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. + */ + @JsonIgnore + public Optional checkPrivileges() { + return checkPrivileges; + } + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + @JsonIgnore + public Optional checkpointTargetIntervalSeconds() { + return checkpointTargetIntervalSeconds; + } + + /** + * Maximum number of concurrent queries to the database. + */ + @JsonIgnore + public Optional concurrency() { + return concurrency; } @SuppressWarnings("unchecked") @@ -104,6 +183,15 @@ public Optional credentials() { return (Optional) credentials; } + /** + * Configures how data is extracted from the database. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional cursor() { + return (Optional) cursor; + } + /** * The database you created for Airbyte to access data. */ @@ -113,7 +201,8 @@ public String database() { } /** - * The host domain of the snowflake instance (must include the account, region, cloud environment, and end with snowflakecomputing.com). + * The host domain of the snowflake instance (must include the account, region, cloud environment, and + * end with snowflakecomputing.com). */ @JsonIgnore public String host() { @@ -121,7 +210,9 @@ public String host() { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ @JsonIgnore public Optional jdbcUrlParams() { @@ -157,9 +248,73 @@ public String warehouse() { return warehouse; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + /** + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. + */ + public SourceSnowflake withCheckPrivileges(boolean checkPrivileges) { + Utils.checkNotNull(checkPrivileges, "checkPrivileges"); + this.checkPrivileges = Optional.ofNullable(checkPrivileges); + return this; + } + + + /** + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. + */ + public SourceSnowflake withCheckPrivileges(Optional checkPrivileges) { + Utils.checkNotNull(checkPrivileges, "checkPrivileges"); + this.checkPrivileges = checkPrivileges; + return this; + } + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + public SourceSnowflake withCheckpointTargetIntervalSeconds(long checkpointTargetIntervalSeconds) { + Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); + this.checkpointTargetIntervalSeconds = Optional.ofNullable(checkpointTargetIntervalSeconds); + return this; + } + + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + public SourceSnowflake withCheckpointTargetIntervalSeconds(Optional checkpointTargetIntervalSeconds) { + Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); + this.checkpointTargetIntervalSeconds = checkpointTargetIntervalSeconds; + return this; + } + + /** + * Maximum number of concurrent queries to the database. + */ + public SourceSnowflake withConcurrency(long concurrency) { + Utils.checkNotNull(concurrency, "concurrency"); + this.concurrency = Optional.ofNullable(concurrency); + return this; + } + + + /** + * Maximum number of concurrent queries to the database. + */ + public SourceSnowflake withConcurrency(Optional concurrency) { + Utils.checkNotNull(concurrency, "concurrency"); + this.concurrency = concurrency; + return this; + } public SourceSnowflake withCredentials(SourceSnowflakeAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -167,12 +322,32 @@ public SourceSnowflake withCredentials(SourceSnowflakeAuthorizationMethod creden return this; } + public SourceSnowflake withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } + /** + * Configures how data is extracted from the database. + */ + public SourceSnowflake withCursor(SourceSnowflakeUpdateMethod cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = Optional.ofNullable(cursor); + return this; + } + + + /** + * Configures how data is extracted from the database. + */ + public SourceSnowflake withCursor(Optional cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + /** * The database you created for Airbyte to access data. */ @@ -183,7 +358,8 @@ public SourceSnowflake withDatabase(String database) { } /** - * The host domain of the snowflake instance (must include the account, region, cloud environment, and end with snowflakecomputing.com). + * The host domain of the snowflake instance (must include the account, region, cloud environment, and + * end with snowflakecomputing.com). */ public SourceSnowflake withHost(String host) { Utils.checkNotNull(host, "host"); @@ -192,7 +368,9 @@ public SourceSnowflake withHost(String host) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceSnowflake withJdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -200,8 +378,11 @@ public SourceSnowflake withJdbcUrlParams(String jdbcUrlParams) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public SourceSnowflake withJdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -227,6 +408,7 @@ public SourceSnowflake withSchema(String schema) { return this; } + /** * The source Snowflake schema tables. Leave empty to access tables from multiple schemas. */ @@ -245,7 +427,6 @@ public SourceSnowflake withWarehouse(String warehouse) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -256,33 +437,37 @@ public boolean equals(java.lang.Object o) { } SourceSnowflake other = (SourceSnowflake) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.database, other.database) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && - Objects.deepEquals(this.role, other.role) && - Objects.deepEquals(this.schema, other.schema) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.warehouse, other.warehouse); + Utils.enhancedDeepEquals(this.checkPrivileges, other.checkPrivileges) && + Utils.enhancedDeepEquals(this.checkpointTargetIntervalSeconds, other.checkpointTargetIntervalSeconds) && + Utils.enhancedDeepEquals(this.concurrency, other.concurrency) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.cursor, other.cursor) && + Utils.enhancedDeepEquals(this.database, other.database) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.jdbcUrlParams, other.jdbcUrlParams) && + Utils.enhancedDeepEquals(this.role, other.role) && + Utils.enhancedDeepEquals(this.schema, other.schema) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.warehouse, other.warehouse); } @Override public int hashCode() { - return Objects.hash( - credentials, - database, - host, - jdbcUrlParams, - role, - schema, - sourceType, - warehouse); + return Utils.enhancedHash( + checkPrivileges, checkpointTargetIntervalSeconds, concurrency, + credentials, cursor, database, + host, jdbcUrlParams, role, + schema, sourceType, warehouse); } @Override public String toString() { return Utils.toString(SourceSnowflake.class, + "checkPrivileges", checkPrivileges, + "checkpointTargetIntervalSeconds", checkpointTargetIntervalSeconds, + "concurrency", concurrency, "credentials", credentials, + "cursor", cursor, "database", database, "host", host, "jdbcUrlParams", jdbcUrlParams, @@ -291,27 +476,100 @@ public String toString() { "sourceType", sourceType, "warehouse", warehouse); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Optional checkPrivileges; + + private Optional checkpointTargetIntervalSeconds; + + private Optional concurrency; + private Optional credentials = Optional.empty(); - + + private Optional cursor = Optional.empty(); + private String database; - + private String host; - + private Optional jdbcUrlParams = Optional.empty(); - + private String role; - + private Optional schema = Optional.empty(); - + private String warehouse; - + private Builder() { // force use of static builder() method } + + /** + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. + */ + public Builder checkPrivileges(boolean checkPrivileges) { + Utils.checkNotNull(checkPrivileges, "checkPrivileges"); + this.checkPrivileges = Optional.ofNullable(checkPrivileges); + return this; + } + + /** + * When this feature is enabled, during schema discovery the connector will query each table or view + * individually to check access privileges and inaccessible tables, views, or columns therein will be + * removed. In large schemas, this might cause schema discovery to take too long, in which case it + * might be advisable to disable this feature. + */ + public Builder checkPrivileges(Optional checkPrivileges) { + Utils.checkNotNull(checkPrivileges, "checkPrivileges"); + this.checkPrivileges = checkPrivileges; + return this; + } + + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + public Builder checkpointTargetIntervalSeconds(long checkpointTargetIntervalSeconds) { + Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); + this.checkpointTargetIntervalSeconds = Optional.ofNullable(checkpointTargetIntervalSeconds); + return this; + } + + /** + * How often (in seconds) a stream should checkpoint, when possible. + */ + public Builder checkpointTargetIntervalSeconds(Optional checkpointTargetIntervalSeconds) { + Utils.checkNotNull(checkpointTargetIntervalSeconds, "checkpointTargetIntervalSeconds"); + this.checkpointTargetIntervalSeconds = checkpointTargetIntervalSeconds; + return this; + } + + + /** + * Maximum number of concurrent queries to the database. + */ + public Builder concurrency(long concurrency) { + Utils.checkNotNull(concurrency, "concurrency"); + this.concurrency = Optional.ofNullable(concurrency); + return this; + } + + /** + * Maximum number of concurrent queries to the database. + */ + public Builder concurrency(Optional concurrency) { + Utils.checkNotNull(concurrency, "concurrency"); + this.concurrency = concurrency; + return this; + } + + public Builder credentials(SourceSnowflakeAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -324,6 +582,26 @@ public Builder credentials(Optional cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + /** * The database you created for Airbyte to access data. */ @@ -333,8 +611,10 @@ public Builder database(String database) { return this; } + /** - * The host domain of the snowflake instance (must include the account, region, cloud environment, and end with snowflakecomputing.com). + * The host domain of the snowflake instance (must include the account, region, cloud environment, and + * end with snowflakecomputing.com). */ public Builder host(String host) { Utils.checkNotNull(host, "host"); @@ -342,8 +622,11 @@ public Builder host(String host) { return this; } + /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(String jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -352,7 +635,9 @@ public Builder jdbcUrlParams(String jdbcUrlParams) { } /** - * Additional properties to pass to the JDBC URL string when connecting to the database formatted as 'key=value' pairs separated by the symbol '&'. (example: key1=value1&key2=value2&key3=value3). + * Additional properties to pass to the JDBC URL string when connecting to the database formatted as + * 'key=value' pairs separated by the symbol '&'. (example: + * key1=value1&key2=value2&key3=value3). */ public Builder jdbcUrlParams(Optional jdbcUrlParams) { Utils.checkNotNull(jdbcUrlParams, "jdbcUrlParams"); @@ -360,6 +645,7 @@ public Builder jdbcUrlParams(Optional jdbcUrlParams) { return this; } + /** * The role you created for Airbyte to access Snowflake. */ @@ -369,6 +655,7 @@ public Builder role(String role) { return this; } + /** * The source Snowflake schema tables. Leave empty to access tables from multiple schemas. */ @@ -387,6 +674,7 @@ public Builder schema(Optional schema) { return this; } + /** * The warehouse you created for Airbyte to access data. */ @@ -395,18 +683,44 @@ public Builder warehouse(String warehouse) { this.warehouse = warehouse; return this; } - + public SourceSnowflake build() { + if (checkPrivileges == null) { + checkPrivileges = _SINGLETON_VALUE_CheckPrivileges.value(); + } + if (checkpointTargetIntervalSeconds == null) { + checkpointTargetIntervalSeconds = _SINGLETON_VALUE_CheckpointTargetIntervalSeconds.value(); + } + if (concurrency == null) { + concurrency = _SINGLETON_VALUE_Concurrency.value(); + } + return new SourceSnowflake( - credentials, - database, - host, - jdbcUrlParams, - role, - schema, - warehouse); + checkPrivileges, checkpointTargetIntervalSeconds, concurrency, + credentials, cursor, database, + host, jdbcUrlParams, role, + schema, warehouse); } + + private static final LazySingletonValue> _SINGLETON_VALUE_CheckPrivileges = + new LazySingletonValue<>( + "check_privileges", + "true", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_CheckpointTargetIntervalSeconds = + new LazySingletonValue<>( + "checkpoint_target_interval_seconds", + "300", + new TypeReference>() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_Concurrency = + new LazySingletonValue<>( + "concurrency", + "1", + new TypeReference>() {}); + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java index 35abe7c96..b1d7695da 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthType.java @@ -9,12 +9,12 @@ import java.util.Optional; public enum SourceSnowflakeAuthType { - O_AUTH("OAuth"); + KEY_PAIR_AUTHENTICATION("Key Pair Authentication"); @JsonValue private final String value; - private SourceSnowflakeAuthType(String value) { + SourceSnowflakeAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java index a9c5c629b..edbe1b6e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceSnowflakeAuthorizationMethod._Deserializer.class) public class SourceSnowflakeAuthorizationMethod { @@ -26,11 +25,6 @@ private SourceSnowflakeAuthorizationMethod(TypedObject value) { this.value = value; } - public static SourceSnowflakeAuthorizationMethod of(SourceSnowflakeOAuth20 value) { - Utils.checkNotNull(value, "value"); - return new SourceSnowflakeAuthorizationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); - } - public static SourceSnowflakeAuthorizationMethod of(SourceSnowflakeKeyPairAuthentication value) { Utils.checkNotNull(value, "value"); return new SourceSnowflakeAuthorizationMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); @@ -44,7 +38,6 @@ public static SourceSnowflakeAuthorizationMethod of(SourceSnowflakeUsernameAndPa /** * Returns an instance of one of these types: *
      - *
    • {@code com.airbyte.api.models.shared.SourceSnowflakeOAuth20}
    • *
    • {@code com.airbyte.api.models.shared.SourceSnowflakeKeyPairAuthentication}
    • *
    • {@code com.airbyte.api.models.shared.SourceSnowflakeUsernameAndPassword}
    • *
    @@ -73,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSnowflakeAuthorizationMethod other = (SourceSnowflakeAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") @@ -86,7 +79,6 @@ public static final class _Deserializer extends OneOfDeserializer() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeCursorMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeCursorMethod.java new file mode 100644 index 000000000..6789c8a4c --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeCursorMethod.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SourceSnowflakeCursorMethod { + USER_DEFINED("user_defined"); + + @JsonValue + private final String value; + + SourceSnowflakeCursorMethod(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SourceSnowflakeCursorMethod o: SourceSnowflakeCursorMethod.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java index b1195084e..aecea1594 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeKeyPairAuthentication.java @@ -5,26 +5,37 @@ import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; +import java.util.HashMap; +import java.util.Map; import java.util.Optional; + public class SourceSnowflakeKeyPairAuthentication { + @JsonIgnore + private Map additionalProperties; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") - private Optional authType; + private Optional authType; /** - * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/sources/snowflake#key-pair-authentication">docs</a> for more information on how to obtain this key. + * RSA Private key to use for Snowflake connection. See the docs for + * more information on how to obtain this key. */ @JsonProperty("private_key") private String privateKey; @@ -44,13 +55,16 @@ public class SourceSnowflakeKeyPairAuthentication { @JsonCreator public SourceSnowflakeKeyPairAuthentication( + @JsonProperty("auth_type") Optional authType, @JsonProperty("private_key") String privateKey, @JsonProperty("private_key_password") Optional privateKeyPassword, @JsonProperty("username") String username) { + Utils.checkNotNull(authType, "authType"); Utils.checkNotNull(privateKey, "privateKey"); Utils.checkNotNull(privateKeyPassword, "privateKeyPassword"); Utils.checkNotNull(username, "username"); - this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.additionalProperties = new HashMap<>(); + this.authType = authType; this.privateKey = privateKey; this.privateKeyPassword = privateKeyPassword; this.username = username; @@ -59,17 +73,25 @@ public SourceSnowflakeKeyPairAuthentication( public SourceSnowflakeKeyPairAuthentication( String privateKey, String username) { - this(privateKey, Optional.empty(), username); + this(Optional.empty(), privateKey, Optional.empty(), + username); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional authType() { - return (Optional) authType; + public Optional authType() { + return (Optional) authType; } /** - * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/sources/snowflake#key-pair-authentication">docs</a> for more information on how to obtain this key. + * RSA Private key to use for Snowflake connection. See the docs for + * more information on how to obtain this key. */ @JsonIgnore public String privateKey() { @@ -92,12 +114,41 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + @JsonAnySetter + public SourceSnowflakeKeyPairAuthentication withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public SourceSnowflakeKeyPairAuthentication withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public SourceSnowflakeKeyPairAuthentication withAuthType(SourceSnowflakeAuthType authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = Optional.ofNullable(authType); + return this; + } + + + public SourceSnowflakeKeyPairAuthentication withAuthType(Optional authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = authType; + return this; + } /** - * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/sources/snowflake#key-pair-authentication">docs</a> for more information on how to obtain this key. + * RSA Private key to use for Snowflake connection. See the docs for + * more information on how to obtain this key. */ public SourceSnowflakeKeyPairAuthentication withPrivateKey(String privateKey) { Utils.checkNotNull(privateKey, "privateKey"); @@ -114,6 +165,7 @@ public SourceSnowflakeKeyPairAuthentication withPrivateKeyPassword(String privat return this; } + /** * Passphrase for private key */ @@ -132,7 +184,6 @@ public SourceSnowflakeKeyPairAuthentication withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -143,44 +194,81 @@ public boolean equals(java.lang.Object o) { } SourceSnowflakeKeyPairAuthentication other = (SourceSnowflakeKeyPairAuthentication) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.privateKey, other.privateKey) && - Objects.deepEquals(this.privateKeyPassword, other.privateKeyPassword) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.privateKey, other.privateKey) && + Utils.enhancedDeepEquals(this.privateKeyPassword, other.privateKeyPassword) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - authType, - privateKey, - privateKeyPassword, - username); + return Utils.enhancedHash( + additionalProperties, authType, privateKey, + privateKeyPassword, username); } @Override public String toString() { return Utils.toString(SourceSnowflakeKeyPairAuthentication.class, + "additionalProperties", additionalProperties, "authType", authType, "privateKey", privateKey, "privateKeyPassword", privateKeyPassword, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Map additionalProperties = new HashMap<>(); + + private Optional authType; + private String privateKey; - + private Optional privateKeyPassword = Optional.empty(); - + private String username; - + private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder authType(SourceSnowflakeAuthType authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = Optional.ofNullable(authType); + return this; + } + + public Builder authType(Optional authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = authType; + return this; + } + + /** - * RSA Private key to use for Snowflake connection. See the <a href="https://docs.airbyte.com/integrations/sources/snowflake#key-pair-authentication">docs</a> for more information on how to obtain this key. + * RSA Private key to use for Snowflake connection. See the docs for + * more information on how to obtain this key. */ public Builder privateKey(String privateKey) { Utils.checkNotNull(privateKey, "privateKey"); @@ -188,6 +276,7 @@ public Builder privateKey(String privateKey) { return this; } + /** * Passphrase for private key */ @@ -206,6 +295,7 @@ public Builder privateKeyPassword(Optional privateKeyPassword) { return this; } + /** * The username you created to allow Airbyte to access the database. */ @@ -214,18 +304,23 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceSnowflakeKeyPairAuthentication build() { + if (authType == null) { + authType = _SINGLETON_VALUE_AuthType.value(); + } + return new SourceSnowflakeKeyPairAuthentication( - privateKey, - privateKeyPassword, - username); + authType, privateKey, privateKeyPassword, + username) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = + + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"Key Pair Authentication\"", - new TypeReference>() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeScanChangesWithUserDefinedCursor.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeScanChangesWithUserDefinedCursor.java new file mode 100644 index 000000000..45f394ef5 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeScanChangesWithUserDefinedCursor.java @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + +/** + * SourceSnowflakeScanChangesWithUserDefinedCursor + * + *

    Incrementally detects new inserts and updates using the cursor + * column chosen when configuring a connection (e.g. created_at, updated_at). + */ +public class SourceSnowflakeScanChangesWithUserDefinedCursor { + + @JsonIgnore + private Map additionalProperties; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("cursor_method") + private Optional cursorMethod; + + @JsonCreator + public SourceSnowflakeScanChangesWithUserDefinedCursor( + @JsonProperty("cursor_method") Optional cursorMethod) { + Utils.checkNotNull(cursorMethod, "cursorMethod"); + this.additionalProperties = new HashMap<>(); + this.cursorMethod = cursorMethod; + } + + public SourceSnowflakeScanChangesWithUserDefinedCursor() { + this(Optional.empty()); + } + + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional cursorMethod() { + return (Optional) cursorMethod; + } + + public static Builder builder() { + return new Builder(); + } + + + @JsonAnySetter + public SourceSnowflakeScanChangesWithUserDefinedCursor withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public SourceSnowflakeScanChangesWithUserDefinedCursor withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public SourceSnowflakeScanChangesWithUserDefinedCursor withCursorMethod(SourceSnowflakeCursorMethod cursorMethod) { + Utils.checkNotNull(cursorMethod, "cursorMethod"); + this.cursorMethod = Optional.ofNullable(cursorMethod); + return this; + } + + + public SourceSnowflakeScanChangesWithUserDefinedCursor withCursorMethod(Optional cursorMethod) { + Utils.checkNotNull(cursorMethod, "cursorMethod"); + this.cursorMethod = cursorMethod; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSnowflakeScanChangesWithUserDefinedCursor other = (SourceSnowflakeScanChangesWithUserDefinedCursor) o; + return + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.cursorMethod, other.cursorMethod); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + additionalProperties, cursorMethod); + } + + @Override + public String toString() { + return Utils.toString(SourceSnowflakeScanChangesWithUserDefinedCursor.class, + "additionalProperties", additionalProperties, + "cursorMethod", cursorMethod); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map additionalProperties = new HashMap<>(); + + private Optional cursorMethod; + + private Builder() { + // force use of static builder() method + } + + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder cursorMethod(SourceSnowflakeCursorMethod cursorMethod) { + Utils.checkNotNull(cursorMethod, "cursorMethod"); + this.cursorMethod = Optional.ofNullable(cursorMethod); + return this; + } + + public Builder cursorMethod(Optional cursorMethod) { + Utils.checkNotNull(cursorMethod, "cursorMethod"); + this.cursorMethod = cursorMethod; + return this; + } + + public SourceSnowflakeScanChangesWithUserDefinedCursor build() { + if (cursorMethod == null) { + cursorMethod = _SINGLETON_VALUE_CursorMethod.value(); + } + + return new SourceSnowflakeScanChangesWithUserDefinedCursor( + cursorMethod) + .withAdditionalProperties(additionalProperties); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_CursorMethod = + new LazySingletonValue<>( + "cursor_method", + "\"user_defined\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java index eed52a14d..e79e75a07 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSchemasAuthType.java @@ -9,12 +9,12 @@ import java.util.Optional; public enum SourceSnowflakeSchemasAuthType { - KEY_PAIR_AUTHENTICATION("Key Pair Authentication"); + USERNAME_PASSWORD("username/password"); @JsonValue private final String value; - private SourceSnowflakeSchemasAuthType(String value) { + SourceSnowflakeSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java index 84b03ee7d..9c76d2147 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeSnowflake.java @@ -14,7 +14,7 @@ public enum SourceSnowflakeSnowflake { @JsonValue private final String value; - private SourceSnowflakeSnowflake(String value) { + SourceSnowflakeSnowflake(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUpdateMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUpdateMethod.java new file mode 100644 index 000000000..0e1676fc6 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUpdateMethod.java @@ -0,0 +1,92 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.OneOfDeserializer; +import com.airbyte.api.utils.TypedObject; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils.TypeReferenceWithShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +/** + * SourceSnowflakeUpdateMethod + * + *

    Configures how data is extracted from the database. + */ +@JsonDeserialize(using = SourceSnowflakeUpdateMethod._Deserializer.class) +public class SourceSnowflakeUpdateMethod { + + @JsonValue + private TypedObject value; + + private SourceSnowflakeUpdateMethod(TypedObject value) { + this.value = value; + } + + public static SourceSnowflakeUpdateMethod of(SourceSnowflakeScanChangesWithUserDefinedCursor value) { + Utils.checkNotNull(value, "value"); + return new SourceSnowflakeUpdateMethod(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference(){})); + } + + /** + * Returns an instance of one of these types: + *

      + *
    • {@code com.airbyte.api.models.shared.SourceSnowflakeScanChangesWithUserDefinedCursor}
    • + *
    + * + *

    Use {@code instanceof} to determine what type is returned. For example: + * + *

    +     * if (obj.value() instanceof String) {
    +     *     String answer = (String) obj.value();
    +     *     System.out.println("answer=" + answer);
    +     * }
    +     * 
    + * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSnowflakeUpdateMethod other = (SourceSnowflakeUpdateMethod) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(SourceSnowflakeUpdateMethod.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(SourceSnowflakeUpdateMethod.class, + "value", value); + } + +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java index 1529181a0..2228c2fa7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSnowflakeUsernameAndPassword.java @@ -5,18 +5,32 @@ import com.airbyte.api.utils.LazySingletonValue; import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; +import java.lang.SuppressWarnings; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; + public class SourceSnowflakeUsernameAndPassword { + @JsonIgnore + private Map additionalProperties; + + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") - private SourceSnowflakeSchemasCredentialsAuthType authType; + private Optional authType; /** * The password associated with the username. @@ -32,18 +46,33 @@ public class SourceSnowflakeUsernameAndPassword { @JsonCreator public SourceSnowflakeUsernameAndPassword( + @JsonProperty("auth_type") Optional authType, @JsonProperty("password") String password, @JsonProperty("username") String username) { + Utils.checkNotNull(authType, "authType"); Utils.checkNotNull(password, "password"); Utils.checkNotNull(username, "username"); - this.authType = Builder._SINGLETON_VALUE_AuthType.value(); + this.additionalProperties = new HashMap<>(); + this.authType = authType; this.password = password; this.username = username; } + + public SourceSnowflakeUsernameAndPassword( + String password, + String username) { + this(Optional.empty(), password, username); + } + @JsonAnyGetter + public Map additionalProperties() { + return additionalProperties; + } + + @SuppressWarnings("unchecked") @JsonIgnore - public SourceSnowflakeSchemasCredentialsAuthType authType() { - return authType; + public Optional authType() { + return (Optional) authType; } /** @@ -62,9 +91,36 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + + + @JsonAnySetter + public SourceSnowflakeUsernameAndPassword withAdditionalProperty(String key, Object value) { + // note that value can be null because of the way JsonAnySetter works + Utils.checkNotNull(key, "key"); + additionalProperties.put(key, value); + return this; + } + public SourceSnowflakeUsernameAndPassword withAdditionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + public SourceSnowflakeUsernameAndPassword withAuthType(SourceSnowflakeSchemasAuthType authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = Optional.ofNullable(authType); + return this; + } + + + public SourceSnowflakeUsernameAndPassword withAuthType(Optional authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = authType; + return this; + } /** * The password associated with the username. @@ -84,7 +140,6 @@ public SourceSnowflakeUsernameAndPassword withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,37 +150,73 @@ public boolean equals(java.lang.Object o) { } SourceSnowflakeUsernameAndPassword other = (SourceSnowflakeUsernameAndPassword) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - authType, - password, + return Utils.enhancedHash( + additionalProperties, authType, password, username); } @Override public String toString() { return Utils.toString(SourceSnowflakeUsernameAndPassword.class, + "additionalProperties", additionalProperties, "authType", authType, "password", password, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + + private Map additionalProperties = new HashMap<>(); + + private Optional authType; + private String password; - + private String username; - + private Builder() { // force use of static builder() method } + public Builder additionalProperty(String key, Object value) { + Utils.checkNotNull(key, "key"); + // we could be strict about null values (force the user + // to pass `JsonNullable.of(null)`) but likely to be a bit + // annoying for additional properties building so we'll + // relax preconditions. + this.additionalProperties.put(key, value); + return this; + } + + public Builder additionalProperties(Map additionalProperties) { + Utils.checkNotNull(additionalProperties, "additionalProperties"); + this.additionalProperties = additionalProperties; + return this; + } + + + public Builder authType(SourceSnowflakeSchemasAuthType authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = Optional.ofNullable(authType); + return this; + } + + public Builder authType(Optional authType) { + Utils.checkNotNull(authType, "authType"); + this.authType = authType; + return this; + } + + /** * The password associated with the username. */ @@ -135,6 +226,7 @@ public Builder password(String password) { return this; } + /** * The username you created to allow Airbyte to access the database. */ @@ -143,17 +235,22 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceSnowflakeUsernameAndPassword build() { + if (authType == null) { + authType = _SINGLETON_VALUE_AuthType.value(); + } + return new SourceSnowflakeUsernameAndPassword( - password, - username); + authType, password, username) + .withAdditionalProperties(additionalProperties); } - private static final LazySingletonValue _SINGLETON_VALUE_AuthType = + + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", "\"username/password\"", - new TypeReference() {}); + new TypeReference>() {}); } } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSolarwindsServiceDesk.java b/src/main/java/com/airbyte/api/models/shared/SourceSolarwindsServiceDesk.java index ac388853a..3fbad2b31 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSolarwindsServiceDesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSolarwindsServiceDesk.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceSolarwindsServiceDesk { +public class SourceSolarwindsServiceDesk { /** - * Refer to `https://documentation.solarwinds.com/en/success_center/swsd/content/completeguidetoswsd/token-authentication-for-api-integration.htm#link4` + * Refer to + * `https://documentation.solarwinds.com/en/success_center/swsd/content/completeguidetoswsd/token-authentication-for-api-integration.htm#link4` */ @JsonProperty("api_key_2") private String apiKey2; + @JsonProperty("sourceType") private SolarwindsServiceDesk sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public SourceSolarwindsServiceDesk( } /** - * Refer to `https://documentation.solarwinds.com/en/success_center/swsd/content/completeguidetoswsd/token-authentication-for-api-integration.htm#link4` + * Refer to + * `https://documentation.solarwinds.com/en/success_center/swsd/content/completeguidetoswsd/token-authentication-for-api-integration.htm#link4` */ @JsonIgnore public String apiKey2() { @@ -57,12 +60,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Refer to `https://documentation.solarwinds.com/en/success_center/swsd/content/completeguidetoswsd/token-authentication-for-api-integration.htm#link4` + * Refer to + * `https://documentation.solarwinds.com/en/success_center/swsd/content/completeguidetoswsd/token-authentication-for-api-integration.htm#link4` */ public SourceSolarwindsServiceDesk withApiKey2(String apiKey2) { Utils.checkNotNull(apiKey2, "apiKey2"); @@ -76,7 +81,6 @@ public SourceSolarwindsServiceDesk withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceSolarwindsServiceDesk other = (SourceSolarwindsServiceDesk) o; return - Objects.deepEquals(this.apiKey2, other.apiKey2) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey2, other.apiKey2) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey2, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey2, sourceType, startDate); } @Override @@ -107,19 +109,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey2; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Refer to `https://documentation.solarwinds.com/en/success_center/swsd/content/completeguidetoswsd/token-authentication-for-api-integration.htm#link4` + * Refer to + * `https://documentation.solarwinds.com/en/success_center/swsd/content/completeguidetoswsd/token-authentication-for-api-integration.htm#link4` */ public Builder apiKey2(String apiKey2) { Utils.checkNotNull(apiKey2, "apiKey2"); @@ -127,18 +132,20 @@ public Builder apiKey2(String apiKey2) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSolarwindsServiceDesk build() { + return new SourceSolarwindsServiceDesk( - apiKey2, - startDate); + apiKey2, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSonarCloud.java b/src/main/java/com/airbyte/api/models/shared/SourceSonarCloud.java index 302f29234..7dac0676f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSonarCloud.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSonarCloud.java @@ -16,11 +16,10 @@ import java.lang.String; import java.time.LocalDate; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSonarCloud { +public class SourceSonarCloud { /** * Comma-separated list of component keys. */ @@ -35,11 +34,13 @@ public class SourceSonarCloud { private Optional endDate; /** - * Organization key. See <a href="https://docs.sonarcloud.io/appendices/project-information/#project-and-organization-keys">here</a>. + * Organization key. See here. */ @JsonProperty("organization") private String organization; + @JsonProperty("sourceType") private SonarCloud sourceType; @@ -51,7 +52,8 @@ public class SourceSonarCloud { private Optional startDate; /** - * Your User Token. See <a href="https://docs.sonarcloud.io/advanced-setup/user-accounts/">here</a>. The token is case sensitive. + * Your User Token. See here. + * The token is case sensitive. */ @JsonProperty("user_token") private String userToken; @@ -80,7 +82,8 @@ public SourceSonarCloud( List componentKeys, String organization, String userToken) { - this(componentKeys, Optional.empty(), organization, Optional.empty(), userToken); + this(componentKeys, Optional.empty(), organization, + Optional.empty(), userToken); } /** @@ -100,7 +103,8 @@ public Optional endDate() { } /** - * Organization key. See <a href="https://docs.sonarcloud.io/appendices/project-information/#project-and-organization-keys">here</a>. + * Organization key. See here. */ @JsonIgnore public String organization() { @@ -121,16 +125,18 @@ public Optional startDate() { } /** - * Your User Token. See <a href="https://docs.sonarcloud.io/advanced-setup/user-accounts/">here</a>. The token is case sensitive. + * Your User Token. See here. + * The token is case sensitive. */ @JsonIgnore public String userToken() { return userToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Comma-separated list of component keys. @@ -150,6 +156,7 @@ public SourceSonarCloud withEndDate(LocalDate endDate) { return this; } + /** * To retrieve issues created before the given date (inclusive). */ @@ -160,7 +167,8 @@ public SourceSonarCloud withEndDate(Optional endDate) { } /** - * Organization key. See <a href="https://docs.sonarcloud.io/appendices/project-information/#project-and-organization-keys">here</a>. + * Organization key. See here. */ public SourceSonarCloud withOrganization(String organization) { Utils.checkNotNull(organization, "organization"); @@ -177,6 +185,7 @@ public SourceSonarCloud withStartDate(LocalDate startDate) { return this; } + /** * To retrieve issues created after the given date (inclusive). */ @@ -187,7 +196,8 @@ public SourceSonarCloud withStartDate(Optional startDate) { } /** - * Your User Token. See <a href="https://docs.sonarcloud.io/advanced-setup/user-accounts/">here</a>. The token is case sensitive. + * Your User Token. See here. + * The token is case sensitive. */ public SourceSonarCloud withUserToken(String userToken) { Utils.checkNotNull(userToken, "userToken"); @@ -195,7 +205,6 @@ public SourceSonarCloud withUserToken(String userToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -206,23 +215,19 @@ public boolean equals(java.lang.Object o) { } SourceSonarCloud other = (SourceSonarCloud) o; return - Objects.deepEquals(this.componentKeys, other.componentKeys) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.organization, other.organization) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.userToken, other.userToken); + Utils.enhancedDeepEquals(this.componentKeys, other.componentKeys) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.organization, other.organization) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.userToken, other.userToken); } @Override public int hashCode() { - return Objects.hash( - componentKeys, - endDate, - organization, - sourceType, - startDate, - userToken); + return Utils.enhancedHash( + componentKeys, endDate, organization, + sourceType, startDate, userToken); } @Override @@ -235,23 +240,25 @@ public String toString() { "startDate", startDate, "userToken", userToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List componentKeys; - + private Optional endDate = Optional.empty(); - + private String organization; - + private Optional startDate = Optional.empty(); - + private String userToken; - + private Builder() { // force use of static builder() method } + /** * Comma-separated list of component keys. */ @@ -261,6 +268,7 @@ public Builder componentKeys(List componentKeys) { return this; } + /** * To retrieve issues created before the given date (inclusive). */ @@ -279,8 +287,10 @@ public Builder endDate(Optional endDate) { return this; } + /** - * Organization key. See <a href="https://docs.sonarcloud.io/appendices/project-information/#project-and-organization-keys">here</a>. + * Organization key. See here. */ public Builder organization(String organization) { Utils.checkNotNull(organization, "organization"); @@ -288,6 +298,7 @@ public Builder organization(String organization) { return this; } + /** * To retrieve issues created after the given date (inclusive). */ @@ -306,24 +317,25 @@ public Builder startDate(Optional startDate) { return this; } + /** - * Your User Token. See <a href="https://docs.sonarcloud.io/advanced-setup/user-accounts/">here</a>. The token is case sensitive. + * Your User Token. See here. + * The token is case sensitive. */ public Builder userToken(String userToken) { Utils.checkNotNull(userToken, "userToken"); this.userToken = userToken; return this; } - + public SourceSonarCloud build() { + return new SourceSonarCloud( - componentKeys, - endDate, - organization, - startDate, - userToken); + componentKeys, endDate, organization, + startDate, userToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSpacexApi.java b/src/main/java/com/airbyte/api/models/shared/SourceSpacexApi.java index 73e35abc7..695fa7cbd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSpacexApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSpacexApi.java @@ -13,19 +13,21 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceSpacexApi { @JsonInclude(Include.NON_ABSENT) @JsonProperty("id") private Optional id; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("options") private Optional options; + @JsonProperty("sourceType") private SpacexApi sourceType; @@ -59,9 +61,10 @@ public SpacexApi sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSpacexApi withId(String id) { Utils.checkNotNull(id, "id"); @@ -69,6 +72,7 @@ public SourceSpacexApi withId(String id) { return this; } + public SourceSpacexApi withId(Optional id) { Utils.checkNotNull(id, "id"); this.id = id; @@ -81,13 +85,13 @@ public SourceSpacexApi withOptions(String options) { return this; } + public SourceSpacexApi withOptions(Optional options) { Utils.checkNotNull(options, "options"); this.options = options; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -98,17 +102,15 @@ public boolean equals(java.lang.Object o) { } SourceSpacexApi other = (SourceSpacexApi) o; return - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.options, other.options) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.options, other.options) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - id, - options, - sourceType); + return Utils.enhancedHash( + id, options, sourceType); } @Override @@ -118,17 +120,19 @@ public String toString() { "options", options, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional id = Optional.empty(); - + private Optional options = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder id(String id) { Utils.checkNotNull(id, "id"); this.id = Optional.ofNullable(id); @@ -141,6 +145,7 @@ public Builder id(Optional id) { return this; } + public Builder options(String options) { Utils.checkNotNull(options, "options"); this.options = Optional.ofNullable(options); @@ -152,13 +157,14 @@ public Builder options(Optional options) { this.options = options; return this; } - + public SourceSpacexApi build() { + return new SourceSpacexApi( - id, - options); + id, options); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSparkpost.java b/src/main/java/com/airbyte/api/models/shared/SourceSparkpost.java index b332a5b4e..6c9de8742 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSparkpost.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSparkpost.java @@ -15,21 +15,24 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceSparkpost { @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("api_prefix") private Optional apiPrefix; + @JsonProperty("sourceType") private Sparkpost sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -74,9 +77,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSparkpost withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -90,6 +94,7 @@ public SourceSparkpost withApiPrefix(APIEndpointPrefix apiPrefix) { return this; } + public SourceSparkpost withApiPrefix(Optional apiPrefix) { Utils.checkNotNull(apiPrefix, "apiPrefix"); this.apiPrefix = apiPrefix; @@ -102,7 +107,6 @@ public SourceSparkpost withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,18 +117,16 @@ public boolean equals(java.lang.Object o) { } SourceSparkpost other = (SourceSparkpost) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiPrefix, other.apiPrefix) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiPrefix, other.apiPrefix) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiPrefix, - sourceType, + return Utils.enhancedHash( + apiKey, apiPrefix, sourceType, startDate); } @@ -136,25 +138,28 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional apiPrefix; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder apiPrefix(APIEndpointPrefix apiPrefix) { Utils.checkNotNull(apiPrefix, "apiPrefix"); this.apiPrefix = Optional.ofNullable(apiPrefix); @@ -167,22 +172,23 @@ public Builder apiPrefix(Optional apiPrefix) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSparkpost build() { if (apiPrefix == null) { apiPrefix = _SINGLETON_VALUE_ApiPrefix.value(); } + return new SourceSparkpost( - apiKey, - apiPrefix, - startDate); + apiKey, apiPrefix, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiPrefix = new LazySingletonValue<>( "api_prefix", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java b/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java index eaa88121f..718eb39d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSplitIo.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceSplitIo { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private SplitIo sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSplitIo withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceSplitIo withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceSplitIo other = (SourceSplitIo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSplitIo build() { + return new SourceSplitIo( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSpotifyAds.java b/src/main/java/com/airbyte/api/models/shared/SourceSpotifyAds.java new file mode 100644 index 000000000..85c40b959 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceSpotifyAds.java @@ -0,0 +1,325 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class SourceSpotifyAds { + /** + * The ID of the Spotify Ad Account you want to sync data from. + */ + @JsonProperty("ad_account_id") + private String adAccountId; + + /** + * The Client ID of your Spotify Developer application. + */ + @JsonProperty("client_id") + private String clientId; + + /** + * The Client Secret of your Spotify Developer application. + */ + @JsonProperty("client_secret") + private String clientSecret; + + /** + * List of fields to include in the campaign performance report. Choose from available metrics. + */ + @JsonProperty("fields") + private List fields; + + /** + * The Refresh Token obtained from the initial OAuth 2.0 authorization flow. + */ + @JsonProperty("refresh_token") + private String refreshToken; + + + @JsonProperty("sourceType") + private SpotifyAds sourceType; + + /** + * The date to start syncing data from, in YYYY-MM-DD format. + */ + @JsonProperty("start_date") + private String startDate; + + @JsonCreator + public SourceSpotifyAds( + @JsonProperty("ad_account_id") String adAccountId, + @JsonProperty("client_id") String clientId, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("fields") List fields, + @JsonProperty("refresh_token") String refreshToken, + @JsonProperty("start_date") String startDate) { + Utils.checkNotNull(adAccountId, "adAccountId"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(fields, "fields"); + Utils.checkNotNull(refreshToken, "refreshToken"); + Utils.checkNotNull(startDate, "startDate"); + this.adAccountId = adAccountId; + this.clientId = clientId; + this.clientSecret = clientSecret; + this.fields = fields; + this.refreshToken = refreshToken; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + /** + * The ID of the Spotify Ad Account you want to sync data from. + */ + @JsonIgnore + public String adAccountId() { + return adAccountId; + } + + /** + * The Client ID of your Spotify Developer application. + */ + @JsonIgnore + public String clientId() { + return clientId; + } + + /** + * The Client Secret of your Spotify Developer application. + */ + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + /** + * List of fields to include in the campaign performance report. Choose from available metrics. + */ + @JsonIgnore + public List fields() { + return fields; + } + + /** + * The Refresh Token obtained from the initial OAuth 2.0 authorization flow. + */ + @JsonIgnore + public String refreshToken() { + return refreshToken; + } + + @JsonIgnore + public SpotifyAds sourceType() { + return sourceType; + } + + /** + * The date to start syncing data from, in YYYY-MM-DD format. + */ + @JsonIgnore + public String startDate() { + return startDate; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The ID of the Spotify Ad Account you want to sync data from. + */ + public SourceSpotifyAds withAdAccountId(String adAccountId) { + Utils.checkNotNull(adAccountId, "adAccountId"); + this.adAccountId = adAccountId; + return this; + } + + /** + * The Client ID of your Spotify Developer application. + */ + public SourceSpotifyAds withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + /** + * The Client Secret of your Spotify Developer application. + */ + public SourceSpotifyAds withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * List of fields to include in the campaign performance report. Choose from available metrics. + */ + public SourceSpotifyAds withFields(List fields) { + Utils.checkNotNull(fields, "fields"); + this.fields = fields; + return this; + } + + /** + * The Refresh Token obtained from the initial OAuth 2.0 authorization flow. + */ + public SourceSpotifyAds withRefreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; + return this; + } + + /** + * The date to start syncing data from, in YYYY-MM-DD format. + */ + public SourceSpotifyAds withStartDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceSpotifyAds other = (SourceSpotifyAds) o; + return + Utils.enhancedDeepEquals(this.adAccountId, other.adAccountId) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.fields, other.fields) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + adAccountId, clientId, clientSecret, + fields, refreshToken, sourceType, + startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceSpotifyAds.class, + "adAccountId", adAccountId, + "clientId", clientId, + "clientSecret", clientSecret, + "fields", fields, + "refreshToken", refreshToken, + "sourceType", sourceType, + "startDate", startDate); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String adAccountId; + + private String clientId; + + private String clientSecret; + + private List fields; + + private String refreshToken; + + private String startDate; + + private Builder() { + // force use of static builder() method + } + + + /** + * The ID of the Spotify Ad Account you want to sync data from. + */ + public Builder adAccountId(String adAccountId) { + Utils.checkNotNull(adAccountId, "adAccountId"); + this.adAccountId = adAccountId; + return this; + } + + + /** + * The Client ID of your Spotify Developer application. + */ + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + + /** + * The Client Secret of your Spotify Developer application. + */ + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + + /** + * List of fields to include in the campaign performance report. Choose from available metrics. + */ + public Builder fields(List fields) { + Utils.checkNotNull(fields, "fields"); + this.fields = fields; + return this; + } + + + /** + * The Refresh Token obtained from the initial OAuth 2.0 authorization flow. + */ + public Builder refreshToken(String refreshToken) { + Utils.checkNotNull(refreshToken, "refreshToken"); + this.refreshToken = refreshToken; + return this; + } + + + /** + * The date to start syncing data from, in YYYY-MM-DD format. + */ + public Builder startDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceSpotifyAds build() { + + return new SourceSpotifyAds( + adAccountId, clientId, clientSecret, + fields, refreshToken, startDate); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"spotify-ads\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSpotlercrm.java b/src/main/java/com/airbyte/api/models/shared/SourceSpotlercrm.java index 267264bcb..0a49b290c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSpotlercrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSpotlercrm.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSpotlercrm { +public class SourceSpotlercrm { /** - * Access Token to authenticate API requests. Generate it by logging into your CRM system, navigating to Settings / Integrations / API V4, and clicking 'generate new key'. + * Access Token to authenticate API requests. Generate it by logging into your CRM system, navigating + * to Settings / Integrations / API V4, and clicking 'generate new key'. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Spotlercrm sourceType; @@ -33,7 +34,8 @@ public SourceSpotlercrm( } /** - * Access Token to authenticate API requests. Generate it by logging into your CRM system, navigating to Settings / Integrations / API V4, and clicking 'generate new key'. + * Access Token to authenticate API requests. Generate it by logging into your CRM system, navigating + * to Settings / Integrations / API V4, and clicking 'generate new key'. */ @JsonIgnore public String accessToken() { @@ -45,12 +47,14 @@ public Spotlercrm sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Access Token to authenticate API requests. Generate it by logging into your CRM system, navigating to Settings / Integrations / API V4, and clicking 'generate new key'. + * Access Token to authenticate API requests. Generate it by logging into your CRM system, navigating + * to Settings / Integrations / API V4, and clicking 'generate new key'. */ public SourceSpotlercrm withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -58,7 +62,6 @@ public SourceSpotlercrm withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceSpotlercrm other = (SourceSpotlercrm) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType); + return Utils.enhancedHash( + accessToken, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "accessToken", accessToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * Access Token to authenticate API requests. Generate it by logging into your CRM system, navigating to Settings / Integrations / API V4, and clicking 'generate new key'. + * Access Token to authenticate API requests. Generate it by logging into your CRM system, navigating + * to Settings / Integrations / API V4, and clicking 'generate new key'. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public SourceSpotlercrm build() { + return new SourceSpotlercrm( accessToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquare.java b/src/main/java/com/airbyte/api/models/shared/SourceSquare.java index 26262bb1e..b073c22a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquare.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquare.java @@ -16,11 +16,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourceSquare { +public class SourceSquare { /** * Choose how to authenticate to Square. */ @@ -42,11 +41,13 @@ public class SourceSquare { @JsonProperty("is_sandbox") private Optional isSandbox; + @JsonProperty("sourceType") private Square sourceType; /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all data will be replicated. + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all + * data will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -70,7 +71,8 @@ public SourceSquare( } public SourceSquare() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -104,16 +106,18 @@ public Square sourceType() { } /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all data will be replicated. + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all + * data will be replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Choose how to authenticate to Square. @@ -124,6 +128,7 @@ public SourceSquare withCredentials(SourceSquareAuthentication credentials) { return this; } + /** * Choose how to authenticate to Square. */ @@ -142,6 +147,7 @@ public SourceSquare withIncludeDeletedObjects(boolean includeDeletedObjects) { return this; } + /** * In some streams there is an option to include deleted objects (Items, Categories, Discounts, Taxes) */ @@ -160,6 +166,7 @@ public SourceSquare withIsSandbox(boolean isSandbox) { return this; } + /** * Determines whether to use the sandbox or production environment. */ @@ -170,7 +177,8 @@ public SourceSquare withIsSandbox(Optional isSandbox) { } /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all data will be replicated. + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all + * data will be replicated. */ public SourceSquare withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -178,8 +186,10 @@ public SourceSquare withStartDate(LocalDate startDate) { return this; } + /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all data will be replicated. + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all + * data will be replicated. */ public SourceSquare withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -187,7 +197,6 @@ public SourceSquare withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -198,21 +207,18 @@ public boolean equals(java.lang.Object o) { } SourceSquare other = (SourceSquare) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.includeDeletedObjects, other.includeDeletedObjects) && - Objects.deepEquals(this.isSandbox, other.isSandbox) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.includeDeletedObjects, other.includeDeletedObjects) && + Utils.enhancedDeepEquals(this.isSandbox, other.isSandbox) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - credentials, - includeDeletedObjects, - isSandbox, - sourceType, - startDate); + return Utils.enhancedHash( + credentials, includeDeletedObjects, isSandbox, + sourceType, startDate); } @Override @@ -224,21 +230,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Optional includeDeletedObjects; - + private Optional isSandbox; - + private Optional startDate; - + private Builder() { // force use of static builder() method } + /** * Choose how to authenticate to Square. */ @@ -257,6 +265,7 @@ public Builder credentials(Optional creden return this; } + /** * In some streams there is an option to include deleted objects (Items, Categories, Discounts, Taxes) */ @@ -275,6 +284,7 @@ public Builder includeDeletedObjects(Optional includeDeletedObjects) { return this; } + /** * Determines whether to use the sandbox or production environment. */ @@ -293,8 +303,10 @@ public Builder isSandbox(Optional isSandbox) { return this; } + /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all data will be replicated. + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all + * data will be replicated. */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -303,14 +315,15 @@ public Builder startDate(LocalDate startDate) { } /** - * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all data will be replicated. + * UTC date in the format YYYY-MM-DD. Any data before this date will not be replicated. If not set, all + * data will be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSquare build() { if (includeDeletedObjects == null) { includeDeletedObjects = _SINGLETON_VALUE_IncludeDeletedObjects.value(); @@ -321,13 +334,13 @@ public SourceSquare build() { if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } + return new SourceSquare( - credentials, - includeDeletedObjects, - isSandbox, + credentials, includeDeletedObjects, isSandbox, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_IncludeDeletedObjects = new LazySingletonValue<>( "include_deleted_objects", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquareAPIKey.java b/src/main/java/com/airbyte/api/models/shared/SourceSquareAPIKey.java index 56f0edefe..6ec607ad0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquareAPIKey.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquareAPIKey.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceSquareAPIKey { +public class SourceSquareAPIKey { /** * The API key for a Square application */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("auth_type") private SourceSquareSchemasAuthType authType; @@ -45,9 +45,10 @@ public SourceSquareSchemasAuthType authType() { return authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API key for a Square application @@ -58,7 +59,6 @@ public SourceSquareAPIKey withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceSquareAPIKey other = (SourceSquareAPIKey) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - authType); + return Utils.enhancedHash( + apiKey, authType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * The API key for a Square application */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceSquareAPIKey build() { + return new SourceSquareAPIKey( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java index 82294f362..66d084730 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthType.java @@ -14,7 +14,7 @@ public enum SourceSquareAuthType { @JsonValue private final String value; - private SourceSquareAuthType(String value) { + SourceSquareAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthentication.java index b03e19018..b1613daec 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquareAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceSquareAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceSquareAuthentication other = (SourceSquareAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java index ffe230d17..365fe4bfd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquareSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceSquareSchemasAuthType { @JsonValue private final String value; - private SourceSquareSchemasAuthType(String value) { + SourceSquareSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSquarespace.java b/src/main/java/com/airbyte/api/models/shared/SourceSquarespace.java index 7040c450f..df3d19ac6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSquarespace.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSquarespace.java @@ -12,16 +12,17 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceSquarespace { +public class SourceSquarespace { /** - * API key to use. Find it at https://developers.squarespace.com/commerce-apis/authentication-and-permissions + * API key to use. Find it at + * https://developers.squarespace.com/commerce-apis/authentication-and-permissions */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Squarespace sourceType; @@ -43,7 +44,8 @@ public SourceSquarespace( } /** - * API key to use. Find it at https://developers.squarespace.com/commerce-apis/authentication-and-permissions + * API key to use. Find it at + * https://developers.squarespace.com/commerce-apis/authentication-and-permissions */ @JsonIgnore public String apiKey() { @@ -63,12 +65,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key to use. Find it at https://developers.squarespace.com/commerce-apis/authentication-and-permissions + * API key to use. Find it at + * https://developers.squarespace.com/commerce-apis/authentication-and-permissions */ public SourceSquarespace withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -85,7 +89,6 @@ public SourceSquarespace withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -96,17 +99,15 @@ public boolean equals(java.lang.Object o) { } SourceSquarespace other = (SourceSquarespace) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -116,19 +117,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * API key to use. Find it at https://developers.squarespace.com/commerce-apis/authentication-and-permissions + * API key to use. Find it at + * https://developers.squarespace.com/commerce-apis/authentication-and-permissions */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -136,6 +140,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Any data before this date will not be replicated. */ @@ -144,13 +149,14 @@ public Builder startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } - + public SourceSquarespace build() { + return new SourceSquarespace( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStatsig.java b/src/main/java/com/airbyte/api/models/shared/SourceStatsig.java index 58d4079c2..006e4a68b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStatsig.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStatsig.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceStatsig { @JsonProperty("api_key") private String apiKey; + @JsonProperty("end_date") private OffsetDateTime endDate; + @JsonProperty("sourceType") private Statsig sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -62,9 +65,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceStatsig withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -84,7 +88,6 @@ public SourceStatsig withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,18 +98,16 @@ public boolean equals(java.lang.Object o) { } SourceStatsig other = (SourceStatsig) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - endDate, - sourceType, + return Utils.enhancedHash( + apiKey, endDate, sourceType, startDate); } @@ -118,44 +119,48 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime endDate; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder endDate(OffsetDateTime endDate) { Utils.checkNotNull(endDate, "endDate"); this.endDate = endDate; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceStatsig build() { + return new SourceStatsig( - apiKey, - endDate, - startDate); + apiKey, endDate, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStatuspage.java b/src/main/java/com/airbyte/api/models/shared/SourceStatuspage.java index e876830f6..fdab0b0d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStatuspage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStatuspage.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceStatuspage { +public class SourceStatuspage { /** - * Your API Key. See <a href="https://developer.statuspage.io/#section/Authentication/api_key">here</a>. + * Your API Key. See here. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Statuspage sourceType; @@ -33,7 +34,8 @@ public SourceStatuspage( } /** - * Your API Key. See <a href="https://developer.statuspage.io/#section/Authentication/api_key">here</a>. + * Your API Key. See here. */ @JsonIgnore public String apiKey() { @@ -45,12 +47,14 @@ public Statuspage sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Key. See <a href="https://developer.statuspage.io/#section/Authentication/api_key">here</a>. + * Your API Key. See here. */ public SourceStatuspage withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -58,7 +62,6 @@ public SourceStatuspage withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceStatuspage other = (SourceStatuspage) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,29 +88,34 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** - * Your API Key. See <a href="https://developer.statuspage.io/#section/Authentication/api_key">here</a>. + * Your API Key. See here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceStatuspage build() { + return new SourceStatuspage( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStockdata.java b/src/main/java/com/airbyte/api/models/shared/SourceStockdata.java index 8d91b985c..3d2ae397d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStockdata.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStockdata.java @@ -18,14 +18,15 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceStockdata { @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("filter_entities") private Optional filterEntities; @@ -37,12 +38,15 @@ public class SourceStockdata { @JsonProperty("industries") private Optional> industries; + @JsonProperty("sourceType") private Stockdata sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("symbols") private Optional> symbols; @@ -70,7 +74,8 @@ public SourceStockdata( public SourceStockdata( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), Optional.empty(), startDate, Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + startDate, Optional.empty()); } @JsonIgnore @@ -108,9 +113,10 @@ public Optional> symbols() { return (Optional>) symbols; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceStockdata withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -124,6 +130,7 @@ public SourceStockdata withFilterEntities(boolean filterEntities) { return this; } + public SourceStockdata withFilterEntities(Optional filterEntities) { Utils.checkNotNull(filterEntities, "filterEntities"); this.filterEntities = filterEntities; @@ -139,6 +146,7 @@ public SourceStockdata withIndustries(List industries) { return this; } + /** * Specify the industries of entities which have been identified within the article. */ @@ -160,13 +168,13 @@ public SourceStockdata withSymbols(List symbols) { return this; } + public SourceStockdata withSymbols(Optional> symbols) { Utils.checkNotNull(symbols, "symbols"); this.symbols = symbols; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -177,23 +185,19 @@ public boolean equals(java.lang.Object o) { } SourceStockdata other = (SourceStockdata) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.filterEntities, other.filterEntities) && - Objects.deepEquals(this.industries, other.industries) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.symbols, other.symbols); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.filterEntities, other.filterEntities) && + Utils.enhancedDeepEquals(this.industries, other.industries) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.symbols, other.symbols); } @Override public int hashCode() { - return Objects.hash( - apiKey, - filterEntities, - industries, - sourceType, - startDate, - symbols); + return Utils.enhancedHash( + apiKey, filterEntities, industries, + sourceType, startDate, symbols); } @Override @@ -206,29 +210,32 @@ public String toString() { "startDate", startDate, "symbols", symbols); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional filterEntities; - + private Optional> industries = Optional.empty(); - + private OffsetDateTime startDate; - + private Optional> symbols = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder filterEntities(boolean filterEntities) { Utils.checkNotNull(filterEntities, "filterEntities"); this.filterEntities = Optional.ofNullable(filterEntities); @@ -241,6 +248,7 @@ public Builder filterEntities(Optional filterEntities) { return this; } + /** * Specify the industries of entities which have been identified within the article. */ @@ -259,12 +267,14 @@ public Builder industries(Optional> industries) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder symbols(List symbols) { Utils.checkNotNull(symbols, "symbols"); this.symbols = Optional.ofNullable(symbols); @@ -276,19 +286,18 @@ public Builder symbols(Optional> symbols) { this.symbols = symbols; return this; } - + public SourceStockdata build() { if (filterEntities == null) { filterEntities = _SINGLETON_VALUE_FilterEntities.value(); } + return new SourceStockdata( - apiKey, - filterEntities, - industries, - startDate, - symbols); + apiKey, filterEntities, industries, + startDate, symbols); } + private static final LazySingletonValue> _SINGLETON_VALUE_FilterEntities = new LazySingletonValue<>( "filter_entities", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStrava.java b/src/main/java/com/airbyte/api/models/shared/SourceStrava.java index 044852cc9..ab21aaaaf 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStrava.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStrava.java @@ -16,17 +16,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceStrava { +public class SourceStrava { /** * The Athlete ID of your Strava developer application. */ @JsonProperty("athlete_id") private long athleteId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -49,6 +49,7 @@ public class SourceStrava { @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private Strava sourceType; @@ -130,9 +131,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Athlete ID of your Strava developer application. @@ -179,7 +181,6 @@ public SourceStrava withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -190,24 +191,20 @@ public boolean equals(java.lang.Object o) { } SourceStrava other = (SourceStrava) o; return - Objects.deepEquals(this.athleteId, other.athleteId) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.athleteId, other.athleteId) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - athleteId, - authType, - clientId, - clientSecret, - refreshToken, - sourceType, + return Utils.enhancedHash( + athleteId, authType, clientId, + clientSecret, refreshToken, sourceType, startDate); } @@ -222,23 +219,25 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Long athleteId; - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * The Athlete ID of your Strava developer application. */ @@ -248,6 +247,7 @@ public Builder athleteId(long athleteId) { return this; } + /** * The Client ID of your Strava developer application. */ @@ -257,6 +257,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your Strava developer application. */ @@ -266,6 +267,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The Refresh Token with the activity: read_all permissions. */ @@ -275,6 +277,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * UTC date and time. Any data before this date will not be replicated. */ @@ -283,16 +286,15 @@ public Builder startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } - + public SourceStrava build() { + return new SourceStrava( - athleteId, - clientId, - clientSecret, - refreshToken, - startDate); + athleteId, clientId, clientSecret, + refreshToken, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java index 4594b3c8a..1d76d5858 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStravaAuthType.java @@ -14,7 +14,7 @@ public enum SourceStravaAuthType { @JsonValue private final String value; - private SourceStravaAuthType(String value) { + SourceStravaAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceStripe.java b/src/main/java/com/airbyte/api/models/shared/SourceStripe.java index a291bc855..f0bd90818 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceStripe.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceStripe.java @@ -15,56 +15,69 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceStripe { +public class SourceStripe { /** - * Your Stripe account ID (starts with 'acct_', find yours <a href="https://dashboard.stripe.com/settings/account">here</a>). + * Your Stripe account ID (starts with 'acct_', find yours here). */ @JsonProperty("account_id") private String accountId; /** - * The number of API calls per second that you allow connector to make. This value can not be bigger than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default maximum is 25 and 100 calls per second for test and production tokens respectively. + * The number of API calls per second that you allow connector to make. This value can not be bigger + * than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default + * maximum is 25 and 100 calls per second for test and production tokens respectively. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("call_rate_limit") private Optional callRateLimit; /** - * Stripe API key (usually starts with 'sk_live_'; find yours <a href="https://dashboard.stripe.com/apikeys">here</a>). + * Stripe API key (usually starts with 'sk_live_'; find yours here). */ @JsonProperty("client_secret") private String clientSecret; /** - * When set, the connector will always re-export data from the past N days, where N is the value set here. This is useful if your data is frequently updated after creation. The Lookback Window only applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. More info <a href="https://docs.airbyte.com/integrations/sources/stripe#requirements">here</a> + * When set, the connector will always re-export data from the past N days, where N is the value set + * here. This is useful if your data is frequently updated after creation. The Lookback Window only + * applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, + * ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. + * + *

    More info here */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("lookback_window_days") private Optional lookbackWindowDays; /** - * The number of worker thread to use for the sync. The performance upper boundary depends on call_rate_limit setting and type of account. + * The number of worker thread to use for the sync. The performance upper boundary depends on + * call_rate_limit setting and type of account. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("num_workers") private Optional numWorkers; /** - * The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted. + * The time increment used by the connector when requesting data from the Stripe API. The bigger the + * value is, the less requests will be made and faster the sync will be. On the other hand, the more + * seldom the state is persisted. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("slice_range") private Optional sliceRange; + @JsonProperty("sourceType") private Stripe sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be + * replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -99,11 +112,14 @@ public SourceStripe( public SourceStripe( String accountId, String clientSecret) { - this(accountId, Optional.empty(), clientSecret, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(accountId, Optional.empty(), clientSecret, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * Your Stripe account ID (starts with 'acct_', find yours <a href="https://dashboard.stripe.com/settings/account">here</a>). + * Your Stripe account ID (starts with 'acct_', find yours here). */ @JsonIgnore public String accountId() { @@ -111,7 +127,9 @@ public String accountId() { } /** - * The number of API calls per second that you allow connector to make. This value can not be bigger than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default maximum is 25 and 100 calls per second for test and production tokens respectively. + * The number of API calls per second that you allow connector to make. This value can not be bigger + * than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default + * maximum is 25 and 100 calls per second for test and production tokens respectively. */ @JsonIgnore public Optional callRateLimit() { @@ -119,7 +137,8 @@ public Optional callRateLimit() { } /** - * Stripe API key (usually starts with 'sk_live_'; find yours <a href="https://dashboard.stripe.com/apikeys">here</a>). + * Stripe API key (usually starts with 'sk_live_'; find yours here). */ @JsonIgnore public String clientSecret() { @@ -127,7 +146,12 @@ public String clientSecret() { } /** - * When set, the connector will always re-export data from the past N days, where N is the value set here. This is useful if your data is frequently updated after creation. The Lookback Window only applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. More info <a href="https://docs.airbyte.com/integrations/sources/stripe#requirements">here</a> + * When set, the connector will always re-export data from the past N days, where N is the value set + * here. This is useful if your data is frequently updated after creation. The Lookback Window only + * applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, + * ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. + * + *

    More info here */ @JsonIgnore public Optional lookbackWindowDays() { @@ -135,7 +159,8 @@ public Optional lookbackWindowDays() { } /** - * The number of worker thread to use for the sync. The performance upper boundary depends on call_rate_limit setting and type of account. + * The number of worker thread to use for the sync. The performance upper boundary depends on + * call_rate_limit setting and type of account. */ @JsonIgnore public Optional numWorkers() { @@ -143,7 +168,9 @@ public Optional numWorkers() { } /** - * The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted. + * The time increment used by the connector when requesting data from the Stripe API. The bigger the + * value is, the less requests will be made and faster the sync will be. On the other hand, the more + * seldom the state is persisted. */ @JsonIgnore public Optional sliceRange() { @@ -156,19 +183,22 @@ public Stripe sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be + * replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Stripe account ID (starts with 'acct_', find yours <a href="https://dashboard.stripe.com/settings/account">here</a>). + * Your Stripe account ID (starts with 'acct_', find yours here). */ public SourceStripe withAccountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -177,7 +207,9 @@ public SourceStripe withAccountId(String accountId) { } /** - * The number of API calls per second that you allow connector to make. This value can not be bigger than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default maximum is 25 and 100 calls per second for test and production tokens respectively. + * The number of API calls per second that you allow connector to make. This value can not be bigger + * than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default + * maximum is 25 and 100 calls per second for test and production tokens respectively. */ public SourceStripe withCallRateLimit(long callRateLimit) { Utils.checkNotNull(callRateLimit, "callRateLimit"); @@ -185,8 +217,11 @@ public SourceStripe withCallRateLimit(long callRateLimit) { return this; } + /** - * The number of API calls per second that you allow connector to make. This value can not be bigger than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default maximum is 25 and 100 calls per second for test and production tokens respectively. + * The number of API calls per second that you allow connector to make. This value can not be bigger + * than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default + * maximum is 25 and 100 calls per second for test and production tokens respectively. */ public SourceStripe withCallRateLimit(Optional callRateLimit) { Utils.checkNotNull(callRateLimit, "callRateLimit"); @@ -195,7 +230,8 @@ public SourceStripe withCallRateLimit(Optional callRateLimit) { } /** - * Stripe API key (usually starts with 'sk_live_'; find yours <a href="https://dashboard.stripe.com/apikeys">here</a>). + * Stripe API key (usually starts with 'sk_live_'; find yours here). */ public SourceStripe withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -204,7 +240,12 @@ public SourceStripe withClientSecret(String clientSecret) { } /** - * When set, the connector will always re-export data from the past N days, where N is the value set here. This is useful if your data is frequently updated after creation. The Lookback Window only applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. More info <a href="https://docs.airbyte.com/integrations/sources/stripe#requirements">here</a> + * When set, the connector will always re-export data from the past N days, where N is the value set + * here. This is useful if your data is frequently updated after creation. The Lookback Window only + * applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, + * ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. + * + *

    More info here */ public SourceStripe withLookbackWindowDays(long lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -212,8 +253,14 @@ public SourceStripe withLookbackWindowDays(long lookbackWindowDays) { return this; } + /** - * When set, the connector will always re-export data from the past N days, where N is the value set here. This is useful if your data is frequently updated after creation. The Lookback Window only applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. More info <a href="https://docs.airbyte.com/integrations/sources/stripe#requirements">here</a> + * When set, the connector will always re-export data from the past N days, where N is the value set + * here. This is useful if your data is frequently updated after creation. The Lookback Window only + * applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, + * ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. + * + *

    More info here */ public SourceStripe withLookbackWindowDays(Optional lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -222,7 +269,8 @@ public SourceStripe withLookbackWindowDays(Optional lookbackWindowDays) { } /** - * The number of worker thread to use for the sync. The performance upper boundary depends on call_rate_limit setting and type of account. + * The number of worker thread to use for the sync. The performance upper boundary depends on + * call_rate_limit setting and type of account. */ public SourceStripe withNumWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -230,8 +278,10 @@ public SourceStripe withNumWorkers(long numWorkers) { return this; } + /** - * The number of worker thread to use for the sync. The performance upper boundary depends on call_rate_limit setting and type of account. + * The number of worker thread to use for the sync. The performance upper boundary depends on + * call_rate_limit setting and type of account. */ public SourceStripe withNumWorkers(Optional numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -240,7 +290,9 @@ public SourceStripe withNumWorkers(Optional numWorkers) { } /** - * The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted. + * The time increment used by the connector when requesting data from the Stripe API. The bigger the + * value is, the less requests will be made and faster the sync will be. On the other hand, the more + * seldom the state is persisted. */ public SourceStripe withSliceRange(long sliceRange) { Utils.checkNotNull(sliceRange, "sliceRange"); @@ -248,8 +300,11 @@ public SourceStripe withSliceRange(long sliceRange) { return this; } + /** - * The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted. + * The time increment used by the connector when requesting data from the Stripe API. The bigger the + * value is, the less requests will be made and faster the sync will be. On the other hand, the more + * seldom the state is persisted. */ public SourceStripe withSliceRange(Optional sliceRange) { Utils.checkNotNull(sliceRange, "sliceRange"); @@ -258,7 +313,8 @@ public SourceStripe withSliceRange(Optional sliceRange) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be + * replicated. */ public SourceStripe withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -266,8 +322,10 @@ public SourceStripe withStartDate(OffsetDateTime startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be + * replicated. */ public SourceStripe withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -275,7 +333,6 @@ public SourceStripe withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -286,27 +343,22 @@ public boolean equals(java.lang.Object o) { } SourceStripe other = (SourceStripe) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.callRateLimit, other.callRateLimit) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.lookbackWindowDays, other.lookbackWindowDays) && - Objects.deepEquals(this.numWorkers, other.numWorkers) && - Objects.deepEquals(this.sliceRange, other.sliceRange) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.callRateLimit, other.callRateLimit) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.lookbackWindowDays, other.lookbackWindowDays) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.sliceRange, other.sliceRange) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountId, - callRateLimit, - clientSecret, - lookbackWindowDays, - numWorkers, - sliceRange, - sourceType, - startDate); + return Utils.enhancedHash( + accountId, callRateLimit, clientSecret, + lookbackWindowDays, numWorkers, sliceRange, + sourceType, startDate); } @Override @@ -321,29 +373,32 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private Optional callRateLimit = Optional.empty(); - + private String clientSecret; - + private Optional lookbackWindowDays; - + private Optional numWorkers; - + private Optional sliceRange; - + private Optional startDate; - + private Builder() { // force use of static builder() method } + /** - * Your Stripe account ID (starts with 'acct_', find yours <a href="https://dashboard.stripe.com/settings/account">here</a>). + * Your Stripe account ID (starts with 'acct_', find yours here). */ public Builder accountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -351,8 +406,11 @@ public Builder accountId(String accountId) { return this; } + /** - * The number of API calls per second that you allow connector to make. This value can not be bigger than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default maximum is 25 and 100 calls per second for test and production tokens respectively. + * The number of API calls per second that you allow connector to make. This value can not be bigger + * than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default + * maximum is 25 and 100 calls per second for test and production tokens respectively. */ public Builder callRateLimit(long callRateLimit) { Utils.checkNotNull(callRateLimit, "callRateLimit"); @@ -361,7 +419,9 @@ public Builder callRateLimit(long callRateLimit) { } /** - * The number of API calls per second that you allow connector to make. This value can not be bigger than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default maximum is 25 and 100 calls per second for test and production tokens respectively. + * The number of API calls per second that you allow connector to make. This value can not be bigger + * than real API call rate limit (https://stripe.com/docs/rate-limits). If not specified the default + * maximum is 25 and 100 calls per second for test and production tokens respectively. */ public Builder callRateLimit(Optional callRateLimit) { Utils.checkNotNull(callRateLimit, "callRateLimit"); @@ -369,8 +429,10 @@ public Builder callRateLimit(Optional callRateLimit) { return this; } + /** - * Stripe API key (usually starts with 'sk_live_'; find yours <a href="https://dashboard.stripe.com/apikeys">here</a>). + * Stripe API key (usually starts with 'sk_live_'; find yours here). */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -378,8 +440,14 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * When set, the connector will always re-export data from the past N days, where N is the value set here. This is useful if your data is frequently updated after creation. The Lookback Window only applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. More info <a href="https://docs.airbyte.com/integrations/sources/stripe#requirements">here</a> + * When set, the connector will always re-export data from the past N days, where N is the value set + * here. This is useful if your data is frequently updated after creation. The Lookback Window only + * applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, + * ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. + * + *

    More info here */ public Builder lookbackWindowDays(long lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -388,7 +456,12 @@ public Builder lookbackWindowDays(long lookbackWindowDays) { } /** - * When set, the connector will always re-export data from the past N days, where N is the value set here. This is useful if your data is frequently updated after creation. The Lookback Window only applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. More info <a href="https://docs.airbyte.com/integrations/sources/stripe#requirements">here</a> + * When set, the connector will always re-export data from the past N days, where N is the value set + * here. This is useful if your data is frequently updated after creation. The Lookback Window only + * applies to streams that do not support event-based incremental syncs: Events, SetupAttempts, + * ShippingRates, BalanceTransactions, Files, FileLinks, Refunds. + * + *

    More info here */ public Builder lookbackWindowDays(Optional lookbackWindowDays) { Utils.checkNotNull(lookbackWindowDays, "lookbackWindowDays"); @@ -396,8 +469,10 @@ public Builder lookbackWindowDays(Optional lookbackWindowDays) { return this; } + /** - * The number of worker thread to use for the sync. The performance upper boundary depends on call_rate_limit setting and type of account. + * The number of worker thread to use for the sync. The performance upper boundary depends on + * call_rate_limit setting and type of account. */ public Builder numWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -406,7 +481,8 @@ public Builder numWorkers(long numWorkers) { } /** - * The number of worker thread to use for the sync. The performance upper boundary depends on call_rate_limit setting and type of account. + * The number of worker thread to use for the sync. The performance upper boundary depends on + * call_rate_limit setting and type of account. */ public Builder numWorkers(Optional numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -414,8 +490,11 @@ public Builder numWorkers(Optional numWorkers) { return this; } + /** - * The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted. + * The time increment used by the connector when requesting data from the Stripe API. The bigger the + * value is, the less requests will be made and faster the sync will be. On the other hand, the more + * seldom the state is persisted. */ public Builder sliceRange(long sliceRange) { Utils.checkNotNull(sliceRange, "sliceRange"); @@ -424,7 +503,9 @@ public Builder sliceRange(long sliceRange) { } /** - * The time increment used by the connector when requesting data from the Stripe API. The bigger the value is, the less requests will be made and faster the sync will be. On the other hand, the more seldom the state is persisted. + * The time increment used by the connector when requesting data from the Stripe API. The bigger the + * value is, the less requests will be made and faster the sync will be. On the other hand, the more + * seldom the state is persisted. */ public Builder sliceRange(Optional sliceRange) { Utils.checkNotNull(sliceRange, "sliceRange"); @@ -432,8 +513,10 @@ public Builder sliceRange(Optional sliceRange) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -442,14 +525,15 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only data generated after this date will be + * replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceStripe build() { if (lookbackWindowDays == null) { lookbackWindowDays = _SINGLETON_VALUE_LookbackWindowDays.value(); @@ -463,16 +547,14 @@ public SourceStripe build() { if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } + return new SourceStripe( - accountId, - callRateLimit, - clientSecret, - lookbackWindowDays, - numWorkers, - sliceRange, + accountId, callRateLimit, clientSecret, + lookbackWindowDays, numWorkers, sliceRange, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_LookbackWindowDays = new LazySingletonValue<>( "lookback_window_days", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrow.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrow.java index 24617f229..34e837888 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrow.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrow.java @@ -16,13 +16,14 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSurveySparrow { +public class SourceSurveySparrow { /** - * Your access token. See <a href="https://developers.surveysparrow.com/rest-apis#authentication">here</a>. The key is case sensitive. + * Your access token. See here. The key is case + * sensitive. */ @JsonProperty("access_token") private String accessToken; @@ -34,6 +35,7 @@ public class SourceSurveySparrow { @JsonProperty("region") private Optional region; + @JsonProperty("sourceType") private SurveySparrow sourceType; @@ -64,7 +66,9 @@ public SourceSurveySparrow( } /** - * Your access token. See <a href="https://developers.surveysparrow.com/rest-apis#authentication">here</a>. The key is case sensitive. + * Your access token. See here. The key is case + * sensitive. */ @JsonIgnore public String accessToken() { @@ -94,12 +98,15 @@ public Optional> surveyId() { return (Optional>) surveyId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your access token. See <a href="https://developers.surveysparrow.com/rest-apis#authentication">here</a>. The key is case sensitive. + * Your access token. See here. The key is case + * sensitive. */ public SourceSurveySparrow withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -116,6 +123,7 @@ public SourceSurveySparrow withRegion(BaseURL region) { return this; } + /** * Is your account location is EU based? If yes, the base url to retrieve data will be different. */ @@ -134,6 +142,7 @@ public SourceSurveySparrow withSurveyId(List surveyId) { return this; } + /** * A List of your survey ids for survey-specific stream */ @@ -143,7 +152,6 @@ public SourceSurveySparrow withSurveyId(Optional> surveyI return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -154,18 +162,16 @@ public boolean equals(java.lang.Object o) { } SourceSurveySparrow other = (SourceSurveySparrow) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.surveyId, other.surveyId); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.surveyId, other.surveyId); } @Override public int hashCode() { - return Objects.hash( - accessToken, - region, - sourceType, + return Utils.enhancedHash( + accessToken, region, sourceType, surveyId); } @@ -177,21 +183,25 @@ public String toString() { "sourceType", sourceType, "surveyId", surveyId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Optional region = Optional.empty(); - + private Optional> surveyId = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Your access token. See <a href="https://developers.surveysparrow.com/rest-apis#authentication">here</a>. The key is case sensitive. + * Your access token. See here. The key is case + * sensitive. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -199,6 +209,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * Is your account location is EU based? If yes, the base url to retrieve data will be different. */ @@ -217,6 +228,7 @@ public Builder region(Optional region) { return this; } + /** * A List of your survey ids for survey-specific stream */ @@ -234,14 +246,14 @@ public Builder surveyId(Optional> surveyId) { this.surveyId = surveyId; return this; } - + public SourceSurveySparrow build() { + return new SourceSurveySparrow( - accessToken, - region, - surveyId); + accessToken, region, surveyId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java index 1911fdeed..caa88ff43 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveySparrowUrlBase.java @@ -14,7 +14,7 @@ public enum SourceSurveySparrowUrlBase { @JsonValue private final String value; - private SourceSurveySparrowUrlBase(String value) { + SourceSurveySparrowUrlBase(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkey.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkey.java index b768f0b51..b20748846 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkey.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkey.java @@ -16,11 +16,10 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceSurveymonkey { +public class SourceSurveymonkey { /** * The authorization method to use to retrieve data from SurveyMonkey */ @@ -28,23 +27,27 @@ public class SourceSurveymonkey { private SurveyMonkeyAuthorizationMethod credentials; /** - * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different. + * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be + * different. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("origin") private Optional origin; + @JsonProperty("sourceType") private SourceSurveymonkeySurveymonkey sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; /** - * IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to which you have access will be replicated. + * IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to + * which you have access will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("survey_ids") @@ -70,7 +73,8 @@ public SourceSurveymonkey( public SourceSurveymonkey( SurveyMonkeyAuthorizationMethod credentials, OffsetDateTime startDate) { - this(credentials, Optional.empty(), startDate, Optional.empty()); + this(credentials, Optional.empty(), startDate, + Optional.empty()); } /** @@ -82,7 +86,8 @@ public SurveyMonkeyAuthorizationMethod credentials() { } /** - * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different. + * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be + * different. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -96,7 +101,8 @@ public SourceSurveymonkeySurveymonkey sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { @@ -104,7 +110,8 @@ public OffsetDateTime startDate() { } /** - * IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to which you have access will be replicated. + * IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to + * which you have access will be replicated. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -112,9 +119,10 @@ public Optional> surveyIds() { return (Optional>) surveyIds; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The authorization method to use to retrieve data from SurveyMonkey @@ -126,7 +134,8 @@ public SourceSurveymonkey withCredentials(SurveyMonkeyAuthorizationMethod creden } /** - * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different. + * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be + * different. */ public SourceSurveymonkey withOrigin(OriginDatacenterOfTheSurveyMonkeyAccount origin) { Utils.checkNotNull(origin, "origin"); @@ -134,8 +143,10 @@ public SourceSurveymonkey withOrigin(OriginDatacenterOfTheSurveyMonkeyAccount or return this; } + /** - * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different. + * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be + * different. */ public SourceSurveymonkey withOrigin(Optional origin) { Utils.checkNotNull(origin, "origin"); @@ -144,7 +155,8 @@ public SourceSurveymonkey withOrigin(Optional surveyIds) { Utils.checkNotNull(surveyIds, "surveyIds"); @@ -161,8 +174,10 @@ public SourceSurveymonkey withSurveyIds(List surveyIds) { return this; } + /** - * IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to which you have access will be replicated. + * IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to + * which you have access will be replicated. */ public SourceSurveymonkey withSurveyIds(Optional> surveyIds) { Utils.checkNotNull(surveyIds, "surveyIds"); @@ -170,7 +185,6 @@ public SourceSurveymonkey withSurveyIds(Optional> surveyI return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -181,21 +195,18 @@ public boolean equals(java.lang.Object o) { } SourceSurveymonkey other = (SourceSurveymonkey) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.origin, other.origin) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.surveyIds, other.surveyIds); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.origin, other.origin) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.surveyIds, other.surveyIds); } @Override public int hashCode() { - return Objects.hash( - credentials, - origin, - sourceType, - startDate, - surveyIds); + return Utils.enhancedHash( + credentials, origin, sourceType, + startDate, surveyIds); } @Override @@ -207,21 +218,23 @@ public String toString() { "startDate", startDate, "surveyIds", surveyIds); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SurveyMonkeyAuthorizationMethod credentials; - + private Optional origin; - + private OffsetDateTime startDate; - + private Optional> surveyIds = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The authorization method to use to retrieve data from SurveyMonkey */ @@ -231,8 +244,10 @@ public Builder credentials(SurveyMonkeyAuthorizationMethod credentials) { return this; } + /** - * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different. + * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be + * different. */ public Builder origin(OriginDatacenterOfTheSurveyMonkeyAccount origin) { Utils.checkNotNull(origin, "origin"); @@ -241,7 +256,8 @@ public Builder origin(OriginDatacenterOfTheSurveyMonkeyAccount origin) { } /** - * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be different. + * Depending on the originating datacenter of the SurveyMonkey account, the API access URL may be + * different. */ public Builder origin(Optional origin) { Utils.checkNotNull(origin, "origin"); @@ -249,8 +265,10 @@ public Builder origin(Optional surveyIds) { Utils.checkNotNull(surveyIds, "surveyIds"); @@ -268,25 +288,26 @@ public Builder surveyIds(List surveyIds) { } /** - * IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to which you have access will be replicated. + * IDs of the surveys from which you'd like to replicate data. If left empty, data from all boards to + * which you have access will be replicated. */ public Builder surveyIds(Optional> surveyIds) { Utils.checkNotNull(surveyIds, "surveyIds"); this.surveyIds = surveyIds; return this; } - + public SourceSurveymonkey build() { if (origin == null) { origin = _SINGLETON_VALUE_Origin.value(); } + return new SourceSurveymonkey( - credentials, - origin, - startDate, + credentials, origin, startDate, surveyIds); } + private static final LazySingletonValue> _SINGLETON_VALUE_Origin = new LazySingletonValue<>( "origin", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java index 6ffb1d150..a678ff6ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeyAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceSurveymonkeyAuthMethod { @JsonValue private final String value; - private SourceSurveymonkeyAuthMethod(String value) { + SourceSurveymonkeyAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeySurveymonkey.java b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeySurveymonkey.java index 1869b1102..988170ffa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeySurveymonkey.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurveymonkeySurveymonkey.java @@ -14,7 +14,7 @@ public enum SourceSurveymonkeySurveymonkey { @JsonValue private final String value; - private SourceSurveymonkeySurveymonkey(String value) { + SourceSurveymonkeySurveymonkey(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSurvicate.java b/src/main/java/com/airbyte/api/models/shared/SourceSurvicate.java index 9e340f3ad..03686ff14 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSurvicate.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSurvicate.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceSurvicate { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Survicate sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSurvicate withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceSurvicate withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceSurvicate other = (SourceSurvicate) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSurvicate build() { + return new SourceSurvicate( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSvix.java b/src/main/java/com/airbyte/api/models/shared/SourceSvix.java index 696210365..025eb8969 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSvix.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSvix.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceSvix { +public class SourceSvix { /** * API key or access token */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Svix sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key or access token @@ -76,7 +78,6 @@ public SourceSvix withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceSvix other = (SourceSvix) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * API key or access token */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceSvix build() { + return new SourceSvix( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceSysteme.java b/src/main/java/com/airbyte/api/models/shared/SourceSysteme.java index ad7964dfc..4b979c402 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceSysteme.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceSysteme.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceSysteme { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Systeme sourceType; @@ -39,9 +40,10 @@ public Systeme sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceSysteme withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceSysteme withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceSysteme other = (SourceSysteme) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceSysteme build() { + return new SourceSysteme( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTaboola.java b/src/main/java/com/airbyte/api/models/shared/SourceTaboola.java index a00654b77..6a9d046d6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTaboola.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTaboola.java @@ -11,22 +11,24 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceTaboola { +public class SourceTaboola { /** * The ID associated with your taboola account */ @JsonProperty("account_id") private String accountId; + @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private Taboola sourceType; @@ -67,9 +69,10 @@ public Taboola sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The ID associated with your taboola account @@ -92,7 +95,6 @@ public SourceTaboola withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -103,18 +105,16 @@ public boolean equals(java.lang.Object o) { } SourceTaboola other = (SourceTaboola) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountId, - clientId, - clientSecret, + return Utils.enhancedHash( + accountId, clientId, clientSecret, sourceType); } @@ -126,19 +126,21 @@ public String toString() { "clientSecret", clientSecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + /** * The ID associated with your taboola account */ @@ -148,25 +150,27 @@ public Builder accountId(String accountId) { return this; } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourceTaboola build() { + return new SourceTaboola( - accountId, - clientId, - clientSecret); + accountId, clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTavus.java b/src/main/java/com/airbyte/api/models/shared/SourceTavus.java index 2694d68e6..2144e6399 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTavus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTavus.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceTavus { +public class SourceTavus { /** * Your Tavus API key. You can find this in your Tavus account settings or API dashboard. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Tavus sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your Tavus API key. You can find this in your Tavus account settings or API dashboard. @@ -76,7 +78,6 @@ public SourceTavus withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceTavus other = (SourceTavus) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * Your Tavus API key. You can find this in your Tavus account settings or API dashboard. */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceTavus build() { + return new SourceTavus( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTeamtailor.java b/src/main/java/com/airbyte/api/models/shared/SourceTeamtailor.java index a607d1f07..e1de29340 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTeamtailor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTeamtailor.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceTeamtailor { @JsonProperty("api") private String api; + @JsonProperty("sourceType") private Teamtailor sourceType; @@ -56,9 +57,10 @@ public String xApiVersion() { return xApiVersion; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceTeamtailor withApi(String api) { Utils.checkNotNull(api, "api"); @@ -75,7 +77,6 @@ public SourceTeamtailor withXApiVersion(String xApiVersion) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +87,15 @@ public boolean equals(java.lang.Object o) { } SourceTeamtailor other = (SourceTeamtailor) o; return - Objects.deepEquals(this.api, other.api) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.xApiVersion, other.xApiVersion); + Utils.enhancedDeepEquals(this.api, other.api) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.xApiVersion, other.xApiVersion); } @Override public int hashCode() { - return Objects.hash( - api, - sourceType, - xApiVersion); + return Utils.enhancedHash( + api, sourceType, xApiVersion); } @Override @@ -106,23 +105,26 @@ public String toString() { "sourceType", sourceType, "xApiVersion", xApiVersion); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String api; - + private String xApiVersion; - + private Builder() { // force use of static builder() method } + public Builder api(String api) { Utils.checkNotNull(api, "api"); this.api = api; return this; } + /** * The version of the API */ @@ -131,13 +133,14 @@ public Builder xApiVersion(String xApiVersion) { this.xApiVersion = xApiVersion; return this; } - + public SourceTeamtailor build() { + return new SourceTeamtailor( - api, - xApiVersion); + api, xApiVersion); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTeamwork.java b/src/main/java/com/airbyte/api/models/shared/SourceTeamwork.java index f1305cab1..31a700fc2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTeamwork.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTeamwork.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceTeamwork { @JsonInclude(Include.NON_ABSENT) @@ -29,12 +29,15 @@ public class SourceTeamwork { @JsonProperty("site_name") private String siteName; + @JsonProperty("sourceType") private Teamwork sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonProperty("username") private String username; @@ -59,7 +62,8 @@ public SourceTeamwork( String siteName, OffsetDateTime startDate, String username) { - this(Optional.empty(), siteName, startDate, username); + this(Optional.empty(), siteName, startDate, + username); } @JsonIgnore @@ -90,9 +94,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceTeamwork withPassword(String password) { Utils.checkNotNull(password, "password"); @@ -100,6 +105,7 @@ public SourceTeamwork withPassword(String password) { return this; } + public SourceTeamwork withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -127,7 +133,6 @@ public SourceTeamwork withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -138,21 +143,18 @@ public boolean equals(java.lang.Object o) { } SourceTeamwork other = (SourceTeamwork) o; return - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.siteName, other.siteName) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.siteName, other.siteName) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - password, - siteName, - sourceType, - startDate, - username); + return Utils.enhancedHash( + password, siteName, sourceType, + startDate, username); } @Override @@ -164,21 +166,23 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional password = Optional.empty(); - + private String siteName; - + private OffsetDateTime startDate; - + private String username; - + private Builder() { // force use of static builder() method } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -191,6 +195,7 @@ public Builder password(Optional password) { return this; } + /** * The teamwork site name appearing at the url */ @@ -200,26 +205,28 @@ public Builder siteName(String siteName) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceTeamwork build() { + return new SourceTeamwork( - password, - siteName, - startDate, + password, siteName, startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTempo.java b/src/main/java/com/airbyte/api/models/shared/SourceTempo.java index d54ef88f8..dafd06cf1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTempo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTempo.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceTempo { +public class SourceTempo { /** * Tempo API Token. Go to Tempo>Settings, scroll down to Data Access and select API integration. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Tempo sourceType; @@ -45,9 +45,10 @@ public Tempo sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Tempo API Token. Go to Tempo>Settings, scroll down to Data Access and select API integration. @@ -58,7 +59,6 @@ public SourceTempo withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceTempo other = (SourceTempo) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * Tempo API Token. Go to Tempo>Settings, scroll down to Data Access and select API integration. */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public SourceTempo build() { + return new SourceTempo( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTestrail.java b/src/main/java/com/airbyte/api/models/shared/SourceTestrail.java index 6639c0681..0afbaacf4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTestrail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTestrail.java @@ -14,27 +14,30 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceTestrail { +public class SourceTestrail { /** * The unique domain name for accessing testrail */ @JsonProperty("domain_name") private String domainName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Testrail sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonProperty("username") private String username; @@ -59,7 +62,8 @@ public SourceTestrail( String domainName, OffsetDateTime startDate, String username) { - this(domainName, Optional.empty(), startDate, username); + this(domainName, Optional.empty(), startDate, + username); } /** @@ -90,9 +94,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The unique domain name for accessing testrail @@ -109,6 +114,7 @@ public SourceTestrail withPassword(String password) { return this; } + public SourceTestrail withPassword(Optional password) { Utils.checkNotNull(password, "password"); this.password = password; @@ -127,7 +133,6 @@ public SourceTestrail withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -138,21 +143,18 @@ public boolean equals(java.lang.Object o) { } SourceTestrail other = (SourceTestrail) o; return - Objects.deepEquals(this.domainName, other.domainName) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.domainName, other.domainName) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - domainName, - password, - sourceType, - startDate, - username); + return Utils.enhancedHash( + domainName, password, sourceType, + startDate, username); } @Override @@ -164,21 +166,23 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String domainName; - + private Optional password = Optional.empty(); - + private OffsetDateTime startDate; - + private String username; - + private Builder() { // force use of static builder() method } + /** * The unique domain name for accessing testrail */ @@ -188,6 +192,7 @@ public Builder domainName(String domainName) { return this; } + public Builder password(String password) { Utils.checkNotNull(password, "password"); this.password = Optional.ofNullable(password); @@ -200,26 +205,28 @@ public Builder password(Optional password) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder username(String username) { Utils.checkNotNull(username, "username"); this.username = username; return this; } - + public SourceTestrail build() { + return new SourceTestrail( - domainName, - password, - startDate, + domainName, password, startDate, username); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTheGuardianApi.java b/src/main/java/com/airbyte/api/models/shared/SourceTheGuardianApi.java index d6fa196a4..90db99b4f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTheGuardianApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTheGuardianApi.java @@ -13,49 +13,60 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceTheGuardianApi { +public class SourceTheGuardianApi { /** - * Your API Key. See <a href="https://open-platform.theguardian.com/access/">here</a>. The key is case sensitive. + * Your API Key. See here. The key is case + * sensitive. */ @JsonProperty("api_key") private String apiKey; /** - * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the end_date will not be shown. Default is set to the current date (today) for incremental syncs. + * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the + * end_date will not be shown. Default is set to the current date (today) for incremental syncs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") private Optional endDate; /** - * (Optional) The query (q) parameter filters the results to only those that include that search term. The q parameter supports AND, OR and NOT operators. + * (Optional) The query (q) parameter filters the results to only those that include that search term. + * The q parameter supports AND, OR and NOT operators. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("query") private Optional query; /** - * (Optional) Use this to filter the results by a particular section. See <a href="https://content.guardianapis.com/sections?api-key=test">here</a> for a list of all sections, and <a href="https://open-platform.theguardian.com/documentation/section">here</a> for the sections endpoint documentation. + * (Optional) Use this to filter the results by a particular section. See here for a list of all sections, + * and here for the sections + * endpoint documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("section") private Optional section; + @JsonProperty("sourceType") private TheGuardianApi sourceType; /** - * Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will not be shown. + * Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will + * not be shown. */ @JsonProperty("start_date") private String startDate; /** - * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this parameter to filter results by showing only the ones matching the entered tag. See <a href="https://content.guardianapis.com/tags?api-key=test">here</a> for a list of all tags, and <a href="https://open-platform.theguardian.com/documentation/tag">here</a> for the tags endpoint documentation. + * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this + * parameter to filter results by showing only the ones matching the entered tag. See here for a list of all tags, and here for the tags endpoint + * documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tag") @@ -87,11 +98,13 @@ public SourceTheGuardianApi( public SourceTheGuardianApi( String apiKey, String startDate) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), startDate, Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), startDate, Optional.empty()); } /** - * Your API Key. See <a href="https://open-platform.theguardian.com/access/">here</a>. The key is case sensitive. + * Your API Key. See here. The key is case + * sensitive. */ @JsonIgnore public String apiKey() { @@ -99,7 +112,8 @@ public String apiKey() { } /** - * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the end_date will not be shown. Default is set to the current date (today) for incremental syncs. + * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the + * end_date will not be shown. Default is set to the current date (today) for incremental syncs. */ @JsonIgnore public Optional endDate() { @@ -107,7 +121,8 @@ public Optional endDate() { } /** - * (Optional) The query (q) parameter filters the results to only those that include that search term. The q parameter supports AND, OR and NOT operators. + * (Optional) The query (q) parameter filters the results to only those that include that search term. + * The q parameter supports AND, OR and NOT operators. */ @JsonIgnore public Optional query() { @@ -115,7 +130,10 @@ public Optional query() { } /** - * (Optional) Use this to filter the results by a particular section. See <a href="https://content.guardianapis.com/sections?api-key=test">here</a> for a list of all sections, and <a href="https://open-platform.theguardian.com/documentation/section">here</a> for the sections endpoint documentation. + * (Optional) Use this to filter the results by a particular section. See here for a list of all sections, + * and here for the sections + * endpoint documentation. */ @JsonIgnore public Optional section() { @@ -128,7 +146,8 @@ public TheGuardianApi sourceType() { } /** - * Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will not be shown. + * Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will + * not be shown. */ @JsonIgnore public String startDate() { @@ -136,19 +155,25 @@ public String startDate() { } /** - * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this parameter to filter results by showing only the ones matching the entered tag. See <a href="https://content.guardianapis.com/tags?api-key=test">here</a> for a list of all tags, and <a href="https://open-platform.theguardian.com/documentation/tag">here</a> for the tags endpoint documentation. + * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this + * parameter to filter results by showing only the ones matching the entered tag. See here for a list of all tags, and here for the tags endpoint + * documentation. */ @JsonIgnore public Optional tag() { return tag; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Key. See <a href="https://open-platform.theguardian.com/access/">here</a>. The key is case sensitive. + * Your API Key. See here. The key is case + * sensitive. */ public SourceTheGuardianApi withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -157,7 +182,8 @@ public SourceTheGuardianApi withApiKey(String apiKey) { } /** - * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the end_date will not be shown. Default is set to the current date (today) for incremental syncs. + * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the + * end_date will not be shown. Default is set to the current date (today) for incremental syncs. */ public SourceTheGuardianApi withEndDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -165,8 +191,10 @@ public SourceTheGuardianApi withEndDate(String endDate) { return this; } + /** - * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the end_date will not be shown. Default is set to the current date (today) for incremental syncs. + * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the + * end_date will not be shown. Default is set to the current date (today) for incremental syncs. */ public SourceTheGuardianApi withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -175,7 +203,8 @@ public SourceTheGuardianApi withEndDate(Optional endDate) { } /** - * (Optional) The query (q) parameter filters the results to only those that include that search term. The q parameter supports AND, OR and NOT operators. + * (Optional) The query (q) parameter filters the results to only those that include that search term. + * The q parameter supports AND, OR and NOT operators. */ public SourceTheGuardianApi withQuery(String query) { Utils.checkNotNull(query, "query"); @@ -183,8 +212,10 @@ public SourceTheGuardianApi withQuery(String query) { return this; } + /** - * (Optional) The query (q) parameter filters the results to only those that include that search term. The q parameter supports AND, OR and NOT operators. + * (Optional) The query (q) parameter filters the results to only those that include that search term. + * The q parameter supports AND, OR and NOT operators. */ public SourceTheGuardianApi withQuery(Optional query) { Utils.checkNotNull(query, "query"); @@ -193,7 +224,10 @@ public SourceTheGuardianApi withQuery(Optional query) { } /** - * (Optional) Use this to filter the results by a particular section. See <a href="https://content.guardianapis.com/sections?api-key=test">here</a> for a list of all sections, and <a href="https://open-platform.theguardian.com/documentation/section">here</a> for the sections endpoint documentation. + * (Optional) Use this to filter the results by a particular section. See here for a list of all sections, + * and here for the sections + * endpoint documentation. */ public SourceTheGuardianApi withSection(String section) { Utils.checkNotNull(section, "section"); @@ -201,8 +235,12 @@ public SourceTheGuardianApi withSection(String section) { return this; } + /** - * (Optional) Use this to filter the results by a particular section. See <a href="https://content.guardianapis.com/sections?api-key=test">here</a> for a list of all sections, and <a href="https://open-platform.theguardian.com/documentation/section">here</a> for the sections endpoint documentation. + * (Optional) Use this to filter the results by a particular section. See here for a list of all sections, + * and here for the sections + * endpoint documentation. */ public SourceTheGuardianApi withSection(Optional section) { Utils.checkNotNull(section, "section"); @@ -211,7 +249,8 @@ public SourceTheGuardianApi withSection(Optional section) { } /** - * Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will not be shown. + * Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will + * not be shown. */ public SourceTheGuardianApi withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -220,7 +259,11 @@ public SourceTheGuardianApi withStartDate(String startDate) { } /** - * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this parameter to filter results by showing only the ones matching the entered tag. See <a href="https://content.guardianapis.com/tags?api-key=test">here</a> for a list of all tags, and <a href="https://open-platform.theguardian.com/documentation/tag">here</a> for the tags endpoint documentation. + * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this + * parameter to filter results by showing only the ones matching the entered tag. See here for a list of all tags, and here for the tags endpoint + * documentation. */ public SourceTheGuardianApi withTag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -228,8 +271,13 @@ public SourceTheGuardianApi withTag(String tag) { return this; } + /** - * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this parameter to filter results by showing only the ones matching the entered tag. See <a href="https://content.guardianapis.com/tags?api-key=test">here</a> for a list of all tags, and <a href="https://open-platform.theguardian.com/documentation/tag">here</a> for the tags endpoint documentation. + * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this + * parameter to filter results by showing only the ones matching the entered tag. See here for a list of all tags, and here for the tags endpoint + * documentation. */ public SourceTheGuardianApi withTag(Optional tag) { Utils.checkNotNull(tag, "tag"); @@ -237,7 +285,6 @@ public SourceTheGuardianApi withTag(Optional tag) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -248,24 +295,20 @@ public boolean equals(java.lang.Object o) { } SourceTheGuardianApi other = (SourceTheGuardianApi) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.section, other.section) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.tag, other.tag); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.section, other.section) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.tag, other.tag); } @Override public int hashCode() { - return Objects.hash( - apiKey, - endDate, - query, - section, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, endDate, query, + section, sourceType, startDate, tag); } @@ -280,27 +323,30 @@ public String toString() { "startDate", startDate, "tag", tag); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional endDate = Optional.empty(); - + private Optional query = Optional.empty(); - + private Optional section = Optional.empty(); - + private String startDate; - + private Optional tag = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Your API Key. See <a href="https://open-platform.theguardian.com/access/">here</a>. The key is case sensitive. + * Your API Key. See here. The key is case + * sensitive. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -308,8 +354,10 @@ public Builder apiKey(String apiKey) { return this; } + /** - * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the end_date will not be shown. Default is set to the current date (today) for incremental syncs. + * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the + * end_date will not be shown. Default is set to the current date (today) for incremental syncs. */ public Builder endDate(String endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -318,7 +366,8 @@ public Builder endDate(String endDate) { } /** - * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the end_date will not be shown. Default is set to the current date (today) for incremental syncs. + * (Optional) Use this to set the maximum date (YYYY-MM-DD) of the results. Results newer than the + * end_date will not be shown. Default is set to the current date (today) for incremental syncs. */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -326,8 +375,10 @@ public Builder endDate(Optional endDate) { return this; } + /** - * (Optional) The query (q) parameter filters the results to only those that include that search term. The q parameter supports AND, OR and NOT operators. + * (Optional) The query (q) parameter filters the results to only those that include that search term. + * The q parameter supports AND, OR and NOT operators. */ public Builder query(String query) { Utils.checkNotNull(query, "query"); @@ -336,7 +387,8 @@ public Builder query(String query) { } /** - * (Optional) The query (q) parameter filters the results to only those that include that search term. The q parameter supports AND, OR and NOT operators. + * (Optional) The query (q) parameter filters the results to only those that include that search term. + * The q parameter supports AND, OR and NOT operators. */ public Builder query(Optional query) { Utils.checkNotNull(query, "query"); @@ -344,8 +396,12 @@ public Builder query(Optional query) { return this; } + /** - * (Optional) Use this to filter the results by a particular section. See <a href="https://content.guardianapis.com/sections?api-key=test">here</a> for a list of all sections, and <a href="https://open-platform.theguardian.com/documentation/section">here</a> for the sections endpoint documentation. + * (Optional) Use this to filter the results by a particular section. See here for a list of all sections, + * and here for the sections + * endpoint documentation. */ public Builder section(String section) { Utils.checkNotNull(section, "section"); @@ -354,7 +410,10 @@ public Builder section(String section) { } /** - * (Optional) Use this to filter the results by a particular section. See <a href="https://content.guardianapis.com/sections?api-key=test">here</a> for a list of all sections, and <a href="https://open-platform.theguardian.com/documentation/section">here</a> for the sections endpoint documentation. + * (Optional) Use this to filter the results by a particular section. See here for a list of all sections, + * and here for the sections + * endpoint documentation. */ public Builder section(Optional section) { Utils.checkNotNull(section, "section"); @@ -362,8 +421,10 @@ public Builder section(Optional section) { return this; } + /** - * Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will not be shown. + * Use this to set the minimum date (YYYY-MM-DD) of the results. Results older than the start_date will + * not be shown. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -371,8 +432,13 @@ public Builder startDate(String startDate) { return this; } + /** - * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this parameter to filter results by showing only the ones matching the entered tag. See <a href="https://content.guardianapis.com/tags?api-key=test">here</a> for a list of all tags, and <a href="https://open-platform.theguardian.com/documentation/tag">here</a> for the tags endpoint documentation. + * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this + * parameter to filter results by showing only the ones matching the entered tag. See here for a list of all tags, and here for the tags endpoint + * documentation. */ public Builder tag(String tag) { Utils.checkNotNull(tag, "tag"); @@ -381,24 +447,26 @@ public Builder tag(String tag) { } /** - * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this parameter to filter results by showing only the ones matching the entered tag. See <a href="https://content.guardianapis.com/tags?api-key=test">here</a> for a list of all tags, and <a href="https://open-platform.theguardian.com/documentation/tag">here</a> for the tags endpoint documentation. + * (Optional) A tag is a piece of data that is used by The Guardian to categorise content. Use this + * parameter to filter results by showing only the ones matching the entered tag. See here for a list of all tags, and here for the tags endpoint + * documentation. */ public Builder tag(Optional tag) { Utils.checkNotNull(tag, "tag"); this.tag = tag; return this; } - + public SourceTheGuardianApi build() { + return new SourceTheGuardianApi( - apiKey, - endDate, - query, - section, - startDate, - tag); + apiKey, endDate, query, + section, startDate, tag); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceThinkific.java b/src/main/java/com/airbyte/api/models/shared/SourceThinkific.java index 58620fc28..fdee36912 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceThinkific.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceThinkific.java @@ -11,21 +11,22 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceThinkific { +public class SourceThinkific { /** * Your Thinkific API key for authentication. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Thinkific sourceType; /** - * The subdomain of your Thinkific URL (e.g., if your URL is example.thinkific.com, your subdomain is "example". + * The subdomain of your Thinkific URL (e.g., if your URL is example.thinkific.com, your subdomain is + * "example". */ @JsonProperty("subdomain") private String subdomain; @@ -55,16 +56,18 @@ public Thinkific sourceType() { } /** - * The subdomain of your Thinkific URL (e.g., if your URL is example.thinkific.com, your subdomain is "example". + * The subdomain of your Thinkific URL (e.g., if your URL is example.thinkific.com, your subdomain is + * "example". */ @JsonIgnore public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your Thinkific API key for authentication. @@ -76,7 +79,8 @@ public SourceThinkific withApiKey(String apiKey) { } /** - * The subdomain of your Thinkific URL (e.g., if your URL is example.thinkific.com, your subdomain is "example". + * The subdomain of your Thinkific URL (e.g., if your URL is example.thinkific.com, your subdomain is + * "example". */ public SourceThinkific withSubdomain(String subdomain) { Utils.checkNotNull(subdomain, "subdomain"); @@ -84,7 +88,6 @@ public SourceThinkific withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +98,15 @@ public boolean equals(java.lang.Object o) { } SourceThinkific other = (SourceThinkific) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - subdomain); + return Utils.enhancedHash( + apiKey, sourceType, subdomain); } @Override @@ -115,17 +116,19 @@ public String toString() { "sourceType", sourceType, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String subdomain; - + private Builder() { // force use of static builder() method } + /** * Your Thinkific API key for authentication. */ @@ -135,21 +138,24 @@ public Builder apiKey(String apiKey) { return this; } + /** - * The subdomain of your Thinkific URL (e.g., if your URL is example.thinkific.com, your subdomain is "example". + * The subdomain of your Thinkific URL (e.g., if your URL is example.thinkific.com, your subdomain is + * "example". */ public Builder subdomain(String subdomain) { Utils.checkNotNull(subdomain, "subdomain"); this.subdomain = subdomain; return this; } - + public SourceThinkific build() { + return new SourceThinkific( - apiKey, - subdomain); + apiKey, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceThinkificCourses.java b/src/main/java/com/airbyte/api/models/shared/SourceThinkificCourses.java index 676db3904..da5b91edb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceThinkificCourses.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceThinkificCourses.java @@ -11,16 +11,18 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceThinkificCourses { @JsonProperty("X-Auth-Subdomain") private String xAuthSubdomain; + @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private ThinkificCourses sourceType; @@ -50,9 +52,10 @@ public ThinkificCourses sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceThinkificCourses withXAuthSubdomain(String xAuthSubdomain) { Utils.checkNotNull(xAuthSubdomain, "xAuthSubdomain"); @@ -66,7 +69,6 @@ public SourceThinkificCourses withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -77,17 +79,15 @@ public boolean equals(java.lang.Object o) { } SourceThinkificCourses other = (SourceThinkificCourses) o; return - Objects.deepEquals(this.xAuthSubdomain, other.xAuthSubdomain) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.xAuthSubdomain, other.xAuthSubdomain) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - xAuthSubdomain, - apiKey, - sourceType); + return Utils.enhancedHash( + xAuthSubdomain, apiKey, sourceType); } @Override @@ -97,35 +97,39 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String xAuthSubdomain; - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder xAuthSubdomain(String xAuthSubdomain) { Utils.checkNotNull(xAuthSubdomain, "xAuthSubdomain"); this.xAuthSubdomain = xAuthSubdomain; return this; } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceThinkificCourses build() { + return new SourceThinkificCourses( - xAuthSubdomain, - apiKey); + xAuthSubdomain, apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceThriveLearning.java b/src/main/java/com/airbyte/api/models/shared/SourceThriveLearning.java new file mode 100644 index 000000000..cf85ebded --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceThriveLearning.java @@ -0,0 +1,204 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Optional; + + +public class SourceThriveLearning { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("password") + private Optional password; + + + @JsonProperty("sourceType") + private ThriveLearning sourceType; + + + @JsonProperty("start_date") + private OffsetDateTime startDate; + + /** + * Your website Tenant ID (eu-west-000000 please contact support for your tenant) + */ + @JsonProperty("username") + private String username; + + @JsonCreator + public SourceThriveLearning( + @JsonProperty("password") Optional password, + @JsonProperty("start_date") OffsetDateTime startDate, + @JsonProperty("username") String username) { + Utils.checkNotNull(password, "password"); + Utils.checkNotNull(startDate, "startDate"); + Utils.checkNotNull(username, "username"); + this.password = password; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + this.username = username; + } + + public SourceThriveLearning( + OffsetDateTime startDate, + String username) { + this(Optional.empty(), startDate, username); + } + + @JsonIgnore + public Optional password() { + return password; + } + + @JsonIgnore + public ThriveLearning sourceType() { + return sourceType; + } + + @JsonIgnore + public OffsetDateTime startDate() { + return startDate; + } + + /** + * Your website Tenant ID (eu-west-000000 please contact support for your tenant) + */ + @JsonIgnore + public String username() { + return username; + } + + public static Builder builder() { + return new Builder(); + } + + + public SourceThriveLearning withPassword(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + + public SourceThriveLearning withPassword(Optional password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + public SourceThriveLearning withStartDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + /** + * Your website Tenant ID (eu-west-000000 please contact support for your tenant) + */ + public SourceThriveLearning withUsername(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceThriveLearning other = (SourceThriveLearning) o; + return + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + password, sourceType, startDate, + username); + } + + @Override + public String toString() { + return Utils.toString(SourceThriveLearning.class, + "password", password, + "sourceType", sourceType, + "startDate", startDate, + "username", username); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional password = Optional.empty(); + + private OffsetDateTime startDate; + + private String username; + + private Builder() { + // force use of static builder() method + } + + + public Builder password(String password) { + Utils.checkNotNull(password, "password"); + this.password = Optional.ofNullable(password); + return this; + } + + public Builder password(Optional password) { + Utils.checkNotNull(password, "password"); + this.password = password; + return this; + } + + + public Builder startDate(OffsetDateTime startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + + /** + * Your website Tenant ID (eu-west-000000 please contact support for your tenant) + */ + public Builder username(String username) { + Utils.checkNotNull(username, "username"); + this.username = username; + return this; + } + + public SourceThriveLearning build() { + + return new SourceThriveLearning( + password, startDate, username); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"thrive-learning\"", + new TypeReference() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTicketmaster.java b/src/main/java/com/airbyte/api/models/shared/SourceTicketmaster.java index bdf7d2d87..0a8120da2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTicketmaster.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTicketmaster.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceTicketmaster { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Ticketmaster sourceType; @@ -39,9 +40,10 @@ public Ticketmaster sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceTicketmaster withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceTicketmaster withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceTicketmaster other = (SourceTicketmaster) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceTicketmaster build() { + return new SourceTicketmaster( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTickettailor.java b/src/main/java/com/airbyte/api/models/shared/SourceTickettailor.java index 5f72cea01..4057287f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTickettailor.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTickettailor.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceTickettailor { +public class SourceTickettailor { /** * API key to use. Find it at https://www.getdrip.com/user/edit */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Tickettailor sourceType; @@ -45,9 +45,10 @@ public Tickettailor sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key to use. Find it at https://www.getdrip.com/user/edit @@ -58,7 +59,6 @@ public SourceTickettailor withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceTickettailor other = (SourceTickettailor) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * API key to use. Find it at https://www.getdrip.com/user/edit */ @@ -103,12 +104,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceTickettailor build() { + return new SourceTickettailor( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java index 29d00c2b6..c634cdc62 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketing.java @@ -17,11 +17,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourceTiktokMarketing { +public class SourceTiktokMarketing { /** * The attribution window in days. */ @@ -37,25 +36,30 @@ public class SourceTiktokMarketing { private Optional credentials; /** - * The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date. + * The date until which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this + * option will result in always syncing the data till the current date. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") private Optional endDate; /** - * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and + * Campaign streams. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("include_deleted") private Optional includeDeleted; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceType") private Optional sourceType; /** - * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated. + * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this + * parameter is not set, all data will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -82,7 +86,8 @@ public SourceTiktokMarketing( } public SourceTiktokMarketing() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } /** @@ -103,7 +108,9 @@ public Optional credentials() { } /** - * The date until which you'd like to replicate data for all incremental streams, in the format YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this option will result in always syncing the data till the current date. + * The date until which you'd like to replicate data for all incremental streams, in the format + * YYYY-MM-DD. All data generated between start_date and this date will be replicated. Not setting this + * option will result in always syncing the data till the current date. */ @JsonIgnore public Optional endDate() { @@ -111,7 +118,8 @@ public Optional endDate() { } /** - * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and + * Campaign streams. */ @JsonIgnore public Optional includeDeleted() { @@ -125,16 +133,18 @@ public Optional sourceType() { } /** - * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated. + * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this + * parameter is not set, all data will be replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The attribution window in days. @@ -145,6 +155,7 @@ public SourceTiktokMarketing withAttributionWindow(long attributionWindow) { return this; } + /** * The attribution window in days. */ @@ -163,6 +174,7 @@ public SourceTiktokMarketing withCredentials(SourceTiktokMarketingAuthentication return this; } + /** * Authentication method */ @@ -173,7 +185,9 @@ public SourceTiktokMarketing withCredentials(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -191,7 +208,8 @@ public SourceTiktokMarketing withEndDate(Optional endDate) { } /** - * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and + * Campaign streams. */ public SourceTiktokMarketing withIncludeDeleted(boolean includeDeleted) { Utils.checkNotNull(includeDeleted, "includeDeleted"); @@ -199,8 +217,10 @@ public SourceTiktokMarketing withIncludeDeleted(boolean includeDeleted) { return this; } + /** - * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and + * Campaign streams. */ public SourceTiktokMarketing withIncludeDeleted(Optional includeDeleted) { Utils.checkNotNull(includeDeleted, "includeDeleted"); @@ -209,7 +229,8 @@ public SourceTiktokMarketing withIncludeDeleted(Optional includeDeleted } /** - * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated. + * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this + * parameter is not set, all data will be replicated. */ public SourceTiktokMarketing withStartDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -217,8 +238,10 @@ public SourceTiktokMarketing withStartDate(LocalDate startDate) { return this; } + /** - * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated. + * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this + * parameter is not set, all data will be replicated. */ public SourceTiktokMarketing withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -226,7 +249,6 @@ public SourceTiktokMarketing withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -237,23 +259,19 @@ public boolean equals(java.lang.Object o) { } SourceTiktokMarketing other = (SourceTiktokMarketing) o; return - Objects.deepEquals(this.attributionWindow, other.attributionWindow) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.includeDeleted, other.includeDeleted) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.attributionWindow, other.attributionWindow) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.includeDeleted, other.includeDeleted) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - attributionWindow, - credentials, - endDate, - includeDeleted, - sourceType, - startDate); + return Utils.enhancedHash( + attributionWindow, credentials, endDate, + includeDeleted, sourceType, startDate); } @Override @@ -266,23 +284,25 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional attributionWindow; - + private Optional credentials = Optional.empty(); - + private Optional endDate = Optional.empty(); - + private Optional includeDeleted; - + private Optional startDate; - + private Builder() { // force use of static builder() method } + /** * The attribution window in days. */ @@ -301,6 +321,7 @@ public Builder attributionWindow(Optional attributionWindow) { return this; } + /** * Authentication method */ @@ -319,8 +340,11 @@ public Builder credentials(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -337,8 +363,10 @@ public Builder endDate(Optional endDate) { return this; } + /** - * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and + * Campaign streams. */ public Builder includeDeleted(boolean includeDeleted) { Utils.checkNotNull(includeDeleted, "includeDeleted"); @@ -347,7 +375,8 @@ public Builder includeDeleted(boolean includeDeleted) { } /** - * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and Campaign streams. + * Set to active if you want to include deleted data in report based streams and Ads, Ad Groups and + * Campaign streams. */ public Builder includeDeleted(Optional includeDeleted) { Utils.checkNotNull(includeDeleted, "includeDeleted"); @@ -355,8 +384,10 @@ public Builder includeDeleted(Optional includeDeleted) { return this; } + /** - * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated. + * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this + * parameter is not set, all data will be replicated. */ public Builder startDate(LocalDate startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -365,14 +396,15 @@ public Builder startDate(LocalDate startDate) { } /** - * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this parameter is not set, all data will be replicated. + * The Start Date in format: YYYY-MM-DD. Any data before this date will not be replicated. If this + * parameter is not set, all data will be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceTiktokMarketing build() { if (attributionWindow == null) { attributionWindow = _SINGLETON_VALUE_AttributionWindow.value(); @@ -383,14 +415,13 @@ public SourceTiktokMarketing build() { if (startDate == null) { startDate = _SINGLETON_VALUE_StartDate.value(); } + return new SourceTiktokMarketing( - attributionWindow, - credentials, - endDate, - includeDeleted, - startDate); + attributionWindow, credentials, endDate, + includeDeleted, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AttributionWindow = new LazySingletonValue<>( "attribution_window", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java index bb3cb7df9..24e1eb0b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthType.java @@ -14,7 +14,7 @@ public enum SourceTiktokMarketingAuthType { @JsonValue private final String value; - private SourceTiktokMarketingAuthType(String value) { + SourceTiktokMarketingAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthenticationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthenticationMethod.java index 56a339cdd..4535bd577 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthenticationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingAuthenticationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceTiktokMarketingAuthenticationMethod @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceTiktokMarketingAuthenticationMethod other = (SourceTiktokMarketingAuthenticationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingOAuth20.java index 339786ff4..09347f16c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingOAuth20.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceTiktokMarketingOAuth20 { +public class SourceTiktokMarketingOAuth20 { /** * Long-term Authorized Access Token. */ @@ -38,6 +37,7 @@ public class SourceTiktokMarketingOAuth20 { @JsonProperty("app_id") private String appId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -69,7 +69,8 @@ public SourceTiktokMarketingOAuth20( String accessToken, String appId, String secret) { - this(accessToken, Optional.empty(), appId, secret); + this(accessToken, Optional.empty(), appId, + secret); } /** @@ -110,9 +111,10 @@ public String secret() { return secret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Long-term Authorized Access Token. @@ -132,6 +134,7 @@ public SourceTiktokMarketingOAuth20 withAdvertiserId(String advertiserId) { return this; } + /** * The Advertiser ID to filter reports and streams. Let this empty to retrieve all. */ @@ -159,7 +162,6 @@ public SourceTiktokMarketingOAuth20 withSecret(String secret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -170,21 +172,18 @@ public boolean equals(java.lang.Object o) { } SourceTiktokMarketingOAuth20 other = (SourceTiktokMarketingOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.advertiserId, other.advertiserId) && - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.secret, other.secret); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.advertiserId, other.advertiserId) && + Utils.enhancedDeepEquals(this.appId, other.appId) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.secret, other.secret); } @Override public int hashCode() { - return Objects.hash( - accessToken, - advertiserId, - appId, - authType, - secret); + return Utils.enhancedHash( + accessToken, advertiserId, appId, + authType, secret); } @Override @@ -196,21 +195,23 @@ public String toString() { "authType", authType, "secret", secret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Optional advertiserId = Optional.empty(); - + private String appId; - + private String secret; - + private Builder() { // force use of static builder() method } + /** * Long-term Authorized Access Token. */ @@ -220,6 +221,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Advertiser ID to filter reports and streams. Let this empty to retrieve all. */ @@ -238,6 +240,7 @@ public Builder advertiserId(Optional advertiserId) { return this; } + /** * The Developer Application App ID. */ @@ -247,6 +250,7 @@ public Builder appId(String appId) { return this; } + /** * The Developer Application Secret. */ @@ -255,15 +259,15 @@ public Builder secret(String secret) { this.secret = secret; return this; } - + public SourceTiktokMarketingOAuth20 build() { + return new SourceTiktokMarketingOAuth20( - accessToken, - advertiserId, - appId, + accessToken, advertiserId, appId, secret); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java index c19fe58ef..2426a184a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceTiktokMarketingSchemasAuthType { @JsonValue private final String value; - private SourceTiktokMarketingSchemasAuthType(String value) { + SourceTiktokMarketingSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java index d42a851c5..be6241933 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTiktokMarketingTiktokMarketing.java @@ -14,7 +14,7 @@ public enum SourceTiktokMarketingTiktokMarketing { @JsonValue private final String value; - private SourceTiktokMarketingTiktokMarketing(String value) { + SourceTiktokMarketingTiktokMarketing(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTimely.java b/src/main/java/com/airbyte/api/models/shared/SourceTimely.java index 60a075c29..4979a4ce8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTimely.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTimely.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceTimely { +public class SourceTimely { /** * The Account ID for your Timely account */ @@ -28,6 +27,7 @@ public class SourceTimely { @JsonProperty("bearer_token") private String bearerToken; + @JsonProperty("sourceType") private Timely sourceType; @@ -80,9 +80,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Account ID for your Timely account @@ -111,7 +112,6 @@ public SourceTimely withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -122,18 +122,16 @@ public boolean equals(java.lang.Object o) { } SourceTimely other = (SourceTimely) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.bearerToken, other.bearerToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.bearerToken, other.bearerToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountId, - bearerToken, - sourceType, + return Utils.enhancedHash( + accountId, bearerToken, sourceType, startDate); } @@ -145,19 +143,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private String bearerToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * The Account ID for your Timely account */ @@ -167,6 +167,7 @@ public Builder accountId(String accountId) { return this; } + /** * The Bearer Token for your Timely account */ @@ -176,6 +177,7 @@ public Builder bearerToken(String bearerToken) { return this; } + /** * Earliest date from which you want to pull data from. */ @@ -184,14 +186,14 @@ public Builder startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } - + public SourceTimely build() { + return new SourceTimely( - accountId, - bearerToken, - startDate); + accountId, bearerToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTinyemail.java b/src/main/java/com/airbyte/api/models/shared/SourceTinyemail.java index 0a130d59c..7ba89a751 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTinyemail.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTinyemail.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceTinyemail { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Tinyemail sourceType; @@ -39,9 +40,10 @@ public Tinyemail sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceTinyemail withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceTinyemail withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceTinyemail other = (SourceTinyemail) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceTinyemail build() { + return new SourceTinyemail( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTmdb.java b/src/main/java/com/airbyte/api/models/shared/SourceTmdb.java index 5bb944b36..f00f6e73a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTmdb.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTmdb.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceTmdb { +public class SourceTmdb { /** * API Key from tmdb account */ @@ -39,6 +38,7 @@ public class SourceTmdb { @JsonProperty("query") private String query; + @JsonProperty("sourceType") private Tmdb sourceType; @@ -96,9 +96,10 @@ public Tmdb sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API Key from tmdb account @@ -136,7 +137,6 @@ public SourceTmdb withQuery(String query) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -147,21 +147,18 @@ public boolean equals(java.lang.Object o) { } SourceTmdb other = (SourceTmdb) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.language, other.language) && - Objects.deepEquals(this.movieId, other.movieId) && - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.language, other.language) && + Utils.enhancedDeepEquals(this.movieId, other.movieId) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - language, - movieId, - query, - sourceType); + return Utils.enhancedHash( + apiKey, language, movieId, + query, sourceType); } @Override @@ -173,21 +170,23 @@ public String toString() { "query", query, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String language; - + private String movieId; - + private String query; - + private Builder() { // force use of static builder() method } + /** * API Key from tmdb account */ @@ -197,6 +196,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Language expressed in ISO 639-1 scheme, Mandate for required streams (Example en-US) */ @@ -206,6 +206,7 @@ public Builder language(String language) { return this; } + /** * Target movie ID, Mandate for movie streams (Example is 550) */ @@ -215,6 +216,7 @@ public Builder movieId(String movieId) { return this; } + /** * Target movie ID, Mandate for search streams */ @@ -223,15 +225,15 @@ public Builder query(String query) { this.query = query; return this; } - + public SourceTmdb build() { + return new SourceTmdb( - apiKey, - language, - movieId, + apiKey, language, movieId, query); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTodoist.java b/src/main/java/com/airbyte/api/models/shared/SourceTodoist.java index 709021fd7..afa1dfbc1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTodoist.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTodoist.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceTodoist { @@ -45,9 +45,10 @@ public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API authorization bearer token for authenticating the API @@ -58,7 +59,6 @@ public SourceTodoist withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceTodoist other = (SourceTodoist) o; return - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - sourceType, - token); + return Utils.enhancedHash( + sourceType, token); } @Override @@ -86,15 +85,17 @@ public String toString() { "sourceType", sourceType, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String token; - + private Builder() { // force use of static builder() method } + /** * API authorization bearer token for authenticating the API */ @@ -103,12 +104,14 @@ public Builder token(String token) { this.token = token; return this; } - + public SourceTodoist build() { + return new SourceTodoist( token); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceToggl.java b/src/main/java/com/airbyte/api/models/shared/SourceToggl.java index 2d65d69b6..ecce6be3e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceToggl.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceToggl.java @@ -12,12 +12,12 @@ import java.lang.Long; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceToggl { +public class SourceToggl { /** - * Your API Token. See <a href="https://developers.track.toggl.com/docs/authentication">here</a>. The token is case sensitive. + * Your API Token. See here. The + * token is case sensitive. */ @JsonProperty("api_token") private String apiToken; @@ -29,11 +29,12 @@ public class SourceToggl { private String endDate; /** - * Your organization id. See <a href="https://developers.track.toggl.com/docs/organization">here</a>. + * Your organization id. See here. */ @JsonProperty("organization_id") private long organizationId; + @JsonProperty("sourceType") private Toggl sourceType; @@ -44,7 +45,7 @@ public class SourceToggl { private String startDate; /** - * Your workspace id. See <a href="https://developers.track.toggl.com/docs/workspaces">here</a>. + * Your workspace id. See here. */ @JsonProperty("workspace_id") private long workspaceId; @@ -70,7 +71,8 @@ public SourceToggl( } /** - * Your API Token. See <a href="https://developers.track.toggl.com/docs/authentication">here</a>. The token is case sensitive. + * Your API Token. See here. The + * token is case sensitive. */ @JsonIgnore public String apiToken() { @@ -86,7 +88,7 @@ public String endDate() { } /** - * Your organization id. See <a href="https://developers.track.toggl.com/docs/organization">here</a>. + * Your organization id. See here. */ @JsonIgnore public long organizationId() { @@ -107,19 +109,21 @@ public String startDate() { } /** - * Your workspace id. See <a href="https://developers.track.toggl.com/docs/workspaces">here</a>. + * Your workspace id. See here. */ @JsonIgnore public long workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Token. See <a href="https://developers.track.toggl.com/docs/authentication">here</a>. The token is case sensitive. + * Your API Token. See here. The + * token is case sensitive. */ public SourceToggl withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -137,7 +141,7 @@ public SourceToggl withEndDate(String endDate) { } /** - * Your organization id. See <a href="https://developers.track.toggl.com/docs/organization">here</a>. + * Your organization id. See here. */ public SourceToggl withOrganizationId(long organizationId) { Utils.checkNotNull(organizationId, "organizationId"); @@ -155,7 +159,7 @@ public SourceToggl withStartDate(String startDate) { } /** - * Your workspace id. See <a href="https://developers.track.toggl.com/docs/workspaces">here</a>. + * Your workspace id. See here. */ public SourceToggl withWorkspaceId(long workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); @@ -163,7 +167,6 @@ public SourceToggl withWorkspaceId(long workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,23 +177,19 @@ public boolean equals(java.lang.Object o) { } SourceToggl other = (SourceToggl) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.organizationId, other.organizationId) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - apiToken, - endDate, - organizationId, - sourceType, - startDate, - workspaceId); + return Utils.enhancedHash( + apiToken, endDate, organizationId, + sourceType, startDate, workspaceId); } @Override @@ -203,25 +202,28 @@ public String toString() { "startDate", startDate, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private String endDate; - + private Long organizationId; - + private String startDate; - + private Long workspaceId; - + private Builder() { // force use of static builder() method } + /** - * Your API Token. See <a href="https://developers.track.toggl.com/docs/authentication">here</a>. The token is case sensitive. + * Your API Token. See here. The + * token is case sensitive. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -229,6 +231,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * To retrieve time entries created before the given date (inclusive). */ @@ -238,8 +241,9 @@ public Builder endDate(String endDate) { return this; } + /** - * Your organization id. See <a href="https://developers.track.toggl.com/docs/organization">here</a>. + * Your organization id. See here. */ public Builder organizationId(long organizationId) { Utils.checkNotNull(organizationId, "organizationId"); @@ -247,6 +251,7 @@ public Builder organizationId(long organizationId) { return this; } + /** * To retrieve time entries created after the given date (inclusive). */ @@ -256,24 +261,24 @@ public Builder startDate(String startDate) { return this; } + /** - * Your workspace id. See <a href="https://developers.track.toggl.com/docs/workspaces">here</a>. + * Your workspace id. See here. */ public Builder workspaceId(long workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public SourceToggl build() { + return new SourceToggl( - apiToken, - endDate, - organizationId, - startDate, - workspaceId); + apiToken, endDate, organizationId, + startDate, workspaceId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrackPms.java b/src/main/java/com/airbyte/api/models/shared/SourceTrackPms.java index 2f342f88a..6862e444e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrackPms.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrackPms.java @@ -13,21 +13,24 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceTrackPms { @JsonProperty("api_key") private String apiKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("api_secret") private Optional apiSecret; + @JsonProperty("customer_domain") private String customerDomain; + @JsonProperty("sourceType") private TrackPms sourceType; @@ -71,9 +74,10 @@ public TrackPms sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceTrackPms withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -87,6 +91,7 @@ public SourceTrackPms withApiSecret(String apiSecret) { return this; } + public SourceTrackPms withApiSecret(Optional apiSecret) { Utils.checkNotNull(apiSecret, "apiSecret"); this.apiSecret = apiSecret; @@ -99,7 +104,6 @@ public SourceTrackPms withCustomerDomain(String customerDomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -110,18 +114,16 @@ public boolean equals(java.lang.Object o) { } SourceTrackPms other = (SourceTrackPms) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiSecret, other.apiSecret) && - Objects.deepEquals(this.customerDomain, other.customerDomain) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiSecret, other.apiSecret) && + Utils.enhancedDeepEquals(this.customerDomain, other.customerDomain) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiSecret, - customerDomain, + return Utils.enhancedHash( + apiKey, apiSecret, customerDomain, sourceType); } @@ -133,25 +135,28 @@ public String toString() { "customerDomain", customerDomain, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional apiSecret = Optional.empty(); - + private String customerDomain; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder apiSecret(String apiSecret) { Utils.checkNotNull(apiSecret, "apiSecret"); this.apiSecret = Optional.ofNullable(apiSecret); @@ -164,19 +169,20 @@ public Builder apiSecret(Optional apiSecret) { return this; } + public Builder customerDomain(String customerDomain) { Utils.checkNotNull(customerDomain, "customerDomain"); this.customerDomain = customerDomain; return this; } - + public SourceTrackPms build() { + return new SourceTrackPms( - apiKey, - apiSecret, - customerDomain); + apiKey, apiSecret, customerDomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrello.java b/src/main/java/com/airbyte/api/models/shared/SourceTrello.java index a50864644..22f05646b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrello.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrello.java @@ -16,35 +16,44 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceTrello { +public class SourceTrello { /** - * IDs of the boards to replicate data from. If left empty, data from all boards to which you have access will be replicated. Please note that this is not the 8-character ID in the board's shortLink (URL of the board). Rather, what is required here is the 24-character ID usually returned by the API + * IDs of the boards to replicate data from. If left empty, data from all boards to which you have + * access will be replicated. Please note that this is not the 8-character ID in the board's shortLink + * (URL of the board). + * + *

    Rather, what is required here is the 24-character ID usually returned by the API */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("board_ids") private Optional> boardIds; /** - * Trello API key. See the <a href="https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/#using-basic-oauth">docs</a> for instructions on how to generate it. + * Trello API key. See the docs + * for instructions on how to generate it. */ @JsonProperty("key") private String key; + @JsonProperty("sourceType") private Trello sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; /** - * Trello API token. See the <a href="https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/#using-basic-oauth">docs</a> for instructions on how to generate it. + * Trello API token. See the docs + * for instructions on how to generate it. */ @JsonProperty("token") private String token; @@ -70,11 +79,16 @@ public SourceTrello( String key, OffsetDateTime startDate, String token) { - this(Optional.empty(), key, startDate, token); + this(Optional.empty(), key, startDate, + token); } /** - * IDs of the boards to replicate data from. If left empty, data from all boards to which you have access will be replicated. Please note that this is not the 8-character ID in the board's shortLink (URL of the board). Rather, what is required here is the 24-character ID usually returned by the API + * IDs of the boards to replicate data from. If left empty, data from all boards to which you have + * access will be replicated. Please note that this is not the 8-character ID in the board's shortLink + * (URL of the board). + * + *

    Rather, what is required here is the 24-character ID usually returned by the API */ @SuppressWarnings("unchecked") @JsonIgnore @@ -83,7 +97,9 @@ public Optional> boardIds() { } /** - * Trello API key. See the <a href="https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/#using-basic-oauth">docs</a> for instructions on how to generate it. + * Trello API key. See the docs + * for instructions on how to generate it. */ @JsonIgnore public String key() { @@ -96,7 +112,8 @@ public Trello sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { @@ -104,19 +121,26 @@ public OffsetDateTime startDate() { } /** - * Trello API token. See the <a href="https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/#using-basic-oauth">docs</a> for instructions on how to generate it. + * Trello API token. See the docs + * for instructions on how to generate it. */ @JsonIgnore public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * IDs of the boards to replicate data from. If left empty, data from all boards to which you have access will be replicated. Please note that this is not the 8-character ID in the board's shortLink (URL of the board). Rather, what is required here is the 24-character ID usually returned by the API + * IDs of the boards to replicate data from. If left empty, data from all boards to which you have + * access will be replicated. Please note that this is not the 8-character ID in the board's shortLink + * (URL of the board). + * + *

    Rather, what is required here is the 24-character ID usually returned by the API */ public SourceTrello withBoardIds(List boardIds) { Utils.checkNotNull(boardIds, "boardIds"); @@ -124,8 +148,13 @@ public SourceTrello withBoardIds(List boardIds) { return this; } + /** - * IDs of the boards to replicate data from. If left empty, data from all boards to which you have access will be replicated. Please note that this is not the 8-character ID in the board's shortLink (URL of the board). Rather, what is required here is the 24-character ID usually returned by the API + * IDs of the boards to replicate data from. If left empty, data from all boards to which you have + * access will be replicated. Please note that this is not the 8-character ID in the board's shortLink + * (URL of the board). + * + *

    Rather, what is required here is the 24-character ID usually returned by the API */ public SourceTrello withBoardIds(Optional> boardIds) { Utils.checkNotNull(boardIds, "boardIds"); @@ -134,7 +163,9 @@ public SourceTrello withBoardIds(Optional> boardIds) { } /** - * Trello API key. See the <a href="https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/#using-basic-oauth">docs</a> for instructions on how to generate it. + * Trello API key. See the docs + * for instructions on how to generate it. */ public SourceTrello withKey(String key) { Utils.checkNotNull(key, "key"); @@ -143,7 +174,8 @@ public SourceTrello withKey(String key) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceTrello withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -152,7 +184,9 @@ public SourceTrello withStartDate(OffsetDateTime startDate) { } /** - * Trello API token. See the <a href="https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/#using-basic-oauth">docs</a> for instructions on how to generate it. + * Trello API token. See the docs + * for instructions on how to generate it. */ public SourceTrello withToken(String token) { Utils.checkNotNull(token, "token"); @@ -160,7 +194,6 @@ public SourceTrello withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -171,21 +204,18 @@ public boolean equals(java.lang.Object o) { } SourceTrello other = (SourceTrello) o; return - Objects.deepEquals(this.boardIds, other.boardIds) && - Objects.deepEquals(this.key, other.key) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.boardIds, other.boardIds) && + Utils.enhancedDeepEquals(this.key, other.key) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - boardIds, - key, - sourceType, - startDate, - token); + return Utils.enhancedHash( + boardIds, key, sourceType, + startDate, token); } @Override @@ -197,23 +227,29 @@ public String toString() { "startDate", startDate, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> boardIds = Optional.empty(); - + private String key; - + private OffsetDateTime startDate; - + private String token; - + private Builder() { // force use of static builder() method } + /** - * IDs of the boards to replicate data from. If left empty, data from all boards to which you have access will be replicated. Please note that this is not the 8-character ID in the board's shortLink (URL of the board). Rather, what is required here is the 24-character ID usually returned by the API + * IDs of the boards to replicate data from. If left empty, data from all boards to which you have + * access will be replicated. Please note that this is not the 8-character ID in the board's shortLink + * (URL of the board). + * + *

    Rather, what is required here is the 24-character ID usually returned by the API */ public Builder boardIds(List boardIds) { Utils.checkNotNull(boardIds, "boardIds"); @@ -222,7 +258,11 @@ public Builder boardIds(List boardIds) { } /** - * IDs of the boards to replicate data from. If left empty, data from all boards to which you have access will be replicated. Please note that this is not the 8-character ID in the board's shortLink (URL of the board). Rather, what is required here is the 24-character ID usually returned by the API + * IDs of the boards to replicate data from. If left empty, data from all boards to which you have + * access will be replicated. Please note that this is not the 8-character ID in the board's shortLink + * (URL of the board). + * + *

    Rather, what is required here is the 24-character ID usually returned by the API */ public Builder boardIds(Optional> boardIds) { Utils.checkNotNull(boardIds, "boardIds"); @@ -230,8 +270,11 @@ public Builder boardIds(Optional> boardIds) { return this; } + /** - * Trello API key. See the <a href="https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/#using-basic-oauth">docs</a> for instructions on how to generate it. + * Trello API key. See the docs + * for instructions on how to generate it. */ public Builder key(String key) { Utils.checkNotNull(key, "key"); @@ -239,8 +282,10 @@ public Builder key(String key) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -248,23 +293,26 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** - * Trello API token. See the <a href="https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/#using-basic-oauth">docs</a> for instructions on how to generate it. + * Trello API token. See the docs + * for instructions on how to generate it. */ public Builder token(String token) { Utils.checkNotNull(token, "token"); this.token = token; return this; } - + public SourceTrello build() { + return new SourceTrello( - boardIds, - key, - startDate, + boardIds, key, startDate, token); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTremendous.java b/src/main/java/com/airbyte/api/models/shared/SourceTremendous.java index 5913654c0..b0deb14e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTremendous.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTremendous.java @@ -11,19 +11,21 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceTremendous { +public class SourceTremendous { /** - * API key to use. You can generate an API key through the Tremendous dashboard under Team Settings > Developers. Save the key once you’ve generated it. + * API key to use. You can generate an API key through the Tremendous dashboard under Team Settings + * > Developers. Save the key once you’ve generated it. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("environment") private SourceTremendousEnvironment environment; + @JsonProperty("sourceType") private Tremendous sourceType; @@ -39,7 +41,8 @@ public SourceTremendous( } /** - * API key to use. You can generate an API key through the Tremendous dashboard under Team Settings > Developers. Save the key once you’ve generated it. + * API key to use. You can generate an API key through the Tremendous dashboard under Team Settings + * > Developers. Save the key once you’ve generated it. */ @JsonIgnore public String apiKey() { @@ -56,12 +59,14 @@ public Tremendous sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API key to use. You can generate an API key through the Tremendous dashboard under Team Settings > Developers. Save the key once you’ve generated it. + * API key to use. You can generate an API key through the Tremendous dashboard under Team Settings + * > Developers. Save the key once you’ve generated it. */ public SourceTremendous withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -75,7 +80,6 @@ public SourceTremendous withEnvironment(SourceTremendousEnvironment environment) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -86,17 +90,15 @@ public boolean equals(java.lang.Object o) { } SourceTremendous other = (SourceTremendous) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.environment, other.environment) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.environment, other.environment) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - environment, - sourceType); + return Utils.enhancedHash( + apiKey, environment, sourceType); } @Override @@ -106,19 +108,22 @@ public String toString() { "environment", environment, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private SourceTremendousEnvironment environment; - + private Builder() { // force use of static builder() method } + /** - * API key to use. You can generate an API key through the Tremendous dashboard under Team Settings > Developers. Save the key once you’ve generated it. + * API key to use. You can generate an API key through the Tremendous dashboard under Team Settings + * > Developers. Save the key once you’ve generated it. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -126,18 +131,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder environment(SourceTremendousEnvironment environment) { Utils.checkNotNull(environment, "environment"); this.environment = environment; return this; } - + public SourceTremendous build() { + return new SourceTremendous( - apiKey, - environment); + apiKey, environment); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java index f2384f5fa..d0f8a3459 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTremendousEnvironment.java @@ -15,7 +15,7 @@ public enum SourceTremendousEnvironment { @JsonValue private final String value; - private SourceTremendousEnvironment(String value) { + SourceTremendousEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilot.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilot.java index 432c8592a..3ebe6372b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilot.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilot.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; -public class SourceTrustpilot { +public class SourceTrustpilot { /** - * The names of business units which shall be synchronized. Some streams e.g. configured_business_units or private_reviews use this configuration. + * The names of business units which shall be synchronized. Some streams e.g. configured_business_units + * or private_reviews use this configuration. */ @JsonProperty("business_units") private List businessUnits; + @JsonProperty("credentials") private SourceTrustpilotAuthorizationMethod credentials; + @JsonProperty("sourceType") private Trustpilot sourceType; @@ -49,7 +51,8 @@ public SourceTrustpilot( } /** - * The names of business units which shall be synchronized. Some streams e.g. configured_business_units or private_reviews use this configuration. + * The names of business units which shall be synchronized. Some streams e.g. configured_business_units + * or private_reviews use this configuration. */ @JsonIgnore public List businessUnits() { @@ -74,12 +77,14 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The names of business units which shall be synchronized. Some streams e.g. configured_business_units or private_reviews use this configuration. + * The names of business units which shall be synchronized. Some streams e.g. configured_business_units + * or private_reviews use this configuration. */ public SourceTrustpilot withBusinessUnits(List businessUnits) { Utils.checkNotNull(businessUnits, "businessUnits"); @@ -102,7 +107,6 @@ public SourceTrustpilot withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -113,18 +117,16 @@ public boolean equals(java.lang.Object o) { } SourceTrustpilot other = (SourceTrustpilot) o; return - Objects.deepEquals(this.businessUnits, other.businessUnits) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.businessUnits, other.businessUnits) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - businessUnits, - credentials, - sourceType, + return Utils.enhancedHash( + businessUnits, credentials, sourceType, startDate); } @@ -136,21 +138,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List businessUnits; - + private SourceTrustpilotAuthorizationMethod credentials; - + private String startDate; - + private Builder() { // force use of static builder() method } + /** - * The names of business units which shall be synchronized. Some streams e.g. configured_business_units or private_reviews use this configuration. + * The names of business units which shall be synchronized. Some streams e.g. configured_business_units + * or private_reviews use this configuration. */ public Builder businessUnits(List businessUnits) { Utils.checkNotNull(businessUnits, "businessUnits"); @@ -158,12 +163,14 @@ public Builder businessUnits(List businessUnits) { return this; } + public Builder credentials(SourceTrustpilotAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } + /** * For streams with sync. method incremental the start date time to be used */ @@ -172,14 +179,14 @@ public Builder startDate(String startDate) { this.startDate = startDate; return this; } - + public SourceTrustpilot build() { + return new SourceTrustpilot( - businessUnits, - credentials, - startDate); + businessUnits, credentials, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAPIKey.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAPIKey.java index a6ff3ce59..207c6da5e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAPIKey.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAPIKey.java @@ -14,13 +14,14 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** * SourceTrustpilotAPIKey * - *

    The API key authentication method gives you access to only the streams which are part of the Public API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need to use authentication method OAuth 2.0. + *

    The API key authentication method gives you access to only the streams which are part of the Public + * API. When you want to get streams available via the Consumer API (e.g. the private reviews) you need + * to use authentication method OAuth 2.0. */ public class SourceTrustpilotAPIKey { @@ -56,9 +57,10 @@ public String clientId() { return clientId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API key of the Trustpilot API application. @@ -69,7 +71,6 @@ public SourceTrustpilotAPIKey withClientId(String clientId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +81,14 @@ public boolean equals(java.lang.Object o) { } SourceTrustpilotAPIKey other = (SourceTrustpilotAPIKey) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId); } @Override public int hashCode() { - return Objects.hash( - authType, - clientId); + return Utils.enhancedHash( + authType, clientId); } @Override @@ -97,15 +97,17 @@ public String toString() { "authType", authType, "clientId", clientId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private Builder() { // force use of static builder() method } + /** * The API key of the Trustpilot API application. */ @@ -114,12 +116,14 @@ public Builder clientId(String clientId) { this.clientId = clientId; return this; } - + public SourceTrustpilotAPIKey build() { + return new SourceTrustpilotAPIKey( clientId); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java index 72ec8c9fd..064bbffd9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthType.java @@ -14,7 +14,7 @@ public enum SourceTrustpilotAuthType { @JsonValue private final String value; - private SourceTrustpilotAuthType(String value) { + SourceTrustpilotAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthorizationMethod.java index f383eba1f..bb37bbbbd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceTrustpilotAuthorizationMethod._Deserializer.class) public class SourceTrustpilotAuthorizationMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceTrustpilotAuthorizationMethod other = (SourceTrustpilotAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotOAuth20.java index b78ab4c5a..77fff4a96 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotOAuth20.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceTrustpilotOAuth20 { +public class SourceTrustpilotOAuth20 { /** * Access Token for making authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -120,9 +120,10 @@ public OffsetDateTime tokenExpiryDate() { return tokenExpiryDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -169,7 +170,6 @@ public SourceTrustpilotOAuth20 withTokenExpiryDate(OffsetDateTime tokenExpiryDat return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -180,23 +180,19 @@ public boolean equals(java.lang.Object o) { } SourceTrustpilotOAuth20 other = (SourceTrustpilotOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tokenExpiryDate, other.tokenExpiryDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tokenExpiryDate, other.tokenExpiryDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, refreshToken, tokenExpiryDate); } @Override @@ -209,23 +205,25 @@ public String toString() { "refreshToken", refreshToken, "tokenExpiryDate", tokenExpiryDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private OffsetDateTime tokenExpiryDate; - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -235,6 +233,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The API key of the Trustpilot API application. (represents the OAuth Client ID) */ @@ -244,6 +243,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Secret of the Trustpilot API application. (represents the OAuth Client Secret) */ @@ -253,6 +253,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The key to refresh the expired access_token. */ @@ -262,6 +263,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * The date-time when the access token should be refreshed. */ @@ -270,16 +272,15 @@ public Builder tokenExpiryDate(OffsetDateTime tokenExpiryDate) { this.tokenExpiryDate = tokenExpiryDate; return this; } - + public SourceTrustpilotOAuth20 build() { + return new SourceTrustpilotOAuth20( - accessToken, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + accessToken, clientId, clientSecret, + refreshToken, tokenExpiryDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java index a58f09da9..267e98b4a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTrustpilotSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceTrustpilotSchemasAuthType { @JsonValue private final String value; - private SourceTrustpilotSchemasAuthType(String value) { + SourceTrustpilotSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTvmazeSchedule.java b/src/main/java/com/airbyte/api/models/shared/SourceTvmazeSchedule.java index 2c304362f..9086bc400 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTvmazeSchedule.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTvmazeSchedule.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceTvmazeSchedule { +public class SourceTvmazeSchedule { /** * Country code for domestic TV schedule retrieval. */ @@ -31,6 +30,7 @@ public class SourceTvmazeSchedule { @JsonProperty("end_date") private Optional endDate; + @JsonProperty("sourceType") private TvmazeSchedule sourceType; @@ -69,7 +69,8 @@ public SourceTvmazeSchedule( public SourceTvmazeSchedule( String domesticScheduleCountryCode, String startDate) { - this(domesticScheduleCountryCode, Optional.empty(), startDate, Optional.empty()); + this(domesticScheduleCountryCode, Optional.empty(), startDate, + Optional.empty()); } /** @@ -111,9 +112,10 @@ public Optional webScheduleCountryCode() { return webScheduleCountryCode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Country code for domestic TV schedule retrieval. @@ -133,6 +135,7 @@ public SourceTvmazeSchedule withEndDate(String endDate) { return this; } + /** * End date for TV schedule retrieval. May be in the future. Optional. */ @@ -162,6 +165,7 @@ public SourceTvmazeSchedule withWebScheduleCountryCode(String webScheduleCountry return this; } + /** * ISO 3166-1 country code for web TV schedule retrieval. Leave blank for * all countries plus global web channels (e.g. Netflix). Alternatively, @@ -173,7 +177,6 @@ public SourceTvmazeSchedule withWebScheduleCountryCode(Optional webSched return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -184,21 +187,18 @@ public boolean equals(java.lang.Object o) { } SourceTvmazeSchedule other = (SourceTvmazeSchedule) o; return - Objects.deepEquals(this.domesticScheduleCountryCode, other.domesticScheduleCountryCode) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.webScheduleCountryCode, other.webScheduleCountryCode); + Utils.enhancedDeepEquals(this.domesticScheduleCountryCode, other.domesticScheduleCountryCode) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.webScheduleCountryCode, other.webScheduleCountryCode); } @Override public int hashCode() { - return Objects.hash( - domesticScheduleCountryCode, - endDate, - sourceType, - startDate, - webScheduleCountryCode); + return Utils.enhancedHash( + domesticScheduleCountryCode, endDate, sourceType, + startDate, webScheduleCountryCode); } @Override @@ -210,21 +210,23 @@ public String toString() { "startDate", startDate, "webScheduleCountryCode", webScheduleCountryCode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String domesticScheduleCountryCode; - + private Optional endDate = Optional.empty(); - + private String startDate; - + private Optional webScheduleCountryCode = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Country code for domestic TV schedule retrieval. */ @@ -234,6 +236,7 @@ public Builder domesticScheduleCountryCode(String domesticScheduleCountryCode) { return this; } + /** * End date for TV schedule retrieval. May be in the future. Optional. */ @@ -252,6 +255,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * Start date for TV schedule retrieval. May be in the future. */ @@ -261,6 +265,7 @@ public Builder startDate(String startDate) { return this; } + /** * ISO 3166-1 country code for web TV schedule retrieval. Leave blank for * all countries plus global web channels (e.g. Netflix). Alternatively, @@ -282,15 +287,15 @@ public Builder webScheduleCountryCode(Optional webScheduleCountryCode) { this.webScheduleCountryCode = webScheduleCountryCode; return this; } - + public SourceTvmazeSchedule build() { + return new SourceTvmazeSchedule( - domesticScheduleCountryCode, - endDate, - startDate, + domesticScheduleCountryCode, endDate, startDate, webScheduleCountryCode); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTwelveData.java b/src/main/java/com/airbyte/api/models/shared/SourceTwelveData.java index a2834febd..89ef687cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTwelveData.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTwelveData.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceTwelveData { @JsonProperty("api_key") @@ -37,12 +37,14 @@ public class SourceTwelveData { private Optional exchange; /** - * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month + * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, + * 1day, 1week, 1month */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("interval") private Optional interval; + @JsonProperty("sourceType") private TwelveData sourceType; @@ -75,7 +77,8 @@ public SourceTwelveData( public SourceTwelveData( String apiKey) { - this(apiKey, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(apiKey, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } @JsonIgnore @@ -100,7 +103,8 @@ public Optional exchange() { } /** - * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month + * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, + * 1day, 1week, 1month */ @SuppressWarnings("unchecked") @JsonIgnore @@ -121,9 +125,10 @@ public Optional symbol() { return symbol; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceTwelveData withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -140,6 +145,7 @@ public SourceTwelveData withCountry(String country) { return this; } + /** * Where instrument is traded */ @@ -158,6 +164,7 @@ public SourceTwelveData withExchange(String exchange) { return this; } + /** * Where instrument is traded */ @@ -168,7 +175,8 @@ public SourceTwelveData withExchange(Optional exchange) { } /** - * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month + * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, + * 1day, 1week, 1month */ public SourceTwelveData withInterval(SourceTwelveDataInterval interval) { Utils.checkNotNull(interval, "interval"); @@ -176,8 +184,10 @@ public SourceTwelveData withInterval(SourceTwelveDataInterval interval) { return this; } + /** - * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month + * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, + * 1day, 1week, 1month */ public SourceTwelveData withInterval(Optional interval) { Utils.checkNotNull(interval, "interval"); @@ -194,6 +204,7 @@ public SourceTwelveData withSymbol(String symbol) { return this; } + /** * Ticker of the instrument */ @@ -203,7 +214,6 @@ public SourceTwelveData withSymbol(Optional symbol) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -214,23 +224,19 @@ public boolean equals(java.lang.Object o) { } SourceTwelveData other = (SourceTwelveData) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.country, other.country) && - Objects.deepEquals(this.exchange, other.exchange) && - Objects.deepEquals(this.interval, other.interval) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.symbol, other.symbol); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.country, other.country) && + Utils.enhancedDeepEquals(this.exchange, other.exchange) && + Utils.enhancedDeepEquals(this.interval, other.interval) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.symbol, other.symbol); } @Override public int hashCode() { - return Objects.hash( - apiKey, - country, - exchange, - interval, - sourceType, - symbol); + return Utils.enhancedHash( + apiKey, country, exchange, + interval, sourceType, symbol); } @Override @@ -243,29 +249,32 @@ public String toString() { "sourceType", sourceType, "symbol", symbol); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional country = Optional.empty(); - + private Optional exchange = Optional.empty(); - + private Optional interval; - + private Optional symbol = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + /** * Where instrument is traded */ @@ -284,6 +293,7 @@ public Builder country(Optional country) { return this; } + /** * Where instrument is traded */ @@ -302,8 +312,10 @@ public Builder exchange(Optional exchange) { return this; } + /** - * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month + * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, + * 1day, 1week, 1month */ public Builder interval(SourceTwelveDataInterval interval) { Utils.checkNotNull(interval, "interval"); @@ -312,7 +324,8 @@ public Builder interval(SourceTwelveDataInterval interval) { } /** - * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month + * Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, + * 1day, 1week, 1month */ public Builder interval(Optional interval) { Utils.checkNotNull(interval, "interval"); @@ -320,6 +333,7 @@ public Builder interval(Optional interval) { return this; } + /** * Ticker of the instrument */ @@ -337,19 +351,18 @@ public Builder symbol(Optional symbol) { this.symbol = symbol; return this; } - + public SourceTwelveData build() { if (interval == null) { interval = _SINGLETON_VALUE_Interval.value(); } + return new SourceTwelveData( - apiKey, - country, - exchange, - interval, - symbol); + apiKey, country, exchange, + interval, symbol); } + private static final LazySingletonValue> _SINGLETON_VALUE_Interval = new LazySingletonValue<>( "interval", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTwelveDataInterval.java b/src/main/java/com/airbyte/api/models/shared/SourceTwelveDataInterval.java index b5707515c..548ae0337 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTwelveDataInterval.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTwelveDataInterval.java @@ -11,7 +11,8 @@ /** * SourceTwelveDataInterval * - *

    Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, 1day, 1week, 1month + *

    Between two consecutive points in time series Supports: 1min, 5min, 15min, 30min, 45min, 1h, 2h, 4h, + * 1day, 1week, 1month */ public enum SourceTwelveDataInterval { ONEMIN("1min"), @@ -29,7 +30,7 @@ public enum SourceTwelveDataInterval { @JsonValue private final String value; - private SourceTwelveDataInterval(String value) { + SourceTwelveDataInterval(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTwilio.java b/src/main/java/com/airbyte/api/models/shared/SourceTwilio.java index 80aaf7842..263fe8d1b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTwilio.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTwilio.java @@ -15,11 +15,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceTwilio { +public class SourceTwilio { /** * Twilio account SID */ @@ -39,11 +38,13 @@ public class SourceTwilio { @JsonProperty("lookback_window") private Optional lookbackWindow; + @JsonProperty("sourceType") private Twilio sourceType; /** - * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -69,7 +70,8 @@ public SourceTwilio( String accountSid, String authToken, OffsetDateTime startDate) { - this(accountSid, authToken, Optional.empty(), startDate); + this(accountSid, authToken, Optional.empty(), + startDate); } /** @@ -102,16 +104,18 @@ public Twilio sourceType() { } /** - * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be + * replicated. */ @JsonIgnore public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Twilio account SID @@ -140,6 +144,7 @@ public SourceTwilio withLookbackWindow(long lookbackWindow) { return this; } + /** * How far into the past to look for records. (in minutes) */ @@ -150,7 +155,8 @@ public SourceTwilio withLookbackWindow(Optional lookbackWindow) { } /** - * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be + * replicated. */ public SourceTwilio withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -158,7 +164,6 @@ public SourceTwilio withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -169,21 +174,18 @@ public boolean equals(java.lang.Object o) { } SourceTwilio other = (SourceTwilio) o; return - Objects.deepEquals(this.accountSid, other.accountSid) && - Objects.deepEquals(this.authToken, other.authToken) && - Objects.deepEquals(this.lookbackWindow, other.lookbackWindow) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountSid, other.accountSid) && + Utils.enhancedDeepEquals(this.authToken, other.authToken) && + Utils.enhancedDeepEquals(this.lookbackWindow, other.lookbackWindow) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountSid, - authToken, - lookbackWindow, - sourceType, - startDate); + return Utils.enhancedHash( + accountSid, authToken, lookbackWindow, + sourceType, startDate); } @Override @@ -195,21 +197,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountSid; - + private String authToken; - + private Optional lookbackWindow; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * Twilio account SID */ @@ -219,6 +223,7 @@ public Builder accountSid(String accountSid) { return this; } + /** * Twilio Auth Token. */ @@ -228,6 +233,7 @@ public Builder authToken(String authToken) { return this; } + /** * How far into the past to look for records. (in minutes) */ @@ -246,26 +252,28 @@ public Builder lookbackWindow(Optional lookbackWindow) { return this; } + /** - * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be replicated. + * UTC date and time in the format 2020-10-01T00:00:00Z. Any data before this date will not be + * replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceTwilio build() { if (lookbackWindow == null) { lookbackWindow = _SINGLETON_VALUE_LookbackWindow.value(); } + return new SourceTwilio( - accountSid, - authToken, - lookbackWindow, + accountSid, authToken, lookbackWindow, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_LookbackWindow = new LazySingletonValue<>( "lookback_window", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTwilioTaskrouter.java b/src/main/java/com/airbyte/api/models/shared/SourceTwilioTaskrouter.java index 9f2753fff..c201420b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTwilioTaskrouter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTwilioTaskrouter.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceTwilioTaskrouter { +public class SourceTwilioTaskrouter { /** * Twilio Account ID */ @@ -27,6 +26,7 @@ public class SourceTwilioTaskrouter { @JsonProperty("auth_token") private String authToken; + @JsonProperty("sourceType") private TwilioTaskrouter sourceType; @@ -62,9 +62,10 @@ public TwilioTaskrouter sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Twilio Account ID @@ -84,7 +85,6 @@ public SourceTwilioTaskrouter withAuthToken(String authToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceTwilioTaskrouter other = (SourceTwilioTaskrouter) o; return - Objects.deepEquals(this.accountSid, other.accountSid) && - Objects.deepEquals(this.authToken, other.authToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountSid, other.accountSid) && + Utils.enhancedDeepEquals(this.authToken, other.authToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountSid, - authToken, - sourceType); + return Utils.enhancedHash( + accountSid, authToken, sourceType); } @Override @@ -115,17 +113,19 @@ public String toString() { "authToken", authToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountSid; - + private String authToken; - + private Builder() { // force use of static builder() method } + /** * Twilio Account ID */ @@ -135,6 +135,7 @@ public Builder accountSid(String accountSid) { return this; } + /** * Twilio Auth Token */ @@ -143,13 +144,14 @@ public Builder authToken(String authToken) { this.authToken = authToken; return this; } - + public SourceTwilioTaskrouter build() { + return new SourceTwilioTaskrouter( - accountSid, - authToken); + accountSid, authToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTwitter.java b/src/main/java/com/airbyte/api/models/shared/SourceTwitter.java index 0abd5bc60..e422d8b37 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTwitter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTwitter.java @@ -14,13 +14,14 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceTwitter { +public class SourceTwitter { /** - * App only Bearer Token. See the <a href="https://developer.twitter.com/en/docs/authentication/oauth-2-0/bearer-tokens">docs</a> for more information on how to obtain this token. + * App only Bearer Token. See the docs for + * more information on how to obtain this token. */ @JsonProperty("api_key") private String apiKey; @@ -33,11 +34,14 @@ public class SourceTwitter { private Optional endDate; /** - * Query for matching Tweets. You can learn how to build this query by reading <a href="https://developer.twitter.com/en/docs/twitter-api/tweets/search/integrate/build-a-query"> build a query guide </a>. + * Query for matching Tweets. You can learn how to build this query by reading + * build a query guide . */ @JsonProperty("query") private String query; + @JsonProperty("sourceType") private Twitter sourceType; @@ -68,11 +72,14 @@ public SourceTwitter( public SourceTwitter( String apiKey, String query) { - this(apiKey, Optional.empty(), query, Optional.empty()); + this(apiKey, Optional.empty(), query, + Optional.empty()); } /** - * App only Bearer Token. See the <a href="https://developer.twitter.com/en/docs/authentication/oauth-2-0/bearer-tokens">docs</a> for more information on how to obtain this token. + * App only Bearer Token. See the docs for + * more information on how to obtain this token. */ @JsonIgnore public String apiKey() { @@ -88,7 +95,9 @@ public Optional endDate() { } /** - * Query for matching Tweets. You can learn how to build this query by reading <a href="https://developer.twitter.com/en/docs/twitter-api/tweets/search/integrate/build-a-query"> build a query guide </a>. + * Query for matching Tweets. You can learn how to build this query by reading + * build a query guide . */ @JsonIgnore public String query() { @@ -108,12 +117,15 @@ public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * App only Bearer Token. See the <a href="https://developer.twitter.com/en/docs/authentication/oauth-2-0/bearer-tokens">docs</a> for more information on how to obtain this token. + * App only Bearer Token. See the docs for + * more information on how to obtain this token. */ public SourceTwitter withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -130,6 +142,7 @@ public SourceTwitter withEndDate(OffsetDateTime endDate) { return this; } + /** * The end date for retrieving tweets must be a minimum of 10 seconds prior to the request time. */ @@ -140,7 +153,9 @@ public SourceTwitter withEndDate(Optional endDate) { } /** - * Query for matching Tweets. You can learn how to build this query by reading <a href="https://developer.twitter.com/en/docs/twitter-api/tweets/search/integrate/build-a-query"> build a query guide </a>. + * Query for matching Tweets. You can learn how to build this query by reading + * build a query guide . */ public SourceTwitter withQuery(String query) { Utils.checkNotNull(query, "query"); @@ -157,6 +172,7 @@ public SourceTwitter withStartDate(OffsetDateTime startDate) { return this; } + /** * The start date for retrieving tweets cannot be more than 7 days in the past. */ @@ -166,7 +182,6 @@ public SourceTwitter withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -177,21 +192,18 @@ public boolean equals(java.lang.Object o) { } SourceTwitter other = (SourceTwitter) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - endDate, - query, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, endDate, query, + sourceType, startDate); } @Override @@ -203,23 +215,27 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional endDate = Optional.empty(); - + private String query; - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * App only Bearer Token. See the <a href="https://developer.twitter.com/en/docs/authentication/oauth-2-0/bearer-tokens">docs</a> for more information on how to obtain this token. + * App only Bearer Token. See the docs for + * more information on how to obtain this token. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -227,6 +243,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The end date for retrieving tweets must be a minimum of 10 seconds prior to the request time. */ @@ -245,8 +262,11 @@ public Builder endDate(Optional endDate) { return this; } + /** - * Query for matching Tweets. You can learn how to build this query by reading <a href="https://developer.twitter.com/en/docs/twitter-api/tweets/search/integrate/build-a-query"> build a query guide </a>. + * Query for matching Tweets. You can learn how to build this query by reading + * build a query guide . */ public Builder query(String query) { Utils.checkNotNull(query, "query"); @@ -254,6 +274,7 @@ public Builder query(String query) { return this; } + /** * The start date for retrieving tweets cannot be more than 7 days in the past. */ @@ -271,15 +292,15 @@ public Builder startDate(Optional startDate) { this.startDate = startDate; return this; } - + public SourceTwitter build() { + return new SourceTwitter( - apiKey, - endDate, - query, + apiKey, endDate, query, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTyntecSms.java b/src/main/java/com/airbyte/api/models/shared/SourceTyntecSms.java index a185b5454..19da42a6b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTyntecSms.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTyntecSms.java @@ -13,13 +13,13 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceTyntecSms { +public class SourceTyntecSms { /** - * Your Tyntec API Key. See <a href="https://www.tyntec.com/docs/docs-center-sms-api-quick-start">here</a> + * Your Tyntec API Key. See here */ @JsonProperty("api_key") private String apiKey; @@ -37,6 +37,7 @@ public class SourceTyntecSms { @JsonProperty("message") private Optional message; + @JsonProperty("sourceType") private TyntecSms sourceType; @@ -67,11 +68,13 @@ public SourceTyntecSms( String apiKey, String from, String to) { - this(apiKey, from, Optional.empty(), to); + this(apiKey, from, Optional.empty(), + to); } /** - * Your Tyntec API Key. See <a href="https://www.tyntec.com/docs/docs-center-sms-api-quick-start">here</a> + * Your Tyntec API Key. See here */ @JsonIgnore public String apiKey() { @@ -107,12 +110,14 @@ public String to() { return to; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Tyntec API Key. See <a href="https://www.tyntec.com/docs/docs-center-sms-api-quick-start">here</a> + * Your Tyntec API Key. See here */ public SourceTyntecSms withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -138,6 +143,7 @@ public SourceTyntecSms withMessage(String message) { return this; } + /** * The content of the SMS message to be sent. */ @@ -156,7 +162,6 @@ public SourceTyntecSms withTo(String to) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -167,21 +172,18 @@ public boolean equals(java.lang.Object o) { } SourceTyntecSms other = (SourceTyntecSms) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.from, other.from) && - Objects.deepEquals(this.message, other.message) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.to, other.to); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.from, other.from) && + Utils.enhancedDeepEquals(this.message, other.message) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.to, other.to); } @Override public int hashCode() { - return Objects.hash( - apiKey, - from, - message, - sourceType, - to); + return Utils.enhancedHash( + apiKey, from, message, + sourceType, to); } @Override @@ -193,23 +195,26 @@ public String toString() { "sourceType", sourceType, "to", to); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String from; - + private Optional message = Optional.empty(); - + private String to; - + private Builder() { // force use of static builder() method } + /** - * Your Tyntec API Key. See <a href="https://www.tyntec.com/docs/docs-center-sms-api-quick-start">here</a> + * Your Tyntec API Key. See here */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -217,6 +222,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The phone number of the SMS message sender (international). */ @@ -226,6 +232,7 @@ public Builder from(String from) { return this; } + /** * The content of the SMS message to be sent. */ @@ -244,6 +251,7 @@ public Builder message(Optional message) { return this; } + /** * The phone number of the SMS message recipient (international). */ @@ -252,15 +260,15 @@ public Builder to(String to) { this.to = to; return this; } - + public SourceTyntecSms build() { + return new SourceTyntecSms( - apiKey, - from, - message, + apiKey, from, message, to); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeform.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeform.java index fbd531bda..a1a27058b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeform.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeform.java @@ -16,26 +16,32 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourceTypeform { @JsonProperty("credentials") private SourceTypeformAuthorizationMethod credentials; /** - * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find form URLs on Share panel + * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, + * all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. + * + *

    For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find + * form URLs on Share panel */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("form_ids") private Optional> formIds; + @JsonProperty("sourceType") private SourceTypeformTypeform sourceType; /** - * The date from which you'd like to replicate data for Typeform API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Typeform API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -66,7 +72,11 @@ public SourceTypeformAuthorizationMethod credentials() { } /** - * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find form URLs on Share panel + * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, + * all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. + * + *

    For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find + * form URLs on Share panel */ @SuppressWarnings("unchecked") @JsonIgnore @@ -80,16 +90,18 @@ public SourceTypeformTypeform sourceType() { } /** - * The date from which you'd like to replicate data for Typeform API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Typeform API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ @JsonIgnore public Optional startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceTypeform withCredentials(SourceTypeformAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -98,7 +110,11 @@ public SourceTypeform withCredentials(SourceTypeformAuthorizationMethod credenti } /** - * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find form URLs on Share panel + * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, + * all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. + * + *

    For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find + * form URLs on Share panel */ public SourceTypeform withFormIds(List formIds) { Utils.checkNotNull(formIds, "formIds"); @@ -106,8 +122,13 @@ public SourceTypeform withFormIds(List formIds) { return this; } + /** - * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find form URLs on Share panel + * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, + * all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. + * + *

    For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find + * form URLs on Share panel */ public SourceTypeform withFormIds(Optional> formIds) { Utils.checkNotNull(formIds, "formIds"); @@ -116,7 +137,8 @@ public SourceTypeform withFormIds(Optional> formIds) { } /** - * The date from which you'd like to replicate data for Typeform API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Typeform API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ public SourceTypeform withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -124,8 +146,10 @@ public SourceTypeform withStartDate(OffsetDateTime startDate) { return this; } + /** - * The date from which you'd like to replicate data for Typeform API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Typeform API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ public SourceTypeform withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -133,7 +157,6 @@ public SourceTypeform withStartDate(Optional startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -144,18 +167,16 @@ public boolean equals(java.lang.Object o) { } SourceTypeform other = (SourceTypeform) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.formIds, other.formIds) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.formIds, other.formIds) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - credentials, - formIds, - sourceType, + return Utils.enhancedHash( + credentials, formIds, sourceType, startDate); } @@ -167,27 +188,34 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceTypeformAuthorizationMethod credentials; - + private Optional> formIds = Optional.empty(); - + private Optional startDate = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceTypeformAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } + /** - * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find form URLs on Share panel + * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, + * all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. + * + *

    For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find + * form URLs on Share panel */ public Builder formIds(List formIds) { Utils.checkNotNull(formIds, "formIds"); @@ -196,7 +224,11 @@ public Builder formIds(List formIds) { } /** - * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find form URLs on Share panel + * When this parameter is set, the connector will replicate data only from the input forms. Otherwise, + * all forms in your Typeform account will be replicated. You can find form IDs in your form URLs. + * + *

    For example, in the URL "https://mysite.typeform.com/to/u6nXL7" the form_id is u6nXL7. You can find + * form URLs on Share panel */ public Builder formIds(Optional> formIds) { Utils.checkNotNull(formIds, "formIds"); @@ -204,8 +236,10 @@ public Builder formIds(Optional> formIds) { return this; } + /** - * The date from which you'd like to replicate data for Typeform API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Typeform API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -214,21 +248,22 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The date from which you'd like to replicate data for Typeform API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Typeform API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceTypeform build() { + return new SourceTypeform( - credentials, - formIds, - startDate); + credentials, formIds, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java index 1e5fdfc2f..a75c6ea4d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthType.java @@ -14,7 +14,7 @@ public enum SourceTypeformAuthType { @JsonValue private final String value; - private SourceTypeformAuthType(String value) { + SourceTypeformAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthorizationMethod.java index 1fec6004e..94a0ee37c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceTypeformAuthorizationMethod._Deserializer.class) public class SourceTypeformAuthorizationMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceTypeformAuthorizationMethod other = (SourceTypeformAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformOAuth20.java index f9a113de5..3a0f1c693 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformOAuth20.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceTypeformOAuth20 { +public class SourceTypeformOAuth20 { /** * Access Token for making authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -120,9 +120,10 @@ public OffsetDateTime tokenExpiryDate() { return tokenExpiryDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -169,7 +170,6 @@ public SourceTypeformOAuth20 withTokenExpiryDate(OffsetDateTime tokenExpiryDate) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -180,23 +180,19 @@ public boolean equals(java.lang.Object o) { } SourceTypeformOAuth20 other = (SourceTypeformOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.tokenExpiryDate, other.tokenExpiryDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.tokenExpiryDate, other.tokenExpiryDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + return Utils.enhancedHash( + accessToken, authType, clientId, + clientSecret, refreshToken, tokenExpiryDate); } @Override @@ -209,23 +205,25 @@ public String toString() { "refreshToken", refreshToken, "tokenExpiryDate", tokenExpiryDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private OffsetDateTime tokenExpiryDate; - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -235,6 +233,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Client ID of the Typeform developer application. */ @@ -244,6 +243,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret the Typeform developer application. */ @@ -253,6 +253,7 @@ public Builder clientSecret(String clientSecret) { return this; } + /** * The key to refresh the expired access_token. */ @@ -262,6 +263,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * The date-time when the access token should be refreshed. */ @@ -270,16 +272,15 @@ public Builder tokenExpiryDate(OffsetDateTime tokenExpiryDate) { this.tokenExpiryDate = tokenExpiryDate; return this; } - + public SourceTypeformOAuth20 build() { + return new SourceTypeformOAuth20( - accessToken, - clientId, - clientSecret, - refreshToken, - tokenExpiryDate); + accessToken, clientId, clientSecret, + refreshToken, tokenExpiryDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformPrivateToken.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformPrivateToken.java index 012fa40e4..65d64672b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformPrivateToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformPrivateToken.java @@ -14,17 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceTypeformPrivateToken { +public class SourceTypeformPrivateToken { /** * Log into your Typeform account and then generate a personal Access Token. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -51,9 +51,10 @@ public Optional authType() { return (Optional) authType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Log into your Typeform account and then generate a personal Access Token. @@ -64,7 +65,6 @@ public SourceTypeformPrivateToken withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +75,14 @@ public boolean equals(java.lang.Object o) { } SourceTypeformPrivateToken other = (SourceTypeformPrivateToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authType); + return Utils.enhancedHash( + accessToken, authType); } @Override @@ -92,15 +91,17 @@ public String toString() { "accessToken", accessToken, "authType", authType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** * Log into your Typeform account and then generate a personal Access Token. */ @@ -109,12 +110,14 @@ public Builder accessToken(String accessToken) { this.accessToken = accessToken; return this; } - + public SourceTypeformPrivateToken build() { + return new SourceTypeformPrivateToken( accessToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java index 59dd4b261..6ee802a8c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceTypeformSchemasAuthType { @JsonValue private final String value; - private SourceTypeformSchemasAuthType(String value) { + SourceTypeformSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceTypeformTypeform.java b/src/main/java/com/airbyte/api/models/shared/SourceTypeformTypeform.java index 401f29426..96654ffcd 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceTypeformTypeform.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceTypeformTypeform.java @@ -14,7 +14,7 @@ public enum SourceTypeformTypeform { @JsonValue private final String value; - private SourceTypeformTypeform(String value) { + SourceTypeformTypeform(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUbidots.java b/src/main/java/com/airbyte/api/models/shared/SourceUbidots.java index aa5264147..a33220200 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceUbidots.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceUbidots.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceUbidots { +public class SourceUbidots { /** * API token to use for authentication. Obtain it from your Ubidots account. */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private Ubidots sourceType; @@ -45,9 +45,10 @@ public Ubidots sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API token to use for authentication. Obtain it from your Ubidots account. @@ -58,7 +59,6 @@ public SourceUbidots withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceUbidots other = (SourceUbidots) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * API token to use for authentication. Obtain it from your Ubidots account. */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public SourceUbidots build() { + return new SourceUbidots( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUnleash.java b/src/main/java/com/airbyte/api/models/shared/SourceUnleash.java index 80fc96ae7..19f20ee77 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceUnleash.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceUnleash.java @@ -13,13 +13,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceUnleash { +public class SourceUnleash { /** - * Your API Token (Server-Side SDK [Client]). See <a href="https://docs.getunleash.io/how-to/how-to-create-api-tokens/">here</a>. The token is case sensitive. + * Your API Token (Server-Side SDK [Client]). See here. The token is case + * sensitive. */ @JsonProperty("api_token") private String apiToken; @@ -31,19 +32,24 @@ public class SourceUnleash { private String apiUrl; /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("nameprefix") private Optional nameprefix; /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("project_name") private Optional projectName; + @JsonProperty("sourceType") private Unleash sourceType; @@ -67,11 +73,14 @@ public SourceUnleash( public SourceUnleash( String apiToken, String apiUrl) { - this(apiToken, apiUrl, Optional.empty(), Optional.empty()); + this(apiToken, apiUrl, Optional.empty(), + Optional.empty()); } /** - * Your API Token (Server-Side SDK [Client]). See <a href="https://docs.getunleash.io/how-to/how-to-create-api-tokens/">here</a>. The token is case sensitive. + * Your API Token (Server-Side SDK [Client]). See here. The token is case + * sensitive. */ @JsonIgnore public String apiToken() { @@ -87,7 +96,9 @@ public String apiUrl() { } /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ @JsonIgnore public Optional nameprefix() { @@ -95,7 +106,9 @@ public Optional nameprefix() { } /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ @JsonIgnore public Optional projectName() { @@ -107,12 +120,15 @@ public Unleash sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Token (Server-Side SDK [Client]). See <a href="https://docs.getunleash.io/how-to/how-to-create-api-tokens/">here</a>. The token is case sensitive. + * Your API Token (Server-Side SDK [Client]). See here. The token is case + * sensitive. */ public SourceUnleash withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -130,7 +146,9 @@ public SourceUnleash withApiUrl(String apiUrl) { } /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ public SourceUnleash withNameprefix(String nameprefix) { Utils.checkNotNull(nameprefix, "nameprefix"); @@ -138,8 +156,11 @@ public SourceUnleash withNameprefix(String nameprefix) { return this; } + /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ public SourceUnleash withNameprefix(Optional nameprefix) { Utils.checkNotNull(nameprefix, "nameprefix"); @@ -148,7 +169,9 @@ public SourceUnleash withNameprefix(Optional nameprefix) { } /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ public SourceUnleash withProjectName(String projectName) { Utils.checkNotNull(projectName, "projectName"); @@ -156,8 +179,11 @@ public SourceUnleash withProjectName(String projectName) { return this; } + /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ public SourceUnleash withProjectName(Optional projectName) { Utils.checkNotNull(projectName, "projectName"); @@ -165,7 +191,6 @@ public SourceUnleash withProjectName(Optional projectName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -176,21 +201,18 @@ public boolean equals(java.lang.Object o) { } SourceUnleash other = (SourceUnleash) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.apiUrl, other.apiUrl) && - Objects.deepEquals(this.nameprefix, other.nameprefix) && - Objects.deepEquals(this.projectName, other.projectName) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.apiUrl, other.apiUrl) && + Utils.enhancedDeepEquals(this.nameprefix, other.nameprefix) && + Utils.enhancedDeepEquals(this.projectName, other.projectName) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - apiUrl, - nameprefix, - projectName, - sourceType); + return Utils.enhancedHash( + apiToken, apiUrl, nameprefix, + projectName, sourceType); } @Override @@ -202,23 +224,27 @@ public String toString() { "projectName", projectName, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private String apiUrl; - + private Optional nameprefix = Optional.empty(); - + private Optional projectName = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Your API Token (Server-Side SDK [Client]). See <a href="https://docs.getunleash.io/how-to/how-to-create-api-tokens/">here</a>. The token is case sensitive. + * Your API Token (Server-Side SDK [Client]). See here. The token is case + * sensitive. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -226,6 +252,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * Your API URL. No trailing slash. ex: https://unleash.host.com/api */ @@ -235,8 +262,11 @@ public Builder apiUrl(String apiUrl) { return this; } + /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ public Builder nameprefix(String nameprefix) { Utils.checkNotNull(nameprefix, "nameprefix"); @@ -245,7 +275,9 @@ public Builder nameprefix(String nameprefix) { } /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ public Builder nameprefix(Optional nameprefix) { Utils.checkNotNull(nameprefix, "nameprefix"); @@ -253,8 +285,11 @@ public Builder nameprefix(Optional nameprefix) { return this; } + /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ public Builder projectName(String projectName) { Utils.checkNotNull(projectName, "projectName"); @@ -263,22 +298,24 @@ public Builder projectName(String projectName) { } /** - * Use this if you want to filter the API call for only one given project (can be used in addition to the "Feature Name Prefix" field). See <a href="https://docs.getunleash.io/reference/api/legacy/unleash/client/features#filter-feature-toggles">here</a> + * Use this if you want to filter the API call for only one given project (can be used in addition to + * the "Feature Name Prefix" field). See here */ public Builder projectName(Optional projectName) { Utils.checkNotNull(projectName, "projectName"); this.projectName = projectName; return this; } - + public SourceUnleash build() { + return new SourceUnleash( - apiToken, - apiUrl, - nameprefix, + apiToken, apiUrl, nameprefix, projectName); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUppromote.java b/src/main/java/com/airbyte/api/models/shared/SourceUppromote.java index 8fe0f5066..587275ffa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceUppromote.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceUppromote.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceUppromote { +public class SourceUppromote { /** - * For developing your own custom integration with UpPromote, you can create an API key. This is available from Professional plan. Simply go to Settings > Integration > API > Create API Key. + * For developing your own custom integration with UpPromote, you can create an API key. This is + * available from Professional plan. Simply go to Settings > Integration > API > Create API + * Key. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Uppromote sourceType; @@ -43,7 +45,9 @@ public SourceUppromote( } /** - * For developing your own custom integration with UpPromote, you can create an API key. This is available from Professional plan. Simply go to Settings > Integration > API > Create API Key. + * For developing your own custom integration with UpPromote, you can create an API key. This is + * available from Professional plan. Simply go to Settings > Integration > API > Create API + * Key. */ @JsonIgnore public String apiKey() { @@ -63,12 +67,15 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * For developing your own custom integration with UpPromote, you can create an API key. This is available from Professional plan. Simply go to Settings > Integration > API > Create API Key. + * For developing your own custom integration with UpPromote, you can create an API key. This is + * available from Professional plan. Simply go to Settings > Integration > API > Create API + * Key. */ public SourceUppromote withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -85,7 +92,6 @@ public SourceUppromote withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -96,17 +102,15 @@ public boolean equals(java.lang.Object o) { } SourceUppromote other = (SourceUppromote) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -116,19 +120,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * For developing your own custom integration with UpPromote, you can create an API key. This is available from Professional plan. Simply go to Settings > Integration > API > Create API Key. + * For developing your own custom integration with UpPromote, you can create an API key. This is + * available from Professional plan. Simply go to Settings > Integration > API > Create API + * Key. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -136,6 +144,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Data before this date will not be fetched. */ @@ -144,13 +153,14 @@ public Builder startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } - + public SourceUppromote build() { + return new SourceUppromote( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUptick.java b/src/main/java/com/airbyte/api/models/shared/SourceUptick.java new file mode 100644 index 000000000..407099026 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SourceUptick.java @@ -0,0 +1,487 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.LazySingletonValue; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonInclude.Include; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.type.TypeReference; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Optional; + + +public class SourceUptick { + /** + * Ex: https://demo-fire.onuptick.com/ + */ + @JsonProperty("base_url") + private String baseUrl; + + + @JsonProperty("client_id") + private String clientId; + + + @JsonProperty("client_refresh_token") + private String clientRefreshToken; + + + @JsonProperty("client_secret") + private String clientSecret; + + /** + * Fetch data up until this date + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("end_date") + private Optional endDate; + + /** + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("oauth_access_token") + private Optional oauthAccessToken; + + /** + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("oauth_token_expiry_date") + private Optional oauthTokenExpiryDate; + + + @JsonProperty("sourceType") + private Uptick sourceType; + + /** + * Fetch data starting from this date (by default 2025-01-01) + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("start_date") + private Optional startDate; + + @JsonCreator + public SourceUptick( + @JsonProperty("base_url") String baseUrl, + @JsonProperty("client_id") String clientId, + @JsonProperty("client_refresh_token") String clientRefreshToken, + @JsonProperty("client_secret") String clientSecret, + @JsonProperty("end_date") Optional endDate, + @JsonProperty("oauth_access_token") Optional oauthAccessToken, + @JsonProperty("oauth_token_expiry_date") Optional oauthTokenExpiryDate, + @JsonProperty("start_date") Optional startDate) { + Utils.checkNotNull(baseUrl, "baseUrl"); + Utils.checkNotNull(clientId, "clientId"); + Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); + Utils.checkNotNull(clientSecret, "clientSecret"); + Utils.checkNotNull(endDate, "endDate"); + Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); + Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); + Utils.checkNotNull(startDate, "startDate"); + this.baseUrl = baseUrl; + this.clientId = clientId; + this.clientRefreshToken = clientRefreshToken; + this.clientSecret = clientSecret; + this.endDate = endDate; + this.oauthAccessToken = oauthAccessToken; + this.oauthTokenExpiryDate = oauthTokenExpiryDate; + this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); + this.startDate = startDate; + } + + public SourceUptick( + String baseUrl, + String clientId, + String clientRefreshToken, + String clientSecret) { + this(baseUrl, clientId, clientRefreshToken, + clientSecret, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + /** + * Ex: https://demo-fire.onuptick.com/ + */ + @JsonIgnore + public String baseUrl() { + return baseUrl; + } + + @JsonIgnore + public String clientId() { + return clientId; + } + + @JsonIgnore + public String clientRefreshToken() { + return clientRefreshToken; + } + + @JsonIgnore + public String clientSecret() { + return clientSecret; + } + + /** + * Fetch data up until this date + */ + @JsonIgnore + public Optional endDate() { + return endDate; + } + + /** + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. + */ + @JsonIgnore + public Optional oauthAccessToken() { + return oauthAccessToken; + } + + /** + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. + */ + @JsonIgnore + public Optional oauthTokenExpiryDate() { + return oauthTokenExpiryDate; + } + + @JsonIgnore + public Uptick sourceType() { + return sourceType; + } + + /** + * Fetch data starting from this date (by default 2025-01-01) + */ + @JsonIgnore + public Optional startDate() { + return startDate; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Ex: https://demo-fire.onuptick.com/ + */ + public SourceUptick withBaseUrl(String baseUrl) { + Utils.checkNotNull(baseUrl, "baseUrl"); + this.baseUrl = baseUrl; + return this; + } + + public SourceUptick withClientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + public SourceUptick withClientRefreshToken(String clientRefreshToken) { + Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); + this.clientRefreshToken = clientRefreshToken; + return this; + } + + public SourceUptick withClientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + /** + * Fetch data up until this date + */ + public SourceUptick withEndDate(String endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = Optional.ofNullable(endDate); + return this; + } + + + /** + * Fetch data up until this date + */ + public SourceUptick withEndDate(Optional endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + /** + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. + */ + public SourceUptick withOauthAccessToken(String oauthAccessToken) { + Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); + this.oauthAccessToken = Optional.ofNullable(oauthAccessToken); + return this; + } + + + /** + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. + */ + public SourceUptick withOauthAccessToken(Optional oauthAccessToken) { + Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); + this.oauthAccessToken = oauthAccessToken; + return this; + } + + /** + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. + */ + public SourceUptick withOauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { + Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); + this.oauthTokenExpiryDate = Optional.ofNullable(oauthTokenExpiryDate); + return this; + } + + + /** + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. + */ + public SourceUptick withOauthTokenExpiryDate(Optional oauthTokenExpiryDate) { + Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); + this.oauthTokenExpiryDate = oauthTokenExpiryDate; + return this; + } + + /** + * Fetch data starting from this date (by default 2025-01-01) + */ + public SourceUptick withStartDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + + /** + * Fetch data starting from this date (by default 2025-01-01) + */ + public SourceUptick withStartDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SourceUptick other = (SourceUptick) o; + return + Utils.enhancedDeepEquals(this.baseUrl, other.baseUrl) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.oauthAccessToken, other.oauthAccessToken) && + Utils.enhancedDeepEquals(this.oauthTokenExpiryDate, other.oauthTokenExpiryDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + baseUrl, clientId, clientRefreshToken, + clientSecret, endDate, oauthAccessToken, + oauthTokenExpiryDate, sourceType, startDate); + } + + @Override + public String toString() { + return Utils.toString(SourceUptick.class, + "baseUrl", baseUrl, + "clientId", clientId, + "clientRefreshToken", clientRefreshToken, + "clientSecret", clientSecret, + "endDate", endDate, + "oauthAccessToken", oauthAccessToken, + "oauthTokenExpiryDate", oauthTokenExpiryDate, + "sourceType", sourceType, + "startDate", startDate); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String baseUrl; + + private String clientId; + + private String clientRefreshToken; + + private String clientSecret; + + private Optional endDate = Optional.empty(); + + private Optional oauthAccessToken = Optional.empty(); + + private Optional oauthTokenExpiryDate = Optional.empty(); + + private Optional startDate; + + private Builder() { + // force use of static builder() method + } + + + /** + * Ex: https://demo-fire.onuptick.com/ + */ + public Builder baseUrl(String baseUrl) { + Utils.checkNotNull(baseUrl, "baseUrl"); + this.baseUrl = baseUrl; + return this; + } + + + public Builder clientId(String clientId) { + Utils.checkNotNull(clientId, "clientId"); + this.clientId = clientId; + return this; + } + + + public Builder clientRefreshToken(String clientRefreshToken) { + Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); + this.clientRefreshToken = clientRefreshToken; + return this; + } + + + public Builder clientSecret(String clientSecret) { + Utils.checkNotNull(clientSecret, "clientSecret"); + this.clientSecret = clientSecret; + return this; + } + + + /** + * Fetch data up until this date + */ + public Builder endDate(String endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = Optional.ofNullable(endDate); + return this; + } + + /** + * Fetch data up until this date + */ + public Builder endDate(Optional endDate) { + Utils.checkNotNull(endDate, "endDate"); + this.endDate = endDate; + return this; + } + + + /** + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. + */ + public Builder oauthAccessToken(String oauthAccessToken) { + Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); + this.oauthAccessToken = Optional.ofNullable(oauthAccessToken); + return this; + } + + /** + * The current access token. This field might be overridden by the connector based on the token refresh + * endpoint response. + */ + public Builder oauthAccessToken(Optional oauthAccessToken) { + Utils.checkNotNull(oauthAccessToken, "oauthAccessToken"); + this.oauthAccessToken = oauthAccessToken; + return this; + } + + + /** + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. + */ + public Builder oauthTokenExpiryDate(OffsetDateTime oauthTokenExpiryDate) { + Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); + this.oauthTokenExpiryDate = Optional.ofNullable(oauthTokenExpiryDate); + return this; + } + + /** + * The date the current access token expires in. This field might be overridden by the connector based + * on the token refresh endpoint response. + */ + public Builder oauthTokenExpiryDate(Optional oauthTokenExpiryDate) { + Utils.checkNotNull(oauthTokenExpiryDate, "oauthTokenExpiryDate"); + this.oauthTokenExpiryDate = oauthTokenExpiryDate; + return this; + } + + + /** + * Fetch data starting from this date (by default 2025-01-01) + */ + public Builder startDate(String startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = Optional.ofNullable(startDate); + return this; + } + + /** + * Fetch data starting from this date (by default 2025-01-01) + */ + public Builder startDate(Optional startDate) { + Utils.checkNotNull(startDate, "startDate"); + this.startDate = startDate; + return this; + } + + public SourceUptick build() { + if (startDate == null) { + startDate = _SINGLETON_VALUE_StartDate.value(); + } + + return new SourceUptick( + baseUrl, clientId, clientRefreshToken, + clientSecret, endDate, oauthAccessToken, + oauthTokenExpiryDate, startDate); + } + + + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = + new LazySingletonValue<>( + "sourceType", + "\"uptick\"", + new TypeReference() {}); + + private static final LazySingletonValue> _SINGLETON_VALUE_StartDate = + new LazySingletonValue<>( + "start_date", + "\"2025-01-01\"", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUsCensus.java b/src/main/java/com/airbyte/api/models/shared/SourceUsCensus.java index a04889636..c60bcd0c7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceUsCensus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceUsCensus.java @@ -13,13 +13,12 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceUsCensus { +public class SourceUsCensus { /** - * Your API Key. Get your key <a href="https://api.census.gov/data/key_signup.html">here</a>. + * Your API Key. Get your key here. */ @JsonProperty("api_key") private String apiKey; @@ -37,6 +36,7 @@ public class SourceUsCensus { @JsonProperty("query_path") private String queryPath; + @JsonProperty("sourceType") private UsCensus sourceType; @@ -61,7 +61,7 @@ public SourceUsCensus( } /** - * Your API Key. Get your key <a href="https://api.census.gov/data/key_signup.html">here</a>. + * Your API Key. Get your key here. */ @JsonIgnore public String apiKey() { @@ -89,12 +89,13 @@ public UsCensus sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Key. Get your key <a href="https://api.census.gov/data/key_signup.html">here</a>. + * Your API Key. Get your key here. */ public SourceUsCensus withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -111,6 +112,7 @@ public SourceUsCensus withQueryParams(String queryParams) { return this; } + /** * The query parameters portion of the GET request, without the api key */ @@ -129,7 +131,6 @@ public SourceUsCensus withQueryPath(String queryPath) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +141,16 @@ public boolean equals(java.lang.Object o) { } SourceUsCensus other = (SourceUsCensus) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.queryParams, other.queryParams) && - Objects.deepEquals(this.queryPath, other.queryPath) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.queryParams, other.queryParams) && + Utils.enhancedDeepEquals(this.queryPath, other.queryPath) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - queryParams, - queryPath, + return Utils.enhancedHash( + apiKey, queryParams, queryPath, sourceType); } @@ -163,21 +162,23 @@ public String toString() { "queryPath", queryPath, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional queryParams = Optional.empty(); - + private String queryPath; - + private Builder() { // force use of static builder() method } + /** - * Your API Key. Get your key <a href="https://api.census.gov/data/key_signup.html">here</a>. + * Your API Key. Get your key here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -185,6 +186,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The query parameters portion of the GET request, without the api key */ @@ -203,6 +205,7 @@ public Builder queryParams(Optional queryParams) { return this; } + /** * The path portion of the GET request */ @@ -211,14 +214,14 @@ public Builder queryPath(String queryPath) { this.queryPath = queryPath; return this; } - + public SourceUsCensus build() { + return new SourceUsCensus( - apiKey, - queryParams, - queryPath); + apiKey, queryParams, queryPath); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceUservoice.java b/src/main/java/com/airbyte/api/models/shared/SourceUservoice.java index 6051caa91..6e3046625 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceUservoice.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceUservoice.java @@ -12,19 +12,22 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceUservoice { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Uservoice sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; + @JsonProperty("subdomain") private String subdomain; @@ -62,9 +65,10 @@ public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceUservoice withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -84,7 +88,6 @@ public SourceUservoice withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,18 +98,16 @@ public boolean equals(java.lang.Object o) { } SourceUservoice other = (SourceUservoice) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate, + return Utils.enhancedHash( + apiKey, sourceType, startDate, subdomain); } @@ -118,44 +119,48 @@ public String toString() { "startDate", startDate, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private String subdomain; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + public Builder subdomain(String subdomain) { Utils.checkNotNull(subdomain, "subdomain"); this.subdomain = subdomain; return this; } - + public SourceUservoice build() { + return new SourceUservoice( - apiKey, - startDate, - subdomain); + apiKey, startDate, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVantage.java b/src/main/java/com/airbyte/api/models/shared/SourceVantage.java index 41d0af361..1ce3b3dbb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVantage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVantage.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceVantage { +public class SourceVantage { /** - * Your API Access token. See <a href="https://vantage.readme.io/reference/authentication">here</a>. + * Your API Access token. See here. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Vantage sourceType; @@ -33,7 +33,7 @@ public SourceVantage( } /** - * Your API Access token. See <a href="https://vantage.readme.io/reference/authentication">here</a>. + * Your API Access token. See here. */ @JsonIgnore public String accessToken() { @@ -45,12 +45,13 @@ public Vantage sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API Access token. See <a href="https://vantage.readme.io/reference/authentication">here</a>. + * Your API Access token. See here. */ public SourceVantage withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -58,7 +59,6 @@ public SourceVantage withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceVantage other = (SourceVantage) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType); + return Utils.enhancedHash( + accessToken, sourceType); } @Override @@ -86,29 +85,33 @@ public String toString() { "accessToken", accessToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** - * Your API Access token. See <a href="https://vantage.readme.io/reference/authentication">here</a>. + * Your API Access token. See here. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); this.accessToken = accessToken; return this; } - + public SourceVantage build() { + return new SourceVantage( accessToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVeeqo.java b/src/main/java/com/airbyte/api/models/shared/SourceVeeqo.java index da66f1b2f..fb69181ae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVeeqo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVeeqo.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceVeeqo { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Veeqo sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceVeeqo withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceVeeqo withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceVeeqo other = (SourceVeeqo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceVeeqo build() { + return new SourceVeeqo( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVercel.java b/src/main/java/com/airbyte/api/models/shared/SourceVercel.java index 188069496..7cea1f4fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVercel.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVercel.java @@ -12,19 +12,21 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceVercel { +public class SourceVercel { /** - * Access token to authenticate with the Vercel API. Create and manage tokens in your Vercel account settings. + * Access token to authenticate with the Vercel API. Create and manage tokens in your Vercel account + * settings. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Vercel sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -40,7 +42,8 @@ public SourceVercel( } /** - * Access token to authenticate with the Vercel API. Create and manage tokens in your Vercel account settings. + * Access token to authenticate with the Vercel API. Create and manage tokens in your Vercel account + * settings. */ @JsonIgnore public String accessToken() { @@ -57,12 +60,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Access token to authenticate with the Vercel API. Create and manage tokens in your Vercel account settings. + * Access token to authenticate with the Vercel API. Create and manage tokens in your Vercel account + * settings. */ public SourceVercel withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -76,7 +81,6 @@ public SourceVercel withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +91,15 @@ public boolean equals(java.lang.Object o) { } SourceVercel other = (SourceVercel) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType, - startDate); + return Utils.enhancedHash( + accessToken, sourceType, startDate); } @Override @@ -107,19 +109,22 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Access token to authenticate with the Vercel API. Create and manage tokens in your Vercel account settings. + * Access token to authenticate with the Vercel API. Create and manage tokens in your Vercel account + * settings. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -127,18 +132,20 @@ public Builder accessToken(String accessToken) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceVercel build() { + return new SourceVercel( - accessToken, - startDate); + accessToken, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVismaEconomic.java b/src/main/java/com/airbyte/api/models/shared/SourceVismaEconomic.java index 3aef2e9c4..bb487af3a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVismaEconomic.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVismaEconomic.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceVismaEconomic { +public class SourceVismaEconomic { /** * Identifier for the grant issued by an agreement */ @@ -27,6 +26,7 @@ public class SourceVismaEconomic { @JsonProperty("app_secret_token") private String appSecretToken; + @JsonProperty("sourceType") private VismaEconomic sourceType; @@ -62,9 +62,10 @@ public VismaEconomic sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Identifier for the grant issued by an agreement @@ -84,7 +85,6 @@ public SourceVismaEconomic withAppSecretToken(String appSecretToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceVismaEconomic other = (SourceVismaEconomic) o; return - Objects.deepEquals(this.agreementGrantToken, other.agreementGrantToken) && - Objects.deepEquals(this.appSecretToken, other.appSecretToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.agreementGrantToken, other.agreementGrantToken) && + Utils.enhancedDeepEquals(this.appSecretToken, other.appSecretToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - agreementGrantToken, - appSecretToken, - sourceType); + return Utils.enhancedHash( + agreementGrantToken, appSecretToken, sourceType); } @Override @@ -115,17 +113,19 @@ public String toString() { "appSecretToken", appSecretToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String agreementGrantToken; - + private String appSecretToken; - + private Builder() { // force use of static builder() method } + /** * Identifier for the grant issued by an agreement */ @@ -135,6 +135,7 @@ public Builder agreementGrantToken(String agreementGrantToken) { return this; } + /** * Identification token for app accessing data */ @@ -143,13 +144,14 @@ public Builder appSecretToken(String appSecretToken) { this.appSecretToken = appSecretToken; return this; } - + public SourceVismaEconomic build() { + return new SourceVismaEconomic( - agreementGrantToken, - appSecretToken); + agreementGrantToken, appSecretToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVitally.java b/src/main/java/com/airbyte/api/models/shared/SourceVitally.java index bc968733a..c520cff7f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVitally.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVitally.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceVitally { +public class SourceVitally { /** * Basic Auth Header */ @@ -26,7 +25,8 @@ public class SourceVitally { private Optional basicAuthHeader; /** - * Provide only the domain part, like https://{your-domain}.rest.vitally.io/. Keep empty if you don't have a subdomain. + * Provide only the subdomain part, like https://{your-custom-subdomain}.rest.vitally.io/. Keep empty + * if you don't have a subdomain. */ @JsonProperty("domain") private String domain; @@ -37,6 +37,7 @@ public class SourceVitally { @JsonProperty("secret_token") private String secretToken; + @JsonProperty("sourceType") private Vitally sourceType; @@ -67,7 +68,8 @@ public SourceVitally( String domain, String secretToken, SourceVitallyStatus status) { - this(Optional.empty(), domain, secretToken, status); + this(Optional.empty(), domain, secretToken, + status); } /** @@ -79,7 +81,8 @@ public Optional basicAuthHeader() { } /** - * Provide only the domain part, like https://{your-domain}.rest.vitally.io/. Keep empty if you don't have a subdomain. + * Provide only the subdomain part, like https://{your-custom-subdomain}.rest.vitally.io/. Keep empty + * if you don't have a subdomain. */ @JsonIgnore public String domain() { @@ -107,9 +110,10 @@ public SourceVitallyStatus status() { return status; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Basic Auth Header @@ -120,6 +124,7 @@ public SourceVitally withBasicAuthHeader(String basicAuthHeader) { return this; } + /** * Basic Auth Header */ @@ -130,7 +135,8 @@ public SourceVitally withBasicAuthHeader(Optional basicAuthHeader) { } /** - * Provide only the domain part, like https://{your-domain}.rest.vitally.io/. Keep empty if you don't have a subdomain. + * Provide only the subdomain part, like https://{your-custom-subdomain}.rest.vitally.io/. Keep empty + * if you don't have a subdomain. */ public SourceVitally withDomain(String domain) { Utils.checkNotNull(domain, "domain"); @@ -156,7 +162,6 @@ public SourceVitally withStatus(SourceVitallyStatus status) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -167,21 +172,18 @@ public boolean equals(java.lang.Object o) { } SourceVitally other = (SourceVitally) o; return - Objects.deepEquals(this.basicAuthHeader, other.basicAuthHeader) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.secretToken, other.secretToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.status, other.status); + Utils.enhancedDeepEquals(this.basicAuthHeader, other.basicAuthHeader) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.secretToken, other.secretToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.status, other.status); } @Override public int hashCode() { - return Objects.hash( - basicAuthHeader, - domain, - secretToken, - sourceType, - status); + return Utils.enhancedHash( + basicAuthHeader, domain, secretToken, + sourceType, status); } @Override @@ -193,21 +195,23 @@ public String toString() { "sourceType", sourceType, "status", status); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional basicAuthHeader = Optional.empty(); - + private String domain; - + private String secretToken; - + private SourceVitallyStatus status; - + private Builder() { // force use of static builder() method } + /** * Basic Auth Header */ @@ -226,8 +230,10 @@ public Builder basicAuthHeader(Optional basicAuthHeader) { return this; } + /** - * Provide only the domain part, like https://{your-domain}.rest.vitally.io/. Keep empty if you don't have a subdomain. + * Provide only the subdomain part, like https://{your-custom-subdomain}.rest.vitally.io/. Keep empty + * if you don't have a subdomain. */ public Builder domain(String domain) { Utils.checkNotNull(domain, "domain"); @@ -235,6 +241,7 @@ public Builder domain(String domain) { return this; } + /** * sk_live_secret_token */ @@ -244,6 +251,7 @@ public Builder secretToken(String secretToken) { return this; } + /** * Status of the Vitally accounts. One of the following values; active, churned, activeOrChurned. */ @@ -252,15 +260,15 @@ public Builder status(SourceVitallyStatus status) { this.status = status; return this; } - + public SourceVitally build() { + return new SourceVitally( - basicAuthHeader, - domain, - secretToken, + basicAuthHeader, domain, secretToken, status); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java b/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java index 470e86a6f..3bbdb56ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVitallyStatus.java @@ -21,7 +21,7 @@ public enum SourceVitallyStatus { @JsonValue private final String value; - private SourceVitallyStatus(String value) { + SourceVitallyStatus(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceVwo.java b/src/main/java/com/airbyte/api/models/shared/SourceVwo.java index bd9023722..f6cbb8a22 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceVwo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceVwo.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceVwo { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Vwo sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -51,9 +53,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceVwo withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -67,7 +70,6 @@ public SourceVwo withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -78,17 +80,15 @@ public boolean equals(java.lang.Object o) { } SourceVwo other = (SourceVwo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -98,35 +98,39 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceVwo build() { + return new SourceVwo( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWaiteraid.java b/src/main/java/com/airbyte/api/models/shared/SourceWaiteraid.java index 787372895..76ecfea41 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWaiteraid.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWaiteraid.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceWaiteraid { +public class SourceWaiteraid { /** * Your WaiterAid API key, obtained from API request with Username and Password */ @@ -27,6 +26,7 @@ public class SourceWaiteraid { @JsonProperty("restid") private String restid; + @JsonProperty("sourceType") private Waiteraid sourceType; @@ -79,9 +79,10 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your WaiterAid API key, obtained from API request with Username and Password @@ -110,7 +111,6 @@ public SourceWaiteraid withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +121,16 @@ public boolean equals(java.lang.Object o) { } SourceWaiteraid other = (SourceWaiteraid) o; return - Objects.deepEquals(this.authHash, other.authHash) && - Objects.deepEquals(this.restid, other.restid) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.authHash, other.authHash) && + Utils.enhancedDeepEquals(this.restid, other.restid) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - authHash, - restid, - sourceType, + return Utils.enhancedHash( + authHash, restid, sourceType, startDate); } @@ -144,19 +142,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String authHash; - + private String restid; - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * Your WaiterAid API key, obtained from API request with Username and Password */ @@ -166,6 +166,7 @@ public Builder authHash(String authHash) { return this; } + /** * Your WaiterAid restaurant id from API request to getRestaurants */ @@ -175,6 +176,7 @@ public Builder restid(String restid) { return this; } + /** * Start getting data from that date. */ @@ -183,14 +185,14 @@ public Builder startDate(String startDate) { this.startDate = startDate; return this; } - + public SourceWaiteraid build() { + return new SourceWaiteraid( - authHash, - restid, - startDate); + authHash, restid, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWasabiStatsApi.java b/src/main/java/com/airbyte/api/models/shared/SourceWasabiStatsApi.java index 8c6ec8c03..762daa2c0 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWasabiStatsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWasabiStatsApi.java @@ -12,19 +12,20 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceWasabiStatsApi { +public class SourceWasabiStatsApi { /** * The API key format is `AccessKey:SecretKey` */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private WasabiStatsApi sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -57,9 +58,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API key format is `AccessKey:SecretKey` @@ -76,7 +78,6 @@ public SourceWasabiStatsApi withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -87,17 +88,15 @@ public boolean equals(java.lang.Object o) { } SourceWasabiStatsApi other = (SourceWasabiStatsApi) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, sourceType, startDate); } @Override @@ -107,17 +106,19 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * The API key format is `AccessKey:SecretKey` */ @@ -127,18 +128,20 @@ public Builder apiKey(String apiKey) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceWasabiStatsApi build() { + return new SourceWasabiStatsApi( - apiKey, - startDate); + apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWatchmode.java b/src/main/java/com/airbyte/api/models/shared/SourceWatchmode.java index 37c351405..d8dfc4230 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWatchmode.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWatchmode.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceWatchmode { +public class SourceWatchmode { /** - * Your API key for authenticating with the Watchmode API. You can request a free API key at https://api.watchmode.com/requestApiKey/. + * Your API key for authenticating with the Watchmode API. You can request a free API key at + * https://api.watchmode.com/requestApiKey/. */ @JsonProperty("api_key") private String apiKey; @@ -32,9 +32,11 @@ public class SourceWatchmode { @JsonProperty("search_val") private Optional searchVal; + @JsonProperty("sourceType") private Watchmode sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -59,7 +61,8 @@ public SourceWatchmode( } /** - * Your API key for authenticating with the Watchmode API. You can request a free API key at https://api.watchmode.com/requestApiKey/. + * Your API key for authenticating with the Watchmode API. You can request a free API key at + * https://api.watchmode.com/requestApiKey/. */ @JsonIgnore public String apiKey() { @@ -84,12 +87,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your API key for authenticating with the Watchmode API. You can request a free API key at https://api.watchmode.com/requestApiKey/. + * Your API key for authenticating with the Watchmode API. You can request a free API key at + * https://api.watchmode.com/requestApiKey/. */ public SourceWatchmode withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -106,6 +111,7 @@ public SourceWatchmode withSearchVal(String searchVal) { return this; } + /** * The name value for search stream */ @@ -121,7 +127,6 @@ public SourceWatchmode withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -132,18 +137,16 @@ public boolean equals(java.lang.Object o) { } SourceWatchmode other = (SourceWatchmode) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.searchVal, other.searchVal) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.searchVal, other.searchVal) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - searchVal, - sourceType, + return Utils.enhancedHash( + apiKey, searchVal, sourceType, startDate); } @@ -155,21 +158,24 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional searchVal; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your API key for authenticating with the Watchmode API. You can request a free API key at https://api.watchmode.com/requestApiKey/. + * Your API key for authenticating with the Watchmode API. You can request a free API key at + * https://api.watchmode.com/requestApiKey/. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -177,6 +183,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The name value for search stream */ @@ -195,22 +202,23 @@ public Builder searchVal(Optional searchVal) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceWatchmode build() { if (searchVal == null) { searchVal = _SINGLETON_VALUE_SearchVal.value(); } + return new SourceWatchmode( - apiKey, - searchVal, - startDate); + apiKey, searchVal, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_SearchVal = new LazySingletonValue<>( "search_val", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWeatherstack.java b/src/main/java/com/airbyte/api/models/shared/SourceWeatherstack.java index bd9374a04..51d3ea68a 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWeatherstack.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWeatherstack.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceWeatherstack { +public class SourceWeatherstack { /** * API access key used to retrieve data from the Weatherstack API.(https://weatherstack.com/product) */ @@ -22,17 +21,21 @@ public class SourceWeatherstack { private String accessKey; /** - * This is required for enabling the Historical date API with format- (YYYY-MM-DD). * Note, only supported by paid accounts + * This is required for enabling the Historical date API with format- (YYYY-MM-DD). * Note, only + * supported by paid accounts */ @JsonProperty("historical_date") private String historicalDate; /** - * A location to query such as city, IP, latitudeLongitude, or zipcode. Multiple locations with semicolon seperated if using a professional plan or higher. For more info- (https://weatherstack.com/documentation#query_parameter) + * A location to query such as city, IP, latitudeLongitude, or zipcode. Multiple locations with + * semicolon seperated if using a professional plan or higher. For more info- + * (https://weatherstack.com/documentation#query_parameter) */ @JsonProperty("query") private String query; + @JsonProperty("sourceType") private Weatherstack sourceType; @@ -59,7 +62,8 @@ public String accessKey() { } /** - * This is required for enabling the Historical date API with format- (YYYY-MM-DD). * Note, only supported by paid accounts + * This is required for enabling the Historical date API with format- (YYYY-MM-DD). * Note, only + * supported by paid accounts */ @JsonIgnore public String historicalDate() { @@ -67,7 +71,9 @@ public String historicalDate() { } /** - * A location to query such as city, IP, latitudeLongitude, or zipcode. Multiple locations with semicolon seperated if using a professional plan or higher. For more info- (https://weatherstack.com/documentation#query_parameter) + * A location to query such as city, IP, latitudeLongitude, or zipcode. Multiple locations with + * semicolon seperated if using a professional plan or higher. For more info- + * (https://weatherstack.com/documentation#query_parameter) */ @JsonIgnore public String query() { @@ -79,9 +85,10 @@ public Weatherstack sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API access key used to retrieve data from the Weatherstack API.(https://weatherstack.com/product) @@ -93,7 +100,8 @@ public SourceWeatherstack withAccessKey(String accessKey) { } /** - * This is required for enabling the Historical date API with format- (YYYY-MM-DD). * Note, only supported by paid accounts + * This is required for enabling the Historical date API with format- (YYYY-MM-DD). * Note, only + * supported by paid accounts */ public SourceWeatherstack withHistoricalDate(String historicalDate) { Utils.checkNotNull(historicalDate, "historicalDate"); @@ -102,7 +110,9 @@ public SourceWeatherstack withHistoricalDate(String historicalDate) { } /** - * A location to query such as city, IP, latitudeLongitude, or zipcode. Multiple locations with semicolon seperated if using a professional plan or higher. For more info- (https://weatherstack.com/documentation#query_parameter) + * A location to query such as city, IP, latitudeLongitude, or zipcode. Multiple locations with + * semicolon seperated if using a professional plan or higher. For more info- + * (https://weatherstack.com/documentation#query_parameter) */ public SourceWeatherstack withQuery(String query) { Utils.checkNotNull(query, "query"); @@ -110,7 +120,6 @@ public SourceWeatherstack withQuery(String query) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +130,16 @@ public boolean equals(java.lang.Object o) { } SourceWeatherstack other = (SourceWeatherstack) o; return - Objects.deepEquals(this.accessKey, other.accessKey) && - Objects.deepEquals(this.historicalDate, other.historicalDate) && - Objects.deepEquals(this.query, other.query) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accessKey, other.accessKey) && + Utils.enhancedDeepEquals(this.historicalDate, other.historicalDate) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accessKey, - historicalDate, - query, + return Utils.enhancedHash( + accessKey, historicalDate, query, sourceType); } @@ -144,19 +151,21 @@ public String toString() { "query", query, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessKey; - + private String historicalDate; - + private String query; - + private Builder() { // force use of static builder() method } + /** * API access key used to retrieve data from the Weatherstack API.(https://weatherstack.com/product) */ @@ -166,8 +175,10 @@ public Builder accessKey(String accessKey) { return this; } + /** - * This is required for enabling the Historical date API with format- (YYYY-MM-DD). * Note, only supported by paid accounts + * This is required for enabling the Historical date API with format- (YYYY-MM-DD). * Note, only + * supported by paid accounts */ public Builder historicalDate(String historicalDate) { Utils.checkNotNull(historicalDate, "historicalDate"); @@ -175,22 +186,25 @@ public Builder historicalDate(String historicalDate) { return this; } + /** - * A location to query such as city, IP, latitudeLongitude, or zipcode. Multiple locations with semicolon seperated if using a professional plan or higher. For more info- (https://weatherstack.com/documentation#query_parameter) + * A location to query such as city, IP, latitudeLongitude, or zipcode. Multiple locations with + * semicolon seperated if using a professional plan or higher. For more info- + * (https://weatherstack.com/documentation#query_parameter) */ public Builder query(String query) { Utils.checkNotNull(query, "query"); this.query = query; return this; } - + public SourceWeatherstack build() { + return new SourceWeatherstack( - accessKey, - historicalDate, - query); + accessKey, historicalDate, query); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWebScrapper.java b/src/main/java/com/airbyte/api/models/shared/SourceWebScrapper.java index 2a14b3d07..aeeebf7ba 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWebScrapper.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWebScrapper.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceWebScrapper { +public class SourceWebScrapper { /** * API token to use. Find it at https://cloud.webscraper.io/api */ @JsonProperty("api_token") private String apiToken; + @JsonProperty("sourceType") private WebScrapper sourceType; @@ -45,9 +45,10 @@ public WebScrapper sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API token to use. Find it at https://cloud.webscraper.io/api @@ -58,7 +59,6 @@ public SourceWebScrapper withApiToken(String apiToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceWebScrapper other = (SourceWebScrapper) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiToken, - sourceType); + return Utils.enhancedHash( + apiToken, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "apiToken", apiToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Builder() { // force use of static builder() method } + /** * API token to use. Find it at https://cloud.webscraper.io/api */ @@ -103,12 +104,14 @@ public Builder apiToken(String apiToken) { this.apiToken = apiToken; return this; } - + public SourceWebScrapper build() { + return new SourceWebScrapper( apiToken); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWebflow.java b/src/main/java/com/airbyte/api/models/shared/SourceWebflow.java index 26899d707..37679b2b3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWebflow.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWebflow.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceWebflow { +public class SourceWebflow { /** * The version of the Webflow API to use. See https://developers.webflow.com/#versioning */ @@ -26,7 +25,8 @@ public class SourceWebflow { private Optional acceptVersion; /** - * The API token for authenticating to Webflow. See https://university.webflow.com/lesson/intro-to-the-webflow-api + * The API token for authenticating to Webflow. See + * https://university.webflow.com/lesson/intro-to-the-webflow-api */ @JsonProperty("api_key") private String apiKey; @@ -37,6 +37,7 @@ public class SourceWebflow { @JsonProperty("site_id") private String siteId; + @JsonProperty("sourceType") private Webflow sourceType; @@ -69,7 +70,8 @@ public Optional acceptVersion() { } /** - * The API token for authenticating to Webflow. See https://university.webflow.com/lesson/intro-to-the-webflow-api + * The API token for authenticating to Webflow. See + * https://university.webflow.com/lesson/intro-to-the-webflow-api */ @JsonIgnore public String apiKey() { @@ -89,9 +91,10 @@ public Webflow sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The version of the Webflow API to use. See https://developers.webflow.com/#versioning @@ -102,6 +105,7 @@ public SourceWebflow withAcceptVersion(String acceptVersion) { return this; } + /** * The version of the Webflow API to use. See https://developers.webflow.com/#versioning */ @@ -112,7 +116,8 @@ public SourceWebflow withAcceptVersion(Optional acceptVersion) { } /** - * The API token for authenticating to Webflow. See https://university.webflow.com/lesson/intro-to-the-webflow-api + * The API token for authenticating to Webflow. See + * https://university.webflow.com/lesson/intro-to-the-webflow-api */ public SourceWebflow withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -129,7 +134,6 @@ public SourceWebflow withSiteId(String siteId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -140,18 +144,16 @@ public boolean equals(java.lang.Object o) { } SourceWebflow other = (SourceWebflow) o; return - Objects.deepEquals(this.acceptVersion, other.acceptVersion) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.siteId, other.siteId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.acceptVersion, other.acceptVersion) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.siteId, other.siteId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - acceptVersion, - apiKey, - siteId, + return Utils.enhancedHash( + acceptVersion, apiKey, siteId, sourceType); } @@ -163,19 +165,21 @@ public String toString() { "siteId", siteId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional acceptVersion = Optional.empty(); - + private String apiKey; - + private String siteId; - + private Builder() { // force use of static builder() method } + /** * The version of the Webflow API to use. See https://developers.webflow.com/#versioning */ @@ -194,8 +198,10 @@ public Builder acceptVersion(Optional acceptVersion) { return this; } + /** - * The API token for authenticating to Webflow. See https://university.webflow.com/lesson/intro-to-the-webflow-api + * The API token for authenticating to Webflow. See + * https://university.webflow.com/lesson/intro-to-the-webflow-api */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -203,6 +209,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * The id of the Webflow site you are requesting data from. See https://developers.webflow.com/#sites */ @@ -211,14 +218,14 @@ public Builder siteId(String siteId) { this.siteId = siteId; return this; } - + public SourceWebflow build() { + return new SourceWebflow( - acceptVersion, - apiKey, - siteId); + acceptVersion, apiKey, siteId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWhenIWork.java b/src/main/java/com/airbyte/api/models/shared/SourceWhenIWork.java index b0be55e78..9fd79bb5b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWhenIWork.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWhenIWork.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceWhenIWork { +public class SourceWhenIWork { /** * Email of your when-i-work account */ @@ -27,6 +26,7 @@ public class SourceWhenIWork { @JsonProperty("password") private String password; + @JsonProperty("sourceType") private WhenIWork sourceType; @@ -62,9 +62,10 @@ public WhenIWork sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Email of your when-i-work account @@ -84,7 +85,6 @@ public SourceWhenIWork withPassword(String password) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceWhenIWork other = (SourceWhenIWork) o; return - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - email, - password, - sourceType); + return Utils.enhancedHash( + email, password, sourceType); } @Override @@ -115,17 +113,19 @@ public String toString() { "password", password, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String email; - + private String password; - + private Builder() { // force use of static builder() method } + /** * Email of your when-i-work account */ @@ -135,6 +135,7 @@ public Builder email(String email) { return this; } + /** * Password for your when-i-work account */ @@ -143,13 +144,14 @@ public Builder password(String password) { this.password = password; return this; } - + public SourceWhenIWork build() { + return new SourceWhenIWork( - email, - password); + email, password); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWhiskyHunter.java b/src/main/java/com/airbyte/api/models/shared/SourceWhiskyHunter.java index e232e55fc..e110c3123 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWhiskyHunter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWhiskyHunter.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceWhiskyHunter { @@ -20,7 +20,6 @@ public class SourceWhiskyHunter { @JsonCreator public SourceWhiskyHunter() { - this.sourceType = Builder._SINGLETON_VALUE_SourceType.value(); } @@ -29,11 +28,11 @@ public WhiskyHunter sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -44,12 +43,12 @@ public boolean equals(java.lang.Object o) { } SourceWhiskyHunter other = (SourceWhiskyHunter) o; return - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( sourceType); } @@ -58,18 +57,21 @@ public String toString() { return Utils.toString(SourceWhiskyHunter.class, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Builder() { // force use of static builder() method } - + public SourceWhiskyHunter build() { + return new SourceWhiskyHunter( ); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java b/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java index 6d8c007f5..d0afe4f5c 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWikipediaPageviews.java @@ -11,24 +11,28 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceWikipediaPageviews { +public class SourceWikipediaPageviews { /** - * If you want to filter by access method, use one of desktop, mobile-app or mobile-web. If you are interested in pageviews regardless of access method, use all-access. + * If you want to filter by access method, use one of desktop, mobile-app or mobile-web. If you are + * interested in pageviews regardless of access method, use all-access. */ @JsonProperty("access") private String access; /** - * If you want to filter by agent type, use one of user, automated or spider. If you are interested in pageviews regardless of agent type, use all-agents. + * If you want to filter by agent type, use one of user, automated or spider. If you are interested in + * pageviews regardless of agent type, use all-agents. */ @JsonProperty("agent") private String agent; /** - * The title of any article in the specified project. Any spaces should be replaced with underscores. It also should be URI-encoded, so that non-URI-safe characters like %, / or ? are accepted. + * The title of any article in the specified project. Any spaces should be replaced with underscores. + * It also should be URI-encoded, so that non-URI-safe characters like %, / or? + * + *

    are accepted. */ @JsonProperty("article") private String article; @@ -51,11 +55,13 @@ public class SourceWikipediaPageviews { @JsonProperty("project") private String project; + @JsonProperty("sourceType") private WikipediaPageviews sourceType; /** - * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. + * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to + * retrieve data for the top articles. */ @JsonProperty("start") private String start; @@ -87,7 +93,8 @@ public SourceWikipediaPageviews( } /** - * If you want to filter by access method, use one of desktop, mobile-app or mobile-web. If you are interested in pageviews regardless of access method, use all-access. + * If you want to filter by access method, use one of desktop, mobile-app or mobile-web. If you are + * interested in pageviews regardless of access method, use all-access. */ @JsonIgnore public String access() { @@ -95,7 +102,8 @@ public String access() { } /** - * If you want to filter by agent type, use one of user, automated or spider. If you are interested in pageviews regardless of agent type, use all-agents. + * If you want to filter by agent type, use one of user, automated or spider. If you are interested in + * pageviews regardless of agent type, use all-agents. */ @JsonIgnore public String agent() { @@ -103,7 +111,10 @@ public String agent() { } /** - * The title of any article in the specified project. Any spaces should be replaced with underscores. It also should be URI-encoded, so that non-URI-safe characters like %, / or ? are accepted. + * The title of any article in the specified project. Any spaces should be replaced with underscores. + * It also should be URI-encoded, so that non-URI-safe characters like %, / or? + * + *

    are accepted. */ @JsonIgnore public String article() { @@ -140,19 +151,22 @@ public WikipediaPageviews sourceType() { } /** - * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. + * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to + * retrieve data for the top articles. */ @JsonIgnore public String start() { return start; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * If you want to filter by access method, use one of desktop, mobile-app or mobile-web. If you are interested in pageviews regardless of access method, use all-access. + * If you want to filter by access method, use one of desktop, mobile-app or mobile-web. If you are + * interested in pageviews regardless of access method, use all-access. */ public SourceWikipediaPageviews withAccess(String access) { Utils.checkNotNull(access, "access"); @@ -161,7 +175,8 @@ public SourceWikipediaPageviews withAccess(String access) { } /** - * If you want to filter by agent type, use one of user, automated or spider. If you are interested in pageviews regardless of agent type, use all-agents. + * If you want to filter by agent type, use one of user, automated or spider. If you are interested in + * pageviews regardless of agent type, use all-agents. */ public SourceWikipediaPageviews withAgent(String agent) { Utils.checkNotNull(agent, "agent"); @@ -170,7 +185,10 @@ public SourceWikipediaPageviews withAgent(String agent) { } /** - * The title of any article in the specified project. Any spaces should be replaced with underscores. It also should be URI-encoded, so that non-URI-safe characters like %, / or ? are accepted. + * The title of any article in the specified project. Any spaces should be replaced with underscores. + * It also should be URI-encoded, so that non-URI-safe characters like %, / or? + * + *

    are accepted. */ public SourceWikipediaPageviews withArticle(String article) { Utils.checkNotNull(article, "article"); @@ -206,7 +224,8 @@ public SourceWikipediaPageviews withProject(String project) { } /** - * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. + * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to + * retrieve data for the top articles. */ public SourceWikipediaPageviews withStart(String start) { Utils.checkNotNull(start, "start"); @@ -214,7 +233,6 @@ public SourceWikipediaPageviews withStart(String start) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -225,27 +243,22 @@ public boolean equals(java.lang.Object o) { } SourceWikipediaPageviews other = (SourceWikipediaPageviews) o; return - Objects.deepEquals(this.access, other.access) && - Objects.deepEquals(this.agent, other.agent) && - Objects.deepEquals(this.article, other.article) && - Objects.deepEquals(this.country, other.country) && - Objects.deepEquals(this.end, other.end) && - Objects.deepEquals(this.project, other.project) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.start, other.start); + Utils.enhancedDeepEquals(this.access, other.access) && + Utils.enhancedDeepEquals(this.agent, other.agent) && + Utils.enhancedDeepEquals(this.article, other.article) && + Utils.enhancedDeepEquals(this.country, other.country) && + Utils.enhancedDeepEquals(this.end, other.end) && + Utils.enhancedDeepEquals(this.project, other.project) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.start, other.start); } @Override public int hashCode() { - return Objects.hash( - access, - agent, - article, - country, - end, - project, - sourceType, - start); + return Utils.enhancedHash( + access, agent, article, + country, end, project, + sourceType, start); } @Override @@ -260,29 +273,32 @@ public String toString() { "sourceType", sourceType, "start", start); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String access; - + private String agent; - + private String article; - + private String country; - + private String end; - + private String project; - + private String start; - + private Builder() { // force use of static builder() method } + /** - * If you want to filter by access method, use one of desktop, mobile-app or mobile-web. If you are interested in pageviews regardless of access method, use all-access. + * If you want to filter by access method, use one of desktop, mobile-app or mobile-web. If you are + * interested in pageviews regardless of access method, use all-access. */ public Builder access(String access) { Utils.checkNotNull(access, "access"); @@ -290,8 +306,10 @@ public Builder access(String access) { return this; } + /** - * If you want to filter by agent type, use one of user, automated or spider. If you are interested in pageviews regardless of agent type, use all-agents. + * If you want to filter by agent type, use one of user, automated or spider. If you are interested in + * pageviews regardless of agent type, use all-agents. */ public Builder agent(String agent) { Utils.checkNotNull(agent, "agent"); @@ -299,8 +317,12 @@ public Builder agent(String agent) { return this; } + /** - * The title of any article in the specified project. Any spaces should be replaced with underscores. It also should be URI-encoded, so that non-URI-safe characters like %, / or ? are accepted. + * The title of any article in the specified project. Any spaces should be replaced with underscores. + * It also should be URI-encoded, so that non-URI-safe characters like %, / or? + * + *

    are accepted. */ public Builder article(String article) { Utils.checkNotNull(article, "article"); @@ -308,6 +330,7 @@ public Builder article(String article) { return this; } + /** * The ISO 3166-1 alpha-2 code of a country for which to retrieve top articles. */ @@ -317,6 +340,7 @@ public Builder country(String country) { return this; } + /** * The date of the last day to include, in YYYYMMDD or YYYYMMDDHH format. */ @@ -326,6 +350,7 @@ public Builder end(String end) { return this; } + /** * If you want to filter by project, use the domain of any Wikimedia project. */ @@ -335,26 +360,26 @@ public Builder project(String project) { return this; } + /** - * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to retrieve data for the top articles. + * The date of the first day to include, in YYYYMMDD or YYYYMMDDHH format. Also serves as the date to + * retrieve data for the top articles. */ public Builder start(String start) { Utils.checkNotNull(start, "start"); this.start = start; return this; } - + public SourceWikipediaPageviews build() { + return new SourceWikipediaPageviews( - access, - agent, - article, - country, - end, - project, + access, agent, article, + country, end, project, start); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWoocommerce.java b/src/main/java/com/airbyte/api/models/shared/SourceWoocommerce.java index fac831d31..71ed13b36 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWoocommerce.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWoocommerce.java @@ -12,10 +12,9 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; -public class SourceWoocommerce { +public class SourceWoocommerce { /** * Customer Key for API in WooCommerce shop */ @@ -34,6 +33,7 @@ public class SourceWoocommerce { @JsonProperty("shop") private String shop; + @JsonProperty("sourceType") private Woocommerce sourceType; @@ -97,9 +97,10 @@ public LocalDate startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Customer Key for API in WooCommerce shop @@ -137,7 +138,6 @@ public SourceWoocommerce withStartDate(LocalDate startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -148,21 +148,18 @@ public boolean equals(java.lang.Object o) { } SourceWoocommerce other = (SourceWoocommerce) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiSecret, other.apiSecret) && - Objects.deepEquals(this.shop, other.shop) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiSecret, other.apiSecret) && + Utils.enhancedDeepEquals(this.shop, other.shop) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiSecret, - shop, - sourceType, - startDate); + return Utils.enhancedHash( + apiKey, apiSecret, shop, + sourceType, startDate); } @Override @@ -174,21 +171,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String apiSecret; - + private String shop; - + private LocalDate startDate; - + private Builder() { // force use of static builder() method } + /** * Customer Key for API in WooCommerce shop */ @@ -198,6 +197,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Customer Secret for API in WooCommerce shop */ @@ -207,6 +207,7 @@ public Builder apiSecret(String apiSecret) { return this; } + /** * The name of the store. For https://EXAMPLE.com, the shop name is 'EXAMPLE.com'. */ @@ -216,6 +217,7 @@ public Builder shop(String shop) { return this; } + /** * The date you would like to replicate data from. Format: YYYY-MM-DD */ @@ -224,15 +226,15 @@ public Builder startDate(LocalDate startDate) { this.startDate = startDate; return this; } - + public SourceWoocommerce build() { + return new SourceWoocommerce( - apiKey, - apiSecret, - shop, + apiKey, apiSecret, shop, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWordpress.java b/src/main/java/com/airbyte/api/models/shared/SourceWordpress.java index 4e1f051f6..44b3b30ea 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWordpress.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWordpress.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceWordpress { +public class SourceWordpress { /** * The domain of the WordPress site. Example: my-wordpress-website.host.com */ @@ -32,6 +31,7 @@ public class SourceWordpress { @JsonProperty("password") private Optional password; + @JsonProperty("sourceType") private Wordpress sourceType; @@ -68,7 +68,8 @@ public SourceWordpress( public SourceWordpress( String domain, OffsetDateTime startDate) { - this(domain, Optional.empty(), startDate, Optional.empty()); + this(domain, Optional.empty(), startDate, + Optional.empty()); } /** @@ -108,9 +109,10 @@ public Optional username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The domain of the WordPress site. Example: my-wordpress-website.host.com @@ -130,6 +132,7 @@ public SourceWordpress withPassword(String password) { return this; } + /** * Placeholder for basic HTTP auth password - should be set to empty string */ @@ -157,6 +160,7 @@ public SourceWordpress withUsername(String username) { return this; } + /** * Placeholder for basic HTTP auth username - should be set to empty string */ @@ -166,7 +170,6 @@ public SourceWordpress withUsername(Optional username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -177,21 +180,18 @@ public boolean equals(java.lang.Object o) { } SourceWordpress other = (SourceWordpress) o; return - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - domain, - password, - sourceType, - startDate, - username); + return Utils.enhancedHash( + domain, password, sourceType, + startDate, username); } @Override @@ -203,21 +203,23 @@ public String toString() { "startDate", startDate, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String domain; - + private Optional password; - + private OffsetDateTime startDate; - + private Optional username; - + private Builder() { // force use of static builder() method } + /** * The domain of the WordPress site. Example: my-wordpress-website.host.com */ @@ -227,6 +229,7 @@ public Builder domain(String domain) { return this; } + /** * Placeholder for basic HTTP auth password - should be set to empty string */ @@ -245,6 +248,7 @@ public Builder password(Optional password) { return this; } + /** * Minimal Date to Retrieve Records when stream allow incremental. */ @@ -254,6 +258,7 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** * Placeholder for basic HTTP auth username - should be set to empty string */ @@ -271,7 +276,7 @@ public Builder username(Optional username) { this.username = username; return this; } - + public SourceWordpress build() { if (password == null) { password = _SINGLETON_VALUE_Password.value(); @@ -279,13 +284,13 @@ public SourceWordpress build() { if (username == null) { username = _SINGLETON_VALUE_Username.value(); } + return new SourceWordpress( - domain, - password, - startDate, + domain, password, startDate, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_Password = new LazySingletonValue<>( "password", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWorkable.java b/src/main/java/com/airbyte/api/models/shared/SourceWorkable.java index 5aee48444..f6959a0e7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWorkable.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWorkable.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceWorkable { +public class SourceWorkable { /** * Your Workable account subdomain, e.g. https://your_account_subdomain.workable.com. */ @@ -22,11 +21,13 @@ public class SourceWorkable { private String accountSubdomain; /** - * Your Workable API Key. See <a href="https://workable.readme.io/reference/generate-an-access-token">here</a>. + * Your Workable API Key. See here. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Workable sourceType; @@ -59,7 +60,8 @@ public String accountSubdomain() { } /** - * Your Workable API Key. See <a href="https://workable.readme.io/reference/generate-an-access-token">here</a>. + * Your Workable API Key. See here. */ @JsonIgnore public String apiKey() { @@ -79,9 +81,10 @@ public String startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your Workable account subdomain, e.g. https://your_account_subdomain.workable.com. @@ -93,7 +96,8 @@ public SourceWorkable withAccountSubdomain(String accountSubdomain) { } /** - * Your Workable API Key. See <a href="https://workable.readme.io/reference/generate-an-access-token">here</a>. + * Your Workable API Key. See here. */ public SourceWorkable withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -110,7 +114,6 @@ public SourceWorkable withStartDate(String startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,18 +124,16 @@ public boolean equals(java.lang.Object o) { } SourceWorkable other = (SourceWorkable) o; return - Objects.deepEquals(this.accountSubdomain, other.accountSubdomain) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountSubdomain, other.accountSubdomain) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountSubdomain, - apiKey, - sourceType, + return Utils.enhancedHash( + accountSubdomain, apiKey, sourceType, startDate); } @@ -144,19 +145,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountSubdomain; - + private String apiKey; - + private String startDate; - + private Builder() { // force use of static builder() method } + /** * Your Workable account subdomain, e.g. https://your_account_subdomain.workable.com. */ @@ -166,8 +169,10 @@ public Builder accountSubdomain(String accountSubdomain) { return this; } + /** - * Your Workable API Key. See <a href="https://workable.readme.io/reference/generate-an-access-token">here</a>. + * Your Workable API Key. See here. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -175,6 +180,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Get data that was created since this date (format: YYYYMMDDTHHMMSSZ). */ @@ -183,14 +189,14 @@ public Builder startDate(String startDate) { this.startDate = startDate; return this; } - + public SourceWorkable build() { + return new SourceWorkable( - accountSubdomain, - apiKey, - startDate); + accountSubdomain, apiKey, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWorkday.java b/src/main/java/com/airbyte/api/models/shared/SourceWorkday.java index 477c96e2a..a0717d085 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWorkday.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWorkday.java @@ -11,22 +11,25 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceWorkday { +public class SourceWorkday { /** - * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams + * type you want to sync and provide needed credentials for them. */ @JsonProperty("credentials") private SourceWorkdayAuthentication credentials; + @JsonProperty("host") private String host; + @JsonProperty("sourceType") private Workday sourceType; + @JsonProperty("tenant_id") private String tenantId; @@ -45,7 +48,8 @@ public SourceWorkday( } /** - * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams + * type you want to sync and provide needed credentials for them. */ @JsonIgnore public SourceWorkdayAuthentication credentials() { @@ -67,12 +71,14 @@ public String tenantId() { return tenantId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams + * type you want to sync and provide needed credentials for them. */ public SourceWorkday withCredentials(SourceWorkdayAuthentication credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -92,7 +98,6 @@ public SourceWorkday withTenantId(String tenantId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -103,18 +108,16 @@ public boolean equals(java.lang.Object o) { } SourceWorkday other = (SourceWorkday) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tenantId, other.tenantId); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tenantId, other.tenantId); } @Override public int hashCode() { - return Objects.hash( - credentials, - host, - sourceType, + return Utils.enhancedHash( + credentials, host, sourceType, tenantId); } @@ -126,21 +129,24 @@ public String toString() { "sourceType", sourceType, "tenantId", tenantId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private SourceWorkdayAuthentication credentials; - + private String host; - + private String tenantId; - + private Builder() { // force use of static builder() method } + /** - * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + * Report Based Streams and REST API Streams use different methods of Authentication. Choose streams + * type you want to sync and provide needed credentials for them. */ public Builder credentials(SourceWorkdayAuthentication credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -148,25 +154,27 @@ public Builder credentials(SourceWorkdayAuthentication credentials) { return this; } + public Builder host(String host) { Utils.checkNotNull(host, "host"); this.host = host; return this; } + public Builder tenantId(String tenantId) { Utils.checkNotNull(tenantId, "tenantId"); this.tenantId = tenantId; return this; } - + public SourceWorkday build() { + return new SourceWorkday( - credentials, - host, - tenantId); + credentials, host, tenantId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWorkdayAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceWorkdayAuthentication.java index 38a0406e4..98a6a6cae 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWorkdayAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWorkdayAuthentication.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceWorkdayAuthentication * - *

    Report Based Streams and REST API Streams use different methods of Authentication. Choose streams type you want to sync and provide needed credentials for them. + *

    Report Based Streams and REST API Streams use different methods of Authentication. Choose streams + * type you want to sync and provide needed credentials for them. */ @JsonDeserialize(using = SourceWorkdayAuthentication._Deserializer.class) public class SourceWorkdayAuthentication { @@ -72,12 +72,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceWorkdayAuthentication other = (SourceWorkdayAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWorkflowmax.java b/src/main/java/com/airbyte/api/models/shared/SourceWorkflowmax.java index 09a915f36..6494800f1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWorkflowmax.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWorkflowmax.java @@ -12,22 +12,24 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; -public class SourceWorkflowmax { +public class SourceWorkflowmax { /** * The account id for workflowmax */ @JsonProperty("account_id") private String accountId; + @JsonProperty("api_key_2") private String apiKey2; + @JsonProperty("sourceType") private Workflowmax sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -68,9 +70,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The account id for workflowmax @@ -93,7 +96,6 @@ public SourceWorkflowmax withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,18 +106,16 @@ public boolean equals(java.lang.Object o) { } SourceWorkflowmax other = (SourceWorkflowmax) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.apiKey2, other.apiKey2) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.apiKey2, other.apiKey2) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accountId, - apiKey2, - sourceType, + return Utils.enhancedHash( + accountId, apiKey2, sourceType, startDate); } @@ -127,19 +127,21 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private String apiKey2; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** * The account id for workflowmax */ @@ -149,25 +151,27 @@ public Builder accountId(String accountId) { return this; } + public Builder apiKey2(String apiKey2) { Utils.checkNotNull(apiKey2, "apiKey2"); this.apiKey2 = apiKey2; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceWorkflowmax build() { + return new SourceWorkflowmax( - accountId, - apiKey2, - startDate); + accountId, apiKey2, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWorkramp.java b/src/main/java/com/airbyte/api/models/shared/SourceWorkramp.java index 30255da62..eaf8b667f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWorkramp.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWorkramp.java @@ -11,10 +11,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceWorkramp { +public class SourceWorkramp { /** * The id of the Academy */ @@ -27,6 +26,7 @@ public class SourceWorkramp { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Workramp sourceType; @@ -62,9 +62,10 @@ public Workramp sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The id of the Academy @@ -84,7 +85,6 @@ public SourceWorkramp withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +95,15 @@ public boolean equals(java.lang.Object o) { } SourceWorkramp other = (SourceWorkramp) o; return - Objects.deepEquals(this.academyId, other.academyId) && - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.academyId, other.academyId) && + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - academyId, - apiKey, - sourceType); + return Utils.enhancedHash( + academyId, apiKey, sourceType); } @Override @@ -115,17 +113,19 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String academyId; - + private String apiKey; - + private Builder() { // force use of static builder() method } + /** * The id of the Academy */ @@ -135,6 +135,7 @@ public Builder academyId(String academyId) { return this; } + /** * The API Token for Workramp */ @@ -143,13 +144,14 @@ public Builder apiKey(String apiKey) { this.apiKey = apiKey; return this; } - + public SourceWorkramp build() { + return new SourceWorkramp( - academyId, - apiKey); + academyId, apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWrike.java b/src/main/java/com/airbyte/api/models/shared/SourceWrike.java index 611a65082..f43ab5e3b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWrike.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWrike.java @@ -13,22 +13,24 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceWrike { +public class SourceWrike { /** - * Permanent access token. You can find documentation on how to acquire a permanent access token <a href="https://developers.wrike.com/oauth-20-authorization/">here</a> + * Permanent access token. You can find documentation on how to acquire a permanent access token here */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("sourceType") private Wrike sourceType; /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be + * replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") @@ -61,7 +63,8 @@ public SourceWrike( } /** - * Permanent access token. You can find documentation on how to acquire a permanent access token <a href="https://developers.wrike.com/oauth-20-authorization/">here</a> + * Permanent access token. You can find documentation on how to acquire a permanent access token here */ @JsonIgnore public String accessToken() { @@ -74,7 +77,8 @@ public Wrike sourceType() { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be + * replicated. */ @JsonIgnore public Optional startDate() { @@ -89,12 +93,14 @@ public Optional wrikeInstance() { return wrikeInstance; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Permanent access token. You can find documentation on how to acquire a permanent access token <a href="https://developers.wrike.com/oauth-20-authorization/">here</a> + * Permanent access token. You can find documentation on how to acquire a permanent access token here */ public SourceWrike withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -103,7 +109,8 @@ public SourceWrike withAccessToken(String accessToken) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be + * replicated. */ public SourceWrike withStartDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -111,8 +118,10 @@ public SourceWrike withStartDate(String startDate) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be + * replicated. */ public SourceWrike withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -129,6 +138,7 @@ public SourceWrike withWrikeInstance(String wrikeInstance) { return this; } + /** * Wrike's instance such as `app-us2.wrike.com` */ @@ -138,7 +148,6 @@ public SourceWrike withWrikeInstance(Optional wrikeInstance) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,18 +158,16 @@ public boolean equals(java.lang.Object o) { } SourceWrike other = (SourceWrike) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.wrikeInstance, other.wrikeInstance); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.wrikeInstance, other.wrikeInstance); } @Override public int hashCode() { - return Objects.hash( - accessToken, - sourceType, - startDate, + return Utils.enhancedHash( + accessToken, sourceType, startDate, wrikeInstance); } @@ -172,21 +179,24 @@ public String toString() { "startDate", startDate, "wrikeInstance", wrikeInstance); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Optional startDate = Optional.empty(); - + private Optional wrikeInstance; - + private Builder() { // force use of static builder() method } + /** - * Permanent access token. You can find documentation on how to acquire a permanent access token <a href="https://developers.wrike.com/oauth-20-authorization/">here</a> + * Permanent access token. You can find documentation on how to acquire a permanent access token here */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -194,8 +204,10 @@ public Builder accessToken(String accessToken) { return this; } + /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be + * replicated. */ public Builder startDate(String startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -204,7 +216,8 @@ public Builder startDate(String startDate) { } /** - * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be replicated. + * UTC date and time in the format 2017-01-25T00:00:00Z. Only comments after this date will be + * replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -212,6 +225,7 @@ public Builder startDate(Optional startDate) { return this; } + /** * Wrike's instance such as `app-us2.wrike.com` */ @@ -229,17 +243,17 @@ public Builder wrikeInstance(Optional wrikeInstance) { this.wrikeInstance = wrikeInstance; return this; } - + public SourceWrike build() { if (wrikeInstance == null) { wrikeInstance = _SINGLETON_VALUE_WrikeInstance.value(); } + return new SourceWrike( - accessToken, - startDate, - wrikeInstance); + accessToken, startDate, wrikeInstance); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceWufoo.java b/src/main/java/com/airbyte/api/models/shared/SourceWufoo.java index 683ba3e0f..648a93ef1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceWufoo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceWufoo.java @@ -11,16 +11,17 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceWufoo { +public class SourceWufoo { /** - * Your Wufoo API Key. You can find it by logging into your Wufoo account, selecting 'API Information' from the 'More' dropdown on any form, and locating the 16-digit code. + * Your Wufoo API Key. You can find it by logging into your Wufoo account, selecting 'API Information' + * from the 'More' dropdown on any form, and locating the 16-digit code. */ @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private Wufoo sourceType; @@ -42,7 +43,8 @@ public SourceWufoo( } /** - * Your Wufoo API Key. You can find it by logging into your Wufoo account, selecting 'API Information' from the 'More' dropdown on any form, and locating the 16-digit code. + * Your Wufoo API Key. You can find it by logging into your Wufoo account, selecting 'API Information' + * from the 'More' dropdown on any form, and locating the 16-digit code. */ @JsonIgnore public String apiKey() { @@ -62,12 +64,14 @@ public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your Wufoo API Key. You can find it by logging into your Wufoo account, selecting 'API Information' from the 'More' dropdown on any form, and locating the 16-digit code. + * Your Wufoo API Key. You can find it by logging into your Wufoo account, selecting 'API Information' + * from the 'More' dropdown on any form, and locating the 16-digit code. */ public SourceWufoo withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -84,7 +88,6 @@ public SourceWufoo withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +98,15 @@ public boolean equals(java.lang.Object o) { } SourceWufoo other = (SourceWufoo) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType, - subdomain); + return Utils.enhancedHash( + apiKey, sourceType, subdomain); } @Override @@ -115,19 +116,22 @@ public String toString() { "sourceType", sourceType, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private String subdomain; - + private Builder() { // force use of static builder() method } + /** - * Your Wufoo API Key. You can find it by logging into your Wufoo account, selecting 'API Information' from the 'More' dropdown on any form, and locating the 16-digit code. + * Your Wufoo API Key. You can find it by logging into your Wufoo account, selecting 'API Information' + * from the 'More' dropdown on any form, and locating the 16-digit code. */ public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -135,6 +139,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Your account subdomain/username for Wufoo. */ @@ -143,13 +148,14 @@ public Builder subdomain(String subdomain) { this.subdomain = subdomain; return this; } - + public SourceWufoo build() { + return new SourceWufoo( - apiKey, - subdomain); + apiKey, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceXkcd.java b/src/main/java/com/airbyte/api/models/shared/SourceXkcd.java index 01d3930fd..10dfdc563 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceXkcd.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceXkcd.java @@ -14,18 +14,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceXkcd { +public class SourceXkcd { /** - * Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics + * Specifies the comic number in which details are to be extracted, pagination will begin with that + * number to end of available comics */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("comic_number") private Optional comicNumber; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceType") private Optional sourceType; @@ -43,7 +44,8 @@ public SourceXkcd() { } /** - * Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics + * Specifies the comic number in which details are to be extracted, pagination will begin with that + * number to end of available comics */ @JsonIgnore public Optional comicNumber() { @@ -56,12 +58,14 @@ public Optional sourceType() { return (Optional) sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics + * Specifies the comic number in which details are to be extracted, pagination will begin with that + * number to end of available comics */ public SourceXkcd withComicNumber(String comicNumber) { Utils.checkNotNull(comicNumber, "comicNumber"); @@ -69,8 +73,10 @@ public SourceXkcd withComicNumber(String comicNumber) { return this; } + /** - * Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics + * Specifies the comic number in which details are to be extracted, pagination will begin with that + * number to end of available comics */ public SourceXkcd withComicNumber(Optional comicNumber) { Utils.checkNotNull(comicNumber, "comicNumber"); @@ -78,7 +84,6 @@ public SourceXkcd withComicNumber(Optional comicNumber) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -89,15 +94,14 @@ public boolean equals(java.lang.Object o) { } SourceXkcd other = (SourceXkcd) o; return - Objects.deepEquals(this.comicNumber, other.comicNumber) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.comicNumber, other.comicNumber) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - comicNumber, - sourceType); + return Utils.enhancedHash( + comicNumber, sourceType); } @Override @@ -106,17 +110,20 @@ public String toString() { "comicNumber", comicNumber, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional comicNumber; - + private Builder() { // force use of static builder() method } + /** - * Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics + * Specifies the comic number in which details are to be extracted, pagination will begin with that + * number to end of available comics */ public Builder comicNumber(String comicNumber) { Utils.checkNotNull(comicNumber, "comicNumber"); @@ -125,22 +132,25 @@ public Builder comicNumber(String comicNumber) { } /** - * Specifies the comic number in which details are to be extracted, pagination will begin with that number to end of available comics + * Specifies the comic number in which details are to be extracted, pagination will begin with that + * number to end of available comics */ public Builder comicNumber(Optional comicNumber) { Utils.checkNotNull(comicNumber, "comicNumber"); this.comicNumber = comicNumber; return this; } - + public SourceXkcd build() { if (comicNumber == null) { comicNumber = _SINGLETON_VALUE_ComicNumber.value(); } + return new SourceXkcd( comicNumber); } + private static final LazySingletonValue> _SINGLETON_VALUE_ComicNumber = new LazySingletonValue<>( "comic_number", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceXsolla.java b/src/main/java/com/airbyte/api/models/shared/SourceXsolla.java index 02fcdc11f..30a698908 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceXsolla.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceXsolla.java @@ -12,10 +12,9 @@ import java.lang.Double; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceXsolla { +public class SourceXsolla { /** * Go to Xsolla Dashboard and from company setting get the api_key */ @@ -23,11 +22,13 @@ public class SourceXsolla { private String apiKey; /** - * You can find this parameter in your Publisher Account next to the name of the project . Example: 44056 + * You can find this parameter in your Publisher Account next to the name of the project. Example: + * 44056 */ @JsonProperty("project_id") private double projectId; + @JsonProperty("sourceType") private Xsolla sourceType; @@ -51,7 +52,8 @@ public String apiKey() { } /** - * You can find this parameter in your Publisher Account next to the name of the project . Example: 44056 + * You can find this parameter in your Publisher Account next to the name of the project. Example: + * 44056 */ @JsonIgnore public double projectId() { @@ -63,9 +65,10 @@ public Xsolla sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Go to Xsolla Dashboard and from company setting get the api_key @@ -77,7 +80,8 @@ public SourceXsolla withApiKey(String apiKey) { } /** - * You can find this parameter in your Publisher Account next to the name of the project . Example: 44056 + * You can find this parameter in your Publisher Account next to the name of the project. Example: + * 44056 */ public SourceXsolla withProjectId(double projectId) { Utils.checkNotNull(projectId, "projectId"); @@ -85,7 +89,6 @@ public SourceXsolla withProjectId(double projectId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -96,17 +99,15 @@ public boolean equals(java.lang.Object o) { } SourceXsolla other = (SourceXsolla) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.projectId, other.projectId) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.projectId, other.projectId) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - projectId, - sourceType); + return Utils.enhancedHash( + apiKey, projectId, sourceType); } @Override @@ -116,17 +117,19 @@ public String toString() { "projectId", projectId, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Double projectId; - + private Builder() { // force use of static builder() method } + /** * Go to Xsolla Dashboard and from company setting get the api_key */ @@ -136,21 +139,24 @@ public Builder apiKey(String apiKey) { return this; } + /** - * You can find this parameter in your Publisher Account next to the name of the project . Example: 44056 + * You can find this parameter in your Publisher Account next to the name of the project. Example: + * 44056 */ public Builder projectId(double projectId) { Utils.checkNotNull(projectId, "projectId"); this.projectId = projectId; return this; } - + public SourceXsolla build() { + return new SourceXsolla( - apiKey, - projectId); + apiKey, projectId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePrice.java b/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePrice.java index c0191776b..7167bb142 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePrice.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePrice.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceYahooFinancePrice { +public class SourceYahooFinancePrice { /** * The interval of between prices queried. */ @@ -33,6 +32,7 @@ public class SourceYahooFinancePrice { @JsonProperty("range") private Optional range; + @JsonProperty("sourceType") private YahooFinancePrice sourceType; @@ -92,9 +92,10 @@ public String tickers() { return tickers; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The interval of between prices queried. @@ -105,6 +106,7 @@ public SourceYahooFinancePrice withInterval(SourceYahooFinancePriceInterval inte return this; } + /** * The interval of between prices queried. */ @@ -123,6 +125,7 @@ public SourceYahooFinancePrice withRange(Range range) { return this; } + /** * The range of prices to be queried. */ @@ -141,7 +144,6 @@ public SourceYahooFinancePrice withTickers(String tickers) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -152,18 +154,16 @@ public boolean equals(java.lang.Object o) { } SourceYahooFinancePrice other = (SourceYahooFinancePrice) o; return - Objects.deepEquals(this.interval, other.interval) && - Objects.deepEquals(this.range, other.range) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tickers, other.tickers); + Utils.enhancedDeepEquals(this.interval, other.interval) && + Utils.enhancedDeepEquals(this.range, other.range) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tickers, other.tickers); } @Override public int hashCode() { - return Objects.hash( - interval, - range, - sourceType, + return Utils.enhancedHash( + interval, range, sourceType, tickers); } @@ -175,19 +175,21 @@ public String toString() { "sourceType", sourceType, "tickers", tickers); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional interval = Optional.empty(); - + private Optional range = Optional.empty(); - + private String tickers; - + private Builder() { // force use of static builder() method } + /** * The interval of between prices queried. */ @@ -206,6 +208,7 @@ public Builder interval(Optional inte return this; } + /** * The range of prices to be queried. */ @@ -224,6 +227,7 @@ public Builder range(Optional range) { return this; } + /** * Comma-separated identifiers for the stocks to be queried. Whitespaces are allowed. */ @@ -232,14 +236,14 @@ public Builder tickers(String tickers) { this.tickers = tickers; return this; } - + public SourceYahooFinancePrice build() { + return new SourceYahooFinancePrice( - interval, - range, - tickers); + interval, range, tickers); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java b/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java index 2feee6224..8e317f9d3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYahooFinancePriceInterval.java @@ -29,7 +29,7 @@ public enum SourceYahooFinancePriceInterval { @JsonValue private final String value; - private SourceYahooFinancePriceInterval(String value) { + SourceYahooFinancePriceInterval(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYandexMetrica.java b/src/main/java/com/airbyte/api/models/shared/SourceYandexMetrica.java index 77f882cfc..eac8ee803 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYandexMetrica.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYandexMetrica.java @@ -14,11 +14,10 @@ import java.lang.Override; import java.lang.String; import java.time.LocalDate; -import java.util.Objects; import java.util.Optional; -public class SourceYandexMetrica { +public class SourceYandexMetrica { /** * Your Yandex Metrica API access token */ @@ -32,12 +31,14 @@ public class SourceYandexMetrica { private String counterId; /** - * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till most recent date. + * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till + * most recent date. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("end_date") private Optional endDate; + @JsonProperty("sourceType") private YandexMetrica sourceType; @@ -68,7 +69,8 @@ public SourceYandexMetrica( String authToken, String counterId, LocalDate startDate) { - this(authToken, counterId, Optional.empty(), startDate); + this(authToken, counterId, Optional.empty(), + startDate); } /** @@ -88,7 +90,8 @@ public String counterId() { } /** - * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till most recent date. + * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till + * most recent date. */ @JsonIgnore public Optional endDate() { @@ -108,9 +111,10 @@ public LocalDate startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Your Yandex Metrica API access token @@ -131,7 +135,8 @@ public SourceYandexMetrica withCounterId(String counterId) { } /** - * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till most recent date. + * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till + * most recent date. */ public SourceYandexMetrica withEndDate(LocalDate endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -139,8 +144,10 @@ public SourceYandexMetrica withEndDate(LocalDate endDate) { return this; } + /** - * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till most recent date. + * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till + * most recent date. */ public SourceYandexMetrica withEndDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -157,7 +164,6 @@ public SourceYandexMetrica withStartDate(LocalDate startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -168,21 +174,18 @@ public boolean equals(java.lang.Object o) { } SourceYandexMetrica other = (SourceYandexMetrica) o; return - Objects.deepEquals(this.authToken, other.authToken) && - Objects.deepEquals(this.counterId, other.counterId) && - Objects.deepEquals(this.endDate, other.endDate) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.authToken, other.authToken) && + Utils.enhancedDeepEquals(this.counterId, other.counterId) && + Utils.enhancedDeepEquals(this.endDate, other.endDate) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - authToken, - counterId, - endDate, - sourceType, - startDate); + return Utils.enhancedHash( + authToken, counterId, endDate, + sourceType, startDate); } @Override @@ -194,21 +197,23 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String authToken; - + private String counterId; - + private Optional endDate = Optional.empty(); - + private LocalDate startDate; - + private Builder() { // force use of static builder() method } + /** * Your Yandex Metrica API access token */ @@ -218,6 +223,7 @@ public Builder authToken(String authToken) { return this; } + /** * Counter ID */ @@ -227,8 +233,10 @@ public Builder counterId(String counterId) { return this; } + /** - * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till most recent date. + * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till + * most recent date. */ public Builder endDate(LocalDate endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -237,7 +245,8 @@ public Builder endDate(LocalDate endDate) { } /** - * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till most recent date. + * Starting point for your data replication, in format of "YYYY-MM-DD". If not provided will sync till + * most recent date. */ public Builder endDate(Optional endDate) { Utils.checkNotNull(endDate, "endDate"); @@ -245,6 +254,7 @@ public Builder endDate(Optional endDate) { return this; } + /** * Starting point for your data replication, in format of "YYYY-MM-DD". */ @@ -253,15 +263,15 @@ public Builder startDate(LocalDate startDate) { this.startDate = startDate; return this; } - + public SourceYandexMetrica build() { + return new SourceYandexMetrica( - authToken, - counterId, - endDate, + authToken, counterId, endDate, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYotpo.java b/src/main/java/com/airbyte/api/models/shared/SourceYotpo.java index 7156e360e..9f60149ef 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYotpo.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYotpo.java @@ -14,13 +14,13 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceYotpo { +public class SourceYotpo { /** - * Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- https://apidocs.yotpo.com/reference/yotpo-authentication) + * Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- + * https://apidocs.yotpo.com/reference/yotpo-authentication) */ @JsonProperty("access_token") private String accessToken; @@ -38,6 +38,7 @@ public class SourceYotpo { @JsonProperty("email") private Optional email; + @JsonProperty("sourceType") private Yotpo sourceType; @@ -68,11 +69,13 @@ public SourceYotpo( String accessToken, String appKey, OffsetDateTime startDate) { - this(accessToken, appKey, Optional.empty(), startDate); + this(accessToken, appKey, Optional.empty(), + startDate); } /** - * Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- https://apidocs.yotpo.com/reference/yotpo-authentication) + * Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- + * https://apidocs.yotpo.com/reference/yotpo-authentication) */ @JsonIgnore public String accessToken() { @@ -108,12 +111,14 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- https://apidocs.yotpo.com/reference/yotpo-authentication) + * Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- + * https://apidocs.yotpo.com/reference/yotpo-authentication) */ public SourceYotpo withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -139,6 +144,7 @@ public SourceYotpo withEmail(String email) { return this; } + /** * Email address registered with yotpo. */ @@ -157,7 +163,6 @@ public SourceYotpo withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -168,21 +173,18 @@ public boolean equals(java.lang.Object o) { } SourceYotpo other = (SourceYotpo) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.appKey, other.appKey) && - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.appKey, other.appKey) && + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - accessToken, - appKey, - email, - sourceType, - startDate); + return Utils.enhancedHash( + accessToken, appKey, email, + sourceType, startDate); } @Override @@ -194,23 +196,26 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String appKey; - + private Optional email; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- https://apidocs.yotpo.com/reference/yotpo-authentication) + * Access token recieved as a result of API call to https://api.yotpo.com/oauth/token (Ref- + * https://apidocs.yotpo.com/reference/yotpo-authentication) */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -218,6 +223,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * App key found at settings (Ref- https://settings.yotpo.com/#/general_settings) */ @@ -227,6 +233,7 @@ public Builder appKey(String appKey) { return this; } + /** * Email address registered with yotpo. */ @@ -245,6 +252,7 @@ public Builder email(Optional email) { return this; } + /** * Date time filter for incremental filter, Specify which date to extract from. */ @@ -253,18 +261,18 @@ public Builder startDate(OffsetDateTime startDate) { this.startDate = startDate; return this; } - + public SourceYotpo build() { if (email == null) { email = _SINGLETON_VALUE_Email.value(); } + return new SourceYotpo( - accessToken, - appKey, - email, + accessToken, appKey, email, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Email = new LazySingletonValue<>( "email", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYouNeedABudgetYnab.java b/src/main/java/com/airbyte/api/models/shared/SourceYouNeedABudgetYnab.java index 0ac24af27..560c4261f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYouNeedABudgetYnab.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYouNeedABudgetYnab.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceYouNeedABudgetYnab { @JsonProperty("api_key") private String apiKey; + @JsonProperty("sourceType") private YouNeedABudgetYnab sourceType; @@ -39,9 +40,10 @@ public YouNeedABudgetYnab sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceYouNeedABudgetYnab withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -49,7 +51,6 @@ public SourceYouNeedABudgetYnab withApiKey(String apiKey) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceYouNeedABudgetYnab other = (SourceYouNeedABudgetYnab) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - sourceType); + return Utils.enhancedHash( + apiKey, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "apiKey", apiKey, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } - + public SourceYouNeedABudgetYnab build() { + return new SourceYouNeedABudgetYnab( apiKey); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYounium.java b/src/main/java/com/airbyte/api/models/shared/SourceYounium.java index 4e969c2be..75b4b2a32 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYounium.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYounium.java @@ -14,11 +14,10 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceYounium { +public class SourceYounium { /** * Legal Entity that data should be pulled from */ @@ -38,6 +37,7 @@ public class SourceYounium { @JsonProperty("playground") private Optional playground; + @JsonProperty("sourceType") private Younium sourceType; @@ -68,7 +68,8 @@ public SourceYounium( String legalEntity, String password, String username) { - this(legalEntity, password, Optional.empty(), username); + this(legalEntity, password, Optional.empty(), + username); } /** @@ -108,9 +109,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Legal Entity that data should be pulled from @@ -139,6 +141,7 @@ public SourceYounium withPlayground(boolean playground) { return this; } + /** * Property defining if connector is used against playground or production environment */ @@ -157,7 +160,6 @@ public SourceYounium withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -168,21 +170,18 @@ public boolean equals(java.lang.Object o) { } SourceYounium other = (SourceYounium) o; return - Objects.deepEquals(this.legalEntity, other.legalEntity) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.playground, other.playground) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.legalEntity, other.legalEntity) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.playground, other.playground) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - legalEntity, - password, - playground, - sourceType, - username); + return Utils.enhancedHash( + legalEntity, password, playground, + sourceType, username); } @Override @@ -194,21 +193,23 @@ public String toString() { "sourceType", sourceType, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String legalEntity; - + private String password; - + private Optional playground; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Legal Entity that data should be pulled from */ @@ -218,6 +219,7 @@ public Builder legalEntity(String legalEntity) { return this; } + /** * Account password for younium account API key */ @@ -227,6 +229,7 @@ public Builder password(String password) { return this; } + /** * Property defining if connector is used against playground or production environment */ @@ -245,6 +248,7 @@ public Builder playground(Optional playground) { return this; } + /** * Username for Younium account */ @@ -253,18 +257,18 @@ public Builder username(String username) { this.username = username; return this; } - + public SourceYounium build() { if (playground == null) { playground = _SINGLETON_VALUE_Playground.value(); } + return new SourceYounium( - legalEntity, - password, - playground, + legalEntity, password, playground, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_Playground = new LazySingletonValue<>( "playground", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYousign.java b/src/main/java/com/airbyte/api/models/shared/SourceYousign.java index fdedc52ac..3a549e678 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYousign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYousign.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceYousign { +public class SourceYousign { /** * API key or access token */ @@ -33,9 +32,11 @@ public class SourceYousign { @JsonProperty("limit") private Optional limit; + @JsonProperty("sourceType") private Yousign sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -66,7 +67,8 @@ public SourceYousign( public SourceYousign( String apiKey, OffsetDateTime startDate) { - this(apiKey, Optional.empty(), startDate, Optional.empty()); + this(apiKey, Optional.empty(), startDate, + Optional.empty()); } /** @@ -104,9 +106,10 @@ public Optional subdomain() { return (Optional) subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * API key or access token @@ -126,6 +129,7 @@ public SourceYousign withLimit(String limit) { return this; } + /** * Limit for each response objects */ @@ -150,6 +154,7 @@ public SourceYousign withSubdomain(SourceYousignSubdomain subdomain) { return this; } + /** * The subdomain for the Yousign API environment, such as 'sandbox' or 'api'. */ @@ -159,7 +164,6 @@ public SourceYousign withSubdomain(Optional su return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -170,21 +174,18 @@ public boolean equals(java.lang.Object o) { } SourceYousign other = (SourceYousign) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.limit, other.limit) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.limit, other.limit) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - apiKey, - limit, - sourceType, - startDate, - subdomain); + return Utils.enhancedHash( + apiKey, limit, sourceType, + startDate, subdomain); } @Override @@ -196,21 +197,23 @@ public String toString() { "startDate", startDate, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private Optional limit; - + private OffsetDateTime startDate; - + private Optional subdomain; - + private Builder() { // force use of static builder() method } + /** * API key or access token */ @@ -220,6 +223,7 @@ public Builder apiKey(String apiKey) { return this; } + /** * Limit for each response objects */ @@ -238,12 +242,14 @@ public Builder limit(Optional limit) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } + /** * The subdomain for the Yousign API environment, such as 'sandbox' or 'api'. */ @@ -261,7 +267,7 @@ public Builder subdomain(Optional subdomain) { this.subdomain = subdomain; return this; } - + public SourceYousign build() { if (limit == null) { limit = _SINGLETON_VALUE_Limit.value(); @@ -269,13 +275,13 @@ public SourceYousign build() { if (subdomain == null) { subdomain = _SINGLETON_VALUE_Subdomain.value(); } + return new SourceYousign( - apiKey, - limit, - startDate, + apiKey, limit, startDate, subdomain); } + private static final LazySingletonValue> _SINGLETON_VALUE_Limit = new LazySingletonValue<>( "limit", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYousignSubdomain.java b/src/main/java/com/airbyte/api/models/shared/SourceYousignSubdomain.java index 088d9672e..bfa965293 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYousignSubdomain.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYousignSubdomain.java @@ -20,7 +20,7 @@ public enum SourceYousignSubdomain { @JsonValue private final String value; - private SourceYousignSubdomain(String value) { + SourceYousignSubdomain(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalytics.java b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalytics.java index 103b56536..317c4cdb4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalytics.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalytics.java @@ -11,13 +11,14 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceYoutubeAnalytics { @JsonProperty("credentials") private AuthenticateViaOAuth20 credentials; + @JsonProperty("sourceType") private SourceYoutubeAnalyticsYoutubeAnalytics sourceType; @@ -39,9 +40,10 @@ public SourceYoutubeAnalyticsYoutubeAnalytics sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceYoutubeAnalytics withCredentials(AuthenticateViaOAuth20 credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -49,7 +51,6 @@ public SourceYoutubeAnalytics withCredentials(AuthenticateViaOAuth20 credentials return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -60,15 +61,14 @@ public boolean equals(java.lang.Object o) { } SourceYoutubeAnalytics other = (SourceYoutubeAnalytics) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - credentials, - sourceType); + return Utils.enhancedHash( + credentials, sourceType); } @Override @@ -77,26 +77,30 @@ public String toString() { "credentials", credentials, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private AuthenticateViaOAuth20 credentials; - + private Builder() { // force use of static builder() method } + public Builder credentials(AuthenticateViaOAuth20 credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - + public SourceYoutubeAnalytics build() { + return new SourceYoutubeAnalytics( credentials); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java index 42c5daf02..402d4420f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeAnalyticsYoutubeAnalytics.java @@ -14,7 +14,7 @@ public enum SourceYoutubeAnalyticsYoutubeAnalytics { @JsonValue private final String value; - private SourceYoutubeAnalyticsYoutubeAnalytics(String value) { + SourceYoutubeAnalyticsYoutubeAnalytics(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeData.java b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeData.java index 28fbdd6a7..7dd35356d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceYoutubeData.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceYoutubeData.java @@ -13,16 +13,18 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class SourceYoutubeData { @JsonProperty("api_key") private String apiKey; + @JsonProperty("channel_ids") private List channelIds; + @JsonProperty("sourceType") private YoutubeData sourceType; @@ -52,9 +54,10 @@ public YoutubeData sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceYoutubeData withApiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); @@ -68,7 +71,6 @@ public SourceYoutubeData withChannelIds(List channelIds) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -79,17 +81,15 @@ public boolean equals(java.lang.Object o) { } SourceYoutubeData other = (SourceYoutubeData) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.channelIds, other.channelIds) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.channelIds, other.channelIds) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - apiKey, - channelIds, - sourceType); + return Utils.enhancedHash( + apiKey, channelIds, sourceType); } @Override @@ -99,35 +99,39 @@ public String toString() { "channelIds", channelIds, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiKey; - + private List channelIds; - + private Builder() { // force use of static builder() method } + public Builder apiKey(String apiKey) { Utils.checkNotNull(apiKey, "apiKey"); this.apiKey = apiKey; return this; } + public Builder channelIds(List channelIds) { Utils.checkNotNull(channelIds, "channelIds"); this.channelIds = channelIds; return this; } - + public SourceYoutubeData build() { + return new SourceYoutubeData( - apiKey, - channelIds); + apiKey, channelIds); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZapierSupportedStorage.java b/src/main/java/com/airbyte/api/models/shared/SourceZapierSupportedStorage.java index 21fa8e801..684e6e1a5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZapierSupportedStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZapierSupportedStorage.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceZapierSupportedStorage { +public class SourceZapierSupportedStorage { /** * Secret key supplied by zapier */ @JsonProperty("secret") private String secret; + @JsonProperty("sourceType") private ZapierSupportedStorage sourceType; @@ -45,9 +45,10 @@ public ZapierSupportedStorage sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Secret key supplied by zapier @@ -58,7 +59,6 @@ public SourceZapierSupportedStorage withSecret(String secret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceZapierSupportedStorage other = (SourceZapierSupportedStorage) o; return - Objects.deepEquals(this.secret, other.secret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.secret, other.secret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - secret, - sourceType); + return Utils.enhancedHash( + secret, sourceType); } @Override @@ -86,15 +85,17 @@ public String toString() { "secret", secret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String secret; - + private Builder() { // force use of static builder() method } + /** * Secret key supplied by zapier */ @@ -103,12 +104,14 @@ public Builder secret(String secret) { this.secret = secret; return this; } - + public SourceZapierSupportedStorage build() { + return new SourceZapierSupportedStorage( secret); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZapsign.java b/src/main/java/com/airbyte/api/models/shared/SourceZapsign.java index 113f184c0..eddf2cda4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZapsign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZapsign.java @@ -17,13 +17,14 @@ import java.lang.SuppressWarnings; import java.time.OffsetDateTime; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class SourceZapsign { +public class SourceZapsign { /** - * Your static API token for authentication. You can find it in your ZapSign account under the 'Settings' or 'API' section. For more details, refer to the [Getting Started](https://docs.zapsign.com.br/english/getting-started#how-do-i-get-my-api-token) guide. + * Your static API token for authentication. You can find it in your ZapSign account under the + * 'Settings' or 'API' section. For more details, refer to the [Getting + * Started](https://docs.zapsign.com.br/english/getting-started#how-do-i-get-my-api-token) guide. */ @JsonProperty("api_token") private String apiToken; @@ -35,9 +36,11 @@ public class SourceZapsign { @JsonProperty("signer_ids") private Optional> signerIds; + @JsonProperty("sourceType") private Zapsign sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -62,7 +65,9 @@ public SourceZapsign( } /** - * Your static API token for authentication. You can find it in your ZapSign account under the 'Settings' or 'API' section. For more details, refer to the [Getting Started](https://docs.zapsign.com.br/english/getting-started#how-do-i-get-my-api-token) guide. + * Your static API token for authentication. You can find it in your ZapSign account under the + * 'Settings' or 'API' section. For more details, refer to the [Getting + * Started](https://docs.zapsign.com.br/english/getting-started#how-do-i-get-my-api-token) guide. */ @JsonIgnore public String apiToken() { @@ -88,12 +93,15 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Your static API token for authentication. You can find it in your ZapSign account under the 'Settings' or 'API' section. For more details, refer to the [Getting Started](https://docs.zapsign.com.br/english/getting-started#how-do-i-get-my-api-token) guide. + * Your static API token for authentication. You can find it in your ZapSign account under the + * 'Settings' or 'API' section. For more details, refer to the [Getting + * Started](https://docs.zapsign.com.br/english/getting-started#how-do-i-get-my-api-token) guide. */ public SourceZapsign withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -110,6 +118,7 @@ public SourceZapsign withSignerIds(List signerIds) { return this; } + /** * The signer ids for signer stream */ @@ -125,7 +134,6 @@ public SourceZapsign withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -136,18 +144,16 @@ public boolean equals(java.lang.Object o) { } SourceZapsign other = (SourceZapsign) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.signerIds, other.signerIds) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.signerIds, other.signerIds) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - apiToken, - signerIds, - sourceType, + return Utils.enhancedHash( + apiToken, signerIds, sourceType, startDate); } @@ -159,21 +165,25 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Optional> signerIds = Optional.empty(); - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + /** - * Your static API token for authentication. You can find it in your ZapSign account under the 'Settings' or 'API' section. For more details, refer to the [Getting Started](https://docs.zapsign.com.br/english/getting-started#how-do-i-get-my-api-token) guide. + * Your static API token for authentication. You can find it in your ZapSign account under the + * 'Settings' or 'API' section. For more details, refer to the [Getting + * Started](https://docs.zapsign.com.br/english/getting-started#how-do-i-get-my-api-token) guide. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -181,6 +191,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * The signer ids for signer stream */ @@ -199,19 +210,20 @@ public Builder signerIds(Optional> signerIds) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceZapsign build() { + return new SourceZapsign( - apiToken, - signerIds, - startDate); + apiToken, signerIds, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChat.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChat.java index d24320ff6..e190a293b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChat.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChat.java @@ -15,26 +15,30 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceZendeskChat { @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; + @JsonProperty("sourceType") private ZendeskChat sourceType; /** - * The date from which you'd like to replicate data for Zendesk Chat API, in the format YYYY-MM-DDT00:00:00Z. + * The date from which you'd like to replicate data for Zendesk Chat API, in the format + * YYYY-MM-DDT00:00:00Z. */ @JsonProperty("start_date") private OffsetDateTime startDate; /** - * The unique subdomain of your Zendesk account (without https://). <a href=\"https://support.zendesk.com/hc/en-us/articles/4409381383578-Where-can-I-find-my-Zendesk-subdomain\">See the Zendesk docs to find your subdomain</a>. + * The unique subdomain of your Zendesk account (without https://). <a + * href=\"https://support.zendesk.com/hc/en-us/articles/4409381383578-Where-can-I-find-my-Zendesk-subdomain\">See + * the Zendesk docs to find your subdomain</a>. */ @JsonProperty("subdomain") private String subdomain; @@ -71,7 +75,8 @@ public ZendeskChat sourceType() { } /** - * The date from which you'd like to replicate data for Zendesk Chat API, in the format YYYY-MM-DDT00:00:00Z. + * The date from which you'd like to replicate data for Zendesk Chat API, in the format + * YYYY-MM-DDT00:00:00Z. */ @JsonIgnore public OffsetDateTime startDate() { @@ -79,16 +84,19 @@ public OffsetDateTime startDate() { } /** - * The unique subdomain of your Zendesk account (without https://). <a href=\"https://support.zendesk.com/hc/en-us/articles/4409381383578-Where-can-I-find-my-Zendesk-subdomain\">See the Zendesk docs to find your subdomain</a>. + * The unique subdomain of your Zendesk account (without https://). <a + * href=\"https://support.zendesk.com/hc/en-us/articles/4409381383578-Where-can-I-find-my-Zendesk-subdomain\">See + * the Zendesk docs to find your subdomain</a>. */ @JsonIgnore public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZendeskChat withCredentials(SourceZendeskChatAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -96,6 +104,7 @@ public SourceZendeskChat withCredentials(SourceZendeskChatAuthorizationMethod cr return this; } + public SourceZendeskChat withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -103,7 +112,8 @@ public SourceZendeskChat withCredentials(Optional credentials = Optional.empty(); - + private OffsetDateTime startDate; - + private String subdomain; - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceZendeskChatAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -179,8 +190,10 @@ public Builder credentials(Optional _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAccessToken.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAccessToken.java index ed4ada30d..eaeef12cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAccessToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAccessToken.java @@ -11,16 +11,16 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceZendeskChatAccessToken { +public class SourceZendeskChatAccessToken { /** * The Access Token to make authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("credentials") private SourceZendeskChatSchemasCredentials credentials; @@ -45,9 +45,10 @@ public SourceZendeskChatSchemasCredentials credentials() { return credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Access Token to make authenticated requests. @@ -58,7 +59,6 @@ public SourceZendeskChatAccessToken withAccessToken(String accessToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +69,14 @@ public boolean equals(java.lang.Object o) { } SourceZendeskChatAccessToken other = (SourceZendeskChatAccessToken) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( - accessToken, - credentials); + return Utils.enhancedHash( + accessToken, credentials); } @Override @@ -86,15 +85,17 @@ public String toString() { "accessToken", accessToken, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Builder() { // force use of static builder() method } + /** * The Access Token to make authenticated requests. */ @@ -103,12 +104,14 @@ public Builder accessToken(String accessToken) { this.accessToken = accessToken; return this; } - + public SourceZendeskChatAccessToken build() { + return new SourceZendeskChatAccessToken( accessToken); } + private static final LazySingletonValue _SINGLETON_VALUE_Credentials = new LazySingletonValue<>( "credentials", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAuthorizationMethod.java index f391befcf..0c16d0d49 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceZendeskChatAuthorizationMethod._Deserializer.class) public class SourceZendeskChatAuthorizationMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceZendeskChatAuthorizationMethod other = (SourceZendeskChatAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java index bb9d17c3f..5859c7423 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatCredentials.java @@ -14,7 +14,7 @@ public enum SourceZendeskChatCredentials { @JsonValue private final String value; - private SourceZendeskChatCredentials(String value) { + SourceZendeskChatCredentials(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatOAuth20.java index f509aaa67..3d0aa8121 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatOAuth20.java @@ -13,11 +13,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceZendeskChatOAuth20 { +public class SourceZendeskChatOAuth20 { /** * Access Token for making authenticated requests. */ @@ -39,6 +38,7 @@ public class SourceZendeskChatOAuth20 { @JsonProperty("client_secret") private Optional clientSecret; + @JsonProperty("credentials") private SourceZendeskChatCredentials credentials; @@ -67,7 +67,8 @@ public SourceZendeskChatOAuth20( } public SourceZendeskChatOAuth20() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -107,9 +108,10 @@ public Optional refreshToken() { return refreshToken; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Access Token for making authenticated requests. @@ -120,6 +122,7 @@ public SourceZendeskChatOAuth20 withAccessToken(String accessToken) { return this; } + /** * Access Token for making authenticated requests. */ @@ -138,6 +141,7 @@ public SourceZendeskChatOAuth20 withClientId(String clientId) { return this; } + /** * The Client ID of your OAuth application */ @@ -156,6 +160,7 @@ public SourceZendeskChatOAuth20 withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -174,6 +179,7 @@ public SourceZendeskChatOAuth20 withRefreshToken(String refreshToken) { return this; } + /** * Refresh Token to obtain new Access Token, when it's expired. */ @@ -183,7 +189,6 @@ public SourceZendeskChatOAuth20 withRefreshToken(Optional refreshToken) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -194,21 +199,18 @@ public boolean equals(java.lang.Object o) { } SourceZendeskChatOAuth20 other = (SourceZendeskChatOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.refreshToken, other.refreshToken); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken); } @Override public int hashCode() { - return Objects.hash( - accessToken, - clientId, - clientSecret, - credentials, - refreshToken); + return Utils.enhancedHash( + accessToken, clientId, clientSecret, + credentials, refreshToken); } @Override @@ -220,21 +222,23 @@ public String toString() { "credentials", credentials, "refreshToken", refreshToken); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional accessToken = Optional.empty(); - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Optional refreshToken = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Access Token for making authenticated requests. */ @@ -253,6 +257,7 @@ public Builder accessToken(Optional accessToken) { return this; } + /** * The Client ID of your OAuth application */ @@ -271,6 +276,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -289,6 +295,7 @@ public Builder clientSecret(Optional clientSecret) { return this; } + /** * Refresh Token to obtain new Access Token, when it's expired. */ @@ -306,15 +313,15 @@ public Builder refreshToken(Optional refreshToken) { this.refreshToken = refreshToken; return this; } - + public SourceZendeskChatOAuth20 build() { + return new SourceZendeskChatOAuth20( - accessToken, - clientId, - clientSecret, + accessToken, clientId, clientSecret, refreshToken); } + private static final LazySingletonValue _SINGLETON_VALUE_Credentials = new LazySingletonValue<>( "credentials", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java index 1d6f5d066..26576193e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskChatSchemasCredentials.java @@ -14,7 +14,7 @@ public enum SourceZendeskChatSchemasCredentials { @JsonValue private final String value; - private SourceZendeskChatSchemasCredentials(String value) { + SourceZendeskChatSchemasCredentials(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshine.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshine.java index 88c9efc9f..825cf67ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshine.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshine.java @@ -15,20 +15,22 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceZendeskSunshine { @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; + @JsonProperty("sourceType") private ZendeskSunshine sourceType; /** - * The date from which you'd like to replicate data for Zendesk Sunshine API, in the format YYYY-MM-DDT00:00:00Z. + * The date from which you'd like to replicate data for Zendesk Sunshine API, in the format + * YYYY-MM-DDT00:00:00Z. */ @JsonProperty("start_date") private OffsetDateTime startDate; @@ -71,7 +73,8 @@ public ZendeskSunshine sourceType() { } /** - * The date from which you'd like to replicate data for Zendesk Sunshine API, in the format YYYY-MM-DDT00:00:00Z. + * The date from which you'd like to replicate data for Zendesk Sunshine API, in the format + * YYYY-MM-DDT00:00:00Z. */ @JsonIgnore public OffsetDateTime startDate() { @@ -86,9 +89,10 @@ public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZendeskSunshine withCredentials(SourceZendeskSunshineAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -96,6 +100,7 @@ public SourceZendeskSunshine withCredentials(SourceZendeskSunshineAuthorizationM return this; } + public SourceZendeskSunshine withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; @@ -103,7 +108,8 @@ public SourceZendeskSunshine withCredentials(Optional credentials = Optional.empty(); - + private OffsetDateTime startDate; - + private String subdomain; - + private Builder() { // force use of static builder() method } + public Builder credentials(SourceZendeskSunshineAuthorizationMethod credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -179,8 +184,10 @@ public Builder credentials(Optional _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAPIToken.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAPIToken.java index 3b017b163..ed9d9cc0e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAPIToken.java @@ -14,17 +14,18 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceZendeskSunshineAPIToken { +public class SourceZendeskSunshineAPIToken { /** - * API Token. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk_sunshine">docs</a> for information on how to generate this key. + * API Token. See the docs + * for information on how to generate this key. */ @JsonProperty("api_token") private String apiToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_method") private Optional authMethod; @@ -47,7 +48,8 @@ public SourceZendeskSunshineAPIToken( } /** - * API Token. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk_sunshine">docs</a> for information on how to generate this key. + * API Token. See the docs + * for information on how to generate this key. */ @JsonIgnore public String apiToken() { @@ -68,12 +70,14 @@ public String email() { return email; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * API Token. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk_sunshine">docs</a> for information on how to generate this key. + * API Token. See the docs + * for information on how to generate this key. */ public SourceZendeskSunshineAPIToken withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -90,7 +94,6 @@ public SourceZendeskSunshineAPIToken withEmail(String email) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,17 +104,15 @@ public boolean equals(java.lang.Object o) { } SourceZendeskSunshineAPIToken other = (SourceZendeskSunshineAPIToken) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.email, other.email); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.email, other.email); } @Override public int hashCode() { - return Objects.hash( - apiToken, - authMethod, - email); + return Utils.enhancedHash( + apiToken, authMethod, email); } @Override @@ -121,19 +122,22 @@ public String toString() { "authMethod", authMethod, "email", email); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private String email; - + private Builder() { // force use of static builder() method } + /** - * API Token. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk_sunshine">docs</a> for information on how to generate this key. + * API Token. See the docs + * for information on how to generate this key. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -141,6 +145,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * The user email for your Zendesk account */ @@ -149,13 +154,14 @@ public Builder email(String email) { this.email = email; return this; } - + public SourceZendeskSunshineAPIToken build() { + return new SourceZendeskSunshineAPIToken( - apiToken, - email); + apiToken, email); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java index d51b0766f..07d5062de 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceZendeskSunshineAuthMethod { @JsonValue private final String value; - private SourceZendeskSunshineAuthMethod(String value) { + SourceZendeskSunshineAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthorizationMethod.java index 72e030039..6c59cad6e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineAuthorizationMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = SourceZendeskSunshineAuthorizationMethod._Deserializer.class) public class SourceZendeskSunshineAuthorizationMethod { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceZendeskSunshineAuthorizationMethod other = (SourceZendeskSunshineAuthorizationMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineOAuth20.java index 56fe65b31..1431348e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineOAuth20.java @@ -14,17 +14,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class SourceZendeskSunshineOAuth20 { +public class SourceZendeskSunshineOAuth20 { /** * Long-term access Token for making authenticated requests. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_method") private Optional authMethod; @@ -85,9 +85,10 @@ public String clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Long-term access Token for making authenticated requests. @@ -116,7 +117,6 @@ public SourceZendeskSunshineOAuth20 withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -127,18 +127,16 @@ public boolean equals(java.lang.Object o) { } SourceZendeskSunshineOAuth20 other = (SourceZendeskSunshineOAuth20) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authMethod, - clientId, + return Utils.enhancedHash( + accessToken, authMethod, clientId, clientSecret); } @@ -150,19 +148,21 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + /** * Long-term access Token for making authenticated requests. */ @@ -172,6 +172,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Client ID of your OAuth application. */ @@ -181,6 +182,7 @@ public Builder clientId(String clientId) { return this; } + /** * The Client Secret of your OAuth application. */ @@ -189,14 +191,14 @@ public Builder clientSecret(String clientSecret) { this.clientSecret = clientSecret; return this; } - + public SourceZendeskSunshineOAuth20 build() { + return new SourceZendeskSunshineOAuth20( - accessToken, - clientId, - clientSecret); + accessToken, clientId, clientSecret); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java index 013348650..b52df41db 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSunshineSchemasAuthMethod.java @@ -14,7 +14,7 @@ public enum SourceZendeskSunshineSchemasAuthMethod { @JsonValue private final String value; - private SourceZendeskSunshineSchemasAuthMethod(String value) { + SourceZendeskSunshineSchemasAuthMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupport.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupport.java index 9eb8a8fba..0ffe020ad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupport.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupport.java @@ -16,37 +16,43 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceZendeskSupport { +public class SourceZendeskSupport { /** - * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. + * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and + * `API token` for Airbyte Open Source users. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Zendesk Support plan. More info about the rate limit plan tiers can be found on Zendesk's API <a href="https://developer.zendesk.com/api-reference/introduction/rate-limits/#zendesk-support-plan-limits">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Zendesk Support plan. More info about the rate limit plan tiers can be found on + * Zendesk's API docs. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("num_workers") private Optional numWorkers; + @JsonProperty("sourceType") private SourceZendeskSupportZendeskSupport sourceType; /** - * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("start_date") private Optional startDate; /** - * This is your unique Zendesk subdomain that can be found in your account URL. For example, in https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain. + * This is your unique Zendesk subdomain that can be found in your account URL. For example, in + * https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain. */ @JsonProperty("subdomain") private String subdomain; @@ -70,11 +76,13 @@ public SourceZendeskSupport( public SourceZendeskSupport( String subdomain) { - this(Optional.empty(), Optional.empty(), Optional.empty(), subdomain); + this(Optional.empty(), Optional.empty(), Optional.empty(), + subdomain); } /** - * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. + * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and + * `API token` for Airbyte Open Source users. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -83,7 +91,10 @@ public Optional credentials() { } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Zendesk Support plan. More info about the rate limit plan tiers can be found on Zendesk's API <a href="https://developer.zendesk.com/api-reference/introduction/rate-limits/#zendesk-support-plan-limits">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Zendesk Support plan. More info about the rate limit plan tiers can be found on + * Zendesk's API docs. */ @JsonIgnore public Optional numWorkers() { @@ -96,7 +107,8 @@ public SourceZendeskSupportZendeskSupport sourceType() { } /** - * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. */ @JsonIgnore public Optional startDate() { @@ -104,19 +116,22 @@ public Optional startDate() { } /** - * This is your unique Zendesk subdomain that can be found in your account URL. For example, in https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain. + * This is your unique Zendesk subdomain that can be found in your account URL. For example, in + * https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain. */ @JsonIgnore public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. + * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and + * `API token` for Airbyte Open Source users. */ public SourceZendeskSupport withCredentials(SourceZendeskSupportAuthentication credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -124,8 +139,10 @@ public SourceZendeskSupport withCredentials(SourceZendeskSupportAuthentication c return this; } + /** - * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. + * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and + * `API token` for Airbyte Open Source users. */ public SourceZendeskSupport withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -134,7 +151,10 @@ public SourceZendeskSupport withCredentials(Optionaldocs. */ public SourceZendeskSupport withNumWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -142,8 +162,12 @@ public SourceZendeskSupport withNumWorkers(long numWorkers) { return this; } + /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Zendesk Support plan. More info about the rate limit plan tiers can be found on Zendesk's API <a href="https://developer.zendesk.com/api-reference/introduction/rate-limits/#zendesk-support-plan-limits">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Zendesk Support plan. More info about the rate limit plan tiers can be found on + * Zendesk's API docs. */ public SourceZendeskSupport withNumWorkers(Optional numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -152,7 +176,8 @@ public SourceZendeskSupport withNumWorkers(Optional numWorkers) { } /** - * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. */ public SourceZendeskSupport withStartDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -160,8 +185,10 @@ public SourceZendeskSupport withStartDate(OffsetDateTime startDate) { return this; } + /** - * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. */ public SourceZendeskSupport withStartDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -170,7 +197,8 @@ public SourceZendeskSupport withStartDate(Optional startDate) { } /** - * This is your unique Zendesk subdomain that can be found in your account URL. For example, in https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain. + * This is your unique Zendesk subdomain that can be found in your account URL. For example, in + * https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain. */ public SourceZendeskSupport withSubdomain(String subdomain) { Utils.checkNotNull(subdomain, "subdomain"); @@ -178,7 +206,6 @@ public SourceZendeskSupport withSubdomain(String subdomain) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -189,21 +216,18 @@ public boolean equals(java.lang.Object o) { } SourceZendeskSupport other = (SourceZendeskSupport) o; return - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.numWorkers, other.numWorkers) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate) && - Objects.deepEquals(this.subdomain, other.subdomain); + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.numWorkers, other.numWorkers) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate) && + Utils.enhancedDeepEquals(this.subdomain, other.subdomain); } @Override public int hashCode() { - return Objects.hash( - credentials, - numWorkers, - sourceType, - startDate, - subdomain); + return Utils.enhancedHash( + credentials, numWorkers, sourceType, + startDate, subdomain); } @Override @@ -215,23 +239,26 @@ public String toString() { "startDate", startDate, "subdomain", subdomain); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Optional numWorkers; - + private Optional startDate = Optional.empty(); - + private String subdomain; - + private Builder() { // force use of static builder() method } + /** - * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. + * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and + * `API token` for Airbyte Open Source users. */ public Builder credentials(SourceZendeskSupportAuthentication credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -240,7 +267,8 @@ public Builder credentials(SourceZendeskSupportAuthentication credentials) { } /** - * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. + * Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and + * `API token` for Airbyte Open Source users. */ public Builder credentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -248,8 +276,12 @@ public Builder credentials(Optionaldocs. */ public Builder numWorkers(long numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -258,7 +290,10 @@ public Builder numWorkers(long numWorkers) { } /** - * The number of worker threads to use for the sync. The performance upper boundary is based on the limit of your Zendesk Support plan. More info about the rate limit plan tiers can be found on Zendesk's API <a href="https://developer.zendesk.com/api-reference/introduction/rate-limits/#zendesk-support-plan-limits">docs</a>. + * The number of worker threads to use for the sync. The performance upper boundary is based on the + * limit of your Zendesk Support plan. More info about the rate limit plan tiers can be found on + * Zendesk's API docs. */ public Builder numWorkers(Optional numWorkers) { Utils.checkNotNull(numWorkers, "numWorkers"); @@ -266,8 +301,10 @@ public Builder numWorkers(Optional numWorkers) { return this; } + /** - * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -276,7 +313,8 @@ public Builder startDate(OffsetDateTime startDate) { } /** - * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The UTC date and time from which you'd like to replicate data, in the format YYYY-MM-DDT00:00:00Z. + * All data generated after this date will be replicated. */ public Builder startDate(Optional startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -284,26 +322,28 @@ public Builder startDate(Optional startDate) { return this; } + /** - * This is your unique Zendesk subdomain that can be found in your account URL. For example, in https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain. + * This is your unique Zendesk subdomain that can be found in your account URL. For example, in + * https://MY_SUBDOMAIN.zendesk.com/, MY_SUBDOMAIN is the value of your subdomain. */ public Builder subdomain(String subdomain) { Utils.checkNotNull(subdomain, "subdomain"); this.subdomain = subdomain; return this; } - + public SourceZendeskSupport build() { if (numWorkers == null) { numWorkers = _SINGLETON_VALUE_NumWorkers.value(); } + return new SourceZendeskSupport( - credentials, - numWorkers, - startDate, + credentials, numWorkers, startDate, subdomain); } + private static final LazySingletonValue> _SINGLETON_VALUE_NumWorkers = new LazySingletonValue<>( "num_workers", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAPIToken.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAPIToken.java index 277db305d..46da49b78 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAPIToken.java @@ -19,20 +19,23 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class SourceZendeskSupportAPIToken { @JsonIgnore private Map additionalProperties; /** - * The value of the API token generated. See our <a href="https://docs.airbyte.com/integrations/sources/zendesk-support#setup-guide">full documentation</a> for more information on generating this token. + * The value of the API token generated. See our full + * documentation for more information on generating this token. */ @JsonProperty("api_token") private String apiToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; @@ -61,7 +64,9 @@ public Map additionalProperties() { } /** - * The value of the API token generated. See our <a href="https://docs.airbyte.com/integrations/sources/zendesk-support#setup-guide">full documentation</a> for more information on generating this token. + * The value of the API token generated. See our full + * documentation for more information on generating this token. */ @JsonIgnore public String apiToken() { @@ -82,9 +87,10 @@ public String email() { return email; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceZendeskSupportAPIToken withAdditionalProperty(String key, Object value) { @@ -92,8 +98,7 @@ public SourceZendeskSupportAPIToken withAdditionalProperty(String key, Object va Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceZendeskSupportAPIToken withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -101,7 +106,9 @@ public SourceZendeskSupportAPIToken withAdditionalProperties(Map } /** - * The value of the API token generated. See our <a href="https://docs.airbyte.com/integrations/sources/zendesk-support#setup-guide">full documentation</a> for more information on generating this token. + * The value of the API token generated. See our full + * documentation for more information on generating this token. */ public SourceZendeskSupportAPIToken withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -118,7 +125,6 @@ public SourceZendeskSupportAPIToken withEmail(String email) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,18 +135,16 @@ public boolean equals(java.lang.Object o) { } SourceZendeskSupportAPIToken other = (SourceZendeskSupportAPIToken) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.credentials, other.credentials) && - Objects.deepEquals(this.email, other.email); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.credentials, other.credentials) && + Utils.enhancedDeepEquals(this.email, other.email); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - apiToken, - credentials, + return Utils.enhancedHash( + additionalProperties, apiToken, credentials, email); } @@ -152,15 +156,16 @@ public String toString() { "credentials", credentials, "email", email); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String apiToken; - + private String email; - + private Builder() { // force use of static builder() method } @@ -181,8 +186,11 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * The value of the API token generated. See our <a href="https://docs.airbyte.com/integrations/sources/zendesk-support#setup-guide">full documentation</a> for more information on generating this token. + * The value of the API token generated. See our full + * documentation for more information on generating this token. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -190,6 +198,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * The user email for your Zendesk account. */ @@ -198,14 +207,15 @@ public Builder email(String email) { this.email = email; return this; } - + public SourceZendeskSupportAPIToken build() { + return new SourceZendeskSupportAPIToken( - apiToken, - email) + apiToken, email) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Credentials = new LazySingletonValue<>( "credentials", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAuthentication.java index 96e380fa6..175ae2367 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportAuthentication.java @@ -14,12 +14,12 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceZendeskSupportAuthentication * - *

    Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and `API token` for Airbyte Open Source users. + *

    Zendesk allows two authentication methods. We recommend using `OAuth2.0` for Airbyte Cloud users and + * `API token` for Airbyte Open Source users. */ @JsonDeserialize(using = SourceZendeskSupportAuthentication._Deserializer.class) public class SourceZendeskSupportAuthentication { @@ -72,12 +72,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceZendeskSupportAuthentication other = (SourceZendeskSupportAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java index b1a150a4b..837ba19c3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportCredentials.java @@ -14,7 +14,7 @@ public enum SourceZendeskSupportCredentials { @JsonValue private final String value; - private SourceZendeskSupportCredentials(String value) { + SourceZendeskSupportCredentials(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportOAuth20.java index 8f21c82e8..97d2af78e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportOAuth20.java @@ -19,34 +19,41 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class SourceZendeskSupportOAuth20 { @JsonIgnore private Map additionalProperties; /** - * The OAuth access token. See the <a href="https://developer.zendesk.com/documentation/ticketing/working-with-oauth/creating-and-using-oauth-tokens-with-the-api/">Zendesk docs</a> for more information on generating this token. + * The OAuth access token. See the Zendesk + * docs for more information on generating this token. */ @JsonProperty("access_token") private String accessToken; /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") private Optional clientSecret; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("credentials") private Optional credentials; @@ -77,7 +84,9 @@ public Map additionalProperties() { } /** - * The OAuth access token. See the <a href="https://developer.zendesk.com/documentation/ticketing/working-with-oauth/creating-and-using-oauth-tokens-with-the-api/">Zendesk docs</a> for more information on generating this token. + * The OAuth access token. See the Zendesk + * docs for more information on generating this token. */ @JsonIgnore public String accessToken() { @@ -85,7 +94,9 @@ public String accessToken() { } /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ @JsonIgnore public Optional clientId() { @@ -93,7 +104,9 @@ public Optional clientId() { } /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ @JsonIgnore public Optional clientSecret() { @@ -106,9 +119,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceZendeskSupportOAuth20 withAdditionalProperty(String key, Object value) { @@ -116,8 +130,7 @@ public SourceZendeskSupportOAuth20 withAdditionalProperty(String key, Object val Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceZendeskSupportOAuth20 withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -125,7 +138,9 @@ public SourceZendeskSupportOAuth20 withAdditionalProperties(Map } /** - * The OAuth access token. See the <a href="https://developer.zendesk.com/documentation/ticketing/working-with-oauth/creating-and-using-oauth-tokens-with-the-api/">Zendesk docs</a> for more information on generating this token. + * The OAuth access token. See the Zendesk + * docs for more information on generating this token. */ public SourceZendeskSupportOAuth20 withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -134,7 +149,9 @@ public SourceZendeskSupportOAuth20 withAccessToken(String accessToken) { } /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ public SourceZendeskSupportOAuth20 withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -142,8 +159,11 @@ public SourceZendeskSupportOAuth20 withClientId(String clientId) { return this; } + /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ public SourceZendeskSupportOAuth20 withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -152,7 +172,9 @@ public SourceZendeskSupportOAuth20 withClientId(Optional clientId) { } /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ public SourceZendeskSupportOAuth20 withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -160,8 +182,11 @@ public SourceZendeskSupportOAuth20 withClientSecret(String clientSecret) { return this; } + /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ public SourceZendeskSupportOAuth20 withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -169,7 +194,6 @@ public SourceZendeskSupportOAuth20 withClientSecret(Optional clientSecre return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -180,21 +204,18 @@ public boolean equals(java.lang.Object o) { } SourceZendeskSupportOAuth20 other = (SourceZendeskSupportOAuth20) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - accessToken, - clientId, - clientSecret, - credentials); + return Utils.enhancedHash( + additionalProperties, accessToken, clientId, + clientSecret, credentials); } @Override @@ -206,17 +227,18 @@ public String toString() { "clientSecret", clientSecret, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String accessToken; - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -237,8 +259,11 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * The OAuth access token. See the <a href="https://developer.zendesk.com/documentation/ticketing/working-with-oauth/creating-and-using-oauth-tokens-with-the-api/">Zendesk docs</a> for more information on generating this token. + * The OAuth access token. See the Zendesk + * docs for more information on generating this token. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -246,8 +271,11 @@ public Builder accessToken(String accessToken) { return this; } + /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -256,7 +284,9 @@ public Builder clientId(String clientId) { } /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -264,8 +294,11 @@ public Builder clientId(Optional clientId) { return this; } + /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -274,22 +307,24 @@ public Builder clientSecret(String clientSecret) { } /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourceZendeskSupportOAuth20 build() { + return new SourceZendeskSupportOAuth20( - accessToken, - clientId, - clientSecret) + accessToken, clientId, clientSecret) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Credentials = new LazySingletonValue<>( "credentials", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java index cc05d4a45..c0d1123d5 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportSchemasCredentials.java @@ -14,7 +14,7 @@ public enum SourceZendeskSupportSchemasCredentials { @JsonValue private final String value; - private SourceZendeskSupportSchemasCredentials(String value) { + SourceZendeskSupportSchemasCredentials(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportZendeskSupport.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportZendeskSupport.java index 80bc64f59..6b84bb7f8 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportZendeskSupport.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskSupportZendeskSupport.java @@ -14,7 +14,7 @@ public enum SourceZendeskSupportZendeskSupport { @JsonValue private final String value; - private SourceZendeskSupportZendeskSupport(String value) { + SourceZendeskSupportZendeskSupport(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalk.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalk.java index e28082a22..033549f0b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalk.java @@ -15,11 +15,10 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; -public class SourceZendeskTalk { +public class SourceZendeskTalk { /** * Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`. */ @@ -27,17 +26,20 @@ public class SourceZendeskTalk { @JsonProperty("credentials") private Optional credentials; + @JsonProperty("sourceType") private SourceZendeskTalkZendeskTalk sourceType; /** - * The date from which you'd like to replicate data for Zendesk Talk API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Zendesk Talk API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ @JsonProperty("start_date") private OffsetDateTime startDate; /** - * This is your Zendesk subdomain that can be found in your account URL. For example, in https://{MY_SUBDOMAIN}.zendesk.com/, where MY_SUBDOMAIN is the value of your subdomain. + * This is your Zendesk subdomain that can be found in your account URL. For example, in + * https://{MY_SUBDOMAIN}.zendesk.com/, where MY_SUBDOMAIN is the value of your subdomain. */ @JsonProperty("subdomain") private String subdomain; @@ -77,7 +79,8 @@ public SourceZendeskTalkZendeskTalk sourceType() { } /** - * The date from which you'd like to replicate data for Zendesk Talk API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Zendesk Talk API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ @JsonIgnore public OffsetDateTime startDate() { @@ -85,16 +88,18 @@ public OffsetDateTime startDate() { } /** - * This is your Zendesk subdomain that can be found in your account URL. For example, in https://{MY_SUBDOMAIN}.zendesk.com/, where MY_SUBDOMAIN is the value of your subdomain. + * This is your Zendesk subdomain that can be found in your account URL. For example, in + * https://{MY_SUBDOMAIN}.zendesk.com/, where MY_SUBDOMAIN is the value of your subdomain. */ @JsonIgnore public String subdomain() { return subdomain; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`. @@ -105,6 +110,7 @@ public SourceZendeskTalk withCredentials(SourceZendeskTalkAuthentication credent return this; } + /** * Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`. */ @@ -115,7 +121,8 @@ public SourceZendeskTalk withCredentials(Optional credentials = Optional.empty(); - + private OffsetDateTime startDate; - + private String subdomain; - + private Builder() { // force use of static builder() method } + /** * Zendesk service provides two authentication methods. Choose between: `OAuth2.0` or `API token`. */ @@ -197,8 +204,10 @@ public Builder credentials(Optional c return this; } + /** - * The date from which you'd like to replicate data for Zendesk Talk API, in the format YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. + * The date from which you'd like to replicate data for Zendesk Talk API, in the format + * YYYY-MM-DDT00:00:00Z. All data generated after this date will be replicated. */ public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); @@ -206,22 +215,24 @@ public Builder startDate(OffsetDateTime startDate) { return this; } + /** - * This is your Zendesk subdomain that can be found in your account URL. For example, in https://{MY_SUBDOMAIN}.zendesk.com/, where MY_SUBDOMAIN is the value of your subdomain. + * This is your Zendesk subdomain that can be found in your account URL. For example, in + * https://{MY_SUBDOMAIN}.zendesk.com/, where MY_SUBDOMAIN is the value of your subdomain. */ public Builder subdomain(String subdomain) { Utils.checkNotNull(subdomain, "subdomain"); this.subdomain = subdomain; return this; } - + public SourceZendeskTalk build() { + return new SourceZendeskTalk( - credentials, - startDate, - subdomain); + credentials, startDate, subdomain); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAPIToken.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAPIToken.java index ab58c9ada..3859b9346 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAPIToken.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAPIToken.java @@ -19,20 +19,22 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class SourceZendeskTalkAPIToken { @JsonIgnore private Map additionalProperties; /** - * The value of the API token generated. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk-talk">docs</a> for more information. + * The value of the API token generated. See the docs for more information. */ @JsonProperty("api_token") private String apiToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -61,7 +63,8 @@ public Map additionalProperties() { } /** - * The value of the API token generated. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk-talk">docs</a> for more information. + * The value of the API token generated. See the docs for more information. */ @JsonIgnore public String apiToken() { @@ -82,9 +85,10 @@ public String email() { return email; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceZendeskTalkAPIToken withAdditionalProperty(String key, Object value) { @@ -92,8 +96,7 @@ public SourceZendeskTalkAPIToken withAdditionalProperty(String key, Object value Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceZendeskTalkAPIToken withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -101,7 +104,8 @@ public SourceZendeskTalkAPIToken withAdditionalProperties(Map ad } /** - * The value of the API token generated. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk-talk">docs</a> for more information. + * The value of the API token generated. See the docs for more information. */ public SourceZendeskTalkAPIToken withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -118,7 +122,6 @@ public SourceZendeskTalkAPIToken withEmail(String email) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,18 +132,16 @@ public boolean equals(java.lang.Object o) { } SourceZendeskTalkAPIToken other = (SourceZendeskTalkAPIToken) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.email, other.email); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.email, other.email); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - apiToken, - authType, + return Utils.enhancedHash( + additionalProperties, apiToken, authType, email); } @@ -152,15 +153,16 @@ public String toString() { "authType", authType, "email", email); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String apiToken; - + private String email; - + private Builder() { // force use of static builder() method } @@ -181,8 +183,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * The value of the API token generated. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk-talk">docs</a> for more information. + * The value of the API token generated. See the docs for more information. */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -190,6 +194,7 @@ public Builder apiToken(String apiToken) { return this; } + /** * The user email for your Zendesk account. */ @@ -198,14 +203,15 @@ public Builder email(String email) { this.email = email; return this; } - + public SourceZendeskTalkAPIToken build() { + return new SourceZendeskTalkAPIToken( - apiToken, - email) + apiToken, email) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java index 4819f01a3..2426c2f15 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthType.java @@ -14,7 +14,7 @@ public enum SourceZendeskTalkAuthType { @JsonValue private final String value; - private SourceZendeskTalkAuthType(String value) { + SourceZendeskTalkAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthentication.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthentication.java index 87ed0e2cc..b9c0ea819 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkAuthentication.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * SourceZendeskTalkAuthentication @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } SourceZendeskTalkAuthentication other = (SourceZendeskTalkAuthentication) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkOAuth20.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkOAuth20.java index 2cab67ed5..1cd492be6 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkOAuth20.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkOAuth20.java @@ -19,20 +19,22 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class SourceZendeskTalkOAuth20 { @JsonIgnore private Map additionalProperties; /** - * The value of the API token generated. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk-talk">docs</a> for more information. + * The value of the API token generated. See the docs for more information. */ @JsonProperty("access_token") private String accessToken; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("auth_type") private Optional authType; @@ -77,7 +79,8 @@ public Map additionalProperties() { } /** - * The value of the API token generated. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk-talk">docs</a> for more information. + * The value of the API token generated. See the docs for more information. */ @JsonIgnore public String accessToken() { @@ -106,9 +109,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public SourceZendeskTalkOAuth20 withAdditionalProperty(String key, Object value) { @@ -116,8 +120,7 @@ public SourceZendeskTalkOAuth20 withAdditionalProperty(String key, Object value) Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public SourceZendeskTalkOAuth20 withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -125,7 +128,8 @@ public SourceZendeskTalkOAuth20 withAdditionalProperties(Map add } /** - * The value of the API token generated. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk-talk">docs</a> for more information. + * The value of the API token generated. See the docs for more information. */ public SourceZendeskTalkOAuth20 withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -142,6 +146,7 @@ public SourceZendeskTalkOAuth20 withClientId(String clientId) { return this; } + /** * Client ID */ @@ -160,6 +165,7 @@ public SourceZendeskTalkOAuth20 withClientSecret(String clientSecret) { return this; } + /** * Client Secret */ @@ -169,7 +175,6 @@ public SourceZendeskTalkOAuth20 withClientSecret(Optional clientSecret) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -180,21 +185,18 @@ public boolean equals(java.lang.Object o) { } SourceZendeskTalkOAuth20 other = (SourceZendeskTalkOAuth20) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - accessToken, - authType, - clientId, - clientSecret); + return Utils.enhancedHash( + additionalProperties, accessToken, authType, + clientId, clientSecret); } @Override @@ -206,17 +208,18 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String accessToken; - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } @@ -237,8 +240,10 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** - * The value of the API token generated. See the <a href="https://docs.airbyte.com/integrations/sources/zendesk-talk">docs</a> for more information. + * The value of the API token generated. See the docs for more information. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -246,6 +251,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * Client ID */ @@ -264,6 +270,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * Client Secret */ @@ -281,15 +288,15 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public SourceZendeskTalkOAuth20 build() { + return new SourceZendeskTalkOAuth20( - accessToken, - clientId, - clientSecret) + accessToken, clientId, clientSecret) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java index 05a76e53f..726322de3 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkSchemasAuthType.java @@ -14,7 +14,7 @@ public enum SourceZendeskTalkSchemasAuthType { @JsonValue private final String value; - private SourceZendeskTalkSchemasAuthType(String value) { + SourceZendeskTalkSchemasAuthType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkZendeskTalk.java b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkZendeskTalk.java index c559f5a70..810a10307 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkZendeskTalk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZendeskTalkZendeskTalk.java @@ -14,7 +14,7 @@ public enum SourceZendeskTalkZendeskTalk { @JsonValue private final String value; - private SourceZendeskTalkZendeskTalk(String value) { + SourceZendeskTalkZendeskTalk(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZenefits.java b/src/main/java/com/airbyte/api/models/shared/SourceZenefits.java index d1d3855fc..e0556767e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZenefits.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZenefits.java @@ -11,7 +11,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceZenefits { @@ -19,7 +19,8 @@ public class SourceZenefits { private Zenefits sourceType; /** - * Use Sync with Zenefits button on the link given on the readme file, and get the token to access the api + * Use Sync with Zenefits button on the link given on the readme file, and get the token to access the + * api */ @JsonProperty("token") private String token; @@ -38,19 +39,22 @@ public Zenefits sourceType() { } /** - * Use Sync with Zenefits button on the link given on the readme file, and get the token to access the api + * Use Sync with Zenefits button on the link given on the readme file, and get the token to access the + * api */ @JsonIgnore public String token() { return token; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Use Sync with Zenefits button on the link given on the readme file, and get the token to access the api + * Use Sync with Zenefits button on the link given on the readme file, and get the token to access the + * api */ public SourceZenefits withToken(String token) { Utils.checkNotNull(token, "token"); @@ -58,7 +62,6 @@ public SourceZenefits withToken(String token) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -69,15 +72,14 @@ public boolean equals(java.lang.Object o) { } SourceZenefits other = (SourceZenefits) o; return - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.token, other.token); + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.token, other.token); } @Override public int hashCode() { - return Objects.hash( - sourceType, - token); + return Utils.enhancedHash( + sourceType, token); } @Override @@ -86,29 +88,34 @@ public String toString() { "sourceType", sourceType, "token", token); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String token; - + private Builder() { // force use of static builder() method } + /** - * Use Sync with Zenefits button on the link given on the readme file, and get the token to access the api + * Use Sync with Zenefits button on the link given on the readme file, and get the token to access the + * api */ public Builder token(String token) { Utils.checkNotNull(token, "token"); this.token = token; return this; } - + public SourceZenefits build() { + return new SourceZenefits( token); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZenloop.java b/src/main/java/com/airbyte/api/models/shared/SourceZenloop.java index 33ec823ad..eb19052db 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZenloop.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZenloop.java @@ -13,36 +13,40 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceZenloop { +public class SourceZenloop { /** - * Zenloop API Token. You can get the API token in settings page <a href="https://app.zenloop.com/settings/api">here</a> + * Zenloop API Token. You can get the API token in settings page here */ @JsonProperty("api_token") private String apiToken; /** - * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced + * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current + * data should be synced */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("date_from") private Optional dateFrom; + @JsonProperty("sourceType") private Zenloop sourceType; /** - * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups + * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave + * empty to pull answers from all survey groups */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("survey_group_id") private Optional surveyGroupId; /** - * Zenloop Survey ID. Can be found <a href="https://app.zenloop.com/settings/api">here</a>. Leave empty to pull answers from all surveys + * Zenloop Survey ID. Can be found here. Leave empty + * to pull answers from all surveys */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("survey_id") @@ -67,11 +71,13 @@ public SourceZenloop( public SourceZenloop( String apiToken) { - this(apiToken, Optional.empty(), Optional.empty(), Optional.empty()); + this(apiToken, Optional.empty(), Optional.empty(), + Optional.empty()); } /** - * Zenloop API Token. You can get the API token in settings page <a href="https://app.zenloop.com/settings/api">here</a> + * Zenloop API Token. You can get the API token in settings page here */ @JsonIgnore public String apiToken() { @@ -79,7 +85,8 @@ public String apiToken() { } /** - * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced + * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current + * data should be synced */ @JsonIgnore public Optional dateFrom() { @@ -92,7 +99,8 @@ public Zenloop sourceType() { } /** - * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups + * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave + * empty to pull answers from all survey groups */ @JsonIgnore public Optional surveyGroupId() { @@ -100,19 +108,22 @@ public Optional surveyGroupId() { } /** - * Zenloop Survey ID. Can be found <a href="https://app.zenloop.com/settings/api">here</a>. Leave empty to pull answers from all surveys + * Zenloop Survey ID. Can be found here. Leave empty + * to pull answers from all surveys */ @JsonIgnore public Optional surveyId() { return surveyId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Zenloop API Token. You can get the API token in settings page <a href="https://app.zenloop.com/settings/api">here</a> + * Zenloop API Token. You can get the API token in settings page here */ public SourceZenloop withApiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -121,7 +132,8 @@ public SourceZenloop withApiToken(String apiToken) { } /** - * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced + * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current + * data should be synced */ public SourceZenloop withDateFrom(String dateFrom) { Utils.checkNotNull(dateFrom, "dateFrom"); @@ -129,8 +141,10 @@ public SourceZenloop withDateFrom(String dateFrom) { return this; } + /** - * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced + * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current + * data should be synced */ public SourceZenloop withDateFrom(Optional dateFrom) { Utils.checkNotNull(dateFrom, "dateFrom"); @@ -139,7 +153,8 @@ public SourceZenloop withDateFrom(Optional dateFrom) { } /** - * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups + * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave + * empty to pull answers from all survey groups */ public SourceZenloop withSurveyGroupId(String surveyGroupId) { Utils.checkNotNull(surveyGroupId, "surveyGroupId"); @@ -147,8 +162,10 @@ public SourceZenloop withSurveyGroupId(String surveyGroupId) { return this; } + /** - * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups + * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave + * empty to pull answers from all survey groups */ public SourceZenloop withSurveyGroupId(Optional surveyGroupId) { Utils.checkNotNull(surveyGroupId, "surveyGroupId"); @@ -157,7 +174,8 @@ public SourceZenloop withSurveyGroupId(Optional surveyGroupId) { } /** - * Zenloop Survey ID. Can be found <a href="https://app.zenloop.com/settings/api">here</a>. Leave empty to pull answers from all surveys + * Zenloop Survey ID. Can be found here. Leave empty + * to pull answers from all surveys */ public SourceZenloop withSurveyId(String surveyId) { Utils.checkNotNull(surveyId, "surveyId"); @@ -165,8 +183,10 @@ public SourceZenloop withSurveyId(String surveyId) { return this; } + /** - * Zenloop Survey ID. Can be found <a href="https://app.zenloop.com/settings/api">here</a>. Leave empty to pull answers from all surveys + * Zenloop Survey ID. Can be found here. Leave empty + * to pull answers from all surveys */ public SourceZenloop withSurveyId(Optional surveyId) { Utils.checkNotNull(surveyId, "surveyId"); @@ -174,7 +194,6 @@ public SourceZenloop withSurveyId(Optional surveyId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -185,21 +204,18 @@ public boolean equals(java.lang.Object o) { } SourceZenloop other = (SourceZenloop) o; return - Objects.deepEquals(this.apiToken, other.apiToken) && - Objects.deepEquals(this.dateFrom, other.dateFrom) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.surveyGroupId, other.surveyGroupId) && - Objects.deepEquals(this.surveyId, other.surveyId); + Utils.enhancedDeepEquals(this.apiToken, other.apiToken) && + Utils.enhancedDeepEquals(this.dateFrom, other.dateFrom) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.surveyGroupId, other.surveyGroupId) && + Utils.enhancedDeepEquals(this.surveyId, other.surveyId); } @Override public int hashCode() { - return Objects.hash( - apiToken, - dateFrom, - sourceType, - surveyGroupId, - surveyId); + return Utils.enhancedHash( + apiToken, dateFrom, sourceType, + surveyGroupId, surveyId); } @Override @@ -211,23 +227,26 @@ public String toString() { "surveyGroupId", surveyGroupId, "surveyId", surveyId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String apiToken; - + private Optional dateFrom = Optional.empty(); - + private Optional surveyGroupId = Optional.empty(); - + private Optional surveyId = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Zenloop API Token. You can get the API token in settings page <a href="https://app.zenloop.com/settings/api">here</a> + * Zenloop API Token. You can get the API token in settings page here */ public Builder apiToken(String apiToken) { Utils.checkNotNull(apiToken, "apiToken"); @@ -235,8 +254,10 @@ public Builder apiToken(String apiToken) { return this; } + /** - * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced + * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current + * data should be synced */ public Builder dateFrom(String dateFrom) { Utils.checkNotNull(dateFrom, "dateFrom"); @@ -245,7 +266,8 @@ public Builder dateFrom(String dateFrom) { } /** - * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current data should be synced + * Zenloop date_from. Format: 2021-10-24T03:30:30Z or 2021-10-24. Leave empty if only data from current + * data should be synced */ public Builder dateFrom(Optional dateFrom) { Utils.checkNotNull(dateFrom, "dateFrom"); @@ -253,8 +275,10 @@ public Builder dateFrom(Optional dateFrom) { return this; } + /** - * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups + * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave + * empty to pull answers from all survey groups */ public Builder surveyGroupId(String surveyGroupId) { Utils.checkNotNull(surveyGroupId, "surveyGroupId"); @@ -263,7 +287,8 @@ public Builder surveyGroupId(String surveyGroupId) { } /** - * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave empty to pull answers from all survey groups + * Zenloop Survey Group ID. Can be found by pulling All Survey Groups via SurveyGroups stream. Leave + * empty to pull answers from all survey groups */ public Builder surveyGroupId(Optional surveyGroupId) { Utils.checkNotNull(surveyGroupId, "surveyGroupId"); @@ -271,8 +296,10 @@ public Builder surveyGroupId(Optional surveyGroupId) { return this; } + /** - * Zenloop Survey ID. Can be found <a href="https://app.zenloop.com/settings/api">here</a>. Leave empty to pull answers from all surveys + * Zenloop Survey ID. Can be found here. Leave empty + * to pull answers from all surveys */ public Builder surveyId(String surveyId) { Utils.checkNotNull(surveyId, "surveyId"); @@ -281,22 +308,23 @@ public Builder surveyId(String surveyId) { } /** - * Zenloop Survey ID. Can be found <a href="https://app.zenloop.com/settings/api">here</a>. Leave empty to pull answers from all surveys + * Zenloop Survey ID. Can be found here. Leave empty + * to pull answers from all surveys */ public Builder surveyId(Optional surveyId) { Utils.checkNotNull(surveyId, "surveyId"); this.surveyId = surveyId; return this; } - + public SourceZenloop build() { + return new SourceZenloop( - apiToken, - dateFrom, - surveyGroupId, + apiToken, dateFrom, surveyGroupId, surveyId); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApi.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApi.java index 87d234583..4aeddf2f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApi.java @@ -15,27 +15,32 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceZohoAnalyticsMetadataApi { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("data_center") private Optional dataCenter; + @JsonProperty("org_id") private double orgId; + @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private ZohoAnalyticsMetadataApi sourceType; @@ -64,7 +69,8 @@ public SourceZohoAnalyticsMetadataApi( String clientSecret, double orgId, String refreshToken) { - this(clientId, clientSecret, Optional.empty(), orgId, refreshToken); + this(clientId, clientSecret, Optional.empty(), + orgId, refreshToken); } @JsonIgnore @@ -98,9 +104,10 @@ public ZohoAnalyticsMetadataApi sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZohoAnalyticsMetadataApi withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -120,6 +127,7 @@ public SourceZohoAnalyticsMetadataApi withDataCenter(SourceZohoAnalyticsMetadata return this; } + public SourceZohoAnalyticsMetadataApi withDataCenter(Optional dataCenter) { Utils.checkNotNull(dataCenter, "dataCenter"); this.dataCenter = dataCenter; @@ -138,7 +146,6 @@ public SourceZohoAnalyticsMetadataApi withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -149,23 +156,19 @@ public boolean equals(java.lang.Object o) { } SourceZohoAnalyticsMetadataApi other = (SourceZohoAnalyticsMetadataApi) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.dataCenter, other.dataCenter) && - Objects.deepEquals(this.orgId, other.orgId) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.dataCenter, other.dataCenter) && + Utils.enhancedDeepEquals(this.orgId, other.orgId) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - dataCenter, - orgId, - refreshToken, - sourceType); + return Utils.enhancedHash( + clientId, clientSecret, dataCenter, + orgId, refreshToken, sourceType); } @Override @@ -178,35 +181,39 @@ public String toString() { "refreshToken", refreshToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional dataCenter; - + private Double orgId; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder dataCenter(SourceZohoAnalyticsMetadataApiDataCenter dataCenter) { Utils.checkNotNull(dataCenter, "dataCenter"); this.dataCenter = Optional.ofNullable(dataCenter); @@ -219,30 +226,31 @@ public Builder dataCenter(Optional> _SINGLETON_VALUE_DataCenter = new LazySingletonValue<>( "data_center", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java index 7b677eb36..fa8ad7599 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoAnalyticsMetadataApiDataCenter.java @@ -19,7 +19,7 @@ public enum SourceZohoAnalyticsMetadataApiDataCenter { @JsonValue private final String value; - private SourceZohoAnalyticsMetadataApiDataCenter(String value) { + SourceZohoAnalyticsMetadataApiDataCenter(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBigin.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBigin.java index da96065ed..2083f720f 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBigin.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBigin.java @@ -14,17 +14,19 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceZohoBigin { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token") private String clientRefreshToken; + @JsonProperty("client_secret") private String clientSecret; @@ -35,9 +37,11 @@ public class SourceZohoBigin { @JsonProperty("data_center") private Optional dataCenter; + @JsonProperty("module_name") private String moduleName; + @JsonProperty("sourceType") private ZohoBigin sourceType; @@ -66,7 +70,8 @@ public SourceZohoBigin( String clientRefreshToken, String clientSecret, String moduleName) { - this(clientId, clientRefreshToken, clientSecret, Optional.empty(), moduleName); + this(clientId, clientRefreshToken, clientSecret, + Optional.empty(), moduleName); } @JsonIgnore @@ -103,9 +108,10 @@ public ZohoBigin sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZohoBigin withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -134,6 +140,7 @@ public SourceZohoBigin withDataCenter(SourceZohoBiginDataCenter dataCenter) { return this; } + /** * The data center where the Bigin account's resources are hosted */ @@ -149,7 +156,6 @@ public SourceZohoBigin withModuleName(String moduleName) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -160,23 +166,19 @@ public boolean equals(java.lang.Object o) { } SourceZohoBigin other = (SourceZohoBigin) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken, other.clientRefreshToken) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.dataCenter, other.dataCenter) && - Objects.deepEquals(this.moduleName, other.moduleName) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.dataCenter, other.dataCenter) && + Utils.enhancedDeepEquals(this.moduleName, other.moduleName) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientRefreshToken, - clientSecret, - dataCenter, - moduleName, - sourceType); + return Utils.enhancedHash( + clientId, clientRefreshToken, clientSecret, + dataCenter, moduleName, sourceType); } @Override @@ -189,41 +191,46 @@ public String toString() { "moduleName", moduleName, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientRefreshToken; - + private String clientSecret; - + private Optional dataCenter; - + private String moduleName; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); this.clientRefreshToken = clientRefreshToken; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** * The data center where the Bigin account's resources are hosted */ @@ -242,24 +249,24 @@ public Builder dataCenter(Optional dataCent return this; } + public Builder moduleName(String moduleName) { Utils.checkNotNull(moduleName, "moduleName"); this.moduleName = moduleName; return this; } - + public SourceZohoBigin build() { if (dataCenter == null) { dataCenter = _SINGLETON_VALUE_DataCenter.value(); } + return new SourceZohoBigin( - clientId, - clientRefreshToken, - clientSecret, - dataCenter, - moduleName); + clientId, clientRefreshToken, clientSecret, + dataCenter, moduleName); } + private static final LazySingletonValue> _SINGLETON_VALUE_DataCenter = new LazySingletonValue<>( "data_center", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java index 0ab867abb..eb2c17a46 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBiginDataCenter.java @@ -24,7 +24,7 @@ public enum SourceZohoBiginDataCenter { @JsonValue private final String value; - private SourceZohoBiginDataCenter(String value) { + SourceZohoBiginDataCenter(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBilling.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBilling.java index 50402cb0c..444edd77e 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBilling.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBilling.java @@ -11,22 +11,26 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceZohoBilling { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("region") private SourceZohoBillingRegion region; + @JsonProperty("sourceType") private ZohoBilling sourceType; @@ -72,9 +76,10 @@ public ZohoBilling sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZohoBilling withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -100,7 +105,6 @@ public SourceZohoBilling withRegion(SourceZohoBillingRegion region) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,21 +115,18 @@ public boolean equals(java.lang.Object o) { } SourceZohoBilling other = (SourceZohoBilling) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - refreshToken, - region, - sourceType); + return Utils.enhancedHash( + clientId, clientSecret, refreshToken, + region, sourceType); } @Override @@ -137,53 +138,58 @@ public String toString() { "region", region, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private SourceZohoBillingRegion region; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } + public Builder region(SourceZohoBillingRegion region) { Utils.checkNotNull(region, "region"); this.region = region; return this; } - + public SourceZohoBilling build() { + return new SourceZohoBilling( - clientId, - clientSecret, - refreshToken, + clientId, clientSecret, refreshToken, region); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java index 39b1868e4..1171bc905 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBillingRegion.java @@ -21,7 +21,7 @@ public enum SourceZohoBillingRegion { @JsonValue private final String value; - private SourceZohoBillingRegion(String value) { + SourceZohoBillingRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBooks.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBooks.java index d023d3892..55cdf8603 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBooks.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBooks.java @@ -12,16 +12,18 @@ import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; -import java.util.Objects; + public class SourceZohoBooks { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("refresh_token") private String refreshToken; @@ -31,9 +33,11 @@ public class SourceZohoBooks { @JsonProperty("region") private SourceZohoBooksRegion region; + @JsonProperty("sourceType") private ZohoBooks sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -90,9 +94,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZohoBooks withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -127,7 +132,6 @@ public SourceZohoBooks withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -138,23 +142,19 @@ public boolean equals(java.lang.Object o) { } SourceZohoBooks other = (SourceZohoBooks) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - refreshToken, - region, - sourceType, - startDate); + return Utils.enhancedHash( + clientId, clientSecret, refreshToken, + region, sourceType, startDate); } @Override @@ -167,41 +167,46 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private String refreshToken; - + private SourceZohoBooksRegion region; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } + /** * The region code for the Zoho Books API, such as 'com', 'eu', 'in', etc. */ @@ -211,21 +216,21 @@ public Builder region(SourceZohoBooksRegion region) { return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceZohoBooks build() { + return new SourceZohoBooks( - clientId, - clientSecret, - refreshToken, - region, - startDate); + clientId, clientSecret, refreshToken, + region, startDate); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java index 45cbcb1fa..b6e1ed25d 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoBooksRegion.java @@ -26,7 +26,7 @@ public enum SourceZohoBooksRegion { @JsonValue private final String value; - private SourceZohoBooksRegion(String value) { + SourceZohoBooksRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaign.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaign.java index d78f19256..ba4771f97 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaign.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaign.java @@ -11,22 +11,26 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class SourceZohoCampaign { @JsonProperty("client_id_2") private String clientId2; + @JsonProperty("client_refresh_token") private String clientRefreshToken; + @JsonProperty("client_secret_2") private String clientSecret2; + @JsonProperty("data_center") private SourceZohoCampaignDataCenter dataCenter; + @JsonProperty("sourceType") private ZohoCampaign sourceType; @@ -72,9 +76,10 @@ public ZohoCampaign sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZohoCampaign withClientId2(String clientId2) { Utils.checkNotNull(clientId2, "clientId2"); @@ -100,7 +105,6 @@ public SourceZohoCampaign withDataCenter(SourceZohoCampaignDataCenter dataCenter return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,21 +115,18 @@ public boolean equals(java.lang.Object o) { } SourceZohoCampaign other = (SourceZohoCampaign) o; return - Objects.deepEquals(this.clientId2, other.clientId2) && - Objects.deepEquals(this.clientRefreshToken, other.clientRefreshToken) && - Objects.deepEquals(this.clientSecret2, other.clientSecret2) && - Objects.deepEquals(this.dataCenter, other.dataCenter) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId2, other.clientId2) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret2, other.clientSecret2) && + Utils.enhancedDeepEquals(this.dataCenter, other.dataCenter) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId2, - clientRefreshToken, - clientSecret2, - dataCenter, - sourceType); + return Utils.enhancedHash( + clientId2, clientRefreshToken, clientSecret2, + dataCenter, sourceType); } @Override @@ -137,53 +138,58 @@ public String toString() { "dataCenter", dataCenter, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId2; - + private String clientRefreshToken; - + private String clientSecret2; - + private SourceZohoCampaignDataCenter dataCenter; - + private Builder() { // force use of static builder() method } + public Builder clientId2(String clientId2) { Utils.checkNotNull(clientId2, "clientId2"); this.clientId2 = clientId2; return this; } + public Builder clientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); this.clientRefreshToken = clientRefreshToken; return this; } + public Builder clientSecret2(String clientSecret2) { Utils.checkNotNull(clientSecret2, "clientSecret2"); this.clientSecret2 = clientSecret2; return this; } + public Builder dataCenter(SourceZohoCampaignDataCenter dataCenter) { Utils.checkNotNull(dataCenter, "dataCenter"); this.dataCenter = dataCenter; return this; } - + public SourceZohoCampaign build() { + return new SourceZohoCampaign( - clientId2, - clientRefreshToken, - clientSecret2, + clientId2, clientRefreshToken, clientSecret2, dataCenter); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java index 8ae75596e..c044c0c71 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoCampaignDataCenter.java @@ -19,7 +19,7 @@ public enum SourceZohoCampaignDataCenter { @JsonValue private final String value; - private SourceZohoCampaignDataCenter(String value) { + SourceZohoCampaignDataCenter(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoCrm.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoCrm.java index 5abe0c974..77cd4ed36 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoCrm.java @@ -15,12 +15,11 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; import org.openapitools.jackson.nullable.JsonNullable; -public class SourceZohoCrm { +public class SourceZohoCrm { /** * OAuth2.0 Client ID */ @@ -34,7 +33,8 @@ public class SourceZohoCrm { private String clientSecret; /** - * Please choose the region of your Data Center location. More info by this <a href="https://www.zoho.com/crm/developer/docs/api/v2/multi-dc.html">Link</a> + * Please choose the region of your Data Center location. More info by this Link */ @JsonProperty("dc_region") private DataCenterLocation dcRegion; @@ -58,6 +58,7 @@ public class SourceZohoCrm { @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private ZohoCrm sourceType; @@ -100,7 +101,9 @@ public SourceZohoCrm( DataCenterLocation dcRegion, SourceZohoCrmEnvironment environment, String refreshToken) { - this(clientId, clientSecret, dcRegion, Optional.empty(), environment, refreshToken, JsonNullable.undefined()); + this(clientId, clientSecret, dcRegion, + Optional.empty(), environment, refreshToken, + JsonNullable.undefined()); } /** @@ -120,7 +123,8 @@ public String clientSecret() { } /** - * Please choose the region of your Data Center location. More info by this <a href="https://www.zoho.com/crm/developer/docs/api/v2/multi-dc.html">Link</a> + * Please choose the region of your Data Center location. More info by this Link */ @JsonIgnore public DataCenterLocation dcRegion() { @@ -165,9 +169,10 @@ public JsonNullable startDatetime() { return startDatetime; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * OAuth2.0 Client ID @@ -188,7 +193,8 @@ public SourceZohoCrm withClientSecret(String clientSecret) { } /** - * Please choose the region of your Data Center location. More info by this <a href="https://www.zoho.com/crm/developer/docs/api/v2/multi-dc.html">Link</a> + * Please choose the region of your Data Center location. More info by this Link */ public SourceZohoCrm withDcRegion(DataCenterLocation dcRegion) { Utils.checkNotNull(dcRegion, "dcRegion"); @@ -205,6 +211,7 @@ public SourceZohoCrm withEdition(ZohoCRMEdition edition) { return this; } + /** * Choose your Edition of Zoho CRM to determine API Concurrency Limits */ @@ -250,7 +257,6 @@ public SourceZohoCrm withStartDatetime(JsonNullable startDatetim return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -261,27 +267,22 @@ public boolean equals(java.lang.Object o) { } SourceZohoCrm other = (SourceZohoCrm) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.dcRegion, other.dcRegion) && - Objects.deepEquals(this.edition, other.edition) && - Objects.deepEquals(this.environment, other.environment) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDatetime, other.startDatetime); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.dcRegion, other.dcRegion) && + Utils.enhancedDeepEquals(this.edition, other.edition) && + Utils.enhancedDeepEquals(this.environment, other.environment) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDatetime, other.startDatetime); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - dcRegion, - edition, - environment, - refreshToken, - sourceType, - startDatetime); + return Utils.enhancedHash( + clientId, clientSecret, dcRegion, + edition, environment, refreshToken, + sourceType, startDatetime); } @Override @@ -296,27 +297,29 @@ public String toString() { "sourceType", sourceType, "startDatetime", startDatetime); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private DataCenterLocation dcRegion; - + private Optional edition; - + private SourceZohoCrmEnvironment environment; - + private String refreshToken; - + private JsonNullable startDatetime = JsonNullable.undefined(); - + private Builder() { // force use of static builder() method } + /** * OAuth2.0 Client ID */ @@ -326,6 +329,7 @@ public Builder clientId(String clientId) { return this; } + /** * OAuth2.0 Client Secret */ @@ -335,8 +339,10 @@ public Builder clientSecret(String clientSecret) { return this; } + /** - * Please choose the region of your Data Center location. More info by this <a href="https://www.zoho.com/crm/developer/docs/api/v2/multi-dc.html">Link</a> + * Please choose the region of your Data Center location. More info by this Link */ public Builder dcRegion(DataCenterLocation dcRegion) { Utils.checkNotNull(dcRegion, "dcRegion"); @@ -344,6 +350,7 @@ public Builder dcRegion(DataCenterLocation dcRegion) { return this; } + /** * Choose your Edition of Zoho CRM to determine API Concurrency Limits */ @@ -362,6 +369,7 @@ public Builder edition(Optional edition) { return this; } + /** * Please choose the environment */ @@ -371,6 +379,7 @@ public Builder environment(SourceZohoCrmEnvironment environment) { return this; } + /** * OAuth2.0 Refresh Token */ @@ -380,6 +389,7 @@ public Builder refreshToken(String refreshToken) { return this; } + /** * ISO 8601, for instance: `YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS+HH:MM` */ @@ -397,21 +407,19 @@ public Builder startDatetime(JsonNullable startDatetime) { this.startDatetime = startDatetime; return this; } - + public SourceZohoCrm build() { if (edition == null) { edition = _SINGLETON_VALUE_Edition.value(); } + return new SourceZohoCrm( - clientId, - clientSecret, - dcRegion, - edition, - environment, - refreshToken, + clientId, clientSecret, dcRegion, + edition, environment, refreshToken, startDatetime); } + private static final LazySingletonValue> _SINGLETON_VALUE_Edition = new LazySingletonValue<>( "edition", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java index 90c4768e3..54ef2ebf1 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoCrmEnvironment.java @@ -21,7 +21,7 @@ public enum SourceZohoCrmEnvironment { @JsonValue private final String value; - private SourceZohoCrmEnvironment(String value) { + SourceZohoCrmEnvironment(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoDesk.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoDesk.java index 1793bb677..55c52c76b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoDesk.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoDesk.java @@ -14,27 +14,32 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceZohoDesk { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("include_custom_domain") private Optional includeCustomDomain; + @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private ZohoDesk sourceType; + @JsonProperty("token_refresh_endpoint") private String tokenRefreshEndpoint; @@ -63,7 +68,8 @@ public SourceZohoDesk( String clientSecret, String refreshToken, String tokenRefreshEndpoint) { - this(clientId, clientSecret, Optional.empty(), refreshToken, tokenRefreshEndpoint); + this(clientId, clientSecret, Optional.empty(), + refreshToken, tokenRefreshEndpoint); } @JsonIgnore @@ -96,9 +102,10 @@ public String tokenRefreshEndpoint() { return tokenRefreshEndpoint; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZohoDesk withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -118,6 +125,7 @@ public SourceZohoDesk withIncludeCustomDomain(boolean includeCustomDomain) { return this; } + public SourceZohoDesk withIncludeCustomDomain(Optional includeCustomDomain) { Utils.checkNotNull(includeCustomDomain, "includeCustomDomain"); this.includeCustomDomain = includeCustomDomain; @@ -136,7 +144,6 @@ public SourceZohoDesk withTokenRefreshEndpoint(String tokenRefreshEndpoint) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -147,23 +154,19 @@ public boolean equals(java.lang.Object o) { } SourceZohoDesk other = (SourceZohoDesk) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.includeCustomDomain, other.includeCustomDomain) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.tokenRefreshEndpoint, other.tokenRefreshEndpoint); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.includeCustomDomain, other.includeCustomDomain) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.tokenRefreshEndpoint, other.tokenRefreshEndpoint); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - includeCustomDomain, - refreshToken, - sourceType, - tokenRefreshEndpoint); + return Utils.enhancedHash( + clientId, clientSecret, includeCustomDomain, + refreshToken, sourceType, tokenRefreshEndpoint); } @Override @@ -176,35 +179,39 @@ public String toString() { "sourceType", sourceType, "tokenRefreshEndpoint", tokenRefreshEndpoint); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional includeCustomDomain = Optional.empty(); - + private String refreshToken; - + private String tokenRefreshEndpoint; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + public Builder includeCustomDomain(boolean includeCustomDomain) { Utils.checkNotNull(includeCustomDomain, "includeCustomDomain"); this.includeCustomDomain = Optional.ofNullable(includeCustomDomain); @@ -217,27 +224,28 @@ public Builder includeCustomDomain(Optional includeCustomDomain) { return this; } + public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } + public Builder tokenRefreshEndpoint(String tokenRefreshEndpoint) { Utils.checkNotNull(tokenRefreshEndpoint, "tokenRefreshEndpoint"); this.tokenRefreshEndpoint = tokenRefreshEndpoint; return this; } - + public SourceZohoDesk build() { + return new SourceZohoDesk( - clientId, - clientSecret, - includeCustomDomain, - refreshToken, - tokenRefreshEndpoint); + clientId, clientSecret, includeCustomDomain, + refreshToken, tokenRefreshEndpoint); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoExpense.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoExpense.java index e2f564e1b..e66c3a3cb 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoExpense.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoExpense.java @@ -14,27 +14,31 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class SourceZohoExpense { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; /** - * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("data_center") private Optional dataCenter; + @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private ZohoExpense sourceType; @@ -59,7 +63,8 @@ public SourceZohoExpense( String clientId, String clientSecret, String refreshToken) { - this(clientId, clientSecret, Optional.empty(), refreshToken); + this(clientId, clientSecret, Optional.empty(), + refreshToken); } @JsonIgnore @@ -73,7 +78,8 @@ public String clientSecret() { } /** - * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ @SuppressWarnings("unchecked") @JsonIgnore @@ -91,9 +97,10 @@ public ZohoExpense sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZohoExpense withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -108,7 +115,8 @@ public SourceZohoExpense withClientSecret(String clientSecret) { } /** - * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ public SourceZohoExpense withDataCenter(SourceZohoExpenseDataCenter dataCenter) { Utils.checkNotNull(dataCenter, "dataCenter"); @@ -116,8 +124,10 @@ public SourceZohoExpense withDataCenter(SourceZohoExpenseDataCenter dataCenter) return this; } + /** - * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ public SourceZohoExpense withDataCenter(Optional dataCenter) { Utils.checkNotNull(dataCenter, "dataCenter"); @@ -131,7 +141,6 @@ public SourceZohoExpense withRefreshToken(String refreshToken) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -142,21 +151,18 @@ public boolean equals(java.lang.Object o) { } SourceZohoExpense other = (SourceZohoExpense) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.dataCenter, other.dataCenter) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.dataCenter, other.dataCenter) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - dataCenter, - refreshToken, - sourceType); + return Utils.enhancedHash( + clientId, clientSecret, dataCenter, + refreshToken, sourceType); } @Override @@ -168,35 +174,40 @@ public String toString() { "refreshToken", refreshToken, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional dataCenter; - + private String refreshToken; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** - * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ public Builder dataCenter(SourceZohoExpenseDataCenter dataCenter) { Utils.checkNotNull(dataCenter, "dataCenter"); @@ -205,7 +216,8 @@ public Builder dataCenter(SourceZohoExpenseDataCenter dataCenter) { } /** - * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ public Builder dataCenter(Optional dataCenter) { Utils.checkNotNull(dataCenter, "dataCenter"); @@ -213,23 +225,24 @@ public Builder dataCenter(Optional dataCe return this; } + public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } - + public SourceZohoExpense build() { if (dataCenter == null) { dataCenter = _SINGLETON_VALUE_DataCenter.value(); } + return new SourceZohoExpense( - clientId, - clientSecret, - dataCenter, + clientId, clientSecret, dataCenter, refreshToken); } + private static final LazySingletonValue> _SINGLETON_VALUE_DataCenter = new LazySingletonValue<>( "data_center", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java index 4f38975a0..fece13bd9 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoExpenseDataCenter.java @@ -11,7 +11,8 @@ /** * SourceZohoExpenseDataCenter * - *

    The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + *

    The domain suffix for the Zoho Expense API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ public enum SourceZohoExpenseDataCenter { COM("com"), @@ -26,7 +27,7 @@ public enum SourceZohoExpenseDataCenter { @JsonValue private final String value; - private SourceZohoExpenseDataCenter(String value) { + SourceZohoExpenseDataCenter(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoInventory.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoInventory.java index e976abb10..90cb64459 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoInventory.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoInventory.java @@ -15,30 +15,35 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; -import java.util.Objects; import java.util.Optional; + public class SourceZohoInventory { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_secret") private String clientSecret; /** - * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("domain") private Optional domain; + @JsonProperty("refresh_token") private String refreshToken; + @JsonProperty("sourceType") private ZohoInventory sourceType; + @JsonProperty("start_date") private OffsetDateTime startDate; @@ -67,7 +72,8 @@ public SourceZohoInventory( String clientSecret, String refreshToken, OffsetDateTime startDate) { - this(clientId, clientSecret, Optional.empty(), refreshToken, startDate); + this(clientId, clientSecret, Optional.empty(), + refreshToken, startDate); } @JsonIgnore @@ -81,7 +87,8 @@ public String clientSecret() { } /** - * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ @SuppressWarnings("unchecked") @JsonIgnore @@ -104,9 +111,10 @@ public OffsetDateTime startDate() { return startDate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZohoInventory withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -121,7 +129,8 @@ public SourceZohoInventory withClientSecret(String clientSecret) { } /** - * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ public SourceZohoInventory withDomain(Domain domain) { Utils.checkNotNull(domain, "domain"); @@ -129,8 +138,10 @@ public SourceZohoInventory withDomain(Domain domain) { return this; } + /** - * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ public SourceZohoInventory withDomain(Optional domain) { Utils.checkNotNull(domain, "domain"); @@ -150,7 +161,6 @@ public SourceZohoInventory withStartDate(OffsetDateTime startDate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -161,23 +171,19 @@ public boolean equals(java.lang.Object o) { } SourceZohoInventory other = (SourceZohoInventory) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.domain, other.domain) && - Objects.deepEquals(this.refreshToken, other.refreshToken) && - Objects.deepEquals(this.sourceType, other.sourceType) && - Objects.deepEquals(this.startDate, other.startDate); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.domain, other.domain) && + Utils.enhancedDeepEquals(this.refreshToken, other.refreshToken) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType) && + Utils.enhancedDeepEquals(this.startDate, other.startDate); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret, - domain, - refreshToken, - sourceType, - startDate); + return Utils.enhancedHash( + clientId, clientSecret, domain, + refreshToken, sourceType, startDate); } @Override @@ -190,37 +196,42 @@ public String toString() { "sourceType", sourceType, "startDate", startDate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientSecret; - + private Optional domain; - + private String refreshToken; - + private OffsetDateTime startDate; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** - * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ public Builder domain(Domain domain) { Utils.checkNotNull(domain, "domain"); @@ -229,7 +240,8 @@ public Builder domain(Domain domain) { } /** - * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', 'in', etc.) + * The domain suffix for the Zoho Inventory API based on your data center location (e.g., 'com', 'eu', + * 'in', etc.) */ public Builder domain(Optional domain) { Utils.checkNotNull(domain, "domain"); @@ -237,30 +249,31 @@ public Builder domain(Optional domain) { return this; } + public Builder refreshToken(String refreshToken) { Utils.checkNotNull(refreshToken, "refreshToken"); this.refreshToken = refreshToken; return this; } + public Builder startDate(OffsetDateTime startDate) { Utils.checkNotNull(startDate, "startDate"); this.startDate = startDate; return this; } - + public SourceZohoInventory build() { if (domain == null) { domain = _SINGLETON_VALUE_Domain.value(); } + return new SourceZohoInventory( - clientId, - clientSecret, - domain, - refreshToken, - startDate); + clientId, clientSecret, domain, + refreshToken, startDate); } + private static final LazySingletonValue> _SINGLETON_VALUE_Domain = new LazySingletonValue<>( "domain", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoice.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoice.java index eaa239308..ffa364938 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoice.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoice.java @@ -13,17 +13,19 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; + public class SourceZohoInvoice { @JsonProperty("client_id") private String clientId; + @JsonProperty("client_refresh_token") private String clientRefreshToken; + @JsonProperty("client_secret") private String clientSecret; @@ -34,9 +36,11 @@ public class SourceZohoInvoice { @JsonProperty("organization_id") private Optional organizationId; + @JsonProperty("region") private SourceZohoInvoiceRegion region; + @JsonProperty("sourceType") private ZohoInvoice sourceType; @@ -65,7 +69,8 @@ public SourceZohoInvoice( String clientRefreshToken, String clientSecret, SourceZohoInvoiceRegion region) { - this(clientId, clientRefreshToken, clientSecret, Optional.empty(), region); + this(clientId, clientRefreshToken, clientSecret, + Optional.empty(), region); } @JsonIgnore @@ -101,9 +106,10 @@ public ZohoInvoice sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourceZohoInvoice withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -132,6 +138,7 @@ public SourceZohoInvoice withOrganizationId(String organizationId) { return this; } + /** * To be provided if a user belongs to multiple organizations */ @@ -147,7 +154,6 @@ public SourceZohoInvoice withRegion(SourceZohoInvoiceRegion region) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -158,23 +164,19 @@ public boolean equals(java.lang.Object o) { } SourceZohoInvoice other = (SourceZohoInvoice) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientRefreshToken, other.clientRefreshToken) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.organizationId, other.organizationId) && - Objects.deepEquals(this.region, other.region) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientRefreshToken, other.clientRefreshToken) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && + Utils.enhancedDeepEquals(this.region, other.region) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientRefreshToken, - clientSecret, - organizationId, - region, - sourceType); + return Utils.enhancedHash( + clientId, clientRefreshToken, clientSecret, + organizationId, region, sourceType); } @Override @@ -187,41 +189,46 @@ public String toString() { "region", region, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String clientId; - + private String clientRefreshToken; - + private String clientSecret; - + private Optional organizationId = Optional.empty(); - + private SourceZohoInvoiceRegion region; - + private Builder() { // force use of static builder() method } + public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); this.clientId = clientId; return this; } + public Builder clientRefreshToken(String clientRefreshToken) { Utils.checkNotNull(clientRefreshToken, "clientRefreshToken"); this.clientRefreshToken = clientRefreshToken; return this; } + public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } + /** * To be provided if a user belongs to multiple organizations */ @@ -240,21 +247,21 @@ public Builder organizationId(Optional organizationId) { return this; } + public Builder region(SourceZohoInvoiceRegion region) { Utils.checkNotNull(region, "region"); this.region = region; return this; } - + public SourceZohoInvoice build() { + return new SourceZohoInvoice( - clientId, - clientRefreshToken, - clientSecret, - organizationId, - region); + clientId, clientRefreshToken, clientSecret, + organizationId, region); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java b/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java index e0164dc49..1c6f45bad 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZohoInvoiceRegion.java @@ -21,7 +21,7 @@ public enum SourceZohoInvoiceRegion { @JsonValue private final String value; - private SourceZohoInvoiceRegion(String value) { + SourceZohoInvoiceRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZonkaFeedback.java b/src/main/java/com/airbyte/api/models/shared/SourceZonkaFeedback.java index ed2715de9..4d7f14749 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZonkaFeedback.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZonkaFeedback.java @@ -11,12 +11,12 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; -public class SourceZonkaFeedback { +public class SourceZonkaFeedback { /** - * Auth token to use. Generate it by navigating to Company Settings > Developers > API in your Zonka Feedback account. + * Auth token to use. Generate it by navigating to Company Settings > Developers > API in your + * Zonka Feedback account. */ @JsonProperty("auth_token") private String authToken; @@ -27,6 +27,7 @@ public class SourceZonkaFeedback { @JsonProperty("datacenter") private DataCenterID datacenter; + @JsonProperty("sourceType") private ZonkaFeedback sourceType; @@ -42,7 +43,8 @@ public SourceZonkaFeedback( } /** - * Auth token to use. Generate it by navigating to Company Settings > Developers > API in your Zonka Feedback account. + * Auth token to use. Generate it by navigating to Company Settings > Developers > API in your + * Zonka Feedback account. */ @JsonIgnore public String authToken() { @@ -62,12 +64,14 @@ public ZonkaFeedback sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Auth token to use. Generate it by navigating to Company Settings > Developers > API in your Zonka Feedback account. + * Auth token to use. Generate it by navigating to Company Settings > Developers > API in your + * Zonka Feedback account. */ public SourceZonkaFeedback withAuthToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -84,7 +88,6 @@ public SourceZonkaFeedback withDatacenter(DataCenterID datacenter) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -95,17 +98,15 @@ public boolean equals(java.lang.Object o) { } SourceZonkaFeedback other = (SourceZonkaFeedback) o; return - Objects.deepEquals(this.authToken, other.authToken) && - Objects.deepEquals(this.datacenter, other.datacenter) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.authToken, other.authToken) && + Utils.enhancedDeepEquals(this.datacenter, other.datacenter) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - authToken, - datacenter, - sourceType); + return Utils.enhancedHash( + authToken, datacenter, sourceType); } @Override @@ -115,19 +116,22 @@ public String toString() { "datacenter", datacenter, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String authToken; - + private DataCenterID datacenter; - + private Builder() { // force use of static builder() method } + /** - * Auth token to use. Generate it by navigating to Company Settings > Developers > API in your Zonka Feedback account. + * Auth token to use. Generate it by navigating to Company Settings > Developers > API in your + * Zonka Feedback account. */ public Builder authToken(String authToken) { Utils.checkNotNull(authToken, "authToken"); @@ -135,6 +139,7 @@ public Builder authToken(String authToken) { return this; } + /** * The identifier for the data center, such as 'us1' or 'e' for EU. */ @@ -143,13 +148,14 @@ public Builder datacenter(DataCenterID datacenter) { this.datacenter = datacenter; return this; } - + public SourceZonkaFeedback build() { + return new SourceZonkaFeedback( - authToken, - datacenter); + authToken, datacenter); } + private static final LazySingletonValue _SINGLETON_VALUE_SourceType = new LazySingletonValue<>( "sourceType", diff --git a/src/main/java/com/airbyte/api/models/shared/SourceZoom.java b/src/main/java/com/airbyte/api/models/shared/SourceZoom.java index b1d081d8e..41cdf5eac 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourceZoom.java +++ b/src/main/java/com/airbyte/api/models/shared/SourceZoom.java @@ -13,33 +13,37 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SourceZoom { +public class SourceZoom { /** - * The account ID for your Zoom account. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The account ID for your Zoom account. You can find this in the Zoom Marketplace under the "Manage" + * tab for your app. */ @JsonProperty("account_id") private String accountId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("authorization_endpoint") private Optional authorizationEndpoint; /** - * The client ID for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The client ID for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab + * for your app. */ @JsonProperty("client_id") private String clientId; /** - * The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" + * tab for your app. */ @JsonProperty("client_secret") private String clientSecret; + @JsonProperty("sourceType") private Zoom sourceType; @@ -64,11 +68,13 @@ public SourceZoom( String accountId, String clientId, String clientSecret) { - this(accountId, Optional.empty(), clientId, clientSecret); + this(accountId, Optional.empty(), clientId, + clientSecret); } /** - * The account ID for your Zoom account. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The account ID for your Zoom account. You can find this in the Zoom Marketplace under the "Manage" + * tab for your app. */ @JsonIgnore public String accountId() { @@ -81,7 +87,8 @@ public Optional authorizationEndpoint() { } /** - * The client ID for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The client ID for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab + * for your app. */ @JsonIgnore public String clientId() { @@ -89,7 +96,8 @@ public String clientId() { } /** - * The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" + * tab for your app. */ @JsonIgnore public String clientSecret() { @@ -101,12 +109,14 @@ public Zoom sourceType() { return sourceType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The account ID for your Zoom account. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The account ID for your Zoom account. You can find this in the Zoom Marketplace under the "Manage" + * tab for your app. */ public SourceZoom withAccountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -120,6 +130,7 @@ public SourceZoom withAuthorizationEndpoint(String authorizationEndpoint) { return this; } + public SourceZoom withAuthorizationEndpoint(Optional authorizationEndpoint) { Utils.checkNotNull(authorizationEndpoint, "authorizationEndpoint"); this.authorizationEndpoint = authorizationEndpoint; @@ -127,7 +138,8 @@ public SourceZoom withAuthorizationEndpoint(Optional authorizationEndpoi } /** - * The client ID for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The client ID for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab + * for your app. */ public SourceZoom withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -136,7 +148,8 @@ public SourceZoom withClientId(String clientId) { } /** - * The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" + * tab for your app. */ public SourceZoom withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -144,7 +157,6 @@ public SourceZoom withClientSecret(String clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -155,21 +167,18 @@ public boolean equals(java.lang.Object o) { } SourceZoom other = (SourceZoom) o; return - Objects.deepEquals(this.accountId, other.accountId) && - Objects.deepEquals(this.authorizationEndpoint, other.authorizationEndpoint) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret) && - Objects.deepEquals(this.sourceType, other.sourceType); + Utils.enhancedDeepEquals(this.accountId, other.accountId) && + Utils.enhancedDeepEquals(this.authorizationEndpoint, other.authorizationEndpoint) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret) && + Utils.enhancedDeepEquals(this.sourceType, other.sourceType); } @Override public int hashCode() { - return Objects.hash( - accountId, - authorizationEndpoint, - clientId, - clientSecret, - sourceType); + return Utils.enhancedHash( + accountId, authorizationEndpoint, clientId, + clientSecret, sourceType); } @Override @@ -181,23 +190,26 @@ public String toString() { "clientSecret", clientSecret, "sourceType", sourceType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accountId; - + private Optional authorizationEndpoint; - + private String clientId; - + private String clientSecret; - + private Builder() { // force use of static builder() method } + /** - * The account ID for your Zoom account. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The account ID for your Zoom account. You can find this in the Zoom Marketplace under the "Manage" + * tab for your app. */ public Builder accountId(String accountId) { Utils.checkNotNull(accountId, "accountId"); @@ -205,6 +217,7 @@ public Builder accountId(String accountId) { return this; } + public Builder authorizationEndpoint(String authorizationEndpoint) { Utils.checkNotNull(authorizationEndpoint, "authorizationEndpoint"); this.authorizationEndpoint = Optional.ofNullable(authorizationEndpoint); @@ -217,8 +230,10 @@ public Builder authorizationEndpoint(Optional authorizationEndpoint) { return this; } + /** - * The client ID for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The client ID for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab + * for your app. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -226,26 +241,28 @@ public Builder clientId(String clientId) { return this; } + /** - * The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" tab for your app. + * The client secret for your Zoom app. You can find this in the Zoom Marketplace under the "Manage" + * tab for your app. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public SourceZoom build() { if (authorizationEndpoint == null) { authorizationEndpoint = _SINGLETON_VALUE_AuthorizationEndpoint.value(); } + return new SourceZoom( - accountId, - authorizationEndpoint, - clientId, + accountId, authorizationEndpoint, clientId, clientSecret); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthorizationEndpoint = new LazySingletonValue<>( "authorization_endpoint", diff --git a/src/main/java/com/airbyte/api/models/shared/SourcesResponse.java b/src/main/java/com/airbyte/api/models/shared/SourcesResponse.java index 21147076f..0104be4fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/SourcesResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/SourcesResponse.java @@ -12,18 +12,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class SourcesResponse { @JsonProperty("data") private List data; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("next") private Optional next; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("previous") private Optional previous; @@ -61,9 +63,10 @@ public Optional previous() { return previous; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SourcesResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -77,6 +80,7 @@ public SourcesResponse withNext(String next) { return this; } + public SourcesResponse withNext(Optional next) { Utils.checkNotNull(next, "next"); this.next = next; @@ -89,13 +93,13 @@ public SourcesResponse withPrevious(String previous) { return this; } + public SourcesResponse withPrevious(Optional previous) { Utils.checkNotNull(previous, "previous"); this.previous = previous; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +110,15 @@ public boolean equals(java.lang.Object o) { } SourcesResponse other = (SourcesResponse) o; return - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.next, other.next) && - Objects.deepEquals(this.previous, other.previous); + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.previous, other.previous); } @Override public int hashCode() { - return Objects.hash( - data, - next, - previous); + return Utils.enhancedHash( + data, next, previous); } @Override @@ -126,25 +128,28 @@ public String toString() { "next", next, "previous", previous); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Optional next = Optional.empty(); - + private Optional previous = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } + public Builder next(String next) { Utils.checkNotNull(next, "next"); this.next = Optional.ofNullable(next); @@ -157,6 +162,7 @@ public Builder next(Optional next) { return this; } + public Builder previous(String previous) { Utils.checkNotNull(previous, "previous"); this.previous = Optional.ofNullable(previous); @@ -168,12 +174,12 @@ public Builder previous(Optional previous) { this.previous = previous; return this; } - + public SourcesResponse build() { + return new SourcesResponse( - data, - next, - previous); + data, next, previous); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SpacexApi.java b/src/main/java/com/airbyte/api/models/shared/SpacexApi.java index 1553588a2..4bd21f905 100644 --- a/src/main/java/com/airbyte/api/models/shared/SpacexApi.java +++ b/src/main/java/com/airbyte/api/models/shared/SpacexApi.java @@ -14,7 +14,7 @@ public enum SpacexApi { @JsonValue private final String value; - private SpacexApi(String value) { + SpacexApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Sparkpost.java b/src/main/java/com/airbyte/api/models/shared/Sparkpost.java index 08797e48d..d982e5976 100644 --- a/src/main/java/com/airbyte/api/models/shared/Sparkpost.java +++ b/src/main/java/com/airbyte/api/models/shared/Sparkpost.java @@ -14,7 +14,7 @@ public enum Sparkpost { @JsonValue private final String value; - private Sparkpost(String value) { + Sparkpost(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SplitIo.java b/src/main/java/com/airbyte/api/models/shared/SplitIo.java index 9e8e05b7b..6e4c15130 100644 --- a/src/main/java/com/airbyte/api/models/shared/SplitIo.java +++ b/src/main/java/com/airbyte/api/models/shared/SplitIo.java @@ -14,7 +14,7 @@ public enum SplitIo { @JsonValue private final String value; - private SplitIo(String value) { + SplitIo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SpotifyAds.java b/src/main/java/com/airbyte/api/models/shared/SpotifyAds.java new file mode 100644 index 000000000..ebfe631a2 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/SpotifyAds.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum SpotifyAds { + SPOTIFY_ADS("spotify-ads"); + + @JsonValue + private final String value; + + SpotifyAds(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (SpotifyAds o: SpotifyAds.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Spotlercrm.java b/src/main/java/com/airbyte/api/models/shared/Spotlercrm.java index a9e9f9dc1..7e68fd389 100644 --- a/src/main/java/com/airbyte/api/models/shared/Spotlercrm.java +++ b/src/main/java/com/airbyte/api/models/shared/Spotlercrm.java @@ -14,7 +14,7 @@ public enum Spotlercrm { @JsonValue private final String value; - private Spotlercrm(String value) { + Spotlercrm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Square.java b/src/main/java/com/airbyte/api/models/shared/Square.java index 5e0f16d81..1cdf7e654 100644 --- a/src/main/java/com/airbyte/api/models/shared/Square.java +++ b/src/main/java/com/airbyte/api/models/shared/Square.java @@ -14,7 +14,7 @@ public enum Square { @JsonValue private final String value; - private Square(String value) { + Square(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Squarespace.java b/src/main/java/com/airbyte/api/models/shared/Squarespace.java index 04e264be6..a24fc9ada 100644 --- a/src/main/java/com/airbyte/api/models/shared/Squarespace.java +++ b/src/main/java/com/airbyte/api/models/shared/Squarespace.java @@ -14,7 +14,7 @@ public enum Squarespace { @JsonValue private final String value; - private Squarespace(String value) { + Squarespace(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/StandaloneMongoDbInstance.java b/src/main/java/com/airbyte/api/models/shared/StandaloneMongoDbInstance.java index e2b5fda55..1377ec8fa 100644 --- a/src/main/java/com/airbyte/api/models/shared/StandaloneMongoDbInstance.java +++ b/src/main/java/com/airbyte/api/models/shared/StandaloneMongoDbInstance.java @@ -16,17 +16,17 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class StandaloneMongoDbInstance { +public class StandaloneMongoDbInstance { /** * The Host of a Mongo database to be replicated. */ @JsonProperty("host") private String host; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("instance") private Optional instance; @@ -39,7 +39,9 @@ public class StandaloneMongoDbInstance { private Optional port; /** - * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see <a href="https://docs.airbyte.com/integrations/sources/mongodb-v2">documentation</a>. + * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to + * use TLS connection if possible. For more information see documentation. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("tls") @@ -63,7 +65,8 @@ public StandaloneMongoDbInstance( public StandaloneMongoDbInstance( String host) { - this(host, Optional.empty(), Optional.empty(), Optional.empty()); + this(host, Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -89,16 +92,19 @@ public Optional port() { } /** - * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see <a href="https://docs.airbyte.com/integrations/sources/mongodb-v2">documentation</a>. + * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to + * use TLS connection if possible. For more information see documentation. */ @JsonIgnore public Optional tls() { return tls; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Host of a Mongo database to be replicated. @@ -115,6 +121,7 @@ public StandaloneMongoDbInstance withInstance(Instance instance) { return this; } + public StandaloneMongoDbInstance withInstance(Optional instance) { Utils.checkNotNull(instance, "instance"); this.instance = instance; @@ -130,6 +137,7 @@ public StandaloneMongoDbInstance withPort(long port) { return this; } + /** * The Port of a Mongo database to be replicated. */ @@ -140,7 +148,9 @@ public StandaloneMongoDbInstance withPort(Optional port) { } /** - * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see <a href="https://docs.airbyte.com/integrations/sources/mongodb-v2">documentation</a>. + * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to + * use TLS connection if possible. For more information see documentation. */ public StandaloneMongoDbInstance withTls(boolean tls) { Utils.checkNotNull(tls, "tls"); @@ -148,8 +158,11 @@ public StandaloneMongoDbInstance withTls(boolean tls) { return this; } + /** - * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see <a href="https://docs.airbyte.com/integrations/sources/mongodb-v2">documentation</a>. + * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to + * use TLS connection if possible. For more information see documentation. */ public StandaloneMongoDbInstance withTls(Optional tls) { Utils.checkNotNull(tls, "tls"); @@ -157,7 +170,6 @@ public StandaloneMongoDbInstance withTls(Optional tls) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -168,18 +180,16 @@ public boolean equals(java.lang.Object o) { } StandaloneMongoDbInstance other = (StandaloneMongoDbInstance) o; return - Objects.deepEquals(this.host, other.host) && - Objects.deepEquals(this.instance, other.instance) && - Objects.deepEquals(this.port, other.port) && - Objects.deepEquals(this.tls, other.tls); + Utils.enhancedDeepEquals(this.host, other.host) && + Utils.enhancedDeepEquals(this.instance, other.instance) && + Utils.enhancedDeepEquals(this.port, other.port) && + Utils.enhancedDeepEquals(this.tls, other.tls); } @Override public int hashCode() { - return Objects.hash( - host, - instance, - port, + return Utils.enhancedHash( + host, instance, port, tls); } @@ -191,21 +201,23 @@ public String toString() { "port", port, "tls", tls); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String host; - + private Optional instance; - + private Optional port; - + private Optional tls; - + private Builder() { // force use of static builder() method } + /** * The Host of a Mongo database to be replicated. */ @@ -215,6 +227,7 @@ public Builder host(String host) { return this; } + public Builder instance(Instance instance) { Utils.checkNotNull(instance, "instance"); this.instance = Optional.ofNullable(instance); @@ -227,6 +240,7 @@ public Builder instance(Optional instance) { return this; } + /** * The Port of a Mongo database to be replicated. */ @@ -245,8 +259,11 @@ public Builder port(Optional port) { return this; } + /** - * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see <a href="https://docs.airbyte.com/integrations/sources/mongodb-v2">documentation</a>. + * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to + * use TLS connection if possible. For more information see documentation. */ public Builder tls(boolean tls) { Utils.checkNotNull(tls, "tls"); @@ -255,14 +272,16 @@ public Builder tls(boolean tls) { } /** - * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to use TLS connection if possible. For more information see <a href="https://docs.airbyte.com/integrations/sources/mongodb-v2">documentation</a>. + * Indicates whether TLS encryption protocol will be used to connect to MongoDB. It is recommended to + * use TLS connection if possible. For more information see documentation. */ public Builder tls(Optional tls) { Utils.checkNotNull(tls, "tls"); this.tls = tls; return this; } - + public StandaloneMongoDbInstance build() { if (instance == null) { instance = _SINGLETON_VALUE_Instance.value(); @@ -273,13 +292,13 @@ public StandaloneMongoDbInstance build() { if (tls == null) { tls = _SINGLETON_VALUE_Tls.value(); } + return new StandaloneMongoDbInstance( - host, - instance, - port, + host, instance, port, tls); } + private static final LazySingletonValue> _SINGLETON_VALUE_Instance = new LazySingletonValue<>( "instance", diff --git a/src/main/java/com/airbyte/api/models/shared/State.java b/src/main/java/com/airbyte/api/models/shared/State.java index 7fb39c06b..a77453c00 100644 --- a/src/main/java/com/airbyte/api/models/shared/State.java +++ b/src/main/java/com/airbyte/api/models/shared/State.java @@ -21,7 +21,7 @@ public enum State { @JsonValue private final String value; - private State(String value) { + State(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java b/src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java index 692192a72..2969d62b2 100644 --- a/src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java +++ b/src/main/java/com/airbyte/api/models/shared/StatisticsInterval.java @@ -21,7 +21,7 @@ public enum StatisticsInterval { @JsonValue private final String value; - private StatisticsInterval(String value) { + StatisticsInterval(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Statsig.java b/src/main/java/com/airbyte/api/models/shared/Statsig.java index b9fa2b796..f26d7cbcc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Statsig.java +++ b/src/main/java/com/airbyte/api/models/shared/Statsig.java @@ -14,7 +14,7 @@ public enum Statsig { @JsonValue private final String value; - private Statsig(String value) { + Statsig(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Status.java b/src/main/java/com/airbyte/api/models/shared/Status.java index 600e70acf..0746ebb00 100644 --- a/src/main/java/com/airbyte/api/models/shared/Status.java +++ b/src/main/java/com/airbyte/api/models/shared/Status.java @@ -16,7 +16,7 @@ public enum Status { @JsonValue private final String value; - private Status(String value) { + Status(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Statuspage.java b/src/main/java/com/airbyte/api/models/shared/Statuspage.java index 314573f23..be9e1c734 100644 --- a/src/main/java/com/airbyte/api/models/shared/Statuspage.java +++ b/src/main/java/com/airbyte/api/models/shared/Statuspage.java @@ -14,7 +14,7 @@ public enum Statuspage { @JsonValue private final String value; - private Statuspage(String value) { + Statuspage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Stockdata.java b/src/main/java/com/airbyte/api/models/shared/Stockdata.java index ee659dcab..7b692065f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Stockdata.java +++ b/src/main/java/com/airbyte/api/models/shared/Stockdata.java @@ -14,7 +14,7 @@ public enum Stockdata { @JsonValue private final String value; - private Stockdata(String value) { + Stockdata(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Storage.java b/src/main/java/com/airbyte/api/models/shared/Storage.java index 1ad01fcde..475283a1e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Storage.java +++ b/src/main/java/com/airbyte/api/models/shared/Storage.java @@ -14,7 +14,7 @@ public enum Storage { @JsonValue private final String value; - private Storage(String value) { + Storage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/StorageProvider.java b/src/main/java/com/airbyte/api/models/shared/StorageProvider.java index 512f33fea..68e37888b 100644 --- a/src/main/java/com/airbyte/api/models/shared/StorageProvider.java +++ b/src/main/java/com/airbyte/api/models/shared/StorageProvider.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * StorageProvider @@ -108,12 +107,12 @@ public boolean equals(java.lang.Object o) { return false; } StorageProvider other = (StorageProvider) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/StorageType.java b/src/main/java/com/airbyte/api/models/shared/StorageType.java new file mode 100644 index 000000000..10ca2bb6e --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/StorageType.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum StorageType { + NONE("None"); + + @JsonValue + private final String value; + + StorageType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (StorageType o: StorageType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Strategies.java b/src/main/java/com/airbyte/api/models/shared/Strategies.java index 58a3111da..bde80dfe3 100644 --- a/src/main/java/com/airbyte/api/models/shared/Strategies.java +++ b/src/main/java/com/airbyte/api/models/shared/Strategies.java @@ -15,7 +15,7 @@ public enum Strategies { @JsonValue private final String value; - private Strategies(String value) { + Strategies(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Strava.java b/src/main/java/com/airbyte/api/models/shared/Strava.java index 5963c8dca..34a79b014 100644 --- a/src/main/java/com/airbyte/api/models/shared/Strava.java +++ b/src/main/java/com/airbyte/api/models/shared/Strava.java @@ -14,7 +14,7 @@ public enum Strava { @JsonValue private final String value; - private Strava(String value) { + Strava(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java b/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java index c1755595a..a0fceca8a 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamConfiguration.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Boolean; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -22,14 +22,29 @@ *

    Configurations for a single stream. */ public class StreamConfiguration { - /** - * Path to the field that will be used to determine if a record is new or modified since the last sync. This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. + * Path to the field that will be used to determine if a record is new or modified since the last sync. + * This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursorField") private Optional> cursorField; + /** + * The name of the destination object that this stream will be written to, used for data activation + * destinations. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destinationObjectName") + private Optional destinationObjectName; + + /** + * Whether to move raw files from the source to the destination during the sync. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("includeFiles") + private Optional includeFiles; + /** * Mappers that should be applied to the stream before writing to the destination. */ @@ -37,11 +52,20 @@ public class StreamConfiguration { @JsonProperty("mappers") private Optional> mappers; + @JsonProperty("name") private String name; /** - * Paths to the fields that will be used as primary key. This field is REQUIRED if `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. + * Namespace of the stream. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("namespace") + private Optional namespace; + + /** + * Paths to the fields that will be used as primary key. This field is REQUIRED if + * `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("primaryKey") @@ -54,6 +78,7 @@ public class StreamConfiguration { @JsonProperty("selectedFields") private Optional> selectedFields; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("syncMode") private Optional syncMode; @@ -61,20 +86,29 @@ public class StreamConfiguration { @JsonCreator public StreamConfiguration( @JsonProperty("cursorField") Optional> cursorField, + @JsonProperty("destinationObjectName") Optional destinationObjectName, + @JsonProperty("includeFiles") Optional includeFiles, @JsonProperty("mappers") Optional> mappers, @JsonProperty("name") String name, + @JsonProperty("namespace") Optional namespace, @JsonProperty("primaryKey") Optional>> primaryKey, @JsonProperty("selectedFields") Optional> selectedFields, @JsonProperty("syncMode") Optional syncMode) { Utils.checkNotNull(cursorField, "cursorField"); + Utils.checkNotNull(destinationObjectName, "destinationObjectName"); + Utils.checkNotNull(includeFiles, "includeFiles"); Utils.checkNotNull(mappers, "mappers"); Utils.checkNotNull(name, "name"); + Utils.checkNotNull(namespace, "namespace"); Utils.checkNotNull(primaryKey, "primaryKey"); Utils.checkNotNull(selectedFields, "selectedFields"); Utils.checkNotNull(syncMode, "syncMode"); this.cursorField = cursorField; + this.destinationObjectName = destinationObjectName; + this.includeFiles = includeFiles; this.mappers = mappers; this.name = name; + this.namespace = namespace; this.primaryKey = primaryKey; this.selectedFields = selectedFields; this.syncMode = syncMode; @@ -82,11 +116,14 @@ public StreamConfiguration( public StreamConfiguration( String name) { - this(Optional.empty(), Optional.empty(), name, Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), name, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); } /** - * Path to the field that will be used to determine if a record is new or modified since the last sync. This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. + * Path to the field that will be used to determine if a record is new or modified since the last sync. + * This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -94,6 +131,23 @@ public Optional> cursorField() { return (Optional>) cursorField; } + /** + * The name of the destination object that this stream will be written to, used for data activation + * destinations. + */ + @JsonIgnore + public Optional destinationObjectName() { + return destinationObjectName; + } + + /** + * Whether to move raw files from the source to the destination during the sync. + */ + @JsonIgnore + public Optional includeFiles() { + return includeFiles; + } + /** * Mappers that should be applied to the stream before writing to the destination. */ @@ -109,7 +163,16 @@ public String name() { } /** - * Paths to the fields that will be used as primary key. This field is REQUIRED if `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. + * Namespace of the stream. + */ + @JsonIgnore + public Optional namespace() { + return namespace; + } + + /** + * Paths to the fields that will be used as primary key. This field is REQUIRED if + * `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. */ @SuppressWarnings("unchecked") @JsonIgnore @@ -132,12 +195,14 @@ public Optional syncMode() { return (Optional) syncMode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Path to the field that will be used to determine if a record is new or modified since the last sync. This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. + * Path to the field that will be used to determine if a record is new or modified since the last sync. + * This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. */ public StreamConfiguration withCursorField(List cursorField) { Utils.checkNotNull(cursorField, "cursorField"); @@ -145,8 +210,10 @@ public StreamConfiguration withCursorField(List cursorField) { return this; } + /** - * Path to the field that will be used to determine if a record is new or modified since the last sync. This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. + * Path to the field that will be used to determine if a record is new or modified since the last sync. + * This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. */ public StreamConfiguration withCursorField(Optional> cursorField) { Utils.checkNotNull(cursorField, "cursorField"); @@ -154,6 +221,46 @@ public StreamConfiguration withCursorField(Optional> curs return this; } + /** + * The name of the destination object that this stream will be written to, used for data activation + * destinations. + */ + public StreamConfiguration withDestinationObjectName(String destinationObjectName) { + Utils.checkNotNull(destinationObjectName, "destinationObjectName"); + this.destinationObjectName = Optional.ofNullable(destinationObjectName); + return this; + } + + + /** + * The name of the destination object that this stream will be written to, used for data activation + * destinations. + */ + public StreamConfiguration withDestinationObjectName(Optional destinationObjectName) { + Utils.checkNotNull(destinationObjectName, "destinationObjectName"); + this.destinationObjectName = destinationObjectName; + return this; + } + + /** + * Whether to move raw files from the source to the destination during the sync. + */ + public StreamConfiguration withIncludeFiles(boolean includeFiles) { + Utils.checkNotNull(includeFiles, "includeFiles"); + this.includeFiles = Optional.ofNullable(includeFiles); + return this; + } + + + /** + * Whether to move raw files from the source to the destination during the sync. + */ + public StreamConfiguration withIncludeFiles(Optional includeFiles) { + Utils.checkNotNull(includeFiles, "includeFiles"); + this.includeFiles = includeFiles; + return this; + } + /** * Mappers that should be applied to the stream before writing to the destination. */ @@ -163,6 +270,7 @@ public StreamConfiguration withMappers(List mappers) { return this; } + /** * Mappers that should be applied to the stream before writing to the destination. */ @@ -179,7 +287,27 @@ public StreamConfiguration withName(String name) { } /** - * Paths to the fields that will be used as primary key. This field is REQUIRED if `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. + * Namespace of the stream. + */ + public StreamConfiguration withNamespace(String namespace) { + Utils.checkNotNull(namespace, "namespace"); + this.namespace = Optional.ofNullable(namespace); + return this; + } + + + /** + * Namespace of the stream. + */ + public StreamConfiguration withNamespace(Optional namespace) { + Utils.checkNotNull(namespace, "namespace"); + this.namespace = namespace; + return this; + } + + /** + * Paths to the fields that will be used as primary key. This field is REQUIRED if + * `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. */ public StreamConfiguration withPrimaryKey(List> primaryKey) { Utils.checkNotNull(primaryKey, "primaryKey"); @@ -187,8 +315,10 @@ public StreamConfiguration withPrimaryKey(List> primaryKey) { return this; } + /** - * Paths to the fields that will be used as primary key. This field is REQUIRED if `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. + * Paths to the fields that will be used as primary key. This field is REQUIRED if + * `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. */ public StreamConfiguration withPrimaryKey(Optional>> primaryKey) { Utils.checkNotNull(primaryKey, "primaryKey"); @@ -205,6 +335,7 @@ public StreamConfiguration withSelectedFields(List selectedFi return this; } + /** * Paths to the fields that will be included in the configured catalog. */ @@ -220,13 +351,13 @@ public StreamConfiguration withSyncMode(ConnectionSyncModeEnum syncMode) { return this; } + public StreamConfiguration withSyncMode(Optional syncMode) { Utils.checkNotNull(syncMode, "syncMode"); this.syncMode = syncMode; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -237,56 +368,68 @@ public boolean equals(java.lang.Object o) { } StreamConfiguration other = (StreamConfiguration) o; return - Objects.deepEquals(this.cursorField, other.cursorField) && - Objects.deepEquals(this.mappers, other.mappers) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.primaryKey, other.primaryKey) && - Objects.deepEquals(this.selectedFields, other.selectedFields) && - Objects.deepEquals(this.syncMode, other.syncMode); + Utils.enhancedDeepEquals(this.cursorField, other.cursorField) && + Utils.enhancedDeepEquals(this.destinationObjectName, other.destinationObjectName) && + Utils.enhancedDeepEquals(this.includeFiles, other.includeFiles) && + Utils.enhancedDeepEquals(this.mappers, other.mappers) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.namespace, other.namespace) && + Utils.enhancedDeepEquals(this.primaryKey, other.primaryKey) && + Utils.enhancedDeepEquals(this.selectedFields, other.selectedFields) && + Utils.enhancedDeepEquals(this.syncMode, other.syncMode); } @Override public int hashCode() { - return Objects.hash( - cursorField, - mappers, - name, - primaryKey, - selectedFields, - syncMode); + return Utils.enhancedHash( + cursorField, destinationObjectName, includeFiles, + mappers, name, namespace, + primaryKey, selectedFields, syncMode); } @Override public String toString() { return Utils.toString(StreamConfiguration.class, "cursorField", cursorField, + "destinationObjectName", destinationObjectName, + "includeFiles", includeFiles, "mappers", mappers, "name", name, + "namespace", namespace, "primaryKey", primaryKey, "selectedFields", selectedFields, "syncMode", syncMode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> cursorField = Optional.empty(); - + + private Optional destinationObjectName = Optional.empty(); + + private Optional includeFiles = Optional.empty(); + private Optional> mappers = Optional.empty(); - + private String name; - + + private Optional namespace = Optional.empty(); + private Optional>> primaryKey = Optional.empty(); - + private Optional> selectedFields = Optional.empty(); - + private Optional syncMode = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Path to the field that will be used to determine if a record is new or modified since the last sync. This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. + * Path to the field that will be used to determine if a record is new or modified since the last sync. + * This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. */ public Builder cursorField(List cursorField) { Utils.checkNotNull(cursorField, "cursorField"); @@ -295,7 +438,8 @@ public Builder cursorField(List cursorField) { } /** - * Path to the field that will be used to determine if a record is new or modified since the last sync. This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. + * Path to the field that will be used to determine if a record is new or modified since the last sync. + * This field is REQUIRED if `sync_mode` is `incremental` unless there is a default. */ public Builder cursorField(Optional> cursorField) { Utils.checkNotNull(cursorField, "cursorField"); @@ -303,6 +447,47 @@ public Builder cursorField(Optional> cursorField) { return this; } + + /** + * The name of the destination object that this stream will be written to, used for data activation + * destinations. + */ + public Builder destinationObjectName(String destinationObjectName) { + Utils.checkNotNull(destinationObjectName, "destinationObjectName"); + this.destinationObjectName = Optional.ofNullable(destinationObjectName); + return this; + } + + /** + * The name of the destination object that this stream will be written to, used for data activation + * destinations. + */ + public Builder destinationObjectName(Optional destinationObjectName) { + Utils.checkNotNull(destinationObjectName, "destinationObjectName"); + this.destinationObjectName = destinationObjectName; + return this; + } + + + /** + * Whether to move raw files from the source to the destination during the sync. + */ + public Builder includeFiles(boolean includeFiles) { + Utils.checkNotNull(includeFiles, "includeFiles"); + this.includeFiles = Optional.ofNullable(includeFiles); + return this; + } + + /** + * Whether to move raw files from the source to the destination during the sync. + */ + public Builder includeFiles(Optional includeFiles) { + Utils.checkNotNull(includeFiles, "includeFiles"); + this.includeFiles = includeFiles; + return this; + } + + /** * Mappers that should be applied to the stream before writing to the destination. */ @@ -321,14 +506,36 @@ public Builder mappers(Optional> mappers) return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + /** - * Paths to the fields that will be used as primary key. This field is REQUIRED if `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. + * Namespace of the stream. + */ + public Builder namespace(String namespace) { + Utils.checkNotNull(namespace, "namespace"); + this.namespace = Optional.ofNullable(namespace); + return this; + } + + /** + * Namespace of the stream. + */ + public Builder namespace(Optional namespace) { + Utils.checkNotNull(namespace, "namespace"); + this.namespace = namespace; + return this; + } + + + /** + * Paths to the fields that will be used as primary key. This field is REQUIRED if + * `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. */ public Builder primaryKey(List> primaryKey) { Utils.checkNotNull(primaryKey, "primaryKey"); @@ -337,7 +544,8 @@ public Builder primaryKey(List> primaryKey) { } /** - * Paths to the fields that will be used as primary key. This field is REQUIRED if `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. + * Paths to the fields that will be used as primary key. This field is REQUIRED if + * `destination_sync_mode` is `*_dedup` unless it is already supplied by the source schema. */ public Builder primaryKey(Optional>> primaryKey) { Utils.checkNotNull(primaryKey, "primaryKey"); @@ -345,6 +553,7 @@ public Builder primaryKey(Optional>> primaryKey) { return this; } + /** * Paths to the fields that will be included in the configured catalog. */ @@ -363,6 +572,7 @@ public Builder selectedFields(Optional> select return this; } + public Builder syncMode(ConnectionSyncModeEnum syncMode) { Utils.checkNotNull(syncMode, "syncMode"); this.syncMode = Optional.ofNullable(syncMode); @@ -374,15 +584,14 @@ public Builder syncMode(Optional syncMode) { this.syncMode = syncMode; return this; } - + public StreamConfiguration build() { + return new StreamConfiguration( - cursorField, - mappers, - name, - primaryKey, - selectedFields, - syncMode); + cursorField, destinationObjectName, includeFiles, + mappers, name, namespace, + primaryKey, selectedFields, syncMode); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java b/src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java index f28879baf..ede980c6b 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamConfigurations.java @@ -13,7 +13,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -44,9 +43,10 @@ public Optional> streams() { return (Optional>) streams; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public StreamConfigurations withStreams(List streams) { Utils.checkNotNull(streams, "streams"); @@ -54,13 +54,13 @@ public StreamConfigurations withStreams(List streams) { return this; } + public StreamConfigurations withStreams(Optional> streams) { Utils.checkNotNull(streams, "streams"); this.streams = streams; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,12 +71,12 @@ public boolean equals(java.lang.Object o) { } StreamConfigurations other = (StreamConfigurations) o; return - Objects.deepEquals(this.streams, other.streams); + Utils.enhancedDeepEquals(this.streams, other.streams); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( streams); } @@ -85,15 +85,17 @@ public String toString() { return Utils.toString(StreamConfigurations.class, "streams", streams); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> streams = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder streams(List streams) { Utils.checkNotNull(streams, "streams"); this.streams = Optional.ofNullable(streams); @@ -105,10 +107,12 @@ public Builder streams(Optional> streams) { this.streams = streams; return this; } - + public StreamConfigurations build() { + return new StreamConfigurations( streams); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java b/src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java index f1a6aea24..9b6a1ac22 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamConfigurationsInput.java @@ -13,7 +13,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -44,9 +43,10 @@ public Optional> streams() { return (Optional>) streams; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public StreamConfigurationsInput withStreams(List streams) { Utils.checkNotNull(streams, "streams"); @@ -54,13 +54,13 @@ public StreamConfigurationsInput withStreams(List streams) return this; } + public StreamConfigurationsInput withStreams(Optional> streams) { Utils.checkNotNull(streams, "streams"); this.streams = streams; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,12 +71,12 @@ public boolean equals(java.lang.Object o) { } StreamConfigurationsInput other = (StreamConfigurationsInput) o; return - Objects.deepEquals(this.streams, other.streams); + Utils.enhancedDeepEquals(this.streams, other.streams); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( streams); } @@ -85,15 +85,17 @@ public String toString() { return Utils.toString(StreamConfigurationsInput.class, "streams", streams); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> streams = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder streams(List streams) { Utils.checkNotNull(streams, "streams"); this.streams = Optional.ofNullable(streams); @@ -105,10 +107,12 @@ public Builder streams(Optional> streams) { this.streams = streams; return this; } - + public StreamConfigurationsInput build() { + return new StreamConfigurationsInput( streams); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/StreamMapperType.java b/src/main/java/com/airbyte/api/models/shared/StreamMapperType.java index 094c42e3e..383034da2 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamMapperType.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamMapperType.java @@ -17,7 +17,7 @@ public enum StreamMapperType { @JsonValue private final String value; - private StreamMapperType(String value) { + StreamMapperType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/StreamMapping.java b/src/main/java/com/airbyte/api/models/shared/StreamMapping.java deleted file mode 100644 index 9e9f3d445..000000000 --- a/src/main/java/com/airbyte/api/models/shared/StreamMapping.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.airbyte.api.models.shared; - -import com.airbyte.api.utils.Utils; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Override; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -/** - * StreamMapping - * - *

    Describes the relationship between a source stream and a destination table and how to update the information. - */ -public class StreamMapping { - - /** - * The name for the table to update the data in the destination. - */ - @JsonProperty("destination_table") - private String destinationTable; - - /** - * The name for the input stream. - */ - @JsonProperty("source_stream") - private String sourceStream; - - /** - * How to update the data in the destination. - */ - @JsonProperty("update_mode") - private UpdateMode updateMode; - - /** - * Given the operation is an upsert, a field representing an external ID needs to be provided - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("upsert_key") - private Optional upsertKey; - - @JsonCreator - public StreamMapping( - @JsonProperty("destination_table") String destinationTable, - @JsonProperty("source_stream") String sourceStream, - @JsonProperty("update_mode") UpdateMode updateMode, - @JsonProperty("upsert_key") Optional upsertKey) { - Utils.checkNotNull(destinationTable, "destinationTable"); - Utils.checkNotNull(sourceStream, "sourceStream"); - Utils.checkNotNull(updateMode, "updateMode"); - Utils.checkNotNull(upsertKey, "upsertKey"); - this.destinationTable = destinationTable; - this.sourceStream = sourceStream; - this.updateMode = updateMode; - this.upsertKey = upsertKey; - } - - public StreamMapping( - String destinationTable, - String sourceStream, - UpdateMode updateMode) { - this(destinationTable, sourceStream, updateMode, Optional.empty()); - } - - /** - * The name for the table to update the data in the destination. - */ - @JsonIgnore - public String destinationTable() { - return destinationTable; - } - - /** - * The name for the input stream. - */ - @JsonIgnore - public String sourceStream() { - return sourceStream; - } - - /** - * How to update the data in the destination. - */ - @JsonIgnore - public UpdateMode updateMode() { - return updateMode; - } - - /** - * Given the operation is an upsert, a field representing an external ID needs to be provided - */ - @JsonIgnore - public Optional upsertKey() { - return upsertKey; - } - - public final static Builder builder() { - return new Builder(); - } - - /** - * The name for the table to update the data in the destination. - */ - public StreamMapping withDestinationTable(String destinationTable) { - Utils.checkNotNull(destinationTable, "destinationTable"); - this.destinationTable = destinationTable; - return this; - } - - /** - * The name for the input stream. - */ - public StreamMapping withSourceStream(String sourceStream) { - Utils.checkNotNull(sourceStream, "sourceStream"); - this.sourceStream = sourceStream; - return this; - } - - /** - * How to update the data in the destination. - */ - public StreamMapping withUpdateMode(UpdateMode updateMode) { - Utils.checkNotNull(updateMode, "updateMode"); - this.updateMode = updateMode; - return this; - } - - /** - * Given the operation is an upsert, a field representing an external ID needs to be provided - */ - public StreamMapping withUpsertKey(String upsertKey) { - Utils.checkNotNull(upsertKey, "upsertKey"); - this.upsertKey = Optional.ofNullable(upsertKey); - return this; - } - - /** - * Given the operation is an upsert, a field representing an external ID needs to be provided - */ - public StreamMapping withUpsertKey(Optional upsertKey) { - Utils.checkNotNull(upsertKey, "upsertKey"); - this.upsertKey = upsertKey; - return this; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StreamMapping other = (StreamMapping) o; - return - Objects.deepEquals(this.destinationTable, other.destinationTable) && - Objects.deepEquals(this.sourceStream, other.sourceStream) && - Objects.deepEquals(this.updateMode, other.updateMode) && - Objects.deepEquals(this.upsertKey, other.upsertKey); - } - - @Override - public int hashCode() { - return Objects.hash( - destinationTable, - sourceStream, - updateMode, - upsertKey); - } - - @Override - public String toString() { - return Utils.toString(StreamMapping.class, - "destinationTable", destinationTable, - "sourceStream", sourceStream, - "updateMode", updateMode, - "upsertKey", upsertKey); - } - - public final static class Builder { - - private String destinationTable; - - private String sourceStream; - - private UpdateMode updateMode; - - private Optional upsertKey = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - /** - * The name for the table to update the data in the destination. - */ - public Builder destinationTable(String destinationTable) { - Utils.checkNotNull(destinationTable, "destinationTable"); - this.destinationTable = destinationTable; - return this; - } - - /** - * The name for the input stream. - */ - public Builder sourceStream(String sourceStream) { - Utils.checkNotNull(sourceStream, "sourceStream"); - this.sourceStream = sourceStream; - return this; - } - - /** - * How to update the data in the destination. - */ - public Builder updateMode(UpdateMode updateMode) { - Utils.checkNotNull(updateMode, "updateMode"); - this.updateMode = updateMode; - return this; - } - - /** - * Given the operation is an upsert, a field representing an external ID needs to be provided - */ - public Builder upsertKey(String upsertKey) { - Utils.checkNotNull(upsertKey, "upsertKey"); - this.upsertKey = Optional.ofNullable(upsertKey); - return this; - } - - /** - * Given the operation is an upsert, a field representing an external ID needs to be provided - */ - public Builder upsertKey(Optional upsertKey) { - Utils.checkNotNull(upsertKey, "upsertKey"); - this.upsertKey = upsertKey; - return this; - } - - public StreamMapping build() { - return new StreamMapping( - destinationTable, - sourceStream, - updateMode, - upsertKey); - } - } -} diff --git a/src/main/java/com/airbyte/api/models/shared/StreamNameOverrides.java b/src/main/java/com/airbyte/api/models/shared/StreamNameOverrides.java new file mode 100644 index 000000000..bfded3338 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/StreamNameOverrides.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Override; +import java.lang.String; + + +public class StreamNameOverrides { + /** + * The name you want this stream to appear as in Airbyte and your destination. + */ + @JsonProperty("custom_stream_name") + private String customStreamName; + + /** + * The exact name of the sheet/tab in your Google Spreadsheet. + */ + @JsonProperty("source_stream_name") + private String sourceStreamName; + + @JsonCreator + public StreamNameOverrides( + @JsonProperty("custom_stream_name") String customStreamName, + @JsonProperty("source_stream_name") String sourceStreamName) { + Utils.checkNotNull(customStreamName, "customStreamName"); + Utils.checkNotNull(sourceStreamName, "sourceStreamName"); + this.customStreamName = customStreamName; + this.sourceStreamName = sourceStreamName; + } + + /** + * The name you want this stream to appear as in Airbyte and your destination. + */ + @JsonIgnore + public String customStreamName() { + return customStreamName; + } + + /** + * The exact name of the sheet/tab in your Google Spreadsheet. + */ + @JsonIgnore + public String sourceStreamName() { + return sourceStreamName; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The name you want this stream to appear as in Airbyte and your destination. + */ + public StreamNameOverrides withCustomStreamName(String customStreamName) { + Utils.checkNotNull(customStreamName, "customStreamName"); + this.customStreamName = customStreamName; + return this; + } + + /** + * The exact name of the sheet/tab in your Google Spreadsheet. + */ + public StreamNameOverrides withSourceStreamName(String sourceStreamName) { + Utils.checkNotNull(sourceStreamName, "sourceStreamName"); + this.sourceStreamName = sourceStreamName; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StreamNameOverrides other = (StreamNameOverrides) o; + return + Utils.enhancedDeepEquals(this.customStreamName, other.customStreamName) && + Utils.enhancedDeepEquals(this.sourceStreamName, other.sourceStreamName); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + customStreamName, sourceStreamName); + } + + @Override + public String toString() { + return Utils.toString(StreamNameOverrides.class, + "customStreamName", customStreamName, + "sourceStreamName", sourceStreamName); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String customStreamName; + + private String sourceStreamName; + + private Builder() { + // force use of static builder() method + } + + + /** + * The name you want this stream to appear as in Airbyte and your destination. + */ + public Builder customStreamName(String customStreamName) { + Utils.checkNotNull(customStreamName, "customStreamName"); + this.customStreamName = customStreamName; + return this; + } + + + /** + * The exact name of the sheet/tab in your Google Spreadsheet. + */ + public Builder sourceStreamName(String sourceStreamName) { + Utils.checkNotNull(sourceStreamName, "sourceStreamName"); + this.sourceStreamName = sourceStreamName; + return this; + } + + public StreamNameOverrides build() { + + return new StreamNameOverrides( + customStreamName, sourceStreamName); + } + + } +} diff --git a/src/main/java/com/airbyte/api/models/shared/StreamProperties.java b/src/main/java/com/airbyte/api/models/shared/StreamProperties.java index 40b6a134d..28293c28b 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamProperties.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamProperties.java @@ -14,7 +14,6 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** @@ -28,22 +27,32 @@ public class StreamProperties { @JsonProperty("defaultCursorField") private Optional> defaultCursorField; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("propertyFields") private Optional>> propertyFields; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceDefinedCursorField") private Optional sourceDefinedCursorField; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceDefinedPrimaryKey") private Optional>> sourceDefinedPrimaryKey; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("streamName") private Optional streamName; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("streamnamespace") + private Optional streamnamespace; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("syncModes") private Optional> syncModes; @@ -55,23 +64,28 @@ public StreamProperties( @JsonProperty("sourceDefinedCursorField") Optional sourceDefinedCursorField, @JsonProperty("sourceDefinedPrimaryKey") Optional>> sourceDefinedPrimaryKey, @JsonProperty("streamName") Optional streamName, + @JsonProperty("streamnamespace") Optional streamnamespace, @JsonProperty("syncModes") Optional> syncModes) { Utils.checkNotNull(defaultCursorField, "defaultCursorField"); Utils.checkNotNull(propertyFields, "propertyFields"); Utils.checkNotNull(sourceDefinedCursorField, "sourceDefinedCursorField"); Utils.checkNotNull(sourceDefinedPrimaryKey, "sourceDefinedPrimaryKey"); Utils.checkNotNull(streamName, "streamName"); + Utils.checkNotNull(streamnamespace, "streamnamespace"); Utils.checkNotNull(syncModes, "syncModes"); this.defaultCursorField = defaultCursorField; this.propertyFields = propertyFields; this.sourceDefinedCursorField = sourceDefinedCursorField; this.sourceDefinedPrimaryKey = sourceDefinedPrimaryKey; this.streamName = streamName; + this.streamnamespace = streamnamespace; this.syncModes = syncModes; } public StreamProperties() { - this(Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } @SuppressWarnings("unchecked") @@ -102,15 +116,21 @@ public Optional streamName() { return streamName; } + @JsonIgnore + public Optional streamnamespace() { + return streamnamespace; + } + @SuppressWarnings("unchecked") @JsonIgnore public Optional> syncModes() { return (Optional>) syncModes; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public StreamProperties withDefaultCursorField(List defaultCursorField) { Utils.checkNotNull(defaultCursorField, "defaultCursorField"); @@ -118,6 +138,7 @@ public StreamProperties withDefaultCursorField(List defaultCursorField) return this; } + public StreamProperties withDefaultCursorField(Optional> defaultCursorField) { Utils.checkNotNull(defaultCursorField, "defaultCursorField"); this.defaultCursorField = defaultCursorField; @@ -130,6 +151,7 @@ public StreamProperties withPropertyFields(List> propertyFields) { return this; } + public StreamProperties withPropertyFields(Optional>> propertyFields) { Utils.checkNotNull(propertyFields, "propertyFields"); this.propertyFields = propertyFields; @@ -142,6 +164,7 @@ public StreamProperties withSourceDefinedCursorField(boolean sourceDefinedCursor return this; } + public StreamProperties withSourceDefinedCursorField(Optional sourceDefinedCursorField) { Utils.checkNotNull(sourceDefinedCursorField, "sourceDefinedCursorField"); this.sourceDefinedCursorField = sourceDefinedCursorField; @@ -154,6 +177,7 @@ public StreamProperties withSourceDefinedPrimaryKey(List> sourceDef return this; } + public StreamProperties withSourceDefinedPrimaryKey(Optional>> sourceDefinedPrimaryKey) { Utils.checkNotNull(sourceDefinedPrimaryKey, "sourceDefinedPrimaryKey"); this.sourceDefinedPrimaryKey = sourceDefinedPrimaryKey; @@ -166,25 +190,39 @@ public StreamProperties withStreamName(String streamName) { return this; } + public StreamProperties withStreamName(Optional streamName) { Utils.checkNotNull(streamName, "streamName"); this.streamName = streamName; return this; } + public StreamProperties withStreamnamespace(String streamnamespace) { + Utils.checkNotNull(streamnamespace, "streamnamespace"); + this.streamnamespace = Optional.ofNullable(streamnamespace); + return this; + } + + + public StreamProperties withStreamnamespace(Optional streamnamespace) { + Utils.checkNotNull(streamnamespace, "streamnamespace"); + this.streamnamespace = streamnamespace; + return this; + } + public StreamProperties withSyncModes(List syncModes) { Utils.checkNotNull(syncModes, "syncModes"); this.syncModes = Optional.ofNullable(syncModes); return this; } + public StreamProperties withSyncModes(Optional> syncModes) { Utils.checkNotNull(syncModes, "syncModes"); this.syncModes = syncModes; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -195,22 +233,20 @@ public boolean equals(java.lang.Object o) { } StreamProperties other = (StreamProperties) o; return - Objects.deepEquals(this.defaultCursorField, other.defaultCursorField) && - Objects.deepEquals(this.propertyFields, other.propertyFields) && - Objects.deepEquals(this.sourceDefinedCursorField, other.sourceDefinedCursorField) && - Objects.deepEquals(this.sourceDefinedPrimaryKey, other.sourceDefinedPrimaryKey) && - Objects.deepEquals(this.streamName, other.streamName) && - Objects.deepEquals(this.syncModes, other.syncModes); + Utils.enhancedDeepEquals(this.defaultCursorField, other.defaultCursorField) && + Utils.enhancedDeepEquals(this.propertyFields, other.propertyFields) && + Utils.enhancedDeepEquals(this.sourceDefinedCursorField, other.sourceDefinedCursorField) && + Utils.enhancedDeepEquals(this.sourceDefinedPrimaryKey, other.sourceDefinedPrimaryKey) && + Utils.enhancedDeepEquals(this.streamName, other.streamName) && + Utils.enhancedDeepEquals(this.streamnamespace, other.streamnamespace) && + Utils.enhancedDeepEquals(this.syncModes, other.syncModes); } @Override public int hashCode() { - return Objects.hash( - defaultCursorField, - propertyFields, - sourceDefinedCursorField, - sourceDefinedPrimaryKey, - streamName, + return Utils.enhancedHash( + defaultCursorField, propertyFields, sourceDefinedCursorField, + sourceDefinedPrimaryKey, streamName, streamnamespace, syncModes); } @@ -222,27 +258,32 @@ public String toString() { "sourceDefinedCursorField", sourceDefinedCursorField, "sourceDefinedPrimaryKey", sourceDefinedPrimaryKey, "streamName", streamName, + "streamnamespace", streamnamespace, "syncModes", syncModes); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional> defaultCursorField = Optional.empty(); - + private Optional>> propertyFields = Optional.empty(); - + private Optional sourceDefinedCursorField = Optional.empty(); - + private Optional>> sourceDefinedPrimaryKey = Optional.empty(); - + private Optional streamName = Optional.empty(); - + + private Optional streamnamespace = Optional.empty(); + private Optional> syncModes = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder defaultCursorField(List defaultCursorField) { Utils.checkNotNull(defaultCursorField, "defaultCursorField"); this.defaultCursorField = Optional.ofNullable(defaultCursorField); @@ -255,6 +296,7 @@ public Builder defaultCursorField(Optional> defaultCursor return this; } + public Builder propertyFields(List> propertyFields) { Utils.checkNotNull(propertyFields, "propertyFields"); this.propertyFields = Optional.ofNullable(propertyFields); @@ -267,6 +309,7 @@ public Builder propertyFields(Optional>> propertyFie return this; } + public Builder sourceDefinedCursorField(boolean sourceDefinedCursorField) { Utils.checkNotNull(sourceDefinedCursorField, "sourceDefinedCursorField"); this.sourceDefinedCursorField = Optional.ofNullable(sourceDefinedCursorField); @@ -279,6 +322,7 @@ public Builder sourceDefinedCursorField(Optional sourceDefinedCursorFie return this; } + public Builder sourceDefinedPrimaryKey(List> sourceDefinedPrimaryKey) { Utils.checkNotNull(sourceDefinedPrimaryKey, "sourceDefinedPrimaryKey"); this.sourceDefinedPrimaryKey = Optional.ofNullable(sourceDefinedPrimaryKey); @@ -291,6 +335,7 @@ public Builder sourceDefinedPrimaryKey(Optional>> so return this; } + public Builder streamName(String streamName) { Utils.checkNotNull(streamName, "streamName"); this.streamName = Optional.ofNullable(streamName); @@ -303,6 +348,20 @@ public Builder streamName(Optional streamName) { return this; } + + public Builder streamnamespace(String streamnamespace) { + Utils.checkNotNull(streamnamespace, "streamnamespace"); + this.streamnamespace = Optional.ofNullable(streamnamespace); + return this; + } + + public Builder streamnamespace(Optional streamnamespace) { + Utils.checkNotNull(streamnamespace, "streamnamespace"); + this.streamnamespace = streamnamespace; + return this; + } + + public Builder syncModes(List syncModes) { Utils.checkNotNull(syncModes, "syncModes"); this.syncModes = Optional.ofNullable(syncModes); @@ -314,15 +373,14 @@ public Builder syncModes(Optional> syncMo this.syncModes = syncModes; return this; } - + public StreamProperties build() { + return new StreamProperties( - defaultCursorField, - propertyFields, - sourceDefinedCursorField, - sourceDefinedPrimaryKey, - streamName, + defaultCursorField, propertyFields, sourceDefinedCursorField, + sourceDefinedPrimaryKey, streamName, streamnamespace, syncModes); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/StreamsCriteria.java b/src/main/java/com/airbyte/api/models/shared/StreamsCriteria.java index 1d14fd910..11957da97 100644 --- a/src/main/java/com/airbyte/api/models/shared/StreamsCriteria.java +++ b/src/main/java/com/airbyte/api/models/shared/StreamsCriteria.java @@ -14,15 +14,16 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class StreamsCriteria { @JsonInclude(Include.NON_ABSENT) @JsonProperty("criteria") private Optional criteria; + @JsonProperty("value") private String value; @@ -52,9 +53,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public StreamsCriteria withCriteria(SearchCriteria criteria) { Utils.checkNotNull(criteria, "criteria"); @@ -62,6 +64,7 @@ public StreamsCriteria withCriteria(SearchCriteria criteria) { return this; } + public StreamsCriteria withCriteria(Optional criteria) { Utils.checkNotNull(criteria, "criteria"); this.criteria = criteria; @@ -74,7 +77,6 @@ public StreamsCriteria withValue(String value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -85,15 +87,14 @@ public boolean equals(java.lang.Object o) { } StreamsCriteria other = (StreamsCriteria) o; return - Objects.deepEquals(this.criteria, other.criteria) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.criteria, other.criteria) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - criteria, - value); + return Utils.enhancedHash( + criteria, value); } @Override @@ -102,17 +103,19 @@ public String toString() { "criteria", criteria, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional criteria; - + private String value; - + private Builder() { // force use of static builder() method } + public Builder criteria(SearchCriteria criteria) { Utils.checkNotNull(criteria, "criteria"); this.criteria = Optional.ofNullable(criteria); @@ -125,21 +128,23 @@ public Builder criteria(Optional criteria) { return this; } + public Builder value(String value) { Utils.checkNotNull(value, "value"); this.value = value; return this; } - + public StreamsCriteria build() { if (criteria == null) { criteria = _SINGLETON_VALUE_Criteria.value(); } + return new StreamsCriteria( - criteria, - value); + criteria, value); } + private static final LazySingletonValue> _SINGLETON_VALUE_Criteria = new LazySingletonValue<>( "criteria", diff --git a/src/main/java/com/airbyte/api/models/shared/StringFilter.java b/src/main/java/com/airbyte/api/models/shared/StringFilter.java index 17d29edcf..ac58137a6 100644 --- a/src/main/java/com/airbyte/api/models/shared/StringFilter.java +++ b/src/main/java/com/airbyte/api/models/shared/StringFilter.java @@ -16,22 +16,25 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class StringFilter { @JsonInclude(Include.NON_ABSENT) @JsonProperty("caseSensitive") private Optional caseSensitive; + @JsonProperty("filter_name") private FilterName filterName; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("matchType") private Optional> matchType; + @JsonProperty("value") private String value; @@ -75,9 +78,10 @@ public String value() { return value; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public StringFilter withCaseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); @@ -85,6 +89,7 @@ public StringFilter withCaseSensitive(boolean caseSensitive) { return this; } + public StringFilter withCaseSensitive(Optional caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = caseSensitive; @@ -97,6 +102,7 @@ public StringFilter withMatchType(List m return this; } + public StringFilter withMatchType(Optional> matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = matchType; @@ -109,7 +115,6 @@ public StringFilter withValue(String value) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,18 +125,16 @@ public boolean equals(java.lang.Object o) { } StringFilter other = (StringFilter) o; return - Objects.deepEquals(this.caseSensitive, other.caseSensitive) && - Objects.deepEquals(this.filterName, other.filterName) && - Objects.deepEquals(this.matchType, other.matchType) && - Objects.deepEquals(this.value, other.value); + Utils.enhancedDeepEquals(this.caseSensitive, other.caseSensitive) && + Utils.enhancedDeepEquals(this.filterName, other.filterName) && + Utils.enhancedDeepEquals(this.matchType, other.matchType) && + Utils.enhancedDeepEquals(this.value, other.value); } @Override public int hashCode() { - return Objects.hash( - caseSensitive, - filterName, - matchType, + return Utils.enhancedHash( + caseSensitive, filterName, matchType, value); } @@ -143,19 +146,21 @@ public String toString() { "matchType", matchType, "value", value); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional caseSensitive = Optional.empty(); - + private Optional> matchType = Optional.empty(); - + private String value; - + private Builder() { // force use of static builder() method } + public Builder caseSensitive(boolean caseSensitive) { Utils.checkNotNull(caseSensitive, "caseSensitive"); this.caseSensitive = Optional.ofNullable(caseSensitive); @@ -168,6 +173,7 @@ public Builder caseSensitive(Optional caseSensitive) { return this; } + public Builder matchType(List matchType) { Utils.checkNotNull(matchType, "matchType"); this.matchType = Optional.ofNullable(matchType); @@ -180,19 +186,20 @@ public Builder matchType(Optional _SINGLETON_VALUE_FilterName = new LazySingletonValue<>( "filter_name", diff --git a/src/main/java/com/airbyte/api/models/shared/Stripe.java b/src/main/java/com/airbyte/api/models/shared/Stripe.java index 6c05131da..122933669 100644 --- a/src/main/java/com/airbyte/api/models/shared/Stripe.java +++ b/src/main/java/com/airbyte/api/models/shared/Stripe.java @@ -14,7 +14,7 @@ public enum Stripe { @JsonValue private final String value; - private Stripe(String value) { + Stripe(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Subdomain.java b/src/main/java/com/airbyte/api/models/shared/Subdomain.java index 84708c098..f497a778c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Subdomain.java +++ b/src/main/java/com/airbyte/api/models/shared/Subdomain.java @@ -20,7 +20,7 @@ public enum Subdomain { @JsonValue private final String value; - private Subdomain(String value) { + Subdomain(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SubtitleFormat.java b/src/main/java/com/airbyte/api/models/shared/SubtitleFormat.java index f71848ecf..69951ce8b 100644 --- a/src/main/java/com/airbyte/api/models/shared/SubtitleFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/SubtitleFormat.java @@ -20,7 +20,7 @@ public enum SubtitleFormat { @JsonValue private final String value; - private SubtitleFormat(String value) { + SubtitleFormat(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Surrealdb.java b/src/main/java/com/airbyte/api/models/shared/Surrealdb.java new file mode 100644 index 000000000..80fc988f0 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Surrealdb.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Surrealdb { + SURREALDB("surrealdb"); + + @JsonValue + private final String value; + + Surrealdb(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Surrealdb o: Surrealdb.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/SurveyMonkeyAuthorizationMethod.java b/src/main/java/com/airbyte/api/models/shared/SurveyMonkeyAuthorizationMethod.java index 59d3e4602..c9affd2ab 100644 --- a/src/main/java/com/airbyte/api/models/shared/SurveyMonkeyAuthorizationMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/SurveyMonkeyAuthorizationMethod.java @@ -13,7 +13,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -22,13 +21,15 @@ *

    The authorization method to use to retrieve data from SurveyMonkey */ public class SurveyMonkeyAuthorizationMethod { - /** - * Access Token for making authenticated requests. See the <a href="https://docs.airbyte.io/integrations/sources/surveymonkey">docs</a> for information on how to generate this key. + * Access Token for making authenticated requests. See the docs for information on how to + * generate this key. */ @JsonProperty("access_token") private String accessToken; + @JsonProperty("auth_method") private SourceSurveymonkeyAuthMethod authMethod; @@ -66,7 +67,9 @@ public SurveyMonkeyAuthorizationMethod( } /** - * Access Token for making authenticated requests. See the <a href="https://docs.airbyte.io/integrations/sources/surveymonkey">docs</a> for information on how to generate this key. + * Access Token for making authenticated requests. See the docs for information on how to + * generate this key. */ @JsonIgnore public String accessToken() { @@ -94,12 +97,15 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Access Token for making authenticated requests. See the <a href="https://docs.airbyte.io/integrations/sources/surveymonkey">docs</a> for information on how to generate this key. + * Access Token for making authenticated requests. See the docs for information on how to + * generate this key. */ public SurveyMonkeyAuthorizationMethod withAccessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -116,6 +122,7 @@ public SurveyMonkeyAuthorizationMethod withClientId(String clientId) { return this; } + /** * The Client ID of the SurveyMonkey developer application. */ @@ -134,6 +141,7 @@ public SurveyMonkeyAuthorizationMethod withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of the SurveyMonkey developer application. */ @@ -143,7 +151,6 @@ public SurveyMonkeyAuthorizationMethod withClientSecret(Optional clientS return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -154,18 +161,16 @@ public boolean equals(java.lang.Object o) { } SurveyMonkeyAuthorizationMethod other = (SurveyMonkeyAuthorizationMethod) o; return - Objects.deepEquals(this.accessToken, other.accessToken) && - Objects.deepEquals(this.authMethod, other.authMethod) && - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.accessToken, other.accessToken) && + Utils.enhancedDeepEquals(this.authMethod, other.authMethod) && + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - accessToken, - authMethod, - clientId, + return Utils.enhancedHash( + accessToken, authMethod, clientId, clientSecret); } @@ -177,21 +182,25 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String accessToken; - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * Access Token for making authenticated requests. See the <a href="https://docs.airbyte.io/integrations/sources/surveymonkey">docs</a> for information on how to generate this key. + * Access Token for making authenticated requests. See the docs for information on how to + * generate this key. */ public Builder accessToken(String accessToken) { Utils.checkNotNull(accessToken, "accessToken"); @@ -199,6 +208,7 @@ public Builder accessToken(String accessToken) { return this; } + /** * The Client ID of the SurveyMonkey developer application. */ @@ -217,6 +227,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of the SurveyMonkey developer application. */ @@ -234,14 +245,14 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public SurveyMonkeyAuthorizationMethod build() { + return new SurveyMonkeyAuthorizationMethod( - accessToken, - clientId, - clientSecret); + accessToken, clientId, clientSecret); } + private static final LazySingletonValue _SINGLETON_VALUE_AuthMethod = new LazySingletonValue<>( "auth_method", diff --git a/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java b/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java index def683d34..8a098a042 100644 --- a/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java +++ b/src/main/java/com/airbyte/api/models/shared/SurveySparrow.java @@ -14,7 +14,7 @@ public enum SurveySparrow { @JsonValue private final String value; - private SurveySparrow(String value) { + SurveySparrow(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Surveymonkey.java b/src/main/java/com/airbyte/api/models/shared/Surveymonkey.java index 0a970b557..121162409 100644 --- a/src/main/java/com/airbyte/api/models/shared/Surveymonkey.java +++ b/src/main/java/com/airbyte/api/models/shared/Surveymonkey.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Surveymonkey { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Surveymonkey withCredentials(SurveymonkeyCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Surveymonkey withCredentials(SurveymonkeyCredentials credentials) { return this; } + public Surveymonkey withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Surveymonkey other = (Surveymonkey) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Surveymonkey.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(SurveymonkeyCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentia this.credentials = credentials; return this; } - + public Surveymonkey build() { + return new Surveymonkey( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/SurveymonkeyCredentials.java b/src/main/java/com/airbyte/api/models/shared/SurveymonkeyCredentials.java index b373f0680..d00ffc493 100644 --- a/src/main/java/com/airbyte/api/models/shared/SurveymonkeyCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/SurveymonkeyCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class SurveymonkeyCredentials { +public class SurveymonkeyCredentials { /** * The Client ID of the SurveyMonkey developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of the SurveyMonkey developer application. @@ -73,6 +73,7 @@ public SurveymonkeyCredentials withClientId(String clientId) { return this; } + /** * The Client ID of the SurveyMonkey developer application. */ @@ -91,6 +92,7 @@ public SurveymonkeyCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret of the SurveyMonkey developer application. */ @@ -100,7 +102,6 @@ public SurveymonkeyCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } SurveymonkeyCredentials other = (SurveymonkeyCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of the SurveyMonkey developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret of the SurveyMonkey developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public SurveymonkeyCredentials build() { + return new SurveymonkeyCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Survicate.java b/src/main/java/com/airbyte/api/models/shared/Survicate.java index 3526d88e0..afe3d5a3e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Survicate.java +++ b/src/main/java/com/airbyte/api/models/shared/Survicate.java @@ -14,7 +14,7 @@ public enum Survicate { @JsonValue private final String value; - private Survicate(String value) { + Survicate(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Svix.java b/src/main/java/com/airbyte/api/models/shared/Svix.java index 59ef81e09..81f9efdd4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Svix.java +++ b/src/main/java/com/airbyte/api/models/shared/Svix.java @@ -14,7 +14,7 @@ public enum Svix { @JsonValue private final String value; - private Svix(String value) { + Svix(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java b/src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java index 0f1e371bc..93f0364b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java +++ b/src/main/java/com/airbyte/api/models/shared/SwipeUpAttributionWindow.java @@ -21,7 +21,7 @@ public enum SwipeUpAttributionWindow { @JsonValue private final String value; - private SwipeUpAttributionWindow(String value) { + SwipeUpAttributionWindow(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/SystemIDSID.java b/src/main/java/com/airbyte/api/models/shared/SystemIDSID.java index ab7bbd03f..32302db82 100644 --- a/src/main/java/com/airbyte/api/models/shared/SystemIDSID.java +++ b/src/main/java/com/airbyte/api/models/shared/SystemIDSID.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -28,6 +27,7 @@ public class SystemIDSID { @JsonProperty("connection_type") private Optional connectionType; + @JsonProperty("sid") private String sid; @@ -50,9 +50,10 @@ public String sid() { return sid; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public SystemIDSID withSid(String sid) { Utils.checkNotNull(sid, "sid"); @@ -60,7 +61,6 @@ public SystemIDSID withSid(String sid) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -71,15 +71,14 @@ public boolean equals(java.lang.Object o) { } SystemIDSID other = (SystemIDSID) o; return - Objects.deepEquals(this.connectionType, other.connectionType) && - Objects.deepEquals(this.sid, other.sid); + Utils.enhancedDeepEquals(this.connectionType, other.connectionType) && + Utils.enhancedDeepEquals(this.sid, other.sid); } @Override public int hashCode() { - return Objects.hash( - connectionType, - sid); + return Utils.enhancedHash( + connectionType, sid); } @Override @@ -88,26 +87,30 @@ public String toString() { "connectionType", connectionType, "sid", sid); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sid; - + private Builder() { // force use of static builder() method } + public Builder sid(String sid) { Utils.checkNotNull(sid, "sid"); this.sid = sid; return this; } - + public SystemIDSID build() { + return new SystemIDSID( sid); } + private static final LazySingletonValue> _SINGLETON_VALUE_ConnectionType = new LazySingletonValue<>( "connection_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Systeme.java b/src/main/java/com/airbyte/api/models/shared/Systeme.java index d6b9800d6..560cfb8db 100644 --- a/src/main/java/com/airbyte/api/models/shared/Systeme.java +++ b/src/main/java/com/airbyte/api/models/shared/Systeme.java @@ -14,7 +14,7 @@ public enum Systeme { @JsonValue private final String value; - private Systeme(String value) { + Systeme(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TLSEncryptedVerifyCertificate.java b/src/main/java/com/airbyte/api/models/shared/TLSEncryptedVerifyCertificate.java index 916b9aea2..25f718c51 100644 --- a/src/main/java/com/airbyte/api/models/shared/TLSEncryptedVerifyCertificate.java +++ b/src/main/java/com/airbyte/api/models/shared/TLSEncryptedVerifyCertificate.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -29,7 +28,8 @@ public class TLSEncryptedVerifyCertificate { private Optional encryptionMethod; /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ @JsonProperty("ssl_certificate") private String sslCertificate; @@ -49,19 +49,22 @@ public Optional encryptionMethod() { } /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ @JsonIgnore public String sslCertificate() { return sslCertificate; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ public TLSEncryptedVerifyCertificate withSslCertificate(String sslCertificate) { Utils.checkNotNull(sslCertificate, "sslCertificate"); @@ -69,7 +72,6 @@ public TLSEncryptedVerifyCertificate withSslCertificate(String sslCertificate) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -80,15 +82,14 @@ public boolean equals(java.lang.Object o) { } TLSEncryptedVerifyCertificate other = (TLSEncryptedVerifyCertificate) o; return - Objects.deepEquals(this.encryptionMethod, other.encryptionMethod) && - Objects.deepEquals(this.sslCertificate, other.sslCertificate); + Utils.enhancedDeepEquals(this.encryptionMethod, other.encryptionMethod) && + Utils.enhancedDeepEquals(this.sslCertificate, other.sslCertificate); } @Override public int hashCode() { - return Objects.hash( - encryptionMethod, - sslCertificate); + return Utils.enhancedHash( + encryptionMethod, sslCertificate); } @Override @@ -97,29 +98,34 @@ public String toString() { "encryptionMethod", encryptionMethod, "sslCertificate", sslCertificate); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String sslCertificate; - + private Builder() { // force use of static builder() method } + /** - * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in certificate installations. + * Privacy Enhanced Mail (PEM) files are concatenated certificate containers frequently used in + * certificate installations. */ public Builder sslCertificate(String sslCertificate) { Utils.checkNotNull(sslCertificate, "sslCertificate"); this.sslCertificate = sslCertificate; return this; } - + public TLSEncryptedVerifyCertificate build() { + return new TLSEncryptedVerifyCertificate( sslCertificate); } + private static final LazySingletonValue> _SINGLETON_VALUE_EncryptionMethod = new LazySingletonValue<>( "encryption_method", diff --git a/src/main/java/com/airbyte/api/models/shared/Taboola.java b/src/main/java/com/airbyte/api/models/shared/Taboola.java index 285181961..dac44a3b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Taboola.java +++ b/src/main/java/com/airbyte/api/models/shared/Taboola.java @@ -14,7 +14,7 @@ public enum Taboola { @JsonValue private final String value; - private Taboola(String value) { + Taboola(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Tag.java b/src/main/java/com/airbyte/api/models/shared/Tag.java index 1aadb5885..791267e2b 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tag.java +++ b/src/main/java/com/airbyte/api/models/shared/Tag.java @@ -9,24 +9,27 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * Tag * - *

    A tag that can be associated with a connection. Useful for grouping and organizing connections in a workspace. + *

    A tag that can be associated with a connection. Useful for grouping and organizing connections in a + * workspace. */ public class Tag { @JsonProperty("color") private String color; + @JsonProperty("name") private String name; + @JsonProperty("tagId") private String tagId; + @JsonProperty("workspaceId") private String workspaceId; @@ -66,9 +69,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Tag withColor(String color) { Utils.checkNotNull(color, "color"); @@ -94,7 +98,6 @@ public Tag withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -105,18 +108,16 @@ public boolean equals(java.lang.Object o) { } Tag other = (Tag) o; return - Objects.deepEquals(this.color, other.color) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.tagId, other.tagId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.color, other.color) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.tagId, other.tagId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - color, - name, - tagId, + return Utils.enhancedHash( + color, name, tagId, workspaceId); } @@ -128,51 +129,56 @@ public String toString() { "tagId", tagId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String color; - + private String name; - + private String tagId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder color(String color) { Utils.checkNotNull(color, "color"); this.color = color; return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + public Builder tagId(String tagId) { Utils.checkNotNull(tagId, "tagId"); this.tagId = tagId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public Tag build() { + return new Tag( - color, - name, - tagId, + color, name, tagId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TagCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/TagCreateRequest.java index b247befc7..6fb938760 100644 --- a/src/main/java/com/airbyte/api/models/shared/TagCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/TagCreateRequest.java @@ -9,16 +9,18 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class TagCreateRequest { @JsonProperty("color") private String color; + @JsonProperty("name") private String name; + @JsonProperty("workspaceId") private String workspaceId; @@ -50,9 +52,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public TagCreateRequest withColor(String color) { Utils.checkNotNull(color, "color"); @@ -72,7 +75,6 @@ public TagCreateRequest withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -83,17 +85,15 @@ public boolean equals(java.lang.Object o) { } TagCreateRequest other = (TagCreateRequest) o; return - Objects.deepEquals(this.color, other.color) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.color, other.color) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - color, - name, - workspaceId); + return Utils.enhancedHash( + color, name, workspaceId); } @Override @@ -103,42 +103,46 @@ public String toString() { "name", name, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String color; - + private String name; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder color(String color) { Utils.checkNotNull(color, "color"); this.color = color; return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public TagCreateRequest build() { + return new TagCreateRequest( - color, - name, - workspaceId); + color, name, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TagPatchRequest.java b/src/main/java/com/airbyte/api/models/shared/TagPatchRequest.java index edb16d1d2..537693cae 100644 --- a/src/main/java/com/airbyte/api/models/shared/TagPatchRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/TagPatchRequest.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class TagPatchRequest { @JsonProperty("color") private String color; + @JsonProperty("name") private String name; @@ -39,9 +40,10 @@ public String name() { return name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public TagPatchRequest withColor(String color) { Utils.checkNotNull(color, "color"); @@ -55,7 +57,6 @@ public TagPatchRequest withName(String name) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } TagPatchRequest other = (TagPatchRequest) o; return - Objects.deepEquals(this.color, other.color) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.color, other.color) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - color, - name); + return Utils.enhancedHash( + color, name); } @Override @@ -83,33 +83,37 @@ public String toString() { "color", color, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String color; - + private String name; - + private Builder() { // force use of static builder() method } + public Builder color(String color) { Utils.checkNotNull(color, "color"); this.color = color; return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - + public TagPatchRequest build() { + return new TagPatchRequest( - color, - name); + color, name); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TagResponse.java b/src/main/java/com/airbyte/api/models/shared/TagResponse.java index b7f44ace0..6b0d01789 100644 --- a/src/main/java/com/airbyte/api/models/shared/TagResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/TagResponse.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * TagResponse @@ -17,19 +16,21 @@ *

    Provides details of a single tag. */ public class TagResponse { - /** * A hexadecimal color value */ @JsonProperty("color") private String color; + @JsonProperty("name") private String name; + @JsonProperty("tagId") private String tagId; + @JsonProperty("workspaceId") private String workspaceId; @@ -72,9 +73,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * A hexadecimal color value @@ -103,7 +105,6 @@ public TagResponse withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -114,18 +115,16 @@ public boolean equals(java.lang.Object o) { } TagResponse other = (TagResponse) o; return - Objects.deepEquals(this.color, other.color) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.tagId, other.tagId) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.color, other.color) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.tagId, other.tagId) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - color, - name, - tagId, + return Utils.enhancedHash( + color, name, tagId, workspaceId); } @@ -137,21 +136,23 @@ public String toString() { "tagId", tagId, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String color; - + private String name; - + private String tagId; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + /** * A hexadecimal color value */ @@ -161,30 +162,33 @@ public Builder color(String color) { return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + public Builder tagId(String tagId) { Utils.checkNotNull(tagId, "tagId"); this.tagId = tagId; return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public TagResponse build() { + return new TagResponse( - color, - name, - tagId, + color, name, tagId, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TagsResponse.java b/src/main/java/com/airbyte/api/models/shared/TagsResponse.java index 62b601b93..0e09cbea0 100644 --- a/src/main/java/com/airbyte/api/models/shared/TagsResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/TagsResponse.java @@ -10,7 +10,7 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; + public class TagsResponse { @@ -29,9 +29,10 @@ public List data() { return data; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public TagsResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -39,7 +40,6 @@ public TagsResponse withData(List data) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -50,12 +50,12 @@ public boolean equals(java.lang.Object o) { } TagsResponse other = (TagsResponse) o; return - Objects.deepEquals(this.data, other.data); + Utils.enhancedDeepEquals(this.data, other.data); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( data); } @@ -64,24 +64,28 @@ public String toString() { return Utils.toString(TagsResponse.class, "data", data); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } - + public TagsResponse build() { + return new TagsResponse( data); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TargetsType.java b/src/main/java/com/airbyte/api/models/shared/TargetsType.java index 44afc48bd..f332e3392 100644 --- a/src/main/java/com/airbyte/api/models/shared/TargetsType.java +++ b/src/main/java/com/airbyte/api/models/shared/TargetsType.java @@ -17,7 +17,7 @@ public enum TargetsType { @JsonValue private final String value; - private TargetsType(String value) { + TargetsType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Tavus.java b/src/main/java/com/airbyte/api/models/shared/Tavus.java index 813fd9215..34a52a359 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tavus.java +++ b/src/main/java/com/airbyte/api/models/shared/Tavus.java @@ -14,7 +14,7 @@ public enum Tavus { @JsonValue private final String value; - private Tavus(String value) { + Tavus(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Td2.java b/src/main/java/com/airbyte/api/models/shared/Td2.java index 2c3768b0c..d03982fef 100644 --- a/src/main/java/com/airbyte/api/models/shared/Td2.java +++ b/src/main/java/com/airbyte/api/models/shared/Td2.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Td2 { @JsonInclude(Include.NON_ABSENT) @@ -68,9 +68,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Enter the password associated with the username. @@ -90,7 +91,6 @@ public Td2 withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -101,17 +101,15 @@ public boolean equals(java.lang.Object o) { } Td2 other = (Td2) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - authType, - password, - username); + return Utils.enhancedHash( + authType, password, username); } @Override @@ -121,17 +119,19 @@ public String toString() { "password", password, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Enter the password associated with the username. */ @@ -141,6 +141,7 @@ public Builder password(String password) { return this; } + /** * Username to use to access the database. */ @@ -149,13 +150,14 @@ public Builder username(String username) { this.username = username; return this; } - + public Td2 build() { + return new Td2( - password, - username); + password, username); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Teamtailor.java b/src/main/java/com/airbyte/api/models/shared/Teamtailor.java index 8316096ec..27be4b42c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Teamtailor.java +++ b/src/main/java/com/airbyte/api/models/shared/Teamtailor.java @@ -14,7 +14,7 @@ public enum Teamtailor { @JsonValue private final String value; - private Teamtailor(String value) { + Teamtailor(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Teamwork.java b/src/main/java/com/airbyte/api/models/shared/Teamwork.java index 306ee9a2e..f42165c03 100644 --- a/src/main/java/com/airbyte/api/models/shared/Teamwork.java +++ b/src/main/java/com/airbyte/api/models/shared/Teamwork.java @@ -14,7 +14,7 @@ public enum Teamwork { @JsonValue private final String value; - private Teamwork(String value) { + Teamwork(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TechnicalIndicatorType.java b/src/main/java/com/airbyte/api/models/shared/TechnicalIndicatorType.java index 617c27544..3b89cb08e 100644 --- a/src/main/java/com/airbyte/api/models/shared/TechnicalIndicatorType.java +++ b/src/main/java/com/airbyte/api/models/shared/TechnicalIndicatorType.java @@ -26,7 +26,7 @@ public enum TechnicalIndicatorType { @JsonValue private final String value; - private TechnicalIndicatorType(String value) { + TechnicalIndicatorType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Tempo.java b/src/main/java/com/airbyte/api/models/shared/Tempo.java index 7e647237b..3b1eb15b7 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tempo.java +++ b/src/main/java/com/airbyte/api/models/shared/Tempo.java @@ -14,7 +14,7 @@ public enum Tempo { @JsonValue private final String value; - private Tempo(String value) { + Tempo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Teradata.java b/src/main/java/com/airbyte/api/models/shared/Teradata.java index b2e3a025b..e2bc5680c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Teradata.java +++ b/src/main/java/com/airbyte/api/models/shared/Teradata.java @@ -14,7 +14,7 @@ public enum Teradata { @JsonValue private final String value; - private Teradata(String value) { + Teradata(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TestDestination.java b/src/main/java/com/airbyte/api/models/shared/TestDestination.java index 71d3abd76..5f0eefeb7 100644 --- a/src/main/java/com/airbyte/api/models/shared/TestDestination.java +++ b/src/main/java/com/airbyte/api/models/shared/TestDestination.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * TestDestination @@ -84,12 +83,12 @@ public boolean equals(java.lang.Object o) { return false; } TestDestination other = (TestDestination) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java b/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java index 4028f595c..7111ccebe 100644 --- a/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java +++ b/src/main/java/com/airbyte/api/models/shared/TestDestinationType.java @@ -14,7 +14,7 @@ public enum TestDestinationType { @JsonValue private final String value; - private TestDestinationType(String value) { + TestDestinationType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Testrail.java b/src/main/java/com/airbyte/api/models/shared/Testrail.java index 24a46d8bd..28c473de5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Testrail.java +++ b/src/main/java/com/airbyte/api/models/shared/Testrail.java @@ -14,7 +14,7 @@ public enum Testrail { @JsonValue private final String value; - private Testrail(String value) { + Testrail(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TextSplitter.java b/src/main/java/com/airbyte/api/models/shared/TextSplitter.java index f8ba46282..5c457fe74 100644 --- a/src/main/java/com/airbyte/api/models/shared/TextSplitter.java +++ b/src/main/java/com/airbyte/api/models/shared/TextSplitter.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * TextSplitter @@ -78,12 +77,12 @@ public boolean equals(java.lang.Object o) { return false; } TextSplitter other = (TextSplitter) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java b/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java index dd9798eaa..845142e47 100644 --- a/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java +++ b/src/main/java/com/airbyte/api/models/shared/TheGuardianApi.java @@ -14,7 +14,7 @@ public enum TheGuardianApi { @JsonValue private final String value; - private TheGuardianApi(String value) { + TheGuardianApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TheTargetedActionResourceForTheFetch.java b/src/main/java/com/airbyte/api/models/shared/TheTargetedActionResourceForTheFetch.java index 8604b40fc..ae8cf308f 100644 --- a/src/main/java/com/airbyte/api/models/shared/TheTargetedActionResourceForTheFetch.java +++ b/src/main/java/com/airbyte/api/models/shared/TheTargetedActionResourceForTheFetch.java @@ -11,7 +11,8 @@ /** * TheTargetedActionResourceForTheFetch * - *

    Note - Different targets have different attribute enum requirements, please refer actions sections in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html + *

    Note - Different targets have different attribute enum requirements, please refer actions sections + * in https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/Welcome.html */ public enum TheTargetedActionResourceForTheFetch { GET_QUEUE_ATTRIBUTES("GetQueueAttributes"), @@ -20,7 +21,7 @@ public enum TheTargetedActionResourceForTheFetch { @JsonValue private final String value; - private TheTargetedActionResourceForTheFetch(String value) { + TheTargetedActionResourceForTheFetch(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Thinkific.java b/src/main/java/com/airbyte/api/models/shared/Thinkific.java index 611323ec0..97ffa9a61 100644 --- a/src/main/java/com/airbyte/api/models/shared/Thinkific.java +++ b/src/main/java/com/airbyte/api/models/shared/Thinkific.java @@ -14,7 +14,7 @@ public enum Thinkific { @JsonValue private final String value; - private Thinkific(String value) { + Thinkific(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ThinkificCourses.java b/src/main/java/com/airbyte/api/models/shared/ThinkificCourses.java index 20e0fcda8..62675a478 100644 --- a/src/main/java/com/airbyte/api/models/shared/ThinkificCourses.java +++ b/src/main/java/com/airbyte/api/models/shared/ThinkificCourses.java @@ -14,7 +14,7 @@ public enum ThinkificCourses { @JsonValue private final String value; - private ThinkificCourses(String value) { + ThinkificCourses(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ThriveLearning.java b/src/main/java/com/airbyte/api/models/shared/ThriveLearning.java new file mode 100644 index 000000000..1db5c4043 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/ThriveLearning.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum ThriveLearning { + THRIVE_LEARNING("thrive-learning"); + + @JsonValue + private final String value; + + ThriveLearning(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (ThriveLearning o: ThriveLearning.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Throttled.java b/src/main/java/com/airbyte/api/models/shared/Throttled.java index 2b177e07c..89d7288ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/Throttled.java +++ b/src/main/java/com/airbyte/api/models/shared/Throttled.java @@ -20,9 +20,9 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; + public class Throttled { @JsonIgnore @@ -34,6 +34,7 @@ public class Throttled { @JsonProperty("millis_per_record") private long millisPerRecord; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("test_destination_type") private Optional testDestinationType; @@ -73,9 +74,10 @@ public Optional testDestinationTyp return (Optional) testDestinationType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public Throttled withAdditionalProperty(String key, Object value) { @@ -83,8 +85,7 @@ public Throttled withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public Throttled withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -106,13 +107,13 @@ public Throttled withTestDestinationType(DestinationDevNullSchemasTestDestinatio return this; } + public Throttled withTestDestinationType(Optional testDestinationType) { Utils.checkNotNull(testDestinationType, "testDestinationType"); this.testDestinationType = testDestinationType; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -123,17 +124,15 @@ public boolean equals(java.lang.Object o) { } Throttled other = (Throttled) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.millisPerRecord, other.millisPerRecord) && - Objects.deepEquals(this.testDestinationType, other.testDestinationType); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.millisPerRecord, other.millisPerRecord) && + Utils.enhancedDeepEquals(this.testDestinationType, other.testDestinationType); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - millisPerRecord, - testDestinationType); + return Utils.enhancedHash( + additionalProperties, millisPerRecord, testDestinationType); } @Override @@ -143,15 +142,16 @@ public String toString() { "millisPerRecord", millisPerRecord, "testDestinationType", testDestinationType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Long millisPerRecord; - + private Optional testDestinationType; - + private Builder() { // force use of static builder() method } @@ -172,6 +172,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * The number of milliseconds to wait between each record. */ @@ -181,6 +182,7 @@ public Builder millisPerRecord(long millisPerRecord) { return this; } + public Builder testDestinationType(DestinationDevNullSchemasTestDestinationType testDestinationType) { Utils.checkNotNull(testDestinationType, "testDestinationType"); this.testDestinationType = Optional.ofNullable(testDestinationType); @@ -192,17 +194,18 @@ public Builder testDestinationType(Optional> _SINGLETON_VALUE_TestDestinationType = new LazySingletonValue<>( "test_destination_type", diff --git a/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java b/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java index cf9499dd8..6a332c8b9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java +++ b/src/main/java/com/airbyte/api/models/shared/Ticketmaster.java @@ -14,7 +14,7 @@ public enum Ticketmaster { @JsonValue private final String value; - private Ticketmaster(String value) { + Ticketmaster(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Tickettailor.java b/src/main/java/com/airbyte/api/models/shared/Tickettailor.java index 2dee362d6..562addace 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tickettailor.java +++ b/src/main/java/com/airbyte/api/models/shared/Tickettailor.java @@ -14,7 +14,7 @@ public enum Tickettailor { @JsonValue private final String value; - private Tickettailor(String value) { + Tickettailor(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TiktokMarketing.java b/src/main/java/com/airbyte/api/models/shared/TiktokMarketing.java index 55216cfb9..1d0e8c58c 100644 --- a/src/main/java/com/airbyte/api/models/shared/TiktokMarketing.java +++ b/src/main/java/com/airbyte/api/models/shared/TiktokMarketing.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class TiktokMarketing { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public TiktokMarketing withCredentials(TiktokMarketingCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public TiktokMarketing withCredentials(TiktokMarketingCredentials credentials) { return this; } + public TiktokMarketing withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } TiktokMarketing other = (TiktokMarketing) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(TiktokMarketing.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(TiktokMarketingCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional creden this.credentials = credentials; return this; } - + public TiktokMarketing build() { + return new TiktokMarketing( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TiktokMarketingCredentials.java b/src/main/java/com/airbyte/api/models/shared/TiktokMarketingCredentials.java index e0a1be6f5..8214c610c 100644 --- a/src/main/java/com/airbyte/api/models/shared/TiktokMarketingCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/TiktokMarketingCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class TiktokMarketingCredentials { +public class TiktokMarketingCredentials { /** * The Developer Application App ID. */ @@ -60,9 +59,10 @@ public Optional secret() { return secret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Developer Application App ID. @@ -73,6 +73,7 @@ public TiktokMarketingCredentials withAppId(String appId) { return this; } + /** * The Developer Application App ID. */ @@ -91,6 +92,7 @@ public TiktokMarketingCredentials withSecret(String secret) { return this; } + /** * The Developer Application Secret. */ @@ -100,7 +102,6 @@ public TiktokMarketingCredentials withSecret(Optional secret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } TiktokMarketingCredentials other = (TiktokMarketingCredentials) o; return - Objects.deepEquals(this.appId, other.appId) && - Objects.deepEquals(this.secret, other.secret); + Utils.enhancedDeepEquals(this.appId, other.appId) && + Utils.enhancedDeepEquals(this.secret, other.secret); } @Override public int hashCode() { - return Objects.hash( - appId, - secret); + return Utils.enhancedHash( + appId, secret); } @Override @@ -128,17 +128,19 @@ public String toString() { "appId", appId, "secret", secret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional appId = Optional.empty(); - + private Optional secret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Developer Application App ID. */ @@ -157,6 +159,7 @@ public Builder appId(Optional appId) { return this; } + /** * The Developer Application Secret. */ @@ -174,11 +177,12 @@ public Builder secret(Optional secret) { this.secret = secret; return this; } - + public TiktokMarketingCredentials build() { + return new TiktokMarketingCredentials( - appId, - secret); + appId, secret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java b/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java index 5128278e8..c59a22fd1 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeAggregates.java @@ -25,7 +25,7 @@ public enum TimeAggregates { @JsonValue private final String value; - private TimeAggregates(String value) { + TimeAggregates(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TimeFrame.java b/src/main/java/com/airbyte/api/models/shared/TimeFrame.java index 03164e132..c2877d18c 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeFrame.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeFrame.java @@ -24,7 +24,7 @@ public enum TimeFrame { @JsonValue private final String value; - private TimeFrame(String value) { + TimeFrame(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TimeGranularity.java b/src/main/java/com/airbyte/api/models/shared/TimeGranularity.java index eee1e5f8b..c72b0ba65 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeGranularity.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeGranularity.java @@ -11,7 +11,10 @@ /** * TimeGranularity * - *

    Choose how to group the data in your report by time. The options are:<br>- 'ALL': A single result summarizing the entire time range.<br>- 'DAILY': Group results by each day.<br>- 'MONTHLY': Group results by each month.<br>- 'YEARLY': Group results by each year.<br>Selecting a time grouping helps you analyze trends and patterns over different time periods. + *

    Choose how to group the data in your report by time. The options are:
    - 'ALL': A single result + * summarizing the entire time range.
    - 'DAILY': Group results by each day.
    - 'MONTHLY': Group + * results by each month.
    - 'YEARLY': Group results by each year.
    Selecting a time grouping helps + * you analyze trends and patterns over different time periods. */ public enum TimeGranularity { ALL("ALL"), @@ -22,7 +25,7 @@ public enum TimeGranularity { @JsonValue private final String value; - private TimeGranularity(String value) { + TimeGranularity(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java b/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java index e3ed749c3..7c4cab50f 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeGranularityType.java @@ -20,7 +20,7 @@ public enum TimeGranularityType { @JsonValue private final String value; - private TimeGranularityType(String value) { + TimeGranularityType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TimeInterval.java b/src/main/java/com/airbyte/api/models/shared/TimeInterval.java index 20f43e4e1..823e7f921 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeInterval.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeInterval.java @@ -20,7 +20,7 @@ public enum TimeInterval { @JsonValue private final String value; - private TimeInterval(String value) { + TimeInterval(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TimePeriod.java b/src/main/java/com/airbyte/api/models/shared/TimePeriod.java index edabc7cba..14ba594e1 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimePeriod.java +++ b/src/main/java/com/airbyte/api/models/shared/TimePeriod.java @@ -20,7 +20,7 @@ public enum TimePeriod { @JsonValue private final String value; - private TimePeriod(String value) { + TimePeriod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TimeZone.java b/src/main/java/com/airbyte/api/models/shared/TimeZone.java index 36f4a9b58..7ec4b299b 100644 --- a/src/main/java/com/airbyte/api/models/shared/TimeZone.java +++ b/src/main/java/com/airbyte/api/models/shared/TimeZone.java @@ -11,7 +11,8 @@ /** * TimeZone * - *

    The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated Universal Time. Default is UTC. + *

    The timezone for the reporting data. Use 'ORTZ' for Organization Time Zone or 'UTC' for Coordinated + * Universal Time. Default is UTC. */ public enum TimeZone { ORTZ("ORTZ"), @@ -20,7 +21,7 @@ public enum TimeZone { @JsonValue private final String value; - private TimeZone(String value) { + TimeZone(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Timely.java b/src/main/java/com/airbyte/api/models/shared/Timely.java index 7e6bba7de..9808ad5b8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Timely.java +++ b/src/main/java/com/airbyte/api/models/shared/Timely.java @@ -14,7 +14,7 @@ public enum Timely { @JsonValue private final String value; - private Timely(String value) { + Timely(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Timeplus.java b/src/main/java/com/airbyte/api/models/shared/Timeplus.java index fee179e99..9d2972524 100644 --- a/src/main/java/com/airbyte/api/models/shared/Timeplus.java +++ b/src/main/java/com/airbyte/api/models/shared/Timeplus.java @@ -14,7 +14,7 @@ public enum Timeplus { @JsonValue private final String value; - private Timeplus(String value) { + Timeplus(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Tinyemail.java b/src/main/java/com/airbyte/api/models/shared/Tinyemail.java index dd4943b9d..5655b7271 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tinyemail.java +++ b/src/main/java/com/airbyte/api/models/shared/Tinyemail.java @@ -14,7 +14,7 @@ public enum Tinyemail { @JsonValue private final String value; - private Tinyemail(String value) { + Tinyemail(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Tmdb.java b/src/main/java/com/airbyte/api/models/shared/Tmdb.java index a2188be1b..3663d4b4f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tmdb.java +++ b/src/main/java/com/airbyte/api/models/shared/Tmdb.java @@ -14,7 +14,7 @@ public enum Tmdb { @JsonValue private final String value; - private Tmdb(String value) { + Tmdb(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ToValue.java b/src/main/java/com/airbyte/api/models/shared/ToValue.java index bed9eb48f..f77a05c7c 100644 --- a/src/main/java/com/airbyte/api/models/shared/ToValue.java +++ b/src/main/java/com/airbyte/api/models/shared/ToValue.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = ToValue._Deserializer.class) public class ToValue { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } ToValue other = (ToValue) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Todoist.java b/src/main/java/com/airbyte/api/models/shared/Todoist.java index 927886fa0..9b3830c18 100644 --- a/src/main/java/com/airbyte/api/models/shared/Todoist.java +++ b/src/main/java/com/airbyte/api/models/shared/Todoist.java @@ -14,7 +14,7 @@ public enum Todoist { @JsonValue private final String value; - private Todoist(String value) { + Todoist(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Toggl.java b/src/main/java/com/airbyte/api/models/shared/Toggl.java index 114d5ffe5..0c34fbbfc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Toggl.java +++ b/src/main/java/com/airbyte/api/models/shared/Toggl.java @@ -14,7 +14,7 @@ public enum Toggl { @JsonValue private final String value; - private Toggl(String value) { + Toggl(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TokenBasedAuthentication.java b/src/main/java/com/airbyte/api/models/shared/TokenBasedAuthentication.java index 06d88a558..785bf9ef9 100644 --- a/src/main/java/com/airbyte/api/models/shared/TokenBasedAuthentication.java +++ b/src/main/java/com/airbyte/api/models/shared/TokenBasedAuthentication.java @@ -19,43 +19,48 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** * TokenBasedAuthentication * - *

    Authenticate using a token-based authentication method. This requires a consumer key and secret, as well as a token ID and secret. + *

    Authenticate using a token-based authentication method. This requires a consumer key and secret, as + * well as a token ID and secret. */ public class TokenBasedAuthentication { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("authentication_method") private Optional authenticationMethod; /** - * The consumer key used for token-based authentication. This is generated in NetSuite when creating an integration record. + * The consumer key used for token-based authentication. This is generated in NetSuite when creating an + * integration record. */ @JsonProperty("client_id") private String clientId; /** - * The consumer secret used for token-based authentication. This is generated in NetSuite when creating an integration record. + * The consumer secret used for token-based authentication. This is generated in NetSuite when creating + * an integration record. */ @JsonProperty("client_secret") private String clientSecret; /** - * The token ID used for token-based authentication. This is generated in NetSuite when creating a token-based role. + * The token ID used for token-based authentication. This is generated in NetSuite when creating a + * token-based role. */ @JsonProperty("token_id") private String tokenId; /** - * The token secret used for token-based authentication. This is generated in NetSuite when creating a token-based role.Ensure to keep this value secure. + * The token secret used for token-based authentication. This is generated in NetSuite when creating a + * token-based role.Ensure to keep this value secure. */ @JsonProperty("token_secret") private String tokenSecret; @@ -85,7 +90,8 @@ public TokenBasedAuthentication( String clientSecret, String tokenId, String tokenSecret) { - this(Optional.empty(), clientId, clientSecret, tokenId, tokenSecret); + this(Optional.empty(), clientId, clientSecret, + tokenId, tokenSecret); } @JsonAnyGetter @@ -100,7 +106,8 @@ public Optional authenticat } /** - * The consumer key used for token-based authentication. This is generated in NetSuite when creating an integration record. + * The consumer key used for token-based authentication. This is generated in NetSuite when creating an + * integration record. */ @JsonIgnore public String clientId() { @@ -108,7 +115,8 @@ public String clientId() { } /** - * The consumer secret used for token-based authentication. This is generated in NetSuite when creating an integration record. + * The consumer secret used for token-based authentication. This is generated in NetSuite when creating + * an integration record. */ @JsonIgnore public String clientSecret() { @@ -116,7 +124,8 @@ public String clientSecret() { } /** - * The token ID used for token-based authentication. This is generated in NetSuite when creating a token-based role. + * The token ID used for token-based authentication. This is generated in NetSuite when creating a + * token-based role. */ @JsonIgnore public String tokenId() { @@ -124,16 +133,18 @@ public String tokenId() { } /** - * The token secret used for token-based authentication. This is generated in NetSuite when creating a token-based role.Ensure to keep this value secure. + * The token secret used for token-based authentication. This is generated in NetSuite when creating a + * token-based role.Ensure to keep this value secure. */ @JsonIgnore public String tokenSecret() { return tokenSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public TokenBasedAuthentication withAdditionalProperty(String key, Object value) { @@ -141,8 +152,7 @@ public TokenBasedAuthentication withAdditionalProperty(String key, Object value) Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public TokenBasedAuthentication withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -155,6 +165,7 @@ public TokenBasedAuthentication withAuthenticationMethod(SourceNetsuiteEnterpris return this; } + public TokenBasedAuthentication withAuthenticationMethod(Optional authenticationMethod) { Utils.checkNotNull(authenticationMethod, "authenticationMethod"); this.authenticationMethod = authenticationMethod; @@ -162,7 +173,8 @@ public TokenBasedAuthentication withAuthenticationMethod(Optional additionalProperties = new HashMap<>(); - + private Optional authenticationMethod; - + private String clientId; - + private String clientSecret; - + private String tokenId; - + private String tokenSecret; - + private Builder() { // force use of static builder() method } @@ -272,6 +283,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder authenticationMethod(SourceNetsuiteEnterpriseSchemasAuthenticationMethod authenticationMethod) { Utils.checkNotNull(authenticationMethod, "authenticationMethod"); this.authenticationMethod = Optional.ofNullable(authenticationMethod); @@ -284,8 +296,10 @@ public Builder authenticationMethod(Optional> _SINGLETON_VALUE_AuthenticationMethod = new LazySingletonValue<>( "authentication_method", diff --git a/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java b/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java index c065b66e5..ac0efb39f 100644 --- a/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java +++ b/src/main/java/com/airbyte/api/models/shared/TopHeadlinesTopic.java @@ -27,7 +27,7 @@ public enum TopHeadlinesTopic { @JsonValue private final String value; - private TopHeadlinesTopic(String value) { + TopHeadlinesTopic(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TrackPms.java b/src/main/java/com/airbyte/api/models/shared/TrackPms.java index f4f45cf7b..4afd843a1 100644 --- a/src/main/java/com/airbyte/api/models/shared/TrackPms.java +++ b/src/main/java/com/airbyte/api/models/shared/TrackPms.java @@ -14,7 +14,7 @@ public enum TrackPms { @JsonValue private final String value; - private TrackPms(String value) { + TrackPms(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java b/src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java deleted file mode 100644 index ea507ab6f..000000000 --- a/src/main/java/com/airbyte/api/models/shared/TransformationQueryRunType.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.airbyte.api.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -/** - * TransformationQueryRunType - * - *

    Interactive run type means that the query is executed as soon as possible, and these queries count towards concurrent rate limit and daily limit. Read more about interactive run type <a href="https://cloud.google.com/bigquery/docs/running-queries#queries">here</a>. Batch queries are queued and started as soon as idle resources are available in the BigQuery shared resource pool, which usually occurs within a few minutes. Batch queries don’t count towards your concurrent rate limit. Read more about batch queries <a href="https://cloud.google.com/bigquery/docs/running-queries#batch">here</a>. The default "interactive" value is used if not set explicitly. - */ -public enum TransformationQueryRunType { - INTERACTIVE("interactive"), - BATCH("batch"); - - @JsonValue - private final String value; - - private TransformationQueryRunType(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (TransformationQueryRunType o: TransformationQueryRunType.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/airbyte/api/models/shared/Trello.java b/src/main/java/com/airbyte/api/models/shared/Trello.java index dc6c6dc11..66f599c93 100644 --- a/src/main/java/com/airbyte/api/models/shared/Trello.java +++ b/src/main/java/com/airbyte/api/models/shared/Trello.java @@ -14,7 +14,7 @@ public enum Trello { @JsonValue private final String value; - private Trello(String value) { + Trello(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Tremendous.java b/src/main/java/com/airbyte/api/models/shared/Tremendous.java index 12be6e0a1..7cddcb2dc 100644 --- a/src/main/java/com/airbyte/api/models/shared/Tremendous.java +++ b/src/main/java/com/airbyte/api/models/shared/Tremendous.java @@ -14,7 +14,7 @@ public enum Tremendous { @JsonValue private final String value; - private Tremendous(String value) { + Tremendous(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Trustpilot.java b/src/main/java/com/airbyte/api/models/shared/Trustpilot.java index 3c3fa595c..362711878 100644 --- a/src/main/java/com/airbyte/api/models/shared/Trustpilot.java +++ b/src/main/java/com/airbyte/api/models/shared/Trustpilot.java @@ -14,7 +14,7 @@ public enum Trustpilot { @JsonValue private final String value; - private Trustpilot(String value) { + Trustpilot(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TunnelMethod.java b/src/main/java/com/airbyte/api/models/shared/TunnelMethod.java index 9b669d8c1..9778e4438 100644 --- a/src/main/java/com/airbyte/api/models/shared/TunnelMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/TunnelMethod.java @@ -8,18 +8,13 @@ import java.util.Objects; import java.util.Optional; -/** - * TunnelMethod - * - *

    No ssh tunnel needed to connect to database - */ public enum TunnelMethod { NO_TUNNEL("NO_TUNNEL"); @JsonValue private final String value; - private TunnelMethod(String value) { + TunnelMethod(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TvmazeSchedule.java b/src/main/java/com/airbyte/api/models/shared/TvmazeSchedule.java index 022cd7d84..f5c8b7fbf 100644 --- a/src/main/java/com/airbyte/api/models/shared/TvmazeSchedule.java +++ b/src/main/java/com/airbyte/api/models/shared/TvmazeSchedule.java @@ -14,7 +14,7 @@ public enum TvmazeSchedule { @JsonValue private final String value; - private TvmazeSchedule(String value) { + TvmazeSchedule(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TwelveData.java b/src/main/java/com/airbyte/api/models/shared/TwelveData.java index cc1b3ae15..74c4ac88a 100644 --- a/src/main/java/com/airbyte/api/models/shared/TwelveData.java +++ b/src/main/java/com/airbyte/api/models/shared/TwelveData.java @@ -14,7 +14,7 @@ public enum TwelveData { @JsonValue private final String value; - private TwelveData(String value) { + TwelveData(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Twilio.java b/src/main/java/com/airbyte/api/models/shared/Twilio.java index 4582f6168..fec7b6d30 100644 --- a/src/main/java/com/airbyte/api/models/shared/Twilio.java +++ b/src/main/java/com/airbyte/api/models/shared/Twilio.java @@ -14,7 +14,7 @@ public enum Twilio { @JsonValue private final String value; - private Twilio(String value) { + Twilio(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java b/src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java index 8901f42ec..87bf0ada3 100644 --- a/src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java +++ b/src/main/java/com/airbyte/api/models/shared/TwilioTaskrouter.java @@ -14,7 +14,7 @@ public enum TwilioTaskrouter { @JsonValue private final String value; - private TwilioTaskrouter(String value) { + TwilioTaskrouter(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Twitter.java b/src/main/java/com/airbyte/api/models/shared/Twitter.java index 8f19136b7..44f486a2f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Twitter.java +++ b/src/main/java/com/airbyte/api/models/shared/Twitter.java @@ -14,7 +14,7 @@ public enum Twitter { @JsonValue private final String value; - private Twitter(String value) { + Twitter(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/TyntecSms.java b/src/main/java/com/airbyte/api/models/shared/TyntecSms.java index 01bd59d8f..e362c2771 100644 --- a/src/main/java/com/airbyte/api/models/shared/TyntecSms.java +++ b/src/main/java/com/airbyte/api/models/shared/TyntecSms.java @@ -14,7 +14,7 @@ public enum TyntecSms { @JsonValue private final String value; - private TyntecSms(String value) { + TyntecSms(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Type.java b/src/main/java/com/airbyte/api/models/shared/Type.java new file mode 100644 index 000000000..e799d5ca5 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Type.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Type { + O_AUTH("OAuth"); + + @JsonValue + private final String value; + + Type(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Type o: Type.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/Typeform.java b/src/main/java/com/airbyte/api/models/shared/Typeform.java index f4bf4d72a..4f04b3d21 100644 --- a/src/main/java/com/airbyte/api/models/shared/Typeform.java +++ b/src/main/java/com/airbyte/api/models/shared/Typeform.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Typeform { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Typeform withCredentials(TypeformCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public Typeform withCredentials(TypeformCredentials credentials) { return this; } + public Typeform withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } Typeform other = (Typeform) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(Typeform.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(TypeformCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credentials) this.credentials = credentials; return this; } - + public Typeform build() { + return new Typeform( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/TypeformCredentials.java b/src/main/java/com/airbyte/api/models/shared/TypeformCredentials.java index 7b1a2b0ce..e56844d17 100644 --- a/src/main/java/com/airbyte/api/models/shared/TypeformCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/TypeformCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class TypeformCredentials { +public class TypeformCredentials { /** * The Client ID of the Typeform developer application. */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of the Typeform developer application. @@ -73,6 +73,7 @@ public TypeformCredentials withClientId(String clientId) { return this; } + /** * The Client ID of the Typeform developer application. */ @@ -91,6 +92,7 @@ public TypeformCredentials withClientSecret(String clientSecret) { return this; } + /** * The Client Secret the Typeform developer application. */ @@ -100,7 +102,6 @@ public TypeformCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } TypeformCredentials other = (TypeformCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of the Typeform developer application. */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The Client Secret the Typeform developer application. */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public TypeformCredentials build() { + return new TypeformCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Typesense.java b/src/main/java/com/airbyte/api/models/shared/Typesense.java index 4e4381353..addd3093f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Typesense.java +++ b/src/main/java/com/airbyte/api/models/shared/Typesense.java @@ -14,7 +14,7 @@ public enum Typesense { @JsonValue private final String value; - private Typesense(String value) { + Typesense(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/URLRegion.java b/src/main/java/com/airbyte/api/models/shared/URLRegion.java index 363bb5a97..6af029b10 100644 --- a/src/main/java/com/airbyte/api/models/shared/URLRegion.java +++ b/src/main/java/com/airbyte/api/models/shared/URLRegion.java @@ -21,7 +21,7 @@ public enum URLRegion { @JsonValue private final String value; - private URLRegion(String value) { + URLRegion(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Ubidots.java b/src/main/java/com/airbyte/api/models/shared/Ubidots.java index e33ebd065..6ce8bdae6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Ubidots.java +++ b/src/main/java/com/airbyte/api/models/shared/Ubidots.java @@ -14,7 +14,7 @@ public enum Ubidots { @JsonValue private final String value; - private Ubidots(String value) { + Ubidots(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Unencrypted.java b/src/main/java/com/airbyte/api/models/shared/Unencrypted.java index d9d621413..e41395b6e 100644 --- a/src/main/java/com/airbyte/api/models/shared/Unencrypted.java +++ b/src/main/java/com/airbyte/api/models/shared/Unencrypted.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -32,6 +31,7 @@ public class Unencrypted { @JsonIgnore private Map additionalProperties; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("name") private Optional name; @@ -59,9 +59,10 @@ public Optional name() { return (Optional) name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public Unencrypted withAdditionalProperty(String key, Object value) { @@ -69,8 +70,7 @@ public Unencrypted withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public Unencrypted withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -83,13 +83,13 @@ public Unencrypted withName(Name name) { return this; } + public Unencrypted withName(Optional name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,15 +100,14 @@ public boolean equals(java.lang.Object o) { } Unencrypted other = (Unencrypted) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - name); + return Utils.enhancedHash( + additionalProperties, name); } @Override @@ -117,13 +116,14 @@ public String toString() { "additionalProperties", additionalProperties, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private Optional name; - + private Builder() { // force use of static builder() method } @@ -144,6 +144,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + public Builder name(Name name) { Utils.checkNotNull(name, "name"); this.name = Optional.ofNullable(name); @@ -155,16 +156,18 @@ public Builder name(Optional name) { this.name = name; return this; } - + public Unencrypted build() { if (name == null) { name = _SINGLETON_VALUE_Name.value(); } + return new Unencrypted( name) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Name = new LazySingletonValue<>( "name", diff --git a/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java b/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java index a05764505..250e04a1a 100644 --- a/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java +++ b/src/main/java/com/airbyte/api/models/shared/UnitOfMeasure.java @@ -15,7 +15,7 @@ public enum UnitOfMeasure { @JsonValue private final String value; - private UnitOfMeasure(String value) { + UnitOfMeasure(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Units.java b/src/main/java/com/airbyte/api/models/shared/Units.java index 8f8c6d4ea..addd65207 100644 --- a/src/main/java/com/airbyte/api/models/shared/Units.java +++ b/src/main/java/com/airbyte/api/models/shared/Units.java @@ -11,7 +11,8 @@ /** * Units * - *

    Units of measurement. standard, metric and imperial units are available. If you do not use the units parameter, standard units will be applied by default. + *

    Units of measurement. standard, metric and imperial units are available. If you do not use the units + * parameter, standard units will be applied by default. */ public enum Units { STANDARD("standard"), @@ -21,7 +22,7 @@ public enum Units { @JsonValue private final String value; - private Units(String value) { + Units(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Unleash.java b/src/main/java/com/airbyte/api/models/shared/Unleash.java index b8e6a7a6b..ae675b612 100644 --- a/src/main/java/com/airbyte/api/models/shared/Unleash.java +++ b/src/main/java/com/airbyte/api/models/shared/Unleash.java @@ -14,7 +14,7 @@ public enum Unleash { @JsonValue private final String value; - private Unleash(String value) { + Unleash(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java b/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java index 587ec89a2..aecdced94 100644 --- a/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java +++ b/src/main/java/com/airbyte/api/models/shared/UnstructuredDocumentFormat.java @@ -15,7 +15,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -37,14 +36,20 @@ public class UnstructuredDocumentFormat { private Optional processing; /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("skip_unprocessable_files") private Optional skipUnprocessableFiles; /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("strategy") @@ -84,7 +89,8 @@ public Optional processing() { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ @JsonIgnore public Optional skipUnprocessableFiles() { @@ -92,7 +98,12 @@ public Optional skipUnprocessableFiles() { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ @SuppressWarnings("unchecked") @JsonIgnore @@ -100,9 +111,10 @@ public Optional strategy() { return (Optional) strategy; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Processing configuration @@ -113,6 +125,7 @@ public UnstructuredDocumentFormat withProcessing(Processing processing) { return this; } + /** * Processing configuration */ @@ -123,7 +136,8 @@ public UnstructuredDocumentFormat withProcessing(Optional } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public UnstructuredDocumentFormat withSkipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -131,8 +145,10 @@ public UnstructuredDocumentFormat withSkipUnprocessableFiles(boolean skipUnproce return this; } + /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public UnstructuredDocumentFormat withSkipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -141,7 +157,12 @@ public UnstructuredDocumentFormat withSkipUnprocessableFiles(Optional s } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public UnstructuredDocumentFormat withStrategy(ParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -149,8 +170,14 @@ public UnstructuredDocumentFormat withStrategy(ParsingStrategy strategy) { return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public UnstructuredDocumentFormat withStrategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -158,7 +185,6 @@ public UnstructuredDocumentFormat withStrategy(Optional processing = Optional.empty(); - + private Optional skipUnprocessableFiles; - + private Optional strategy; - + private Builder() { // force use of static builder() method } + /** * Processing configuration */ @@ -223,8 +249,10 @@ public Builder processing(Optional processing) { return this; } + /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -233,7 +261,8 @@ public Builder skipUnprocessableFiles(boolean skipUnprocessableFiles) { } /** - * If true, skip files that cannot be parsed and pass the error message along as the _ab_source_file_parse_error field. If false, fail the sync. + * If true, skip files that cannot be parsed and pass the error message along as the + * _ab_source_file_parse_error field. If false, fail the sync. */ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) { Utils.checkNotNull(skipUnprocessableFiles, "skipUnprocessableFiles"); @@ -241,8 +270,14 @@ public Builder skipUnprocessableFiles(Optional skipUnprocessableFiles) return this; } + /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(ParsingStrategy strategy) { Utils.checkNotNull(strategy, "strategy"); @@ -251,14 +286,19 @@ public Builder strategy(ParsingStrategy strategy) { } /** - * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't work for all files. `ocr_only` is more reliable, but slower. `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and can't be used with local mode. See the unstructured.io documentation for more details: https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf + * The strategy used to parse documents. `fast` extracts text directly from the document which doesn't + * work for all files. `ocr_only` is more reliable, but slower. + * + *

    `hi_res` is the most reliable, but requires an API key and a hosted instance of unstructured and + * can't be used with local mode. See the unstructured.io documentation for more details: + * https://unstructured-io.github.io/unstructured/core/partition.html#partition-pdf */ public Builder strategy(Optional strategy) { Utils.checkNotNull(strategy, "strategy"); this.strategy = strategy; return this; } - + public UnstructuredDocumentFormat build() { if (skipUnprocessableFiles == null) { skipUnprocessableFiles = _SINGLETON_VALUE_SkipUnprocessableFiles.value(); @@ -266,12 +306,12 @@ public UnstructuredDocumentFormat build() { if (strategy == null) { strategy = _SINGLETON_VALUE_Strategy.value(); } + return new UnstructuredDocumentFormat( - processing, - skipUnprocessableFiles, - strategy); + processing, skipUnprocessableFiles, strategy); } + private static final LazySingletonValue> _SINGLETON_VALUE_Filetype = new LazySingletonValue<>( "filetype", diff --git a/src/main/java/com/airbyte/api/models/shared/UpdateDeclarativeSourceDefinitionRequest.java b/src/main/java/com/airbyte/api/models/shared/UpdateDeclarativeSourceDefinitionRequest.java index 29ebe3d8d..f23deccd5 100644 --- a/src/main/java/com/airbyte/api/models/shared/UpdateDeclarativeSourceDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/UpdateDeclarativeSourceDefinitionRequest.java @@ -6,41 +6,24 @@ import com.airbyte.api.utils.Utils; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude.Include; -import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.Long; import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; -import java.util.Optional; -public class UpdateDeclarativeSourceDefinitionRequest { +public class UpdateDeclarativeSourceDefinitionRequest { /** * Low code CDK manifest JSON object */ @JsonProperty("manifest") private Object manifest; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - @JsonCreator public UpdateDeclarativeSourceDefinitionRequest( - @JsonProperty("manifest") Object manifest, - @JsonProperty("version") Optional version) { + @JsonProperty("manifest") Object manifest) { Utils.checkNotNull(manifest, "manifest"); - Utils.checkNotNull(version, "version"); this.manifest = manifest; - this.version = version; - } - - public UpdateDeclarativeSourceDefinitionRequest( - Object manifest) { - this(manifest, Optional.empty()); } /** @@ -51,14 +34,10 @@ public Object manifest() { return manifest; } - @JsonIgnore - public Optional version() { - return version; + public static Builder builder() { + return new Builder(); } - public final static Builder builder() { - return new Builder(); - } /** * Low code CDK manifest JSON object @@ -69,19 +48,6 @@ public UpdateDeclarativeSourceDefinitionRequest withManifest(Object manifest) { return this; } - public UpdateDeclarativeSourceDefinitionRequest withVersion(long version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public UpdateDeclarativeSourceDefinitionRequest withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -92,34 +58,31 @@ public boolean equals(java.lang.Object o) { } UpdateDeclarativeSourceDefinitionRequest other = (UpdateDeclarativeSourceDefinitionRequest) o; return - Objects.deepEquals(this.manifest, other.manifest) && - Objects.deepEquals(this.version, other.version); + Utils.enhancedDeepEquals(this.manifest, other.manifest); } @Override public int hashCode() { - return Objects.hash( - manifest, - version); + return Utils.enhancedHash( + manifest); } @Override public String toString() { return Utils.toString(UpdateDeclarativeSourceDefinitionRequest.class, - "manifest", manifest, - "version", version); + "manifest", manifest); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Object manifest; - - private Optional version = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Low code CDK manifest JSON object */ @@ -129,22 +92,11 @@ public Builder manifest(Object manifest) { return this; } - public Builder version(long version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - public UpdateDeclarativeSourceDefinitionRequest build() { + return new UpdateDeclarativeSourceDefinitionRequest( - manifest, - version); + manifest); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/UpdateDefinitionRequest.java b/src/main/java/com/airbyte/api/models/shared/UpdateDefinitionRequest.java index 5b5d1ee7f..72b31c16e 100644 --- a/src/main/java/com/airbyte/api/models/shared/UpdateDefinitionRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/UpdateDefinitionRequest.java @@ -9,13 +9,14 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; + public class UpdateDefinitionRequest { @JsonProperty("dockerImageTag") private String dockerImageTag; + @JsonProperty("name") private String name; @@ -39,9 +40,10 @@ public String name() { return name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public UpdateDefinitionRequest withDockerImageTag(String dockerImageTag) { Utils.checkNotNull(dockerImageTag, "dockerImageTag"); @@ -55,7 +57,6 @@ public UpdateDefinitionRequest withName(String name) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -66,15 +67,14 @@ public boolean equals(java.lang.Object o) { } UpdateDefinitionRequest other = (UpdateDefinitionRequest) o; return - Objects.deepEquals(this.dockerImageTag, other.dockerImageTag) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.dockerImageTag, other.dockerImageTag) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - dockerImageTag, - name); + return Utils.enhancedHash( + dockerImageTag, name); } @Override @@ -83,33 +83,37 @@ public String toString() { "dockerImageTag", dockerImageTag, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String dockerImageTag; - + private String name; - + private Builder() { // force use of static builder() method } + public Builder dockerImageTag(String dockerImageTag) { Utils.checkNotNull(dockerImageTag, "dockerImageTag"); this.dockerImageTag = dockerImageTag; return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - + public UpdateDefinitionRequest build() { + return new UpdateDefinitionRequest( - dockerImageTag, - name); + dockerImageTag, name); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/UpdateMethod.java b/src/main/java/com/airbyte/api/models/shared/UpdateMethod.java index 3cf99eb52..c802692d1 100644 --- a/src/main/java/com/airbyte/api/models/shared/UpdateMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/UpdateMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * UpdateMethod @@ -72,12 +71,12 @@ public boolean equals(java.lang.Object o) { return false; } UpdateMethod other = (UpdateMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/UploadingMethod.java b/src/main/java/com/airbyte/api/models/shared/UploadingMethod.java index 576d0666d..18d676005 100644 --- a/src/main/java/com/airbyte/api/models/shared/UploadingMethod.java +++ b/src/main/java/com/airbyte/api/models/shared/UploadingMethod.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; /** * UploadingMethod @@ -66,12 +65,12 @@ public boolean equals(java.lang.Object o) { return false; } UploadingMethod other = (UploadingMethod) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/Uppromote.java b/src/main/java/com/airbyte/api/models/shared/Uppromote.java index c812d7bef..91612d679 100644 --- a/src/main/java/com/airbyte/api/models/shared/Uppromote.java +++ b/src/main/java/com/airbyte/api/models/shared/Uppromote.java @@ -14,7 +14,7 @@ public enum Uppromote { @JsonValue private final String value; - private Uppromote(String value) { + Uppromote(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Uptick.java b/src/main/java/com/airbyte/api/models/shared/Uptick.java new file mode 100644 index 000000000..4c06882e7 --- /dev/null +++ b/src/main/java/com/airbyte/api/models/shared/Uptick.java @@ -0,0 +1,34 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.models.shared; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Uptick { + UPTICK("uptick"); + + @JsonValue + private final String value; + + Uptick(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Uptick o: Uptick.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/airbyte/api/models/shared/UrlBase.java b/src/main/java/com/airbyte/api/models/shared/UrlBase.java index 8e283a0c6..1b1e811e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/UrlBase.java +++ b/src/main/java/com/airbyte/api/models/shared/UrlBase.java @@ -14,7 +14,7 @@ public enum UrlBase { @JsonValue private final String value; - private UrlBase(String value) { + UrlBase(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/UsCensus.java b/src/main/java/com/airbyte/api/models/shared/UsCensus.java index 0ab143e9f..8dabc4d73 100644 --- a/src/main/java/com/airbyte/api/models/shared/UsCensus.java +++ b/src/main/java/com/airbyte/api/models/shared/UsCensus.java @@ -14,7 +14,7 @@ public enum UsCensus { @JsonValue private final String value; - private UsCensus(String value) { + UsCensus(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/UserProvided.java b/src/main/java/com/airbyte/api/models/shared/UserProvided.java index 5959fd2a5..d48f09107 100644 --- a/src/main/java/com/airbyte/api/models/shared/UserProvided.java +++ b/src/main/java/com/airbyte/api/models/shared/UserProvided.java @@ -15,17 +15,17 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; -public class UserProvided { +public class UserProvided { /** * The column names that will be used while emitting the CSV records */ @JsonProperty("column_names") private List columnNames; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("header_definition_type") private Optional headerDefinitionType; @@ -52,9 +52,10 @@ public Optional headerDefinit return (Optional) headerDefinitionType; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The column names that will be used while emitting the CSV records @@ -65,7 +66,6 @@ public UserProvided withColumnNames(List columnNames) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -76,15 +76,14 @@ public boolean equals(java.lang.Object o) { } UserProvided other = (UserProvided) o; return - Objects.deepEquals(this.columnNames, other.columnNames) && - Objects.deepEquals(this.headerDefinitionType, other.headerDefinitionType); + Utils.enhancedDeepEquals(this.columnNames, other.columnNames) && + Utils.enhancedDeepEquals(this.headerDefinitionType, other.headerDefinitionType); } @Override public int hashCode() { - return Objects.hash( - columnNames, - headerDefinitionType); + return Utils.enhancedHash( + columnNames, headerDefinitionType); } @Override @@ -93,15 +92,17 @@ public String toString() { "columnNames", columnNames, "headerDefinitionType", headerDefinitionType); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List columnNames; - + private Builder() { // force use of static builder() method } + /** * The column names that will be used while emitting the CSV records */ @@ -110,12 +111,14 @@ public Builder columnNames(List columnNames) { this.columnNames = columnNames; return this; } - + public UserProvided build() { + return new UserProvided( columnNames); } + private static final LazySingletonValue> _SINGLETON_VALUE_HeaderDefinitionType = new LazySingletonValue<>( "header_definition_type", diff --git a/src/main/java/com/airbyte/api/models/shared/UserResponse.java b/src/main/java/com/airbyte/api/models/shared/UserResponse.java index 727518d9d..d67e64479 100644 --- a/src/main/java/com/airbyte/api/models/shared/UserResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/UserResponse.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * UserResponse @@ -67,9 +66,10 @@ public String name() { return name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public UserResponse withEmail(String email) { Utils.checkNotNull(email, "email"); @@ -95,7 +95,6 @@ public UserResponse withName(String name) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +105,15 @@ public boolean equals(java.lang.Object o) { } UserResponse other = (UserResponse) o; return - Objects.deepEquals(this.email, other.email) && - Objects.deepEquals(this.id, other.id) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.email, other.email) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - email, - id, - name); + return Utils.enhancedHash( + email, id, name); } @Override @@ -126,25 +123,28 @@ public String toString() { "id", id, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String email; - + private String id; - + private String name; - + private Builder() { // force use of static builder() method } + public Builder email(String email) { Utils.checkNotNull(email, "email"); this.email = email; return this; } + /** * Internal Airbyte user ID */ @@ -154,6 +154,7 @@ public Builder id(String id) { return this; } + /** * Name of the user */ @@ -162,12 +163,12 @@ public Builder name(String name) { this.name = name; return this; } - + public UserResponse build() { + return new UserResponse( - email, - id, - name); + email, id, name); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java b/src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java index 669d46b97..1f6b5034e 100644 --- a/src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java +++ b/src/main/java/com/airbyte/api/models/shared/UsernameAndPassword.java @@ -14,9 +14,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class UsernameAndPassword { @JsonInclude(Include.NON_ABSENT) @@ -51,9 +51,10 @@ public String password() { return password; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Enter the password associated with the username. @@ -64,7 +65,6 @@ public UsernameAndPassword withPassword(String password) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -75,15 +75,14 @@ public boolean equals(java.lang.Object o) { } UsernameAndPassword other = (UsernameAndPassword) o; return - Objects.deepEquals(this.authType, other.authType) && - Objects.deepEquals(this.password, other.password); + Utils.enhancedDeepEquals(this.authType, other.authType) && + Utils.enhancedDeepEquals(this.password, other.password); } @Override public int hashCode() { - return Objects.hash( - authType, - password); + return Utils.enhancedHash( + authType, password); } @Override @@ -92,15 +91,17 @@ public String toString() { "authType", authType, "password", password); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private Builder() { // force use of static builder() method } + /** * Enter the password associated with the username. */ @@ -109,12 +110,14 @@ public Builder password(String password) { this.password = password; return this; } - + public UsernameAndPassword build() { + return new UsernameAndPassword( password); } + private static final LazySingletonValue> _SINGLETON_VALUE_AuthType = new LazySingletonValue<>( "auth_type", diff --git a/src/main/java/com/airbyte/api/models/shared/UsernamePassword.java b/src/main/java/com/airbyte/api/models/shared/UsernamePassword.java index ebffe15ed..293ef4b24 100644 --- a/src/main/java/com/airbyte/api/models/shared/UsernamePassword.java +++ b/src/main/java/com/airbyte/api/models/shared/UsernamePassword.java @@ -11,7 +11,6 @@ import com.fasterxml.jackson.core.type.TypeReference; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * UsernamePassword @@ -67,9 +66,10 @@ public String username() { return username; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Basic auth password to access a secure Elasticsearch server @@ -89,7 +89,6 @@ public UsernamePassword withUsername(String username) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -100,17 +99,15 @@ public boolean equals(java.lang.Object o) { } UsernamePassword other = (UsernamePassword) o; return - Objects.deepEquals(this.method, other.method) && - Objects.deepEquals(this.password, other.password) && - Objects.deepEquals(this.username, other.username); + Utils.enhancedDeepEquals(this.method, other.method) && + Utils.enhancedDeepEquals(this.password, other.password) && + Utils.enhancedDeepEquals(this.username, other.username); } @Override public int hashCode() { - return Objects.hash( - method, - password, - username); + return Utils.enhancedHash( + method, password, username); } @Override @@ -120,17 +117,19 @@ public String toString() { "password", password, "username", username); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String password; - + private String username; - + private Builder() { // force use of static builder() method } + /** * Basic auth password to access a secure Elasticsearch server */ @@ -140,6 +139,7 @@ public Builder password(String password) { return this; } + /** * Basic auth username to access a secure Elasticsearch server */ @@ -148,13 +148,14 @@ public Builder username(String username) { this.username = username; return this; } - + public UsernamePassword build() { + return new UsernamePassword( - password, - username); + password, username); } + private static final LazySingletonValue _SINGLETON_VALUE_Method = new LazySingletonValue<>( "method", diff --git a/src/main/java/com/airbyte/api/models/shared/UsersResponse.java b/src/main/java/com/airbyte/api/models/shared/UsersResponse.java index bb8702171..ce19a8a88 100644 --- a/src/main/java/com/airbyte/api/models/shared/UsersResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/UsersResponse.java @@ -10,7 +10,6 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; /** * UsersResponse @@ -34,9 +33,10 @@ public List data() { return data; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public UsersResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -44,7 +44,6 @@ public UsersResponse withData(List data) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -55,12 +54,12 @@ public boolean equals(java.lang.Object o) { } UsersResponse other = (UsersResponse) o; return - Objects.deepEquals(this.data, other.data); + Utils.enhancedDeepEquals(this.data, other.data); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( data); } @@ -69,24 +68,28 @@ public String toString() { return Utils.toString(UsersResponse.class, "data", data); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } - + public UsersResponse build() { + return new UsersResponse( data); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Uservoice.java b/src/main/java/com/airbyte/api/models/shared/Uservoice.java index 6c29c158d..309a71888 100644 --- a/src/main/java/com/airbyte/api/models/shared/Uservoice.java +++ b/src/main/java/com/airbyte/api/models/shared/Uservoice.java @@ -14,7 +14,7 @@ public enum Uservoice { @JsonValue private final String value; - private Uservoice(String value) { + Uservoice(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java b/src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java index c4398e50c..9cdb8f517 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidActionBreakdowns.java @@ -33,7 +33,7 @@ public enum ValidActionBreakdowns { @JsonValue private final String value; - private ValidActionBreakdowns(String value) { + ValidActionBreakdowns(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java b/src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java index 43b1bd6c9..7d8910fad 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidAdSetStatuses.java @@ -25,7 +25,7 @@ public enum ValidAdSetStatuses { @JsonValue private final String value; - private ValidAdSetStatuses(String value) { + ValidAdSetStatuses(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java b/src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java index 556bfcfa7..ea7e41712 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidAdStatuses.java @@ -30,7 +30,7 @@ public enum ValidAdStatuses { @JsonValue private final String value; - private ValidAdStatuses(String value) { + ValidAdStatuses(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java b/src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java index 3ac7ecaaf..bb4995963 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidBreakdowns.java @@ -73,7 +73,7 @@ public enum ValidBreakdowns { @JsonValue private final String value; - private ValidBreakdowns(String value) { + ValidBreakdowns(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java b/src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java index 953f0b606..2b5c6b99f 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidCampaignStatuses.java @@ -24,7 +24,7 @@ public enum ValidCampaignStatuses { @JsonValue private final String value; - private ValidCampaignStatuses(String value) { + ValidCampaignStatuses(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ValidationPolicy.java b/src/main/java/com/airbyte/api/models/shared/ValidationPolicy.java index 9684c86e2..7f060beaf 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValidationPolicy.java +++ b/src/main/java/com/airbyte/api/models/shared/ValidationPolicy.java @@ -11,7 +11,8 @@ /** * ValidationPolicy * - *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the stream schema. + *

    The name of the validation policy that dictates sync behavior when a record does not adhere to the + * stream schema. */ public enum ValidationPolicy { EMIT_RECORD("Emit Record"), @@ -21,7 +22,7 @@ public enum ValidationPolicy { @JsonValue private final String value; - private ValidationPolicy(String value) { + ValidationPolicy(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Validenums.java b/src/main/java/com/airbyte/api/models/shared/Validenums.java index c8c13f7b1..2f511dd85 100644 --- a/src/main/java/com/airbyte/api/models/shared/Validenums.java +++ b/src/main/java/com/airbyte/api/models/shared/Validenums.java @@ -30,7 +30,7 @@ public enum Validenums { @JsonValue private final String value; - private Validenums(String value) { + Validenums(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Value.java b/src/main/java/com/airbyte/api/models/shared/Value.java index 8e0ffe291..b6479652d 100644 --- a/src/main/java/com/airbyte/api/models/shared/Value.java +++ b/src/main/java/com/airbyte/api/models/shared/Value.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; @JsonDeserialize(using = Value._Deserializer.class) public class Value { @@ -67,12 +66,12 @@ public boolean equals(java.lang.Object o) { return false; } Value other = (Value) o; - return Objects.deepEquals(this.value.value(), other.value.value()); + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); } @Override public int hashCode() { - return Objects.hash(value.value()); + return Utils.enhancedHash(value.value()); } @SuppressWarnings("serial") diff --git a/src/main/java/com/airbyte/api/models/shared/ValueType.java b/src/main/java/com/airbyte/api/models/shared/ValueType.java index 9452922e3..4d4218423 100644 --- a/src/main/java/com/airbyte/api/models/shared/ValueType.java +++ b/src/main/java/com/airbyte/api/models/shared/ValueType.java @@ -14,7 +14,7 @@ public enum ValueType { @JsonValue private final String value; - private ValueType(String value) { + ValueType(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Vantage.java b/src/main/java/com/airbyte/api/models/shared/Vantage.java index 48674cffe..a757acb34 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vantage.java +++ b/src/main/java/com/airbyte/api/models/shared/Vantage.java @@ -14,7 +14,7 @@ public enum Vantage { @JsonValue private final String value; - private Vantage(String value) { + Vantage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Vectara.java b/src/main/java/com/airbyte/api/models/shared/Vectara.java index e628c87e3..51f866b63 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vectara.java +++ b/src/main/java/com/airbyte/api/models/shared/Vectara.java @@ -14,7 +14,7 @@ public enum Vectara { @JsonValue private final String value; - private Vectara(String value) { + Vectara(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Veeqo.java b/src/main/java/com/airbyte/api/models/shared/Veeqo.java index 32255beae..a6990694c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Veeqo.java +++ b/src/main/java/com/airbyte/api/models/shared/Veeqo.java @@ -14,7 +14,7 @@ public enum Veeqo { @JsonValue private final String value; - private Veeqo(String value) { + Veeqo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Vercel.java b/src/main/java/com/airbyte/api/models/shared/Vercel.java index f2ed4d92f..8fdbd3fa4 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vercel.java +++ b/src/main/java/com/airbyte/api/models/shared/Vercel.java @@ -14,7 +14,7 @@ public enum Vercel { @JsonValue private final String value; - private Vercel(String value) { + Vercel(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/VerifyCa.java b/src/main/java/com/airbyte/api/models/shared/VerifyCa.java index 8d5597f72..7b2fe4e7b 100644 --- a/src/main/java/com/airbyte/api/models/shared/VerifyCa.java +++ b/src/main/java/com/airbyte/api/models/shared/VerifyCa.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -23,7 +22,6 @@ *

    Verify-ca SSL mode. */ public class VerifyCa { - /** * CA certificate */ @@ -31,12 +29,14 @@ public class VerifyCa { private String caCertificate; /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_key_password") private Optional clientKeyPassword; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -66,7 +66,8 @@ public String caCertificate() { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonIgnore public Optional clientKeyPassword() { @@ -79,9 +80,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * CA certificate @@ -93,7 +95,8 @@ public VerifyCa withCaCertificate(String caCertificate) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public VerifyCa withClientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -101,8 +104,10 @@ public VerifyCa withClientKeyPassword(String clientKeyPassword) { return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public VerifyCa withClientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -110,7 +115,6 @@ public VerifyCa withClientKeyPassword(Optional clientKeyPassword) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -121,17 +125,15 @@ public boolean equals(java.lang.Object o) { } VerifyCa other = (VerifyCa) o; return - Objects.deepEquals(this.caCertificate, other.caCertificate) && - Objects.deepEquals(this.clientKeyPassword, other.clientKeyPassword) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.caCertificate, other.caCertificate) && + Utils.enhancedDeepEquals(this.clientKeyPassword, other.clientKeyPassword) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - caCertificate, - clientKeyPassword, - mode); + return Utils.enhancedHash( + caCertificate, clientKeyPassword, mode); } @Override @@ -141,17 +143,19 @@ public String toString() { "clientKeyPassword", clientKeyPassword, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String caCertificate; - + private Optional clientKeyPassword = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * CA certificate */ @@ -161,8 +165,10 @@ public Builder caCertificate(String caCertificate) { return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -171,20 +177,22 @@ public Builder clientKeyPassword(String clientKeyPassword) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); this.clientKeyPassword = clientKeyPassword; return this; } - + public VerifyCa build() { + return new VerifyCa( - caCertificate, - clientKeyPassword); + caCertificate, clientKeyPassword); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/VerifyFull.java b/src/main/java/com/airbyte/api/models/shared/VerifyFull.java index ceb5171b6..20c3ba91e 100644 --- a/src/main/java/com/airbyte/api/models/shared/VerifyFull.java +++ b/src/main/java/com/airbyte/api/models/shared/VerifyFull.java @@ -14,7 +14,6 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; /** @@ -23,7 +22,6 @@ *

    Verify-full SSL mode. */ public class VerifyFull { - /** * CA certificate */ @@ -43,12 +41,14 @@ public class VerifyFull { private String clientKey; /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_key_password") private Optional clientKeyPassword; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -74,7 +74,8 @@ public VerifyFull( String caCertificate, String clientCertificate, String clientKey) { - this(caCertificate, clientCertificate, clientKey, Optional.empty()); + this(caCertificate, clientCertificate, clientKey, + Optional.empty()); } /** @@ -102,7 +103,8 @@ public String clientKey() { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonIgnore public Optional clientKeyPassword() { @@ -115,9 +117,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * CA certificate @@ -147,7 +150,8 @@ public VerifyFull withClientKey(String clientKey) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public VerifyFull withClientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -155,8 +159,10 @@ public VerifyFull withClientKeyPassword(String clientKeyPassword) { return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public VerifyFull withClientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -164,7 +170,6 @@ public VerifyFull withClientKeyPassword(Optional clientKeyPassword) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -175,21 +180,18 @@ public boolean equals(java.lang.Object o) { } VerifyFull other = (VerifyFull) o; return - Objects.deepEquals(this.caCertificate, other.caCertificate) && - Objects.deepEquals(this.clientCertificate, other.clientCertificate) && - Objects.deepEquals(this.clientKey, other.clientKey) && - Objects.deepEquals(this.clientKeyPassword, other.clientKeyPassword) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.caCertificate, other.caCertificate) && + Utils.enhancedDeepEquals(this.clientCertificate, other.clientCertificate) && + Utils.enhancedDeepEquals(this.clientKey, other.clientKey) && + Utils.enhancedDeepEquals(this.clientKeyPassword, other.clientKeyPassword) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - caCertificate, - clientCertificate, - clientKey, - clientKeyPassword, - mode); + return Utils.enhancedHash( + caCertificate, clientCertificate, clientKey, + clientKeyPassword, mode); } @Override @@ -201,21 +203,23 @@ public String toString() { "clientKeyPassword", clientKeyPassword, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String caCertificate; - + private String clientCertificate; - + private String clientKey; - + private Optional clientKeyPassword = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * CA certificate */ @@ -225,6 +229,7 @@ public Builder caCertificate(String caCertificate) { return this; } + /** * Client certificate */ @@ -234,6 +239,7 @@ public Builder clientCertificate(String clientCertificate) { return this; } + /** * Client key */ @@ -243,8 +249,10 @@ public Builder clientKey(String clientKey) { return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -253,22 +261,23 @@ public Builder clientKeyPassword(String clientKeyPassword) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); this.clientKeyPassword = clientKeyPassword; return this; } - + public VerifyFull build() { + return new VerifyFull( - caCertificate, - clientCertificate, - clientKey, + caCertificate, clientCertificate, clientKey, clientKeyPassword); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/VerifyIdentity.java b/src/main/java/com/airbyte/api/models/shared/VerifyIdentity.java index 36d635955..824f969e0 100644 --- a/src/main/java/com/airbyte/api/models/shared/VerifyIdentity.java +++ b/src/main/java/com/airbyte/api/models/shared/VerifyIdentity.java @@ -19,7 +19,6 @@ import java.lang.SuppressWarnings; import java.util.HashMap; import java.util.Map; -import java.util.Objects; import java.util.Optional; /** @@ -39,26 +38,30 @@ public class VerifyIdentity { private String caCertificate; /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_certificate") private Optional clientCertificate; /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_key") private Optional clientKey; /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_key_password") private Optional clientKeyPassword; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -85,7 +88,8 @@ public VerifyIdentity( public VerifyIdentity( String caCertificate) { - this(caCertificate, Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); + this(caCertificate, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); } @JsonAnyGetter @@ -102,7 +106,8 @@ public String caCertificate() { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ @JsonIgnore public Optional clientCertificate() { @@ -110,7 +115,8 @@ public Optional clientCertificate() { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ @JsonIgnore public Optional clientKey() { @@ -118,7 +124,8 @@ public Optional clientKey() { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ @JsonIgnore public Optional clientKeyPassword() { @@ -131,9 +138,10 @@ public Optional mode() { return (Optional) mode; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + @JsonAnySetter public VerifyIdentity withAdditionalProperty(String key, Object value) { @@ -141,8 +149,7 @@ public VerifyIdentity withAdditionalProperty(String key, Object value) { Utils.checkNotNull(key, "key"); additionalProperties.put(key, value); return this; - } - + } public VerifyIdentity withAdditionalProperties(Map additionalProperties) { Utils.checkNotNull(additionalProperties, "additionalProperties"); this.additionalProperties = additionalProperties; @@ -159,7 +166,8 @@ public VerifyIdentity withCaCertificate(String caCertificate) { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ public VerifyIdentity withClientCertificate(String clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -167,8 +175,10 @@ public VerifyIdentity withClientCertificate(String clientCertificate) { return this; } + /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ public VerifyIdentity withClientCertificate(Optional clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -177,7 +187,8 @@ public VerifyIdentity withClientCertificate(Optional clientCertificate) } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ public VerifyIdentity withClientKey(String clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -185,8 +196,10 @@ public VerifyIdentity withClientKey(String clientKey) { return this; } + /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ public VerifyIdentity withClientKey(Optional clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -195,7 +208,8 @@ public VerifyIdentity withClientKey(Optional clientKey) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public VerifyIdentity withClientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -203,8 +217,10 @@ public VerifyIdentity withClientKeyPassword(String clientKeyPassword) { return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public VerifyIdentity withClientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -218,13 +234,13 @@ public VerifyIdentity withMode(SourceMysqlSchemasSslModeEncryptionMode mode) { return this; } + public VerifyIdentity withMode(Optional mode) { Utils.checkNotNull(mode, "mode"); this.mode = mode; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -235,23 +251,19 @@ public boolean equals(java.lang.Object o) { } VerifyIdentity other = (VerifyIdentity) o; return - Objects.deepEquals(this.additionalProperties, other.additionalProperties) && - Objects.deepEquals(this.caCertificate, other.caCertificate) && - Objects.deepEquals(this.clientCertificate, other.clientCertificate) && - Objects.deepEquals(this.clientKey, other.clientKey) && - Objects.deepEquals(this.clientKeyPassword, other.clientKeyPassword) && - Objects.deepEquals(this.mode, other.mode); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.caCertificate, other.caCertificate) && + Utils.enhancedDeepEquals(this.clientCertificate, other.clientCertificate) && + Utils.enhancedDeepEquals(this.clientKey, other.clientKey) && + Utils.enhancedDeepEquals(this.clientKeyPassword, other.clientKeyPassword) && + Utils.enhancedDeepEquals(this.mode, other.mode); } @Override public int hashCode() { - return Objects.hash( - additionalProperties, - caCertificate, - clientCertificate, - clientKey, - clientKeyPassword, - mode); + return Utils.enhancedHash( + additionalProperties, caCertificate, clientCertificate, + clientKey, clientKeyPassword, mode); } @Override @@ -264,21 +276,22 @@ public String toString() { "clientKeyPassword", clientKeyPassword, "mode", mode); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Map additionalProperties = new HashMap<>(); - + private String caCertificate; - + private Optional clientCertificate = Optional.empty(); - + private Optional clientKey = Optional.empty(); - + private Optional clientKeyPassword = Optional.empty(); - + private Optional mode; - + private Builder() { // force use of static builder() method } @@ -299,6 +312,7 @@ public Builder additionalProperties(Map additionalProperties) { return this; } + /** * CA certificate */ @@ -308,8 +322,10 @@ public Builder caCertificate(String caCertificate) { return this; } + /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ public Builder clientCertificate(String clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -318,7 +334,8 @@ public Builder clientCertificate(String clientCertificate) { } /** - * Client certificate (this is not a required field, but if you want to use it, you will need to add the Client key as well) + * Client certificate (this is not a required field, but if you want to use it, you will need to add + * the Client key as well) */ public Builder clientCertificate(Optional clientCertificate) { Utils.checkNotNull(clientCertificate, "clientCertificate"); @@ -326,8 +343,10 @@ public Builder clientCertificate(Optional clientCertificate) { return this; } + /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ public Builder clientKey(String clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -336,7 +355,8 @@ public Builder clientKey(String clientKey) { } /** - * Client key (this is not a required field, but if you want to use it, you will need to add the Client certificate as well) + * Client key (this is not a required field, but if you want to use it, you will need to add the Client + * certificate as well) */ public Builder clientKey(Optional clientKey) { Utils.checkNotNull(clientKey, "clientKey"); @@ -344,8 +364,10 @@ public Builder clientKey(Optional clientKey) { return this; } + /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(String clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -354,7 +376,8 @@ public Builder clientKeyPassword(String clientKeyPassword) { } /** - * Password for keystorage. This field is optional. If you do not add it - the password will be generated automatically. + * Password for keystorage. This field is optional. If you do not add it - the password will be + * generated automatically. */ public Builder clientKeyPassword(Optional clientKeyPassword) { Utils.checkNotNull(clientKeyPassword, "clientKeyPassword"); @@ -362,6 +385,7 @@ public Builder clientKeyPassword(Optional clientKeyPassword) { return this; } + public Builder mode(SourceMysqlSchemasSslModeEncryptionMode mode) { Utils.checkNotNull(mode, "mode"); this.mode = Optional.ofNullable(mode); @@ -373,20 +397,19 @@ public Builder mode(Optional this.mode = mode; return this; } - + public VerifyIdentity build() { if (mode == null) { mode = _SINGLETON_VALUE_Mode.value(); } + return new VerifyIdentity( - caCertificate, - clientCertificate, - clientKey, - clientKeyPassword, - mode) + caCertificate, clientCertificate, clientKey, + clientKeyPassword, mode) .withAdditionalProperties(additionalProperties); } + private static final LazySingletonValue> _SINGLETON_VALUE_Mode = new LazySingletonValue<>( "mode", diff --git a/src/main/java/com/airbyte/api/models/shared/ViaAPI.java b/src/main/java/com/airbyte/api/models/shared/ViaAPI.java index 27db1b281..3f5f0a603 100644 --- a/src/main/java/com/airbyte/api/models/shared/ViaAPI.java +++ b/src/main/java/com/airbyte/api/models/shared/ViaAPI.java @@ -15,16 +15,15 @@ import java.lang.String; import java.lang.SuppressWarnings; import java.util.List; -import java.util.Objects; import java.util.Optional; /** * ViaAPI * - *

    Process files via an API, using the `hi_res` mode. This option is useful for increased performance and accuracy, but requires an API key and a hosted instance of unstructured. + *

    Process files via an API, using the `hi_res` mode. This option is useful for increased performance + * and accuracy, but requires an API key and a hosted instance of unstructured. */ public class ViaAPI { - /** * The API key to use matching the environment */ @@ -39,6 +38,7 @@ public class ViaAPI { @JsonProperty("api_url") private Optional apiUrl; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("mode") private Optional mode; @@ -99,9 +99,10 @@ public Optional> parameters() { return (Optional>) parameters; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The API key to use matching the environment @@ -112,6 +113,7 @@ public ViaAPI withApiKey(String apiKey) { return this; } + /** * The API key to use matching the environment */ @@ -130,6 +132,7 @@ public ViaAPI withApiUrl(String apiUrl) { return this; } + /** * The URL of the unstructured API to use */ @@ -148,6 +151,7 @@ public ViaAPI withParameters(List parameters) { return this; } + /** * List of parameters send to the API */ @@ -157,7 +161,6 @@ public ViaAPI withParameters(Optional> p return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -168,18 +171,16 @@ public boolean equals(java.lang.Object o) { } ViaAPI other = (ViaAPI) o; return - Objects.deepEquals(this.apiKey, other.apiKey) && - Objects.deepEquals(this.apiUrl, other.apiUrl) && - Objects.deepEquals(this.mode, other.mode) && - Objects.deepEquals(this.parameters, other.parameters); + Utils.enhancedDeepEquals(this.apiKey, other.apiKey) && + Utils.enhancedDeepEquals(this.apiUrl, other.apiUrl) && + Utils.enhancedDeepEquals(this.mode, other.mode) && + Utils.enhancedDeepEquals(this.parameters, other.parameters); } @Override public int hashCode() { - return Objects.hash( - apiKey, - apiUrl, - mode, + return Utils.enhancedHash( + apiKey, apiUrl, mode, parameters); } @@ -191,19 +192,21 @@ public String toString() { "mode", mode, "parameters", parameters); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional apiKey; - + private Optional apiUrl; - + private Optional> parameters = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The API key to use matching the environment */ @@ -222,6 +225,7 @@ public Builder apiKey(Optional apiKey) { return this; } + /** * The URL of the unstructured API to use */ @@ -240,6 +244,7 @@ public Builder apiUrl(Optional apiUrl) { return this; } + /** * List of parameters send to the API */ @@ -257,7 +262,7 @@ public Builder parameters(Optional> para this.parameters = parameters; return this; } - + public ViaAPI build() { if (apiKey == null) { apiKey = _SINGLETON_VALUE_ApiKey.value(); @@ -265,12 +270,12 @@ public ViaAPI build() { if (apiUrl == null) { apiUrl = _SINGLETON_VALUE_ApiUrl.value(); } + return new ViaAPI( - apiKey, - apiUrl, - parameters); + apiKey, apiUrl, parameters); } + private static final LazySingletonValue> _SINGLETON_VALUE_ApiKey = new LazySingletonValue<>( "api_key", diff --git a/src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java b/src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java index e3a272531..c624f7b46 100644 --- a/src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java +++ b/src/main/java/com/airbyte/api/models/shared/ViewAttributionWindow.java @@ -23,7 +23,7 @@ public enum ViewAttributionWindow { @JsonValue private final String value; - private ViewAttributionWindow(String value) { + ViewAttributionWindow(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ViewWindowDays.java b/src/main/java/com/airbyte/api/models/shared/ViewWindowDays.java index a1d2bd42a..0e079880f 100644 --- a/src/main/java/com/airbyte/api/models/shared/ViewWindowDays.java +++ b/src/main/java/com/airbyte/api/models/shared/ViewWindowDays.java @@ -23,7 +23,7 @@ public enum ViewWindowDays { @JsonValue private final long value; - private ViewWindowDays(long value) { + ViewWindowDays(long value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/VismaEconomic.java b/src/main/java/com/airbyte/api/models/shared/VismaEconomic.java index 12b7098ff..e9b138449 100644 --- a/src/main/java/com/airbyte/api/models/shared/VismaEconomic.java +++ b/src/main/java/com/airbyte/api/models/shared/VismaEconomic.java @@ -14,7 +14,7 @@ public enum VismaEconomic { @JsonValue private final String value; - private VismaEconomic(String value) { + VismaEconomic(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Vitally.java b/src/main/java/com/airbyte/api/models/shared/Vitally.java index a51f76fb7..d3582e4e9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vitally.java +++ b/src/main/java/com/airbyte/api/models/shared/Vitally.java @@ -14,7 +14,7 @@ public enum Vitally { @JsonValue private final String value; - private Vitally(String value) { + Vitally(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Vwo.java b/src/main/java/com/airbyte/api/models/shared/Vwo.java index 8eeee00f7..cd407c223 100644 --- a/src/main/java/com/airbyte/api/models/shared/Vwo.java +++ b/src/main/java/com/airbyte/api/models/shared/Vwo.java @@ -14,7 +14,7 @@ public enum Vwo { @JsonValue private final String value; - private Vwo(String value) { + Vwo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Waiteraid.java b/src/main/java/com/airbyte/api/models/shared/Waiteraid.java index 55b496a42..f52a82d0f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Waiteraid.java +++ b/src/main/java/com/airbyte/api/models/shared/Waiteraid.java @@ -14,7 +14,7 @@ public enum Waiteraid { @JsonValue private final String value; - private Waiteraid(String value) { + Waiteraid(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/WasabiStatsApi.java b/src/main/java/com/airbyte/api/models/shared/WasabiStatsApi.java index ee673ddf6..7119014b5 100644 --- a/src/main/java/com/airbyte/api/models/shared/WasabiStatsApi.java +++ b/src/main/java/com/airbyte/api/models/shared/WasabiStatsApi.java @@ -14,7 +14,7 @@ public enum WasabiStatsApi { @JsonValue private final String value; - private WasabiStatsApi(String value) { + WasabiStatsApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Watchmode.java b/src/main/java/com/airbyte/api/models/shared/Watchmode.java index aa3b34234..44c4c36de 100644 --- a/src/main/java/com/airbyte/api/models/shared/Watchmode.java +++ b/src/main/java/com/airbyte/api/models/shared/Watchmode.java @@ -14,7 +14,7 @@ public enum Watchmode { @JsonValue private final String value; - private Watchmode(String value) { + Watchmode(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Weatherstack.java b/src/main/java/com/airbyte/api/models/shared/Weatherstack.java index 0a5c9fc0a..4fb456c06 100644 --- a/src/main/java/com/airbyte/api/models/shared/Weatherstack.java +++ b/src/main/java/com/airbyte/api/models/shared/Weatherstack.java @@ -14,7 +14,7 @@ public enum Weatherstack { @JsonValue private final String value; - private Weatherstack(String value) { + Weatherstack(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Weaviate.java b/src/main/java/com/airbyte/api/models/shared/Weaviate.java index 4bf6dd1e4..1438d0e96 100644 --- a/src/main/java/com/airbyte/api/models/shared/Weaviate.java +++ b/src/main/java/com/airbyte/api/models/shared/Weaviate.java @@ -14,7 +14,7 @@ public enum Weaviate { @JsonValue private final String value; - private Weaviate(String value) { + Weaviate(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/WebScrapper.java b/src/main/java/com/airbyte/api/models/shared/WebScrapper.java index 48b563403..517fca2e4 100644 --- a/src/main/java/com/airbyte/api/models/shared/WebScrapper.java +++ b/src/main/java/com/airbyte/api/models/shared/WebScrapper.java @@ -14,7 +14,7 @@ public enum WebScrapper { @JsonValue private final String value; - private WebScrapper(String value) { + WebScrapper(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Webflow.java b/src/main/java/com/airbyte/api/models/shared/Webflow.java index aeec807f0..1bca47a9c 100644 --- a/src/main/java/com/airbyte/api/models/shared/Webflow.java +++ b/src/main/java/com/airbyte/api/models/shared/Webflow.java @@ -14,7 +14,7 @@ public enum Webflow { @JsonValue private final String value; - private Webflow(String value) { + Webflow(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/WebhookNotificationConfig.java b/src/main/java/com/airbyte/api/models/shared/WebhookNotificationConfig.java index 1d380ab47..7bb5f1103 100644 --- a/src/main/java/com/airbyte/api/models/shared/WebhookNotificationConfig.java +++ b/src/main/java/com/airbyte/api/models/shared/WebhookNotificationConfig.java @@ -12,7 +12,6 @@ import java.lang.Boolean; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; /** @@ -26,6 +25,7 @@ public class WebhookNotificationConfig { @JsonProperty("enabled") private Optional enabled; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("url") private Optional url; @@ -54,9 +54,10 @@ public Optional url() { return url; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public WebhookNotificationConfig withEnabled(boolean enabled) { Utils.checkNotNull(enabled, "enabled"); @@ -64,6 +65,7 @@ public WebhookNotificationConfig withEnabled(boolean enabled) { return this; } + public WebhookNotificationConfig withEnabled(Optional enabled) { Utils.checkNotNull(enabled, "enabled"); this.enabled = enabled; @@ -76,13 +78,13 @@ public WebhookNotificationConfig withUrl(String url) { return this; } + public WebhookNotificationConfig withUrl(Optional url) { Utils.checkNotNull(url, "url"); this.url = url; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -93,15 +95,14 @@ public boolean equals(java.lang.Object o) { } WebhookNotificationConfig other = (WebhookNotificationConfig) o; return - Objects.deepEquals(this.enabled, other.enabled) && - Objects.deepEquals(this.url, other.url); + Utils.enhancedDeepEquals(this.enabled, other.enabled) && + Utils.enhancedDeepEquals(this.url, other.url); } @Override public int hashCode() { - return Objects.hash( - enabled, - url); + return Utils.enhancedHash( + enabled, url); } @Override @@ -110,17 +111,19 @@ public String toString() { "enabled", enabled, "url", url); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional enabled = Optional.empty(); - + private Optional url = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder enabled(boolean enabled) { Utils.checkNotNull(enabled, "enabled"); this.enabled = Optional.ofNullable(enabled); @@ -133,6 +136,7 @@ public Builder enabled(Optional enabled) { return this; } + public Builder url(String url) { Utils.checkNotNull(url, "url"); this.url = Optional.ofNullable(url); @@ -144,11 +148,12 @@ public Builder url(Optional url) { this.url = url; return this; } - + public WebhookNotificationConfig build() { + return new WebhookNotificationConfig( - enabled, - url); + enabled, url); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WhenIWork.java b/src/main/java/com/airbyte/api/models/shared/WhenIWork.java index 1e49ed506..34cf579e9 100644 --- a/src/main/java/com/airbyte/api/models/shared/WhenIWork.java +++ b/src/main/java/com/airbyte/api/models/shared/WhenIWork.java @@ -14,7 +14,7 @@ public enum WhenIWork { @JsonValue private final String value; - private WhenIWork(String value) { + WhenIWork(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java b/src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java index 4659d7cdd..e0f5cc58f 100644 --- a/src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java +++ b/src/main/java/com/airbyte/api/models/shared/WhiskyHunter.java @@ -14,7 +14,7 @@ public enum WhiskyHunter { @JsonValue private final String value; - private WhiskyHunter(String value) { + WhiskyHunter(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java b/src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java index 4ca4f2b62..e26ac01f5 100644 --- a/src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java +++ b/src/main/java/com/airbyte/api/models/shared/WikipediaPageviews.java @@ -14,7 +14,7 @@ public enum WikipediaPageviews { @JsonValue private final String value; - private WikipediaPageviews(String value) { + WikipediaPageviews(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Woocommerce.java b/src/main/java/com/airbyte/api/models/shared/Woocommerce.java index 26f7340d7..c8a100522 100644 --- a/src/main/java/com/airbyte/api/models/shared/Woocommerce.java +++ b/src/main/java/com/airbyte/api/models/shared/Woocommerce.java @@ -14,7 +14,7 @@ public enum Woocommerce { @JsonValue private final String value; - private Woocommerce(String value) { + Woocommerce(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Wordpress.java b/src/main/java/com/airbyte/api/models/shared/Wordpress.java index 2bcd5c29d..9fd9755c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/Wordpress.java +++ b/src/main/java/com/airbyte/api/models/shared/Wordpress.java @@ -14,7 +14,7 @@ public enum Wordpress { @JsonValue private final String value; - private Wordpress(String value) { + Wordpress(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Workable.java b/src/main/java/com/airbyte/api/models/shared/Workable.java index 3c3c54c06..bbaef224f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Workable.java +++ b/src/main/java/com/airbyte/api/models/shared/Workable.java @@ -14,7 +14,7 @@ public enum Workable { @JsonValue private final String value; - private Workable(String value) { + Workable(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Workday.java b/src/main/java/com/airbyte/api/models/shared/Workday.java index f24c3254d..444a781a2 100644 --- a/src/main/java/com/airbyte/api/models/shared/Workday.java +++ b/src/main/java/com/airbyte/api/models/shared/Workday.java @@ -14,7 +14,7 @@ public enum Workday { @JsonValue private final String value; - private Workday(String value) { + Workday(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Workflowmax.java b/src/main/java/com/airbyte/api/models/shared/Workflowmax.java index 5fbd673d3..85a88b4fd 100644 --- a/src/main/java/com/airbyte/api/models/shared/Workflowmax.java +++ b/src/main/java/com/airbyte/api/models/shared/Workflowmax.java @@ -14,7 +14,7 @@ public enum Workflowmax { @JsonValue private final String value; - private Workflowmax(String value) { + Workflowmax(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Workramp.java b/src/main/java/com/airbyte/api/models/shared/Workramp.java index 3e9f6b9cd..ea25c47d0 100644 --- a/src/main/java/com/airbyte/api/models/shared/Workramp.java +++ b/src/main/java/com/airbyte/api/models/shared/Workramp.java @@ -14,7 +14,7 @@ public enum Workramp { @JsonValue private final String value; - private Workramp(String value) { + Workramp(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/WorkspaceCreateRequest.java b/src/main/java/com/airbyte/api/models/shared/WorkspaceCreateRequest.java index acc12859f..0a908c504 100644 --- a/src/main/java/com/airbyte/api/models/shared/WorkspaceCreateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/WorkspaceCreateRequest.java @@ -12,11 +12,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class WorkspaceCreateRequest { +public class WorkspaceCreateRequest { /** * Name of the workspace */ @@ -37,6 +36,7 @@ public class WorkspaceCreateRequest { @JsonProperty("organizationId") private Optional organizationId; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("regionId") private Optional regionId; @@ -59,7 +59,8 @@ public WorkspaceCreateRequest( public WorkspaceCreateRequest( String name) { - this(name, Optional.empty(), Optional.empty(), Optional.empty()); + this(name, Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -92,9 +93,10 @@ public Optional regionId() { return regionId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the workspace @@ -114,6 +116,7 @@ public WorkspaceCreateRequest withNotifications(NotificationsConfig notification return this; } + /** * Configures workspace notifications. */ @@ -132,6 +135,7 @@ public WorkspaceCreateRequest withOrganizationId(String organizationId) { return this; } + /** * ID of organization to add workspace to. */ @@ -147,13 +151,13 @@ public WorkspaceCreateRequest withRegionId(String regionId) { return this; } + public WorkspaceCreateRequest withRegionId(Optional regionId) { Utils.checkNotNull(regionId, "regionId"); this.regionId = regionId; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -164,18 +168,16 @@ public boolean equals(java.lang.Object o) { } WorkspaceCreateRequest other = (WorkspaceCreateRequest) o; return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.notifications, other.notifications) && - Objects.deepEquals(this.organizationId, other.organizationId) && - Objects.deepEquals(this.regionId, other.regionId); + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.notifications, other.notifications) && + Utils.enhancedDeepEquals(this.organizationId, other.organizationId) && + Utils.enhancedDeepEquals(this.regionId, other.regionId); } @Override public int hashCode() { - return Objects.hash( - name, - notifications, - organizationId, + return Utils.enhancedHash( + name, notifications, organizationId, regionId); } @@ -187,21 +189,23 @@ public String toString() { "organizationId", organizationId, "regionId", regionId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String name; - + private Optional notifications = Optional.empty(); - + private Optional organizationId = Optional.empty(); - + private Optional regionId = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Name of the workspace */ @@ -211,6 +215,7 @@ public Builder name(String name) { return this; } + /** * Configures workspace notifications. */ @@ -229,6 +234,7 @@ public Builder notifications(Optional notificatio return this; } + /** * ID of organization to add workspace to. */ @@ -247,6 +253,7 @@ public Builder organizationId(Optional organizationId) { return this; } + public Builder regionId(String regionId) { Utils.checkNotNull(regionId, "regionId"); this.regionId = Optional.ofNullable(regionId); @@ -258,13 +265,13 @@ public Builder regionId(Optional regionId) { this.regionId = regionId; return this; } - + public WorkspaceCreateRequest build() { + return new WorkspaceCreateRequest( - name, - notifications, - organizationId, + name, notifications, organizationId, regionId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WorkspaceOAuthCredentialsRequest.java b/src/main/java/com/airbyte/api/models/shared/WorkspaceOAuthCredentialsRequest.java index f7745efdc..dee6054c6 100644 --- a/src/main/java/com/airbyte/api/models/shared/WorkspaceOAuthCredentialsRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/WorkspaceOAuthCredentialsRequest.java @@ -7,9 +7,9 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.Object; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * WorkspaceOAuthCredentialsRequest @@ -17,7 +17,6 @@ *

    POST body for creating/updating workspace level OAuth credentials */ public class WorkspaceOAuthCredentialsRequest { - /** * Whether you're setting this override for a source or destination */ @@ -28,7 +27,8 @@ public class WorkspaceOAuthCredentialsRequest { * The values required to configure the source. */ @JsonProperty("configuration") - private OAuthCredentialsConfiguration configuration; + private Object configuration; + @JsonProperty("name") private OAuthActorNames name; @@ -36,7 +36,7 @@ public class WorkspaceOAuthCredentialsRequest { @JsonCreator public WorkspaceOAuthCredentialsRequest( @JsonProperty("actorType") ActorTypeEnum actorType, - @JsonProperty("configuration") OAuthCredentialsConfiguration configuration, + @JsonProperty("configuration") Object configuration, @JsonProperty("name") OAuthActorNames name) { Utils.checkNotNull(actorType, "actorType"); Utils.checkNotNull(configuration, "configuration"); @@ -58,7 +58,7 @@ public ActorTypeEnum actorType() { * The values required to configure the source. */ @JsonIgnore - public OAuthCredentialsConfiguration configuration() { + public Object configuration() { return configuration; } @@ -67,9 +67,10 @@ public OAuthActorNames name() { return name; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Whether you're setting this override for a source or destination @@ -83,7 +84,7 @@ public WorkspaceOAuthCredentialsRequest withActorType(ActorTypeEnum actorType) { /** * The values required to configure the source. */ - public WorkspaceOAuthCredentialsRequest withConfiguration(OAuthCredentialsConfiguration configuration) { + public WorkspaceOAuthCredentialsRequest withConfiguration(Object configuration) { Utils.checkNotNull(configuration, "configuration"); this.configuration = configuration; return this; @@ -95,7 +96,6 @@ public WorkspaceOAuthCredentialsRequest withName(OAuthActorNames name) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +106,15 @@ public boolean equals(java.lang.Object o) { } WorkspaceOAuthCredentialsRequest other = (WorkspaceOAuthCredentialsRequest) o; return - Objects.deepEquals(this.actorType, other.actorType) && - Objects.deepEquals(this.configuration, other.configuration) && - Objects.deepEquals(this.name, other.name); + Utils.enhancedDeepEquals(this.actorType, other.actorType) && + Utils.enhancedDeepEquals(this.configuration, other.configuration) && + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { - return Objects.hash( - actorType, - configuration, - name); + return Utils.enhancedHash( + actorType, configuration, name); } @Override @@ -126,19 +124,21 @@ public String toString() { "configuration", configuration, "name", name); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private ActorTypeEnum actorType; - - private OAuthCredentialsConfiguration configuration; - + + private Object configuration; + private OAuthActorNames name; - + private Builder() { // force use of static builder() method } + /** * Whether you're setting this override for a source or destination */ @@ -148,26 +148,28 @@ public Builder actorType(ActorTypeEnum actorType) { return this; } + /** * The values required to configure the source. */ - public Builder configuration(OAuthCredentialsConfiguration configuration) { + public Builder configuration(Object configuration) { Utils.checkNotNull(configuration, "configuration"); this.configuration = configuration; return this; } + public Builder name(OAuthActorNames name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } - + public WorkspaceOAuthCredentialsRequest build() { + return new WorkspaceOAuthCredentialsRequest( - actorType, - configuration, - name); + actorType, configuration, name); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WorkspaceResponse.java b/src/main/java/com/airbyte/api/models/shared/WorkspaceResponse.java index 2a91cc68e..56475cbab 100644 --- a/src/main/java/com/airbyte/api/models/shared/WorkspaceResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/WorkspaceResponse.java @@ -9,7 +9,6 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; /** * WorkspaceResponse @@ -21,6 +20,7 @@ public class WorkspaceResponse { @JsonProperty("dataResidency") private String dataResidency; + @JsonProperty("name") private String name; @@ -30,6 +30,7 @@ public class WorkspaceResponse { @JsonProperty("notifications") private NotificationsConfig notifications; + @JsonProperty("workspaceId") private String workspaceId; @@ -72,9 +73,10 @@ public String workspaceId() { return workspaceId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public WorkspaceResponse withDataResidency(String dataResidency) { Utils.checkNotNull(dataResidency, "dataResidency"); @@ -103,7 +105,6 @@ public WorkspaceResponse withWorkspaceId(String workspaceId) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -114,18 +115,16 @@ public boolean equals(java.lang.Object o) { } WorkspaceResponse other = (WorkspaceResponse) o; return - Objects.deepEquals(this.dataResidency, other.dataResidency) && - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.notifications, other.notifications) && - Objects.deepEquals(this.workspaceId, other.workspaceId); + Utils.enhancedDeepEquals(this.dataResidency, other.dataResidency) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.notifications, other.notifications) && + Utils.enhancedDeepEquals(this.workspaceId, other.workspaceId); } @Override public int hashCode() { - return Objects.hash( - dataResidency, - name, - notifications, + return Utils.enhancedHash( + dataResidency, name, notifications, workspaceId); } @@ -137,33 +136,37 @@ public String toString() { "notifications", notifications, "workspaceId", workspaceId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private String dataResidency; - + private String name; - + private NotificationsConfig notifications; - + private String workspaceId; - + private Builder() { // force use of static builder() method } + public Builder dataResidency(String dataResidency) { Utils.checkNotNull(dataResidency, "dataResidency"); this.dataResidency = dataResidency; return this; } + public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; return this; } + /** * Configures workspace notifications. */ @@ -173,18 +176,19 @@ public Builder notifications(NotificationsConfig notifications) { return this; } + public Builder workspaceId(String workspaceId) { Utils.checkNotNull(workspaceId, "workspaceId"); this.workspaceId = workspaceId; return this; } - + public WorkspaceResponse build() { + return new WorkspaceResponse( - dataResidency, - name, - notifications, + dataResidency, name, notifications, workspaceId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WorkspaceUpdateRequest.java b/src/main/java/com/airbyte/api/models/shared/WorkspaceUpdateRequest.java index 9179102f2..2a0f07069 100644 --- a/src/main/java/com/airbyte/api/models/shared/WorkspaceUpdateRequest.java +++ b/src/main/java/com/airbyte/api/models/shared/WorkspaceUpdateRequest.java @@ -12,11 +12,10 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; -public class WorkspaceUpdateRequest { +public class WorkspaceUpdateRequest { /** * Name of the workspace */ @@ -31,6 +30,7 @@ public class WorkspaceUpdateRequest { @JsonProperty("notifications") private Optional notifications; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("regionId") private Optional regionId; @@ -74,9 +74,10 @@ public Optional regionId() { return regionId; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Name of the workspace @@ -87,6 +88,7 @@ public WorkspaceUpdateRequest withName(String name) { return this; } + /** * Name of the workspace */ @@ -105,6 +107,7 @@ public WorkspaceUpdateRequest withNotifications(NotificationsConfig notification return this; } + /** * Configures workspace notifications. */ @@ -120,13 +123,13 @@ public WorkspaceUpdateRequest withRegionId(String regionId) { return this; } + public WorkspaceUpdateRequest withRegionId(Optional regionId) { Utils.checkNotNull(regionId, "regionId"); this.regionId = regionId; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -137,17 +140,15 @@ public boolean equals(java.lang.Object o) { } WorkspaceUpdateRequest other = (WorkspaceUpdateRequest) o; return - Objects.deepEquals(this.name, other.name) && - Objects.deepEquals(this.notifications, other.notifications) && - Objects.deepEquals(this.regionId, other.regionId); + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.notifications, other.notifications) && + Utils.enhancedDeepEquals(this.regionId, other.regionId); } @Override public int hashCode() { - return Objects.hash( - name, - notifications, - regionId); + return Utils.enhancedHash( + name, notifications, regionId); } @Override @@ -157,19 +158,21 @@ public String toString() { "notifications", notifications, "regionId", regionId); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional name = Optional.empty(); - + private Optional notifications = Optional.empty(); - + private Optional regionId = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Name of the workspace */ @@ -188,6 +191,7 @@ public Builder name(Optional name) { return this; } + /** * Configures workspace notifications. */ @@ -206,6 +210,7 @@ public Builder notifications(Optional notificatio return this; } + public Builder regionId(String regionId) { Utils.checkNotNull(regionId, "regionId"); this.regionId = Optional.ofNullable(regionId); @@ -217,12 +222,12 @@ public Builder regionId(Optional regionId) { this.regionId = regionId; return this; } - + public WorkspaceUpdateRequest build() { + return new WorkspaceUpdateRequest( - name, - notifications, - regionId); + name, notifications, regionId); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/WorkspacesResponse.java b/src/main/java/com/airbyte/api/models/shared/WorkspacesResponse.java index 4da0ba46f..d6e3e9731 100644 --- a/src/main/java/com/airbyte/api/models/shared/WorkspacesResponse.java +++ b/src/main/java/com/airbyte/api/models/shared/WorkspacesResponse.java @@ -12,18 +12,20 @@ import java.lang.Override; import java.lang.String; import java.util.List; -import java.util.Objects; import java.util.Optional; + public class WorkspacesResponse { @JsonProperty("data") private List data; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("next") private Optional next; + @JsonInclude(Include.NON_ABSENT) @JsonProperty("previous") private Optional previous; @@ -61,9 +63,10 @@ public Optional previous() { return previous; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public WorkspacesResponse withData(List data) { Utils.checkNotNull(data, "data"); @@ -77,6 +80,7 @@ public WorkspacesResponse withNext(String next) { return this; } + public WorkspacesResponse withNext(Optional next) { Utils.checkNotNull(next, "next"); this.next = next; @@ -89,13 +93,13 @@ public WorkspacesResponse withPrevious(String previous) { return this; } + public WorkspacesResponse withPrevious(Optional previous) { Utils.checkNotNull(previous, "previous"); this.previous = previous; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -106,17 +110,15 @@ public boolean equals(java.lang.Object o) { } WorkspacesResponse other = (WorkspacesResponse) o; return - Objects.deepEquals(this.data, other.data) && - Objects.deepEquals(this.next, other.next) && - Objects.deepEquals(this.previous, other.previous); + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.previous, other.previous); } @Override public int hashCode() { - return Objects.hash( - data, - next, - previous); + return Utils.enhancedHash( + data, next, previous); } @Override @@ -126,25 +128,28 @@ public String toString() { "next", next, "previous", previous); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private List data; - + private Optional next = Optional.empty(); - + private Optional previous = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; } + public Builder next(String next) { Utils.checkNotNull(next, "next"); this.next = Optional.ofNullable(next); @@ -157,6 +162,7 @@ public Builder next(Optional next) { return this; } + public Builder previous(String previous) { Utils.checkNotNull(previous, "previous"); this.previous = Optional.ofNullable(previous); @@ -168,12 +174,12 @@ public Builder previous(Optional previous) { this.previous = previous; return this; } - + public WorkspacesResponse build() { + return new WorkspacesResponse( - data, - next, - previous); + data, next, previous); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Wrike.java b/src/main/java/com/airbyte/api/models/shared/Wrike.java index 3d9924d3e..45d2f9c11 100644 --- a/src/main/java/com/airbyte/api/models/shared/Wrike.java +++ b/src/main/java/com/airbyte/api/models/shared/Wrike.java @@ -14,7 +14,7 @@ public enum Wrike { @JsonValue private final String value; - private Wrike(String value) { + Wrike(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Wufoo.java b/src/main/java/com/airbyte/api/models/shared/Wufoo.java index 93cfeadc0..33eeb9983 100644 --- a/src/main/java/com/airbyte/api/models/shared/Wufoo.java +++ b/src/main/java/com/airbyte/api/models/shared/Wufoo.java @@ -14,7 +14,7 @@ public enum Wufoo { @JsonValue private final String value; - private Wufoo(String value) { + Wufoo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Xkcd.java b/src/main/java/com/airbyte/api/models/shared/Xkcd.java index 4bfc86455..0452ce2a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Xkcd.java +++ b/src/main/java/com/airbyte/api/models/shared/Xkcd.java @@ -14,7 +14,7 @@ public enum Xkcd { @JsonValue private final String value; - private Xkcd(String value) { + Xkcd(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Xsolla.java b/src/main/java/com/airbyte/api/models/shared/Xsolla.java index f7a38b8f6..38edef208 100644 --- a/src/main/java/com/airbyte/api/models/shared/Xsolla.java +++ b/src/main/java/com/airbyte/api/models/shared/Xsolla.java @@ -14,7 +14,7 @@ public enum Xsolla { @JsonValue private final String value; - private Xsolla(String value) { + Xsolla(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Xz.java b/src/main/java/com/airbyte/api/models/shared/Xz.java index 3cf37d326..97ef8d1c5 100644 --- a/src/main/java/com/airbyte/api/models/shared/Xz.java +++ b/src/main/java/com/airbyte/api/models/shared/Xz.java @@ -15,9 +15,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Xz { @JsonInclude(Include.NON_ABSENT) @@ -25,7 +25,14 @@ public class Xz { private Optional codec; /** - * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. + * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets + * with high compression. The default preset is 6. + * + *

    The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and + * decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or + * 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more here + * for details. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_level") @@ -52,16 +59,24 @@ public Optional codec() { } /** - * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. + * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets + * with high compression. The default preset is 6. + * + *

    The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and + * decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or + * 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more here + * for details. */ @JsonIgnore public Optional compressionLevel() { return compressionLevel; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Xz withCodec(DestinationGcsSchemasFormatCodec codec) { Utils.checkNotNull(codec, "codec"); @@ -69,6 +84,7 @@ public Xz withCodec(DestinationGcsSchemasFormatCodec codec) { return this; } + public Xz withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; @@ -76,7 +92,14 @@ public Xz withCodec(Optional codec) } /** - * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. + * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets + * with high compression. The default preset is 6. + * + *

    The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and + * decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or + * 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more here + * for details. */ public Xz withCompressionLevel(long compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); @@ -84,8 +107,16 @@ public Xz withCompressionLevel(long compressionLevel) { return this; } + /** - * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. + * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets + * with high compression. The default preset is 6. + * + *

    The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and + * decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or + * 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more here + * for details. */ public Xz withCompressionLevel(Optional compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); @@ -93,7 +124,6 @@ public Xz withCompressionLevel(Optional compressionLevel) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -104,15 +134,14 @@ public boolean equals(java.lang.Object o) { } Xz other = (Xz) o; return - Objects.deepEquals(this.codec, other.codec) && - Objects.deepEquals(this.compressionLevel, other.compressionLevel); + Utils.enhancedDeepEquals(this.codec, other.codec) && + Utils.enhancedDeepEquals(this.compressionLevel, other.compressionLevel); } @Override public int hashCode() { - return Objects.hash( - codec, - compressionLevel); + return Utils.enhancedHash( + codec, compressionLevel); } @Override @@ -121,17 +150,19 @@ public String toString() { "codec", codec, "compressionLevel", compressionLevel); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional codec; - + private Optional compressionLevel; - + private Builder() { // force use of static builder() method } + public Builder codec(DestinationGcsSchemasFormatCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -144,8 +175,16 @@ public Builder codec(Optional codec) return this; } + /** - * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. + * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets + * with high compression. The default preset is 6. + * + *

    The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and + * decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or + * 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more here + * for details. */ public Builder compressionLevel(long compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); @@ -154,14 +193,21 @@ public Builder compressionLevel(long compressionLevel) { } /** - * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets with high compression. The default preset is 6. The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more <a href="https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/compress/compressors/xz/XZCompressorOutputStream.html#XZCompressorOutputStream-java.io.OutputStream-int-">here</a> for details. + * The presets 0-3 are fast presets with medium compression. The presets 4-6 are fairly slow presets + * with high compression. The default preset is 6. + * + *

    The presets 7-9 are like the preset 6 but use bigger dictionaries and have higher compressor and + * decompressor memory requirements. Unless the uncompressed size of the file exceeds 8 MiB, 16 MiB, or + * 32 MiB, it is waste of memory to use the presets 7, 8, or 9, respectively. Read more here + * for details. */ public Builder compressionLevel(Optional compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); this.compressionLevel = compressionLevel; return this; } - + public Xz build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); @@ -169,11 +215,12 @@ public Xz build() { if (compressionLevel == null) { compressionLevel = _SINGLETON_VALUE_CompressionLevel.value(); } + return new Xz( - codec, - compressionLevel); + codec, compressionLevel); } + private static final LazySingletonValue> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java b/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java index e94049ece..ba1feffbd 100644 --- a/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java +++ b/src/main/java/com/airbyte/api/models/shared/YahooFinancePrice.java @@ -14,7 +14,7 @@ public enum YahooFinancePrice { @JsonValue private final String value; - private YahooFinancePrice(String value) { + YahooFinancePrice(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/YandexMetrica.java b/src/main/java/com/airbyte/api/models/shared/YandexMetrica.java index 089c4f587..934a19bb3 100644 --- a/src/main/java/com/airbyte/api/models/shared/YandexMetrica.java +++ b/src/main/java/com/airbyte/api/models/shared/YandexMetrica.java @@ -14,7 +14,7 @@ public enum YandexMetrica { @JsonValue private final String value; - private YandexMetrica(String value) { + YandexMetrica(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Yellowbrick.java b/src/main/java/com/airbyte/api/models/shared/Yellowbrick.java index 02bf27ad6..20f5f3a08 100644 --- a/src/main/java/com/airbyte/api/models/shared/Yellowbrick.java +++ b/src/main/java/com/airbyte/api/models/shared/Yellowbrick.java @@ -14,7 +14,7 @@ public enum Yellowbrick { @JsonValue private final String value; - private Yellowbrick(String value) { + Yellowbrick(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Yotpo.java b/src/main/java/com/airbyte/api/models/shared/Yotpo.java index a86ce7a38..8ecfae0a9 100644 --- a/src/main/java/com/airbyte/api/models/shared/Yotpo.java +++ b/src/main/java/com/airbyte/api/models/shared/Yotpo.java @@ -14,7 +14,7 @@ public enum Yotpo { @JsonValue private final String value; - private Yotpo(String value) { + Yotpo(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java b/src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java index 177a91ea9..8250ff43d 100644 --- a/src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java +++ b/src/main/java/com/airbyte/api/models/shared/YouNeedABudgetYnab.java @@ -14,7 +14,7 @@ public enum YouNeedABudgetYnab { @JsonValue private final String value; - private YouNeedABudgetYnab(String value) { + YouNeedABudgetYnab(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Younium.java b/src/main/java/com/airbyte/api/models/shared/Younium.java index 22b68661b..4f846550f 100644 --- a/src/main/java/com/airbyte/api/models/shared/Younium.java +++ b/src/main/java/com/airbyte/api/models/shared/Younium.java @@ -14,7 +14,7 @@ public enum Younium { @JsonValue private final String value; - private Younium(String value) { + Younium(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Yousign.java b/src/main/java/com/airbyte/api/models/shared/Yousign.java index df4903085..a70d7a5ff 100644 --- a/src/main/java/com/airbyte/api/models/shared/Yousign.java +++ b/src/main/java/com/airbyte/api/models/shared/Yousign.java @@ -14,7 +14,7 @@ public enum Yousign { @JsonValue private final String value; - private Yousign(String value) { + Yousign(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/YoutubeAnalytics.java b/src/main/java/com/airbyte/api/models/shared/YoutubeAnalytics.java index 4df1c1821..012b83664 100644 --- a/src/main/java/com/airbyte/api/models/shared/YoutubeAnalytics.java +++ b/src/main/java/com/airbyte/api/models/shared/YoutubeAnalytics.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class YoutubeAnalytics { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public YoutubeAnalytics withCredentials(YoutubeAnalyticsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public YoutubeAnalytics withCredentials(YoutubeAnalyticsCredentials credentials) return this; } + public YoutubeAnalytics withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } YoutubeAnalytics other = (YoutubeAnalytics) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(YoutubeAnalytics.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(YoutubeAnalyticsCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional crede this.credentials = credentials; return this; } - + public YoutubeAnalytics build() { + return new YoutubeAnalytics( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/YoutubeAnalyticsCredentials.java b/src/main/java/com/airbyte/api/models/shared/YoutubeAnalyticsCredentials.java index aff248cbb..679d22b81 100644 --- a/src/main/java/com/airbyte/api/models/shared/YoutubeAnalyticsCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/YoutubeAnalyticsCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class YoutubeAnalyticsCredentials { +public class YoutubeAnalyticsCredentials { /** * The Client ID of your developer application */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * The Client ID of your developer application @@ -73,6 +73,7 @@ public YoutubeAnalyticsCredentials withClientId(String clientId) { return this; } + /** * The Client ID of your developer application */ @@ -91,6 +92,7 @@ public YoutubeAnalyticsCredentials withClientSecret(String clientSecret) { return this; } + /** * The client secret of your developer application */ @@ -100,7 +102,6 @@ public YoutubeAnalyticsCredentials withClientSecret(Optional clientSecre return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } YoutubeAnalyticsCredentials other = (YoutubeAnalyticsCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * The Client ID of your developer application */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * The client secret of your developer application */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public YoutubeAnalyticsCredentials build() { + return new YoutubeAnalyticsCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/YoutubeData.java b/src/main/java/com/airbyte/api/models/shared/YoutubeData.java index 3d9305860..e238c36f2 100644 --- a/src/main/java/com/airbyte/api/models/shared/YoutubeData.java +++ b/src/main/java/com/airbyte/api/models/shared/YoutubeData.java @@ -14,7 +14,7 @@ public enum YoutubeData { @JsonValue private final String value; - private YoutubeData(String value) { + YoutubeData(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZapierSupportedStorage.java b/src/main/java/com/airbyte/api/models/shared/ZapierSupportedStorage.java index b365d95fe..f2a5892c0 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZapierSupportedStorage.java +++ b/src/main/java/com/airbyte/api/models/shared/ZapierSupportedStorage.java @@ -14,7 +14,7 @@ public enum ZapierSupportedStorage { @JsonValue private final String value; - private ZapierSupportedStorage(String value) { + ZapierSupportedStorage(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Zapsign.java b/src/main/java/com/airbyte/api/models/shared/Zapsign.java index 327242a3a..c643dd8df 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zapsign.java +++ b/src/main/java/com/airbyte/api/models/shared/Zapsign.java @@ -14,7 +14,7 @@ public enum Zapsign { @JsonValue private final String value; - private Zapsign(String value) { + Zapsign(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskChat.java b/src/main/java/com/airbyte/api/models/shared/ZendeskChat.java index e34bacb8f..d09c49c28 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskChat.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskChat.java @@ -14,7 +14,7 @@ public enum ZendeskChat { @JsonValue private final String value; - private ZendeskChat(String value) { + ZendeskChat(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java b/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java index ecbb6545f..e02413ca7 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskSunshine.java @@ -14,7 +14,7 @@ public enum ZendeskSunshine { @JsonValue private final String value; - private ZendeskSunshine(String value) { + ZendeskSunshine(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskSupport.java b/src/main/java/com/airbyte/api/models/shared/ZendeskSupport.java index d5ed16967..3f895b407 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskSupport.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskSupport.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class ZendeskSupport { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ZendeskSupport withCredentials(ZendeskSupportCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public ZendeskSupport withCredentials(ZendeskSupportCredentials credentials) { return this; } + public ZendeskSupport withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } ZendeskSupport other = (ZendeskSupport) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(ZendeskSupport.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(ZendeskSupportCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credent this.credentials = credentials; return this; } - + public ZendeskSupport build() { + return new ZendeskSupport( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskSupportCredentials.java b/src/main/java/com/airbyte/api/models/shared/ZendeskSupportCredentials.java index 2b2b77ec0..caa83ad8d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskSupportCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskSupportCredentials.java @@ -11,20 +11,23 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class ZendeskSupportCredentials { +public class ZendeskSupportCredentials { /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_id") private Optional clientId; /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("client_secret") @@ -45,7 +48,9 @@ public ZendeskSupportCredentials() { } /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ @JsonIgnore public Optional clientId() { @@ -53,19 +58,24 @@ public Optional clientId() { } /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ @JsonIgnore public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ public ZendeskSupportCredentials withClientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -73,8 +83,11 @@ public ZendeskSupportCredentials withClientId(String clientId) { return this; } + /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ public ZendeskSupportCredentials withClientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -83,7 +96,9 @@ public ZendeskSupportCredentials withClientId(Optional clientId) { } /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ public ZendeskSupportCredentials withClientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -91,8 +106,11 @@ public ZendeskSupportCredentials withClientSecret(String clientSecret) { return this; } + /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ public ZendeskSupportCredentials withClientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -100,7 +118,6 @@ public ZendeskSupportCredentials withClientSecret(Optional clientSecret) return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +128,14 @@ public boolean equals(java.lang.Object o) { } ZendeskSupportCredentials other = (ZendeskSupportCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,19 +144,23 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ public Builder clientId(String clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -149,7 +169,9 @@ public Builder clientId(String clientId) { } /** - * The OAuth client's ID. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client's ID. See this + * guide for more information. */ public Builder clientId(Optional clientId) { Utils.checkNotNull(clientId, "clientId"); @@ -157,8 +179,11 @@ public Builder clientId(Optional clientId) { return this; } + /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ public Builder clientSecret(String clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); @@ -167,18 +192,21 @@ public Builder clientSecret(String clientSecret) { } /** - * The OAuth client secret. See <a href="https://docs.searchunify.com/Content/Content-Sources/Zendesk-Authentication-OAuth-Client-ID-Secret.htm#:~:text=Get%20Client%20ID%20and%20Client%20Secret&text=Go%20to%20OAuth%20Clients%20and,will%20be%20displayed%20only%20once.">this guide</a> for more information. + * The OAuth client secret. See this + * guide for more information. */ public Builder clientSecret(Optional clientSecret) { Utils.checkNotNull(clientSecret, "clientSecret"); this.clientSecret = clientSecret; return this; } - + public ZendeskSupportCredentials build() { + return new ZendeskSupportCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskTalk.java b/src/main/java/com/airbyte/api/models/shared/ZendeskTalk.java index 7a65e6e56..89e456c5d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskTalk.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskTalk.java @@ -12,9 +12,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class ZendeskTalk { @JsonInclude(Include.NON_ABSENT) @@ -38,9 +38,10 @@ public Optional credentials() { return (Optional) credentials; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public ZendeskTalk withCredentials(ZendeskTalkCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); @@ -48,13 +49,13 @@ public ZendeskTalk withCredentials(ZendeskTalkCredentials credentials) { return this; } + public ZendeskTalk withCredentials(Optional credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = credentials; return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -65,12 +66,12 @@ public boolean equals(java.lang.Object o) { } ZendeskTalk other = (ZendeskTalk) o; return - Objects.deepEquals(this.credentials, other.credentials); + Utils.enhancedDeepEquals(this.credentials, other.credentials); } @Override public int hashCode() { - return Objects.hash( + return Utils.enhancedHash( credentials); } @@ -79,15 +80,17 @@ public String toString() { return Utils.toString(ZendeskTalk.class, "credentials", credentials); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional credentials = Optional.empty(); - + private Builder() { // force use of static builder() method } + public Builder credentials(ZendeskTalkCredentials credentials) { Utils.checkNotNull(credentials, "credentials"); this.credentials = Optional.ofNullable(credentials); @@ -99,10 +102,12 @@ public Builder credentials(Optional credential this.credentials = credentials; return this; } - + public ZendeskTalk build() { + return new ZendeskTalk( credentials); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/ZendeskTalkCredentials.java b/src/main/java/com/airbyte/api/models/shared/ZendeskTalkCredentials.java index 4cc3f4251..224eca9a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZendeskTalkCredentials.java +++ b/src/main/java/com/airbyte/api/models/shared/ZendeskTalkCredentials.java @@ -11,11 +11,10 @@ import com.fasterxml.jackson.annotation.JsonProperty; import java.lang.Override; import java.lang.String; -import java.util.Objects; import java.util.Optional; -public class ZendeskTalkCredentials { +public class ZendeskTalkCredentials { /** * Client ID */ @@ -60,9 +59,10 @@ public Optional clientSecret() { return clientSecret; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + /** * Client ID @@ -73,6 +73,7 @@ public ZendeskTalkCredentials withClientId(String clientId) { return this; } + /** * Client ID */ @@ -91,6 +92,7 @@ public ZendeskTalkCredentials withClientSecret(String clientSecret) { return this; } + /** * Client Secret */ @@ -100,7 +102,6 @@ public ZendeskTalkCredentials withClientSecret(Optional clientSecret) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -111,15 +112,14 @@ public boolean equals(java.lang.Object o) { } ZendeskTalkCredentials other = (ZendeskTalkCredentials) o; return - Objects.deepEquals(this.clientId, other.clientId) && - Objects.deepEquals(this.clientSecret, other.clientSecret); + Utils.enhancedDeepEquals(this.clientId, other.clientId) && + Utils.enhancedDeepEquals(this.clientSecret, other.clientSecret); } @Override public int hashCode() { - return Objects.hash( - clientId, - clientSecret); + return Utils.enhancedHash( + clientId, clientSecret); } @Override @@ -128,17 +128,19 @@ public String toString() { "clientId", clientId, "clientSecret", clientSecret); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional clientId = Optional.empty(); - + private Optional clientSecret = Optional.empty(); - + private Builder() { // force use of static builder() method } + /** * Client ID */ @@ -157,6 +159,7 @@ public Builder clientId(Optional clientId) { return this; } + /** * Client Secret */ @@ -174,11 +177,12 @@ public Builder clientSecret(Optional clientSecret) { this.clientSecret = clientSecret; return this; } - + public ZendeskTalkCredentials build() { + return new ZendeskTalkCredentials( - clientId, - clientSecret); + clientId, clientSecret); } + } } diff --git a/src/main/java/com/airbyte/api/models/shared/Zenefits.java b/src/main/java/com/airbyte/api/models/shared/Zenefits.java index b1baa8c8d..cded05605 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zenefits.java +++ b/src/main/java/com/airbyte/api/models/shared/Zenefits.java @@ -14,7 +14,7 @@ public enum Zenefits { @JsonValue private final String value; - private Zenefits(String value) { + Zenefits(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Zenloop.java b/src/main/java/com/airbyte/api/models/shared/Zenloop.java index 4c3402628..7bfcb23d8 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zenloop.java +++ b/src/main/java/com/airbyte/api/models/shared/Zenloop.java @@ -14,7 +14,7 @@ public enum Zenloop { @JsonValue private final String value; - private Zenloop(String value) { + Zenloop(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoAnalyticsMetadataApi.java b/src/main/java/com/airbyte/api/models/shared/ZohoAnalyticsMetadataApi.java index 2d84bbb56..648be04e5 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoAnalyticsMetadataApi.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoAnalyticsMetadataApi.java @@ -14,7 +14,7 @@ public enum ZohoAnalyticsMetadataApi { @JsonValue private final String value; - private ZohoAnalyticsMetadataApi(String value) { + ZohoAnalyticsMetadataApi(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoBigin.java b/src/main/java/com/airbyte/api/models/shared/ZohoBigin.java index 123e05a36..b78c6001d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoBigin.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoBigin.java @@ -14,7 +14,7 @@ public enum ZohoBigin { @JsonValue private final String value; - private ZohoBigin(String value) { + ZohoBigin(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoBilling.java b/src/main/java/com/airbyte/api/models/shared/ZohoBilling.java index 1f032d9c7..cdc04251a 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoBilling.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoBilling.java @@ -14,7 +14,7 @@ public enum ZohoBilling { @JsonValue private final String value; - private ZohoBilling(String value) { + ZohoBilling(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoBooks.java b/src/main/java/com/airbyte/api/models/shared/ZohoBooks.java index 35b6cd7de..6fb1892a7 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoBooks.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoBooks.java @@ -14,7 +14,7 @@ public enum ZohoBooks { @JsonValue private final String value; - private ZohoBooks(String value) { + ZohoBooks(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoCRMEdition.java b/src/main/java/com/airbyte/api/models/shared/ZohoCRMEdition.java index 80b332cab..f1b464355 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoCRMEdition.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoCRMEdition.java @@ -23,7 +23,7 @@ public enum ZohoCRMEdition { @JsonValue private final String value; - private ZohoCRMEdition(String value) { + ZohoCRMEdition(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoCampaign.java b/src/main/java/com/airbyte/api/models/shared/ZohoCampaign.java index c0002936b..540c7e0f4 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoCampaign.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoCampaign.java @@ -14,7 +14,7 @@ public enum ZohoCampaign { @JsonValue private final String value; - private ZohoCampaign(String value) { + ZohoCampaign(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoCrm.java b/src/main/java/com/airbyte/api/models/shared/ZohoCrm.java index 5e74aa333..319c1552d 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoCrm.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoCrm.java @@ -14,7 +14,7 @@ public enum ZohoCrm { @JsonValue private final String value; - private ZohoCrm(String value) { + ZohoCrm(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoDesk.java b/src/main/java/com/airbyte/api/models/shared/ZohoDesk.java index ec8562e6f..27cf37133 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoDesk.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoDesk.java @@ -14,7 +14,7 @@ public enum ZohoDesk { @JsonValue private final String value; - private ZohoDesk(String value) { + ZohoDesk(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoExpense.java b/src/main/java/com/airbyte/api/models/shared/ZohoExpense.java index 5de59b51b..f78061812 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoExpense.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoExpense.java @@ -14,7 +14,7 @@ public enum ZohoExpense { @JsonValue private final String value; - private ZohoExpense(String value) { + ZohoExpense(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoInventory.java b/src/main/java/com/airbyte/api/models/shared/ZohoInventory.java index 61f648e15..0ef31e2a8 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoInventory.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoInventory.java @@ -14,7 +14,7 @@ public enum ZohoInventory { @JsonValue private final String value; - private ZohoInventory(String value) { + ZohoInventory(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZohoInvoice.java b/src/main/java/com/airbyte/api/models/shared/ZohoInvoice.java index e7591d1a9..3da486478 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZohoInvoice.java +++ b/src/main/java/com/airbyte/api/models/shared/ZohoInvoice.java @@ -14,7 +14,7 @@ public enum ZohoInvoice { @JsonValue private final String value; - private ZohoInvoice(String value) { + ZohoInvoice(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java b/src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java index cfa662837..00656a7ac 100644 --- a/src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java +++ b/src/main/java/com/airbyte/api/models/shared/ZonkaFeedback.java @@ -14,7 +14,7 @@ public enum ZonkaFeedback { @JsonValue private final String value; - private ZonkaFeedback(String value) { + ZonkaFeedback(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Zoom.java b/src/main/java/com/airbyte/api/models/shared/Zoom.java index 5bce9467d..b4234fc09 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zoom.java +++ b/src/main/java/com/airbyte/api/models/shared/Zoom.java @@ -14,7 +14,7 @@ public enum Zoom { @JsonValue private final String value; - private Zoom(String value) { + Zoom(String value) { this.value = value; } diff --git a/src/main/java/com/airbyte/api/models/shared/Zstandard.java b/src/main/java/com/airbyte/api/models/shared/Zstandard.java index c27281233..5ce36d9aa 100644 --- a/src/main/java/com/airbyte/api/models/shared/Zstandard.java +++ b/src/main/java/com/airbyte/api/models/shared/Zstandard.java @@ -16,9 +16,9 @@ import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.Objects; import java.util.Optional; + public class Zstandard { @JsonInclude(Include.NON_ABSENT) @@ -26,7 +26,8 @@ public class Zstandard { private Optional codec; /** - * Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory. + * Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival + * purposes, and levels above 18 use a lot of memory. */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("compression_level") @@ -63,7 +64,8 @@ public Optional codec() { } /** - * Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival purposes, and levels above 18 use a lot of memory. + * Negative levels are 'fast' modes akin to lz4 or snappy, levels above 9 are generally for archival + * purposes, and levels above 18 use a lot of memory. */ @JsonIgnore public Optional compressionLevel() { @@ -78,9 +80,10 @@ public Optional includeChecksum() { return includeChecksum; } - public final static Builder builder() { + public static Builder builder() { return new Builder(); - } + } + public Zstandard withCodec(DestinationGcsSchemasFormatOutputFormatCodec codec) { Utils.checkNotNull(codec, "codec"); @@ -88,6 +91,7 @@ public Zstandard withCodec(DestinationGcsSchemasFormatOutputFormatCodec codec) { return this; } + public Zstandard withCodec(Optional codec) { Utils.checkNotNull(codec, "codec"); this.codec = codec; @@ -95,7 +99,8 @@ public Zstandard withCodec(Optional compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); @@ -121,6 +128,7 @@ public Zstandard withIncludeChecksum(boolean includeChecksum) { return this; } + /** * If true, include a checksum with each data block. */ @@ -130,7 +138,6 @@ public Zstandard withIncludeChecksum(Optional includeChecksum) { return this; } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -141,17 +148,15 @@ public boolean equals(java.lang.Object o) { } Zstandard other = (Zstandard) o; return - Objects.deepEquals(this.codec, other.codec) && - Objects.deepEquals(this.compressionLevel, other.compressionLevel) && - Objects.deepEquals(this.includeChecksum, other.includeChecksum); + Utils.enhancedDeepEquals(this.codec, other.codec) && + Utils.enhancedDeepEquals(this.compressionLevel, other.compressionLevel) && + Utils.enhancedDeepEquals(this.includeChecksum, other.includeChecksum); } @Override public int hashCode() { - return Objects.hash( - codec, - compressionLevel, - includeChecksum); + return Utils.enhancedHash( + codec, compressionLevel, includeChecksum); } @Override @@ -161,19 +166,21 @@ public String toString() { "compressionLevel", compressionLevel, "includeChecksum", includeChecksum); } - + + @SuppressWarnings("UnusedReturnValue") public final static class Builder { - + private Optional codec; - + private Optional compressionLevel; - + private Optional includeChecksum; - + private Builder() { // force use of static builder() method } + public Builder codec(DestinationGcsSchemasFormatOutputFormatCodec codec) { Utils.checkNotNull(codec, "codec"); this.codec = Optional.ofNullable(codec); @@ -186,8 +193,10 @@ public Builder codec(Optional compressionLevel) { Utils.checkNotNull(compressionLevel, "compressionLevel"); @@ -204,6 +214,7 @@ public Builder compressionLevel(Optional compressionLevel) { return this; } + /** * If true, include a checksum with each data block. */ @@ -221,7 +232,7 @@ public Builder includeChecksum(Optional includeChecksum) { this.includeChecksum = includeChecksum; return this; } - + public Zstandard build() { if (codec == null) { codec = _SINGLETON_VALUE_Codec.value(); @@ -232,12 +243,12 @@ public Zstandard build() { if (includeChecksum == null) { includeChecksum = _SINGLETON_VALUE_IncludeChecksum.value(); } + return new Zstandard( - codec, - compressionLevel, - includeChecksum); + codec, compressionLevel, includeChecksum); } + private static final LazySingletonValue> _SINGLETON_VALUE_Codec = new LazySingletonValue<>( "codec", diff --git a/src/main/java/com/airbyte/api/operations/CancelJob.java b/src/main/java/com/airbyte/api/operations/CancelJob.java new file mode 100644 index 000000000..0e0af4986 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CancelJob.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CancelJobRequest; +import com.airbyte.api.models.operations.CancelJobResponse; +import com.airbyte.api.models.shared.JobResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CancelJob { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "cancelJob", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "cancelJob", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "cancelJob", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/jobs/{jobId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(CancelJobRequest request) throws Exception { + HttpRequest req = buildRequest(request, CancelJobRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(CancelJobRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CancelJobResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CancelJobResponse.Builder resBuilder = + CancelJobResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CancelJobResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + JobResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withJobResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(CancelJobRequest request) throws Exception { + HttpRequest req = buildRequest(request, CancelJobRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(CancelJobRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CancelJobResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CancelJobResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CancelJobResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + JobResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withJobResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateConnection.java b/src/main/java/com/airbyte/api/operations/CreateConnection.java new file mode 100644 index 000000000..a94cb683a --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateConnection.java @@ -0,0 +1,296 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateConnectionResponse; +import com.airbyte.api.models.shared.ConnectionCreateRequest; +import com.airbyte.api.models.shared.ConnectionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateConnection { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/connections"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "request", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ConnectionCreateRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ConnectionCreateRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateConnectionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateConnectionResponse.Builder resBuilder = + CreateConnectionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateConnectionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + ConnectionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withConnectionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ConnectionCreateRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ConnectionCreateRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateConnectionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateConnectionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateConnectionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + ConnectionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withConnectionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateDeclarativeSourceDefinition.java b/src/main/java/com/airbyte/api/operations/CreateDeclarativeSourceDefinition.java new file mode 100644 index 000000000..4a9d3c066 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateDeclarativeSourceDefinition.java @@ -0,0 +1,298 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionRequest; +import com.airbyte.api.models.operations.CreateDeclarativeSourceDefinitionResponse; +import com.airbyte.api.models.shared.DeclarativeSourceDefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateDeclarativeSourceDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/declarative_sources", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "createDeclarativeSourceDefinitionRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(CreateDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateDeclarativeSourceDefinitionRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(CreateDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateDeclarativeSourceDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateDeclarativeSourceDefinitionResponse.Builder resBuilder = + CreateDeclarativeSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateDeclarativeSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DeclarativeSourceDefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDeclarativeSourceDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(CreateDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateDeclarativeSourceDefinitionRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(CreateDeclarativeSourceDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateDeclarativeSourceDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateDeclarativeSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateDeclarativeSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DeclarativeSourceDefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDeclarativeSourceDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateDestination.java b/src/main/java/com/airbyte/api/operations/CreateDestination.java new file mode 100644 index 000000000..f336b9364 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateDestination.java @@ -0,0 +1,293 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateDestinationResponse; +import com.airbyte.api.models.shared.DestinationCreateRequest; +import com.airbyte.api.models.shared.DestinationResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateDestination { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/destinations"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "request", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation, CreateDestinationResponse> { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(Optional request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateDestinationResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateDestinationResponse.Builder resBuilder = + CreateDestinationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateDestinationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DestinationResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDestinationResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation, com.airbyte.api.models.operations.async.CreateDestinationResponse> { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(Optional request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateDestinationResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateDestinationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateDestinationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DestinationResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDestinationResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateDestinationDefinition.java b/src/main/java/com/airbyte/api/operations/CreateDestinationDefinition.java new file mode 100644 index 000000000..3fb80b24f --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateDestinationDefinition.java @@ -0,0 +1,298 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateDestinationDefinitionRequest; +import com.airbyte.api.models.operations.CreateDestinationDefinitionResponse; +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateDestinationDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/destinations", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "createDefinitionRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(CreateDestinationDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateDestinationDefinitionRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(CreateDestinationDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateDestinationDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateDestinationDefinitionResponse.Builder resBuilder = + CreateDestinationDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateDestinationDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(CreateDestinationDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateDestinationDefinitionRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(CreateDestinationDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateDestinationDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateDestinationDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateDestinationDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateJob.java b/src/main/java/com/airbyte/api/operations/CreateJob.java new file mode 100644 index 000000000..564e5a4c0 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateJob.java @@ -0,0 +1,296 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateJobResponse; +import com.airbyte.api.models.shared.JobCreateRequest; +import com.airbyte.api.models.shared.JobResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateJob { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createJob", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createJob", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createJob", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/jobs"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "request", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(JobCreateRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(JobCreateRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateJobResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateJobResponse.Builder resBuilder = + CreateJobResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateJobResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + JobResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withJobResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(JobCreateRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(JobCreateRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateJobResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateJobResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateJobResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + JobResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withJobResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateOrUpdateOrganizationOAuthCredentials.java b/src/main/java/com/airbyte/api/operations/CreateOrUpdateOrganizationOAuthCredentials.java new file mode 100644 index 000000000..d695370c5 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateOrUpdateOrganizationOAuthCredentials.java @@ -0,0 +1,270 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateOrUpdateOrganizationOAuthCredentialsRequest; +import com.airbyte.api.models.operations.CreateOrUpdateOrganizationOAuthCredentialsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateOrUpdateOrganizationOAuthCredentials { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createOrUpdateOrganizationOAuthCredentials", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createOrUpdateOrganizationOAuthCredentials", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createOrUpdateOrganizationOAuthCredentials", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/organizations/{organizationId}/oauthCredentials", + request, null); + HTTPRequest req = new HTTPRequest(url, "PUT"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "organizationOAuthCredentialsRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "*/*") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(CreateOrUpdateOrganizationOAuthCredentialsRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateOrUpdateOrganizationOAuthCredentialsRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(CreateOrUpdateOrganizationOAuthCredentialsRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateOrUpdateOrganizationOAuthCredentialsResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateOrUpdateOrganizationOAuthCredentialsResponse.Builder resBuilder = + CreateOrUpdateOrganizationOAuthCredentialsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateOrUpdateOrganizationOAuthCredentialsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + // no content + return res; + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(CreateOrUpdateOrganizationOAuthCredentialsRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateOrUpdateOrganizationOAuthCredentialsRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(CreateOrUpdateOrganizationOAuthCredentialsRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateOrUpdateOrganizationOAuthCredentialsResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateOrUpdateOrganizationOAuthCredentialsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateOrUpdateOrganizationOAuthCredentialsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + // no content + return CompletableFuture.completedFuture(res); + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateOrUpdateWorkspaceOAuthCredentials.java b/src/main/java/com/airbyte/api/operations/CreateOrUpdateWorkspaceOAuthCredentials.java new file mode 100644 index 000000000..98a5b6684 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateOrUpdateWorkspaceOAuthCredentials.java @@ -0,0 +1,270 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsRequest; +import com.airbyte.api.models.operations.CreateOrUpdateWorkspaceOAuthCredentialsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateOrUpdateWorkspaceOAuthCredentials { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createOrUpdateWorkspaceOAuthCredentials", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createOrUpdateWorkspaceOAuthCredentials", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createOrUpdateWorkspaceOAuthCredentials", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/oauthCredentials", + request, null); + HTTPRequest req = new HTTPRequest(url, "PUT"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "workspaceOAuthCredentialsRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "*/*") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(CreateOrUpdateWorkspaceOAuthCredentialsRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateOrUpdateWorkspaceOAuthCredentialsRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(CreateOrUpdateWorkspaceOAuthCredentialsRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateOrUpdateWorkspaceOAuthCredentialsResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateOrUpdateWorkspaceOAuthCredentialsResponse.Builder resBuilder = + CreateOrUpdateWorkspaceOAuthCredentialsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateOrUpdateWorkspaceOAuthCredentialsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + // no content + return res; + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(CreateOrUpdateWorkspaceOAuthCredentialsRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateOrUpdateWorkspaceOAuthCredentialsRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(CreateOrUpdateWorkspaceOAuthCredentialsRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateOrUpdateWorkspaceOAuthCredentialsResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateOrUpdateWorkspaceOAuthCredentialsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateOrUpdateWorkspaceOAuthCredentialsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + // no content + return CompletableFuture.completedFuture(res); + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreatePermission.java b/src/main/java/com/airbyte/api/operations/CreatePermission.java new file mode 100644 index 000000000..791305a45 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreatePermission.java @@ -0,0 +1,296 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreatePermissionResponse; +import com.airbyte.api.models.shared.PermissionCreateRequest; +import com.airbyte.api.models.shared.PermissionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreatePermission { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createPermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createPermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createPermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/permissions"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "request", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PermissionCreateRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PermissionCreateRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreatePermissionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreatePermissionResponse.Builder resBuilder = + CreatePermissionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreatePermissionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + PermissionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withPermissionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PermissionCreateRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PermissionCreateRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreatePermissionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreatePermissionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreatePermissionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + PermissionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withPermissionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateSource.java b/src/main/java/com/airbyte/api/operations/CreateSource.java new file mode 100644 index 000000000..f69d2aa03 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateSource.java @@ -0,0 +1,293 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateSourceResponse; +import com.airbyte.api.models.shared.SourceCreateRequest; +import com.airbyte.api.models.shared.SourceResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateSource { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/sources"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "request", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation, CreateSourceResponse> { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(Optional request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateSourceResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateSourceResponse.Builder resBuilder = + CreateSourceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateSourceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + SourceResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withSourceResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation, com.airbyte.api.models.operations.async.CreateSourceResponse> { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(Optional request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateSourceResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateSourceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateSourceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + SourceResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withSourceResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateSourceDefinition.java b/src/main/java/com/airbyte/api/operations/CreateSourceDefinition.java new file mode 100644 index 000000000..083963941 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateSourceDefinition.java @@ -0,0 +1,298 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateSourceDefinitionRequest; +import com.airbyte.api.models.operations.CreateSourceDefinitionResponse; +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateSourceDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/sources", + request, null); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "createDefinitionRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(CreateSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateSourceDefinitionRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(CreateSourceDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateSourceDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateSourceDefinitionResponse.Builder resBuilder = + CreateSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(CreateSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateSourceDefinitionRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(CreateSourceDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateSourceDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateTag.java b/src/main/java/com/airbyte/api/operations/CreateTag.java new file mode 100644 index 000000000..7936904f3 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateTag.java @@ -0,0 +1,296 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateTagResponse; +import com.airbyte.api.models.shared.TagCreateRequest; +import com.airbyte.api.models.shared.TagResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateTag { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/tags"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "request", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(TagCreateRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(TagCreateRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "409", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateTagResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateTagResponse.Builder resBuilder = + CreateTagResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateTagResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + TagResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withTagResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "409", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(TagCreateRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(TagCreateRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "409", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateTagResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateTagResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateTagResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + TagResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withTagResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "409", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/CreateWorkspace.java b/src/main/java/com/airbyte/api/operations/CreateWorkspace.java new file mode 100644 index 000000000..92b97d2ca --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/CreateWorkspace.java @@ -0,0 +1,296 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.CreateWorkspaceResponse; +import com.airbyte.api.models.shared.WorkspaceCreateRequest; +import com.airbyte.api.models.shared.WorkspaceResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class CreateWorkspace { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "createWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/workspaces"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "request", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(WorkspaceCreateRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(WorkspaceCreateRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public CreateWorkspaceResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + CreateWorkspaceResponse.Builder resBuilder = + CreateWorkspaceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + CreateWorkspaceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + WorkspaceResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withWorkspaceResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(WorkspaceCreateRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(WorkspaceCreateRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.CreateWorkspaceResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.CreateWorkspaceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.CreateWorkspaceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + WorkspaceResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withWorkspaceResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/DeleteConnection.java b/src/main/java/com/airbyte/api/operations/DeleteConnection.java new file mode 100644 index 000000000..c531e07a2 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/DeleteConnection.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.DeleteConnectionRequest; +import com.airbyte.api.models.operations.DeleteConnectionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class DeleteConnection { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/connections/{connectionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "*/*") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(DeleteConnectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteConnectionRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteConnectionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public DeleteConnectionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteConnectionResponse.Builder resBuilder = + DeleteConnectionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteConnectionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return res; + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(DeleteConnectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteConnectionRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(DeleteConnectionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.DeleteConnectionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.DeleteConnectionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.DeleteConnectionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return CompletableFuture.completedFuture(res); + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/DeleteDeclarativeSourceDefinition.java b/src/main/java/com/airbyte/api/operations/DeleteDeclarativeSourceDefinition.java new file mode 100644 index 000000000..128f9bb3d --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/DeleteDeclarativeSourceDefinition.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.DeleteDeclarativeSourceDefinitionRequest; +import com.airbyte.api.models.operations.DeleteDeclarativeSourceDefinitionResponse; +import com.airbyte.api.models.shared.DeclarativeSourceDefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class DeleteDeclarativeSourceDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/declarative_sources/{definitionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(DeleteDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteDeclarativeSourceDefinitionRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public DeleteDeclarativeSourceDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteDeclarativeSourceDefinitionResponse.Builder resBuilder = + DeleteDeclarativeSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteDeclarativeSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DeclarativeSourceDefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDeclarativeSourceDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(DeleteDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteDeclarativeSourceDefinitionRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(DeleteDeclarativeSourceDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.DeleteDeclarativeSourceDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.DeleteDeclarativeSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.DeleteDeclarativeSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DeclarativeSourceDefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDeclarativeSourceDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/DeleteDestination.java b/src/main/java/com/airbyte/api/operations/DeleteDestination.java new file mode 100644 index 000000000..1c6cc81ab --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/DeleteDestination.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.DeleteDestinationRequest; +import com.airbyte.api.models.operations.DeleteDestinationResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class DeleteDestination { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/destinations/{destinationId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "*/*") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(DeleteDestinationRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteDestinationRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteDestinationRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public DeleteDestinationResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteDestinationResponse.Builder resBuilder = + DeleteDestinationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteDestinationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return res; + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(DeleteDestinationRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteDestinationRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(DeleteDestinationRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.DeleteDestinationResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.DeleteDestinationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.DeleteDestinationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return CompletableFuture.completedFuture(res); + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/DeleteDestinationDefinition.java b/src/main/java/com/airbyte/api/operations/DeleteDestinationDefinition.java new file mode 100644 index 000000000..556b489d5 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/DeleteDestinationDefinition.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.DeleteDestinationDefinitionRequest; +import com.airbyte.api.models.operations.DeleteDestinationDefinitionResponse; +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class DeleteDestinationDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/destinations/{definitionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(DeleteDestinationDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteDestinationDefinitionRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteDestinationDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public DeleteDestinationDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteDestinationDefinitionResponse.Builder resBuilder = + DeleteDestinationDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteDestinationDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(DeleteDestinationDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteDestinationDefinitionRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(DeleteDestinationDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.DeleteDestinationDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.DeleteDestinationDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.DeleteDestinationDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/DeletePermission.java b/src/main/java/com/airbyte/api/operations/DeletePermission.java new file mode 100644 index 000000000..30bb934d5 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/DeletePermission.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.DeletePermissionRequest; +import com.airbyte.api.models.operations.DeletePermissionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class DeletePermission { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deletePermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deletePermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deletePermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/permissions/{permissionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "*/*") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(DeletePermissionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeletePermissionRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeletePermissionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "422", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public DeletePermissionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeletePermissionResponse.Builder resBuilder = + DeletePermissionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeletePermissionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return res; + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "422", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(DeletePermissionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeletePermissionRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(DeletePermissionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "422", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.DeletePermissionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.DeletePermissionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.DeletePermissionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return CompletableFuture.completedFuture(res); + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "422", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/DeleteSource.java b/src/main/java/com/airbyte/api/operations/DeleteSource.java new file mode 100644 index 000000000..db0cadf26 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/DeleteSource.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.DeleteSourceRequest; +import com.airbyte.api.models.operations.DeleteSourceResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class DeleteSource { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/sources/{sourceId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "*/*") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(DeleteSourceRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteSourceRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteSourceRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public DeleteSourceResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteSourceResponse.Builder resBuilder = + DeleteSourceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteSourceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return res; + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(DeleteSourceRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteSourceRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(DeleteSourceRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.DeleteSourceResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.DeleteSourceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.DeleteSourceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return CompletableFuture.completedFuture(res); + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/DeleteSourceDefinition.java b/src/main/java/com/airbyte/api/operations/DeleteSourceDefinition.java new file mode 100644 index 000000000..206bc6427 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/DeleteSourceDefinition.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.DeleteSourceDefinitionRequest; +import com.airbyte.api.models.operations.DeleteSourceDefinitionResponse; +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class DeleteSourceDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/sources/{definitionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(DeleteSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteSourceDefinitionRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteSourceDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public DeleteSourceDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteSourceDefinitionResponse.Builder resBuilder = + DeleteSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(DeleteSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteSourceDefinitionRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(DeleteSourceDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.DeleteSourceDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.DeleteSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.DeleteSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/DeleteTag.java b/src/main/java/com/airbyte/api/operations/DeleteTag.java new file mode 100644 index 000000000..fb30f99f2 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/DeleteTag.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.DeleteTagRequest; +import com.airbyte.api.models.operations.DeleteTagResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class DeleteTag { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/tags/{tagId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "*/*") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(DeleteTagRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteTagRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteTagRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public DeleteTagResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteTagResponse.Builder resBuilder = + DeleteTagResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteTagResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return res; + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(DeleteTagRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteTagRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(DeleteTagRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.DeleteTagResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.DeleteTagResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.DeleteTagResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return CompletableFuture.completedFuture(res); + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/DeleteWorkspace.java b/src/main/java/com/airbyte/api/operations/DeleteWorkspace.java new file mode 100644 index 000000000..d50da2ece --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/DeleteWorkspace.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.DeleteWorkspaceRequest; +import com.airbyte.api.models.operations.DeleteWorkspaceResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class DeleteWorkspace { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "deleteWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "DELETE"); + req.addHeader("Accept", "*/*") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(DeleteWorkspaceRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteWorkspaceRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(DeleteWorkspaceRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public DeleteWorkspaceResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + DeleteWorkspaceResponse.Builder resBuilder = + DeleteWorkspaceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + DeleteWorkspaceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return res; + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(DeleteWorkspaceRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteWorkspaceRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(DeleteWorkspaceRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.DeleteWorkspaceResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.DeleteWorkspaceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.DeleteWorkspaceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "204")) { + // no content + return CompletableFuture.completedFuture(res); + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetConnection.java b/src/main/java/com/airbyte/api/operations/GetConnection.java new file mode 100644 index 000000000..2ee57946f --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetConnection.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetConnectionRequest; +import com.airbyte.api.models.operations.GetConnectionResponse; +import com.airbyte.api.models.shared.ConnectionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetConnection { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/connections/{connectionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetConnectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetConnectionRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetConnectionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetConnectionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetConnectionResponse.Builder resBuilder = + GetConnectionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetConnectionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + ConnectionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withConnectionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetConnectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetConnectionRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetConnectionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetConnectionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetConnectionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetConnectionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + ConnectionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withConnectionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetDeclarativeSourceDefinition.java b/src/main/java/com/airbyte/api/operations/GetDeclarativeSourceDefinition.java new file mode 100644 index 000000000..61201f1e9 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetDeclarativeSourceDefinition.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetDeclarativeSourceDefinitionRequest; +import com.airbyte.api.models.operations.GetDeclarativeSourceDefinitionResponse; +import com.airbyte.api.models.shared.DeclarativeSourceDefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetDeclarativeSourceDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/declarative_sources/{definitionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetDeclarativeSourceDefinitionRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetDeclarativeSourceDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetDeclarativeSourceDefinitionResponse.Builder resBuilder = + GetDeclarativeSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetDeclarativeSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DeclarativeSourceDefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDeclarativeSourceDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetDeclarativeSourceDefinitionRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetDeclarativeSourceDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetDeclarativeSourceDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetDeclarativeSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetDeclarativeSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DeclarativeSourceDefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDeclarativeSourceDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetDestination.java b/src/main/java/com/airbyte/api/operations/GetDestination.java new file mode 100644 index 000000000..edad02747 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetDestination.java @@ -0,0 +1,287 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetDestinationRequest; +import com.airbyte.api.models.operations.GetDestinationResponse; +import com.airbyte.api.models.shared.DestinationResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetDestination { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/destinations/{destinationId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetDestinationRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetDestinationRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetDestinationRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetDestinationResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetDestinationResponse.Builder resBuilder = + GetDestinationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetDestinationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DestinationResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDestinationResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetDestinationRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetDestinationRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetDestinationRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetDestinationResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetDestinationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetDestinationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DestinationResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDestinationResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetDestinationDefinition.java b/src/main/java/com/airbyte/api/operations/GetDestinationDefinition.java new file mode 100644 index 000000000..3ddaf87fd --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetDestinationDefinition.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetDestinationDefinitionRequest; +import com.airbyte.api.models.operations.GetDestinationDefinitionResponse; +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetDestinationDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/destinations/{definitionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetDestinationDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetDestinationDefinitionRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetDestinationDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetDestinationDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetDestinationDefinitionResponse.Builder resBuilder = + GetDestinationDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetDestinationDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetDestinationDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetDestinationDefinitionRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetDestinationDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetDestinationDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetDestinationDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetDestinationDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetHealthCheck.java b/src/main/java/com/airbyte/api/operations/GetHealthCheck.java new file mode 100644 index 000000000..dc3184f92 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetHealthCheck.java @@ -0,0 +1,249 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestlessOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestlessOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetHealthCheckResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetHealthCheck { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = null; + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getHealthCheck", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getHealthCheck", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getHealthCheck", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest() throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/health"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "*/*") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestlessOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest() throws Exception { + HttpRequest req = buildRequest(); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest() throws Exception { + HttpRequest r = onBuildRequest(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetHealthCheckResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetHealthCheckResponse.Builder resBuilder = + GetHealthCheckResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetHealthCheckResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + // no content + return res; + } + + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestlessOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest() throws Exception { + HttpRequest req = buildRequest(); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest() { + return Exceptions.unchecked(() -> onBuildRequest()).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetHealthCheckResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetHealthCheckResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetHealthCheckResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + // no content + return CompletableFuture.completedFuture(res); + } + + if (Utils.statusCodeMatches(response.statusCode(), "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetJob.java b/src/main/java/com/airbyte/api/operations/GetJob.java new file mode 100644 index 000000000..ded070c02 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetJob.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetJobRequest; +import com.airbyte.api.models.operations.GetJobResponse; +import com.airbyte.api.models.shared.JobResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetJob { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getJob", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getJob", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getJob", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/jobs/{jobId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetJobRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetJobRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetJobRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetJobResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetJobResponse.Builder resBuilder = + GetJobResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetJobResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + JobResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withJobResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetJobRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetJobRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetJobRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetJobResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetJobResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetJobResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + JobResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withJobResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetPermission.java b/src/main/java/com/airbyte/api/operations/GetPermission.java new file mode 100644 index 000000000..dd31ac043 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetPermission.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetPermissionRequest; +import com.airbyte.api.models.operations.GetPermissionResponse; +import com.airbyte.api.models.shared.PermissionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetPermission { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getPermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getPermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getPermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/permissions/{permissionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetPermissionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetPermissionRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetPermissionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "422", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetPermissionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetPermissionResponse.Builder resBuilder = + GetPermissionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetPermissionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + PermissionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withPermissionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "422", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetPermissionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetPermissionRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetPermissionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "422", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetPermissionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetPermissionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetPermissionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + PermissionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withPermissionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "422", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetSource.java b/src/main/java/com/airbyte/api/operations/GetSource.java new file mode 100644 index 000000000..d24e1285c --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetSource.java @@ -0,0 +1,287 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetSourceRequest; +import com.airbyte.api.models.operations.GetSourceResponse; +import com.airbyte.api.models.shared.SourceResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetSource { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/sources/{sourceId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetSourceRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetSourceRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetSourceRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetSourceResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetSourceResponse.Builder resBuilder = + GetSourceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetSourceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + SourceResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withSourceResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetSourceRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetSourceRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetSourceRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetSourceResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetSourceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetSourceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + SourceResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withSourceResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetSourceDefinition.java b/src/main/java/com/airbyte/api/operations/GetSourceDefinition.java new file mode 100644 index 000000000..25f92ae31 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetSourceDefinition.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetSourceDefinitionRequest; +import com.airbyte.api.models.operations.GetSourceDefinitionResponse; +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetSourceDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/sources/{definitionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetSourceDefinitionRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetSourceDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetSourceDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetSourceDefinitionResponse.Builder resBuilder = + GetSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetSourceDefinitionRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetSourceDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetSourceDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetStreamProperties.java b/src/main/java/com/airbyte/api/operations/GetStreamProperties.java new file mode 100644 index 000000000..6be62b335 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetStreamProperties.java @@ -0,0 +1,286 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetStreamPropertiesRequest; +import com.airbyte.api.models.operations.GetStreamPropertiesResponse; +import com.airbyte.api.models.shared.StreamProperties; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetStreamProperties { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getStreamProperties", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getStreamProperties", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getStreamProperties", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/streams"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetStreamPropertiesRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetStreamPropertiesRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetStreamPropertiesRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetStreamPropertiesResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetStreamPropertiesResponse.Builder resBuilder = + GetStreamPropertiesResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetStreamPropertiesResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + List out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withStreamPropertiesResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetStreamPropertiesRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetStreamPropertiesRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetStreamPropertiesRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetStreamPropertiesResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetStreamPropertiesResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetStreamPropertiesResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + List out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withStreamPropertiesResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetTag.java b/src/main/java/com/airbyte/api/operations/GetTag.java new file mode 100644 index 000000000..c34d65024 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetTag.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetTagRequest; +import com.airbyte.api.models.operations.GetTagResponse; +import com.airbyte.api.models.shared.TagResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetTag { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/tags/{tagId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetTagRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetTagRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetTagRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetTagResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetTagResponse.Builder resBuilder = + GetTagResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetTagResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + TagResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withTagResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetTagRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetTagRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetTagRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetTagResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetTagResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetTagResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + TagResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withTagResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/GetWorkspace.java b/src/main/java/com/airbyte/api/operations/GetWorkspace.java new file mode 100644 index 000000000..d057511f6 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/GetWorkspace.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.GetWorkspaceRequest; +import com.airbyte.api.models.operations.GetWorkspaceResponse; +import com.airbyte.api.models.shared.WorkspaceResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class GetWorkspace { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(GetWorkspaceRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetWorkspaceRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetWorkspaceRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public GetWorkspaceResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetWorkspaceResponse.Builder resBuilder = + GetWorkspaceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetWorkspaceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + WorkspaceResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withWorkspaceResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(GetWorkspaceRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetWorkspaceRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(GetWorkspaceRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.GetWorkspaceResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.GetWorkspaceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.GetWorkspaceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + WorkspaceResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withWorkspaceResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/InitiateOAuth.java b/src/main/java/com/airbyte/api/operations/InitiateOAuth.java new file mode 100644 index 000000000..f962d4883 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/InitiateOAuth.java @@ -0,0 +1,268 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.InitiateOAuthResponse; +import com.airbyte.api.models.shared.InitiateOauthRequest; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class InitiateOAuth { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "initiateOAuth", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "initiateOAuth", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "initiateOAuth", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/sources/initiateOAuth"); + HTTPRequest req = new HTTPRequest(url, "POST"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "request", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "*/*") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(InitiateOauthRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(InitiateOauthRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public InitiateOAuthResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + InitiateOAuthResponse.Builder resBuilder = + InitiateOAuthResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + InitiateOAuthResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + // no content + return res; + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(InitiateOauthRequest request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(InitiateOauthRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.InitiateOAuthResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.InitiateOAuthResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.InitiateOAuthResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + // no content + return CompletableFuture.completedFuture(res); + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListConnections.java b/src/main/java/com/airbyte/api/operations/ListConnections.java new file mode 100644 index 000000000..5e5c828bd --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListConnections.java @@ -0,0 +1,285 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListConnectionsRequest; +import com.airbyte.api.models.operations.ListConnectionsResponse; +import com.airbyte.api.models.shared.ConnectionsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListConnections { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listConnections", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listConnections", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listConnections", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/connections"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListConnectionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListConnectionsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListConnectionsRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListConnectionsResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListConnectionsResponse.Builder resBuilder = + ListConnectionsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListConnectionsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + ConnectionsResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withConnectionsResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListConnectionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListConnectionsRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListConnectionsRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListConnectionsResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListConnectionsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListConnectionsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + ConnectionsResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withConnectionsResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListDeclarativeSourceDefinitions.java b/src/main/java/com/airbyte/api/operations/ListDeclarativeSourceDefinitions.java new file mode 100644 index 000000000..3b5d10d9d --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListDeclarativeSourceDefinitions.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListDeclarativeSourceDefinitionsRequest; +import com.airbyte.api.models.operations.ListDeclarativeSourceDefinitionsResponse; +import com.airbyte.api.models.shared.DeclarativeSourceDefinitionsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListDeclarativeSourceDefinitions { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listDeclarativeSourceDefinitions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listDeclarativeSourceDefinitions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listDeclarativeSourceDefinitions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/declarative_sources", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListDeclarativeSourceDefinitionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListDeclarativeSourceDefinitionsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListDeclarativeSourceDefinitionsRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListDeclarativeSourceDefinitionsResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListDeclarativeSourceDefinitionsResponse.Builder resBuilder = + ListDeclarativeSourceDefinitionsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListDeclarativeSourceDefinitionsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DeclarativeSourceDefinitionsResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDeclarativeSourceDefinitionsResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListDeclarativeSourceDefinitionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListDeclarativeSourceDefinitionsRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListDeclarativeSourceDefinitionsRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListDeclarativeSourceDefinitionsResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListDeclarativeSourceDefinitionsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListDeclarativeSourceDefinitionsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DeclarativeSourceDefinitionsResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDeclarativeSourceDefinitionsResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListDestinationDefinitions.java b/src/main/java/com/airbyte/api/operations/ListDestinationDefinitions.java new file mode 100644 index 000000000..27a29c302 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListDestinationDefinitions.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListDestinationDefinitionsRequest; +import com.airbyte.api.models.operations.ListDestinationDefinitionsResponse; +import com.airbyte.api.models.shared.DefinitionsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListDestinationDefinitions { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listDestinationDefinitions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listDestinationDefinitions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listDestinationDefinitions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/destinations", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListDestinationDefinitionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListDestinationDefinitionsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListDestinationDefinitionsRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListDestinationDefinitionsResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListDestinationDefinitionsResponse.Builder resBuilder = + ListDestinationDefinitionsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListDestinationDefinitionsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DefinitionsResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDefinitionsResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListDestinationDefinitionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListDestinationDefinitionsRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListDestinationDefinitionsRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListDestinationDefinitionsResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListDestinationDefinitionsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListDestinationDefinitionsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DefinitionsResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDefinitionsResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListDestinations.java b/src/main/java/com/airbyte/api/operations/ListDestinations.java new file mode 100644 index 000000000..b41728269 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListDestinations.java @@ -0,0 +1,285 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListDestinationsRequest; +import com.airbyte.api.models.operations.ListDestinationsResponse; +import com.airbyte.api.models.shared.DestinationsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListDestinations { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listDestinations", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listDestinations", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listDestinations", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/destinations"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListDestinationsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListDestinationsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListDestinationsRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListDestinationsResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListDestinationsResponse.Builder resBuilder = + ListDestinationsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListDestinationsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DestinationsResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDestinationsResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListDestinationsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListDestinationsRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListDestinationsRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListDestinationsResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListDestinationsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListDestinationsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DestinationsResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDestinationsResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListJobs.java b/src/main/java/com/airbyte/api/operations/ListJobs.java new file mode 100644 index 000000000..05fad93cb --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListJobs.java @@ -0,0 +1,285 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListJobsRequest; +import com.airbyte.api.models.operations.ListJobsResponse; +import com.airbyte.api.models.shared.JobsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListJobs { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listJobs", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listJobs", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listJobs", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/jobs"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListJobsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListJobsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListJobsRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListJobsResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListJobsResponse.Builder resBuilder = + ListJobsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListJobsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + JobsResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withJobsResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListJobsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListJobsRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListJobsRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListJobsResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListJobsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListJobsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + JobsResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withJobsResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListOrganizationsForUser.java b/src/main/java/com/airbyte/api/operations/ListOrganizationsForUser.java new file mode 100644 index 000000000..43f27f827 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListOrganizationsForUser.java @@ -0,0 +1,279 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestlessOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestlessOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListOrganizationsForUserResponse; +import com.airbyte.api.models.shared.OrganizationsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListOrganizationsForUser { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listOrganizationsForUser", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listOrganizationsForUser", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listOrganizationsForUser", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest() throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/organizations"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestlessOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest() throws Exception { + HttpRequest req = buildRequest(); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest() throws Exception { + HttpRequest r = onBuildRequest(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListOrganizationsForUserResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListOrganizationsForUserResponse.Builder resBuilder = + ListOrganizationsForUserResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListOrganizationsForUserResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + OrganizationsResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withOrganizationsResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestlessOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest() throws Exception { + HttpRequest req = buildRequest(); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest() { + return Exceptions.unchecked(() -> onBuildRequest()).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListOrganizationsForUserResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListOrganizationsForUserResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListOrganizationsForUserResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + OrganizationsResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withOrganizationsResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListPermissions.java b/src/main/java/com/airbyte/api/operations/ListPermissions.java new file mode 100644 index 000000000..c147ad0e0 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListPermissions.java @@ -0,0 +1,285 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListPermissionsRequest; +import com.airbyte.api.models.operations.ListPermissionsResponse; +import com.airbyte.api.models.shared.PermissionsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListPermissions { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listPermissions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listPermissions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listPermissions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/permissions"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListPermissionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListPermissionsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListPermissionsRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListPermissionsResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListPermissionsResponse.Builder resBuilder = + ListPermissionsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListPermissionsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + PermissionsResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withPermissionsResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListPermissionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListPermissionsRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListPermissionsRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListPermissionsResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListPermissionsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListPermissionsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + PermissionsResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withPermissionsResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListSourceDefinitions.java b/src/main/java/com/airbyte/api/operations/ListSourceDefinitions.java new file mode 100644 index 000000000..e2f0be28d --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListSourceDefinitions.java @@ -0,0 +1,282 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListSourceDefinitionsRequest; +import com.airbyte.api.models.operations.ListSourceDefinitionsResponse; +import com.airbyte.api.models.shared.DefinitionsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListSourceDefinitions { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listSourceDefinitions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listSourceDefinitions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listSourceDefinitions", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/sources", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListSourceDefinitionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListSourceDefinitionsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListSourceDefinitionsRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListSourceDefinitionsResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListSourceDefinitionsResponse.Builder resBuilder = + ListSourceDefinitionsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListSourceDefinitionsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DefinitionsResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDefinitionsResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListSourceDefinitionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListSourceDefinitionsRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListSourceDefinitionsRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListSourceDefinitionsResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListSourceDefinitionsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListSourceDefinitionsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DefinitionsResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDefinitionsResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListSources.java b/src/main/java/com/airbyte/api/operations/ListSources.java new file mode 100644 index 000000000..5cec38e84 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListSources.java @@ -0,0 +1,285 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListSourcesRequest; +import com.airbyte.api.models.operations.ListSourcesResponse; +import com.airbyte.api.models.shared.SourcesResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListSources { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listSources", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listSources", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listSources", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/sources"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListSourcesRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListSourcesRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListSourcesRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListSourcesResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListSourcesResponse.Builder resBuilder = + ListSourcesResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListSourcesResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + SourcesResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withSourcesResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListSourcesRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListSourcesRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListSourcesRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListSourcesResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListSourcesResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListSourcesResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + SourcesResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withSourcesResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListTags.java b/src/main/java/com/airbyte/api/operations/ListTags.java new file mode 100644 index 000000000..725dcf1e5 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListTags.java @@ -0,0 +1,285 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListTagsRequest; +import com.airbyte.api.models.operations.ListTagsResponse; +import com.airbyte.api.models.shared.TagsResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListTags { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listTags", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listTags", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listTags", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/tags"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListTagsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListTagsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListTagsRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListTagsResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListTagsResponse.Builder resBuilder = + ListTagsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListTagsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + TagsResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withTagsResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListTagsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListTagsRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListTagsRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListTagsResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListTagsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListTagsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + TagsResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withTagsResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListUsersWithinAnOrganization.java b/src/main/java/com/airbyte/api/operations/ListUsersWithinAnOrganization.java new file mode 100644 index 000000000..8b710cb42 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListUsersWithinAnOrganization.java @@ -0,0 +1,285 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListUsersWithinAnOrganizationRequest; +import com.airbyte.api.models.operations.ListUsersWithinAnOrganizationResponse; +import com.airbyte.api.models.shared.UsersResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListUsersWithinAnOrganization { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listUsersWithinAnOrganization", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listUsersWithinAnOrganization", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listUsersWithinAnOrganization", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/users"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListUsersWithinAnOrganizationRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListUsersWithinAnOrganizationRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListUsersWithinAnOrganizationRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListUsersWithinAnOrganizationResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListUsersWithinAnOrganizationResponse.Builder resBuilder = + ListUsersWithinAnOrganizationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListUsersWithinAnOrganizationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + UsersResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withUsersResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListUsersWithinAnOrganizationRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListUsersWithinAnOrganizationRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListUsersWithinAnOrganizationRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListUsersWithinAnOrganizationResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListUsersWithinAnOrganizationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListUsersWithinAnOrganizationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + UsersResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withUsersResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/ListWorkspaces.java b/src/main/java/com/airbyte/api/operations/ListWorkspaces.java new file mode 100644 index 000000000..49cc9b8e9 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/ListWorkspaces.java @@ -0,0 +1,285 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.ListWorkspacesRequest; +import com.airbyte.api.models.operations.ListWorkspacesResponse; +import com.airbyte.api.models.shared.WorkspacesResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class ListWorkspaces { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listWorkspaces", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listWorkspaces", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listWorkspaces", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/workspaces"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(ListWorkspacesRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListWorkspacesRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListWorkspacesRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public ListWorkspacesResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListWorkspacesResponse.Builder resBuilder = + ListWorkspacesResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListWorkspacesResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + WorkspacesResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withWorkspacesResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(ListWorkspacesRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListWorkspacesRequest.class); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(ListWorkspacesRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.ListWorkspacesResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.ListWorkspacesResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.ListWorkspacesResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + WorkspacesResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withWorkspacesResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/Operations.java b/src/main/java/com/airbyte/api/operations/Operations.java new file mode 100644 index 000000000..f98c8c846 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/Operations.java @@ -0,0 +1,56 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import com.airbyte.api.utils.Blob; + +import java.io.InputStream; +import java.net.http.HttpResponse; +import java.util.concurrent.CompletableFuture; + +// Internal API only + +public class Operations { + /** + * Base interface for all operations + */ + public interface Operation { + ResT handleResponse(HttpResponse response) throws Exception; + } + + /** + * Interface for operations that require a request parameter + */ + public interface RequestOperation extends Operation { + HttpResponse doRequest(ReqT request) throws Exception; + } + + /** + * Interface for operations that don't require a request parameter + */ + public interface RequestlessOperation extends Operation { + HttpResponse doRequest() throws Exception; + } + + /** + * Base interface for all async operations + */ + public interface AsyncOperation { + CompletableFuture handleResponse(HttpResponse response); + } + + /** + * Interface for async operations that require a request parameter + */ + public interface AsyncRequestOperation extends AsyncOperation { + CompletableFuture> doRequest(ReqT request); + } + + /** + * Interface for async operations that don't require a request parameter + */ + public interface AsyncRequestlessOperation extends AsyncOperation { + CompletableFuture> doRequest(); + } +} \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/operations/PatchConnection.java b/src/main/java/com/airbyte/api/operations/PatchConnection.java new file mode 100644 index 000000000..8427d01ab --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/PatchConnection.java @@ -0,0 +1,298 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.PatchConnectionRequest; +import com.airbyte.api.models.operations.PatchConnectionResponse; +import com.airbyte.api.models.shared.ConnectionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class PatchConnection { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "patchConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "patchConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "patchConnection", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/connections/{connectionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PATCH"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "connectionPatchRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PatchConnectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, PatchConnectionRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PatchConnectionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public PatchConnectionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PatchConnectionResponse.Builder resBuilder = + PatchConnectionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + PatchConnectionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + ConnectionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withConnectionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PatchConnectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, PatchConnectionRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PatchConnectionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.PatchConnectionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.PatchConnectionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.PatchConnectionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + ConnectionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withConnectionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/PatchDestination.java b/src/main/java/com/airbyte/api/operations/PatchDestination.java new file mode 100644 index 000000000..cdb2b567d --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/PatchDestination.java @@ -0,0 +1,295 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.PatchDestinationRequest; +import com.airbyte.api.models.operations.PatchDestinationResponse; +import com.airbyte.api.models.shared.DestinationResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class PatchDestination { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "patchDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "patchDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "patchDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/destinations/{destinationId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PATCH"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "destinationPatchRequest", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PatchDestinationRequest request) throws Exception { + HttpRequest req = buildRequest(request, PatchDestinationRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PatchDestinationRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public PatchDestinationResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PatchDestinationResponse.Builder resBuilder = + PatchDestinationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + PatchDestinationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DestinationResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDestinationResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PatchDestinationRequest request) throws Exception { + HttpRequest req = buildRequest(request, PatchDestinationRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PatchDestinationRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.PatchDestinationResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.PatchDestinationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.PatchDestinationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DestinationResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDestinationResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/PatchSource.java b/src/main/java/com/airbyte/api/operations/PatchSource.java new file mode 100644 index 000000000..b3459fc6f --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/PatchSource.java @@ -0,0 +1,295 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.PatchSourceRequest; +import com.airbyte.api.models.operations.PatchSourceResponse; +import com.airbyte.api.models.shared.SourceResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class PatchSource { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "patchSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "patchSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "patchSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/sources/{sourceId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PATCH"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "sourcePatchRequest", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PatchSourceRequest request) throws Exception { + HttpRequest req = buildRequest(request, PatchSourceRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PatchSourceRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public PatchSourceResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PatchSourceResponse.Builder resBuilder = + PatchSourceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + PatchSourceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + SourceResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withSourceResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PatchSourceRequest request) throws Exception { + HttpRequest req = buildRequest(request, PatchSourceRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PatchSourceRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.PatchSourceResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.PatchSourceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.PatchSourceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + SourceResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withSourceResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/PutDestination.java b/src/main/java/com/airbyte/api/operations/PutDestination.java new file mode 100644 index 000000000..f52ebb46e --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/PutDestination.java @@ -0,0 +1,295 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.PutDestinationRequest; +import com.airbyte.api.models.operations.PutDestinationResponse; +import com.airbyte.api.models.shared.DestinationResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class PutDestination { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "putDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "putDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "putDestination", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/destinations/{destinationId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PUT"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "destinationPutRequest", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PutDestinationRequest request) throws Exception { + HttpRequest req = buildRequest(request, PutDestinationRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PutDestinationRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public PutDestinationResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PutDestinationResponse.Builder resBuilder = + PutDestinationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + PutDestinationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DestinationResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDestinationResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PutDestinationRequest request) throws Exception { + HttpRequest req = buildRequest(request, PutDestinationRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PutDestinationRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.PutDestinationResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.PutDestinationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.PutDestinationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DestinationResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDestinationResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/PutSource.java b/src/main/java/com/airbyte/api/operations/PutSource.java new file mode 100644 index 000000000..2c929c5f6 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/PutSource.java @@ -0,0 +1,295 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.PutSourceRequest; +import com.airbyte.api.models.operations.PutSourceResponse; +import com.airbyte.api.models.shared.SourceResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class PutSource { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "putSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "putSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "putSource", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/sources/{sourceId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PUT"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "sourcePutRequest", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(PutSourceRequest request) throws Exception { + HttpRequest req = buildRequest(request, PutSourceRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(PutSourceRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public PutSourceResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + PutSourceResponse.Builder resBuilder = + PutSourceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + PutSourceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + SourceResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withSourceResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(PutSourceRequest request) throws Exception { + HttpRequest req = buildRequest(request, PutSourceRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(PutSourceRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.PutSourceResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.PutSourceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.PutSourceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + SourceResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withSourceResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/UpdateDeclarativeSourceDefinition.java b/src/main/java/com/airbyte/api/operations/UpdateDeclarativeSourceDefinition.java new file mode 100644 index 000000000..69c1f9aa4 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/UpdateDeclarativeSourceDefinition.java @@ -0,0 +1,298 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionRequest; +import com.airbyte.api.models.operations.UpdateDeclarativeSourceDefinitionResponse; +import com.airbyte.api.models.shared.DeclarativeSourceDefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class UpdateDeclarativeSourceDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateDeclarativeSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/declarative_sources/{definitionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PUT"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "updateDeclarativeSourceDefinitionRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(UpdateDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateDeclarativeSourceDefinitionRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(UpdateDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public UpdateDeclarativeSourceDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + UpdateDeclarativeSourceDefinitionResponse.Builder resBuilder = + UpdateDeclarativeSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + UpdateDeclarativeSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DeclarativeSourceDefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDeclarativeSourceDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(UpdateDeclarativeSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateDeclarativeSourceDefinitionRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(UpdateDeclarativeSourceDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.UpdateDeclarativeSourceDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.UpdateDeclarativeSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.UpdateDeclarativeSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DeclarativeSourceDefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDeclarativeSourceDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/UpdateDestinationDefinition.java b/src/main/java/com/airbyte/api/operations/UpdateDestinationDefinition.java new file mode 100644 index 000000000..39f76c59e --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/UpdateDestinationDefinition.java @@ -0,0 +1,298 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.UpdateDestinationDefinitionRequest; +import com.airbyte.api.models.operations.UpdateDestinationDefinitionResponse; +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class UpdateDestinationDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateDestinationDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/destinations/{definitionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PUT"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "updateDefinitionRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(UpdateDestinationDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateDestinationDefinitionRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(UpdateDestinationDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public UpdateDestinationDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + UpdateDestinationDefinitionResponse.Builder resBuilder = + UpdateDestinationDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + UpdateDestinationDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(UpdateDestinationDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateDestinationDefinitionRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(UpdateDestinationDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.UpdateDestinationDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.UpdateDestinationDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.UpdateDestinationDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/UpdatePermission.java b/src/main/java/com/airbyte/api/operations/UpdatePermission.java new file mode 100644 index 000000000..194f354ee --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/UpdatePermission.java @@ -0,0 +1,298 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.UpdatePermissionRequest; +import com.airbyte.api.models.operations.UpdatePermissionResponse; +import com.airbyte.api.models.shared.PermissionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class UpdatePermission { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updatePermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updatePermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updatePermission", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/permissions/{permissionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PATCH"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "permissionUpdateRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(UpdatePermissionRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdatePermissionRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(UpdatePermissionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "404", "422", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public UpdatePermissionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + UpdatePermissionResponse.Builder resBuilder = + UpdatePermissionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + UpdatePermissionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + PermissionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withPermissionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "422", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(UpdatePermissionRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdatePermissionRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(UpdatePermissionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "404", "422", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.UpdatePermissionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.UpdatePermissionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.UpdatePermissionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + PermissionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withPermissionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "422", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/UpdateSourceDefinition.java b/src/main/java/com/airbyte/api/operations/UpdateSourceDefinition.java new file mode 100644 index 000000000..1fc2794b7 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/UpdateSourceDefinition.java @@ -0,0 +1,298 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.UpdateSourceDefinitionRequest; +import com.airbyte.api.models.operations.UpdateSourceDefinitionResponse; +import com.airbyte.api.models.shared.DefinitionResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class UpdateSourceDefinition { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateSourceDefinition", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}/definitions/sources/{definitionId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PUT"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "updateDefinitionRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(UpdateSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateSourceDefinitionRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(UpdateSourceDefinitionRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public UpdateSourceDefinitionResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + UpdateSourceDefinitionResponse.Builder resBuilder = + UpdateSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + UpdateSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + DefinitionResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(UpdateSourceDefinitionRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateSourceDefinitionRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(UpdateSourceDefinitionRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.UpdateSourceDefinitionResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.UpdateSourceDefinitionResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.UpdateSourceDefinitionResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + DefinitionResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withDefinitionResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/UpdateTag.java b/src/main/java/com/airbyte/api/operations/UpdateTag.java new file mode 100644 index 000000000..ca30f2404 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/UpdateTag.java @@ -0,0 +1,298 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.UpdateTagRequest; +import com.airbyte.api.models.operations.UpdateTagResponse; +import com.airbyte.api.models.shared.TagResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class UpdateTag { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateTag", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/tags/{tagId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PATCH"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "tagPatchRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(UpdateTagRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateTagRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(UpdateTagRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "404", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public UpdateTagResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + UpdateTagResponse.Builder resBuilder = + UpdateTagResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + UpdateTagResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + TagResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withTagResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(UpdateTagRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateTagRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(UpdateTagRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "404", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.UpdateTagResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.UpdateTagResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.UpdateTagResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + TagResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withTagResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "404", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/operations/UpdateWorkspace.java b/src/main/java/com/airbyte/api/operations/UpdateWorkspace.java new file mode 100644 index 000000000..fe9f67335 --- /dev/null +++ b/src/main/java/com/airbyte/api/operations/UpdateWorkspace.java @@ -0,0 +1,298 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.operations; + +import static com.airbyte.api.operations.Operations.RequestOperation; +import static com.airbyte.api.operations.Operations.AsyncRequestOperation; + +import com.airbyte.api.SDKConfiguration; +import com.airbyte.api.SecuritySource; +import com.airbyte.api.models.errors.SDKError; +import com.airbyte.api.models.operations.UpdateWorkspaceRequest; +import com.airbyte.api.models.operations.UpdateWorkspaceResponse; +import com.airbyte.api.models.shared.WorkspaceResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.Exceptions; +import com.airbyte.api.utils.HTTPClient; +import com.airbyte.api.utils.HTTPRequest; +import com.airbyte.api.utils.Headers; +import com.airbyte.api.utils.Hook.AfterErrorContextImpl; +import com.airbyte.api.utils.Hook.AfterSuccessContextImpl; +import com.airbyte.api.utils.Hook.BeforeRequestContextImpl; +import com.airbyte.api.utils.SerializedBody; +import com.airbyte.api.utils.Utils.JsonShape; +import com.airbyte.api.utils.Utils; +import com.fasterxml.jackson.core.type.TypeReference; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.Throwable; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.function.Function; + + +public class UpdateWorkspace { + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = this.sdkConfiguration.serverUrl(); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "updateWorkspace", + java.util.Optional.of(java.util.List.of()), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/workspaces/{workspaceId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "PATCH"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "workspaceUpdateRequest", + "json", + false); + if (serializedRequestBody == null) { + throw new Exception("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private HttpRequest onBuildRequest(UpdateWorkspaceRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateWorkspaceRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(UpdateWorkspaceRequest request) throws Exception { + HttpRequest r = onBuildRequest(request); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "400", "403", "4XX", "5XX")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = onError(null, e); + } + + return httpRes; + } + + + @Override + public UpdateWorkspaceResponse handleResponse(HttpResponse response) throws Exception { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + UpdateWorkspaceResponse.Builder resBuilder = + UpdateWorkspaceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + UpdateWorkspaceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + WorkspaceResponse out = Utils.mapper().readValue( + response.body(), + new TypeReference<>() { + }); + res.withWorkspaceResponse(out); + return res; + } else { + throw new SDKError( + response, + response.statusCode(), + "Unexpected content-type received: " + contentType, + Utils.extractByteArrayFromBody(response)); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + throw new SDKError( + response, + response.statusCode(), + "API error occurred", + Utils.extractByteArrayFromBody(response)); + } + + throw new SDKError( + response, + response.statusCode(), + "Unexpected status code received: " + response.statusCode(), + Utils.extractByteArrayFromBody(response)); + } + } + public static class Async extends Base + implements AsyncRequestOperation { + + public Async(SDKConfiguration sdkConfiguration, Headers _headers) { + super(sdkConfiguration, _headers); + } + + private CompletableFuture onBuildRequest(UpdateWorkspaceRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateWorkspaceRequest.class, new TypeReference() {}); + return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); + } + + private CompletableFuture> onError(HttpResponse response, Throwable error) { + return this.sdkConfiguration.asyncHooks().afterError(createAfterErrorContext(), response, error); + } + + private CompletableFuture> onSuccess(HttpResponse response) { + return this.sdkConfiguration.asyncHooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public CompletableFuture> doRequest(UpdateWorkspaceRequest request) { + return Exceptions.unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) + .handle((resp, err) -> { + if (err != null) { + return onError(null, err); + } + if (Utils.statusCodeMatches(resp.statusCode(), "400", "403", "4XX", "5XX")) { + return onError(resp, null); + } + return CompletableFuture.completedFuture(resp); + }) + .thenCompose(Function.identity()) + .thenCompose(this::onSuccess); + } + + @Override + public CompletableFuture handleResponse( + HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + com.airbyte.api.models.operations.async.UpdateWorkspaceResponse.Builder resBuilder = + com.airbyte.api.models.operations.async.UpdateWorkspaceResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + com.airbyte.api.models.operations.async.UpdateWorkspaceResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return response.body().toByteArray().thenApply(bodyBytes -> { + try { + WorkspaceResponse out = Utils.mapper().readValue( + bodyBytes, + new TypeReference<>() { + }); + res.withWorkspaceResponse(out); + return res; + } catch (Exception e) { + throw new RuntimeException(e); + } + }); + } else { + return Utils.createAsyncApiError(response, "Unexpected content-type received: " + contentType); + } + } + + if (Utils.statusCodeMatches(response.statusCode(), "400", "403", "4XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + if (Utils.statusCodeMatches(response.statusCode(), "5XX")) { + // no content + return Utils.createAsyncApiError(response, "API error occurred"); + } + + return Utils.createAsyncApiError(response, "Unexpected status code received: " + response.statusCode()); + } + } +} diff --git a/src/main/java/com/airbyte/api/utils/AsyncHook.java b/src/main/java/com/airbyte/api/utils/AsyncHook.java new file mode 100644 index 000000000..04b7788cd --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/AsyncHook.java @@ -0,0 +1,100 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + + +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.concurrent.CompletableFuture; +import java.util.Optional; +import java.util.UUID; + +/** + * Utility class for defining async hook interfaces. + */ +public final class AsyncHook { + + private AsyncHook() { + // prevent instantiation + } + + /** + * Specifies how a request is transformed before sending. + */ + @FunctionalInterface + public interface BeforeRequest { + + /** + * Transforms the given {@link HttpRequest} before sending. + * + *

    Note that {@link HttpRequest} is immutable. To modify the request you can use + * {@code HttpRequest#newBuilder(HttpRequest, BiPredicate)} with + * JDK 16 and later (which will copy the request for modification in a builder). + * If that method is not available then use {@link Helpers#copy} (which also returns + * a builder). + * + * @param context context for the hook call + * @param request request to be transformed + * @return transformed request + */ + CompletableFuture beforeRequest(Hook.BeforeRequestContext context, HttpRequest request); + + BeforeRequest DEFAULT = (context, request) -> CompletableFuture.completedFuture(request); + } + + /** + * Specifies how a response is transformed before response processing. + */ + @FunctionalInterface + public interface AfterSuccess { + + /** + * Transforms the given response before response processing occurs. + * + * @param context context for the hook call + * @param response response to be transformed + * @return transformed response + */ + CompletableFuture> afterSuccess(Hook.AfterSuccessContext context, HttpResponse response); + + AfterSuccess DEFAULT = (context, response) -> CompletableFuture.completedFuture(response); + } + + /** + * Specifies what happens if a request action throws an Exception. + */ + @FunctionalInterface + public interface AfterError { + + /** + * Either returns an HttpResponse or throws an Exception. Must be passed either + * a response or an error (both can't be absent). + * + * @param context context for the error + * @param response response information if available. + * @param error the optional exception. If response present then the error is for-info + * only, it was the last error in the chain of AfterError hook + * calls leading to this one + * @return HTTP response if method decides that an exception is not to be thrown + */ + CompletableFuture> afterError( + Hook.AfterErrorContext context, + HttpResponse response, + Throwable error); + + AfterError DEFAULT = (context, response, error) -> Optional.ofNullable(response) + .map(CompletableFuture::completedFuture) + .orElse(CompletableFuture.failedFuture(error)); + } + + public static final class IdempotencyHook implements BeforeRequest { + + @Override + public CompletableFuture beforeRequest(Hook.BeforeRequestContext context, HttpRequest request) { + HttpRequest.Builder b = Helpers.copy(request); + b.header("Idempotency-Key", UUID.randomUUID().toString()); + return CompletableFuture.completedFuture(b.build()); + } + } +} diff --git a/src/main/java/com/airbyte/api/utils/AsyncHooks.java b/src/main/java/com/airbyte/api/utils/AsyncHooks.java new file mode 100644 index 000000000..a68149129 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/AsyncHooks.java @@ -0,0 +1,166 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import java.net.http.HttpResponse; +import java.net.http.HttpRequest; +import java.util.List; +import java.util.concurrent.CopyOnWriteArrayList; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.atomic.AtomicBoolean; + +import com.airbyte.api.utils.AsyncHook.AfterError; +import com.airbyte.api.utils.AsyncHook.AfterSuccess; +import com.airbyte.api.utils.AsyncHook.BeforeRequest; +import com.airbyte.api.utils.Hook.AfterErrorContext; +import com.airbyte.api.utils.Hook.AfterSuccessContext; +import com.airbyte.api.utils.Hook.BeforeRequestContext; +import com.airbyte.api.utils.Hooks.FailEarlyException; +import com.airbyte.api.utils.Blob; + +/** + * Async hook registry for runtime request/response processing. + * + *

    Example usage: + *

    + * asyncHooks.registerBeforeRequest((context, request) ->
    + *     CompletableFuture.completedFuture(
    + *         Helpers.copy(request)
    + *             .header("transaction-id", UUID.randomUUID().toString())
    + *             .build()));
    + * 
    + */ +// ThreadSafe +public class AsyncHooks implements BeforeRequest, AfterSuccess, AfterError { + + // we use CopyOnWriteArrayList for thread safety + private final List beforeRequestHooks = new CopyOnWriteArrayList<>(); + private final List afterSuccessHooks = new CopyOnWriteArrayList<>(); + private final List afterErrorHooks = new CopyOnWriteArrayList<>(); + + public AsyncHooks() { + } + + /** + * Registers an async before-request hook. Hooks are chained in registration order. + * + * @param beforeRequest async hook returning {@code CompletableFuture} + * @return this + */ + public AsyncHooks registerBeforeRequest(BeforeRequest beforeRequest) { + Utils.checkNotNull(beforeRequest, "beforeRequest"); + this.beforeRequestHooks.add(beforeRequest); + return this; + } + + /** + * Registers an async after-success hook. Hooks are chained in registration order. + * + * @param afterSuccess async hook returning {@code CompletableFuture} + * @return this + */ + public AsyncHooks registerAfterSuccess(AfterSuccess afterSuccess) { + Utils.checkNotNull(afterSuccess, "afterSuccess"); + this.afterSuccessHooks.add(afterSuccess); + return this; + } + + /** + * Registers an async after-error hook. Hooks are chained in registration order. + * + * @param afterError async hook for error handling + * @return this + */ + public AsyncHooks registerAfterError(AfterError afterError) { + Utils.checkNotNull(afterError, "afterError"); + this.afterErrorHooks.add(afterError); + return this; + } + + @Override + public CompletableFuture beforeRequest(BeforeRequestContext context, HttpRequest request) { + Utils.checkNotNull(context, "context"); + Utils.checkNotNull(request, "request"); + + CompletableFuture result = CompletableFuture.completedFuture(request); + + for (BeforeRequest hook : beforeRequestHooks) { + result = result.thenCompose(req -> hook.beforeRequest(context, req)); + } + + return result; + } + + @Override + public CompletableFuture> afterSuccess( + AfterSuccessContext context, + HttpResponse response) { + Utils.checkNotNull(context, "context"); + Utils.checkNotNull(response, "response"); + + CompletableFuture> result = CompletableFuture.completedFuture(response); + + for (AfterSuccess hook : afterSuccessHooks) { + result = result.handle((resp, ex) -> + hook.afterSuccess(context, resp) + .thenApply(hookResp -> { + if (hookResp == null) { + throw new IllegalStateException( + "afterSuccess must return a non-null response"); + } + return hookResp; + }) + ).thenCompose(future -> future); + } + + return result; + } + + @Override + public CompletableFuture> afterError( + AfterErrorContext context, + HttpResponse response, + Throwable error) { + Utils.checkNotNull(context, "context"); + Utils.checkArgument( + (response != null) ^ (error != null), + "one and only one of response or error must be present"); + + CompletableFuture> result; + if (response != null) { + result = CompletableFuture.completedFuture(response); + } else { + result = CompletableFuture.failedFuture(error); + } + + AtomicBoolean failedEarly = new AtomicBoolean(false); + for (AfterError hook : afterErrorHooks) { + result = result.handle((resp, ex) -> { + if (failedEarly.get()) { + throw (FailEarlyException) ex; + } + return hook.afterError(context, resp, ex) + .handle((hookResp, hookErr) -> { + if (hookErr != null) { + if (hookErr instanceof FailEarlyException) { + failedEarly.set(true); + throw (FailEarlyException) hookErr; + } + throw Exceptions.unchecked(hookErr); + } + if (hookResp == null) { + throw new IllegalStateException( + "afterError must either throw an exception or return a non-null response"); + } + + return hookResp; + }); + } + ).thenCompose(future -> future); + } + + return result; + } + +} diff --git a/src/main/java/com/airbyte/api/utils/AsyncResponse.java b/src/main/java/com/airbyte/api/utils/AsyncResponse.java new file mode 100644 index 000000000..940164215 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/AsyncResponse.java @@ -0,0 +1,24 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; +import com.airbyte.api.utils.Blob; +import java.net.http.HttpResponse; + +public interface AsyncResponse { + + /** + * Returns the value of the Content-Type header. + **/ + String contentType(); + + /** + * Returns the HTTP status code. + **/ + int statusCode(); + + /** + * Returns the raw response. + **/ + HttpResponse rawResponse(); +} \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/utils/AsyncRetries.java b/src/main/java/com/airbyte/api/utils/AsyncRetries.java new file mode 100644 index 000000000..df5453799 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/AsyncRetries.java @@ -0,0 +1,204 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import java.io.IOException; +import java.net.ConnectException; +import java.net.http.HttpResponse; +import java.time.Duration; +import java.time.Instant; +import java.util.List; +import java.util.concurrent.*; +import java.util.function.Supplier; +import com.airbyte.api.utils.Blob; + +public class AsyncRetries { + + private final RetryConfig retryConfig; + private final List retriableStatusCodes; + private final ScheduledExecutorService scheduler; + + private AsyncRetries(RetryConfig retryConfig, + List retriableStatusCodes, + ScheduledExecutorService scheduler) { + Utils.checkNotNull(retryConfig, "retryConfig"); + Utils.checkNotNull(retriableStatusCodes, "statusCodes"); + if (retriableStatusCodes.isEmpty()) { + throw new IllegalArgumentException("statusCodes list cannot be empty"); + } + this.retryConfig = retryConfig; + this.retriableStatusCodes = retriableStatusCodes; + this.scheduler = scheduler; + } + + public CompletableFuture> retry( + Supplier>> task + ) { + switch (retryConfig.strategy()) { + case BACKOFF: + CompletableFuture> future = new CompletableFuture<>(); + BackoffStrategy backoff = retryConfig.backoff() + // We want to fail fast during misconfigurations. + .orElseThrow(() -> new IllegalArgumentException("Backoff strategy is not defined")); + attempt(task, future, backoff, new State(0, Instant.now())); + return future; + case NONE: + return task.get(); + default: + throw new IllegalArgumentException("Unsupported retry strategy: " + retryConfig.strategy()); + } + } + + private void attempt(Supplier>> task, + CompletableFuture> result, + BackoffStrategy backoff, + State state) { + task.get().whenComplete((response, throwable) -> { + if (throwable == null) { + boolean matched = retriableStatusCodes.stream() + .anyMatch(pattern -> Utils.statusCodeMatches(response.statusCode(), pattern)); + if (matched) { + maybeRetry(task, result, backoff, state, new AsyncRetryableException(response)); + return; + } + result.complete(response); + return; + } + // Unwrap + Throwable e = (throwable instanceof CompletionException) ? throwable.getCause() : throwable; + if (e instanceof AsyncRetryableException) { + maybeRetry(task, result, backoff, state, e); + return; + } + if (e instanceof IOException) { + if (shouldRetryIOException(e, backoff)) { + maybeRetry(task, result, backoff, state, e); + return; + } + } + result.completeExceptionally(new NonRetryableException(e)); + }); + } + + private boolean shouldRetryIOException(Throwable e, BackoffStrategy backoff) { + if (e instanceof ConnectException && backoff.retryConnectError()) return true; + String message = e.getMessage(); + if (message == null) return false; + return (message.contains("Connect timed out") && backoff.retryConnectError()) + || (message.contains("Read timed out") && backoff.retryReadTimeoutError()); + } + + private void maybeRetry(Supplier>> task, + CompletableFuture> result, + BackoffStrategy backoff, + State state, + Throwable e) { + Duration timeSinceStart = Duration.between(state.startedAt(), Instant.now()); + if (timeSinceStart.toMillis() > backoff.maxElapsedTimeMs()) { + // retry exhausted + if (e instanceof AsyncRetryableException) { + result.complete(((AsyncRetryableException) e).response()); + return; + } + result.completeExceptionally(e); + return; + } + + double intervalMs = backoff.initialIntervalMs() * Math.pow(backoff.baseFactor(), state.count()); + double jitterMs = backoff.jitterFactor() * intervalMs; + intervalMs = intervalMs - jitterMs + Math.random() * (2 * jitterMs + 1); + intervalMs = Math.min(intervalMs, backoff.maxIntervalMs()); + + scheduler.schedule( + () -> attempt(task, result, backoff, state.countAttempt()), + (long) intervalMs, + TimeUnit.MILLISECONDS); + } + + public void shutdown() { + scheduler.shutdown(); + } + + public static Builder builder() { + return new Builder(); + } + + public final static class Builder { + + private RetryConfig retryConfig; + private List statusCodes; + private ScheduledExecutorService scheduler; + + private Builder() { + } + + /** + * Defines the retry configuration. + * + * @param retryConfig The retry configuration to use. + * @return The builder instance. + */ + public Builder retryConfig(RetryConfig retryConfig) { + Utils.checkNotNull(retryConfig, "retryConfig"); + this.retryConfig = retryConfig; + return this; + } + + /** + * Defines the status codes that should be considered as errors. + * + * @param statusCodes The list of status codes to treat as errors. + * @return The builder instance. + */ + public Builder statusCodes(List statusCodes) { + Utils.checkNotNull(statusCodes, "statusCodes"); + if (statusCodes.isEmpty()) { + throw new IllegalArgumentException("statusCodes list cannot be empty"); + } + this.statusCodes = statusCodes; + return this; + } + + /** + * Defines the scheduler that will be used to schedule and execute retry attempts. + * Recommend using a globally shared executor for this. + * + * @param scheduler An instance of {@link ScheduledExecutorService} + * @return The builder instance. + */ + public Builder scheduler(ScheduledExecutorService scheduler) { + Utils.checkNotNull(scheduler, "scheduler"); + this.scheduler = scheduler; + return this; + } + + public AsyncRetries build() { + return new AsyncRetries(retryConfig, statusCodes, scheduler); + } + } + + private static class State { + private long attempt; + private final Instant startedAt; + + public State(long attempt, Instant startedAt) { + this.attempt = attempt; + this.startedAt = startedAt; + } + + public long count() { + return attempt; + } + + public Instant startedAt() { + return startedAt; + } + + public State countAttempt() { + attempt++; + return this; + } + } + +} diff --git a/src/main/java/com/airbyte/api/utils/AsyncRetryableException.java b/src/main/java/com/airbyte/api/utils/AsyncRetryableException.java new file mode 100644 index 000000000..802758ae2 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/AsyncRetryableException.java @@ -0,0 +1,20 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import com.airbyte.api.utils.Blob; + +import java.net.http.HttpResponse; + +public final class AsyncRetryableException extends Exception { + private final HttpResponse response; + + public AsyncRetryableException(HttpResponse response) { + this.response = response; + } + + public HttpResponse response() { + return response; + } +} diff --git a/src/main/java/com/airbyte/api/utils/Blob.java b/src/main/java/com/airbyte/api/utils/Blob.java new file mode 100644 index 000000000..a8cb2851f --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/Blob.java @@ -0,0 +1,299 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import java.io.FileNotFoundException; +import java.io.InputStream; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.nio.file.Path; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.Flow; +import java.util.concurrent.SubmissionPublisher; +import java.util.concurrent.atomic.AtomicBoolean; +import com.airbyte.api.utils.reactive.ReactiveUtils; + +/** + * A utility class for creating data blobs from various input sources that implements {@code HttpRequest.BodyPublisher}. + *

    + * This class provides convenient factory methods to create blobs from: + *

      + *
    • File paths ({@link #from(Path)})
    • + *
    • InputStreams ({@link #from(InputStream)})
    • + *
    • Strings ({@link #from(String)})
    • + *
    • Byte arrays ({@link #from(byte[])})
    • + *
    • ByteBuffers ({@link #from(ByteBuffer)})
    • + *
    • Lists of ByteBuffers ({@link #from(List)})
    • + *
    • Reactive publishers ({@link #from(Flow.Publisher)})
    • + *
    + *

    + * Each blob can be used directly as a {@code HttpRequest.BodyPublisher} since this class implements that interface. + *

    + * Additionally, this class provides consumption methods for reactive data processing: + *

      + *
    • Get the stream as a {@code Flow.Publisher} ({@link #asPublisher()})
    • + *
    • Collect the entire stream into a byte array ({@link #toByteArray()})
    • + *
    • Write the stream directly to a file ({@link #toFile(Path)})
    • + *
    + *

    + * Single-use consumption: When using consumption methods ({@code asPublisher()}, {@code toByteArray()}, + * {@code toFile()}), each {@code Blob} instance can only be consumed once. After any consumption method + * is called, the instance is considered consumed and cannot be reused. Any further attempt to use a consumption method + * will result in an {@code IllegalStateException}. + *

    + * Retry compatibility: Most blob types support HTTP request retries effectively. However, InputStream-backed + * blobs ({@link #from(InputStream)}) do not support retries as the stream gets consumed during the first attempt. + * For retry-compatible scenarios, prefer file-based ({@link #from(Path)}) or in-memory ({@link #from(byte[])}) alternatives. + */ +public class Blob implements HttpRequest.BodyPublisher { + private final Flow.Publisher publisher; + private final long contentLength; + private final AtomicBoolean consumed = new AtomicBoolean(false); // Flag for single-use consumption + + /** + * Private constructor that takes a publisher and content length. + * + * @param publisher the underlying publisher + * @param contentLength the content length, or -1 if unknown + */ + private Blob(Flow.Publisher publisher, long contentLength) { + this.publisher = Objects.requireNonNull(publisher, "Publisher cannot be null"); + this.contentLength = contentLength; + } + + /** + * Creates a {@code Blob} from a file path. + *

    + * This method uses the Java HTTP client's {@code HttpRequest.BodyPublishers.ofFile()} to create + * a reactive publisher from the file content. + * + * @param path the path to the file to read + * @return a new {@code Blob} instance + * @throws FileNotFoundException if the file does not exist or cannot be read + * @throws NullPointerException if {@code path} is {@code null} + */ + public static Blob from(Path path) throws FileNotFoundException { + Objects.requireNonNull(path, "Path cannot be null"); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.ofFile(path); + return new Blob(bodyPublisher, bodyPublisher.contentLength()); + } + + /** + * Creates a {@code Blob} from an {@code InputStream}. + *

    + * This method uses {@code HttpRequest.BodyPublishers.ofInputStream()} to create a reactive + * publisher that reads from the InputStream lazily, avoiding blocking I/O operations. + *

    + * Important: InputStream-backed blobs do not support retries effectively. If the HTTP request + * fails and is retried, the InputStream will have already been consumed during the first attempt, + * causing subsequent retry attempts to send empty request bodies. For retry-compatible scenarios, + * consider using {@link #from(Path)} for file-based data or {@link #from(byte[])} for in-memory data. + * + * @param inputStream the InputStream to read from + * @return a new {@code Blob} instance + * @throws NullPointerException if {@code inputStream} is {@code null} + */ + public static Blob from(InputStream inputStream) { + Objects.requireNonNull(inputStream, "InputStream cannot be null"); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.ofInputStream(() -> inputStream); + return new Blob(bodyPublisher, -1); // Unknown length for InputStream + } + + /** + * Creates a {@code Blob} from a String using UTF-8 encoding. + * + * @param string the string to convert to a Blob + * @return a new {@code Blob} instance + * @throws NullPointerException if {@code string} is {@code null} + */ + public static Blob from(String string) { + Objects.requireNonNull(string, "String cannot be null"); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.ofString(string, StandardCharsets.UTF_8); + return new Blob(bodyPublisher, bodyPublisher.contentLength()); + } + + /** + * Creates a {@code Blob} from a byte array. + *

    + * This method uses HttpRequest.BodyPublishers.ofByteArray(). + * + * @param data the byte array to wrap as a Blob + * @return a new {@code Blob} instance + * @throws NullPointerException if {@code data} is {@code null} + */ + public static Blob from(byte[] data) { + Objects.requireNonNull(data, "Data cannot be null"); + HttpRequest.BodyPublisher bodyPublisher = HttpRequest.BodyPublishers.ofByteArray(data); + return new Blob(bodyPublisher, data.length); // Known length for byte array + } + + /** + * Creates a {@code Blob} from a single {@code ByteBuffer}. + * + * @param buffer the ByteBuffer to wrap as a Blob + * @return a new {@code Blob} instance + * @throws NullPointerException if {@code buffer} is {@code null} + */ + public static Blob from(ByteBuffer buffer) { + Objects.requireNonNull(buffer, "ByteBuffer cannot be null"); + SubmissionPublisher publisher = new SubmissionPublisher<>(); + publisher.submit(buffer.duplicate()); // Use duplicate to avoid modifying original + publisher.close(); + return new Blob(publisher, buffer.remaining()); // Known length from buffer + } + + /** + * Creates a {@code Blob} from a list of {@code ByteBuffer}s. + * + * @param buffers the list of ByteBuffers to wrap as a Blob + * @return a new {@code Blob} instance + * @throws NullPointerException if {@code buffers} is {@code null} + */ + public static Blob from(List buffers) { + Objects.requireNonNull(buffers, "ByteBuffer list cannot be null"); + SubmissionPublisher publisher = new SubmissionPublisher<>(); + + long totalLength = 0; + for (ByteBuffer buffer : buffers) { + publisher.submit(buffer.duplicate()); // Use duplicate to avoid modifying original + totalLength += buffer.remaining(); + } + publisher.close(); + + return new Blob(publisher, totalLength); // Known length from sum of buffer remainings + } + + /** + * Creates a {@code Blob} from a {@code Flow.Publisher>}. + *

    + * This method uses {@code ReactiveUtils.flatten()} to convert the publisher of lists + * into a publisher of individual ByteBuffers. + * + * @param sourcePublisher the publisher that provides data as lists of ByteBuffers + * @return a new {@code Blob} instance + * @throws NullPointerException if {@code sourcePublisher} is {@code null} + */ + public static Blob from(Flow.Publisher> sourcePublisher) { + Objects.requireNonNull(sourcePublisher, "Source publisher cannot be null"); + Flow.Publisher flattenedPublisher = ReactiveUtils.flatten(sourcePublisher); + return new Blob(flattenedPublisher, -1); // Unknown length for reactive publisher + } + + // Consumption methods (single-use) + + /** + * Returns a {@code Flow.Publisher} that emits individual {@code ByteBuffer} + * from the underlying stream. + *

    + * Consumes this instance: After calling this method, this {@code Blob} cannot be used again. + * + * @return a publisher of individual {@code ByteBuffer} items. + * @throws IllegalStateException if this instance has already been consumed. + */ + public Flow.Publisher asPublisher() { + return ensureNotConsumedAndMark(); + } + + /** + * Collects the entire stream into a single byte array. + *

    + * Consumes this instance: After calling this method, this {@code Blob} cannot be used again. + *

    + * The returned {@code CompletableFuture} completes when all data has been received and assembled into the byte array, + * or completes exceptionally if an error occurs. + * + * @return a {@code CompletableFuture} containing the complete byte array. + * @throws IllegalStateException if this instance has already been consumed. + */ + public CompletableFuture toByteArray() { + Flow.Publisher currentPublisher = ensureNotConsumedAndMark(); + + // Convert Flow.Publisher to Flow.Publisher> for BodySubscriber + Flow.Publisher> listPublisher = ReactiveUtils.wrapped(currentPublisher); + + HttpResponse.BodySubscriber bodySubscriber = HttpResponse.BodySubscribers.ofByteArray(); + listPublisher.subscribe(bodySubscriber); + + return bodySubscriber.getBody().toCompletableFuture(); + } + + /** + * Writes the entire stream to the specified file path. + *

    + * Consumes this instance: After calling this method, this {@code Blob} cannot be used again. + *

    + * The returned {@code CompletableFuture} completes with the {@code Path} to the written file when all data + * has been successfully written, or completes exceptionally if an error occurs. + * + * @param destinationPath the path where the stream data will be written. If the file exists, it will be truncated. + * @return a {@code CompletableFuture} containing the {@code Path} to the written file. + * @throws NullPointerException if {@code destinationPath} is {@code null}. + * @throws IllegalStateException if this instance has already been consumed. + */ + public CompletableFuture toFile(Path destinationPath) { + Objects.requireNonNull(destinationPath, "Destination path cannot be null"); + Flow.Publisher currentPublisher = ensureNotConsumedAndMark(); + + // Convert Flow.Publisher to Flow.Publisher> for BodySubscriber + Flow.Publisher> listPublisher = ReactiveUtils.wrapped(currentPublisher); + + HttpResponse.BodySubscriber bodySubscriber = HttpResponse.BodySubscribers.ofFile(destinationPath); + listPublisher.subscribe(bodySubscriber); + + return bodySubscriber.getBody().toCompletableFuture(); + } + + /** + * Converts the entire stream into an {@code InputStream} for traditional I/O operations. + *

    + * Consumes this instance: After calling this method, this {@code Blob} cannot be used again. + *

    + * The returned {@code CompletableFuture} completes with an {@code InputStream} containing all the data + * from the stream when ready, or completes exceptionally if an error occurs. The resulting InputStream + * can be used with traditional Java I/O APIs. + * + * @return a {@code CompletableFuture} containing an {@code InputStream} with the stream data. + * @throws IllegalStateException if this instance has already been consumed. + */ + public CompletableFuture toInputStream() { + Flow.Publisher currentPublisher = ensureNotConsumedAndMark(); + + // Convert Flow.Publisher to Flow.Publisher> for BodySubscriber + Flow.Publisher> listPublisher = ReactiveUtils.wrapped(currentPublisher); + + HttpResponse.BodySubscriber bodySubscriber = HttpResponse.BodySubscribers.ofInputStream(); + listPublisher.subscribe(bodySubscriber); + + return bodySubscriber.getBody().toCompletableFuture(); + } + + /** + * Ensures this instance has not already been consumed, marks it as consumed, and returns the publisher. + * + * @return the {@code Flow.Publisher} to be consumed. + * @throws IllegalStateException if this instance has already been consumed. + */ + private Flow.Publisher ensureNotConsumedAndMark() { + if (!consumed.compareAndSet(false, true)) { + throw new IllegalStateException("This Blob instance has already been consumed and cannot be reused."); + } + return this.publisher; + } + + // HttpRequest.BodyPublisher implementation + + @Override + public long contentLength() { + return contentLength; + } + + @Override + public void subscribe(Flow.Subscriber subscriber) { + publisher.subscribe(subscriber); + } +} diff --git a/src/main/java/com/airbyte/api/utils/BlockingParser.java b/src/main/java/com/airbyte/api/utils/BlockingParser.java new file mode 100644 index 000000000..01ab5402b --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/BlockingParser.java @@ -0,0 +1,85 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import java.io.IOException; +import java.io.Reader; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.Optional; + +/** + * Blocking parser that reads from a Reader and delegates to a StreamingParser. + */ +public final class BlockingParser { + private final Reader reader; + private final StreamingParser parser; + private final char[] readBuffer = new char[8192]; + private boolean readerExhausted = false; + + public BlockingParser(Reader reader, StreamingParser parser) { + this.reader = reader; + this.parser = parser; + } + + /** + * Read the next parsed result from the Reader. + * + * @return next complete parsed result, or empty if no more data + * @throws IOException if reading fails + */ + public Optional next() throws IOException { + // First check if we already have a complete result buffered + Optional result = parser.next(); + if (result.isPresent()) { + return result; + } + // If reader is exhausted, try to get any remaining partial data + if (readerExhausted) { + return parser.finish(); + } + // Read more data until we have a complete result or EOF + int bytesRead; + while ((bytesRead = reader.read(readBuffer)) != -1) { + ByteBuffer chunk = ByteBuffer.wrap(new String(readBuffer, 0, bytesRead).getBytes(StandardCharsets.UTF_8)); + result = parser.add(chunk); + if (result.isPresent()) { + return result; + } + } + // Reader is now exhausted + readerExhausted = true; + return parser.finish(); + } + + /** + * Check if there are more results available (either buffered or from reader) + */ + public boolean hasNext() throws IOException { + return parser.hasBufferedData() || !readerExhausted; + } + + /** + * Close the underlying reader + */ + public void close() throws IOException { + reader.close(); + } + + // ===== Factory Methods ===== + + /** + * Create a blocking parser for JSON Lines format + */ + public static BlockingParser forJsonLines(Reader reader) { + return new BlockingParser<>(reader, StreamingParser.forJsonLines()); + } + + /** + * Create a blocking parser for SSE format + */ + public static BlockingParser forSSE(Reader reader) { + return new BlockingParser<>(reader, StreamingParser.forSSE()); + } +} \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/utils/CopiableInputStream.java b/src/main/java/com/airbyte/api/utils/CopiableInputStream.java new file mode 100644 index 000000000..fb2ceabc0 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/CopiableInputStream.java @@ -0,0 +1,26 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import org.apache.commons.io.IOUtils; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; + +public class CopiableInputStream { + private final byte[] bytes; + + public CopiableInputStream(InputStream original) { + try (InputStream stream = original) { + this.bytes = IOUtils.toByteArray(stream); + } catch (IOException e) { + throw new RuntimeException(e); + } + } + + public InputStream copy() { + return new ByteArrayInputStream(bytes); + } +} diff --git a/src/main/java/com/airbyte/api/utils/EventStream.java b/src/main/java/com/airbyte/api/utils/EventStream.java index efb865e12..5e0fa883e 100644 --- a/src/main/java/com/airbyte/api/utils/EventStream.java +++ b/src/main/java/com/airbyte/api/utils/EventStream.java @@ -3,40 +3,79 @@ */ package com.airbyte.api.utils; -import java.io.IOException; -import java.io.InputStream; -import java.io.UncheckedIOException; -import java.util.Iterator; -import java.util.List; -import java.util.NoSuchElementException; -import java.util.Optional; -import java.util.Spliterator; -import java.util.Spliterators; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; + +import java.io.*; +import java.nio.charset.StandardCharsets; +import java.util.*; import java.util.stream.Collectors; import java.util.stream.Stream; import java.util.stream.StreamSupport; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.ObjectMapper; - /** - * Manages the parsing of an InputStream in SSE (Server Sent Events) format. + * Provides a convenient way to consume Server-Sent Events (SSE) from a stream. + *

    + * Each SSE message's {@code data} field is deserialized into the type {@code T}, + * allowing for easy processing of events as domain objects. + *

    + * + *

    Event Consumption

    + *

    Events can be consumed in multiple ways:

    * - * @param the type that the SSE {@code data} field is deserialized into - */ -/** - * @param + *
      + *
    • Iteration: Use a for-each loop to process each event:
    • + *
    + *
    {@code
    + * try (EventStream eventStream = new EventStream<>(...)) {
    + *     for (MyEvent event : eventStream) {
    + *         handleEvent(event);
    + *     }
    + * }
    + * }
    + * + *
      + *
    • Stream API: Consume events as a Java Stream (must be closed after use):
    • + *
    + *
    {@code
    + * try (EventStream eventStream = new EventStream<>(...);
    + *      Stream stream = eventStream.stream()) {
    + *     stream.forEach(this::handleEvent);
    + * }
    + * }
    + * + *
      + *
    • Collect to List: Read all remaining events into a list:
    • + *
    + *
    {@code
    + * try (EventStream eventStream = new EventStream<>(...)) {
    + *     List events = eventStream.toList();
    + * }
    + * }
    + * + *

    + * Events are lazily loaded from the underlying SSE stream. Consumption stops either + * when the stream ends or when an optional terminal message is encountered. + *

    + * + *

    + * Important: This class implements {@link AutoCloseable} and must be used + * within a try-with-resources block to ensure that underlying streams are + * properly closed after consumption, preventing resource leaks. + *

    + * + * @param the type that SSE {@code data} fields will be deserialized into */ -public final class EventStream implements AutoCloseable { - - private final EventStreamReader reader; +public final class EventStream implements Iterable, AutoCloseable { + private final BlockingParser parser; private final TypeReference typeReference; private final ObjectMapper mapper; private final Optional terminalMessage; // Internal use only public EventStream(InputStream in, TypeReference typeReference, ObjectMapper mapper, Optional terminalMessage) { - this.reader = new EventStreamReader(in); + BufferedReader reader = new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8), 8192); + this.parser = BlockingParser.forSSE(reader); this.typeReference = typeReference; this.mapper = mapper; this.terminalMessage = terminalMessage; @@ -47,18 +86,19 @@ public EventStream(InputStream in, TypeReference typeReference, ObjectMapper * {@code Optional.empty()}. * * @return the next message or {@code Optional.empty()} if no more messages - * @throws IOException + * @throws IOException when parsing the next message. */ public Optional next() throws IOException { - return reader.readMessage() // - .filter(x -> !terminalMessage.isPresent() || !terminalMessage.get().equals(x.data())) // + return parser.next() // + .filter(x -> + terminalMessage.map(sentinel -> !sentinel.equals(x.data())).orElse(true)) .map(x -> Utils.asType(x, mapper, typeReference)); } /** * Reads all events and returns them as a {@code List}. This method calls * {@code close()}. - * + * * @return list of events */ public List toList() { @@ -75,55 +115,73 @@ public List toList() { } } + /** + * Returns an {@link Iterator} of {@link T} events, enabling iteration via for-each loops. + * + * @return events iterator. + */ + @Override + public Iterator iterator() { + return new EventIterator<>(this); + } + /** * Returns a {@link Stream} of events. Must be closed after use! - * + * * @return streamed events */ public Stream stream() { - return StreamSupport.stream(Spliterators.spliteratorUnknownSize(new Iterator() { - Optional next = null; - - public T next() { - load(); - if (!next.isPresent()) { - throw new NoSuchElementException(); - } - T v = next.get(); - next = null; - return v; - } - - public boolean hasNext() { - load(); - return next.isPresent(); - } - - private void load() { - if (next == null) { + return StreamSupport.stream( + Spliterators.spliteratorUnknownSize( + iterator(), + Spliterator.ORDERED), false) + .onClose(() -> { try { - next = EventStream.this.next(); + EventStream.this.close(); } catch (IOException e) { throw new UncheckedIOException(e); + } catch (Exception e) { + throw new RuntimeException(e); } - } - } - - }, Spliterator.ORDERED), false).onClose(() -> { - try { - EventStream.this.close(); - } catch (IOException e) { - throw new UncheckedIOException(e); - } catch (Exception e) { - throw new RuntimeException(e); - } - }); + }); } @Override - public void close() throws Exception { - reader.close(); + public void close() throws IOException { + parser.close(); } -} + static class EventIterator implements Iterator { + private final EventStream stream; + private Optional next = Optional.empty(); + EventIterator(EventStream stream) { + this.stream = stream; + } + + public T next() { + load(); + if (next.isEmpty()) { + throw new NoSuchElementException(); + } + T v = next.get(); + next = Optional.empty(); + return v; + } + + public boolean hasNext() { + load(); + return next.isPresent(); + } + + private void load() { + if (next.isEmpty()) { + try { + next = stream.next(); + } catch (IOException e) { + throw new UncheckedIOException(e); + } + } + } + } +} diff --git a/src/main/java/com/airbyte/api/utils/EventStreamLineReader.java b/src/main/java/com/airbyte/api/utils/EventStreamLineReader.java deleted file mode 100644 index 59f8d9259..000000000 --- a/src/main/java/com/airbyte/api/utils/EventStreamLineReader.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.airbyte.api.utils; - -import java.io.IOException; -import java.io.Reader; - -/** - * Converts CR-LF, LF, CR to LF - */ -public class EventStreamLineReader extends Reader { - - private final Reader reader; - private int lastCh = -1; // not LF nor CR - - public EventStreamLineReader(Reader reader) { - this.reader = reader; - } - - @Override - public int read() throws IOException { - if (lastCh == -1) { - // load first character of stream - lastCh = reader.read(); - if (lastCh == -1 || lastCh == '\n') { - // force reload of buffered last ch - int v = lastCh; - lastCh = -1; - return v; - } - } - int ch = reader.read(); - if (ch == -1) { - if (lastCh == '\r') { - lastCh = -1; - return '\n'; - } else { - int v = lastCh; - lastCh = -1; - return v; - } - } else if (lastCh == '\n') { - lastCh = ch; - return '\n'; - } else if (lastCh == '\r' && ch == '\n') { - // force reload of buffered last ch - lastCh = -1; - return '\n'; - } else if (lastCh == '\r') { - lastCh = ch; - return '\n'; - } else { - int v = lastCh; - lastCh = ch; - return v; - } - } - - @Override - public int read(char[] cbuf, int off, int len) throws IOException { - throw new UnsupportedOperationException(); - } - - @Override - public void close() throws IOException { - reader.close(); - } - -} diff --git a/src/main/java/com/airbyte/api/utils/EventStreamReader.java b/src/main/java/com/airbyte/api/utils/EventStreamReader.java deleted file mode 100644 index ab64681b2..000000000 --- a/src/main/java/com/airbyte/api/utils/EventStreamReader.java +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.airbyte.api.utils; - -import java.io.BufferedReader; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.Reader; -import java.nio.charset.StandardCharsets; -import java.util.Optional; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -public final class EventStreamReader implements AutoCloseable { - - private static final int BUFFER_SIZE = 8192; - - private static final String BYTE_ORDER_MARK = "\uFEFF"; - - private final Reader reader; - - private boolean first = true; - - public EventStreamReader(InputStream in) { - reader = new EventStreamLineReader( - new BufferedReader(new InputStreamReader(in, StandardCharsets.UTF_8), BUFFER_SIZE)); - } - - /** - * Returns the event message (lines separated by \n) without the terminating - * \n\n. Returns null when end of stream reached (and may occur with a partially - * read event message that has not yet been terminated). Characters in comment - * lines are discarded as read (they are not buffered). - * - * @return the event message - * @throws IOException - */ - // VisibleForTesting - public String readRawMessage() throws IOException { - StringBuilder line = new StringBuilder(); - StringBuilder b = new StringBuilder(); - - char previousCh = 0; - boolean previousAvailable = false; - boolean isComment = false; - char ch; - while (true) { - int v = reader.read(); - if (v == -1) { - return null; - } - ch = (char) v; - if (previousAvailable) { - // note that incoming input stream converts sequences of \r and/or \n to \n - // characters so we only concern ourselves with \n (divide and conquer) - if (previousCh == '\n' && ch == '\n') { - b.append(line); - line.setLength(0); - isComment = false; - trimTrailingNewLines(b); - String msg = b.toString(); - if (first) { - // skip BOM if present in the first message only - if (msg.startsWith(BYTE_ORDER_MARK)) { - msg = msg.substring(BYTE_ORDER_MARK.length()); - } - first = false; - } - return msg; - } else { - if (line.length() == 0 && previousCh == ':') { - isComment = true; - } - if (!isComment) { - line.append(previousCh); - if (previousCh == '\n') { - b.append(line); - // reset line - line.setLength(0); - } - } else if (previousCh == '\n') { - isComment = false; - } - } - } else { - previousAvailable = true; - } - previousCh = ch; - } - } - - public Optional readMessage() throws IOException { - String m = readRawMessage(); - if (m == null) { - return Optional.empty(); - } else { - return Optional.of(parseMessage(m)); - } - } - - private static final Pattern LINE_PATTERN = Pattern.compile("^([a-zA-Z]+): ?(.*)$"); - private static final char LINEFEED = '\n'; - - // VisibleForTesting - public static EventStreamMessage parseMessage(String text) { - String[] lines = text.split("\n"); - Optional event = Optional.empty(); - Optional id = Optional.empty(); - Optional retryMs = Optional.empty(); - StringBuilder data = new StringBuilder(); - boolean firstData = true; - for (String line : lines) { - Matcher m = LINE_PATTERN.matcher(line); - if (m.find()) { - String key = m.group(1).toLowerCase(); - String value = m.group(2); - if ("event".equals(key)) { - event = Optional.of(value); - } else if ("id".equals(key)) { - id = Optional.of(value); - } else if ("retry".equals(key)) { - try { - retryMs = Optional.of(Integer.parseInt(value)); - } catch (NumberFormatException e) { - // ignore - } - } else if ("data".equals(key)) { - if (!firstData) { - data.append(LINEFEED); - } - firstData = false; - data.append(value); - } // else ignore the line - } - } - return new EventStreamMessage(event, id, retryMs, data.toString()); - } - - private static StringBuilder trimTrailingNewLines(StringBuilder b) { - int i = 0; - while (b.length() > i && b.charAt(b.length() - i - 1) == '\n') { - i++; - } - b.setLength(b.length() - i); - return b; - } - - @Override - public void close() throws Exception { - reader.close(); - } - -} diff --git a/src/main/java/com/airbyte/api/utils/Exceptions.java b/src/main/java/com/airbyte/api/utils/Exceptions.java new file mode 100644 index 000000000..af6ee6f25 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/Exceptions.java @@ -0,0 +1,95 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; +import java.util.function.Consumer; +import java.util.function.Function; +import java.util.function.Supplier; +import java.io.IOException; +import java.io.UncheckedIOException; + +public class Exceptions { + public static Exception coerceException(Throwable throwable) { + if (throwable instanceof Exception) { + return (Exception) throwable; + } + + return new Exception(throwable); + } + + public static RuntimeException unchecked(Throwable t) { + if (t instanceof RuntimeException) { + return (RuntimeException) t; + } else if (t instanceof Error) { + throw (Error) t; // propagate JVM-level errors properly + } else if (t instanceof IOException) { + throw new UncheckedIOException((IOException) t); + } else { + throw new RuntimeException(t); + } + } + + public static T rethrow(Throwable e) { + throw unchecked(e); + } + + @FunctionalInterface + public interface CheckedFunction { + R apply(T t) throws Exception; + } + + @FunctionalInterface + public interface CheckedSupplier { + T get() throws Exception; + } + + @FunctionalInterface + public interface CheckedConsumer { + void accept(T t) throws Exception; + } + + @FunctionalInterface + public interface CheckedRunnable { + void run() throws Exception; + } + + public static Function unchecked(CheckedFunction fn) { + return t -> { + try { + return fn.apply(t); + } catch (Exception e) { + throw unchecked(e); + } + }; + } + + public static Supplier unchecked(CheckedSupplier supplier) { + return () -> { + try { + return supplier.get(); + } catch (Exception e) { + throw unchecked(e); + } + }; + } + + public static Consumer unchecked(CheckedConsumer consumer) { + return t -> { + try { + consumer.accept(t); + } catch (Exception e) { + throw unchecked(e); + } + }; + } + + public static Runnable unchecked(CheckedRunnable runnable) { + return () -> { + try { + runnable.run(); + } catch (Exception e) { + throw unchecked(e); + } + }; + } +} diff --git a/src/main/java/com/airbyte/api/utils/Globals.java b/src/main/java/com/airbyte/api/utils/Globals.java new file mode 100644 index 000000000..5b171fa09 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/Globals.java @@ -0,0 +1,89 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import java.util.HashMap; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Optional; +import java.util.stream.Stream; + +public final class Globals { + + private final Map queryParams = new HashMap<>(); + private final Map pathParams = new HashMap<>(); + private final Map headerParams = new HashMap<>(); + + + public Globals() { + } + + // internal use only + public void putParam(String type, String name, Object value) { + if ("pathParam".equals(type)) { + putPathParam(name, value); + } else if ("queryParam".equals(type)) { + putQueryParam(name, value); + } else if ("header".equals(type)) { + putHeader(name, value); + } else { + throw new IllegalArgumentException("Unknown parameter type: " + type); + } + } + + // internal use only + public Optional getParam(String type, String name) { + if ("pathParam".equals(type)){ + return getPathParam(name); + } else if ("queryParam".equals(type)) { + return getQueryParam(name); + } else if ("header".equals(type)) { + return getHeader(name); + } else { + throw new IllegalArgumentException("Unknown parameter type: " + type); + } + } + + public void putQueryParam(String name, Object value) { + if (value != null) { + queryParams.put(name, Utils.valToString(value)); + } + } + + public void putPathParam(String name, Object value) { + if (value != null) { + pathParams.put(name, Utils.valToString(value)); + } + } + + public void putHeader(String name, Object value) { + if (value != null) { + headerParams.put(name, Utils.valToString(value)); + } + } + + public Optional getQueryParam(String name) { + return Optional.ofNullable(queryParams.get(name)); + } + + public Optional getPathParam(String name) { + return Optional.ofNullable(pathParams.get(name)); + } + + public Optional getHeader(String name) { + return Optional.ofNullable(headerParams.get(name)); + } + + public Stream> queryParamsAsStream() { + return queryParams.entrySet().stream(); + } + + public Stream> pathParamsAsStream() { + return pathParams.entrySet().stream(); + } + + public Stream> headerParamsAsStream() { + return headerParams.entrySet().stream(); + } +} diff --git a/src/main/java/com/airbyte/api/utils/HTTPClient.java b/src/main/java/com/airbyte/api/utils/HTTPClient.java index 21a286178..60d9b819d 100644 --- a/src/main/java/com/airbyte/api/utils/HTTPClient.java +++ b/src/main/java/com/airbyte/api/utils/HTTPClient.java @@ -3,29 +3,84 @@ */ package com.airbyte.api.utils; +import com.airbyte.api.utils.Blob; + import java.io.IOException; import java.io.InputStream; import java.net.URISyntaxException; -import java.net.http.HttpResponse; +import java.net.http.HttpClient; import java.net.http.HttpRequest; +import java.net.http.HttpResponse; + +import java.util.concurrent.CompletableFuture; public interface HTTPClient { + HttpClient client = HttpClient.newHttpClient(); /** * Sends an HTTP request and returns the response. - * - *

    Note that {@link HttpRequest} is immutable. To modify the request you can use - * {@link HttpRequest#newBuilder(HttpRequest, BiPredicate)} with - * JDK 16 and later (which will copy the request for modification in a builder). - * If that method is not available then use {@link Helpers#copy} (which also returns - * a builder). - * + * + *

    + * Note that {@link HttpRequest} is immutable. To modify the request you can + * use + * {@code HttpRequest#newBuilder(HttpRequest, BiPredicate)} + * with JDK 16 and later (which will copy the request for modification in a + * builder). If that method is not available then use {@link Helpers#copy} + * (which also returns a builder). + * * @param request HTTP request * @return HTTP response * @throws IOException * @throws InterruptedException * @throws URISyntaxException - */ - HttpResponse send(HttpRequest request) - throws IOException, InterruptedException, URISyntaxException; + */ + default HttpResponse send(HttpRequest request) + throws IOException, InterruptedException, URISyntaxException { + return client.send(request, HttpResponse.BodyHandlers.ofInputStream()); + } + + /** + * Sends an HTTP request asynchronously and returns a response whose body is + * exposed as a {@link Blob}. + *

    + * This method uses the {@code HttpResponse.BodyHandlers.ofPublisher()} to + * obtain the response body as a {@code Flow.Publisher>}, + * which is then wrapped in a {@code Blob} for non-blocking, + * reactive consumption of the response data. + *

    + * The returned {@code CompletableFuture} completes when the response is + * received, or completes exceptionally if an error occurs during the + * request or response processing. + * + * @param request the HTTP request to send + * @return a {@code CompletableFuture} containing the HTTP response with a + * {@code Blob} body + */ + default CompletableFuture> sendAsync( + HttpRequest request) { + return client.sendAsync(request, HttpResponse.BodyHandlers.ofPublisher()) + .thenApply(resp -> + new ResponseWithBody<>(resp, Blob::from)); + } + + /** + * Controls the debug flag that can be used by clients to perform conditional + * debugging actions like logging HTTP requests and responses. + * This is currently implemented in SpeakeasyHTTPClient but custom client + * implementations are free to use this method similarly if they wish. + * + * @param enabled Whether to enable debug flag + */ + default void enableDebugLogging(boolean enabled) { + // do nothing + } + + /** + * Returns whether debug logging is enabled. + * + * @return Whether debug logging is enabled + */ + default boolean isDebugLoggingEnabled() { + return false; + } } diff --git a/src/main/java/com/airbyte/api/utils/Headers.java b/src/main/java/com/airbyte/api/utils/Headers.java new file mode 100644 index 000000000..1535f1fde --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/Headers.java @@ -0,0 +1,123 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.stream.Collectors; +import java.util.Locale; +import java.util.function.BiConsumer; + +// Internal API only + +/** + * Encapsulates HTTP headers. Header names are case-insensitive. + */ +public final class Headers { + + public static final Headers EMPTY = new Headers(Collections.emptyMap()); + + // keys are lowercased + private final Map> map; + + // Internal use only + public Headers(Map> headers) { + Utils.checkNotNull(headers, "headers"); + this.map = headers // + .entrySet() // + .stream() // + .map(entry -> Map.entry(entry.getKey().toLowerCase(Locale.ENGLISH), entry.getValue())) // + .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)); + } + + // Internal use only + public Headers() { + this(new HashMap<>()); + } + + /** + * Returns all values for a header name. Header name is case-insensitive. + * + * @param name header name + * @return all values for the header name + */ + public List get(String name) { + Utils.checkNotNull(name, "name"); + return Collections.unmodifiableList(values(name)); + } + + /** + * Returns the first value for a header name. Header name is case-insensitive. + * + * @param name header name + * @return the first value for the header name + */ + public Optional first(String name) { + Utils.checkNotNull(name, "name"); + return values(name).stream().findFirst(); + } + + /** + * Appends a header value. Header name is case-insensitive. + * + * @param name header name + * @param value header value + * @return this + */ + public Headers add(String name, String value) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(value, "value"); + List values = values(name); + if (values.isEmpty()) { + List list = new ArrayList<>(); + list.add(value); + map.put(name.toLowerCase(Locale.ENGLISH), list); + } else { + values.add(value); + } + return this; + } + + public Headers add(Headers headers) { + Utils.checkNotNull(headers, "headers"); + headers + .forEach((key, values) -> values.forEach(value -> add(key, value))); + return this; + } + + public void forEach(BiConsumer> consumer) { + Utils.checkNotNull(consumer, "consumer"); + map.forEach(consumer); + } + + /** + * Returns a copy of the headers as a map. Header names are lowercase. + * + * @return headers as a map + */ + public Map> map() { + return map // + .entrySet() // + .stream() // + .collect(Collectors.toMap(Map.Entry::getKey, entry -> new ArrayList<>(entry.getValue()))); + } + + private List values(String name) { + return map.getOrDefault(name.toLowerCase(Locale.ENGLISH), List.of()); + } + + @Override + public String toString() { + return "Headers[ " // + + map.entrySet() // + .stream() // + .map(entry -> entry.getKey() + "=" + entry.getValue()) // + .collect(Collectors.joining(", ")) // + + "]"; + } +} diff --git a/src/main/java/com/airbyte/api/utils/Helpers.java b/src/main/java/com/airbyte/api/utils/Helpers.java index 73c08dbc6..f75c93c51 100644 --- a/src/main/java/com/airbyte/api/utils/Helpers.java +++ b/src/main/java/com/airbyte/api/utils/Helpers.java @@ -104,7 +104,7 @@ public void onNext(ByteBuffer bb) { @Override public void onError(Throwable throwable) { latch.countDown(); - Utils.rethrow(throwable); + Exceptions.rethrow(throwable); } @Override diff --git a/src/main/java/com/airbyte/api/utils/Hook.java b/src/main/java/com/airbyte/api/utils/Hook.java index 72545fecd..168dd22f0 100644 --- a/src/main/java/com/airbyte/api/utils/Hook.java +++ b/src/main/java/com/airbyte/api/utils/Hook.java @@ -10,6 +10,7 @@ import java.util.Optional; import java.util.UUID; +import com.airbyte.api.SDKConfiguration; import com.airbyte.api.SecuritySource; /** @@ -26,6 +27,7 @@ private Hook() { * Context for a hook call. */ public interface HookContext { + SDKConfiguration sdkConfiguration(); String baseUrl(); String operationId(); Optional> oauthScopes(); @@ -40,18 +42,25 @@ public interface BeforeRequestContext extends HookContext { public static final class BeforeRequestContextImpl implements BeforeRequestContext { + private final SDKConfiguration sdkConfiguration; private final String baseUrl; private final String operationId; private final Optional> oauthScopes; private final Optional securitySource; - public BeforeRequestContextImpl(String baseUrl, String operationId, Optional> oauthScopes, Optional securitySource) { + public BeforeRequestContextImpl(SDKConfiguration sdkConfiguration, String baseUrl, String operationId, Optional> oauthScopes, Optional securitySource) { + this.sdkConfiguration = sdkConfiguration; this.baseUrl = baseUrl; this.operationId = operationId; this.oauthScopes = oauthScopes; this.securitySource = securitySource; } + @Override + public SDKConfiguration sdkConfiguration() { + return sdkConfiguration; + } + @Override public String baseUrl() { return baseUrl; @@ -81,19 +90,26 @@ public interface AfterSuccessContext extends HookContext { public static final class AfterSuccessContextImpl implements AfterSuccessContext { + private final SDKConfiguration sdkConfiguration; private final String baseUrl; private final String operationId; private final Optional> oauthScopes; private final Optional securitySource; - public AfterSuccessContextImpl(String baseUrl, String operationId, Optional> oauthScopes, Optional securitySource) { + public AfterSuccessContextImpl(SDKConfiguration sdkConfiguration, String baseUrl, String operationId, Optional> oauthScopes, Optional securitySource) { Utils.checkNotNull(securitySource, "securitySource"); + this.sdkConfiguration = sdkConfiguration; this.baseUrl = baseUrl; this.operationId = operationId; this.oauthScopes = oauthScopes; this.securitySource = securitySource; } + @Override + public SDKConfiguration sdkConfiguration() { + return sdkConfiguration; + } + @Override public String baseUrl() { return baseUrl; @@ -123,19 +139,26 @@ public interface AfterErrorContext extends HookContext { public static final class AfterErrorContextImpl implements AfterErrorContext { + private final SDKConfiguration sdkConfiguration; private final String baseUrl; private final String operationId; private final Optional> oauthScopes; private final Optional securitySource; - public AfterErrorContextImpl(String baseUrl, String operationId, Optional> oauthScopes, Optional securitySource) { + public AfterErrorContextImpl(SDKConfiguration sdkConfiguration, String baseUrl, String operationId, Optional> oauthScopes, Optional securitySource) { Utils.checkNotNull(securitySource, "securitySource"); + this.sdkConfiguration = sdkConfiguration; this.baseUrl = baseUrl; this.operationId = operationId; this.oauthScopes = oauthScopes; this.securitySource = securitySource; } + @Override + public SDKConfiguration sdkConfiguration() { + return sdkConfiguration; + } + @Override public String baseUrl() { return baseUrl; @@ -242,7 +265,7 @@ HttpResponse afterError( } }; } - + public static final class SdkInitData { private final String baseUrl; private final HTTPClient client; @@ -260,12 +283,12 @@ public HTTPClient client() { return client; } } - + /** * Transforms the HTTPClient before use. */ public interface SdkInit { - + /** * Returns a transformed {@link HTTPClient} and {@code baseUrl} for use in requests. * @@ -278,6 +301,7 @@ public interface SdkInit { * The default action is to return the client untouched. */ static SdkInit DEFAULT = data -> data; + } diff --git a/src/main/java/com/airbyte/api/utils/HookAdapters.java b/src/main/java/com/airbyte/api/utils/HookAdapters.java new file mode 100644 index 000000000..cad2aff5c --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/HookAdapters.java @@ -0,0 +1,181 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import java.io.InputStream; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; + +/** + * Utility class for adapting synchronous hooks to asynchronous hooks. + *

    + * This class provides adapter methods that convert synchronous hook implementations + * ({@link Hook.BeforeRequest}, {@link Hook.AfterSuccess}, {@link Hook.AfterError}) + * to their asynchronous counterparts ({@link AsyncHook.BeforeRequest}, + * {@link AsyncHook.AfterSuccess}, {@link AsyncHook.AfterError}). + *

    + * Performance Note: The execution of synchronous hooks is offloaded to the + * global {@link java.util.concurrent.ForkJoinPool#commonPool() ForkJoinPool}. + * For better performance in high-throughput scenarios, consider re-implementing + * hooks using non-blocking I/O (NIO) patterns instead of relying on these adapters. + *

    + * Thread Safety: All adapter methods are thread-safe and can be called + * concurrently from multiple threads. + * + * @see Hook + * @see AsyncHook + * @see java.util.concurrent.ForkJoinPool#commonPool() + */ +public final class HookAdapters { + + private HookAdapters() { + // prevent instantiation + } + + /** + * Adapts a synchronous {@link Hook.BeforeRequest} to an asynchronous + * {@link AsyncHook.BeforeRequest}. + *

    + * The synchronous hook execution is offloaded to the global + * {@link java.util.concurrent.ForkJoinPool#commonPool() ForkJoinPool}. + * Any exceptions thrown by the synchronous hook are wrapped as unchecked + * exceptions and propagated through the returned {@link CompletableFuture}. + *

    + * Performance Consideration: For high-throughput applications, + * consider implementing the hook directly using NIO patterns rather than + * using this adapter, as it avoids thread pool overhead and blocking operations. + * + * @param beforeRequestHook the synchronous before-request hook to adapt + * @return an asynchronous before-request hook that executes the synchronous hook + * in the global ForkJoinPool + * @throws NullPointerException if {@code beforeRequestHook} is {@code null} + */ + public static AsyncHook.BeforeRequest toAsync(Hook.BeforeRequest beforeRequestHook) { + return ((context, request) -> CompletableFuture.supplyAsync( + () -> Exceptions.unchecked(() -> beforeRequestHook.beforeRequest(context, request)).get())); + } + + /** + * Adapts a synchronous {@link Hook.AfterError} to an asynchronous + * {@link AsyncHook.AfterError}. + *

    + * This method handles the conversion between different response body types: + *

      + *
    • Converts {@link HttpResponse}<{@link Blob}> to + * {@link HttpResponse}<{@link InputStream}> for the synchronous hook
    • + *
    • Converts the result back to {@link HttpResponse}<{@link Blob}> + * for the asynchronous interface
    • + *
    + *

    + * The synchronous hook execution is offloaded to the global + * {@link java.util.concurrent.ForkJoinPool#commonPool() ForkJoinPool}. + * Any exceptions thrown by the synchronous hook are wrapped as unchecked + * exceptions and propagated through the returned {@link CompletableFuture}. + *

    + * Performance Consideration: For high-throughput applications, + * consider implementing the hook directly using NIO patterns rather than + * using this adapter, as it avoids thread pool overhead and blocking I/O operations. + * + * @param afterErrorHook the synchronous after-error hook to adapt + * @return an asynchronous after-error hook that executes the synchronous hook + * in the global ForkJoinPool + * @throws NullPointerException if {@code afterErrorHook} is {@code null} + */ + public static AsyncHook.AfterError toAsync(Hook.AfterError afterErrorHook) { + return (context, response, error) -> toStreamResponse(response) + .thenCompose(backCompatResp -> { + CompletableFuture> processedResp = CompletableFuture.supplyAsync(() -> + Exceptions.unchecked(() -> + afterErrorHook.afterError( + context, + Optional.of(backCompatResp), + Optional.of(Exceptions.coerceException(error)))).get()); + + return processedResp + .thenApply(HookAdapters::toBlobResponse); + }); + + } + + /** + * Adapts a synchronous {@link Hook.AfterSuccess} to an asynchronous + * {@link AsyncHook.AfterSuccess}. + *

    + * This method handles the conversion between different response body types: + *

      + *
    • Converts {@link HttpResponse}<{@link Blob}> to + * {@link HttpResponse}<{@link InputStream}> for the synchronous hook
    • + *
    • Converts the result back to {@link HttpResponse}<{@link Blob}> + * for the asynchronous interface
    • + *
    + *

    + * The synchronous hook execution is offloaded to the global + * {@link java.util.concurrent.ForkJoinPool#commonPool() ForkJoinPool}. + * Any exceptions thrown by the synchronous hook are wrapped as unchecked + * exceptions and propagated through the returned {@link CompletableFuture}. + *

    + * Performance Consideration: For high-throughput applications, + * consider implementing the hook directly using NIO patterns rather than + * using this adapter, as it avoids thread pool overhead and blocking I/O operations. + * + * @param afterSuccessHook the synchronous after-success hook to adapt + * @return an asynchronous after-success hook that executes the synchronous hook + * in the global ForkJoinPool + * @throws NullPointerException if {@code afterSuccessHook} is {@code null} + */ + public static AsyncHook.AfterSuccess toAsync(Hook.AfterSuccess afterSuccessHook) { + return (context, response) -> toStreamResponse(response) + .thenCompose(backCompatResp -> { + CompletableFuture> processedResp = CompletableFuture.supplyAsync(() -> + Exceptions.unchecked(() -> + afterSuccessHook.afterSuccess( + context, + backCompatResp)).get()); + + return processedResp + .thenApply(HookAdapters::toBlobResponse); + }); + + } + + /** + * Converts an {@link HttpResponse}<{@link InputStream}> to an + * {@link HttpResponse}<{@link Blob}>. + *

    + * This method wraps the InputStream response body in a {@link Blob} while + * preserving all other response metadata (status code, headers, etc.). + *

    + * Note: The resulting {@link Blob} is created from the InputStream, + * which means it may not support retries effectively if the InputStream + * gets consumed during the first attempt. + * + * @param response the response with InputStream body to convert + * @return a new response with the same metadata but with a Blob body + * @throws NullPointerException if {@code response} is {@code null} + */ + private static HttpResponse toBlobResponse(HttpResponse response) { + return new ResponseWithBody<>(response, Blob.from(response.body())); + } + + /** + * Converts an {@link HttpResponse}<{@link Blob}> to an + * {@link HttpResponse}<{@link InputStream}>. + *

    + * This method asynchronously converts the Blob response body to an InputStream + * while preserving all other response metadata (status code, headers, etc.). + * The conversion is performed using {@link Blob#toInputStream()}. + *

    + * Note: This operation consumes the {@link Blob}, making it unavailable + * for further use after this conversion. + * + * @param response the response with Blob body to convert + * @return a CompletableFuture containing a new response with the same metadata + * but with an InputStream body + * @throws NullPointerException if {@code response} is {@code null} + */ + private static CompletableFuture> toStreamResponse(HttpResponse response) { + return response.body().toInputStream().thenApply(body -> new ResponseWithBody<>(response, body)); + } +} \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/utils/Hooks.java b/src/main/java/com/airbyte/api/utils/Hooks.java index 63b1fd98b..d7c887472 100644 --- a/src/main/java/com/airbyte/api/utils/Hooks.java +++ b/src/main/java/com/airbyte/api/utils/Hooks.java @@ -27,7 +27,7 @@ * For example, this code will add a transaction id header to every request: * *

    - * hooks.registerBeforeRequest((context, request) -> {
    + * hooks.registerBeforeRequest((context, request) -> {
      *     request.headers().map().put("acme-transaction-id", nextTransactionId());
      *     return request;
      * });
    diff --git a/src/main/java/com/airbyte/api/utils/JSON.java b/src/main/java/com/airbyte/api/utils/JSON.java
    index 230214339..0764e0dff 100644
    --- a/src/main/java/com/airbyte/api/utils/JSON.java
    +++ b/src/main/java/com/airbyte/api/utils/JSON.java
    @@ -12,8 +12,7 @@
     import com.fasterxml.jackson.databind.ObjectMapper;
     
     public class JSON {
    -    public static ObjectMapper getMapper() {
    -        return new ObjectMapper()
    +    private static final ObjectMapper MAPPER = new ObjectMapper()
                 .registerModule(new JavaTimeModule())
                 .registerModule(new Jdk8Module())
                 .registerModule(new JsonNullableModule())
    @@ -22,5 +21,8 @@ public static ObjectMapper getMapper() {
                 .configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false)
                 .disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
                 .enable(DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES);
    +
    +    public static ObjectMapper getMapper() {
    +        return MAPPER;
         }
     }
    \ No newline at end of file
    diff --git a/src/main/java/com/airbyte/api/utils/Multipart.java b/src/main/java/com/airbyte/api/utils/Multipart.java
    index 91df8c2de..0a3e76c71 100644
    --- a/src/main/java/com/airbyte/api/utils/Multipart.java
    +++ b/src/main/java/com/airbyte/api/utils/Multipart.java
    @@ -3,26 +3,25 @@
      */
     package com.airbyte.api.utils;
     
    -import java.io.IOException;
    -import java.io.InputStream;
    -import java.io.UncheckedIOException;
    -import java.net.http.HttpRequest;
    +import com.airbyte.api.utils.reactive.ReactiveUtils;
    +
    +import java.net.URLEncoder;
     import java.net.http.HttpRequest.BodyPublisher;
    +import java.net.http.HttpRequest.BodyPublishers;
    +import java.nio.ByteBuffer;
    +import java.nio.charset.Charset;
     import java.nio.charset.StandardCharsets;
    -import java.nio.file.Files;
    -import java.nio.file.Path;
    -import java.util.ArrayList;
    -import java.util.Iterator;
    -import java.util.List;
    -import java.util.NoSuchElementException;
    -import java.util.Optional;
    -import java.util.UUID;
    -import java.util.function.Supplier;
    +import java.util.*;
    +import java.util.concurrent.Flow;
     
     public final class Multipart {
     
    -    private final static String DASHES = "--";
    -    private static final String APPLICATION_OCTET_STREAM = "application/octet-stream";
    +    private static final String CRLF = "\r\n";
    +    private static final String DASHES = "--";
    +    private static final Charset HDR_CS = StandardCharsets.ISO_8859_1; // headers
    +    private static final Charset TXT_CS = StandardCharsets.UTF_8;      // text fields
    +    private static final String DEFAULT_FILE_CT = "application/octet-stream";
    +    public static final String DEFAULT_TEXT_CT = "text/plain; charset=UTF-8";
     
         private final BodyPublisher bodyPublisher;
         private final String boundary;
    @@ -36,27 +35,35 @@ public BodyPublisher bodyPublisher() {
             return bodyPublisher;
         }
     
    +    /**
    +     * Visible for tests.
    +     */
    +    public String boundary() {
    +        return boundary;
    +    }
    +
    +    /**
    +     * RFC 7578: no charset parameter at the multipart level.
    +     */
         public String contentType() {
    -        return "multipart/form-data; charset=" + StandardCharsets.ISO_8859_1.name() + "; boundary=" + boundary;
    +        return "multipart/form-data; boundary=" + boundary;
         }
     
         public static Builder builder() {
             return new Builder();
         }
     
    +    // -------------------------------------------------------
    +    // Builder
    +    // -------------------------------------------------------
         public static final class Builder {
    -
             private final List parts = new ArrayList<>();
             private final String boundary = UUID.randomUUID().toString();
     
             public Builder addPart(String name, String value) {
                 Utils.checkNotNull(name, "name");
                 Utils.checkNotNull(value, "value");
    -            Part p = new Part();
    -            p.type = PartType.STRING;
    -            p.name = name;
    -            p.value = value;
    -            parts.add(p);
    +            parts.add(new FormField(name, value, DEFAULT_TEXT_CT));
                 return this;
             }
     
    @@ -64,146 +71,155 @@ public Builder addPart(String name, String value, String contentType) {
                 Utils.checkNotNull(name, "name");
                 Utils.checkNotNull(value, "value");
                 Utils.checkNotNull(contentType, "contentType");
    -            Part p = new Part();
    -            p.type = PartType.STRING;
    -            p.name = name;
    -            p.value = value;
    -            p.contentType = contentType;
    -            parts.add(p);
    +            parts.add(new FormField(name, value, contentType));
                 return this;
             }
     
    -        public Builder addPart(String name, Supplier stream, String filename,
    -                Optional contentType) {
    +        public Builder addPart(String name, byte[] bytes, String filename, String contentType) {
    +            return addPart(name, Blob.from(bytes), filename, contentType);
    +        }
    +
    +        public Builder addPart(String name, Blob blob, String filename, String contentType) {
                 Utils.checkNotNull(name, "name");
    -            Utils.checkNotNull(stream, "stream");
    +            Utils.checkNotNull(blob, "blob");
                 Utils.checkNotNull(filename, "filename");
    -            Utils.checkNotNull(contentType, "contentType");
    -            Part p = new Part();
    -            p.type = PartType.STREAM;
    -            p.name = name;
    -            p.stream = stream;
    -            p.filename = filename;
    -            p.contentType = contentType.orElse(null);
    -            parts.add(p);
    +            parts.add(new FilePart(name, blob, filename,
    +                    Optional.ofNullable(contentType).orElse(DEFAULT_FILE_CT)));
                 return this;
             }
     
    -        private void addFinalBoundaryPart() {
    -            Part p = new Part();
    -            p.type = PartType.FINAL_BOUNDARY;
    -            p.value = DASHES + boundary + DASHES;
    -            parts.add(p);
    -        }
    -
             public Multipart build() {
    -            if (parts.size() == 0) {
    +            if (parts.isEmpty()) {
                     throw new IllegalStateException("Must have at least one part to build multipart message.");
                 }
    -            addFinalBoundaryPart();
    -            BodyPublisher bp = HttpRequest.BodyPublishers.ofByteArrays( //
    -                    () -> new PartsIterator(parts, boundary));
    -            return new Multipart(bp, boundary);
    +
    +            // Build publishers for each part plus the closing boundary.
    +            List pubs = new ArrayList<>(parts.size() + 1);
    +            for (Part p : parts) {
    +                pubs.add(p.toPublisher(boundary));
    +            }
    +            pubs.add(BodyPublishers.ofString(DASHES + boundary + DASHES + CRLF, HDR_CS));
    +
    +            BodyPublisher multipart = concat(pubs);
    +            return new Multipart(multipart, boundary);
             }
         }
     
    -    public enum PartType {
    -        STRING, STREAM, FINAL_BOUNDARY
    +    // -------------------------------------------------------
    +    // Part model
    +    // -------------------------------------------------------
    +    interface Part {
    +        BodyPublisher toPublisher(String boundary);
         }
     
    -    static final class Part {
    +    /**
    +     * Text form field.
    +     */
    +    static final class FormField implements Part {
    +        private final String name;
    +        private final String value;
    +        private final String contentType;
    +
    +        FormField(String name, String value, String contentType) {
    +            this.name = name;
    +            this.value = value;
    +            this.contentType = contentType != null ? contentType : "text/plain; charset=UTF-8";
    +        }
     
    -        // type is the only mandatory field. Not keen on
    -        // a whole bunch of nullable fields but not public api
    -        // so will forego the noise of chained builders and
    -        // Optional use
    +        @Override
    +        public BodyPublisher toPublisher(String boundary) {
    +            String header = DASHES + boundary + CRLF +
    +                    "Content-Disposition: form-data; name=\"" + escapeQuoted(name) + "\"" + CRLF +
    +                    "Content-Type: " + contentType + CRLF +
    +                    CRLF;
     
    -        PartType type;
    -        String name;
    -        String value;
    -        Supplier stream;
    -        String filename;
    -        String contentType;
    +            BodyPublisher h = BodyPublishers.ofString(header, HDR_CS);
    +            BodyPublisher b = BodyPublishers.ofString(value, TXT_CS);
    +            BodyPublisher t = BodyPublishers.ofString(CRLF, HDR_CS);
     
    +            return concat(h, b, t);
    +        }
         }
     
    -    private static final class PartsIterator implements Iterator {
    -
    -        private final Iterator iter;
    -        private final String boundary;
    -
    -        private InputStream currentFileInput;
    -        private boolean done;
    -        private byte[] next;
    -
    -        PartsIterator(List parts, String boundary) {
    -            this.iter = parts.iterator();
    -            this.boundary = boundary;
    +    /**
    +     * File / blob upload.
    +     */
    +    static final class FilePart implements Part {
    +        private final String name;
    +        private final String filename;
    +        private final String contentType;
    +        private final Blob blob;
    +
    +        FilePart(String name, Blob blob, String filename, String contentType) {
    +            this.name = name;
    +            this.filename = filename;
    +            this.contentType = contentType != null ? contentType : DEFAULT_FILE_CT;
    +            this.blob = blob;
             }
     
             @Override
    -        public boolean hasNext() {
    -            if (done)
    -                return false;
    -            if (next != null)
    -                return true;
    -            try {
    -                next = computeNext();
    -            } catch (IOException e) {
    -                throw new UncheckedIOException(e);
    -            }
    -            if (next == null) {
    -                done = true;
    -                return false;
    -            }
    -            return true;
    +        public BodyPublisher toPublisher(String boundary) {
    +            String cd = contentDispositionWithFilename(name, filename);
    +            String header = DASHES + boundary + CRLF +
    +                    "Content-Disposition: " + cd + CRLF +
    +                    "Content-Type: " + contentType + CRLF +
    +                    CRLF;
    +
    +            BodyPublisher h = BodyPublishers.ofString(header, HDR_CS);
    +            BodyPublisher c = BodyPublishers.fromPublisher(blob.asPublisher()); // streaming
    +            BodyPublisher t = BodyPublishers.ofString(CRLF, HDR_CS);
    +
    +            return concat(h, c, t);
             }
    +    }
     
    -        @Override
    -        public byte[] next() {
    -            if (!hasNext())
    -                throw new NoSuchElementException();
    -            byte[] res = next;
    -            next = null;
    -            return res;
    +    // -------------------------------------------------------
    +    // Helpers
    +    // -------------------------------------------------------
    +    private static String escapeQuoted(String s) {
    +        Objects.requireNonNull(s, "quoted string");
    +        StringBuilder out = new StringBuilder(s.length());
    +        for (int i = 0; i < s.length(); i++) {
    +            char c = s.charAt(i);
    +            if (c == '"' || c == '\\') out.append('\\').append(c);
    +            else if (c == '\r' || c == '\n') out.append(' ');
    +            else out.append(c);
             }
    +        return out.toString();
    +    }
     
    -        private byte[] computeNext() throws IOException {
    -            if (currentFileInput == null) {
    -                if (!iter.hasNext())
    -                    return null;
    -                Part nextPart = iter.next();
    -                if (PartType.STRING.equals(nextPart.type)) {
    -                    String part = DASHES + boundary + "\r\n" + "Content-Disposition: form-data; name=" + nextPart.name
    -                            + "\r\n" + "Content-Type: text/plain; charset=UTF-8\r\n\r\n" + nextPart.value + "\r\n";
    -                    return part.getBytes(StandardCharsets.UTF_8);
    -                } else if (PartType.FINAL_BOUNDARY.equals(nextPart.type)) {
    -                    return nextPart.value.getBytes(StandardCharsets.UTF_8);
    -                } else {
    -                    String filename = nextPart.filename;
    -                    String contentType = nextPart.contentType;
    -                    if (contentType == null) {
    -                        contentType = APPLICATION_OCTET_STREAM;
    -                    }
    -                    currentFileInput = nextPart.stream.get();
    -                    String partHeader = DASHES + boundary + "\r\n" + "Content-Disposition: form-data; name="
    -                            + nextPart.name + "; filename=" + filename + "\r\n" + "Content-Type: " + contentType
    -                            + "\r\n\r\n";
    -                    return partHeader.getBytes(StandardCharsets.UTF_8);
    -                }
    -            } else {
    -                byte[] buf = new byte[8192];
    -                int r = currentFileInput.read(buf);
    -                if (r > 0) {
    -                    byte[] actualBytes = new byte[r];
    -                    System.arraycopy(buf, 0, actualBytes, 0, r);
    -                    return actualBytes;
    -                } else {
    -                    currentFileInput.close();
    -                    currentFileInput = null;
    -                    return "\r\n".getBytes(StandardCharsets.UTF_8);
    -                }
    -            }
    +    /**
    +     * RFC 5987 filename* with ASCII fallback.
    +     */
    +    private static String contentDispositionWithFilename(String name, String filename) {
    +        String safeName = escapeQuoted(name);
    +        String fallback = escapeQuoted(asAsciiFilenameFallback(filename));
    +        String encoded;
    +        try {
    +            encoded = URLEncoder.encode(filename, TXT_CS).replace("+", "%20");
    +        } catch (Exception e) {
    +            encoded = fallback;
             }
    +        return "form-data; name=\"" + safeName + "\"; filename=\"" + fallback + "\"; filename*=UTF-8''" + encoded;
         }
    +
    +    private static String asAsciiFilenameFallback(String filename) {
    +        StringBuilder sb = new StringBuilder(filename.length());
    +        for (int i = 0; i < filename.length(); i++) {
    +            char c = filename.charAt(i);
    +            if (c >= 0x20 && c <= 0x7E && c != '"' && c != '\\') sb.append(c);
    +            else sb.append('_');
    +        }
    +        return sb.toString();
    +    }
    +
    +    private static BodyPublisher concat(BodyPublisher... publishers) {
    +        return BodyPublishers.fromPublisher(ReactiveUtils.concat(List.of(publishers)));
    +    }
    +
    +    private static BodyPublisher concat(List publishers) {
    +        List> bufferPublishers = List.copyOf(publishers);
    +        return BodyPublishers.fromPublisher(ReactiveUtils.concat(bufferPublishers));
    +    }
    +
     }
    diff --git a/src/main/java/com/airbyte/api/utils/NonRetryableException.java b/src/main/java/com/airbyte/api/utils/NonRetryableException.java
    new file mode 100644
    index 000000000..9292034e1
    --- /dev/null
    +++ b/src/main/java/com/airbyte/api/utils/NonRetryableException.java
    @@ -0,0 +1,17 @@
    +/* 
    + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
    + */
    +package com.airbyte.api.utils;
    +
    +public final class NonRetryableException extends Exception {
    +    private final Throwable throwable;
    +
    +    public NonRetryableException(Throwable throwable) {
    +        super(throwable);
    +        this.throwable = throwable;
    +    }
    +
    +    public Throwable exception() {
    +        return throwable;
    +    }
    +}
    diff --git a/src/main/java/com/airbyte/api/utils/QueryParameters.java b/src/main/java/com/airbyte/api/utils/QueryParameters.java
    index d5dac1f08..08952ad2a 100644
    --- a/src/main/java/com/airbyte/api/utils/QueryParameters.java
    +++ b/src/main/java/com/airbyte/api/utils/QueryParameters.java
    @@ -3,19 +3,17 @@
      */
     package com.airbyte.api.utils;
     
    +import com.fasterxml.jackson.core.JsonProcessingException;
    +import com.fasterxml.jackson.databind.ObjectMapper;
    +
     import java.lang.reflect.Field;
     import java.lang.reflect.Modifier;
    -import java.util.ArrayList;
    -import java.util.List;
    -import java.util.Map;
    +import java.util.*;
     import java.util.stream.Collectors;
     
    -import com.fasterxml.jackson.core.JsonProcessingException;
    -import com.fasterxml.jackson.databind.ObjectMapper;
    -
     public class QueryParameters {
         public static  List parseQueryParams(Class type, T queryParams,
    -            Map>> globals) throws Exception {
    +            Globals globals) throws Exception {
             List allParams = new ArrayList<>();
     
             Field[] fields = type.getDeclaredFields();
    @@ -63,6 +61,18 @@ public static  List parseQueryParams(Class
                 }
             }
     
    +        // include all global params in pathParams if not already present
    +        if (globals != null) {
    +            Set allParamNames = allParams.stream()
    +                .map(QueryParameter::name)
    +                .collect(Collectors.toSet());
    +            globals.queryParamsAsStream()
    +                .filter(entry -> !allParamNames.contains(entry.getKey()))
    +                .forEach(entry ->      
    +                        allParams.add(QueryParameter.of(entry.getKey(), 
    +                            entry.getValue(), false)));
    +        }
    +        
             return allParams;
         }
     
    @@ -133,6 +143,11 @@ private static List parseDelimitedParams(QueryParamsMetadata que
                         params.add(QueryParameter.of(queryParamsMetadata.name, Utils.valToString(value), queryParamsMetadata.allowReserved));
                         break;
                     }
    +                Optional openEnumValue = Reflections.getOpenEnumValue(value.getClass(), value);
    +                if (openEnumValue.isPresent()) {
    +                    params.add(QueryParameter.of(queryParamsMetadata.name, Utils.valToString(openEnumValue.get()), queryParamsMetadata.allowReserved));
    +                    break;
    +                }
                     Field[] fields = value.getClass().getDeclaredFields();
     
                     List items = new ArrayList<>();
    @@ -200,6 +215,7 @@ private static List parseDeepObjectParams(QueryParamsMetadata qu
                     if (!Utils.allowIntrospection(value.getClass())) {
                         throw new RuntimeException("DeepObject style only supports Map and Object types, not " + value.getClass());
                     }
    +
                     Field[] fields = value.getClass().getDeclaredFields();
     
                     for (Field field : fields) {
    diff --git a/src/main/java/com/airbyte/api/utils/Reflections.java b/src/main/java/com/airbyte/api/utils/Reflections.java
    new file mode 100644
    index 000000000..28db36e17
    --- /dev/null
    +++ b/src/main/java/com/airbyte/api/utils/Reflections.java
    @@ -0,0 +1,138 @@
    +/* 
    + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
    + */
    +package com.airbyte.api.utils;
    +
    +import java.lang.reflect.Method;
    +import java.lang.reflect.Modifier;
    +import java.util.Arrays;
    +import java.util.Objects;
    +import java.util.Optional;
    +import java.util.concurrent.atomic.AtomicInteger;
    +import java.util.concurrent.atomic.AtomicLong;
    +
    +// INTERNAL API ONLY
    +
    +public class Reflections {
    +
    +    /**
    +     * Extracts the underlying value from an open enum instance if the class follows the open enum pattern.
    +     *
    +     * 

    An open enum is a class that emulates enum behavior but can handle unknown values + * without runtime errors. This pattern is commonly used for API responses where new + * enum values might be added over time. + * + *

    The method validates that the class follows the open enum pattern by checking for: + *

      + *
    • A static factory method {@code of(String)} or {@code of(Integer)} that returns the class type
    • + *
    • An instance method {@code value()} returning String or Integer
    • + *
    • At least one public static final field of the same class type (predefined constants)
    • + *
    + * + *

    If all validation passes, the method invokes the {@code value()} method on the provided instance + * and returns the result. + * + * @param clazz the class to examine for open enum pattern + * @param instance the instance of the open enum class from which to extract the value + * @return {@code Optional} containing the extracted value (String or Integer) if the class + * follows the open enum pattern and the value extraction succeeds, {@code Optional.empty()} otherwise + */ + public static Optional getOpenEnumValue(Class clazz, Object instance) { + Objects.requireNonNull(clazz, "Class cannot be null"); + + try { + // Check for factory method of(String) or of(Integer) + boolean hasFactoryMethod = Arrays.stream(clazz.getDeclaredMethods()) + .anyMatch(method -> isValidFactoryMethod(method, clazz)); + if (!hasFactoryMethod) { + return Optional.empty(); + } + + // Check for at least one static constant of same type + if (!hasStaticConstants(clazz)) { + return Optional.empty(); + } + + // Check for value() method returning String or Integer + Method valueMethod = clazz.getMethod("value"); + if (!isValidValueMethod(valueMethod)) { + return Optional.empty(); + } + + valueMethod.setAccessible(true); + return Optional.of(valueMethod.invoke(instance)); + } catch (Exception e) { + return Optional.empty(); + } + } + + private static boolean isNumericType(Class type) { + // Primitive numeric types + if (type.isPrimitive()) { + return type == byte.class || type == short.class || + type == int.class || type == long.class || + type == float.class || type == double.class; + } + + // Number subclasses (Integer, Long, Double, BigDecimal, etc.) + if (Number.class.isAssignableFrom(type)) { + return true; + } + + // Atomic numeric types + return type == AtomicInteger.class || type == AtomicLong.class; + } + + /** + * Checks if the given method is a valid factory method for an open enum. + * + * @param method the method to check + * @param clazz the class that should be returned by the factory method + * @return true if valid factory method + */ + private static boolean isValidFactoryMethod(Method method, Class clazz) { + // Must be named "of" + if (!"of".equals(method.getName())) { + return false; + } + + // Must be static and return the enum class + if (!Modifier.isStatic(method.getModifiers()) || !method.getReturnType().equals(clazz)) { + return false; + } + + // Must have exactly one parameter of String or Integer type + Class[] parameterTypes = method.getParameterTypes(); + return parameterTypes.length == 1 && + (String.class.equals(parameterTypes[0]) || isNumericType(parameterTypes[0])); + } + + /** + * Checks if the given method is a valid value() method for an open enum. + * + * @param method the value() method to validate + * @return true if valid value method + */ + private static boolean isValidValueMethod(Method method) { + // Must not be static and return String or Integer + return !Modifier.isStatic(method.getModifiers()) && + (String.class.equals(method.getReturnType()) || isNumericType(method.getReturnType())); + } + + /** + * Checks if the class has at least one public static final field of the same class type. + * + * @param clazz the class to check for static constants + * @return true if has static constants + */ + private static boolean hasStaticConstants(Class clazz) { + return Arrays.stream(clazz.getDeclaredFields()) + .anyMatch(field -> { + int modifiers = field.getModifiers(); + return Modifier.isStatic(modifiers) && + Modifier.isFinal(modifiers) && + Modifier.isPublic(modifiers) && + clazz.equals(field.getType()); + }); + } +} diff --git a/src/main/java/com/airbyte/api/utils/RequestBody.java b/src/main/java/com/airbyte/api/utils/RequestBody.java index 5deca7526..7a6d4c68b 100644 --- a/src/main/java/com/airbyte/api/utils/RequestBody.java +++ b/src/main/java/com/airbyte/api/utils/RequestBody.java @@ -7,8 +7,11 @@ import java.io.IOException; import java.lang.reflect.Field; import java.lang.reflect.Modifier; +import java.net.http.HttpRequest; import java.net.http.HttpRequest.BodyPublishers; import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; import java.util.ArrayList; import java.util.List; import java.util.Map; @@ -29,7 +32,7 @@ private RequestBody() { } public static SerializedBody serialize(Object request, String requestField, String serializationMethod, - boolean nullable) throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException, + boolean nullable) throws NoSuchFieldException, IllegalArgumentException, IllegalAccessException, UnsupportedOperationException, IOException { if (request == null) { return null; @@ -98,6 +101,8 @@ private static SerializedBody serializeContentType(String fieldName, String cont body = new SerializedBody(contentType, BodyPublishers.ofString((String) value)); } else if (value instanceof byte[]) { body = new SerializedBody(contentType, BodyPublishers.ofByteArray((byte[]) value)); + } else if (value instanceof HttpRequest.BodyPublisher) { + body = new SerializedBody(contentType, (HttpRequest.BodyPublisher) value); } else { throw new RuntimeException("Unsupported content type " + contentType + " for field " + fieldName); } @@ -128,7 +133,16 @@ private static SerializedBody serializeMultipart(Object value) } if (metadata.file) { - serializeMultipartFile(metadata.name, builder, val); + if (val instanceof List || val.getClass().isArray()) { + // Handle file arrays + List arr = Utils.toList(val); + for (Object item : arr) { + serializeMultipartFile(metadata.name + "[]", builder, item); + } + } else { + // Handle single file + serializeMultipartFile(metadata.name, builder, val); + } } else if (metadata.json) { ObjectMapper mapper = JSON.getMapper(); String json = mapper.writeValueAsString(val); @@ -156,7 +170,7 @@ private static void serializeMultipartFile(String fieldName, Multipart.Builder b } String fileName = ""; - byte[] content = null; + Object content = null; Field[] fields = file.getClass().getDeclaredFields(); @@ -174,7 +188,7 @@ private static void serializeMultipartFile(String fieldName, Multipart.Builder b } if (metadata.content) { - content = (byte[]) val; + content = val; } else { fileName = Utils.valToString(val); } @@ -183,9 +197,22 @@ private static void serializeMultipartFile(String fieldName, Multipart.Builder b if (fileName.isBlank() || content == null) { throw new RuntimeException("Invalid multipart file"); } - byte[] cont = content; - builder.addPart(fieldName, () -> new ByteArrayInputStream(cont), fileName, - Optional.of("application/octet-stream")); + + // Detect content type based on file extension + String contentType = "application/octet-stream"; // default fallback + try { + String detectedType = Files.probeContentType(Path.of(fileName)); + if (detectedType != null && !detectedType.isEmpty()) { + contentType = detectedType; + } + } catch (Exception e) { + // If detection fails, use the default fallback + } + if (content instanceof byte[]) { + builder.addPart(fieldName, (byte[]) content, fileName, contentType); + } else { + builder.addPart(fieldName, (Blob) content, fileName, contentType); + } } public static SerializedBody serializeFormData(Object value) diff --git a/src/main/java/com/airbyte/api/utils/Response.java b/src/main/java/com/airbyte/api/utils/Response.java index 5482ff436..83155152a 100644 --- a/src/main/java/com/airbyte/api/utils/Response.java +++ b/src/main/java/com/airbyte/api/utils/Response.java @@ -2,7 +2,6 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ package com.airbyte.api.utils; - import java.io.InputStream; import java.net.http.HttpResponse; diff --git a/src/main/java/com/airbyte/api/utils/ResponseWithBody.java b/src/main/java/com/airbyte/api/utils/ResponseWithBody.java new file mode 100644 index 000000000..8a33cd5a4 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/ResponseWithBody.java @@ -0,0 +1,95 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import javax.net.ssl.SSLSession; +import java.net.URI; +import java.net.http.HttpClient; +import java.net.http.HttpHeaders; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Optional; +import java.util.function.Function; + +/** + * A wrapper for {@link HttpResponse} that allows mappi ng the response body from type {@code R} to type {@code B}. + *

    + * This class delegates all methods to the original response, except for {@link #body()}, which returns the mapped body. + * The mapping is performed using the provided {@code bodyMapper} function at construction time. + * + * @param the type of the original response body + * @param the type of the mapped response body + */ +public class ResponseWithBody implements HttpResponse { + private final HttpResponse original; + private final Function bodyMapper; + private final B body; + + /** + * Constructs a new {@code ResponseWithBody} by wrapping an existing {@link HttpResponse} and applying + * a mapping function to its body. + * + * @param original the original response to wrap + * @param bodyMapper a function to map the original body to the new body type + */ + public ResponseWithBody(HttpResponse original, Function bodyMapper) { + this.original = original; + this.bodyMapper = bodyMapper; + this.body = bodyMapper.apply(original.body()); + } + + /** + * Constructs a new {@code ResponseWithBody} by wrapping an existing {@link HttpResponse} with + * a pre-computed body value. + * + * @param original the original response to wrap + * @param body the pre-computed body value + */ + public ResponseWithBody(HttpResponse original, B body) { + this.original = original; + this.body = body; + this.bodyMapper = null; + } + + @Override + public int statusCode() { + return original.statusCode(); + } + + @Override + public HttpRequest request() { + return original.request(); + } + + @Override + public Optional> previousResponse() { + return original.previousResponse() + .map(prev -> new ResponseWithBody<>(prev, bodyMapper)); + } + + @Override + public HttpHeaders headers() { + return original.headers(); + } + + @Override + public B body() { + return body; + } + + @Override + public Optional sslSession() { + return original.sslSession(); + } + + @Override + public URI uri() { + return original.uri(); + } + + @Override + public HttpClient.Version version() { + return original.version(); + } +} diff --git a/src/main/java/com/airbyte/api/utils/Retries.java b/src/main/java/com/airbyte/api/utils/Retries.java index 49c994163..f1f1419d8 100644 --- a/src/main/java/com/airbyte/api/utils/Retries.java +++ b/src/main/java/com/airbyte/api/utils/Retries.java @@ -31,33 +31,7 @@ private Retries( this.retryConfig = retryConfig; this.statusCodes = statusCodes; } - - @SuppressWarnings("serial") - public static final class NonRetryableException extends Exception { - private final Exception exception; - - public NonRetryableException(Exception exception) { - super(exception); - this.exception = exception; - } - - public Exception exception() { - return exception; - } - } - - @SuppressWarnings("serial") - public static final class RetryableException extends Exception { - private final HttpResponse response; - - public RetryableException(HttpResponse response) { - this.response = response; - } - - public HttpResponse response() { - return response; - } - } + public HttpResponse run() throws Exception { @@ -130,7 +104,7 @@ private HttpResponse retryWithBackoff(boolean retryConnectError, bo try { return getResponse(retryConnectError, retryReadTimeoutError); } catch(NonRetryableException e) { - throw e.exception(); + throw Exceptions.coerceException(e.exception()); } catch(IOException | RetryableException e) { long nowMs = System.currentTimeMillis(); if (nowMs - startMs > backoff.maxElapsedTimeMs()) { diff --git a/src/main/java/com/airbyte/api/utils/RetryableException.java b/src/main/java/com/airbyte/api/utils/RetryableException.java new file mode 100644 index 000000000..33dc1554f --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/RetryableException.java @@ -0,0 +1,19 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import java.io.InputStream; +import java.net.http.HttpResponse; + +public final class RetryableException extends Exception { + private final HttpResponse response; + + public RetryableException(HttpResponse response) { + this.response = response; + } + + public HttpResponse response() { + return response; + } +} diff --git a/src/main/java/com/airbyte/api/utils/SessionManager.java b/src/main/java/com/airbyte/api/utils/SessionManager.java index cab0996b7..c1386fae8 100644 --- a/src/main/java/com/airbyte/api/utils/SessionManager.java +++ b/src/main/java/com/airbyte/api/utils/SessionManager.java @@ -13,7 +13,6 @@ import java.time.OffsetDateTime; import java.time.temporal.ChronoUnit; import java.util.ArrayList; -import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -29,8 +28,8 @@ public final class SessionManager { // VisibleForTesting public static final int REFRESH_BEFORE_EXPIRY_SECONDS = 60; - - private final Map> sessions = new HashMap<>(); + + private final Map>> sessions = new HashMap<>(); public interface HasSessionKey { String sessionKey(); @@ -67,74 +66,98 @@ public Optional expiresAt() { } - public Session getSession(T credentials, Optional> scopes, Function, Session> tokenProvider ) { + public Session getSession(T credentials, List scopes, Function, Session> tokenProvider ) { final String sessionKey = credentials.sessionKey(); + final String scopeKey = getScopeKey(scopes); - Optional> currentSession = Optional.ofNullable(sessions.get(sessionKey)); + Optional> existingSession = getExistingSession(sessionKey, scopes); final Session session; - if (shouldCreateNewSession(currentSession, scopes)) { - // note that we accumulate scopes. For example if a session existed - // for scope 'read' and this request requires scope 'write' then we - // request a new token for `read, write`. - - // TODO it may be better to rather make `sessions` a Map> - // where the none of the Session scope lists fully contains another in the same - // map value. - // This would ensure that an operation is always called with a token with the - // minimum - // permissions required and also would ensure that a token request is not - // rejected - // because of disallowed scope combinations (yet to see that in the wild). - // For the example above with `read` and `write` scoped requests we would get a - // token - // for `read` scope, and then get a token for `write` scope and store both - // tokens in separate - // Session objects in the map value list for the credential pair. - - List accumulatedScopes = accumulateScopes(scopes, currentSession); - session = tokenProvider.apply(accumulatedScopes); - sessions.put(sessionKey, session); + if (!existingSession.isPresent()) { + session = tokenProvider.apply(scopes); + sessions.computeIfAbsent(sessionKey, k -> new HashMap<>()).put(scopeKey, session); } else { - session = currentSession.get(); + session = existingSession.get(); } return session; } - - // VisibleForTesting - public static boolean shouldCreateNewSession(Optional> currentSession, Optional> oauthScopes) { - return !currentSession.isPresent() // - || !hasRequiredScopes(currentSession.get().scopes, oauthScopes) // - || hasTokenExpired(currentSession.get().expiresAt, OffsetDateTime.now()); + + private Optional> getExistingSession(String sessionKey, List requiredScopes) { + Map> clientSessions = sessions.get(sessionKey); + if (clientSessions == null) { + return Optional.empty(); + } + + String scopeKey = getScopeKey(requiredScopes); + + // First look for an exact match + Session exactSession = clientSessions.get(scopeKey); + if (exactSession != null) { + if (hasTokenExpired(exactSession.expiresAt, OffsetDateTime.now())) { + removeSession(sessionKey, scopeKey); + } else { + return Optional.of(exactSession); + } + } + + // If no exact match was found, look for a superset match + List expiredSessionKeys = new ArrayList<>(); + Session validSession = null; + for (Map.Entry> entry : clientSessions.entrySet()) { + Session session = entry.getValue(); + if (hasTokenExpired(session.expiresAt, OffsetDateTime.now())) { + expiredSessionKeys.add(entry.getKey()); + } else if (hasRequiredScopes(session.scopes, requiredScopes)) { + validSession = session; + } + } + + for (String key : expiredSessionKeys) { + removeSession(sessionKey, key); + } + + return Optional.ofNullable(validSession); } - - private static < T extends HasSessionKey> List accumulateScopes(Optional> requiredScopes, Optional> session) { - if (session.isPresent()) { - List scopes = new ArrayList<>(requiredScopes.orElse(Collections.emptyList())); - scopes.addAll(session.get().scopes); - return scopes.stream() // - .distinct() // - .collect(Collectors.toList()); - } else { - return requiredScopes.orElse(Collections.emptyList()); + private static String getScopeKey(List scopes) { + if (scopes == null || scopes.isEmpty()) { + return ""; } + + List sortedScopes = new ArrayList<>(scopes); + sortedScopes.sort(String::compareTo); + return String.join("&", sortedScopes); } + /** + * Checks if the token has expired. + * If no expires_in field was returned by the authorization server, the token is considered to never expire. + * A buffer (REFRESH_BEFORE_EXPIRY_SECONDS) is applied to refresh tokens before they actually expire. + */ // VisibleForTesting public static boolean hasTokenExpired(Optional expiresAt, OffsetDateTime now) { - return expiresAt.isEmpty() // - || now.plusSeconds(REFRESH_BEFORE_EXPIRY_SECONDS).isAfter(expiresAt.get()); + return !expiresAt.isEmpty() && now.plusSeconds(REFRESH_BEFORE_EXPIRY_SECONDS).isAfter(expiresAt.get()); } // VisibleForTesting - public static boolean hasRequiredScopes(List sessionScopes, Optional> requiredScopes) { - return sessionScopes.containsAll(requiredScopes.orElse(Collections.emptyList())); + public static boolean hasRequiredScopes(List sessionScopes, List requiredScopes) { + return sessionScopes.containsAll(requiredScopes); } public void remove(String sessionKey) { sessions.remove(sessionKey); } - + + public void removeSession(String sessionKey, String scopeKey) { + Map> clientSessions = sessions.get(sessionKey); + if (clientSessions != null) { + clientSessions.remove(scopeKey); + // Clean up empty client sessions + if (clientSessions.isEmpty()) { + sessions.remove(sessionKey); + } + } + } + public static Session requestOAuth2Token(HTTPClient client, T credentials, List scopes, Map body, Map headers, URI tokenUri) { try { @@ -155,7 +178,7 @@ public static Session requestOAuth2Token(HTTPClient "Unexpected status code " + response.statusCode() + ": " + responseBody); } TokenResponse t = Utils.mapper().readValue(response.body(), TokenResponse.class); - if (!t.tokenType.orElse("").equals("Bearer")) { + if (!t.tokenType.orElse("").toLowerCase().equals("bearer")) { throw new AuthException("Expected 'Bearer' token type but was '" + t.tokenType.orElse("") + "'"); } final Optional expiresAt = t.expiresInSeconds @@ -165,7 +188,7 @@ public static Session requestOAuth2Token(HTTPClient throw new RuntimeException(e); } } - + final static class TokenResponse { @JsonProperty("access_token") diff --git a/src/main/java/com/airbyte/api/utils/SpeakeasyHTTPClient.java b/src/main/java/com/airbyte/api/utils/SpeakeasyHTTPClient.java index 6eaa452c5..76ba915ce 100644 --- a/src/main/java/com/airbyte/api/utils/SpeakeasyHTTPClient.java +++ b/src/main/java/com/airbyte/api/utils/SpeakeasyHTTPClient.java @@ -3,6 +3,8 @@ */ package com.airbyte.api.utils; +import com.airbyte.api.utils.Blob; + import java.io.IOException; import java.io.InputStream; import java.net.URISyntaxException; @@ -14,19 +16,28 @@ import java.nio.charset.StandardCharsets; import java.util.Collection; import java.util.Locale; +import java.util.Optional; import java.util.Set; import java.util.function.Consumer; import java.util.stream.Collectors; +import java.util.concurrent.CompletableFuture; public class SpeakeasyHTTPClient implements HTTPClient { + // global debug flag. Retained for backwards compatibility. private static boolean debugEnabled = false; + // Instance-level debug flag. Can be set by clients to enable debug logging for a + // single SDK instance. + private Boolean localDebugEnabled; + // uppercase private static Set redactedHeaders = Set.of("AUTHORIZATION", "X-API-KEY"); private static Consumer logger = System.out::println; + private final HttpClient client = HttpClient.newHttpClient(); + /** * Experimental, may be changed anytime. Sets debug logging on or off for * requests and responses including bodies for JSON content. WARNING: this @@ -42,6 +53,20 @@ public static void setDebugLogging(boolean enabled) { debugEnabled = enabled; } + public static boolean getDebugLoggingEnabled() { + return debugEnabled; + } + + @Override + public boolean isDebugLoggingEnabled() { + return Optional.ofNullable(localDebugEnabled).orElse(debugEnabled); + } + + @Override + public void enableDebugLogging(boolean enabled) { + localDebugEnabled = enabled; + } + /** * Experimental, may be changed anytime. When debug logging is enabled this * method controls the suppression of header values in the logs. By default, @@ -57,7 +82,7 @@ public static void setRedactedHeaders(Collection headerNames) { .map(x -> x.toUpperCase(Locale.ENGLISH)) // .collect(Collectors.toSet()); } - + public static void setLogger(Consumer logger) { SpeakeasyHTTPClient.logger = logger; } @@ -65,17 +90,27 @@ public static void setLogger(Consumer logger) { @Override public HttpResponse send(HttpRequest request) throws IOException, InterruptedException, URISyntaxException { - HttpClient client = HttpClient.newHttpClient(); - if (debugEnabled) { + if (isDebugLoggingEnabled()) { request = logRequest(request); } var response = client.send(request, HttpResponse.BodyHandlers.ofInputStream()); - if (debugEnabled) { + if (isDebugLoggingEnabled()) { response = logResponse(response); } return response; } + @Override + public CompletableFuture> sendAsync(HttpRequest request) { + if (isDebugLoggingEnabled()) { + request = logRequest(request); + } + return client.sendAsync(request, HttpResponse.BodyHandlers.ofPublisher()) + .thenApply(response -> + // TODO: log responses when helper for Blob is setup + new ResponseWithBody<>(response, Blob::from)); + } + private HttpRequest logRequest(HttpRequest request) { log("Sending request: " + request); log("Request headers: " + redactHeaders(request.headers())); diff --git a/src/main/java/com/airbyte/api/utils/StreamingParser.java b/src/main/java/com/airbyte/api/utils/StreamingParser.java new file mode 100644 index 000000000..5fef703cb --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/StreamingParser.java @@ -0,0 +1,322 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils; + +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import java.util.Optional; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + +/** + * Generic streaming parser that handles byte buffer management and delegates + * format-specific logic to a StreamContentProcessor. + */ +public final class StreamingParser { + + /** + * Information about a found boundary in byte data + */ + static class BoundaryInfo { + public final int position; + public final int delimiterLength; + + public BoundaryInfo(int position, int delimiterLength) { + this.position = position; + this.delimiterLength = delimiterLength; + } + } + + /** + * Interface for format-specific parsing logic + */ + interface StreamContentProcessor { + /** + * Find the next boundary in the byte buffer + * @return boundary info, or position -1 if no boundary found + */ + BoundaryInfo findBoundary(byte[] data, int limit); + + /** + * Process extracted content and return the parsed result + * @param content the extracted content (without boundary delimiters) + * @return parsed result, or empty if content should be skipped + */ + Optional processContent(String content); + + /** + * Sanitize content text (e.g., handle line endings, BOM, etc.) + * @param rawContent the raw extracted content + * @param isFirst whether this is the first content processed + * @return sanitized content + */ + default String sanitizeContent(String rawContent, boolean isFirst) { + return rawContent.replace("\r\n", "\n").replace("\r", "\n"); + } + } + + private final StreamContentProcessor processor; + private ByteBuffer byteBuffer = ByteBuffer.allocate(8192); + private boolean first = true; + + StreamingParser(StreamContentProcessor processor) { + this.processor = processor; + } + + /** + * Add ByteBuffer data to the parser buffer and extract any complete items. + * + * @param inputBuffer byte data to add (will not be modified) + * @return next complete parsed result if one becomes available + */ + public Optional add(ByteBuffer inputBuffer) { + if (inputBuffer == null || !inputBuffer.hasRemaining()) { + return extractNextFromBytes(); + } + // Ensure we have enough capacity + if (byteBuffer.remaining() < inputBuffer.remaining()) { + byteBuffer = expandByteBuffer(byteBuffer.position() + inputBuffer.remaining()); + } + // Append new data + byteBuffer.put(inputBuffer.slice()); + return extractNextFromBytes(); + } + + /** + * Extract any remaining partial content when stream ends. + * + * @return final parsed result if there was incomplete data in the buffer + */ + public Optional finish() { + if (byteBuffer.position() > 0) { + byte[] remainingBytes = new byte[byteBuffer.position()]; + byteBuffer.flip(); + byteBuffer.get(remainingBytes); + byteBuffer.clear(); + String content = processor.sanitizeContent(new String(remainingBytes, StandardCharsets.UTF_8), first); + return processor.processContent(content); + } + return Optional.empty(); + } + + /** + * Check if there are additional complete items in the buffer. + * + * @return next complete parsed result from buffer if available + */ + public Optional next() { + return extractNextFromBytes(); + } + + /** + * Check if parser has any buffered data + */ + public boolean hasBufferedData() { + return byteBuffer.position() > 0; + } + + private Optional extractNextFromBytes() { + if (byteBuffer.position() == 0) { + return Optional.empty(); + } + // Find boundary directly in bytes + BoundaryInfo boundary = processor.findBoundary(byteBuffer.array(), byteBuffer.position()); + if (boundary.position == -1) { + return Optional.empty(); + } + // Extract content bytes without copying the entire buffer + byte[] contentBytes = new byte[boundary.position]; + byteBuffer.flip(); + byteBuffer.get(contentBytes, 0, boundary.position); + // Compact buffer to remove processed content + delimiter + byteBuffer.position(boundary.position + boundary.delimiterLength); + byteBuffer.compact(); + String content = processor.sanitizeContent(new String(contentBytes, StandardCharsets.UTF_8), first); + if (first) { + first = false; + } + Optional result = processor.processContent(content); + if (result.isPresent()) { + return result; + } + // Check for additional items if this one was skipped + return extractNextFromBytes(); + } + + private ByteBuffer expandByteBuffer(int newCapacity) { + ByteBuffer newBuffer = ByteBuffer.allocate(Math.max(newCapacity, byteBuffer.capacity() * 2)); + byteBuffer.flip(); + newBuffer.put(byteBuffer); + return newBuffer; + } + + /** + * Check if a byte pattern matches at a specific position + */ + public static boolean matchesPattern(byte[] data, int pos, int limit, byte... pattern) { + if (pos + pattern.length > limit) { + return false; + } + for (int i = 0; i < pattern.length; i++) { + if (data[pos + i] != pattern[i]) { + return false; + } + } + return true; + } + + // ===== JSON Lines Content Processor ===== + + /** + * JSON Lines content processor implementation + */ + private static class JsonLContentProcessor implements StreamContentProcessor { + // Line boundary patterns + private static final byte CR = '\r'; + private static final byte LF = '\n'; + private static final byte[] CRLF = {CR, LF}; // \r\n + private static final byte[] LF_ONLY = {LF}; // \n + + @Override + public BoundaryInfo findBoundary(byte[] data, int limit) { + for (int i = 0; i < limit; i++) { + // Check for CRLF first (longer pattern) + if (matchesPattern(data, i, limit, CRLF)) { + return new BoundaryInfo(i, CRLF.length); + } + // Check for LF only + if (matchesPattern(data, i, limit, LF_ONLY)) { + return new BoundaryInfo(i, LF_ONLY.length); + } + } + return new BoundaryInfo(-1, 0); + } + + @Override + public Optional processContent(String content) { + String trimmed = content.trim(); + // Return non-empty JSON lines + return trimmed.isEmpty() ? Optional.empty() : Optional.of(trimmed); + } + } + + // ===== SSE Content Processor ===== + + /** + * SSE content processor implementation + */ + private static class SSEContentProcessor implements StreamContentProcessor { + private static final String BYTE_ORDER_MARK = "\uFEFF"; + private static final Pattern LINE_PATTERN = Pattern.compile("^([a-zA-Z]+): ?(.*)$"); + private static final char LINEFEED = '\n'; + // Message boundary patterns + private static final byte CR = '\r'; + private static final byte LF = '\n'; + private static final byte[] CRLF_CRLF = {CR, LF, CR, LF}; // \r\n\r\n + private static final byte[] CRLF_LF = {CR, LF, LF}; // \r\n\n + private static final byte[] LF_CRLF = {LF, CR, LF}; // \n\r\n + private static final byte[] LF_LF = {LF, LF}; // \n\n + + @Override + public BoundaryInfo findBoundary(byte[] data, int limit) { + for (int i = 0; i < limit; i++) { + // Need at least 2 bytes for any boundary pattern + if (i + 1 >= limit) { + continue; + } + // Check longest patterns first to avoid partial matches + if (matchesPattern(data, i, limit, CRLF_CRLF)) { + return new BoundaryInfo(i, CRLF_CRLF.length); + } + if (matchesPattern(data, i, limit, CRLF_LF)) { + return new BoundaryInfo(i, CRLF_LF.length); + } + if (matchesPattern(data, i, limit, LF_CRLF)) { + return new BoundaryInfo(i, LF_CRLF.length); + } + if (matchesPattern(data, i, limit, LF_LF)) { + return new BoundaryInfo(i, LF_LF.length); + } + } + return new BoundaryInfo(-1, 0); + } + + @Override + public Optional processContent(String content) { + if (content.trim().isEmpty()) { + return Optional.empty(); + } + return Optional.of(parseMessage(content)); + } + + @Override + public String sanitizeContent(String rawContent, boolean isFirst) { + String sanitized = rawContent.replace("\r\n", "\n").replace("\r", "\n"); + if (isFirst && sanitized.startsWith(BYTE_ORDER_MARK)) { + sanitized = sanitized.substring(BYTE_ORDER_MARK.length()); + } + return sanitized; + } + + private EventStreamMessage parseMessage(String text) { + String[] lines = text.split("\n"); + Optional event = Optional.empty(); + Optional id = Optional.empty(); + Optional retryMs = Optional.empty(); + StringBuilder data = new StringBuilder(); + boolean firstData = true; + for (String line : lines) { + // Skip comment lines + if (line.startsWith(":")) { + continue; + } + Matcher m = LINE_PATTERN.matcher(line); + if (m.find()) { + String key = m.group(1).toLowerCase(); + String value = m.group(2); + switch (key) { + case "event": + event = Optional.of(value); + break; + case "id": + id = Optional.of(value); + break; + case "retry": + try { + retryMs = Optional.of(Integer.parseInt(value)); + } catch (NumberFormatException e) { + // ignore invalid retry values + } + break; + case "data": + if (!firstData) { + data.append(LINEFEED); + } + firstData = false; + data.append(value); + break; + // ignore unknown fields + } + } + } + return new EventStreamMessage(event, id, retryMs, data.toString()); + } + } + + // ===== Factory Methods ===== + + /** + * Create a streaming parser for JSON Lines format + */ + public static StreamingParser forJsonLines() { + return new StreamingParser<>(new JsonLContentProcessor()); + } + + /** + * Create a streaming parser for SSE format + */ + public static StreamingParser forSSE() { + return new StreamingParser<>(new SSEContentProcessor()); + } +} diff --git a/src/main/java/com/airbyte/api/utils/Utils.java b/src/main/java/com/airbyte/api/utils/Utils.java index 3ef0576f6..8cf1fcc73 100644 --- a/src/main/java/com/airbyte/api/utils/Utils.java +++ b/src/main/java/com/airbyte/api/utils/Utils.java @@ -35,12 +35,14 @@ import java.util.Collections; import java.util.HashMap; import java.util.Iterator; +import java.lang.Iterable; import java.util.LinkedHashMap; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Map.Entry; import java.util.NoSuchElementException; +import java.util.Objects; import java.util.Optional; import java.util.Random; import java.util.concurrent.Callable; @@ -50,6 +52,7 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import java.util.stream.StreamSupport; +import java.util.concurrent.CompletableFuture; import javax.net.ssl.SSLSession; @@ -66,6 +69,9 @@ import com.fasterxml.jackson.databind.node.TextNode; import com.fasterxml.jackson.databind.type.TypeFactory; +import com.airbyte.api.models.errors.UncheckedSDKError; + + public final class Utils { private Utils() { @@ -80,7 +86,7 @@ public static boolean referenceEquals(Object a, Object b) { } public static String generateURL(String baseURL, String path) - throws IllegalArgumentException, IllegalAccessException { + throws IllegalArgumentException { if (baseURL != null && baseURL.endsWith("/")) { baseURL = baseURL.substring(0, baseURL.length() - 1); } @@ -89,7 +95,7 @@ public static String generateURL(String baseURL, String path) } public static String generateURL(Class type, String baseURL, String path, JsonNullable params, - Map>> globals) throws JsonProcessingException, IllegalArgumentException, IllegalAccessException { + Globals globals) throws JsonProcessingException, IllegalArgumentException, IllegalAccessException { if (params.isPresent() && params.get() != null) { return generateURL(type, baseURL, path, params.get(), globals); } else { @@ -98,7 +104,7 @@ public static String generateURL(Class type, String baseURL, String path, } public static String generateURL(Class type, String baseURL, String path, Optional params, - Map>> globals) throws JsonProcessingException, IllegalArgumentException, IllegalAccessException { + Globals globals) throws JsonProcessingException, IllegalArgumentException, IllegalAccessException { if (params.isPresent()) { return generateURL(type, baseURL, path, params.get(), globals); } else { @@ -107,7 +113,7 @@ public static String generateURL(Class type, String baseURL, String path, } public static String generateURL(Class type, String baseURL, String path, T params, - Map>> globals) + Globals globals) throws IllegalArgumentException, IllegalAccessException, JsonProcessingException { if (baseURL != null && baseURL.endsWith("/")) { baseURL = baseURL.substring(0, baseURL.length() - 1); @@ -173,6 +179,13 @@ public static String generateURL(Class type, String baseURL, String path, pathParams.put(pathParamsMetadata.name, pathEncode(valToString(value), pathParamsMetadata.allowReserved)); break; } + Optional openEnumValue = Reflections.getOpenEnumValue(value.getClass(), value); + if (openEnumValue.isPresent()) { + pathParams.put(pathParamsMetadata.name, pathEncode( + valToString(openEnumValue.get()), + pathParamsMetadata.allowReserved)); + break; + } List values = new ArrayList<>(); Field[] valueFields = value.getClass().getDeclaredFields(); @@ -207,7 +220,14 @@ public static String generateURL(Class type, String baseURL, String path, } } } - + // include all global params in pathParams if not already present + if (globals != null) { + globals.pathParamsAsStream() + .filter(entry -> !pathParams.containsKey(entry.getKey())) + .forEach(entry -> pathParams.put(entry.getKey(), // + pathEncode(entry.getValue(), false))); + } + return baseURL + templateUrl(path, pathParams); } @@ -265,7 +285,7 @@ public static SerializedBody serializeRequestBody(Object request, String request } public static List getQueryParams(Class type, Optional params, - Map>> globals) throws Exception { + Globals globals) throws Exception { if (params.isEmpty()) { return Collections.emptyList(); } else { @@ -274,7 +294,7 @@ public static List getQueryParams(Class ty } public static List getQueryParams(Class type, JsonNullable params, - Map>> globals) throws Exception { + Globals globals) throws Exception { if (!params.isPresent() || params.get() == null) { return Collections.emptyList(); } else { @@ -283,7 +303,7 @@ public static List getQueryParams(Class ty } public static List getQueryParams(Class type, T params, - Map>> globals) throws Exception { + Globals globals) throws Exception { return QueryParameters.parseQueryParams(type, params, globals); } @@ -316,12 +336,14 @@ public static String templateUrl(String url, Map params) { return sb.toString().replace(DOLLAR_MARKER, "$"); } - public static Map> getHeadersFromMetadata(Object headers, Map>> globals) throws Exception { + public static Map> getHeadersFromMetadata(Object headers, Globals globals) throws Exception { + Map> result = new HashMap<>(); if (headers == null) { - return Collections.emptyMap(); - } + // include all global headers in result if not already present + mergeGlobalHeaders(result, globals); - Map> result = new HashMap<>(); + return result; + } Field[] fields = headers.getClass().getDeclaredFields(); @@ -344,9 +366,14 @@ public static Map> getHeadersFromMetadata(Object headers, M case OBJECT: { if (!allowIntrospection(value.getClass())) { break; - } - List items = new ArrayList<>(); + } + Optional openEnumValue = Reflections.getOpenEnumValue(value.getClass(), value); + if (openEnumValue.isPresent()) { + upsertHeader(result, headerMetadata.name, openEnumValue.get()); + break; + } + List items = new ArrayList<>(); Field[] valueFields = value.getClass().getDeclaredFields(); for (Field valueField : valueFields) { valueField.setAccessible(true); @@ -431,20 +458,33 @@ public static Map> getHeadersFromMetadata(Object headers, M break; } default: { - if (!result.containsKey(headerMetadata.name)) { - result.put(headerMetadata.name, new ArrayList<>()); - } - - List values = result.get(headerMetadata.name); - values.add(valToString(value)); + upsertHeader(result, headerMetadata.name, value); break; } } } + // include all global headers in result if not already present + mergeGlobalHeaders(result, globals); + return result; } + private static void upsertHeader(Map> headers, String key, Object val) { + headers.computeIfAbsent(key, k -> new ArrayList<>()) + .add(valToString(val)); + } + + private static void mergeGlobalHeaders(Map> headers, Globals globals) { + if (globals == null) { + return; + } + globals.headerParamsAsStream() + .filter(entry -> !headers.containsKey(entry.getKey())) + .forEach(entry -> headers.put(entry.getKey(), + Collections.singletonList(entry.getValue()))); + } + public static String valToString(Object value) { if (value.getClass().isEnum()) { try { @@ -467,17 +507,10 @@ public static String prefixBearer(String authHeaderValue) { } public static Object populateGlobal(Object value, String fieldName, String paramType, - Map>> globals) { - if (value == null && - globals != null && - globals.containsKey("parameters") && - globals.get("parameters").containsKey(paramType)) { - Object globalVal = globals.get("parameters").get(paramType).get(fieldName); - if (globalVal != null) { - value = globalVal; - } - } - + Globals globals) { + if (value == null && globals != null) { + return globals.getParam(paramType, fieldName).orElse(null); + } return value; } @@ -752,6 +785,10 @@ public JsonShape shape() { } static Object resolveStringShape(Class type, String fieldName, Object value) throws IllegalAccessException { + if (value == null) { + return value; + } + try { // the presence of this TypeReference field indicates that the parameter // has a JsonShape of String and that we should convert BigInteger to @@ -770,7 +807,12 @@ static Object resolveStringShape(Class type, String fieldName, Object val public static Stream stream(Callable> first, Function> next) { return StreamSupport.stream(iterable(first, next).spliterator(), false); } - + + public static Stream toStream(Iterable iterable) { + return StreamSupport.stream(iterable.spliterator(), false); + } + + // need a Function method that throws public interface Function { T apply(S value) throws Exception; @@ -815,26 +857,14 @@ private void load() { pending = false; } } catch (Exception e) { - rethrow(e); + Exceptions.rethrow(e); } } }; } }; } - - static T rethrow(Throwable e) { - if (e instanceof RuntimeException) { - throw (RuntimeException) e; - } else if (e instanceof Error) { - throw (Error) e; - } else if (e instanceof IOException) { - throw new UncheckedIOException((IOException) e); - } else { - throw new RuntimeException(e); - } - } - + public static boolean statusCodeMatches(int statusCode, String... expectedStatusCodes) { return Arrays.stream(expectedStatusCodes) .anyMatch(expected -> statusCodeMatchesOne(statusCode, expected)); @@ -1045,6 +1075,10 @@ public static byte[] readBytes(String filename) { return readBytes(new File(filename)); } + public static String readString(String filename) { + return readString(new File(filename)); + } + public static byte[] readBytes(File file) { try { return readBytesAndClose(new FileInputStream(file)); @@ -1053,6 +1087,11 @@ public static byte[] readBytes(File file) { } } + public static String readString(File file) { + byte[] bytes = readBytes(file); + return new String(bytes, StandardCharsets.UTF_8); + } + public static byte[] readBytesAndClose(InputStream in) { try { return readBytes(in); @@ -1396,4 +1435,185 @@ public static T valueOrNull(Optional value) { public static T valueOrNull(JsonNullable value) { return valueOrElse(value, null); } + + public static N castLong(long value, Class targetType) { + // Handle supported types safely + if (targetType == Integer.class) { + return targetType.cast((int) value); + } else if (targetType == Long.class) { + return targetType.cast(value); + } else if (targetType == Short.class) { + return targetType.cast((short) value); + } else if (targetType == BigInteger.class) { + return targetType.cast(BigInteger.valueOf(value)); + } else { + throw new IllegalArgumentException("Unsupported number type: " + targetType); + } + } + + public static Iterator transform(Iterator iterator, Function mapper) { + return new Iterator<>() { + @Override + public boolean hasNext() { + return iterator.hasNext(); + } + + @Override + public O next() { + return Exceptions.unchecked(() -> mapper.apply(iterator.next())).get(); + } + }; + } + + /** + * Returns true if and only if the two objects are deeply equal, uses + * mathematical equivalence for Number subclasses ({@code 2 == 2.0}) instead of + * {@code Number.equals}. + * + *

    + * Should be paired with {@link #enhancedHashCode(Object)} to ensure the + * equals/hashCode contract. + * + * @param a the first object to compare + * @param b the second object to compare + * @return true if the objects are deeply equal bearing in mind mathematical + * equivalence, false otherwise + */ + public static boolean enhancedDeepEquals(Object a, Object b) { + if (a == null && b == null) { + return true; + } else if (a == null || b == null) { + return false; + } else if (a instanceof Optional && b instanceof Optional) { + return enhancedDeepEquals(((Optional) a).orElse(null), ((Optional) b).orElse(null)); + } else if (a instanceof JsonNullable && b instanceof JsonNullable) { + JsonNullable x = (JsonNullable) a; + JsonNullable y = (JsonNullable) b; + if (x.isPresent() && y.isPresent()) { + return enhancedDeepEquals(x.get(), y.get()); + } else { + return Objects.deepEquals(x, y); + } + } else if (a instanceof List && b instanceof List) { + List listA = (List) a; + List listB = (List) b; + if (listA.size() != listB.size()) { + return false; + } + for (int i = 0; i < listA.size(); i++) { + if (!enhancedDeepEquals(listA.get(i), listB.get(i))) { + return false; + } + } + return true; + } else if (a instanceof Map && b instanceof Map) { + // don't expect number keys, just Strings and enums + Map x = (Map) a; + Map y = (Map) b; + if (x.size() != y.size()) { + return false; + } + for (Entry entry : x.entrySet()) { + Object key = entry.getKey(); + Object value1 = entry.getValue(); + Object value2 = y.get(key); + if (!enhancedDeepEquals(value1, value2)) { + return false; + } + } + return true; + } else if (a instanceof Number && b instanceof Number) { + // compare values mathematically + BigDecimal x = toBigDecimal((Number) a); + BigDecimal y = toBigDecimal((Number) b); + return x.compareTo(y) == 0; + } else { + // we use deepEquals so that byte[] fields are compared appropriately + return Objects.deepEquals(a, b); + } + } + + /** + * Returns a combined hash code (applying {@link #enhancedHashCode}) for the + * given objects (usually the fields of an object whose hashCode we want to + * be calculated). + * + * @param objects + * @return combined hash code for the objects, 0 if the objects are null + */ + public static int enhancedHash(Object... objects) { + if (objects == null) { + return 0; + } + int result = 1; + for (Object o : objects) { + result = 31 * result + (o == null ? 0 :enhancedHashCode(o)); + } + return result; + } + + /** + * Returns a hash code that complies with the equals/hashCode contract when + * equals is implemented by {@link #enhancedDeepEquals(Object, Object)}. + * + * @param o object to calculate the hash code for (can be null) + * @return hash code for the object, 0 if the object is null + */ + public static int enhancedHashCode(Object o) { + if (o == null) { + return 0; + } else if (o instanceof Optional) { + Optional opt = (Optional) o; + return opt.map(Utils::enhancedHashCode).orElse(Optional.empty().hashCode()); + } else if (o instanceof JsonNullable) { + JsonNullable n = (JsonNullable) o; + return n.isPresent() ? Utils.enhancedHashCode(n.get()) : JsonNullable.undefined().hashCode(); + } else if (o instanceof List) { + return ((List) o).stream().mapToInt(Utils::enhancedHashCode).sum(); + } else if (o instanceof Map) { + // don't expect number keys, just Strings and enums + Map m = (Map) o; + return m.entrySet() // + .stream() // + .mapToInt(entry -> Objects.hashCode(entry.getKey()) + Utils.enhancedHashCode(entry.getValue())) // + .sum(); + } else if (o instanceof Number) { + return toBigDecimal((Number) o).stripTrailingZeros().hashCode(); + } else { + return o.hashCode(); + } + } + + private static BigDecimal toBigDecimal(Number number) { + if (number instanceof BigDecimal) { + return (BigDecimal) number; + } else if (number instanceof BigInteger) { + return new BigDecimal((BigInteger) number); + } else if (number instanceof Byte || number instanceof Short || + number instanceof Integer || number instanceof Long) { + return BigDecimal.valueOf(number.longValue()); + } else if (number instanceof Float || number instanceof Double) { + // Prevent precision issues for float/double + return BigDecimal.valueOf(number.doubleValue()); + } else { + // Fallback: treat as double + return BigDecimal.valueOf(number.doubleValue()); + } + } + + /** + * Creates a failed CompletableFuture with an async API exception. + * Uses the Blob to read the response body asynchronously. + */public static CompletableFuture createAsyncApiError( + HttpResponse response, + String reason) { + return response.body().toByteArray() + .thenApply(bodyBytes -> { + throw new UncheckedSDKError( + response, + response.statusCode(), + reason, + bodyBytes); + }); + } } diff --git a/src/main/java/com/airbyte/api/utils/reactive/EventStream.java b/src/main/java/com/airbyte/api/utils/reactive/EventStream.java new file mode 100644 index 000000000..4934a8055 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/reactive/EventStream.java @@ -0,0 +1,364 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils.reactive; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.airbyte.api.utils.AsyncResponse; +import com.airbyte.api.utils.Blob; +import com.airbyte.api.utils.EventStreamMessage; +import com.airbyte.api.utils.StreamingParser; +import com.airbyte.api.utils.Utils; + +import java.net.http.HttpResponse; +import java.nio.ByteBuffer; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.Flow; +import java.util.concurrent.atomic.AtomicLong; +import org.reactivestreams.Publisher; +import org.reactivestreams.Subscriber; +import org.reactivestreams.Subscription; + +/** + * A reactive event stream publisher that can handle different protocols (SSE, JSONL) + * and emits typed events with proper backpressure handling. + * + * @param the AsyncResponse type that contains the event stream + * @param the type that events are deserialized into + */ +public class EventStream implements Publisher { + + /** + * Protocol interface that defines how to parse and process different event stream formats + */ + public interface Protocol { + /** + * Create a new parser instance for this protocol + */ + StreamingParser createParser(); + + /** + * Process a parsed item and convert it to the target type + * @param parsed the parsed item from the parser + * @param objectMapper the ObjectMapper for deserialization + * @param typeReference the target type reference + * @return the converted item, or null if this item should be skipped + * @throws Exception if conversion fails + */ + ItemT processItem(ParsedT parsed, ObjectMapper objectMapper, TypeReference typeReference) throws Exception; + + /** + * Check if processing should stop (e.g., terminal message encountered) + * @param parsed the parsed item + * @return true if processing should stop + */ + boolean shouldStop(ParsedT parsed); + } + + private final CompletableFuture asyncResponseFuture; + private final TypeReference typeReference; + private final ObjectMapper objectMapper; + private final Protocol protocol; + + private EventStream(CompletableFuture asyncResponseFuture, + TypeReference typeReference, + ObjectMapper objectMapper, + Protocol protocol) { + this.asyncResponseFuture = asyncResponseFuture; + this.typeReference = typeReference; + this.objectMapper = objectMapper; + this.protocol = protocol; + } + + /** + * Create an EventStream for SSE (Server-Sent Events) format + */ + public static EventStream forSSE( + CompletableFuture asyncResponseFuture, + TypeReference typeReference, + ObjectMapper objectMapper, + String terminalMessage) { + return new EventStream<>(asyncResponseFuture, typeReference, objectMapper, + new SSEProtocol<>(terminalMessage)); + } + + /** + * Create an EventStream for JSONL (JSON Lines) format + */ + public static EventStream forJsonL( + CompletableFuture asyncResponseFuture, + TypeReference typeReference, + ObjectMapper objectMapper) { + return new EventStream<>(asyncResponseFuture, typeReference, objectMapper, + new JsonLProtocol<>()); + } + + /** + * Returns the value of the Content-Type header. + **/ + public CompletableFuture contentType() { + return asyncResponseFuture.thenApply(AsyncResponse::contentType); + } + + /** + * Returns the HTTP status code. + **/ + public CompletableFuture statusCode() { + return asyncResponseFuture.thenApply(AsyncResponse::statusCode); + } + + /** + * Returns the raw HTTP response. + **/ + public CompletableFuture> rawResponse() { + return asyncResponseFuture.thenApply(AsyncResponse::rawResponse); + } + + /** + * Returns the AsyncResponse body. + **/ + public CompletableFuture body() { + return asyncResponseFuture; + } + + @Override + public void subscribe(Subscriber subscriber) { + if (subscriber == null) { + throw new NullPointerException("Subscriber cannot be null"); + } + + EventStreamSubscription subscription = new EventStreamSubscription(subscriber); + subscriber.onSubscribe(subscription); + // Start the async operation only after onSubscribe has been called + subscription.start(rawResponse()); + } + + private class EventStreamSubscription implements Subscription { + private final Subscriber subscriber; + private final AtomicLong demand = new AtomicLong(0); + private final StreamingParser parser; + + private Flow.Subscription upstreamSubscription; + private volatile boolean cancelled = false; + private volatile boolean completed = false; + + @SuppressWarnings("unchecked") + public EventStreamSubscription(Subscriber subscriber) { + this.subscriber = subscriber; + this.parser = ((Protocol) protocol).createParser(); + } + + public void start(CompletableFuture> httpResponseFuture) { + // Wait for the CompletableFuture and then subscribe to the Blob + httpResponseFuture.whenComplete((httpResponse, throwable) -> { + if (cancelled) { + return; + } + if (throwable != null) { + // Signal error immediately per Reactive Streams specification + signalError(throwable); + return; + } + + // Extract Blob from HttpResponse and subscribe to it + Blob blob = httpResponse.body(); + // Blob.asPublisher() now returns Flow.Publisher directly + Flow.Publisher flowPublisher; + try { + flowPublisher = blob.asPublisher(); + } catch (Exception e) { + // Handle case where blob is already consumed or other errors + signalError(e); + return; + } + flowPublisher.subscribe(new Flow.Subscriber<>() { + @Override + public void onSubscribe(Flow.Subscription subscription) { + if (cancelled) { + subscription.cancel(); + return; + } + upstreamSubscription = subscription; + requestMoreIfNeeded(); + } + + @Override + public void onNext(ByteBuffer byteBuffer) { + if (cancelled || completed) { + return; + } + try { + processBuffer(byteBuffer); + if (!completed) { + requestMoreIfNeeded(); + } + } catch (Exception e) { + signalError(e); + } + } + + @Override + public void onError(Throwable throwable) { + signalError(throwable); + } + + @Override + public void onComplete() { + try { + processEndOfStream(); + signalComplete(); + } catch (Exception e) { + signalError(e); + } + } + }); + }); + } + + @Override + public void request(long n) { + if (n <= 0) { + signalError(new IllegalArgumentException("Request amount must be positive")); + return; + } + if (cancelled || completed) { + return; + } + demand.addAndGet(n); + requestMoreIfNeeded(); + } + + @Override + public void cancel() { + if (!cancelled) { + cancelled = true; + if (upstreamSubscription != null) { + upstreamSubscription.cancel(); + } + } + } + + private void processBuffer(ByteBuffer byteBuffer) { + // Use ByteBuffer directly without copying + Optional parsedOpt = parser.add(byteBuffer); + while (parsedOpt.isPresent()) { + if (!processItem(parsedOpt.get())) { + return; // Stop processing (terminal condition or error) + } + // Check for additional items in the buffer + parsedOpt = parser.next(); + } + } + + @SuppressWarnings("unchecked") + private boolean processItem(Object parsed) { + Protocol typedProtocol = (Protocol) protocol; + + // Check if processing should stop + if (typedProtocol.shouldStop(parsed)) { + signalComplete(); + return false; + } + + // Emit if there's demand + if (demand.get() > 0) { + try { + ItemT item = typedProtocol.processItem(parsed, objectMapper, typeReference); + if (item != null) { + demand.decrementAndGet(); + subscriber.onNext(item); + } + } catch (Exception e) { + signalError(e); + return false; // Signal to stop processing on error + } + } + return true; // Continue processing + } + + private void requestMoreIfNeeded() { + if (cancelled || completed) { + return; + } + + if (upstreamSubscription != null && demand.get() > 0) { + upstreamSubscription.request(1); + } + } + + private void processEndOfStream() { + Optional parsedOpt = parser.finish(); + parsedOpt.ifPresent(this::processItem); + } + + private void signalError(Throwable t) { + if (!cancelled && !completed) { + completed = true; + subscriber.onError(t); + } + } + + private void signalComplete() { + if (!cancelled && !completed) { + completed = true; + subscriber.onComplete(); + } + } + } + + /** + * SSE Protocol implementation + */ + private static class SSEProtocol implements Protocol { + private final String terminalMessage; + + public SSEProtocol(String terminalMessage) { + this.terminalMessage = terminalMessage; + } + + @Override + public StreamingParser createParser() { + return StreamingParser.forSSE(); + } + + @Override + public ItemT processItem(EventStreamMessage message, ObjectMapper objectMapper, TypeReference typeReference) { + // Skip empty data messages + if (message.data().isEmpty()) { + return null; + } + return Utils.asType(message, objectMapper, typeReference); + } + + @Override + public boolean shouldStop(EventStreamMessage message) { + // Check if this is a terminal message + return terminalMessage != null && terminalMessage.equals(message.data()); + } + } + + /** + * JSONL Protocol implementation + */ + private static class JsonLProtocol implements Protocol { + + @Override + public StreamingParser createParser() { + return StreamingParser.forJsonLines(); + } + + @Override + public ItemT processItem(String jsonLine, ObjectMapper objectMapper, TypeReference typeReference) throws Exception { + return objectMapper.readValue(jsonLine, typeReference); + } + + @Override + public boolean shouldStop(String jsonLine) { + // JSONL doesn't have terminal messages + return false; + } + } + +} \ No newline at end of file diff --git a/src/main/java/com/airbyte/api/utils/reactive/ReactiveUtils.java b/src/main/java/com/airbyte/api/utils/reactive/ReactiveUtils.java new file mode 100644 index 000000000..f59b6c642 --- /dev/null +++ b/src/main/java/com/airbyte/api/utils/reactive/ReactiveUtils.java @@ -0,0 +1,512 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.airbyte.api.utils.reactive; + +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.Flow; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicLong; +import java.util.function.Function; + +// Internal API only + +/** + * Utility class for reactive stream operations. + */ +public final class ReactiveUtils { + + private ReactiveUtils() { + // Utility class + } + + /** + * Maps elements from a Flow.Publisher using an asynchronous transformation function. + * This is useful for transforming HttpResponse elements using operations + * that return CompletableFuture results. + * + * @param the input element type + * @param the output element type + * @param source the source publisher + * @param mapper the async transformation function (e.g., AsyncOperation::handleResponse) + * @return a new publisher that emits the mapped elements + */ + public static Flow.Publisher mapAsync( + Flow.Publisher source, + Function> mapper) { + + Objects.requireNonNull(source, "Source publisher cannot be null"); + Objects.requireNonNull(mapper, "Mapper function cannot be null"); + + return new AsyncMappingPublisher<>(source, mapper); + } + + /** + * Maps elements from a Flow.Publisher using a synchronous transformation function. + * + * @param the input element type + * @param the output element type + * @param source the source publisher + * @param mapper the transformation function + * @return a new publisher that emits the mapped elements + */ + public static Flow.Publisher map( + Flow.Publisher source, + Function mapper) { + + Objects.requireNonNull(source, "Source publisher cannot be null"); + Objects.requireNonNull(mapper, "Mapper function cannot be null"); + + return new SyncMappingPublisher<>(source, mapper); + } + + /** + * Flattens a stream of collections into a stream of individual items. + * + * @param the input collection type + * @param the output element type + * @param source the source publisher emitting collections + * @param flattener the function to extract items from each collection + * @return a new publisher that emits individual items from the collections + */ + public static Flow.Publisher flatten( + Flow.Publisher source, + Function> flattener) { + + Objects.requireNonNull(source, "Source publisher cannot be null"); + Objects.requireNonNull(flattener, "Flattener function cannot be null"); + + return new FlatteningPublisher<>(source, flattener); + } + + /** + * Flattens a stream of {@code List} into a stream of individual {@code T} items. + * + * @param the type of elements to emit downstream + * @param source the source publisher emitting lists + * @return a new publisher that emits individual items from the lists + */ + public static Flow.Publisher flatten(Flow.Publisher> source) { + return flatten(source, list -> list); + } + + /** + * Wraps a {@code Flow.Publisher} into a {@code Flow.Publisher>}. + * + * @param source the source publisher + * @param the type of elements to emit downstream + * @return a new publisher that emits lists of items from the source publisher + */ + public static Flow.Publisher> wrapped(Flow.Publisher source) { + return new SyncMappingPublisher<>(source, List::of); + } + + /** + * Concatenates multiple publishers into a single publisher. + * + * @param pubs the publishers to concatenate + * @param the type of elements to emit downstream + * @return a new publisher that concatenates the given publishers + */ + public static Flow.Publisher concat(List> pubs) { + return new ConcatPublisher<>(pubs); + } + + /** + * Internal implementation of async mapping publisher. + */ + private static class AsyncMappingPublisher implements Flow.Publisher { + private final Flow.Publisher source; + private final Function> mapper; + + public AsyncMappingPublisher(Flow.Publisher source, Function> mapper) { + this.source = source; + this.mapper = mapper; + } + + @Override + public void subscribe(Flow.Subscriber subscriber) { + source.subscribe(new AsyncMappingSubscriber<>(subscriber, mapper)); + } + } + + /** + * Internal implementation of sync mapping publisher. + */ + private static class SyncMappingPublisher implements Flow.Publisher { + private final Flow.Publisher source; + private final Function mapper; + + public SyncMappingPublisher(Flow.Publisher source, Function mapper) { + this.source = source; + this.mapper = mapper; + } + + @Override + public void subscribe(Flow.Subscriber subscriber) { + source.subscribe(new SyncMappingSubscriber<>(subscriber, mapper)); + } + } + + /** + * Internal implementation of flattening publisher. + */ + private static class FlatteningPublisher implements Flow.Publisher { + private final Flow.Publisher source; + private final Function> flattener; + + public FlatteningPublisher(Flow.Publisher source, Function> flattener) { + this.source = source; + this.flattener = flattener; + } + + @Override + public void subscribe(Flow.Subscriber subscriber) { + source.subscribe(new FlatteningSubscriber<>(subscriber, flattener)); + } + } + + /** + * Internal implementation of concatenating publisher. + */ + private static final class ConcatPublisher implements Flow.Publisher { + private final List> pubs; + + ConcatPublisher(List> pubs) { + this.pubs = List.copyOf(pubs); + } + + @SuppressWarnings("unchecked") + @Override + public void subscribe(Flow.Subscriber downstream) { + downstream.onSubscribe(new ConcatSubscription<>((Flow.Subscriber) downstream, pubs.iterator())); + } + + } + + /** + * Subscriber that handles async mapping transformations. + */ + private static class AsyncMappingSubscriber implements Flow.Subscriber { + private final Flow.Subscriber downstream; + private final Function> mapper; + private final AtomicBoolean cancelled = new AtomicBoolean(false); + private final AtomicLong pendingDemand = new AtomicLong(0); + private final AtomicLong pendingCompletes = new AtomicLong(0); + private Flow.Subscription upstream; + private volatile boolean upstreamCompleted = false; + + public AsyncMappingSubscriber(Flow.Subscriber downstream, Function> mapper) { + this.downstream = downstream; + this.mapper = mapper; + } + + @Override + public void onSubscribe(Flow.Subscription subscription) { + this.upstream = subscription; + downstream.onSubscribe(new Flow.Subscription() { + @Override + public void request(long n) { + if (n <= 0) { + downstream.onError(new IllegalArgumentException("Request count must be positive")); + return; + } + + long currentDemand = pendingDemand.addAndGet(n); + if (currentDemand < 0) { + pendingDemand.set(Long.MAX_VALUE); + } + + upstream.request(n); + } + + @Override + public void cancel() { + cancelled.set(true); + upstream.cancel(); + } + }); + } + + @Override + public void onNext(T item) { + if (cancelled.get()) return; + + try { + pendingCompletes.incrementAndGet(); + CompletableFuture future = mapper.apply(item); + future.whenComplete((result, error) -> { + if (cancelled.get()) { + return; + } + + if (error != null) { + cancelled.set(true); + downstream.onError(error); + } else if (pendingDemand.get() > 0) { + pendingDemand.decrementAndGet(); + downstream.onNext(result); + } + + // Check if we should complete after this async operation + if (pendingCompletes.decrementAndGet() == 0 && upstreamCompleted) { + downstream.onComplete(); + } + }); + } catch (Exception e) { + if (!cancelled.get()) { + cancelled.set(true); + downstream.onError(e); + } + } + } + + @Override + public void onError(Throwable throwable) { + if (!cancelled.get()) { + downstream.onError(throwable); + } + } + + @Override + public void onComplete() { + upstreamCompleted = true; + if (!cancelled.get() && pendingCompletes.get() == 0) { + downstream.onComplete(); + } + } + } + + /** + * Subscriber that handles sync mapping transformations. + */ + private static class SyncMappingSubscriber implements Flow.Subscriber { + private final Flow.Subscriber downstream; + private final Function mapper; + private Flow.Subscription upstream; + private volatile boolean cancelled = false; + + public SyncMappingSubscriber(Flow.Subscriber downstream, Function mapper) { + this.downstream = downstream; + this.mapper = mapper; + } + + @Override + public void onSubscribe(Flow.Subscription subscription) { + this.upstream = subscription; + downstream.onSubscribe(new Flow.Subscription() { + @Override + public void request(long n) { + if (!cancelled) { + upstream.request(n); + } + } + + @Override + public void cancel() { + cancelled = true; + upstream.cancel(); + } + }); + } + + @Override + public void onNext(T item) { + if (cancelled) return; + + try { + R result = mapper.apply(item); + downstream.onNext(result); + } catch (Exception e) { + cancelled = true; + upstream.cancel(); + downstream.onError(e); + } + } + + @Override + public void onError(Throwable throwable) { + if (!cancelled) { + downstream.onError(throwable); + } + } + + @Override + public void onComplete() { + if (!cancelled) { + downstream.onComplete(); + } + } + } + + /** + * Subscriber that handles flattening transformations. + */ + private static class FlatteningSubscriber implements Flow.Subscriber { + private final Flow.Subscriber downstream; + private final Function> flattener; + private Flow.Subscription upstreamSubscription; + private volatile boolean cancelled = false; + + public FlatteningSubscriber(Flow.Subscriber downstream, Function> flattener) { + this.downstream = Objects.requireNonNull(downstream, "Downstream subscriber cannot be null"); + this.flattener = flattener; + } + + @Override + public void onSubscribe(Flow.Subscription subscription) { + this.upstreamSubscription = Objects.requireNonNull(subscription, "Upstream subscription cannot be null"); + downstream.onSubscribe(new Flow.Subscription() { + @Override + public void request(long n) { + if (n <= 0) { + downstream.onError(new IllegalArgumentException("Demand must be positive: " + n)); + return; + } + + if (!cancelled && upstreamSubscription != null) { + upstreamSubscription.request(n); + } + } + + @Override + public void cancel() { + cancelled = true; + if (upstreamSubscription != null) { + upstreamSubscription.cancel(); + } + } + }); + } + + @Override + public void onNext(T item) { + if (cancelled) { + return; + } + + try { + Iterable items = flattener.apply(item); + for (R flattenedItem : items) { + if (cancelled) { + break; + } + downstream.onNext(flattenedItem); + } + } catch (Exception e) { + if (!cancelled) { + cancelled = true; + upstreamSubscription.cancel(); + downstream.onError(e); + } + } + } + + @Override + public void onError(Throwable throwable) { + if (!cancelled) { + downstream.onError(throwable); + } + } + + @Override + public void onComplete() { + if (!cancelled) { + downstream.onComplete(); + } + } + } + + /** + * Subscriber that handles concatenating publishers. + */ + private static final class ConcatSubscription implements Flow.Subscription { + private final Flow.Subscriber downstream; + private final Iterator> it; + + private Flow.Subscription upstream; + private long demand = 0L; + private boolean cancelled = false; + private boolean completed = false; + + public ConcatSubscription(Flow.Subscriber downstream, + Iterator> it) { + this.downstream = downstream; + this.it = it; + } + + + @Override + public synchronized void request(long n) { + if (cancelled || completed || n <= 0) return; + demand = addCap(demand, n); + if (upstream == null) { + subscribeNext(); + } else { + upstream.request(n); + } + } + + @Override + public synchronized void cancel() { + cancelled = true; + if (upstream != null) upstream.cancel(); + } + + private void subscribeNext() { + if (cancelled) return; + if (!it.hasNext()) { + completed = true; + downstream.onComplete(); + return; + } + Flow.Publisher next = it.next(); + next.subscribe(new Upstream()); + } + + private final class Upstream implements Flow.Subscriber { + @Override + public void onSubscribe(Flow.Subscription s) { + synchronized (ConcatSubscription.this) { + upstream = s; + if (demand > 0) s.request(demand); + } + } + + @Override + public void onNext(T item) { + long afterDecrement; + synchronized (ConcatSubscription.this) { + if (demand == 0) return; // should not happen if upstream respects RS + demand--; + afterDecrement = demand; + } + downstream.onNext(item); + // no need to request here; downstream will call request() again if needed + } + + @Override + public void onError(Throwable t) { + downstream.onError(t); + } + + @Override + public void onComplete() { + synchronized (ConcatSubscription.this) { + upstream = null; + if (cancelled) return; + } + // carry over remaining demand to next publisher + subscribeNext(); + } + } + + private static long addCap(long a, long b) { + long r = a + b; + return (r < 0L) ? Long.MAX_VALUE : r; + } + } +}